@flarehr/apollo-import-workspace-app 0.1.463 → 0.1.468

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,6 +1,6 @@
1
- var to,_e,wd,lr,fu,vd,Ma,ll,Ia,Da,bd,zi={},_d=[],A0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ws=Array.isArray;function An(e,t){for(var n in t)e[n]=t[n];return e}function xd(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?to.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return ji(e,s,r,i,null)}function ji(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++wd,__i:-1,__u:0};return i==null&&_e.vnode!=null&&_e.vnode(o),o}function vs(){return{current:null}}function Ue(e){return e.children}function un(e,t){this.props=e,this.context=t}function ti(e,t){if(t==null)return e.__?ti(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"?ti(e):null}function Cd(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 Cd(e)}}function Oa(e){(!e.__d&&(e.__d=!0)&&lr.push(e)&&!qo.__r++||fu!==_e.debounceRendering)&&((fu=_e.debounceRendering)||vd)(qo)}function qo(){var e,t,n,r,i,o,s,a;for(lr.sort(Ma);e=lr.shift();)e.__d&&(t=lr.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=An({},i)).__v=i.__v+1,_e.vnode&&_e.vnode(r),ul(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??ti(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Ad(s,r,a),r.__e!=o&&Cd(r)),lr.length>t&&lr.sort(Ma));qo.__r=0}function Sd(e,t,n,r,i,o,s,a,l,u,f){var c,p,h,m,w,b=r&&r.__k||_d,x=t.length;for(n.__d=l,k0(n,t,b),l=n.__d,c=0;c<x;c++)(h=n.__k[c])!=null&&(p=h.__i===-1?zi:b[h.__i]||zi,h.__i=c,ul(e,h,p,i,o,s,a,l,u,f),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&cl(p.ref,null,h),f.push(h.ref,h.__c||m,h)),w==null&&m!=null&&(w=m),65536&h.__u||p.__k===h.__k?l=Ed(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=w}function k0(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+c,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?ji(null,i,null,null,null):ws(i)?ji(Ue,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?ji(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(a=i.__i=N0(i,n,s,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&c--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?c--:a==s+1?c++:(a>s?c--:c++,i.__u|=65536))):i=e.__k[r]=null;if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ti(o)),kd(o,o))}function Ed(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Ed(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ti(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Tn(e,t){return t=t||[],e==null||typeof e=="boolean"||(ws(e)?e.some(function(n){Tn(n,t)}):t.push(e)),t}function N0(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if((typeof o!="function"||o===Ue||i)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function mu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||A0.test(t)?n:n+"px"}function So(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||mu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||mu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=ll,e.addEventListener(t,o?Da:Ia,o)):e.removeEventListener(t,o?Da:Ia,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function hu(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ll++;else if(t.t<n.u)return;return _e.event&&(t=_e.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function ul(e,t,n,r,i,o,s,a,l,u){var f,c,p,h,m,w,b,x,C,E,M,I,F,L,S,_,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=_e.__b)&&f(t);e:if(typeof k=="function")try{if(x=t.props,C="prototype"in k&&k.prototype.render,E=(f=k.contextType)&&r[f.__c],M=f?E?E.props.value:f.__:r,n.__c?b=(c=t.__c=n.__c).__=c.__E:(C?t.__c=c=new k(x,M):(t.__c=c=new un(x,M),c.constructor=k,c.render=$0),E&&E.sub(c),c.props=x,c.state||(c.state={}),c.context=M,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),C&&c.__s==null&&(c.__s=c.state),C&&k.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=An({},c.__s)),An(c.__s,k.getDerivedStateFromProps(x,c.__s))),h=c.props,m=c.state,c.__v=t,p)C&&k.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),C&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(C&&k.getDerivedStateFromProps==null&&x!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(x,M),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(x,c.__s,M)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=x,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),I=0;I<c._sb.length;I++)c.__h.push(c._sb[I]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(x,c.__s,M),C&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,m,w)})}if(c.context=M,c.props=x,c.__P=e,c.__e=!1,F=_e.__r,L=0,C){for(c.state=c.__s,c.__d=!1,F&&F(t),f=c.render(c.props,c.state,c.context),S=0;S<c._sb.length;S++)c.__h.push(c._sb[S]);c._sb=[]}else do c.__d=!1,F&&F(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++L<25);c.state=c.__s,c.getChildContext!=null&&(r=An(An({},r),c.getChildContext())),C&&!p&&c.getSnapshotBeforeUpdate!=null&&(w=c.getSnapshotBeforeUpdate(h,m)),Sd(e,ws(_=f!=null&&f.type===Ue&&f.key==null?f.props.children:f)?_:[_],t,n,r,i,o,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),b&&(c.__E=c.__=null)}catch(N){if(t.__v=null,l||o!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;_e.__e(N,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=T0(n.__e,t,n,r,i,o,s,l,u);(f=_e.diffed)&&f(t)}function Ad(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)cl(n[r],n[++r],n[++r]);_e.__c&&_e.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){_e.__e(o,i.__v)}})}function T0(e,t,n,r,i,o,s,a,l){var u,f,c,p,h,m,w,b=n.props,x=t.props,C=t.type;if(C==="svg"?i="http://www.w3.org/2000/svg":C==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!C&&(C?h.localName===C:h.nodeType===3)){e=h,o[u]=null;break}}if(e==null){if(C===null)return document.createTextNode(x);e=document.createElementNS(i,C,x.is&&x),a&&(_e.__m&&_e.__m(t,o),a=!1),o=null}if(C===null)b===x||a&&e.data===x||(e.data=x);else{if(o=o&&to.call(e.childNodes),b=n.props||zi,!a&&o!=null)for(b={},u=0;u<e.attributes.length;u++)b[(h=e.attributes[u]).name]=h.value;for(u in b)if(h=b[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in x)){if(u=="value"&&"defaultValue"in x||u=="checked"&&"defaultChecked"in x)continue;So(e,u,null,h,i)}}for(u in x)h=x[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?m=h:u=="checked"?w=h:a&&typeof h!="function"||b[u]===h||So(e,u,h,b[u],i);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Sd(e,ws(p)?p:[p],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&ti(n,0),a,l),o!=null)for(u=o.length;u--;)xd(o[u]);a||(u="value",C==="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||C==="progress"&&!m||C==="option"&&m!==b[u])&&So(e,u,m,b[u],i),u="checked",w!==void 0&&w!==e[u]&&So(e,u,w,b[u],i))}return e}function cl(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){_e.__e(i,n)}}function kd(e,t,n){var r,i;if(_e.unmount&&_e.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||cl(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){_e.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&kd(r[i],t,n||typeof e.type!="function");n||xd(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function $0(e,t,n){return this.constructor(e,n)}function Gn(e,t,n){var r,i,o,s;_e.__&&_e.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],ul(t,e=(!r&&n||t).__k=d(Ue,null,[e]),i||zi,zi,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?to.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),Ad(o,e,s)}function dl(e,t){Gn(e,t,dl)}function fl(e,t,n){var r,i,o,s,a=An({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?to.call(arguments,2):n),ji(e.type,a,r||e.key,i||e.ref,null)}function Je(e,t){var n={__c:t="__cC"+bd++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,Oa(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}to=_d.slice,_e={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},wd=0,un.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=An({},this.state),typeof e=="function"&&(e=e(An({},n),this.props)),e&&An(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Oa(this))},un.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Oa(this))},un.prototype.render=Ue,lr=[],vd=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ma=function(e,t){return e.__v.__b-t.__v.__b},qo.__r=0,ll=0,Ia=hu(!1),Da=hu(!0),bd=0;function ml(){return(ml=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 M0=["context","children"];function I0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)i.indexOf(o=l[s])>=0||(a[o]=r[o]);return a}(e,M0);return fl(t,n)}function D0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=d(I0,ml({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[Nd(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?o[f]=d(pu,{name:f},u):i[s]=u}var c=r?d(pu,null,i):i;return d(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?dl:Gn)(this._vdom,this._root)}function Nd(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function O0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Nd(e)]=n,this._vdom=fl(this._vdom,r),Gn(this._vdom,this._root)}}function R0(){Gn(this._vdom=null,this._root)}function pu(e,t){var n=this;return d("slot",ml({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function F0(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=D0,i.prototype.attributeChangedCallback=O0,i.prototype.disconnectedCallback=R0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,i)}function hl(e,t){F0(e,t)}var In,He,oa,gu,ni=0,Td=[],Ze=_e,yu=Ze.__b,wu=Ze.__r,vu=Ze.diffed,bu=Ze.__c,_u=Ze.unmount,xu=Ze.__;function Ar(e,t){Ze.__h&&Ze.__h(He,e,ni||t),ni=0;var n=He.__H||(He.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return ni=1,kr($d,e)}function kr(e,t,n){var r=Ar(In++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):$d(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=He,!He.u)){var i=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!o||o.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(c=!0)}}),o&&o.call(this,a,l,u)||c};He.u=!0;var o=He.shouldComponentUpdate,s=He.componentWillUpdate;He.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,i(a,l,u),o=f}s&&s.call(this,a,l,u)},He.shouldComponentUpdate=i}return r.__N||r.__}function Me(e,t){var n=Ar(In++,3);!Ze.__s&&yl(n.__H,t)&&(n.__=e,n.i=t,He.__H.__h.push(n))}function On(e,t){var n=Ar(In++,4);!Ze.__s&&yl(n.__H,t)&&(n.__=e,n.i=t,He.__h.push(n))}function se(e){return ni=5,de(function(){return{current:e}},[])}function pl(e,t,n){ni=6,On(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 de(e,t){var n=Ar(In++,7);return yl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Se(e,t){return ni=8,de(function(){return e},t)}function Ie(e){var t=He.context[e.__c],n=Ar(In++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(He)),t.props.value):e.__}function gl(e,t){Ze.useDebugValue&&Ze.useDebugValue(t?t(e):e)}function P0(e){var t=Ar(In++,10),n=ye();return t.__=e,He.componentDidCatch||(He.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Jt(){var e=Ar(In++,11);if(!e.__){for(var t=He.__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 L0(){for(var e;e=Td.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Vo),e.__H.__h.forEach(Ra),e.__H.__h=[]}catch(t){e.__H.__h=[],Ze.__e(t,e.__v)}}Ze.__b=function(e){He=null,yu&&yu(e)},Ze.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),xu&&xu(e,t)},Ze.__r=function(e){wu&&wu(e),In=0;var t=(He=e.__c).__H;t&&(oa===He?(t.__h=[],He.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Vo),t.__h.forEach(Ra),t.__h=[],In=0)),oa=He},Ze.diffed=function(e){vu&&vu(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Td.push(t)!==1&&gu===Ze.requestAnimationFrame||((gu=Ze.requestAnimationFrame)||V0)(L0)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),oa=He=null},Ze.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Vo),n.__h=n.__h.filter(function(r){return!r.__||Ra(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ze.__e(r,n.__v)}}),bu&&bu(e,t)},Ze.unmount=function(e){_u&&_u(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Vo(r)}catch(i){t=i}}),n.__H=void 0,t&&Ze.__e(t,n.__v))};var Cu=typeof requestAnimationFrame=="function";function V0(e){var t,n=function(){clearTimeout(r),Cu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Cu&&(t=requestAnimationFrame(n))}function Vo(e){var t=He,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),He=t}function Ra(e){var t=He;e.__c=e.__(),He=t}function yl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function $d(e,t){return typeof t=="function"?t(e):t}function Fa(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 bs(e,t){var n=t(),r=ye({t:{__:n,u:t}}),i=r[0].t,o=r[1];return On(function(){i.__=n,i.u=t,sa(i)&&o({t:i})},[e,n,t]),Me(function(){return sa(i)&&o({t:i}),e(function(){sa(i)&&o({t:i})})},[e]),n}function sa(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function wl(e){e()}function vl(e){return e}function bl(){return[!1,wl]}var _l=On;function Yo(e,t){this.props=e,this.context=t}function Md(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:Fa(this.props,i)}function r(i){return this.shouldComponentUpdate=n,d(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Yo.prototype=new un).isPureReactComponent=!0,Yo.prototype.shouldComponentUpdate=function(e,t){return Fa(this.props,e)||Fa(this.state,t)};var Su=_e.__b;_e.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Su&&Su(e)};var H0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function xl(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=H0,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Eu=function(e,t){return e==null?null:Tn(Tn(e).map(t))},Id={map:Eu,forEach:Eu,count:function(e){return e?Tn(e).length:0},only:function(e){var t=Tn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Tn},j0=_e.__e;_e.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}j0(e,t,n,r)};var Au=_e.unmount;function Dd(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,i){for(var o in i)r[o]=i[o];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Dd(r,t,n)})),e}function Od(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Od(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 Bi(){this.__u=0,this.o=null,this.__b=null}function Rd(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fd(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return d(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Ur(){this.i=null,this.l=null}_e.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Au&&Au(e)},(Bi.prototype=new un).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Rd(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Od(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Bi.prototype.componentWillUnmount=function(){this.o=[]},Bi.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]=Dd(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&d(Ue,null,e.fallback);return i&&(i.__u&=-33),[d(Ue,null,t.__a?null:e.children),i]};var ku=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function B0(e){return this.getChildContext=function(){return e.context},e.children}function U0(e){var t=this,n=e.h;t.componentWillUnmount=function(){Gn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Gn(d(B0,{context:t.context},e.__v),t.v)}function _s(e,t){var n=d(U0,{__v:e,h:t});return n.containerInfo=t,n}(Ur.prototype=new un).__a=function(e){var t=this,n=Rd(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),ku(t,e,r)):i()};n?n(o):o()}},Ur.prototype.render=function(e){this.i=null,this.l=new Map;var t=Tn(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Ur.prototype.componentDidUpdate=Ur.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){ku(e,n,t)})};var Pd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,W0=/^(?: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]/,G0=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,z0=/[A-Z0-9]/g,q0=typeof document<"u",Y0=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ld(e,t,n){return t.__k==null&&(t.textContent=""),Gn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Vd(e,t,n){return dl(e,t),typeof n=="function"&&n(),e?e.__c:null}un.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(un.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Nu=_e.event;function Z0(){}function K0(){return this.cancelBubble}function X0(){return this.defaultPrevented}_e.event=function(e){return Nu&&(e=Nu(e)),e.persist=Z0,e.isPropagationStopped=K0,e.isDefaultPrevented=X0,e.nativeEvent=e};var Cl,J0={enumerable:!1,configurable:!0,get:function(){return this.class}},Tu=_e.vnode;_e.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||q0&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Y0(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":G0.test(s)&&(s=l):l=s="oninput":o&&W0.test(s)?s=s.replace(z0,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Tn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Tn(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",J0)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Pd,Tu&&Tu(e)};var $u=_e.__r;_e.__r=function(e){$u&&$u(e),Cl=e.__c};var Mu=_e.diffed;_e.diffed=function(e){Mu&&Mu(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),Cl=null};var Hd={ReactCurrentDispatcher:{current:{readContext:function(e){return Cl.__n[e.__c].props.value},useCallback:Se,useContext:Ie,useDebugValue:gl,useDeferredValue:vl,useEffect:Me,useId:Jt,useImperativeHandle:pl,useInsertionEffect:_l,useLayoutEffect:On,useMemo:de,useReducer:kr,useRef:se,useState:ye,useSyncExternalStore:bs,useTransition:bl}}},Q0="18.3.1";function jd(e){return d.bind(null,e)}function di(e){return!!e&&e.$$typeof===Pd}function Bd(e){return di(e)&&e.type===Ue}function Ud(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Sl(e){return di(e)?fl.apply(null,arguments):e}function Wd(e){return!!e.__k&&(Gn(null,e),!0)}function Gd(e){return e&&(e.base||e.nodeType===1&&e)||null}var zd=function(e,t){return e(t)},Wt=function(e,t){return e(t)},qd=Ue,Yd=di,K={useState:ye,useId:Jt,useReducer:kr,useEffect:Me,useLayoutEffect:On,useInsertionEffect:_l,useTransition:bl,useDeferredValue:vl,useSyncExternalStore:bs,startTransition:wl,useRef:se,useImperativeHandle:pl,useMemo:de,useCallback:Se,useContext:Ie,useDebugValue:gl,version:"18.3.1",Children:Id,render:Ld,hydrate:Vd,unmountComponentAtNode:Wd,createPortal:_s,createElement:d,createContext:Je,createFactory:jd,cloneElement:Sl,createRef:vs,Fragment:Ue,isValidElement:di,isElement:Yd,isFragment:Bd,isMemo:Ud,findDOMNode:Gd,Component:un,PureComponent:Yo,memo:Md,forwardRef:xl,flushSync:Wt,unstable_batchedUpdates:zd,StrictMode:qd,Suspense:Bi,SuspenseList:Ur,lazy:Fd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hd};const Zo=Object.freeze(Object.defineProperty({__proto__:null,Children:Id,Component:un,Fragment:Ue,PureComponent:Yo,StrictMode:qd,Suspense:Bi,SuspenseList:Ur,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hd,cloneElement:Sl,createContext:Je,createElement:d,createFactory:jd,createPortal:_s,createRef:vs,default:K,findDOMNode:Gd,flushSync:Wt,forwardRef:xl,hydrate:Vd,isElement:Yd,isFragment:Bd,isMemo:Ud,isValidElement:di,lazy:Fd,memo:Md,render:Ld,startTransition:wl,unmountComponentAtNode:Wd,unstable_batchedUpdates:zd,useCallback:Se,useContext:Ie,useDebugValue:gl,useDeferredValue:vl,useEffect:Me,useErrorBoundary:P0,useId:Jt,useImperativeHandle:pl,useInsertionEffect:_l,useLayoutEffect:On,useMemo:de,useReducer:kr,useRef:se,useState:ye,useSyncExternalStore:bs,useTransition:bl,version:Q0},Symbol.toStringTag,{value:"Module"})),ep=`*,: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:Inter,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}@font-face{font-family:BRSonoma;font-weight:900;src:url(/assets/BRSonoma-Black-Dd-41VER.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:700;src:url(/assets/BRSonoma-Bold-ntHe2u-j.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:500;src:url(/assets/BRSonoma-Medium-j1GGAHzV.otf) format("opentype")}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.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-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.col-span-4{grid-column:span 4 / span 4}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.mx-12{margin-left:3rem;margin-right:3rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mt-\\[226px\\]{margin-top:-226px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.ml-3{margin-left:.75rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-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}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\\[120px\\]{height:120px}.h-\\[34px\\]{height:34px}.h-\\[38px\\]{height:38px}.h-\\[52px\\]{height:52px}.h-\\[58px\\]{height:58px}.h-\\[60px\\]{height:60px}.h-\\[63px\\]{height:63px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:12rem}.max-h-\\[470px\\]{max-height:470px}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[1030px\\]{width:1030px}.w-\\[120px\\]{width:120px}.w-\\[128px\\]{width:128px}.w-\\[148px\\]{width:148px}.w-\\[206px\\]{width:206px}.w-\\[218px\\]{width:218px}.w-\\[230px\\]{width:230px}.w-\\[260px\\]{width:260px}.w-\\[480px\\]{width:480px}.w-\\[640px\\]{width:640px}.w-full{width:100%}.max-w-\\[640px\\]{max-width:640px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.rotate-180{--tw-rotate: 180deg;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))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.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, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary-600{border-color:var(--fl-color-primary-600)}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500\\/50{background-color:#6b728080}.bg-primary-600{background-color:var(--fl-color-primary-600)}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.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}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.px-\\[17px\\]{padding-left:17px;padding-right:17px}.px-\\[3px\\]{padding-left:3px;padding-right:3px}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.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-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[0\\.5625rem\\]{padding-top:.5625rem;padding-bottom:.5625rem}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\\[3px\\]{padding-bottom:3px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-\\[13px\\]{padding-left:13px}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-6{padding-right:1.5rem}.pr-\\[11px\\]{padding-right:11px}.pt-0\\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sonoma{font-family:BRSonoma}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/6{font-size:.875rem;line-height:1.5rem}.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}.leading-4{line-height:1rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-primary-600{color:var(--fl-color-primary-600)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-50{opacity:.5}.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-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-gray-300{--tw-shadow-color: #d1d5db;--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:#d1d5db}.outline-red-300{outline-color:#fca5a5}.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, 1))}.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}.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-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-500::placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-1:before{content:var(--tw-content);top:.25rem;right:.25rem;bottom:.25rem;left:.25rem}.before\\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\\:bg-white:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.checked\\:border-primary-600:checked{border-color:var(--fl-color-primary-600)}.checked\\:bg-primary-600:checked{background-color:var(--fl-color-primary-600)}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.focus\\:border-blue-600:focus{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.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-blue-600:focus{outline-color:#2563eb}.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-primary-600:focus{--tw-ring-color: var(--fl-color-primary-600)}.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-primary-600:focus-visible{outline-color:var(--fl-color-primary-600)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:before\\:bg-gray-400:disabled:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:size-4{width:1rem;height:1rem}}@media (forced-colors: active){.forced-colors\\:appearance-auto{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.forced-colors\\:before\\:hidden:before{content:var(--tw-content);display:none}}.\\[\\&\\:not\\(\\:checked\\)\\]\\:before\\:hidden:not(:checked):before{content:var(--tw-content);display:none}`;function dn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function tp(e){return e!=null&&typeof e.GetEnumerator=="function"}function np(e){return e!=null&&typeof e.CompareTo=="function"}function rp(e){return e!=null&&typeof e.Equals=="function"}function Zd(e){return e!=null&&typeof e.GetHashCode=="function"}function Pa(e){return e!=null&&typeof e.Dispose=="function"}function ke(e){Pa(e)&&e.Dispose()}function xe(){return null}function Ko(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 ip{constructor(t){this.iter=t,this.current=xe()}"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 $e(e){return tp(e)?e.GetEnumerator():new ip(e[Symbol.iterator]())}function fi(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class op{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Re(e,t){return e.toString(10).padStart(t,"0")}function sp(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Iu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function ap(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function cn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class kn{static id(t){return kn.idMap.has(t)||kn.idMap.set(t,++kn.count),kn.idMap.get(t)}}kn.idMap=new WeakMap;kn.count=0;function Qn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function sn(e){return e*2654435761|0}function Kd(e){return Qn(e.toString(32))}function no(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function lp(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return sn(e);case"bigint":return Kd(e);case"string":return Qn(e);default:return sn(kn.id(e))}}function up(e){return Zd(e)?e.GetHashCode():lp(e)}function cp(e){return e.getTime()}function dp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Xt(e[r]);return no(n)}function Xt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return sn(e);case"bigint":return Kd(e);case"string":return Qn(e);default:{if(Zd(e))return e.GetHashCode();if(dn(e))return dp(e);if(e instanceof Date)return cp(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Xt(r));return no(n)}else return sn(kn.id(e))}}}function Xo(e){return up(e)}function La(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 Xd(e,t){return La(e,t,re)}function fp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!re(e[n[i]],t[r[i]]))return!1;return!0}function re(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:rp(e)?e.Equals(t):dn(e)?dn(t)&&Xd(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Jd(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&fp(e,t)}function Jd(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Iu(e),r=t.getTime()+Iu(t)),n===r?0:n<r?-1:1}function Nr(e,t){return e===t?0:e<t?-1:1}function mp(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,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function El(e,t){return mp(e,t,gt)}function hp(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 i=0,o=0;i<n.length;i++){const s=n[i];if(s!==r[i])return s<r[i]?-1:1;if(o=gt(e[s],t[s]),o!==0)return o}return 0}function gt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:np(e)?e.CompareTo(t):dn(e)?dn(t)?El(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Jd(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?hp(e,t):-1}function g(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function pp(e){dn(e)?e.splice(0):e.clear()}const xs=new WeakMap;function Qe(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return xs.set(t,e),t}function ur(e){return xs.get(e)??(t=>n=>e(t,n))}function Va(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return xs.set(t,e),t}function aa(e){return xs.get(e)??(t=>n=>r=>e(t,n,r))}function gp(e){let t=0,n="[";for(const r of e){if(t===0)n+=tt(r);else if(t===100){n+="; ...";break}else n+="; "+tt(r);t++}return n+"]"}function tt(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 gp(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+tt(o,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function yp(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=tt(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>tt(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class X{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return yp(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Xt(n));return t.splice(0,0,sn(this.tag)),no(t)}Equals(t){return this===t?!0:Ko(this,t)&&this.tag===t.tag?Xd(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Ko(this,t)?this.tag===t.tag?El(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function wp(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function vp(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+tt(n)).join(`
3
- `)+" }"}function bp(e){const t=Object.values(e).map(n=>Xt(n));return no(t)}function _p(e,t){if(e===t)return!0;if(Ko(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!re(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function xp(e,t){if(e===t)return 0;if(Ko(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=gt(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Ce{toJSON(){return wp(this)}toString(){return vp(this)}GetHashCode(){return bp(this)}Equals(t){return _p(this,t)}CompareTo(t){return xp(this,t)}}class ht{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 Cp{constructor(t){this.message=t}}function Sp(e){return e instanceof Cp||e instanceof Error}function Ep(e){return e instanceof Promise}function Jo(e){return Sp(e)||Ep(e)?e:new Error(String(e))}const Al=tt(ep),mi=Symbol("numeric");function Qd(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[mi])}function Ap(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ha(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[mi]().multiply(t)}function Ho(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[mi]().toFixed(t)}function Qo(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[mi]().toPrecision(t)}function es(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[mi]().toExponential(t)}function ts(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[mi]().toHex()}const kp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Np=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Tp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$p=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ft(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Du(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Mp(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function kl(e,t,n){let r=0,i=0,o="";const s=n?ro(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=Ft(t,r,"d"),r+=i,i){case 1:o+=Ru(s);break;case 2:o+=Re(Ru(s),2);break;case 3:o+=kp[Lu(s)];break;case 4:o+=Np[Lu(s)];break}break;case"f":if(i=Ft(t,r,"f"),r+=i,i<=3){const b=10**(3-i);o+=Re(Math.floor(Ao(s)/b),i)}else i<=7&&(o+=(""+Ao(s)).padEnd(i,"0"));break;case"F":if(i=Ft(t,r,"F"),r+=i,i<=3){const b=10**(3-i),x=Math.floor(Ao(s)/b);x!=0&&(o+=Re(x,i))}else if(i<=7){const b=Ao(s);b!=0&&(o+=Re(b,3))}break;case"g":i=Ft(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=Ft(t,r,"h"),r+=i,i){case 1:o+=Eo(s)%12;break;case 2:o+=Re(Eo(s)%12,2);break}break;case"H":switch(i=Ft(t,r,"H"),r+=i,i){case 1:o+=Eo(s);break;case 2:o+=Re(Eo(s),2);break}break;case"K":switch(i=Ft(t,r,"K"),r+=i,i){case 1:switch(Ou(s)){case 1:o+="Z";break;case 2:o+=Gr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=Ft(t,r,"m"),r+=i,i){case 1:o+=Fu(s);break;case 2:o+=Re(Fu(s),2);break}break;case"M":switch(i=Ft(t,r,"M"),r+=i,i){case 1:o+=ko(s);break;case 2:o+=Re(ko(s),2);break;case 3:o+=Tp[ko(s)-1];break;case 4:o+=$p[ko(s)-1];break}break;case"s":switch(i=Ft(t,r,"s"),r+=i,i){case 1:o+=Pu(s);break;case 2:o+=Re(Pu(s),2);break}break;case"t":switch(i=Ft(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=Ft(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=Re(s.getFullYear()%100,2);break;case 3:o+=Re(s.getFullYear(),3);break;case 4:o+=Re(s.getFullYear(),4);break;case 5:o+=Re(s.getFullYear(),5);break}break;case"z":i=Ft(t,r,"z"),r+=i;let l="";switch(Ou(s)){case 1:l="+00:00";break;case 2:l=Gr(s.getTimezoneOffset()*-6e4);break;case 0:l=Gr(Hp(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${Re(f,2)}`;break;default:o+=`${u}${Re(f,2)}:${Re(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=Mp(t,r);o+=p,r+=h;break;case"%":const m=Du(t,r);if(m>=0&&m!==37)r+=2,o+=kl(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const w=Du(t,r);if(w>=0)r+=2,o+=String.fromCharCode(w);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Ou(e){return e.kind||0}function Gr(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 ns(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 Ip(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?Gr(e.getTimezoneOffset()*-6e4):"")}}function Dp(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Gr(t)}function Op(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," ")+Gr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ns(n,"first");case"T":case"t":return ns(n,"second");case"O":case"o":return Dp(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return kl(n,t,!0)}function Rp(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?ns(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ns(e,"second"):e.toLocaleTimeString();case"O":case"o":return Ip(e,n);default:throw new Error("Unrecognized Date print format")}else return kl(e,t,n)}function Cs(e,t,n){return e.offset!=null?Op(e,t):Rp(e,t)}function ro(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Fp(){return ro(-621355968e5,1)}function ef(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 i=/^\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(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Pp(e,t=!1){const[n,r]=ef(e),i=r!=null?t&&r==="Z"?1:2:0;return ro(n.getTime(),i)}function Lp(e,t){try{return t.contents=Pp(e),!0}catch{return!1}}function Vp(e){return e.kind===1?e:ro(e.getTime(),1)}function Hp(e){return e.kind===2?e:ro(e.getTime(),2)}function Ru(e){return e.kind===1?e.getUTCDate():e.getDate()}function Eo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Ao(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Fu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function ko(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Pu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Lu(e){return e.kind===1?e.getUTCDay():e.getDay()}function jp(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 tf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Vu(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 i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function Nl(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=jp(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),l=Vu(e,a),u=Vu.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+u.replace(e,n)+t.substring(i+u.length)}else return t.replace(e,n)}const ki=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Bp=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function nf(e,t){return Ap(e,t)<0}function zn(e){return{input:e,cont:Wp(e)}}function rf(e,t){return typeof t=="string"?e(t):t.cont(e)}function ri(e){return rf(t=>t,e)}function of(e){return rf(t=>{throw new Error(t)},e)}function Up(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Qd(e))switch(i.toLowerCase()!=="x"&&(nf(e,0)?(e=Ha(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=Ho(e,r);break;case"g":case"G":e=r!=null?Qo(e,r):Qo(e);break;case"e":case"E":e=r!=null?es(e,r):es(e);break;case"x":e=ts(e);break;case"X":e=ts(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Cs(e):e=tt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=qi(e,n-o.length,l,a),e=o+e):e=qi(o+e,n,l,a)}return e}function sf(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,c,p,h]=l[0];let m=c;if(i>=0)m=i,i=-1;else if(m==="*"){if(u<0)throw new Error("Non-negative number required");i=u;continue}s+=a[0],s+=Up(u,f,m,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):sf(e,a,l,s,i)}}function Wp(e){return t=>{ki.lastIndex=0;const n=[],r=[];let i=0,o=ki.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=ki.lastIndex,ki.lastIndex-=1,o=ki.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),sf(t,n,r))}}function af(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Bp,(r,i,o,s,a,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[i];if(Qd(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Ho(u,a);break;case"g":case"G":u=a!=null?Qo(u,a):Qo(u);break;case"e":case"E":u=a!=null?es(u,a):es(u);break;case"p":case"P":a=a??2,u=Ho(Ha(u,100),a)+" %";break;case"d":case"D":u=a!=null?la(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?la(ts(u),a,"0"):ts(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,h)=>{nf(u,0)&&(u=Ha(u,-1),f="-"),h=h==null?"":h.substring(1),u=Ho(u,Math.max(h.length,0));let[m,w]=u.split(".");w||(w="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;m=la(m,b,"0");const x=h.replace(/#+$/,"").length;if(x>w.length?w=Gp(w,x,"0"):x<w.length&&(w=w.substring(0,x)+w.substring(x).replace(/0+$/,"")),p.indexOf(",")>0){const C=m.length%3,E=Math.floor(m.length/3);let M=C>0?m.substr(0,C)+(E>0?",":""):"";for(let I=0;I<E;I++)M+=m.substr(C+I*3,3)+(I<E-1?",":"");m=M}return w.length>0?m+"."+w:m}),u=f+u}}else u instanceof Date?u=Cs(u,l||s):u=tt(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=qi(String(u),Math.abs(o)," ",o<0)),u})}function Tl(e){return typeof e!="string"||e.length===0}function io(e){return typeof e!="string"||/^\s*$/.test(e)}function bt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function qi(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function la(e,t,n){return qi(e,t,n)}function Gp(e,t,n){return qi(e,t,n,!0)}function zp(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 i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(tf),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(u).trim():e.substring(u);(!i||c.length>0)&&s.push(c),l=!1}else{const c=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!i||c.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function qp(e,...t){if(t.length===0)return e.trim();const n="["+tf(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class yr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Xt(this.value)}Equals(t){return t==null?!1:re(this.value,t instanceof yr?t.value:t)}CompareTo(t){return t==null?1:gt(this.value,t instanceof yr?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof yr?e.value:e}function Li(e){return e instanceof yr?e.value:e}function ct(e){return e==null||e instanceof yr?new yr(e):e}function lf(e){return e==null?null:V(e)}function Ss(e){return e==null?[]:[V(e)]}function rt(e,t){return e!=null?V(e):t}function Yp(e,t){return e!=null?V(e):t()}function At(e,t){return t!=null?ct(e(V(t))):void 0}function Zp(e,t){return t!=null?e(V(t)):void 0}class Kp{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class zt{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return Ge(this)}GetHashCode(){return uf(this)}Equals(t){return ja(this,t)}}function Bt(e){return e.generics!=null?e.generics:[]}function uf(e){const t=Qn(e.fullname),n=Bt(e).map(uf);return no([t,...n])}function ja(e,t){return e.fullname===""?t.fullname===""&&La(Yi(e),Yi(t),([n,r],[i,o])=>n===i&&ja(r,o)):e.fullname===t.fullname&&La(Bt(e),Bt(t),ja)}function qn(e,t,n,r){return new zt(e,t,n,r)}function Qt(e,t,n,r){return new zt(e,t,n,void 0,r)}function cf(e,t,n,r){const i=new zt(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new Kp(i,a,o[a],s))});return i}function zr(e){return new zt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function wr(e){return new zt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Xp=new zt("System.Object"),$n=new zt("System.String"),Jp=new zt("System.Boolean"),kt=new zt("System.Int32");function qr(e){if(Array.isArray(e))return e[0];if(e instanceof zt){const t=oo(e);if(t!=null)return qr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Ge(e){const t=oo(e);return t!=null?Ge(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Ge(n)).join(",")+"]"}function df(e){return oo(e)!=null}function oo(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function ff(e){return e.generics!=null&&e.generics.length>0}function $l(e){return e.enumCases!=null&&e.enumCases.length>0}function mf(e){return e.generics==null?e:new zt(e.fullname,e.generics.map(()=>Xp))}function hf(e){var t;return(t=e.generics)==null?void 0:t[0]}function Dr(e){if($l(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Qp(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 Or(e,t){const n=parseInt(t,10);return Qp(e,isNaN(n)?t:n)[1]}function pf(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Yi(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function gf(e){if(Ml(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function yf(e){return e instanceof zt?e.cases!=null:e instanceof X}function wf(e){return e instanceof zt?e.fields!=null:e instanceof Ce}function Ml(e){return e.fullname.startsWith("System.Tuple")}function eg(e,t){const r=pf(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function vf(e){return e.fields==null?[]:e.fields}function tg(e,t){return e[t[0]]}function ng(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 rg(e,t){const n=Yi(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,[i,o],s)=>(r[i]=t[s],r),{})}function ig(e,t){return e}const bf="Collection was empty.",og="The input must be non-negative.",_f="The input sequence has an insufficient number of elements.";function ii(e,t){return new Array(t)}function Hu(e,t){return e>t?e:t}function ju(e,t){return e<t?e:t}function xf(e,t,n){const r=e.length|0,i=t.length|0,o=ii(n,r+i);for(let s=0;s<=r-1;s++)_t(o,s,pe(s,e));for(let s=0;s<=i-1;s++)_t(o,s+r,pe(s,t));return o}function so(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function sg(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return pe(e.length-1,e)}function Cf(e,t,n){const r=t.length|0,i=ii(n,r);for(let o=0;o<=r-1;o++)_t(i,o,e(o,pe(o,t)));return i}function ze(e,t,n){const r=t.length|0,i=ii(n,r);for(let o=0;o<=r-1;o++)_t(i,o,e(pe(o,t)));return i}function rs(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return ii(t,0);case 1:return pe(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=pe(a,n);o=o+l.length|0}const s=ii(t,o);for(let a=0;a<=n.length-1;a++){const l=pe(a,n);for(let u=0;u<=l.length-1;u++)_t(s,i,pe(u,l)),i=i+1|0}return s}}}function ag(e,t,n,r,i){const o=rt(n,0)|0,s=rt(At(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,pe(u,e)))return u|0;l=u+1;continue e}})(o)|0}function hi(e,t,n){return ag(t,e,void 0,void 0,n)>=0}function lg(e,t){const n=ii(t,1);return _t(n,0,e),n}function ug(e){return e.slice().reverse()}function Es(e,t){return t.find(e)}function Ut(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(pe(i,t));if(o!=null){const s=V(o);r.push(s)}}return re(n,xe())?r:ze(i=>i,r,n)}function As(e,t,n){const r=e;return n.reduce(r,t)}function cg(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function dg(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function vr(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,i=!0;const o=t.length|0,s=n.length|0;if(o>s)return!1;if(o<s)return!1;for(;r<o&&i;)i=e(pe(r,t),pe(r,n)),r=r+1|0;return i}}function Bu(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return pe(0,e)}function fg(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function pe(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function _t(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Sf(e,t){if(!(e<0||e>=t.length))return ct(t[e])}function Ef(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class xt extends Ce{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+bt("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),c=V(u);if(re(s.head,a.head)){i=f,o=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,l=o,u=l.tail;if(u!=null){const f=V(u);if(s>18)return a|0;r=s+1,i=(a<<1)+Xt(l.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),c=V(u),p=gt(s.head,a.head)|0;if(p===0){i=f,o=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return hg(this)}[Symbol.iterator](){return fi($e(this))}"System.Collections.IEnumerable.GetEnumerator"(){return $e(this)}}class mg{constructor(t){this.xs=t,this.it=this.xs,this.current=xe()}"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=V(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=xe()}Dispose(){}}function hg(e){return new mg(e)}function it(){return new xt(xe(),void 0)}function ao(e,t){return new xt(e,t)}function er(e){return e.tail==null}function Af(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=V(s);continue e}else return i|0}})(0,e)|0}function pi(e){if(e.tail!=null)return e.head;throw new Error(bf+"\\nParameter name: list")}function Ct(e){const t=e.tail;if(t!=null)return V(t);throw new Error(bf+"\\nParameter name: list")}function dt(){return it()}function Yt(e,t){return ao(e,t)}function me(e){return ao(e,it())}function Ae(e){return er(e)}function an(e){return Af(e)}function ce(e){return pi(e)}function Ee(e){return Ct(e)}function Rn(e){const t=Af(e)|0,n=so(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!er(a)){_t(n,s,pi(a)),i=s+1,o=Ct(a);continue e}break}})(0,e),n}function Fn(e,t,n){let r=t,i=n;for(;!er(i);)r=e(r,ce(i)),i=Ct(i);return r}function Il(e){return Fn((t,n)=>ao(n,t),it(),e)}function pg(e,t,n){return Ef(e,Rn(t),n)}function gg(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,u=s;if(er(u))return l;i=a+1,o=e(a,l,pi(u)),s=Ct(u);continue e}})(0,t,n)}function is(e,t){Fn((n,r)=>{e(r)},void 0,t)}function Ye(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=ao(pe(r,e),n);return n}function y(e){return Ye(e,it())}function yg(e){let t,n;if(dn(e))return y(e);if(e instanceof xt)return e;{const r=it();let i=r;const o=$e(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new xt(l,void 0),t.tail=n,n)}}finally{ke(o)}const s=i,a=it();return s.tail=a,Ct(r)}}function lo(e,t){return Fn((n,r)=>ao(r,n),t,Il(e))}function Ba(e,t){const n=it(),r=gg((o,s,a)=>{const l=new xt(e(o,a),void 0);return s.tail=l,l},n,t),i=it();return r.tail=i,Ct(n)}function uo(e,t){const n=it(),r=Fn((o,s)=>{const a=new xt(e(s),void 0);return o.tail=a,a},n,t),i=it();return r.tail=i,Ct(n)}function wg(e,t){return(r=>{e:for(;;){const i=r;if(er(i))return;{const o=e(pi(i));if(o==null){r=Ct(i);continue e}else return o}}})(t)}function vg(e,t){return wg(n=>e(n)?ct(n):void 0,t)}function bg(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(er(s))return;if(e(pi(s)))return o;r=o+1,i=Ct(s);continue e}})(0,t)}function Bn(e,t){const n=it(),r=Fn((o,s)=>{if(e(s)){const a=new xt(s,void 0);return o.tail=a,a}else return o},n,t),i=it();return r.tail=i,Ct(n)}function _g(e,t){const n=it(),r=it(),i=n,o=Fn((l,u)=>{let f,c;const p=l[0],h=l[1];return e(u)?[(f=new xt(u,void 0),p.tail=f,f),h]:[p,(c=new xt(u,void 0),h.tail=c,c)]},[i,r],t),s=it();o[0].tail=s;const a=it();return o[1].tail=a,[Ct(i),Ct(r)]}function xg(e,t){const n=it(),r=Fn((o,s)=>{const a=e(s);if(a==null)return o;{const l=new xt(V(a),void 0);return o.tail=l,l}},n,t),i=it();return r.tail=i,Ct(n)}function Cg(e,t){return bg(e,t)!=null}function kf(e,t){const n=Rn(t);return n.sort(e),y(n)}function Sg(e,t,n){return kf((r,i)=>n.Compare(e(r),e(i)),t)}function Eg(e,t,n){return kf((r,i)=>n.Compare(e(r),e(i))*-1,t)}function Nf(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(er(r))throw new Error(_f+"\\nParameter name: list");e=n-1,t=Ct(r);continue e}}function Tf(e,t){if(e<0)throw new Error(og+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const f=s,c=a,p=l;if(f<=0)return c;if(er(p))throw new Error(_f+"\\nParameter name: list");s=f-1,a=(u=new xt(pi(p),void 0),c.tail=u,u),l=Ct(p);continue e}},r=it(),i=n(e,r,t),o=it();return i.tail=o,Ct(r)}function Ag(e,t,n){const r=an(n)|0;let i;const o=rt(e,0)|0;i=o<0?0:o;let s;const a=rt(t,r-1)|0;return s=a>=r?r-1:a,s<i?it():Tf(s-i+1,Nf(i,n))}const v=K;function kg(e){const t=y([d("style",{children:[Al]}),d("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return d("div",{children:v.Children.toArray(Array.from(t))})}function Ng(e){throw new Error(e)}const Tg="Enumeration already finished.",$g="Enumeration has not started. Call MoveNext.",$f="The input sequence has an insufficient number of elements.",Mg="Reset is not supported on this enumerator.";function Ig(){throw new Error(Mg)}function Dl(){throw new Error($g)}function Ua(){throw new Error(Tg)}class Dg{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=$e(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+tt(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{ke(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return fi($e(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Og(e){return new Dg(e)}class Rg{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"(){Ig()}Dispose(){this.dispose()}}function ks(e,t,n){return new Rg(e,t,n)}function Fg(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{ke(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{ke(a)}finally{t=void 0}}};return ks(()=>(r?i&&Ua():Dl(),o!=null?V(o):Ua()),()=>{let a;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=V(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=ct(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{ke(c)}finally{n=void 0}}else{const c=V(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),$e(a)):(s(),l=!1)}else t=$e(e)}return V(l)}},()=>{i||s()})}function Pg(e,t){return ks(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{ke(t)}finally{}})}function Mf(e,t,n){let r=!1,i,o=ct(e());const s=()=>{if(o!=null){const l=V(o);try{n(l)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return ks(()=>(r||Dl(),i!=null?V(i):Ua()),()=>{if(r||(r=!0),o!=null){const l=V(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(i=u,!0):(a(),!1)}else return!1},s)}function Lg(e,t){let n,r=t;return ks(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return Dl()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function Vg(e,t){t==null&&Ng(e)}function gi(e){return Og(e)}function yn(e){return Vg("source",e),$e(e)}function T(e){return gi(()=>$e(e()))}function Ns(e){return gi(()=>Fg(e))}function Hg(e,t){return gi(()=>Lg(e,t))}function mt(){return T(()=>new Array(0))}function A(e){return T(()=>lg(e))}function Yn(e){return e instanceof xt?Rn(e):Array.from(e)}function ne(e){return dn(e)?y(e):e instanceof xt?e:yg(e)}function If(e,t,n){return gi(()=>Mf(e,t,n))}function Df(e,t,n){return gi(()=>{let r=-1;return Mf(e,i=>(r=r+1|0,t(r,i)),n)})}function H(e,t){return Ns([e,t])}function jg(e,t){return If(()=>yn(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=>{ke(n)})}function Bg(e,t,n){const r=yn(t);try{const i=yn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{ke(i)}}finally{ke(r)}}function Rr(e,t,n){const r=yn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{ke(r)}}function Ol(e,t){return jg(n=>{if(e(n))return ct(n)},t)}function co(e,t,n){const r=yn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{ke(r)}}function Tr(e,t){co((n,r)=>{e(r)},void 0,t)}function Of(e,t){co((n,r)=>(e(n,r),n+1|0),0,t)}function Ug(e){if(dn(e))return e.length|0;if(e instanceof xt)return an(e)|0;{const t=yn(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{ke(t)}}}function je(e,t){return If(()=>yn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ct(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ke(n)})}function Wg(e,t){return Df(()=>yn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ct(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{ke(n)})}function Gg(e){return T(()=>ug(Yn(e)))}function zg(e,t){return gi(()=>{const n=yn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error($f+"\\nParameter name: source");return Pg(()=>{},n)}catch(r){throw ke(n),r}})}function qg(e,t){return Df(()=>yn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ct(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error($f+"\\nParameter name: source")}else return},n=>{ke(n)})}function Ts(e,t){return T(()=>Ns(je(e,t)))}const cr={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ua(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 Yg(e,t){switch(t){case cr.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case cr.SnakeCase:return ua(e,"_");case cr.SnakeCaseAllCaps:return ua(e,"_").toUpperCase();case cr.KebabCase:return ua(e,"-");case cr.None:default:return e}}function $r(e,t=cr.None){const n={},r=t;function i(s){throw new Error("Cannot infer key and value of "+String(s))}function o(s,a,l){s=Yg(s,a),n[s]=l}for(let s of e){let a=cr.None;if(s==null&&i(s),s instanceof X){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:i(s);break;case 1:o(s[0],a,!0);break;case 2:const l=s[1];o(s[0],a,l);break;default:o(s[0],a,s.slice(1))}else typeof s=="string"?o(s,a,!0):i(s)}return n}function Rl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Rf(e,t){return t.has(e)?!1:(t.add(e),!0)}function Zg(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function Zn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ff{constructor(t,n){const r=new ht(xe());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=$e(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();ca(r.contents,o)}}finally{ke(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return $e(this)}GetEnumerator(){return $e(Ns(this.hashMap.values()))}[Symbol.iterator](){return fi($e(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){ca(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){Uu(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return Gu(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Of((i,o)=>{_t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Wu(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return zu(this,t)}get size(){return Wu(this)|0}add(t){const n=this;return ca(n,t),n}clear(){Uu(this)}delete(t){return zu(this,t)}has(t){return Gu(this,t)}keys(){return je(n=>n,this)}values(){return je(n=>n,this)}entries(){return je(n=>[n,n],this)}forEach(t,n){const r=this;Tr(i=>{t(i,i,r)},r)}}function Fl(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=xe();return r=[Rl(e.hashMap,n,new ht(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function Uu(e){e.hashMap.clear()}function Wu(e){let t=0,n=$e(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{ke(n)}return t|0}function ca(e,t){const n=Fl(e,t);return n[0]?n[2]>-1?!1:(Zn(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Gu(e,t){const n=Fl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function zu(e,t){const n=Fl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Zn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class Pf{constructor(t){this.k=t}}function Ht(e){return new Pf(e)}function ge(e){return e.k}class Te extends Pf{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function jt(e,t,n,r){return new Te(e,t,n,r)}function Be(e){return e.left}function Ve(e){return e.right}function Wr(e){return e.h}function Lf(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=V(n);if(i instanceof Te){const o=i;e=Be(o),t=Lf(Ve(o),r+1);continue e}else return r+1|0}else return r|0}}function Kg(e){return Lf(e,0)}function nn(e,t,n){let r,i,o;const s=e;if(s!=null){const f=V(s);o=f instanceof Te?(r=f,Wr(r)):1}else o=0;let a;const l=n;if(l!=null){const f=V(l);a=f instanceof Te?(i=f,Wr(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Ht(t):jt(t,e,n,u+1)}function qu(e,t,n){let r,i,o,s,a,l,u,f,c;const p=e;if(p!=null){const w=V(p);c=w instanceof Te?(r=w,Wr(r)):1}else c=0;let h;const m=n;if(m!=null){const w=V(m);h=w instanceof Te?(i=w,Wr(i)):1}else h=0;if(h>c+2){const w=V(n);if(w instanceof Te){const b=w;if(o=Be(b),(o!=null?(s=V(o),s instanceof Te?(a=s,Wr(a)):1):0)>c+1){const x=V(Be(b));if(x instanceof Te){const C=x;return nn(nn(e,t,Be(C)),ge(C),nn(Ve(C),ge(b),Ve(b)))}else throw new Error("internal error: Set.rebalance")}else return nn(nn(e,t,Be(b)),ge(b),Ve(b))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const w=V(e);if(w instanceof Te){const b=w;if(l=Ve(b),(l!=null?(u=V(l),u instanceof Te?(f=u,Wr(f)):1):0)>h+1){const x=V(Ve(b));if(x instanceof Te){const C=x;return nn(nn(Be(b),ge(b),Be(C)),ge(C),nn(Ve(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return nn(Be(b),ge(b),nn(Ve(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return nn(e,t,n)}function oi(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,ge(r))|0;if(r instanceof Te){const o=r;return i<0?qu(oi(e,t,Be(o)),ge(o),Ve(o)):i===0?n:qu(Be(o),ge(o),oi(e,t,Ve(o)))}else{const o=e.Compare(t,ge(r))|0;return o<0?jt(t,void 0,n,2):o===0?n:jt(t,n,void 0,2)}}else return Ht(t)}function Vf(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ge(s))|0;if(s instanceof Te){const l=s;if(a<0){e=r,t=i,n=Be(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Ve(l);continue e}}else return a===0}else return!1}}function Hf(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Te){const o=i;Hf(n,Be(o)),n(ge(o)),e=n,t=Ve(o);continue e}else n(ge(i))}break}}class Xg extends Ce{constructor(t,n){super(),this.stack=t,this.started=n}}function jf(e){e:for(;;){const t=e;if(Ae(t))return dt();{const n=ce(t),r=Ee(t);if(n!=null){const i=V(n);if(i instanceof Te){const o=i;e=Ye([Be(o),Ht(ge(o)),Ve(o)],r);continue e}else return t}else{e=r;continue e}}}}function Yu(e){return new Xg(jf(me(e)),!1)}function Jg(){throw new Error("Enumeration not started")}function Qg(){throw new Error("Enumeration already started")}function Zu(e){if(e.started){const t=e.stack;if(Ae(t))return Qg();if(ce(t)!=null){const n=V(ce(t));return ge(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Jg()}function e1(e){if(e.started){const t=e.stack;if(Ae(t))return!1;if(ce(t)!=null){if(V(ce(t))instanceof Te)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=jf(Ee(t)),!Ae(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Ae(e.stack)}function Ku(e){let t=Yu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Zu(t)},"System.Collections.IEnumerator.get_Current"(){return Zu(t)},"System.Collections.IEnumerator.MoveNext"(){return e1(t)},"System.Collections.IEnumerator.Reset"(){t=Yu(e)},Dispose(){}}}function t1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(Ae(i))return Ae(o)?0:-1;if(Ae(o))return 1;if(ce(o)!=null)if(ce(i)!=null){const s=V(ce(i)),a=V(ce(o));if(s instanceof Te){const l=s;if(Be(l)==null)if(a instanceof Te){const u=a;if(Be(u)==null){const f=r.Compare(ge(l),ge(u))|0;if(f!==0)return f|0;e=r,t=Yt(Ve(l),Ee(i)),n=Yt(Ve(u),Ee(o));continue e}else{let f,c,p,h,m;switch(Ae(i)?Ae(o)?f=2:ce(o)!=null?(f=1,h=Ee(o),m=V(ce(o))):f=2:ce(i)!=null?(f=0,c=Ee(i),p=V(ce(i))):Ae(o)?f=2:ce(o)!=null?(f=1,h=Ee(o),m=V(ce(o))):f=2,f){case 0:if(p instanceof Te){const w=p;e=r,t=Ye([Be(w),jt(ge(w),void 0,Ve(w),0)],c),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(p))],c),n=o;continue e}case 1:if(m instanceof Te){const w=m;e=r,t=i,n=Ye([Be(w),jt(ge(w),void 0,Ve(w),0)],h);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(m))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(ge(l),ge(a))|0;if(u!==0)return u|0;e=r,t=Yt(Ve(l),Ee(i)),n=Yt(void 0,Ee(o));continue e}else{let u,f,c,p,h;switch(Ae(i)?Ae(o)?u=2:ce(o)!=null?(u=1,p=Ee(o),h=V(ce(o))):u=2:ce(i)!=null?(u=0,f=Ee(i),c=V(ce(i))):Ae(o)?u=2:ce(o)!=null?(u=1,p=Ee(o),h=V(ce(o))):u=2,u){case 0:if(c instanceof Te){const m=c;e=r,t=Ye([Be(m),jt(ge(m),void 0,Ve(m),0)],f),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(c))],f),n=o;continue e}case 1:if(h instanceof Te){const m=h;e=r,t=i,n=Ye([Be(m),jt(ge(m),void 0,Ve(m),0)],p);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Te){const l=a;if(Be(l)==null){const u=r.Compare(ge(s),ge(l))|0;if(u!==0)return u|0;e=r,t=Yt(void 0,Ee(i)),n=Yt(Ve(l),Ee(o));continue e}else{let u,f,c,p,h;switch(Ae(i)?Ae(o)?u=2:ce(o)!=null?(u=1,p=Ee(o),h=V(ce(o))):u=2:ce(i)!=null?(u=0,f=Ee(i),c=V(ce(i))):Ae(o)?u=2:ce(o)!=null?(u=1,p=Ee(o),h=V(ce(o))):u=2,u){case 0:if(c instanceof Te){const m=c;e=r,t=Ye([Be(m),jt(ge(m),void 0,Ve(m),0)],f),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(c))],f),n=o;continue e}case 1:if(h instanceof Te){const m=h;e=r,t=i,n=Ye([Be(m),jt(ge(m),void 0,Ve(m),0)],p);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ge(s),ge(a))|0;if(l!==0)return l|0;e=r,t=Ee(i),n=Ee(o);continue e}}else{V(ce(o));let s,a,l,u,f;switch(Ae(i)?Ae(o)?s=2:ce(o)!=null?(s=1,u=Ee(o),f=V(ce(o))):s=2:ce(i)!=null?(s=0,a=Ee(i),l=V(ce(i))):Ae(o)?s=2:ce(o)!=null?(s=1,u=Ee(o),f=V(ce(o))):s=2,s){case 0:if(l instanceof Te){const c=l;e=r,t=Ye([Be(c),jt(ge(c),void 0,Ve(c),0)],a),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(l))],a),n=o;continue e}case 1:if(f instanceof Te){const c=f;e=r,t=i,n=Ye([Be(c),jt(ge(c),void 0,Ve(c),0)],u);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(ce(i)!=null){V(ce(i));let s,a,l,u,f;switch(Ae(i)?Ae(o)?s=2:ce(o)!=null?(s=1,u=Ee(o),f=V(ce(o))):s=2:ce(i)!=null?(s=0,a=Ee(i),l=V(ce(i))):Ae(o)?s=2:ce(o)!=null?(s=1,u=Ee(o),f=V(ce(o))):s=2,s){case 0:if(l instanceof Te){const c=l;e=r,t=Ye([Be(c),jt(ge(c),void 0,Ve(c),0)],a),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(l))],a),n=o;continue e}case 1:if(f instanceof Te){const c=f;e=r,t=i,n=Ye([Be(c),jt(ge(c),void 0,Ve(c),0)],u);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=Ee(i),n=Ee(o);continue e}}}function Xu(e,t,n){return t==null?n==null?0:-1:n==null?1:t1(e,me(t),me(n))|0}function n1(e,t,n){let r=n;Hf(i=>{_t(t,r,i),r=r+1|0},e)}function r1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=oi(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function i1(e,t){return As((n,r)=>oi(e,r,n),void 0,t)}function o1(e,t){return Fn((n,r)=>oi(e,r,n),void 0,t)}function Bf(e,t){if(dn(t))return i1(e,t);if(t instanceof xt)return o1(e,t);{const n=$e(t);try{return r1(e,void 0,n)}finally{ke(n)}}}class Pl{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return l1(this)|0}Equals(t){let n;const r=this;return t instanceof Pl&&(n=t,Xu(Yr(r),rn(r),rn(n))===0)}toString(){return"set ["+bt("; ",je(n=>tt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Xu(Yr(n),rn(n),rn(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 Vf(Yr(n),t,rn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){n1(rn(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return da(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return da(this)|0}GetEnumerator(){return Ku(rn(this))}[Symbol.iterator](){return fi($e(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ku(rn(this))}get size(){return da(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 Uf(this,t)}keys(){return je(n=>n,this)}values(){return je(n=>n,this)}entries(){return je(n=>[n,n],this)}forEach(t,n){const r=this;Tr(i=>{t(i,i,r)},r)}}function $s(e,t){return new Pl(e,t)}function Yr(e){return e.comparer}function rn(e){return e.tree}function s1(e){return $s(e,void 0)}function a1(e,t){return $s(Yr(e),oi(Yr(e),t,rn(e)))}function da(e){return Kg(rn(e))}function Uf(e,t){return Vf(Yr(e),t,rn(e))}function l1(e){let t=0;const n=$e(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Xt(r)+631|0}}finally{ke(n)}return Math.abs(t)|0}function Wa(e,t){return Uf(t,e)}function u1(e,t){return a1(t,e)}function c1(e){return s1(e)}function d1(e,t){return $s(t,Bf(t,e))}function f1(e,t){return $s(t,Bf(t,e))}function m1(){return dt()}function Ll(e){return bt("/",e)}function h1(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Ll(t),n])}function Wf(e,t,n){try{ke(n)}catch(r){e(["Error stopping subscription: "+Ll(t),r])}}function p1(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+Ll(n),i]);return}}function g1(e,t){is(n=>{Wf(e,n[0],n[1])},t)}function Ju(e,t,n,r,i,o){return is(s=>{h1(e,s)},n),is(s=>{Wf(e,s[0],s[1])},r),lo(i,xg(s=>p1(e,t,s[0],s[1]),o))}function y1(){return[dt(),c1({Compare:gt}),dt()]}function w1(e,t,n,r,i){return Wa(e,r)?[Yt(e,n),r,i]:[n,u1(e,r),Yt([e,t],i)]}function v1(e){return pg((t,n)=>w1(t[0],t[1],n[0],n[1],n[2]),e,y1())}const b1=dt();function Qu(e,t){const n=d1(uo(s=>s[0],e),{Compare:gt}),r=v1(t),i=r[1],o=r[0];if(n.Equals(i))return[o,dt(),e,dt()];{const s=_g(a=>Wa(a[0],i),e);return[o,s[1],s[0],Bn(a=>!Wa(a[0],n),r[2])]}}function _1(e){return new Gf(0,[e])}function x1(e){return new Gf(1,[e])}class Gf extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function C1(e){return _1(e)}function S1(e){return x1(e)}class E1{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function A1(e,t){t.Subscribe(new E1(e))}class k1{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 T1(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let N1=class extends k1{};function T1(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class $1{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 N1}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 M1(e,t){console.error(ct(e),t)}function I1(e,t){let n,r=new $1(e);r.AutoReset=!1,n=r,A1(t,n.Elapsed()),n.Enabled=!0,n.Start()}class D1{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,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Ms extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Ms.prototype)}}class Vl{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Vl.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Nn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Ms);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Jo(n))}});else try{e(t)}catch(n){t.onError(Jo(n))}}}function O1(e,t){return Nn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Jo(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function R1(e){return Nn(t=>t.onSuccess(e))}class F1{Bind(t,n){return O1(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Nn(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return R1(t)}ReturnFrom(t){return t}TryFinally(t,n){return Nn(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Nn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Jo(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Nn(t=>t.onSuccess(void 0))}}const Pe=new F1;function fa(e){}const P1=new D1;function L1(e){return Nn(t=>{e({onSuccess:n=>t.onSuccess(C1(n)),onError:n=>t.onSuccess(S1(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function V1(e){return Nn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function H1(e){return Nn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Ms)})})}function j1(e,t){return B1(e,t)}function zf(e,t){return j1(e,t)}function B1(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new Vl;e({onSuccess:t||fa,onError:fa,onCancel:fa,cancelToken:i||P1,trampoline:o})}function ec(e,t,n){is(r=>{try{r(t)}catch(i){e(i)}},n)}function Z(){return dt()}function qf(e){return me(e)}function Yf(e,t,n,r){return me(i=>{e(Pe.Delay(()=>Pe.Bind(L1(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),Pe.Zero()})))})}function Zf(e){I1(1,t=>{zf(e)})}function U1(e,t,n,r){const i=gt(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return s=>{const a=gt(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function W1(e,t,n,r,i){const o=U1(t,n,r,i);return T(()=>Hg(o,e))}function Hl(e,t,n){return W1(e,t,n,0,(r,i)=>r+i)}class Zr extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class G1{constructor(t){this.state=new Zr(0,[so(new Array(Hu(t,10)),0,Hu(t,10),null),0])}}function z1(e){return new G1(e)}function tc(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,i=t.fields[0],o=(r+1)%i.length|0;return o===n?e.state=new Zr(0,[i,n]):e.state=new Zr(1,[i,n,o]),ct(pe(r,i))}else return}function q1(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,i=n.fields[2]|0,o=n.fields[0];_t(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new Zr(1,[Y1(e,i,o),o.length,0]):e.state=new Zr(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];_t(i,r,t);const o=(r+1)%i.length|0;e.state=new Zr(1,[i,o,r])}}function Y1(e,t,n){return Array.from(T(()=>H(zg(t,n),T(()=>H(qg(t,n),T(()=>Ts(r=>A(xe()),Hl(0,1,n.length))))))))}class jl extends Ce{constructor(t,n,r,i,o,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=s,this.termination=a}}function Mr(e,t,n){return new jl(e,t,r=>m1(),n,Qe(r=>{const i=ur(n)(r);return o=>{i(o)}}),r=>{M1(r[0],r[1])},[r=>!1,r=>{}])}function Z1(e,t){return new jl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function K1(e){return e.init}function X1(e,t,n,r,i,o,s){const a=ur(e)(s.init),l=aa(t)(ur(s.update)),u=aa(n)(ur(s.view)),f=aa(r)(ur(s.setState));return new jl(a,Qe(l),ur(i)(s.subscribe),Qe(u),Qe(f),s.onError,o(s.termination))}function J1(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=z1(10);let u=!1,f=o,c=b1,p=!1;const h=b=>{p||(q1(l,b),u||(u=!0,w(),u=!1))},m=ur(e)(h),w=()=>{let b,x=tc(l);for(;!p&&x!=null;){const C=V(x);if(a[0](C))g1(n.onError,c),a[1](f),p=!0;else{const E=n.update(C,f),M=E[0],I=n.subscribe(M);n.setState(M,m),ec(F=>{n.onError([ri(zn("Error handling the message: %A"))(C),F])},m,E[1]),f=M,c=(b=Qu(c,I),Ju(n.onError,m,b[0],b[1],b[2],b[3])),x=tc(l)}}};u=!0,n.setState(o,m),ec(b=>{n.onError([ri(zn("Error intitializing:")),b])},m,i[1]),c=(r=Qu(c,s),Ju(n.onError,m,r[0],r[1],r[2],r[3])),w(),u=!1}function Q1(e,t){J1(Qe(n=>n),e,t)}function ey(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 i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var ma={exports:{}},ha={};const ty=ey(Zo);/**
1
+ var no,_e,yd,lr,du,wd,Ma,al,Ia,Da,vd,qi={},bd=[],A0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ws=Array.isArray;function An(e,t){for(var n in t)e[n]=t[n];return e}function _d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?no.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Bi(e,s,r,i,null)}function Bi(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++yd,__i:-1,__u:0};return i==null&&_e.vnode!=null&&_e.vnode(o),o}function vs(){return{current:null}}function Ue(e){return e.children}function un(e,t){this.props=e,this.context=t}function ti(e,t){if(t==null)return e.__?ti(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"?ti(e):null}function xd(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 xd(e)}}function Oa(e){(!e.__d&&(e.__d=!0)&&lr.push(e)&&!qo.__r++||du!==_e.debounceRendering)&&((du=_e.debounceRendering)||wd)(qo)}function qo(){var e,t,n,r,i,o,s,a;for(lr.sort(Ma);e=lr.shift();)e.__d&&(t=lr.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=An({},i)).__v=i.__v+1,_e.vnode&&_e.vnode(r),ll(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??ti(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Ed(s,r,a),r.__e!=o&&xd(r)),lr.length>t&&lr.sort(Ma));qo.__r=0}function Cd(e,t,n,r,i,o,s,a,l,u,f){var c,p,h,m,g,b=r&&r.__k||bd,x=t.length;for(n.__d=l,k0(n,t,b),l=n.__d,c=0;c<x;c++)(h=n.__k[c])!=null&&(p=h.__i===-1?qi:b[h.__i]||qi,h.__i=c,ll(e,h,p,i,o,s,a,l,u,f),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&ul(p.ref,null,h),f.push(h.ref,h.__c||m,h)),g==null&&m!=null&&(g=m),65536&h.__u||p.__k===h.__k?l=Sd(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function k0(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+c,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Bi(null,i,null,null,null):ws(i)?Bi(Ue,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Bi(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(a=i.__i=N0(i,n,s,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&c--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?c--:a==s+1?c++:(a>s?c--:c++,i.__u|=65536))):i=e.__k[r]=null;if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ti(o)),Ad(o,o))}function Sd(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Sd(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ti(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Tn(e,t){return t=t||[],e==null||typeof e=="boolean"||(ws(e)?e.some(function(n){Tn(n,t)}):t.push(e)),t}function N0(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if((typeof o!="function"||o===Ue||i)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function fu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||A0.test(t)?n:n+"px"}function So(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||fu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||fu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=al,e.addEventListener(t,o?Da:Ia,o)):e.removeEventListener(t,o?Da:Ia,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function mu(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=al++;else if(t.t<n.u)return;return _e.event&&(t=_e.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function ll(e,t,n,r,i,o,s,a,l,u){var f,c,p,h,m,g,b,x,C,E,$,I,L,P,S,_,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=_e.__b)&&f(t);e:if(typeof k=="function")try{if(x=t.props,C="prototype"in k&&k.prototype.render,E=(f=k.contextType)&&r[f.__c],$=f?E?E.props.value:f.__:r,n.__c?b=(c=t.__c=n.__c).__=c.__E:(C?t.__c=c=new k(x,$):(t.__c=c=new un(x,$),c.constructor=k,c.render=$0),E&&E.sub(c),c.props=x,c.state||(c.state={}),c.context=$,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),C&&c.__s==null&&(c.__s=c.state),C&&k.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=An({},c.__s)),An(c.__s,k.getDerivedStateFromProps(x,c.__s))),h=c.props,m=c.state,c.__v=t,p)C&&k.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),C&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(C&&k.getDerivedStateFromProps==null&&x!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(x,$),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(x,c.__s,$)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=x,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),I=0;I<c._sb.length;I++)c.__h.push(c._sb[I]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(x,c.__s,$),C&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,m,g)})}if(c.context=$,c.props=x,c.__P=e,c.__e=!1,L=_e.__r,P=0,C){for(c.state=c.__s,c.__d=!1,L&&L(t),f=c.render(c.props,c.state,c.context),S=0;S<c._sb.length;S++)c.__h.push(c._sb[S]);c._sb=[]}else do c.__d=!1,L&&L(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++P<25);c.state=c.__s,c.getChildContext!=null&&(r=An(An({},r),c.getChildContext())),C&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,m)),Cd(e,ws(_=f!=null&&f.type===Ue&&f.key==null?f.props.children:f)?_:[_],t,n,r,i,o,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),b&&(c.__E=c.__=null)}catch(N){if(t.__v=null,l||o!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;_e.__e(N,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=T0(n.__e,t,n,r,i,o,s,l,u);(f=_e.diffed)&&f(t)}function Ed(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ul(n[r],n[++r],n[++r]);_e.__c&&_e.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){_e.__e(o,i.__v)}})}function T0(e,t,n,r,i,o,s,a,l){var u,f,c,p,h,m,g,b=n.props,x=t.props,C=t.type;if(C==="svg"?i="http://www.w3.org/2000/svg":C==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!C&&(C?h.localName===C:h.nodeType===3)){e=h,o[u]=null;break}}if(e==null){if(C===null)return document.createTextNode(x);e=document.createElementNS(i,C,x.is&&x),a&&(_e.__m&&_e.__m(t,o),a=!1),o=null}if(C===null)b===x||a&&e.data===x||(e.data=x);else{if(o=o&&no.call(e.childNodes),b=n.props||qi,!a&&o!=null)for(b={},u=0;u<e.attributes.length;u++)b[(h=e.attributes[u]).name]=h.value;for(u in b)if(h=b[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in x)){if(u=="value"&&"defaultValue"in x||u=="checked"&&"defaultChecked"in x)continue;So(e,u,null,h,i)}}for(u in x)h=x[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?m=h:u=="checked"?g=h:a&&typeof h!="function"||b[u]===h||So(e,u,h,b[u],i);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Cd(e,ws(p)?p:[p],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&ti(n,0),a,l),o!=null)for(u=o.length;u--;)_d(o[u]);a||(u="value",C==="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||C==="progress"&&!m||C==="option"&&m!==b[u])&&So(e,u,m,b[u],i),u="checked",g!==void 0&&g!==e[u]&&So(e,u,g,b[u],i))}return e}function ul(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){_e.__e(i,n)}}function Ad(e,t,n){var r,i;if(_e.unmount&&_e.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ul(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){_e.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Ad(r[i],t,n||typeof e.type!="function");n||_d(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function $0(e,t,n){return this.constructor(e,n)}function Gn(e,t,n){var r,i,o,s;_e.__&&_e.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],ll(t,e=(!r&&n||t).__k=d(Ue,null,[e]),i||qi,qi,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?no.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),Ed(o,e,s)}function cl(e,t){Gn(e,t,cl)}function dl(e,t,n){var r,i,o,s,a=An({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?no.call(arguments,2):n),Bi(e.type,a,r||e.key,i||e.ref,null)}function Je(e,t){var n={__c:t="__cC"+vd++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,Oa(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}no=bd.slice,_e={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},yd=0,un.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=An({},this.state),typeof e=="function"&&(e=e(An({},n),this.props)),e&&An(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Oa(this))},un.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Oa(this))},un.prototype.render=Ue,lr=[],wd=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ma=function(e,t){return e.__v.__b-t.__v.__b},qo.__r=0,al=0,Ia=mu(!1),Da=mu(!0),vd=0;function fl(){return(fl=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 M0=["context","children"];function I0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)i.indexOf(o=l[s])>=0||(a[o]=r[o]);return a}(e,M0);return dl(t,n)}function D0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=d(I0,fl({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[kd(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?o[f]=d(hu,{name:f},u):i[s]=u}var c=r?d(hu,null,i):i;return d(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?cl:Gn)(this._vdom,this._root)}function kd(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function O0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[kd(e)]=n,this._vdom=dl(this._vdom,r),Gn(this._vdom,this._root)}}function R0(){Gn(this._vdom=null,this._root)}function hu(e,t){var n=this;return d("slot",fl({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function F0(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=D0,i.prototype.attributeChangedCallback=O0,i.prototype.disconnectedCallback=R0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,i)}function ml(e,t){F0(e,t)}var In,He,oa,pu,ni=0,Nd=[],Ze=_e,gu=Ze.__b,yu=Ze.__r,wu=Ze.diffed,vu=Ze.__c,bu=Ze.unmount,_u=Ze.__;function Ar(e,t){Ze.__h&&Ze.__h(He,e,ni||t),ni=0;var n=He.__H||(He.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return ni=1,kr(Td,e)}function kr(e,t,n){var r=Ar(In++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Td(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=He,!He.u)){var i=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!o||o.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(c=!0)}}),o&&o.call(this,a,l,u)||c};He.u=!0;var o=He.shouldComponentUpdate,s=He.componentWillUpdate;He.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,i(a,l,u),o=f}s&&s.call(this,a,l,u)},He.shouldComponentUpdate=i}return r.__N||r.__}function Ie(e,t){var n=Ar(In++,3);!Ze.__s&&gl(n.__H,t)&&(n.__=e,n.i=t,He.__H.__h.push(n))}function On(e,t){var n=Ar(In++,4);!Ze.__s&&gl(n.__H,t)&&(n.__=e,n.i=t,He.__h.push(n))}function se(e){return ni=5,de(function(){return{current:e}},[])}function hl(e,t,n){ni=6,On(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 de(e,t){var n=Ar(In++,7);return gl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ee(e,t){return ni=8,de(function(){return e},t)}function De(e){var t=He.context[e.__c],n=Ar(In++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(He)),t.props.value):e.__}function pl(e,t){Ze.useDebugValue&&Ze.useDebugValue(t?t(e):e)}function P0(e){var t=Ar(In++,10),n=ye();return t.__=e,He.componentDidCatch||(He.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Jt(){var e=Ar(In++,11);if(!e.__){for(var t=He.__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 L0(){for(var e;e=Nd.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Vo),e.__H.__h.forEach(Ra),e.__H.__h=[]}catch(t){e.__H.__h=[],Ze.__e(t,e.__v)}}Ze.__b=function(e){He=null,gu&&gu(e)},Ze.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_u&&_u(e,t)},Ze.__r=function(e){yu&&yu(e),In=0;var t=(He=e.__c).__H;t&&(oa===He?(t.__h=[],He.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Vo),t.__h.forEach(Ra),t.__h=[],In=0)),oa=He},Ze.diffed=function(e){wu&&wu(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Nd.push(t)!==1&&pu===Ze.requestAnimationFrame||((pu=Ze.requestAnimationFrame)||V0)(L0)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),oa=He=null},Ze.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Vo),n.__h=n.__h.filter(function(r){return!r.__||Ra(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ze.__e(r,n.__v)}}),vu&&vu(e,t)},Ze.unmount=function(e){bu&&bu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Vo(r)}catch(i){t=i}}),n.__H=void 0,t&&Ze.__e(t,n.__v))};var xu=typeof requestAnimationFrame=="function";function V0(e){var t,n=function(){clearTimeout(r),xu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xu&&(t=requestAnimationFrame(n))}function Vo(e){var t=He,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),He=t}function Ra(e){var t=He;e.__c=e.__(),He=t}function gl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Td(e,t){return typeof t=="function"?t(e):t}function Fa(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 bs(e,t){var n=t(),r=ye({t:{__:n,u:t}}),i=r[0].t,o=r[1];return On(function(){i.__=n,i.u=t,sa(i)&&o({t:i})},[e,n,t]),Ie(function(){return sa(i)&&o({t:i}),e(function(){sa(i)&&o({t:i})})},[e]),n}function sa(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function yl(e){e()}function wl(e){return e}function vl(){return[!1,yl]}var bl=On;function Yo(e,t){this.props=e,this.context=t}function $d(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:Fa(this.props,i)}function r(i){return this.shouldComponentUpdate=n,d(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Yo.prototype=new un).isPureReactComponent=!0,Yo.prototype.shouldComponentUpdate=function(e,t){return Fa(this.props,e)||Fa(this.state,t)};var Cu=_e.__b;_e.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cu&&Cu(e)};var H0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function _l(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=H0,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Su=function(e,t){return e==null?null:Tn(Tn(e).map(t))},Md={map:Su,forEach:Su,count:function(e){return e?Tn(e).length:0},only:function(e){var t=Tn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Tn},j0=_e.__e;_e.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}j0(e,t,n,r)};var Eu=_e.unmount;function Id(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,i){for(var o in i)r[o]=i[o];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Id(r,t,n)})),e}function Dd(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Dd(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 Ui(){this.__u=0,this.o=null,this.__b=null}function Od(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Rd(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return d(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Ur(){this.i=null,this.l=null}_e.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Eu&&Eu(e)},(Ui.prototype=new un).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Od(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Dd(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Ui.prototype.componentWillUnmount=function(){this.o=[]},Ui.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]=Id(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&d(Ue,null,e.fallback);return i&&(i.__u&=-33),[d(Ue,null,t.__a?null:e.children),i]};var Au=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function B0(e){return this.getChildContext=function(){return e.context},e.children}function U0(e){var t=this,n=e.h;t.componentWillUnmount=function(){Gn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Gn(d(B0,{context:t.context},e.__v),t.v)}function _s(e,t){var n=d(U0,{__v:e,h:t});return n.containerInfo=t,n}(Ur.prototype=new un).__a=function(e){var t=this,n=Od(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Au(t,e,r)):i()};n?n(o):o()}},Ur.prototype.render=function(e){this.i=null,this.l=new Map;var t=Tn(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Ur.prototype.componentDidUpdate=Ur.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Au(e,n,t)})};var Fd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,W0=/^(?: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]/,G0=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,z0=/[A-Z0-9]/g,q0=typeof document<"u",Y0=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Pd(e,t,n){return t.__k==null&&(t.textContent=""),Gn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ld(e,t,n){return cl(e,t),typeof n=="function"&&n(),e?e.__c:null}un.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(un.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ku=_e.event;function Z0(){}function K0(){return this.cancelBubble}function X0(){return this.defaultPrevented}_e.event=function(e){return ku&&(e=ku(e)),e.persist=Z0,e.isPropagationStopped=K0,e.isDefaultPrevented=X0,e.nativeEvent=e};var xl,J0={enumerable:!1,configurable:!0,get:function(){return this.class}},Nu=_e.vnode;_e.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||q0&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Y0(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":G0.test(s)&&(s=l):l=s="oninput":o&&W0.test(s)?s=s.replace(z0,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Tn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Tn(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",J0)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Fd,Nu&&Nu(e)};var Tu=_e.__r;_e.__r=function(e){Tu&&Tu(e),xl=e.__c};var $u=_e.diffed;_e.diffed=function(e){$u&&$u(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),xl=null};var Vd={ReactCurrentDispatcher:{current:{readContext:function(e){return xl.__n[e.__c].props.value},useCallback:Ee,useContext:De,useDebugValue:pl,useDeferredValue:wl,useEffect:Ie,useId:Jt,useImperativeHandle:hl,useInsertionEffect:bl,useLayoutEffect:On,useMemo:de,useReducer:kr,useRef:se,useState:ye,useSyncExternalStore:bs,useTransition:vl}}},Q0="18.3.1";function Hd(e){return d.bind(null,e)}function di(e){return!!e&&e.$$typeof===Fd}function jd(e){return di(e)&&e.type===Ue}function Bd(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Cl(e){return di(e)?dl.apply(null,arguments):e}function Ud(e){return!!e.__k&&(Gn(null,e),!0)}function Wd(e){return e&&(e.base||e.nodeType===1&&e)||null}var Gd=function(e,t){return e(t)},Wt=function(e,t){return e(t)},zd=Ue,qd=di,K={useState:ye,useId:Jt,useReducer:kr,useEffect:Ie,useLayoutEffect:On,useInsertionEffect:bl,useTransition:vl,useDeferredValue:wl,useSyncExternalStore:bs,startTransition:yl,useRef:se,useImperativeHandle:hl,useMemo:de,useCallback:Ee,useContext:De,useDebugValue:pl,version:"18.3.1",Children:Md,render:Pd,hydrate:Ld,unmountComponentAtNode:Ud,createPortal:_s,createElement:d,createContext:Je,createFactory:Hd,cloneElement:Cl,createRef:vs,Fragment:Ue,isValidElement:di,isElement:qd,isFragment:jd,isMemo:Bd,findDOMNode:Wd,Component:un,PureComponent:Yo,memo:$d,forwardRef:_l,flushSync:Wt,unstable_batchedUpdates:Gd,StrictMode:zd,Suspense:Ui,SuspenseList:Ur,lazy:Rd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vd};const Zo=Object.freeze(Object.defineProperty({__proto__:null,Children:Md,Component:un,Fragment:Ue,PureComponent:Yo,StrictMode:zd,Suspense:Ui,SuspenseList:Ur,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vd,cloneElement:Cl,createContext:Je,createElement:d,createFactory:Hd,createPortal:_s,createRef:vs,default:K,findDOMNode:Wd,flushSync:Wt,forwardRef:_l,hydrate:Ld,isElement:qd,isFragment:jd,isMemo:Bd,isValidElement:di,lazy:Rd,memo:$d,render:Pd,startTransition:yl,unmountComponentAtNode:Ud,unstable_batchedUpdates:Gd,useCallback:Ee,useContext:De,useDebugValue:pl,useDeferredValue:wl,useEffect:Ie,useErrorBoundary:P0,useId:Jt,useImperativeHandle:hl,useInsertionEffect:bl,useLayoutEffect:On,useMemo:de,useReducer:kr,useRef:se,useState:ye,useSyncExternalStore:bs,useTransition:vl,version:Q0},Symbol.toStringTag,{value:"Module"})),ep=`*,: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:Inter,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}@font-face{font-family:BRSonoma;font-weight:900;src:url(/assets/BRSonoma-Black-Dd-41VER.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:700;src:url(/assets/BRSonoma-Bold-ntHe2u-j.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:500;src:url(/assets/BRSonoma-Medium-j1GGAHzV.otf) format("opentype")}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.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-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.col-span-4{grid-column:span 4 / span 4}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.mx-12{margin-left:3rem;margin-right:3rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mt-\\[226px\\]{margin-top:-226px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.ml-3{margin-left:.75rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-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}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\\[120px\\]{height:120px}.h-\\[34px\\]{height:34px}.h-\\[38px\\]{height:38px}.h-\\[52px\\]{height:52px}.h-\\[58px\\]{height:58px}.h-\\[60px\\]{height:60px}.h-\\[63px\\]{height:63px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:12rem}.max-h-\\[470px\\]{max-height:470px}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[1030px\\]{width:1030px}.w-\\[120px\\]{width:120px}.w-\\[128px\\]{width:128px}.w-\\[148px\\]{width:148px}.w-\\[206px\\]{width:206px}.w-\\[218px\\]{width:218px}.w-\\[230px\\]{width:230px}.w-\\[260px\\]{width:260px}.w-\\[480px\\]{width:480px}.w-\\[640px\\]{width:640px}.w-full{width:100%}.max-w-\\[640px\\]{max-width:640px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.rotate-180{--tw-rotate: 180deg;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))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.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, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary-600{border-color:var(--fl-color-primary-600)}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500\\/50{background-color:#6b728080}.bg-primary-600{background-color:var(--fl-color-primary-600)}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.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}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.px-\\[17px\\]{padding-left:17px;padding-right:17px}.px-\\[3px\\]{padding-left:3px;padding-right:3px}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.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-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[0\\.5625rem\\]{padding-top:.5625rem;padding-bottom:.5625rem}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\\[3px\\]{padding-bottom:3px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-\\[13px\\]{padding-left:13px}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-6{padding-right:1.5rem}.pr-\\[11px\\]{padding-right:11px}.pt-0\\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sonoma{font-family:BRSonoma}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/6{font-size:.875rem;line-height:1.5rem}.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}.leading-4{line-height:1rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-primary-600{color:var(--fl-color-primary-600)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-50{opacity:.5}.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-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-gray-300{--tw-shadow-color: #d1d5db;--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:#d1d5db}.outline-red-300{outline-color:#fca5a5}.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, 1))}.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}.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-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-500::placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-1:before{content:var(--tw-content);top:.25rem;right:.25rem;bottom:.25rem;left:.25rem}.before\\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\\:bg-white:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.checked\\:border-primary-600:checked{border-color:var(--fl-color-primary-600)}.checked\\:bg-primary-600:checked{background-color:var(--fl-color-primary-600)}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.focus\\:border-blue-600:focus{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.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-blue-600:focus{outline-color:#2563eb}.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-primary-600:focus{--tw-ring-color: var(--fl-color-primary-600)}.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-primary-600:focus-visible{outline-color:var(--fl-color-primary-600)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:before\\:bg-gray-400:disabled:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:size-4{width:1rem;height:1rem}}@media (forced-colors: active){.forced-colors\\:appearance-auto{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.forced-colors\\:before\\:hidden:before{content:var(--tw-content);display:none}}.\\[\\&\\:not\\(\\:checked\\)\\]\\:before\\:hidden:not(:checked):before{content:var(--tw-content);display:none}`;function dn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function tp(e){return e!=null&&typeof e.GetEnumerator=="function"}function np(e){return e!=null&&typeof e.CompareTo=="function"}function rp(e){return e!=null&&typeof e.Equals=="function"}function Yd(e){return e!=null&&typeof e.GetHashCode=="function"}function Pa(e){return e!=null&&typeof e.Dispose=="function"}function Ne(e){Pa(e)&&e.Dispose()}function xe(){return null}function Ko(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 ip{constructor(t){this.iter=t,this.current=xe()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Me(e){return tp(e)?e.GetEnumerator():new ip(e[Symbol.iterator]())}function fi(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class op{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Fe(e,t){return e.toString(10).padStart(t,"0")}function sp(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Mu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function ap(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function cn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class kn{static id(t){return kn.idMap.has(t)||kn.idMap.set(t,++kn.count),kn.idMap.get(t)}}kn.idMap=new WeakMap;kn.count=0;function Qn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function sn(e){return e*2654435761|0}function Zd(e){return Qn(e.toString(32))}function ro(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function lp(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return sn(e);case"bigint":return Zd(e);case"string":return Qn(e);default:return sn(kn.id(e))}}function up(e){return Yd(e)?e.GetHashCode():lp(e)}function cp(e){return e.getTime()}function dp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Xt(e[r]);return ro(n)}function Xt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return sn(e);case"bigint":return Zd(e);case"string":return Qn(e);default:{if(Yd(e))return e.GetHashCode();if(dn(e))return dp(e);if(e instanceof Date)return cp(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Xt(r));return ro(n)}else return sn(kn.id(e))}}}function Xo(e){return up(e)}function La(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 Kd(e,t){return La(e,t,re)}function fp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!re(e[n[i]],t[r[i]]))return!1;return!0}function re(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:rp(e)?e.Equals(t):dn(e)?dn(t)&&Kd(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Xd(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&fp(e,t)}function Xd(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Mu(e),r=t.getTime()+Mu(t)),n===r?0:n<r?-1:1}function Nr(e,t){return e===t?0:e<t?-1:1}function mp(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,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function Sl(e,t){return mp(e,t,gt)}function hp(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 i=0,o=0;i<n.length;i++){const s=n[i];if(s!==r[i])return s<r[i]?-1:1;if(o=gt(e[s],t[s]),o!==0)return o}return 0}function gt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:np(e)?e.CompareTo(t):dn(e)?dn(t)?Sl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Xd(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?hp(e,t):-1}function y(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function pp(e){dn(e)?e.splice(0):e.clear()}const xs=new WeakMap;function Qe(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return xs.set(t,e),t}function ur(e){return xs.get(e)??(t=>n=>e(t,n))}function Va(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return xs.set(t,e),t}function aa(e){return xs.get(e)??(t=>n=>r=>e(t,n,r))}function gp(e){let t=0,n="[";for(const r of e){if(t===0)n+=et(r);else if(t===100){n+="; ...";break}else n+="; "+et(r);t++}return n+"]"}function et(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 gp(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+et(o,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function yp(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=et(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>et(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class X{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return yp(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Xt(n));return t.splice(0,0,sn(this.tag)),ro(t)}Equals(t){return this===t?!0:Ko(this,t)&&this.tag===t.tag?Kd(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Ko(this,t)?this.tag===t.tag?Sl(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function wp(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function vp(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+et(n)).join(`
3
+ `)+" }"}function bp(e){const t=Object.values(e).map(n=>Xt(n));return ro(t)}function _p(e,t){if(e===t)return!0;if(Ko(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!re(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function xp(e,t){if(e===t)return 0;if(Ko(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=gt(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Ce{toJSON(){return wp(this)}toString(){return vp(this)}GetHashCode(){return bp(this)}Equals(t){return _p(this,t)}CompareTo(t){return xp(this,t)}}class ht{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 Cp{constructor(t){this.message=t}}function Sp(e){return e instanceof Cp||e instanceof Error}function Ep(e){return e instanceof Promise}function Jo(e){return Sp(e)||Ep(e)?e:new Error(String(e))}const El=et(ep),mi=Symbol("numeric");function Jd(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[mi])}function Ap(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ha(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[mi]().multiply(t)}function Ho(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[mi]().toFixed(t)}function Qo(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[mi]().toPrecision(t)}function es(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[mi]().toExponential(t)}function ts(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[mi]().toHex()}const kp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Np=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Tp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$p=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ft(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Iu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Mp(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function Al(e,t,n){let r=0,i=0,o="";const s=n?io(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=Ft(t,r,"d"),r+=i,i){case 1:o+=Ou(s);break;case 2:o+=Fe(Ou(s),2);break;case 3:o+=kp[Pu(s)];break;case 4:o+=Np[Pu(s)];break}break;case"f":if(i=Ft(t,r,"f"),r+=i,i<=3){const b=10**(3-i);o+=Fe(Math.floor(Ao(s)/b),i)}else i<=7&&(o+=(""+Ao(s)).padEnd(i,"0"));break;case"F":if(i=Ft(t,r,"F"),r+=i,i<=3){const b=10**(3-i),x=Math.floor(Ao(s)/b);x!=0&&(o+=Fe(x,i))}else if(i<=7){const b=Ao(s);b!=0&&(o+=Fe(b,3))}break;case"g":i=Ft(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=Ft(t,r,"h"),r+=i,i){case 1:o+=Eo(s)%12;break;case 2:o+=Fe(Eo(s)%12,2);break}break;case"H":switch(i=Ft(t,r,"H"),r+=i,i){case 1:o+=Eo(s);break;case 2:o+=Fe(Eo(s),2);break}break;case"K":switch(i=Ft(t,r,"K"),r+=i,i){case 1:switch(Du(s)){case 1:o+="Z";break;case 2:o+=Gr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=Ft(t,r,"m"),r+=i,i){case 1:o+=Ru(s);break;case 2:o+=Fe(Ru(s),2);break}break;case"M":switch(i=Ft(t,r,"M"),r+=i,i){case 1:o+=ko(s);break;case 2:o+=Fe(ko(s),2);break;case 3:o+=Tp[ko(s)-1];break;case 4:o+=$p[ko(s)-1];break}break;case"s":switch(i=Ft(t,r,"s"),r+=i,i){case 1:o+=Fu(s);break;case 2:o+=Fe(Fu(s),2);break}break;case"t":switch(i=Ft(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=Ft(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=Fe(s.getFullYear()%100,2);break;case 3:o+=Fe(s.getFullYear(),3);break;case 4:o+=Fe(s.getFullYear(),4);break;case 5:o+=Fe(s.getFullYear(),5);break}break;case"z":i=Ft(t,r,"z"),r+=i;let l="";switch(Du(s)){case 1:l="+00:00";break;case 2:l=Gr(s.getTimezoneOffset()*-6e4);break;case 0:l=Gr(Hp(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${Fe(f,2)}`;break;default:o+=`${u}${Fe(f,2)}:${Fe(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=Mp(t,r);o+=p,r+=h;break;case"%":const m=Iu(t,r);if(m>=0&&m!==37)r+=2,o+=Al(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const g=Iu(t,r);if(g>=0)r+=2,o+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Du(e){return e.kind||0}function Gr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Fe(n,2)+":"+Fe(r,2)}function ns(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 Ip(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Fe(e.getFullYear(),4)+"-"+Fe(e.getMonth()+1,2)+"-"+Fe(e.getDate(),2)+"T"+Fe(e.getHours(),2)+":"+Fe(e.getMinutes(),2)+":"+Fe(e.getSeconds(),2)+"."+Fe(e.getMilliseconds(),3)+(n?Gr(e.getTimezoneOffset()*-6e4):"")}}function Dp(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Gr(t)}function Op(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," ")+Gr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ns(n,"first");case"T":case"t":return ns(n,"second");case"O":case"o":return Dp(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Al(n,t,!0)}function Rp(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?ns(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ns(e,"second"):e.toLocaleTimeString();case"O":case"o":return Ip(e,n);default:throw new Error("Unrecognized Date print format")}else return Al(e,t,n)}function Cs(e,t,n){return e.offset!=null?Op(e,t):Rp(e,t)}function io(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Fp(){return io(-621355968e5,1)}function Qd(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 i=/^\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(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Pp(e,t=!1){const[n,r]=Qd(e),i=r!=null?t&&r==="Z"?1:2:0;return io(n.getTime(),i)}function Lp(e,t){try{return t.contents=Pp(e),!0}catch{return!1}}function Vp(e){return e.kind===1?e:io(e.getTime(),1)}function Hp(e){return e.kind===2?e:io(e.getTime(),2)}function Ou(e){return e.kind===1?e.getUTCDate():e.getDate()}function Eo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Ao(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Ru(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function ko(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Fu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Pu(e){return e.kind===1?e.getUTCDay():e.getDay()}function jp(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 ef(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Lu(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 i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function kl(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=jp(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),l=Lu(e,a),u=Lu.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+u.replace(e,n)+t.substring(i+u.length)}else return t.replace(e,n)}const Ni=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Bp=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function tf(e,t){return Ap(e,t)<0}function zn(e){return{input:e,cont:Wp(e)}}function nf(e,t){return typeof t=="string"?e(t):t.cont(e)}function ri(e){return nf(t=>t,e)}function rf(e){return nf(t=>{throw new Error(t)},e)}function Up(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Jd(e))switch(i.toLowerCase()!=="x"&&(tf(e,0)?(e=Ha(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=Ho(e,r);break;case"g":case"G":e=r!=null?Qo(e,r):Qo(e);break;case"e":case"E":e=r!=null?es(e,r):es(e);break;case"x":e=ts(e);break;case"X":e=ts(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Cs(e):e=et(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=Yi(e,n-o.length,l,a),e=o+e):e=Yi(o+e,n,l,a)}return e}function of(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,c,p,h]=l[0];let m=c;if(i>=0)m=i,i=-1;else if(m==="*"){if(u<0)throw new Error("Non-negative number required");i=u;continue}s+=a[0],s+=Up(u,f,m,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):of(e,a,l,s,i)}}function Wp(e){return t=>{Ni.lastIndex=0;const n=[],r=[];let i=0,o=Ni.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Ni.lastIndex,Ni.lastIndex-=1,o=Ni.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),of(t,n,r))}}function sf(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Bp,(r,i,o,s,a,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[i];if(Jd(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Ho(u,a);break;case"g":case"G":u=a!=null?Qo(u,a):Qo(u);break;case"e":case"E":u=a!=null?es(u,a):es(u);break;case"p":case"P":a=a??2,u=Ho(Ha(u,100),a)+" %";break;case"d":case"D":u=a!=null?la(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?la(ts(u),a,"0"):ts(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,h)=>{tf(u,0)&&(u=Ha(u,-1),f="-"),h=h==null?"":h.substring(1),u=Ho(u,Math.max(h.length,0));let[m,g]=u.split(".");g||(g="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;m=la(m,b,"0");const x=h.replace(/#+$/,"").length;if(x>g.length?g=Gp(g,x,"0"):x<g.length&&(g=g.substring(0,x)+g.substring(x).replace(/0+$/,"")),p.indexOf(",")>0){const C=m.length%3,E=Math.floor(m.length/3);let $=C>0?m.substr(0,C)+(E>0?",":""):"";for(let I=0;I<E;I++)$+=m.substr(C+I*3,3)+(I<E-1?",":"");m=$}return g.length>0?m+"."+g:m}),u=f+u}}else u instanceof Date?u=Cs(u,l||s):u=et(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=Yi(String(u),Math.abs(o)," ",o<0)),u})}function Nl(e){return typeof e!="string"||e.length===0}function oo(e){return typeof e!="string"||/^\s*$/.test(e)}function bt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Yi(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function la(e,t,n){return Yi(e,t,n)}function Gp(e,t,n){return Yi(e,t,n,!0)}function zp(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 i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(ef),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(u).trim():e.substring(u);(!i||c.length>0)&&s.push(c),l=!1}else{const c=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!i||c.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function qp(e,...t){if(t.length===0)return e.trim();const n="["+ef(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class yr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Xt(this.value)}Equals(t){return t==null?!1:re(this.value,t instanceof yr?t.value:t)}CompareTo(t){return t==null?1:gt(this.value,t instanceof yr?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof yr?e.value:e}function Vi(e){return e instanceof yr?e.value:e}function ct(e){return e==null||e instanceof yr?new yr(e):e}function af(e){return e==null?null:V(e)}function Ss(e){return e==null?[]:[V(e)]}function rt(e,t){return e!=null?V(e):t}function Yp(e,t){return e!=null?V(e):t()}function At(e,t){return t!=null?ct(e(V(t))):void 0}function Zp(e,t){return t!=null?e(V(t)):void 0}class Kp{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class zt{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return Ge(this)}GetHashCode(){return lf(this)}Equals(t){return ja(this,t)}}function Bt(e){return e.generics!=null?e.generics:[]}function lf(e){const t=Qn(e.fullname),n=Bt(e).map(lf);return ro([t,...n])}function ja(e,t){return e.fullname===""?t.fullname===""&&La(Zi(e),Zi(t),([n,r],[i,o])=>n===i&&ja(r,o)):e.fullname===t.fullname&&La(Bt(e),Bt(t),ja)}function qn(e,t,n,r){return new zt(e,t,n,r)}function Qt(e,t,n,r){return new zt(e,t,n,void 0,r)}function uf(e,t,n,r){const i=new zt(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new Kp(i,a,o[a],s))});return i}function zr(e){return new zt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function wr(e){return new zt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Xp=new zt("System.Object"),$n=new zt("System.String"),Jp=new zt("System.Boolean"),kt=new zt("System.Int32");function qr(e){if(Array.isArray(e))return e[0];if(e instanceof zt){const t=so(e);if(t!=null)return qr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Ge(e){const t=so(e);return t!=null?Ge(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Ge(n)).join(",")+"]"}function cf(e){return so(e)!=null}function so(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function df(e){return e.generics!=null&&e.generics.length>0}function Tl(e){return e.enumCases!=null&&e.enumCases.length>0}function ff(e){return e.generics==null?e:new zt(e.fullname,e.generics.map(()=>Xp))}function mf(e){var t;return(t=e.generics)==null?void 0:t[0]}function Dr(e){if(Tl(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Qp(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 Or(e,t){const n=parseInt(t,10);return Qp(e,isNaN(n)?t:n)[1]}function hf(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Zi(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function pf(e){if($l(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function gf(e){return e instanceof zt?e.cases!=null:e instanceof X}function yf(e){return e instanceof zt?e.fields!=null:e instanceof Ce}function $l(e){return e.fullname.startsWith("System.Tuple")}function eg(e,t){const r=hf(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function wf(e){return e.fields==null?[]:e.fields}function tg(e,t){return e[t[0]]}function ng(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 rg(e,t){const n=Zi(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,[i,o],s)=>(r[i]=t[s],r),{})}function ig(e,t){return e}const vf="Collection was empty.",og="The input must be non-negative.",bf="The input sequence has an insufficient number of elements.";function ii(e,t){return new Array(t)}function Vu(e,t){return e>t?e:t}function Hu(e,t){return e<t?e:t}function _f(e,t,n){const r=e.length|0,i=t.length|0,o=ii(n,r+i);for(let s=0;s<=r-1;s++)_t(o,s,pe(s,e));for(let s=0;s<=i-1;s++)_t(o,s+r,pe(s,t));return o}function ao(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function sg(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return pe(e.length-1,e)}function xf(e,t,n){const r=t.length|0,i=ii(n,r);for(let o=0;o<=r-1;o++)_t(i,o,e(o,pe(o,t)));return i}function ze(e,t,n){const r=t.length|0,i=ii(n,r);for(let o=0;o<=r-1;o++)_t(i,o,e(pe(o,t)));return i}function rs(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return ii(t,0);case 1:return pe(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=pe(a,n);o=o+l.length|0}const s=ii(t,o);for(let a=0;a<=n.length-1;a++){const l=pe(a,n);for(let u=0;u<=l.length-1;u++)_t(s,i,pe(u,l)),i=i+1|0}return s}}}function ag(e,t,n,r,i){const o=rt(n,0)|0,s=rt(At(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,pe(u,e)))return u|0;l=u+1;continue e}})(o)|0}function hi(e,t,n){return ag(t,e,void 0,void 0,n)>=0}function lg(e,t){const n=ii(t,1);return _t(n,0,e),n}function ug(e){return e.slice().reverse()}function Es(e,t){return t.find(e)}function Ut(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(pe(i,t));if(o!=null){const s=V(o);r.push(s)}}return re(n,xe())?r:ze(i=>i,r,n)}function As(e,t,n){const r=e;return n.reduce(r,t)}function cg(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function dg(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function vr(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,i=!0;const o=t.length|0,s=n.length|0;if(o>s)return!1;if(o<s)return!1;for(;r<o&&i;)i=e(pe(r,t),pe(r,n)),r=r+1|0;return i}}function ju(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return pe(0,e)}function fg(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function pe(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function _t(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Cf(e,t){if(!(e<0||e>=t.length))return ct(t[e])}function Sf(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class xt extends Ce{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+bt("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),c=V(u);if(re(s.head,a.head)){i=f,o=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,l=o,u=l.tail;if(u!=null){const f=V(u);if(s>18)return a|0;r=s+1,i=(a<<1)+Xt(l.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),c=V(u),p=gt(s.head,a.head)|0;if(p===0){i=f,o=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return hg(this)}[Symbol.iterator](){return fi(Me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Me(this)}}class mg{constructor(t){this.xs=t,this.it=this.xs,this.current=xe()}"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=V(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=xe()}Dispose(){}}function hg(e){return new mg(e)}function it(){return new xt(xe(),void 0)}function lo(e,t){return new xt(e,t)}function er(e){return e.tail==null}function Ef(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=V(s);continue e}else return i|0}})(0,e)|0}function pi(e){if(e.tail!=null)return e.head;throw new Error(vf+"\\nParameter name: list")}function Ct(e){const t=e.tail;if(t!=null)return V(t);throw new Error(vf+"\\nParameter name: list")}function dt(){return it()}function Yt(e,t){return lo(e,t)}function me(e){return lo(e,it())}function ke(e){return er(e)}function an(e){return Ef(e)}function ce(e){return pi(e)}function Ae(e){return Ct(e)}function Rn(e){const t=Ef(e)|0,n=ao(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!er(a)){_t(n,s,pi(a)),i=s+1,o=Ct(a);continue e}break}})(0,e),n}function Fn(e,t,n){let r=t,i=n;for(;!er(i);)r=e(r,ce(i)),i=Ct(i);return r}function Ml(e){return Fn((t,n)=>lo(n,t),it(),e)}function pg(e,t,n){return Sf(e,Rn(t),n)}function gg(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,u=s;if(er(u))return l;i=a+1,o=e(a,l,pi(u)),s=Ct(u);continue e}})(0,t,n)}function is(e,t){Fn((n,r)=>{e(r)},void 0,t)}function Ye(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=lo(pe(r,e),n);return n}function w(e){return Ye(e,it())}function yg(e){let t,n;if(dn(e))return w(e);if(e instanceof xt)return e;{const r=it();let i=r;const o=Me(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new xt(l,void 0),t.tail=n,n)}}finally{Ne(o)}const s=i,a=it();return s.tail=a,Ct(r)}}function uo(e,t){return Fn((n,r)=>lo(r,n),t,Ml(e))}function Af(e,t){const n=it(),r=gg((o,s,a)=>{const l=new xt(e(o,a),void 0);return s.tail=l,l},n,t),i=it();return r.tail=i,Ct(n)}function gi(e,t){const n=it(),r=Fn((o,s)=>{const a=new xt(e(s),void 0);return o.tail=a,a},n,t),i=it();return r.tail=i,Ct(n)}function wg(e,t){return(r=>{e:for(;;){const i=r;if(er(i))return;{const o=e(pi(i));if(o==null){r=Ct(i);continue e}else return o}}})(t)}function vg(e,t){return wg(n=>e(n)?ct(n):void 0,t)}function bg(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(er(s))return;if(e(pi(s)))return o;r=o+1,i=Ct(s);continue e}})(0,t)}function Bn(e,t){const n=it(),r=Fn((o,s)=>{if(e(s)){const a=new xt(s,void 0);return o.tail=a,a}else return o},n,t),i=it();return r.tail=i,Ct(n)}function _g(e,t){const n=it(),r=it(),i=n,o=Fn((l,u)=>{let f,c;const p=l[0],h=l[1];return e(u)?[(f=new xt(u,void 0),p.tail=f,f),h]:[p,(c=new xt(u,void 0),h.tail=c,c)]},[i,r],t),s=it();o[0].tail=s;const a=it();return o[1].tail=a,[Ct(i),Ct(r)]}function xg(e,t){const n=it(),r=Fn((o,s)=>{const a=e(s);if(a==null)return o;{const l=new xt(V(a),void 0);return o.tail=l,l}},n,t),i=it();return r.tail=i,Ct(n)}function Cg(e,t){return bg(e,t)!=null}function kf(e,t){const n=Rn(t);return n.sort(e),w(n)}function Sg(e,t,n){return kf((r,i)=>n.Compare(e(r),e(i)),t)}function Eg(e,t,n){return kf((r,i)=>n.Compare(e(r),e(i))*-1,t)}function Nf(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(er(r))throw new Error(bf+"\\nParameter name: list");e=n-1,t=Ct(r);continue e}}function Tf(e,t){if(e<0)throw new Error(og+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const f=s,c=a,p=l;if(f<=0)return c;if(er(p))throw new Error(bf+"\\nParameter name: list");s=f-1,a=(u=new xt(pi(p),void 0),c.tail=u,u),l=Ct(p);continue e}},r=it(),i=n(e,r,t),o=it();return i.tail=o,Ct(r)}function Ag(e,t,n){const r=an(n)|0;let i;const o=rt(e,0)|0;i=o<0?0:o;let s;const a=rt(t,r-1)|0;return s=a>=r?r-1:a,s<i?it():Tf(s-i+1,Nf(i,n))}const v=K;function kg(e){const t=w([d("style",{children:[El]}),d("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return d("div",{children:v.Children.toArray(Array.from(t))})}function Ng(e){throw new Error(e)}const Tg="Enumeration already finished.",$g="Enumeration has not started. Call MoveNext.",$f="The input sequence has an insufficient number of elements.",Mg="Reset is not supported on this enumerator.";function Ig(){throw new Error(Mg)}function Il(){throw new Error($g)}function Ba(){throw new Error(Tg)}class Dg{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=Me(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+et(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Ne(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return fi(Me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Og(e){return new Dg(e)}class Rg{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"(){Ig()}Dispose(){this.dispose()}}function ks(e,t,n){return new Rg(e,t,n)}function Fg(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{Ne(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{Ne(a)}finally{t=void 0}}};return ks(()=>(r?i&&Ba():Il(),o!=null?V(o):Ba()),()=>{let a;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=V(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=ct(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Ne(c)}finally{n=void 0}}else{const c=V(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),Me(a)):(s(),l=!1)}else t=Me(e)}return V(l)}},()=>{i||s()})}function Pg(e,t){return ks(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Ne(t)}finally{}})}function Mf(e,t,n){let r=!1,i,o=ct(e());const s=()=>{if(o!=null){const l=V(o);try{n(l)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return ks(()=>(r||Il(),i!=null?V(i):Ba()),()=>{if(r||(r=!0),o!=null){const l=V(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(i=u,!0):(a(),!1)}else return!1},s)}function Lg(e,t){let n,r=t;return ks(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return Il()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function Vg(e,t){t==null&&Ng(e)}function yi(e){return Og(e)}function yn(e){return Vg("source",e),Me(e)}function T(e){return yi(()=>Me(e()))}function Ns(e){return yi(()=>Fg(e))}function Hg(e,t){return yi(()=>Lg(e,t))}function mt(){return T(()=>new Array(0))}function A(e){return T(()=>lg(e))}function Yn(e){return e instanceof xt?Rn(e):Array.from(e)}function ne(e){return dn(e)?w(e):e instanceof xt?e:yg(e)}function If(e,t,n){return yi(()=>Mf(e,t,n))}function Df(e,t,n){return yi(()=>{let r=-1;return Mf(e,i=>(r=r+1|0,t(r,i)),n)})}function H(e,t){return Ns([e,t])}function jg(e,t){return If(()=>yn(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=>{Ne(n)})}function Bg(e,t,n){const r=yn(t);try{const i=yn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{Ne(i)}}finally{Ne(r)}}function Rr(e,t,n){const r=yn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{Ne(r)}}function Dl(e,t){return jg(n=>{if(e(n))return ct(n)},t)}function co(e,t,n){const r=yn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{Ne(r)}}function Tr(e,t){co((n,r)=>{e(r)},void 0,t)}function Of(e,t){co((n,r)=>(e(n,r),n+1|0),0,t)}function Ug(e){if(dn(e))return e.length|0;if(e instanceof xt)return an(e)|0;{const t=yn(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{Ne(t)}}}function je(e,t){return If(()=>yn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ct(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ne(n)})}function Wg(e,t){return Df(()=>yn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ct(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ne(n)})}function Gg(e){return T(()=>ug(Yn(e)))}function zg(e,t){return yi(()=>{const n=yn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error($f+"\\nParameter name: source");return Pg(()=>{},n)}catch(r){throw Ne(n),r}})}function qg(e,t){return Df(()=>yn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ct(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error($f+"\\nParameter name: source")}else return},n=>{Ne(n)})}function Ts(e,t){return T(()=>Ns(je(e,t)))}const cr={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ua(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 Yg(e,t){switch(t){case cr.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case cr.SnakeCase:return ua(e,"_");case cr.SnakeCaseAllCaps:return ua(e,"_").toUpperCase();case cr.KebabCase:return ua(e,"-");case cr.None:default:return e}}function $r(e,t=cr.None){const n={},r=t;function i(s){throw new Error("Cannot infer key and value of "+String(s))}function o(s,a,l){s=Yg(s,a),n[s]=l}for(let s of e){let a=cr.None;if(s==null&&i(s),s instanceof X){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:i(s);break;case 1:o(s[0],a,!0);break;case 2:const l=s[1];o(s[0],a,l);break;default:o(s[0],a,s.slice(1))}else typeof s=="string"?o(s,a,!0):i(s)}return n}function Ol(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Rf(e,t){return t.has(e)?!1:(t.add(e),!0)}function Zg(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function Zn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ff{constructor(t,n){const r=new ht(xe());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Me(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();ca(r.contents,o)}}finally{Ne(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Me(this)}GetEnumerator(){return Me(Ns(this.hashMap.values()))}[Symbol.iterator](){return fi(Me(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){ca(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){Bu(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return Wu(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Of((i,o)=>{_t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Uu(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return Gu(this,t)}get size(){return Uu(this)|0}add(t){const n=this;return ca(n,t),n}clear(){Bu(this)}delete(t){return Gu(this,t)}has(t){return Wu(this,t)}keys(){return je(n=>n,this)}values(){return je(n=>n,this)}entries(){return je(n=>[n,n],this)}forEach(t,n){const r=this;Tr(i=>{t(i,i,r)},r)}}function Rl(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=xe();return r=[Ol(e.hashMap,n,new ht(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function Bu(e){e.hashMap.clear()}function Uu(e){let t=0,n=Me(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{Ne(n)}return t|0}function ca(e,t){const n=Rl(e,t);return n[0]?n[2]>-1?!1:(Zn(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Wu(e,t){const n=Rl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Gu(e,t){const n=Rl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Zn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class Pf{constructor(t){this.k=t}}function Ht(e){return new Pf(e)}function ge(e){return e.k}class $e extends Pf{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function jt(e,t,n,r){return new $e(e,t,n,r)}function Be(e){return e.left}function Ve(e){return e.right}function Wr(e){return e.h}function Lf(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=V(n);if(i instanceof $e){const o=i;e=Be(o),t=Lf(Ve(o),r+1);continue e}else return r+1|0}else return r|0}}function Kg(e){return Lf(e,0)}function nn(e,t,n){let r,i,o;const s=e;if(s!=null){const f=V(s);o=f instanceof $e?(r=f,Wr(r)):1}else o=0;let a;const l=n;if(l!=null){const f=V(l);a=f instanceof $e?(i=f,Wr(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Ht(t):jt(t,e,n,u+1)}function zu(e,t,n){let r,i,o,s,a,l,u,f,c;const p=e;if(p!=null){const g=V(p);c=g instanceof $e?(r=g,Wr(r)):1}else c=0;let h;const m=n;if(m!=null){const g=V(m);h=g instanceof $e?(i=g,Wr(i)):1}else h=0;if(h>c+2){const g=V(n);if(g instanceof $e){const b=g;if(o=Be(b),(o!=null?(s=V(o),s instanceof $e?(a=s,Wr(a)):1):0)>c+1){const x=V(Be(b));if(x instanceof $e){const C=x;return nn(nn(e,t,Be(C)),ge(C),nn(Ve(C),ge(b),Ve(b)))}else throw new Error("internal error: Set.rebalance")}else return nn(nn(e,t,Be(b)),ge(b),Ve(b))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const g=V(e);if(g instanceof $e){const b=g;if(l=Ve(b),(l!=null?(u=V(l),u instanceof $e?(f=u,Wr(f)):1):0)>h+1){const x=V(Ve(b));if(x instanceof $e){const C=x;return nn(nn(Be(b),ge(b),Be(C)),ge(C),nn(Ve(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return nn(Be(b),ge(b),nn(Ve(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return nn(e,t,n)}function oi(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,ge(r))|0;if(r instanceof $e){const o=r;return i<0?zu(oi(e,t,Be(o)),ge(o),Ve(o)):i===0?n:zu(Be(o),ge(o),oi(e,t,Ve(o)))}else{const o=e.Compare(t,ge(r))|0;return o<0?jt(t,void 0,n,2):o===0?n:jt(t,n,void 0,2)}}else return Ht(t)}function Vf(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ge(s))|0;if(s instanceof $e){const l=s;if(a<0){e=r,t=i,n=Be(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Ve(l);continue e}}else return a===0}else return!1}}function Hf(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof $e){const o=i;Hf(n,Be(o)),n(ge(o)),e=n,t=Ve(o);continue e}else n(ge(i))}break}}class Xg extends Ce{constructor(t,n){super(),this.stack=t,this.started=n}}function jf(e){e:for(;;){const t=e;if(ke(t))return dt();{const n=ce(t),r=Ae(t);if(n!=null){const i=V(n);if(i instanceof $e){const o=i;e=Ye([Be(o),Ht(ge(o)),Ve(o)],r);continue e}else return t}else{e=r;continue e}}}}function qu(e){return new Xg(jf(me(e)),!1)}function Jg(){throw new Error("Enumeration not started")}function Qg(){throw new Error("Enumeration already started")}function Yu(e){if(e.started){const t=e.stack;if(ke(t))return Qg();if(ce(t)!=null){const n=V(ce(t));return ge(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Jg()}function e1(e){if(e.started){const t=e.stack;if(ke(t))return!1;if(ce(t)!=null){if(V(ce(t))instanceof $e)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=jf(Ae(t)),!ke(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!ke(e.stack)}function Zu(e){let t=qu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Yu(t)},"System.Collections.IEnumerator.get_Current"(){return Yu(t)},"System.Collections.IEnumerator.MoveNext"(){return e1(t)},"System.Collections.IEnumerator.Reset"(){t=qu(e)},Dispose(){}}}function t1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(ke(i))return ke(o)?0:-1;if(ke(o))return 1;if(ce(o)!=null)if(ce(i)!=null){const s=V(ce(i)),a=V(ce(o));if(s instanceof $e){const l=s;if(Be(l)==null)if(a instanceof $e){const u=a;if(Be(u)==null){const f=r.Compare(ge(l),ge(u))|0;if(f!==0)return f|0;e=r,t=Yt(Ve(l),Ae(i)),n=Yt(Ve(u),Ae(o));continue e}else{let f,c,p,h,m;switch(ke(i)?ke(o)?f=2:ce(o)!=null?(f=1,h=Ae(o),m=V(ce(o))):f=2:ce(i)!=null?(f=0,c=Ae(i),p=V(ce(i))):ke(o)?f=2:ce(o)!=null?(f=1,h=Ae(o),m=V(ce(o))):f=2,f){case 0:if(p instanceof $e){const g=p;e=r,t=Ye([Be(g),jt(ge(g),void 0,Ve(g),0)],c),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(p))],c),n=o;continue e}case 1:if(m instanceof $e){const g=m;e=r,t=i,n=Ye([Be(g),jt(ge(g),void 0,Ve(g),0)],h);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(m))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(ge(l),ge(a))|0;if(u!==0)return u|0;e=r,t=Yt(Ve(l),Ae(i)),n=Yt(void 0,Ae(o));continue e}else{let u,f,c,p,h;switch(ke(i)?ke(o)?u=2:ce(o)!=null?(u=1,p=Ae(o),h=V(ce(o))):u=2:ce(i)!=null?(u=0,f=Ae(i),c=V(ce(i))):ke(o)?u=2:ce(o)!=null?(u=1,p=Ae(o),h=V(ce(o))):u=2,u){case 0:if(c instanceof $e){const m=c;e=r,t=Ye([Be(m),jt(ge(m),void 0,Ve(m),0)],f),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(c))],f),n=o;continue e}case 1:if(h instanceof $e){const m=h;e=r,t=i,n=Ye([Be(m),jt(ge(m),void 0,Ve(m),0)],p);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof $e){const l=a;if(Be(l)==null){const u=r.Compare(ge(s),ge(l))|0;if(u!==0)return u|0;e=r,t=Yt(void 0,Ae(i)),n=Yt(Ve(l),Ae(o));continue e}else{let u,f,c,p,h;switch(ke(i)?ke(o)?u=2:ce(o)!=null?(u=1,p=Ae(o),h=V(ce(o))):u=2:ce(i)!=null?(u=0,f=Ae(i),c=V(ce(i))):ke(o)?u=2:ce(o)!=null?(u=1,p=Ae(o),h=V(ce(o))):u=2,u){case 0:if(c instanceof $e){const m=c;e=r,t=Ye([Be(m),jt(ge(m),void 0,Ve(m),0)],f),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(c))],f),n=o;continue e}case 1:if(h instanceof $e){const m=h;e=r,t=i,n=Ye([Be(m),jt(ge(m),void 0,Ve(m),0)],p);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ge(s),ge(a))|0;if(l!==0)return l|0;e=r,t=Ae(i),n=Ae(o);continue e}}else{V(ce(o));let s,a,l,u,f;switch(ke(i)?ke(o)?s=2:ce(o)!=null?(s=1,u=Ae(o),f=V(ce(o))):s=2:ce(i)!=null?(s=0,a=Ae(i),l=V(ce(i))):ke(o)?s=2:ce(o)!=null?(s=1,u=Ae(o),f=V(ce(o))):s=2,s){case 0:if(l instanceof $e){const c=l;e=r,t=Ye([Be(c),jt(ge(c),void 0,Ve(c),0)],a),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(l))],a),n=o;continue e}case 1:if(f instanceof $e){const c=f;e=r,t=i,n=Ye([Be(c),jt(ge(c),void 0,Ve(c),0)],u);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(ce(i)!=null){V(ce(i));let s,a,l,u,f;switch(ke(i)?ke(o)?s=2:ce(o)!=null?(s=1,u=Ae(o),f=V(ce(o))):s=2:ce(i)!=null?(s=0,a=Ae(i),l=V(ce(i))):ke(o)?s=2:ce(o)!=null?(s=1,u=Ae(o),f=V(ce(o))):s=2,s){case 0:if(l instanceof $e){const c=l;e=r,t=Ye([Be(c),jt(ge(c),void 0,Ve(c),0)],a),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(l))],a),n=o;continue e}case 1:if(f instanceof $e){const c=f;e=r,t=i,n=Ye([Be(c),jt(ge(c),void 0,Ve(c),0)],u);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=Ae(i),n=Ae(o);continue e}}}function Ku(e,t,n){return t==null?n==null?0:-1:n==null?1:t1(e,me(t),me(n))|0}function n1(e,t,n){let r=n;Hf(i=>{_t(t,r,i),r=r+1|0},e)}function r1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=oi(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function i1(e,t){return As((n,r)=>oi(e,r,n),void 0,t)}function o1(e,t){return Fn((n,r)=>oi(e,r,n),void 0,t)}function Bf(e,t){if(dn(t))return i1(e,t);if(t instanceof xt)return o1(e,t);{const n=Me(t);try{return r1(e,void 0,n)}finally{Ne(n)}}}class Fl{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return l1(this)|0}Equals(t){let n;const r=this;return t instanceof Fl&&(n=t,Ku(Yr(r),rn(r),rn(n))===0)}toString(){return"set ["+bt("; ",je(n=>et(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Ku(Yr(n),rn(n),rn(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 Vf(Yr(n),t,rn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){n1(rn(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return da(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return da(this)|0}GetEnumerator(){return Zu(rn(this))}[Symbol.iterator](){return fi(Me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Zu(rn(this))}get size(){return da(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 Uf(this,t)}keys(){return je(n=>n,this)}values(){return je(n=>n,this)}entries(){return je(n=>[n,n],this)}forEach(t,n){const r=this;Tr(i=>{t(i,i,r)},r)}}function $s(e,t){return new Fl(e,t)}function Yr(e){return e.comparer}function rn(e){return e.tree}function s1(e){return $s(e,void 0)}function a1(e,t){return $s(Yr(e),oi(Yr(e),t,rn(e)))}function da(e){return Kg(rn(e))}function Uf(e,t){return Vf(Yr(e),t,rn(e))}function l1(e){let t=0;const n=Me(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Xt(r)+631|0}}finally{Ne(n)}return Math.abs(t)|0}function Ua(e,t){return Uf(t,e)}function u1(e,t){return a1(t,e)}function c1(e){return s1(e)}function d1(e,t){return $s(t,Bf(t,e))}function f1(e,t){return $s(t,Bf(t,e))}function m1(){return dt()}function Pl(e){return bt("/",e)}function h1(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Pl(t),n])}function Wf(e,t,n){try{Ne(n)}catch(r){e(["Error stopping subscription: "+Pl(t),r])}}function p1(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+Pl(n),i]);return}}function g1(e,t){is(n=>{Wf(e,n[0],n[1])},t)}function Xu(e,t,n,r,i,o){return is(s=>{h1(e,s)},n),is(s=>{Wf(e,s[0],s[1])},r),uo(i,xg(s=>p1(e,t,s[0],s[1]),o))}function y1(){return[dt(),c1({Compare:gt}),dt()]}function w1(e,t,n,r,i){return Ua(e,r)?[Yt(e,n),r,i]:[n,u1(e,r),Yt([e,t],i)]}function v1(e){return pg((t,n)=>w1(t[0],t[1],n[0],n[1],n[2]),e,y1())}const b1=dt();function Ju(e,t){const n=d1(gi(s=>s[0],e),{Compare:gt}),r=v1(t),i=r[1],o=r[0];if(n.Equals(i))return[o,dt(),e,dt()];{const s=_g(a=>Ua(a[0],i),e);return[o,s[1],s[0],Bn(a=>!Ua(a[0],n),r[2])]}}function _1(e){return new Gf(0,[e])}function x1(e){return new Gf(1,[e])}class Gf extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function C1(e){return _1(e)}function S1(e){return x1(e)}class E1{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function A1(e,t){t.Subscribe(new E1(e))}class k1{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 T1(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let N1=class extends k1{};function T1(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class $1{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 N1}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 M1(e,t){console.error(ct(e),t)}function I1(e,t){let n,r=new $1(e);r.AutoReset=!1,n=r,A1(t,n.Elapsed()),n.Enabled=!0,n.Start()}class D1{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,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Ms extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Ms.prototype)}}class Ll{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Ll.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Nn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Ms);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Jo(n))}});else try{e(t)}catch(n){t.onError(Jo(n))}}}function O1(e,t){return Nn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Jo(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function R1(e){return Nn(t=>t.onSuccess(e))}class F1{Bind(t,n){return O1(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Nn(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return R1(t)}ReturnFrom(t){return t}TryFinally(t,n){return Nn(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Nn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Jo(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Nn(t=>t.onSuccess(void 0))}}const Se=new F1;function fa(e){}const P1=new D1;function L1(e){return Nn(t=>{e({onSuccess:n=>t.onSuccess(C1(n)),onError:n=>t.onSuccess(S1(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function V1(e){return Nn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function H1(e){return Nn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Ms)})})}function j1(e,t){return B1(e,t)}function zf(e,t){return j1(e,t)}function B1(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new Ll;e({onSuccess:t||fa,onError:fa,onCancel:fa,cancelToken:i||P1,trampoline:o})}function Qu(e,t,n){is(r=>{try{r(t)}catch(i){e(i)}},n)}function Z(){return dt()}function qf(e){return me(e)}function Yf(e,t,n,r){return me(i=>{e(Se.Delay(()=>Se.Bind(L1(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),Se.Zero()})))})}function Zf(e){I1(1,t=>{zf(e)})}function U1(e,t,n,r){const i=gt(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return s=>{const a=gt(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function W1(e,t,n,r,i){const o=U1(t,n,r,i);return T(()=>Hg(o,e))}function Vl(e,t,n){return W1(e,t,n,0,(r,i)=>r+i)}class Zr extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class G1{constructor(t){this.state=new Zr(0,[ao(new Array(Vu(t,10)),0,Vu(t,10),null),0])}}function z1(e){return new G1(e)}function ec(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,i=t.fields[0],o=(r+1)%i.length|0;return o===n?e.state=new Zr(0,[i,n]):e.state=new Zr(1,[i,n,o]),ct(pe(r,i))}else return}function q1(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,i=n.fields[2]|0,o=n.fields[0];_t(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new Zr(1,[Y1(e,i,o),o.length,0]):e.state=new Zr(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];_t(i,r,t);const o=(r+1)%i.length|0;e.state=new Zr(1,[i,o,r])}}function Y1(e,t,n){return Array.from(T(()=>H(zg(t,n),T(()=>H(qg(t,n),T(()=>Ts(r=>A(xe()),Vl(0,1,n.length))))))))}class Hl extends Ce{constructor(t,n,r,i,o,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=s,this.termination=a}}function Mr(e,t,n){return new Hl(e,t,r=>m1(),n,Qe(r=>{const i=ur(n)(r);return o=>{i(o)}}),r=>{M1(r[0],r[1])},[r=>!1,r=>{}])}function Z1(e,t){return new Hl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function K1(e){return e.init}function X1(e,t,n,r,i,o,s){const a=ur(e)(s.init),l=aa(t)(ur(s.update)),u=aa(n)(ur(s.view)),f=aa(r)(ur(s.setState));return new Hl(a,Qe(l),ur(i)(s.subscribe),Qe(u),Qe(f),s.onError,o(s.termination))}function J1(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=z1(10);let u=!1,f=o,c=b1,p=!1;const h=b=>{p||(q1(l,b),u||(u=!0,g(),u=!1))},m=ur(e)(h),g=()=>{let b,x=ec(l);for(;!p&&x!=null;){const C=V(x);if(a[0](C))g1(n.onError,c),a[1](f),p=!0;else{const E=n.update(C,f),$=E[0],I=n.subscribe($);n.setState($,m),Qu(L=>{n.onError([ri(zn("Error handling the message: %A"))(C),L])},m,E[1]),f=$,c=(b=Ju(c,I),Xu(n.onError,m,b[0],b[1],b[2],b[3])),x=ec(l)}}};u=!0,n.setState(o,m),Qu(b=>{n.onError([ri(zn("Error intitializing:")),b])},m,i[1]),c=(r=Ju(c,s),Xu(n.onError,m,r[0],r[1],r[2],r[3])),g(),u=!1}function Q1(e,t){J1(Qe(n=>n),e,t)}function ey(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 i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var ma={exports:{}},ha={};const ty=ey(Zo);/**
4
4
  * @license React
5
5
  * use-sync-external-store-shim.production.min.js
6
6
  *
@@ -8,18 +8,18 @@ var to,_e,wd,lr,fu,vd,Ma,ll,Ia,Da,bd,zi={},_d=[],A0=/acit|ex(?:s|g|n|p|$)|rph|gr
8
8
  *
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
- */var nc;function ny(){if(nc)return ha;nc=1;var e=ty;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(c,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),w=m[0].inst,b=m[1];return o(function(){w.value=h,w.getSnapshot=p,l(w)&&b({inst:w})},[c,h,p]),i(function(){return l(w)&&b({inst:w}),c(function(){l(w)&&b({inst:w})})},[c]),s(h),h}function l(c){var p=c.getSnapshot;c=c.value;try{var h=p();return!n(c,h)}catch{return!0}}function u(c,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return ha.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,ha}var rc;function ry(){return rc||(rc=1,ma.exports=ny()),ma.exports}var iy=ry();class oy{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=K1(i)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const c=this.finalDispatch;c==null?o.push(f):c(f)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const p=Pa(this.state[0]);return Q1(this.arg,Z1((h,m)=>{const w=this.state;this.finalDispatch=m,this.state=[h,w[1],!0,o],h!==w[0]&&f()},X1((h,m)=>{const w=this.cmd;return this.cmd=Z(),[this.state[0],w]},(h,m,w)=>h(m)(this.state[0]),Va(h=>h),Va(h=>h),Qe(h=>h),h=>[m=>h[0](m)?!0:p&&c,m=>{const w=m;Pa(w)?ke(w):h[1](m)}],i))),()=>{c=!0}}}}function ic(e,t,n){return new oy(e,t,n)}function sy(e){return e.state}function ay(e){return e.subscribe}function ly(e,t,n){return re(e.arg,t)?!re(e.dependencies,n):!0}function Ir(e,t,n){const r=ye(()=>ic(e,t,n)),i=r[0];ly(i,t,n)&&r[1](ic(e,t,n));const o=iy.useSyncExternalStore(ay(i),()=>sy(i)),s=o[2],a=o[3],l=o[1];return Me(()=>{if(s&&a.length>0){let u=$e(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{ke(u)}pp(a)}},[s,a]),[o[0],l]}class uy extends Ce{constructor(t,n){super(),this.Name=t,this.Email=n}}function Bl(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],uy,()=>[["Name",$n],["Email",zr($n)]])}class cy extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function Kf(){return cf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],cy,()=>[[],[]])}class dy extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function fy(){return cf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],dy,()=>[[],[]])}class my extends Ce{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function hy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],my,()=>[["User",Bl()],["ProfileCount",kt],["RequestType",fy()],["RequestedAt",qn("System.DateTime")]])}class py extends Ce{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=s}}function gy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],py,()=>[["Stage",Kf()],["InputRowCount",kt],["StartTime",qn("System.DateTime")],["SucceededRowCount",zr(kt)],["FailedRowCount",zr(kt)],["RemainingRowCount",zr(kt)]])}class yy extends Ce{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=s}}function Xf(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],yy,()=>[["Stage",Kf()],["InputRowCount",kt],["SucceededRowCount",kt],["FailedRowCount",kt],["StartTime",qn("System.DateTime")],["StopTime",qn("System.DateTime")]])}class wy extends Ce{constructor(t,n,r,i,o,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=s,this.StartTime=a}}function vy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],wy,()=>[["ImportId",kt],["User",Bl()],["Filename",$n],["NumberOfRecords",kt],["CurrentStage",zr(gy())],["CompletedStages",wr(Xf())],["StartTime",qn("System.DateTime")]])}class by extends Ce{constructor(t,n,r,i,o,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function _y(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],by,()=>[["ImportId",kt],["User",Bl()],["Filename",$n],["NumberOfRecords",kt],["CompletedStages",wr(Xf())],["BenefitsRequests",wr(hy())],["StartTime",qn("System.DateTime")],["StopTime",qn("System.DateTime")]])}class xy extends Ce{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Cy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],xy,()=>[["ActiveImport",zr(vy())],["ImportHistory",wr(_y())]])}function Sy(e){return new $(0,[e])}function Jf(e){return new $(1,[e])}class $ extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Dn(e,t){return t.tag===0?Sy(e(t.fields[0])):Jf(t.fields[0])}function Ey(e,t){return t.tag===0?e(t.fields[0]):Jf(t.fields[0])}class Ga extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Ay(e){return e.tag===1?new Ga(0,[]):new Ga(1,[])}function ky(e,t,n){return e.tag===1?Eg(t,n,{Compare:gt}):Sg(t,n,{Compare:gt})}class Is extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let jo=class extends Ce{constructor(t){super(),this.View=t}},Bo=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Qf=class extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function Ny(){return[new jo(new Bo(0,[])),me(e=>{e(new Qf(new Is(0,[void 0])))})]}function Ty(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new jo(new Bo(2,[t.fields[0].fields[0].fields[0]])),Z()]:[new jo(new Bo(1,[t.fields[0].fields[0].fields[0]])),Z()]:[new jo(new Bo(0,[])),Yf(r=>{Zf(r)},e,void 0,r=>new Qf(new Is(1,[r])))]}class Ul extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class em extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Ds extends Ce{constructor(t,n,r,i,o,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=l}}class Vr extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class tm extends Ce{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}class nm{constructor(t,n){this.k=t,this.v=n}}function si(e,t){return new nm(e,t)}function et(e){return e.k}function st(e){return e.v}class nt extends nm{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function pr(e,t,n,r,i){return new nt(e,t,n,r,i)}function Ke(e){return e.left}function Xe(e){return e.right}function Un(e){return e.h}function rm(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof nt){const o=i;e=rm(n+1,Ke(o)),t=Xe(o);continue e}else return n+1|0}else return n|0}}function im(e){return rm(0,e)}function Vt(e,t,n,r){let i,o,s;const a=e;if(a!=null){const c=V(a);s=c instanceof nt?(i=c,Un(i)):1}else s=0;let l;const u=r;if(u!=null){const c=V(u);l=c instanceof nt?(o=c,Un(o)):1}else l=0;const f=(s<l?l:s)|0;return f===0?si(t,n):pr(t,n,e,r,f+1)}function os(e,t,n,r){let i,o,s,a,l,u,f,c,p;const h=e;if(h!=null){const b=V(h);p=b instanceof nt?(i=b,Un(i)):1}else p=0;let m;const w=r;if(w!=null){const b=V(w);m=b instanceof nt?(o=b,Un(o)):1}else m=0;if(m>p+2){const b=V(r);if(b instanceof nt){const x=b;if(s=Ke(x),(s!=null?(a=V(s),a instanceof nt?(l=a,Un(l)):1):0)>p+1){const C=V(Ke(x));if(C instanceof nt){const E=C;return Vt(Vt(e,t,n,Ke(E)),et(E),st(E),Vt(Xe(E),et(x),st(x),Xe(x)))}else throw new Error("internal error: Map.rebalance")}else return Vt(Vt(e,t,n,Ke(x)),et(x),st(x),Xe(x))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const b=V(e);if(b instanceof nt){const x=b;if(u=Xe(x),(u!=null?(f=V(u),f instanceof nt?(c=f,Un(c)):1):0)>m+1){const C=V(Xe(x));if(C instanceof nt){const E=C;return Vt(Vt(Ke(x),et(x),st(x),Ke(E)),et(E),st(E),Vt(Xe(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Vt(Ke(x),et(x),st(x),Vt(Xe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Vt(e,t,n,r)}function ai(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,et(i))|0;if(i instanceof nt){const s=i;return o<0?os(ai(e,t,n,Ke(s)),et(s),st(s),Xe(s)):o===0?pr(t,n,Ke(s),Xe(s),Un(s)):os(Ke(s),et(s),st(s),ai(e,t,n,Xe(s)))}else return o<0?pr(t,n,void 0,r,2):o===0?si(t,n):pr(t,n,r,void 0,2)}else return si(t,n)}function Wl(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,et(s))|0;if(a===0)return ct(st(s));if(s instanceof nt){const l=s;e=r,t=i,n=a<0?Ke(l):Xe(l);continue e}else return}else return}}function $y(e,t,n){const r=Wl(e,t,n);if(r==null)throw new Error;return V(r)}function om(e){if(e!=null){const t=V(e);if(t instanceof nt){const n=t;if(Ke(n)==null)return[et(n),st(n),Xe(n)];{const r=om(Ke(n));return[r[0],r[1],Vt(r[2],et(n),st(n),Xe(n))]}}else return[et(t),st(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function za(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof nt){const o=i,s=e.Compare(t,et(o))|0;if(s<0)return os(za(e,t,n,Ke(o)),et(o),st(o),Xe(o));if(s===0){const a=n(ct(st(o)));if(a!=null)return pr(t,V(a),Ke(o),Xe(o),Un(o));if(Ke(o)==null)return Xe(o);if(Xe(o)==null)return Ke(o);{const l=om(Xe(o));return Vt(Ke(o),l[0],l[1],l[2])}}else return os(Ke(o),et(o),st(o),za(e,t,n,Xe(o)))}else{const o=e.Compare(t,et(i))|0;if(o<0){const s=n(void 0);return s!=null?pr(t,V(s),void 0,r,2):r}else if(o===0){const s=n(ct(st(i)));return s!=null?si(t,V(s)):void 0}else{const s=n(void 0);return s!=null?pr(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?si(t,V(i)):r}}function My(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,et(s))|0;if(s instanceof nt){const l=s;if(a<0){e=r,t=i,n=Ke(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Xe(l);continue e}}else return a===0}else return!1}}function sm(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof nt){const o=i;sm(n,Ke(o)),n(et(o),st(o)),e=n,t=Xe(o);continue e}else n(et(i),st(i))}break}}function Iy(e,t){sm(e,t)}function am(e,t,n){let r=n;Iy((i,o)=>{_t(t,r,[i,o]),r=r+1|0},e)}function Dy(e){const t=im(e)|0,n=so(new Array(t),0,t,[null,null]);return am(e,n,0),n}function Oy(e,t){return Fn((n,r)=>ai(e,r[0],r[1],n),void 0,t)}function Ry(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=ai(r,s[0],s[1],i),n=o;continue e}else return i}}function Fy(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=pe(r,t);n=ai(e,i[0],i[1],n)}return n}function lm(e,t){if(dn(t))return Fy(e,t);if(t instanceof xt)return Oy(e,t);{const n=$e(t);try{return Ry(e,void 0,n)}finally{ke(n)}}}class Py extends Ce{constructor(t,n){super(),this.stack=t,this.started=n}}function um(e){e:for(;;){const t=e;if(Ae(t))return dt();{const n=Ee(t),r=ce(t);if(r!=null){const i=V(r);if(i instanceof nt){const o=i;e=Ye([Ke(o),si(et(o),st(o)),Xe(o)],n);continue e}else return t}else{e=n;continue e}}}}function oc(e){return new Py(um(me(e)),!1)}function Ly(){throw new Error("enumeration not started")}function Vy(){throw new Error("enumeration already finished")}function sc(e){if(e.started){const t=e.stack;if(Ae(t))return Vy();if(ce(t)!=null){const n=V(ce(t));if(n instanceof nt)throw new Error("Please report error: Map iterator, unexpected stack for current");return[et(n),st(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Ly()}function Hy(e){if(e.started){const t=e.stack;if(Ae(t))return!1;if(ce(t)!=null){if(V(ce(t))instanceof nt)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=um(Ee(t)),!Ae(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Ae(e.stack)}function ac(e){let t=oc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return sc(t)},"System.Collections.IEnumerator.get_Current"(){return sc(t)},"System.Collections.IEnumerator.MoveNext"(){return Hy(t)},"System.Collections.IEnumerator.Reset"(){t=oc(e)},Dispose(){}}}class ss{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Gy(this)|0}Equals(t){const n=this;if(t instanceof ss){const r=t,i=$e(n);try{const o=$e(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return re(l[0],u[0])&&re(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{ke(o)}}finally{ke(i)}}else return!1}toString(){return"map ["+bt("; ",je(n=>af("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return ac(this.tree)}[Symbol.iterator](){return fi($e(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ac(this.tree)}CompareTo(t){const n=this;if(t instanceof ss)return Bg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:gt(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return lc(n,t[0])&&re(br(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){am(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return pa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return pa(this)|0}get size(){return pa(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return je(n=>[n[0],n[1]],this)}get(t){return br(this,t)}has(t){return lc(this,t)}keys(){return je(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return je(n=>n[1],this)}forEach(t,n){const r=this;Tr(i=>{t(i[1],i[0],r)},r)}}function fo(e,t){return new ss(e,t)}function jy(e){return fo(e,void 0)}function By(e,t,n){return fo(e.comparer,ai(e.comparer,t,n,e.tree))}function Uy(e,t,n){return fo(e.comparer,za(e.comparer,t,n,e.tree))}function br(e,t){return $y(e.comparer,t,e.tree)}function pa(e){return im(e.tree)}function lc(e,t){return My(e.comparer,t,e.tree)}function Wy(e,t,n){const r=Wl(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function uc(e){return ze(t=>t[1],Dy(e.tree))}function hn(e,t){return Wl(e.comparer,t,e.tree)}function Gy(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=$e(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Xt(i[0]))|0,n=t(n,Xt(i[1]))|0}}finally{ke(r)}return n|0}function cm(e,t,n){return By(n,e,t)}function No(e,t,n){return Uy(n,e,t)}function dm(e,t){return hn(t,e)}function zy(e){return je(t=>[t[0],t[1]],e)}function Kr(e,t){return fo(t,lm(t,e))}function qy(e,t){return fo(t,lm(t,e))}function Gl(e){return jy(e)}const ir=new Ds("",new Ul(0,[]),dt(),!1,void 0,void 0,void 0,new em(0,[]));new tm(0,"","","",Gl({Compare:Nr}),new Vr(0,[""]));function cc(e,t){return Tl(t)?new Array(0):zp(t,[e],void 0,0)}function Yy(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 fm(e){return new Ds(e,ir.method,ir.headers,ir.withCredentials,ir.overridenMimeType,ir.overridenResponseType,ir.timeout,ir.content)}function mm(e,t){return new Ds(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zy(e,t){return new Ds(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function dc(e){return V1(t=>{const n=new XMLHttpRequest;n.open(Yy(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,h,m;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(h=n.responseType,h===""?new Vr(0,[n.responseText]):h==="text"?new Vr(0,[n.responseText]):h==="arraybuffer"?new Vr(2,[n.response]):h==="blob"?new Vr(1,[n.response]):new Vr(3,[n.response])),m=qy(Ut(w=>{const b=y(cc(":",w));if(!Ae(b))return[ce(b).toLocaleLowerCase(),bt(":",Ee(b)).trim()]},cc(`\r
12
- `,n.getAllResponseHeaders())),{Compare:Nr}),new tm(f,l,c,n.responseURL,m,p)))};const r=$e(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{ke(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ct(a.fields[0]));break}case 3:{n.send(ct(a.fields[0]));break}case 2:{n.send(ct(a.fields[0]));break}default:n.send()}})}class oe extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Zi extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function fc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function hm(e,t){switch(e.tag){case 2:return Nl(fc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return fc(t)}}const Ky=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,mc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Xy=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Jy(e){function t(r){return r.replace(mc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ky.test(n))return qp(n,"{","}","(",")");if(mc.test(n))return t(n);if(Xy.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 Qy(e,t){try{return t.contents=Jy(e),!0}catch{return!1}}var qa;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(qa||(qa={}));function ew(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function hc(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 tw(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 nw(e,t){if(t&qa.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 rw(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||nw(o,t),!tw(n).test(s))return ew(i,n)}return null}function iw(e,t,n,r,i){const o=rw(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=hc(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=hc(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function yi(e,t,n,r,i){try{return i.contents=iw(e,t,n,r),!0}catch{return!1}}function pm(e,t){ow(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function ow(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 sw(){return pm(-621355968e5,0)}function aw(e){const[t,n]=ef(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return pm(t.getTime(),r)}function lw(e,t){try{return t.contents=aw(e),!0}catch{return!1}}function mo(e){return e<0?Math.ceil(e):Math.floor(e)}function pc(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return uw(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function uw(e){return Number(BigInt(e)/10000n)}function cw(e){return mo(e/864e5)}function dw(e){return mo(e%864e5/36e5)}function fw(e){return mo(e%36e5/6e4)}function mw(e){return mo(e%6e4/1e3)}function hw(e){return mo(e%1e3)}function pw(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(cw(e)),i=Math.abs(dw(e)),o=Math.abs(fw(e)),s=Math.abs(mw(e)),a=Math.abs(hw(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:Re(i,2)}:${Re(o,2)}:${Re(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+Re(a,3):"."+sp(a,3,7)}`}function gw(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 pc(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 i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*pc(i,l,u,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function yw(e,t){try{return t.contents=gw(e),!0}catch{return!1}}function Ni(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
11
+ */var tc;function ny(){if(tc)return ha;tc=1;var e=ty;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(c,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),g=m[0].inst,b=m[1];return o(function(){g.value=h,g.getSnapshot=p,l(g)&&b({inst:g})},[c,h,p]),i(function(){return l(g)&&b({inst:g}),c(function(){l(g)&&b({inst:g})})},[c]),s(h),h}function l(c){var p=c.getSnapshot;c=c.value;try{var h=p();return!n(c,h)}catch{return!0}}function u(c,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return ha.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,ha}var nc;function ry(){return nc||(nc=1,ma.exports=ny()),ma.exports}var iy=ry();class oy{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=K1(i)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const c=this.finalDispatch;c==null?o.push(f):c(f)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const p=Pa(this.state[0]);return Q1(this.arg,Z1((h,m)=>{const g=this.state;this.finalDispatch=m,this.state=[h,g[1],!0,o],h!==g[0]&&f()},X1((h,m)=>{const g=this.cmd;return this.cmd=Z(),[this.state[0],g]},(h,m,g)=>h(m)(this.state[0]),Va(h=>h),Va(h=>h),Qe(h=>h),h=>[m=>h[0](m)?!0:p&&c,m=>{const g=m;Pa(g)?Ne(g):h[1](m)}],i))),()=>{c=!0}}}}function rc(e,t,n){return new oy(e,t,n)}function sy(e){return e.state}function ay(e){return e.subscribe}function ly(e,t,n){return re(e.arg,t)?!re(e.dependencies,n):!0}function Ir(e,t,n){const r=ye(()=>rc(e,t,n)),i=r[0];ly(i,t,n)&&r[1](rc(e,t,n));const o=iy.useSyncExternalStore(ay(i),()=>sy(i)),s=o[2],a=o[3],l=o[1];return Ie(()=>{if(s&&a.length>0){let u=Me(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Ne(u)}pp(a)}},[s,a]),[o[0],l]}class uy extends Ce{constructor(t,n){super(),this.Name=t,this.Email=n}}function jl(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],uy,()=>[["Name",$n],["Email",zr($n)]])}class cy extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function Kf(){return uf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],cy,()=>[[],[]])}class dy extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function fy(){return uf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],dy,()=>[[],[]])}class my extends Ce{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function hy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],my,()=>[["User",jl()],["ProfileCount",kt],["RequestType",fy()],["RequestedAt",qn("System.DateTime")]])}class py extends Ce{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=s}}function gy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],py,()=>[["Stage",Kf()],["InputRowCount",kt],["StartTime",qn("System.DateTime")],["SucceededRowCount",zr(kt)],["FailedRowCount",zr(kt)],["RemainingRowCount",zr(kt)]])}class yy extends Ce{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=s}}function Xf(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],yy,()=>[["Stage",Kf()],["InputRowCount",kt],["SucceededRowCount",kt],["FailedRowCount",kt],["StartTime",qn("System.DateTime")],["StopTime",qn("System.DateTime")]])}class wy extends Ce{constructor(t,n,r,i,o,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=s,this.StartTime=a}}function vy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],wy,()=>[["ImportId",kt],["User",jl()],["Filename",$n],["NumberOfRecords",kt],["CurrentStage",zr(gy())],["CompletedStages",wr(Xf())],["StartTime",qn("System.DateTime")]])}class by extends Ce{constructor(t,n,r,i,o,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function _y(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],by,()=>[["ImportId",kt],["User",jl()],["Filename",$n],["NumberOfRecords",kt],["CompletedStages",wr(Xf())],["BenefitsRequests",wr(hy())],["StartTime",qn("System.DateTime")],["StopTime",qn("System.DateTime")]])}class xy extends Ce{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Cy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],xy,()=>[["ActiveImport",zr(vy())],["ImportHistory",wr(_y())]])}function Sy(e){return new M(0,[e])}function Jf(e){return new M(1,[e])}class M extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Dn(e,t){return t.tag===0?Sy(e(t.fields[0])):Jf(t.fields[0])}function Ey(e,t){return t.tag===0?e(t.fields[0]):Jf(t.fields[0])}class Wa extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Ay(e){return e.tag===1?new Wa(0,[]):new Wa(1,[])}function ky(e,t,n){return e.tag===1?Eg(t,n,{Compare:gt}):Sg(t,n,{Compare:gt})}class Is extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let jo=class extends Ce{constructor(t){super(),this.View=t}},Bo=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Qf=class extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function Ny(){return[new jo(new Bo(0,[])),me(e=>{e(new Qf(new Is(0,[void 0])))})]}function Ty(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new jo(new Bo(2,[t.fields[0].fields[0].fields[0]])),Z()]:[new jo(new Bo(1,[t.fields[0].fields[0].fields[0]])),Z()]:[new jo(new Bo(0,[])),Yf(r=>{Zf(r)},e,void 0,r=>new Qf(new Is(1,[r])))]}class Bl extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class em extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Ds extends Ce{constructor(t,n,r,i,o,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=l}}class Vr extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class tm extends Ce{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}class nm{constructor(t,n){this.k=t,this.v=n}}function si(e,t){return new nm(e,t)}function tt(e){return e.k}function st(e){return e.v}class nt extends nm{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function pr(e,t,n,r,i){return new nt(e,t,n,r,i)}function Ke(e){return e.left}function Xe(e){return e.right}function Un(e){return e.h}function rm(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof nt){const o=i;e=rm(n+1,Ke(o)),t=Xe(o);continue e}else return n+1|0}else return n|0}}function im(e){return rm(0,e)}function Vt(e,t,n,r){let i,o,s;const a=e;if(a!=null){const c=V(a);s=c instanceof nt?(i=c,Un(i)):1}else s=0;let l;const u=r;if(u!=null){const c=V(u);l=c instanceof nt?(o=c,Un(o)):1}else l=0;const f=(s<l?l:s)|0;return f===0?si(t,n):pr(t,n,e,r,f+1)}function os(e,t,n,r){let i,o,s,a,l,u,f,c,p;const h=e;if(h!=null){const b=V(h);p=b instanceof nt?(i=b,Un(i)):1}else p=0;let m;const g=r;if(g!=null){const b=V(g);m=b instanceof nt?(o=b,Un(o)):1}else m=0;if(m>p+2){const b=V(r);if(b instanceof nt){const x=b;if(s=Ke(x),(s!=null?(a=V(s),a instanceof nt?(l=a,Un(l)):1):0)>p+1){const C=V(Ke(x));if(C instanceof nt){const E=C;return Vt(Vt(e,t,n,Ke(E)),tt(E),st(E),Vt(Xe(E),tt(x),st(x),Xe(x)))}else throw new Error("internal error: Map.rebalance")}else return Vt(Vt(e,t,n,Ke(x)),tt(x),st(x),Xe(x))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const b=V(e);if(b instanceof nt){const x=b;if(u=Xe(x),(u!=null?(f=V(u),f instanceof nt?(c=f,Un(c)):1):0)>m+1){const C=V(Xe(x));if(C instanceof nt){const E=C;return Vt(Vt(Ke(x),tt(x),st(x),Ke(E)),tt(E),st(E),Vt(Xe(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Vt(Ke(x),tt(x),st(x),Vt(Xe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Vt(e,t,n,r)}function ai(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,tt(i))|0;if(i instanceof nt){const s=i;return o<0?os(ai(e,t,n,Ke(s)),tt(s),st(s),Xe(s)):o===0?pr(t,n,Ke(s),Xe(s),Un(s)):os(Ke(s),tt(s),st(s),ai(e,t,n,Xe(s)))}else return o<0?pr(t,n,void 0,r,2):o===0?si(t,n):pr(t,n,r,void 0,2)}else return si(t,n)}function Ul(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,tt(s))|0;if(a===0)return ct(st(s));if(s instanceof nt){const l=s;e=r,t=i,n=a<0?Ke(l):Xe(l);continue e}else return}else return}}function $y(e,t,n){const r=Ul(e,t,n);if(r==null)throw new Error;return V(r)}function om(e){if(e!=null){const t=V(e);if(t instanceof nt){const n=t;if(Ke(n)==null)return[tt(n),st(n),Xe(n)];{const r=om(Ke(n));return[r[0],r[1],Vt(r[2],tt(n),st(n),Xe(n))]}}else return[tt(t),st(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function Ga(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof nt){const o=i,s=e.Compare(t,tt(o))|0;if(s<0)return os(Ga(e,t,n,Ke(o)),tt(o),st(o),Xe(o));if(s===0){const a=n(ct(st(o)));if(a!=null)return pr(t,V(a),Ke(o),Xe(o),Un(o));if(Ke(o)==null)return Xe(o);if(Xe(o)==null)return Ke(o);{const l=om(Xe(o));return Vt(Ke(o),l[0],l[1],l[2])}}else return os(Ke(o),tt(o),st(o),Ga(e,t,n,Xe(o)))}else{const o=e.Compare(t,tt(i))|0;if(o<0){const s=n(void 0);return s!=null?pr(t,V(s),void 0,r,2):r}else if(o===0){const s=n(ct(st(i)));return s!=null?si(t,V(s)):void 0}else{const s=n(void 0);return s!=null?pr(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?si(t,V(i)):r}}function My(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,tt(s))|0;if(s instanceof nt){const l=s;if(a<0){e=r,t=i,n=Ke(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Xe(l);continue e}}else return a===0}else return!1}}function sm(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof nt){const o=i;sm(n,Ke(o)),n(tt(o),st(o)),e=n,t=Xe(o);continue e}else n(tt(i),st(i))}break}}function Iy(e,t){sm(e,t)}function am(e,t,n){let r=n;Iy((i,o)=>{_t(t,r,[i,o]),r=r+1|0},e)}function Dy(e){const t=im(e)|0,n=ao(new Array(t),0,t,[null,null]);return am(e,n,0),n}function Oy(e,t){return Fn((n,r)=>ai(e,r[0],r[1],n),void 0,t)}function Ry(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=ai(r,s[0],s[1],i),n=o;continue e}else return i}}function Fy(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=pe(r,t);n=ai(e,i[0],i[1],n)}return n}function lm(e,t){if(dn(t))return Fy(e,t);if(t instanceof xt)return Oy(e,t);{const n=Me(t);try{return Ry(e,void 0,n)}finally{Ne(n)}}}class Py extends Ce{constructor(t,n){super(),this.stack=t,this.started=n}}function um(e){e:for(;;){const t=e;if(ke(t))return dt();{const n=Ae(t),r=ce(t);if(r!=null){const i=V(r);if(i instanceof nt){const o=i;e=Ye([Ke(o),si(tt(o),st(o)),Xe(o)],n);continue e}else return t}else{e=n;continue e}}}}function ic(e){return new Py(um(me(e)),!1)}function Ly(){throw new Error("enumeration not started")}function Vy(){throw new Error("enumeration already finished")}function oc(e){if(e.started){const t=e.stack;if(ke(t))return Vy();if(ce(t)!=null){const n=V(ce(t));if(n instanceof nt)throw new Error("Please report error: Map iterator, unexpected stack for current");return[tt(n),st(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Ly()}function Hy(e){if(e.started){const t=e.stack;if(ke(t))return!1;if(ce(t)!=null){if(V(ce(t))instanceof nt)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=um(Ae(t)),!ke(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!ke(e.stack)}function sc(e){let t=ic(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return oc(t)},"System.Collections.IEnumerator.get_Current"(){return oc(t)},"System.Collections.IEnumerator.MoveNext"(){return Hy(t)},"System.Collections.IEnumerator.Reset"(){t=ic(e)},Dispose(){}}}class ss{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Gy(this)|0}Equals(t){const n=this;if(t instanceof ss){const r=t,i=Me(n);try{const o=Me(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return re(l[0],u[0])&&re(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{Ne(o)}}finally{Ne(i)}}else return!1}toString(){return"map ["+bt("; ",je(n=>sf("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return sc(this.tree)}[Symbol.iterator](){return fi(Me(this))}"System.Collections.IEnumerable.GetEnumerator"(){return sc(this.tree)}CompareTo(t){const n=this;if(t instanceof ss)return Bg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:gt(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return ac(n,t[0])&&re(br(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){am(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return pa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return pa(this)|0}get size(){return pa(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return je(n=>[n[0],n[1]],this)}get(t){return br(this,t)}has(t){return ac(this,t)}keys(){return je(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return je(n=>n[1],this)}forEach(t,n){const r=this;Tr(i=>{t(i[1],i[0],r)},r)}}function fo(e,t){return new ss(e,t)}function jy(e){return fo(e,void 0)}function By(e,t,n){return fo(e.comparer,ai(e.comparer,t,n,e.tree))}function Uy(e,t,n){return fo(e.comparer,Ga(e.comparer,t,n,e.tree))}function br(e,t){return $y(e.comparer,t,e.tree)}function pa(e){return im(e.tree)}function ac(e,t){return My(e.comparer,t,e.tree)}function Wy(e,t,n){const r=Ul(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function lc(e){return ze(t=>t[1],Dy(e.tree))}function hn(e,t){return Ul(e.comparer,t,e.tree)}function Gy(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=Me(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Xt(i[0]))|0,n=t(n,Xt(i[1]))|0}}finally{Ne(r)}return n|0}function cm(e,t,n){return By(n,e,t)}function No(e,t,n){return Uy(n,e,t)}function dm(e,t){return hn(t,e)}function zy(e){return je(t=>[t[0],t[1]],e)}function Kr(e,t){return fo(t,lm(t,e))}function qy(e,t){return fo(t,lm(t,e))}function Wl(e){return jy(e)}const ir=new Ds("",new Bl(0,[]),dt(),!1,void 0,void 0,void 0,new em(0,[]));new tm(0,"","","",Wl({Compare:Nr}),new Vr(0,[""]));function uc(e,t){return Nl(t)?new Array(0):zp(t,[e],void 0,0)}function Yy(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 fm(e){return new Ds(e,ir.method,ir.headers,ir.withCredentials,ir.overridenMimeType,ir.overridenResponseType,ir.timeout,ir.content)}function mm(e,t){return new Ds(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zy(e,t){return new Ds(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function cc(e){return V1(t=>{const n=new XMLHttpRequest;n.open(Yy(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,h,m;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(h=n.responseType,h===""?new Vr(0,[n.responseText]):h==="text"?new Vr(0,[n.responseText]):h==="arraybuffer"?new Vr(2,[n.response]):h==="blob"?new Vr(1,[n.response]):new Vr(3,[n.response])),m=qy(Ut(g=>{const b=w(uc(":",g));if(!ke(b))return[ce(b).toLocaleLowerCase(),bt(":",Ae(b)).trim()]},uc(`\r
12
+ `,n.getAllResponseHeaders())),{Compare:Nr}),new tm(f,l,c,n.responseURL,m,p)))};const r=Me(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{Ne(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ct(a.fields[0]));break}case 3:{n.send(ct(a.fields[0]));break}case 2:{n.send(ct(a.fields[0]));break}default:n.send()}})}class oe extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ki extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function dc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function hm(e,t){switch(e.tag){case 2:return kl(dc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return dc(t)}}const Ky=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,fc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Xy=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Jy(e){function t(r){return r.replace(fc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ky.test(n))return qp(n,"{","}","(",")");if(fc.test(n))return t(n);if(Xy.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 Qy(e,t){try{return t.contents=Jy(e),!0}catch{return!1}}var za;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(za||(za={}));function ew(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function mc(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 tw(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 nw(e,t){if(t&za.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 rw(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||nw(o,t),!tw(n).test(s))return ew(i,n)}return null}function iw(e,t,n,r,i){const o=rw(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=mc(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=mc(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function wi(e,t,n,r,i){try{return i.contents=iw(e,t,n,r),!0}catch{return!1}}function pm(e,t){ow(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function ow(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 sw(){return pm(-621355968e5,0)}function aw(e){const[t,n]=Qd(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return pm(t.getTime(),r)}function lw(e,t){try{return t.contents=aw(e),!0}catch{return!1}}function mo(e){return e<0?Math.ceil(e):Math.floor(e)}function hc(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return uw(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function uw(e){return Number(BigInt(e)/10000n)}function cw(e){return mo(e/864e5)}function dw(e){return mo(e%864e5/36e5)}function fw(e){return mo(e%36e5/6e4)}function mw(e){return mo(e%6e4/1e3)}function hw(e){return mo(e%1e3)}function pw(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(cw(e)),i=Math.abs(dw(e)),o=Math.abs(fw(e)),s=Math.abs(mw(e)),a=Math.abs(hw(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:Fe(i,2)}:${Fe(o,2)}:${Fe(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+Fe(a,3):"."+sp(a,3,7)}`}function gw(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 hc(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 i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*hc(i,l,u,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function yw(e,t){try{return t.contents=gw(e),!0}catch{return!1}}function Ti(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
13
13
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
14
- `:" ")}}function ww(e,t){const n=t.tag===2?Ni(t.fields[0],t.fields[1],!0):t.tag===1?Ni(t.fields[0],t.fields[1],!1)+`
15
- Reason: `+t.fields[2]:t.tag===3?Ni(t.fields[0],t.fields[1],!0):t.tag===4?Ni(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
14
+ `:" ")}}function ww(e,t){const n=t.tag===2?Ti(t.fields[0],t.fields[1],!0):t.tag===1?Ti(t.fields[0],t.fields[1],!1)+`
15
+ Reason: `+t.fields[2]:t.tag===3?Ti(t.fields[0],t.fields[1],!0):t.tag===4?Ti(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
16
16
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
17
17
 
18
18
  `+bt(`
19
19
 
20
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Ni(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function gm(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new $(1,[ww(i[0],i[1])])}else return new $(0,[r.fields[0]])}function ym(e,t){try{return gm("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new $(1,["Given an invalid JSON: "+n.message]);throw n}}function wm(e,t){return typeof t=="string"?new $(0,[t]):new $(1,[[e,new oe(0,["a string",t])]])}function vw(e,t){if(typeof t=="string"){const n=t;return n.length===1?new $(0,[n[0]]):new $(1,[[e,new oe(0,["a single character string",t])]])}else return new $(1,[[e,new oe(0,["a char",t])]])}function bw(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Qy(t,new ht(()=>r,i=>{r=i})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new oe(0,["a guid",t])]])}else return new $(1,[[e,new oe(0,["a guid",t])]])}function _w(e,t){return t==null?new $(0,[void 0]):new $(1,[[e,new oe(0,["null",t])]])}const gc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new $(0,[(i+128&255)-128]):new $(1,[[n,new oe(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new $(1,[[n,new oe(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[yi(r,511,!1,8,new ht(()=>o,s=>{o=s|0})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new oe(0,["a sbyte",r])]])}else return new $(1,[[n,new oe(0,["a sbyte",r])]])},yc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new $(0,[i&255]):new $(1,[[n,new oe(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new $(1,[[n,new oe(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[yi(r,511,!0,8,new ht(()=>o,s=>{o=s})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new oe(0,["a byte",r])]])}else return new $(1,[[n,new oe(0,["a byte",r])]])},wc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new $(0,[(i+32768&65535)-32768]):new $(1,[[n,new oe(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new $(1,[[n,new oe(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[yi(r,511,!1,16,new ht(()=>o,s=>{o=s|0})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new oe(0,["an int16",r])]])}else return new $(1,[[n,new oe(0,["an int16",r])]])},vc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new $(0,[i&65535]):new $(1,[[n,new oe(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new $(1,[[n,new oe(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[yi(r,511,!0,16,new ht(()=>o,s=>{o=s})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new oe(0,["an uint16",r])]])}else return new $(1,[[n,new oe(0,["an uint16",r])]])},bc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new $(0,[~~i]):new $(1,[[n,new oe(1,["an int",i,"Value was either too large or too small for an int"])]]):new $(1,[[n,new oe(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[yi(r,511,!1,32,new ht(()=>o,s=>{o=s|0})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new oe(0,["an int",r])]])}else return new $(1,[[n,new oe(0,["an int",r])]])},_c=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new $(0,[i>>>0]):new $(1,[[n,new oe(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new $(1,[[n,new oe(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[yi(r,511,!0,32,new ht(()=>o,s=>{o=s})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new oe(0,["an uint32",r])]])}else return new $(1,[[n,new oe(0,["an uint32",r])]])};function xw(e,t){return typeof t=="boolean"?new $(0,[t]):new $(1,[[e,new oe(0,["a boolean",t])]])}function Cw(e,t){return typeof t=="number"?new $(0,[t]):new $(1,[[e,new oe(0,["a float",t])]])}function Sw(e,t){return typeof t=="number"?new $(0,[t]):new $(1,[[e,new oe(0,["a float32",t])]])}function Ew(e,t){if(typeof t=="string"){let n,r=Fp();return n=[Lp(t,new ht(()=>r,i=>{r=i})),r],n[0]?new $(0,[Vp(n[1])]):new $(1,[[e,new oe(0,["a datetime",t])]])}else return new $(1,[[e,new oe(0,["a datetime",t])]])}function Aw(e,t){if(typeof t=="string"){let n,r=sw();return n=[lw(t,new ht(()=>r,i=>{r=i})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new oe(0,["a datetimeoffset",t])]])}else return new $(1,[[e,new oe(0,["a datetime",t])]])}function kw(e,t){if(typeof t=="string"){let n,r=0;return n=[yw(t,new ht(()=>r,i=>{r=i})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new oe(0,["a timespan",t])]])}else return new $(1,[[e,new oe(0,["a timespan",t])]])}function xc(e,t,n,r){let i;const o=n+".["+cn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,pe(e,s)):new $(1,[[o,new oe(5,["a longer array. Need index `"+cn(e)+"` but there are only `"+(i=s.length,cn(i))+"` entries",r])]])}else return new $(1,[[o,new oe(0,["an array",r])]])}function Nw(e,t,n){return n==null?new $(0,[void 0]):Dn(ct,e(t,n))}function Cc(e,t,n){if(Array.isArray(n)){let r=-1;return Dn(Il,As((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+cn(r)+"]",o);return s.tag===0?new $(0,[Yt(s.fields[0],i.fields[0])]):new $(1,[s.fields[0]])}else return i},new $(0,[dt()]),n))}else return new $(1,[[t,new oe(0,["a list",n])]])}function Tw(e,t,n){if(Array.isArray(n)){let r=-1;return Dn(Gg,As((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+cn(r)+"]",o);return s.tag===0?new $(0,[H([s.fields[0]],i.fields[0])]):new $(1,[s.fields[0]])}else return i},new $(0,[[]]),n))}else return new $(1,[[t,new oe(0,["a seq",n])]])}function Sc(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return As((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+cn(r)+"]",s);return l.tag===0?(_t(a,r,l.fields[0]),new $(0,[a])):new $(1,[l.fields[0]])}else return o},new $(0,[so(new Array(i.length),0,i.length,null)]),i)}else return new $(1,[[t,new oe(0,["an array",n])]])}function $w(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if(Ae(s))return new $(1,[[t,new oe(7,[a])]]);{const l=gm(t,Qe(ce(s)),n);if(l.tag===1){i=Ee(s),o=lo(a,me(l.fields[0]));continue e}else return new $(0,[l.fields[0]])}}})(e,dt())}function Mw(e,t,n){return new $(0,[e])}function Ec(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new $(1,[i.fields[0]])}function Iw(e,t,n,r){const i=t(n,r);return i.tag===1?new $(1,[i.fields[0]]):new $(0,[e(i.fields[0])])}function Dw(e,t){let n;const r=e;return n=i=>o=>xc(0,r,i,o),i=>o=>Ec(Va(s=>{let a;const l=t;return a=u=>f=>xc(1,l,u,f),u=>f=>Ec((c,p,h)=>Mw([s,c]),Qe(a),u,f)}),Qe(n),i,o)}function Ow(e){return Kr(e,{Compare:gt})}function Rw(e){return f1(e,{Compare:gt})}function Fw(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Ef((r,i)=>{const o=r[0];return i.tag===0?Dn(s=>Yt(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new $(0,[dt()])):new $(1,[[t,new oe(0,["an object",n])]])}function Pw(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?co((i,o)=>{if(i.tag===0){const s=e(n,o);if(s.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new $(0,[Yt([s.fields[0],a.fields[0]],i.fields[0])]):new $(1,[a.fields[0]])}else return new $(1,[s.fields[0]])}else return i},new $(0,[dt()]),Object.keys(r)):new $(1,[[n,new oe(0,["an object",r])]])}function vm(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new $(1,[[n,new oe(6,[(i=r.length|0,ri(zn("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new $(0,[dt()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=ri(zn("%s[%i]"))(n)(a),f=pe(a-e,t),c=pe(a,r);s=Dn(p=>Yt(p,l),f(u)(c))}return Dn(Il,s)}}function Ac(e,t,n,r,i,o){const s=Es(a=>qr(a)===r,pf(n));if(s!=null){const a=s,l=ze(u=>on(e,t,!1,u[1]),vf(a));return Dn(u=>ng(a,Rn(u)),l.length===0&&o.length<=1?new $(0,[dt()]):vm(1,l,i,o))}else return new $(1,[[i,new oe(6,["Cannot find case "+r+" in "+Ge(n)])]])}function kc(e,t,n,r){let i;const o=new ht(xe());let s;const a=Ge(r);s=a===""?e:cm(a,o,e);let l;if(wf(r)){const u=ze(f=>[hm(t,qr(f)),on(s,t,!1,f[1])],Yi(r));l=f=>c=>Dn(p=>rg(r,Rn(p)),Fw(u,f,c))}else if(yf(r))l=u=>f=>{if(typeof f=="string")return Ac(s,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Ey(p=>Ac(s,t,r,p,u,c),wm(u+"[0]",pe(0,c)))}else return new $(1,[[u,new oe(0,["a string or array",f])]])};else if(n)l=u=>f=>new $(1,[[u,new oe(2,["an extra coder for "+Ge(r),f])]]);else throw new Error((i=Ge(r),ri(zn(`Cannot generate auto decoder for %s. Please pass an extra decoder.
20
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Ti(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function gm(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new M(1,[ww(i[0],i[1])])}else return new M(0,[r.fields[0]])}function ym(e,t){try{return gm("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new M(1,["Given an invalid JSON: "+n.message]);throw n}}function wm(e,t){return typeof t=="string"?new M(0,[t]):new M(1,[[e,new oe(0,["a string",t])]])}function vw(e,t){if(typeof t=="string"){const n=t;return n.length===1?new M(0,[n[0]]):new M(1,[[e,new oe(0,["a single character string",t])]])}else return new M(1,[[e,new oe(0,["a char",t])]])}function bw(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Qy(t,new ht(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new oe(0,["a guid",t])]])}else return new M(1,[[e,new oe(0,["a guid",t])]])}function _w(e,t){return t==null?new M(0,[void 0]):new M(1,[[e,new oe(0,["null",t])]])}const pc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new M(0,[(i+128&255)-128]):new M(1,[[n,new oe(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new M(1,[[n,new oe(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!1,8,new ht(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["a sbyte",r])]])}else return new M(1,[[n,new oe(0,["a sbyte",r])]])},gc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new M(0,[i&255]):new M(1,[[n,new oe(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new M(1,[[n,new oe(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!0,8,new ht(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["a byte",r])]])}else return new M(1,[[n,new oe(0,["a byte",r])]])},yc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new M(0,[(i+32768&65535)-32768]):new M(1,[[n,new oe(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new M(1,[[n,new oe(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!1,16,new ht(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an int16",r])]])}else return new M(1,[[n,new oe(0,["an int16",r])]])},wc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new M(0,[i&65535]):new M(1,[[n,new oe(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new M(1,[[n,new oe(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!0,16,new ht(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an uint16",r])]])}else return new M(1,[[n,new oe(0,["an uint16",r])]])},vc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new M(0,[~~i]):new M(1,[[n,new oe(1,["an int",i,"Value was either too large or too small for an int"])]]):new M(1,[[n,new oe(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!1,32,new ht(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an int",r])]])}else return new M(1,[[n,new oe(0,["an int",r])]])},bc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new M(0,[i>>>0]):new M(1,[[n,new oe(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new M(1,[[n,new oe(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!0,32,new ht(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an uint32",r])]])}else return new M(1,[[n,new oe(0,["an uint32",r])]])};function xw(e,t){return typeof t=="boolean"?new M(0,[t]):new M(1,[[e,new oe(0,["a boolean",t])]])}function Cw(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new oe(0,["a float",t])]])}function Sw(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new oe(0,["a float32",t])]])}function Ew(e,t){if(typeof t=="string"){let n,r=Fp();return n=[Lp(t,new ht(()=>r,i=>{r=i})),r],n[0]?new M(0,[Vp(n[1])]):new M(1,[[e,new oe(0,["a datetime",t])]])}else return new M(1,[[e,new oe(0,["a datetime",t])]])}function Aw(e,t){if(typeof t=="string"){let n,r=sw();return n=[lw(t,new ht(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new oe(0,["a datetimeoffset",t])]])}else return new M(1,[[e,new oe(0,["a datetime",t])]])}function kw(e,t){if(typeof t=="string"){let n,r=0;return n=[yw(t,new ht(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new oe(0,["a timespan",t])]])}else return new M(1,[[e,new oe(0,["a timespan",t])]])}function _c(e,t,n,r){let i;const o=n+".["+cn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,pe(e,s)):new M(1,[[o,new oe(5,["a longer array. Need index `"+cn(e)+"` but there are only `"+(i=s.length,cn(i))+"` entries",r])]])}else return new M(1,[[o,new oe(0,["an array",r])]])}function Nw(e,t,n){return n==null?new M(0,[void 0]):Dn(ct,e(t,n))}function xc(e,t,n){if(Array.isArray(n)){let r=-1;return Dn(Ml,As((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+cn(r)+"]",o);return s.tag===0?new M(0,[Yt(s.fields[0],i.fields[0])]):new M(1,[s.fields[0]])}else return i},new M(0,[dt()]),n))}else return new M(1,[[t,new oe(0,["a list",n])]])}function Tw(e,t,n){if(Array.isArray(n)){let r=-1;return Dn(Gg,As((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+cn(r)+"]",o);return s.tag===0?new M(0,[H([s.fields[0]],i.fields[0])]):new M(1,[s.fields[0]])}else return i},new M(0,[[]]),n))}else return new M(1,[[t,new oe(0,["a seq",n])]])}function Cc(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return As((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+cn(r)+"]",s);return l.tag===0?(_t(a,r,l.fields[0]),new M(0,[a])):new M(1,[l.fields[0]])}else return o},new M(0,[ao(new Array(i.length),0,i.length,null)]),i)}else return new M(1,[[t,new oe(0,["an array",n])]])}function $w(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if(ke(s))return new M(1,[[t,new oe(7,[a])]]);{const l=gm(t,Qe(ce(s)),n);if(l.tag===1){i=Ae(s),o=uo(a,me(l.fields[0]));continue e}else return new M(0,[l.fields[0]])}}})(e,dt())}function Mw(e,t,n){return new M(0,[e])}function Sc(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new M(1,[i.fields[0]])}function Iw(e,t,n,r){const i=t(n,r);return i.tag===1?new M(1,[i.fields[0]]):new M(0,[e(i.fields[0])])}function Dw(e,t){let n;const r=e;return n=i=>o=>_c(0,r,i,o),i=>o=>Sc(Va(s=>{let a;const l=t;return a=u=>f=>_c(1,l,u,f),u=>f=>Sc((c,p,h)=>Mw([s,c]),Qe(a),u,f)}),Qe(n),i,o)}function Ow(e){return Kr(e,{Compare:gt})}function Rw(e){return f1(e,{Compare:gt})}function Fw(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Sf((r,i)=>{const o=r[0];return i.tag===0?Dn(s=>Yt(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new M(0,[dt()])):new M(1,[[t,new oe(0,["an object",n])]])}function Pw(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?co((i,o)=>{if(i.tag===0){const s=e(n,o);if(s.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new M(0,[Yt([s.fields[0],a.fields[0]],i.fields[0])]):new M(1,[a.fields[0]])}else return new M(1,[s.fields[0]])}else return i},new M(0,[dt()]),Object.keys(r)):new M(1,[[n,new oe(0,["an object",r])]])}function vm(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new M(1,[[n,new oe(6,[(i=r.length|0,ri(zn("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new M(0,[dt()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=ri(zn("%s[%i]"))(n)(a),f=pe(a-e,t),c=pe(a,r);s=Dn(p=>Yt(p,l),f(u)(c))}return Dn(Ml,s)}}function Ec(e,t,n,r,i,o){const s=Es(a=>qr(a)===r,hf(n));if(s!=null){const a=s,l=ze(u=>on(e,t,!1,u[1]),wf(a));return Dn(u=>ng(a,Rn(u)),l.length===0&&o.length<=1?new M(0,[dt()]):vm(1,l,i,o))}else return new M(1,[[i,new oe(6,["Cannot find case "+r+" in "+Ge(n)])]])}function Ac(e,t,n,r){let i;const o=new ht(xe());let s;const a=Ge(r);s=a===""?e:cm(a,o,e);let l;if(yf(r)){const u=ze(f=>[hm(t,qr(f)),on(s,t,!1,f[1])],Zi(r));l=f=>c=>Dn(p=>rg(r,Rn(p)),Fw(u,f,c))}else if(gf(r))l=u=>f=>{if(typeof f=="string")return Ec(s,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Ey(p=>Ec(s,t,r,p,u,c),wm(u+"[0]",pe(0,c)))}else return new M(1,[[u,new oe(0,["a string or array",f])]])};else if(n)l=u=>f=>new M(1,[[u,new oe(2,["an extra coder for "+Ge(r),f])]]);else throw new Error((i=Ge(r),ri(zn(`Cannot generate auto decoder for %s. Please pass an extra decoder.
21
21
 
22
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function on(e,t,n,r){let i,o,s,a;const l=Ge(r),u=dm(l,e);if(u==null)if(df(r)){const f=on(e,t,!1,oo(r));return c=>p=>Sc(Qe(f),c,p)}else if($l(r))switch(Ge(hf(r))){case"System.SByte":return c=>p=>{const h=r,m=c,w=p,b=gc(m)(w);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0]|0;return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new $(0,[Or(h,x.toString())]):new $(1,[[m,new oe(1,[Ge(h),w,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const h=r,m=c,w=p,b=yc(m)(w);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0];return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new $(0,[Or(h,x.toString())]):new $(1,[[m,new oe(1,[Ge(h),w,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const h=r,m=c,w=p,b=wc(m)(w);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0]|0;return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new $(0,[Or(h,ap(x))]):new $(1,[[m,new oe(1,[Ge(h),w,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const h=r,m=c,w=p,b=vc(m)(w);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0];return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new $(0,[Or(h,x.toString())]):new $(1,[[m,new oe(1,[Ge(h),w,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const h=r,m=c,w=p,b=bc(m)(w);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0]|0;return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new $(0,[Or(h,cn(x))]):new $(1,[[m,new oe(1,[Ge(h),w,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const h=r,m=c,w=p,b=_c(m)(w);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0];return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new $(0,[Or(h,x.toString())]):new $(1,[[m,new oe(1,[Ge(h),w,"Unkown value provided for the enum"])]])}};default:{const c=Ge(r),p=of(zn(`Cannot generate auto decoder for %s.
22
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function on(e,t,n,r){let i,o,s,a;const l=Ge(r),u=dm(l,e);if(u==null)if(cf(r)){const f=on(e,t,!1,so(r));return c=>p=>Cc(Qe(f),c,p)}else if(Tl(r))switch(Ge(mf(r))){case"System.SByte":return c=>p=>{const h=r,m=c,g=p,b=pc(m)(g);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Or(h,x.toString())]):new M(1,[[m,new oe(1,[Ge(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const h=r,m=c,g=p,b=gc(m)(g);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Or(h,x.toString())]):new M(1,[[m,new oe(1,[Ge(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const h=r,m=c,g=p,b=yc(m)(g);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Or(h,ap(x))]):new M(1,[[m,new oe(1,[Ge(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const h=r,m=c,g=p,b=wc(m)(g);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Or(h,x.toString())]):new M(1,[[m,new oe(1,[Ge(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const h=r,m=c,g=p,b=vc(m)(g);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Or(h,cn(x))]):new M(1,[[m,new oe(1,[Ge(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const h=r,m=c,g=p,b=bc(m)(g);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return Rr(x,Dr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Or(h,x.toString())]):new M(1,[[m,new oe(1,[Ge(h),g,"Unkown value provided for the enum"])]])}};default:{const c=Ge(r),p=rf(zn(`Cannot generate auto decoder for %s.
23
23
  Thoth.Json.Net only support the following enum types:
24
24
  - sbyte
25
25
  - byte
@@ -28,9 +28,9 @@ Thoth.Json.Net only support the following enum types:
28
28
  - int
29
29
  - uint32
30
30
  If you can't use one of these types, please pass an extra decoder.
31
- `))(c);return h=>p(h)}}else if(ff(r))if(Ml(r)){const f=ze(c=>on(e,t,!1,c),gf(r));return c=>p=>Array.isArray(p)?Dn(h=>ig(Rn(h)),vm(0,f,c,p)):new $(1,[[c,new oe(0,["an array",p])]])}else switch(Ge(mf(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=on(e,t,!0,pe(0,Bt(r))),c=>p=>Nw(Qe(i),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=on(e,t,!1,pe(0,Bt(r))),c=>p=>Cc(Qe(o),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=on(e,t,!1,pe(0,Bt(r))),c=>p=>Tw(Qe(s),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=on(e,t,!1,pe(0,Bt(r))),p=on(e,t,!1,pe(1,Bt(r)));let h;const m=y([w=>b=>Pw(Qe(c),Qe(p),w,b),(a=Dw(Qe(c),Qe(p)),w=>b=>Cc(Qe(a),w,b))]);return h=w=>b=>$w(m,w,b),w=>b=>Iw(Ow,Qe(h),w,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=on(e,t,!1,pe(0,Bt(r)));return p=>h=>{const m=Sc(Qe(c),p,h);return m.tag===0?new $(0,[Rw(m.fields[0])]):new $(1,[m.fields[0]])}}default:return kc(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>xw(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>_w(f,c);case"System.String":return f=>c=>wm(f,c);case"System.Char":return f=>c=>vw(f,c);case"System.SByte":return gc;case"System.Byte":return yc;case"System.Int16":return wc;case"System.UInt16":return vc;case"System.Int32":return bc;case"System.UInt32":return _c;case"System.Double":return f=>c=>Cw(f,c);case"System.Single":return f=>c=>Sw(f,c);case"System.DateTime":return f=>c=>Ew(f,c);case"System.DateTimeOffset":return f=>c=>Aw(f,c);case"System.TimeSpan":return f=>c=>kw(f,c);case"System.Guid":return f=>c=>bw(f,c);case"System.Object":return f=>c=>new $(0,[c]);default:return kc(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Lw(e){return Gl({Compare:Nr})}function bm(e,t,n){const r=rt(t,new Zi(0,[]));return on(Lw(),r,!1,e)}function Vw(e){return e}const _m=xe();function To(e){return Array.from(e)}function Hw(e){return Cs(e,"O")}function jw(e){return pw(e)}function Bw(){return xe()}function Uw(e){return Cs(e,"O")}function Ww(e,t){return JSON.stringify(t,void 0,ct(e))}function Gw(e){return t=>Yp(At(e,t),()=>_m)}function Nc(e,t,n,r){let i;const o=new ht(xe());let s;const a=Ge(r);s=a===""?e:cm(a,o,e);let l;if(wf(r)){const u=ze(f=>{const c=hm(t,qr(f)),p=Sn(s,t,n,f[1]);return h=>m=>{const w=tg(h,f);return(!n||n&&w!=null)&&(m[c]=p(w)),m}},Yi(r));l=f=>co((c,p)=>p(f)(c),{},u)}else if(yf(r))l=u=>{const f=eg(u,r),c=f[0],p=f[1],h=p.length|0;if(h===0)return qr(c);{const m=h|0,w=vf(c),b=so(new Array(m+1),0,m+1,null);_t(b,0,qr(c));for(let x=1;x<=m;x++){const C=Sn(s,t,n,pe(x-1,w)[1]);_t(b,x,C(pe(x-1,p)))}return b}};else throw new Error((i=Ge(r),ri(zn(`Cannot generate auto encoder for %s. Please pass an extra encoder.
31
+ `))(c);return h=>p(h)}}else if(df(r))if($l(r)){const f=ze(c=>on(e,t,!1,c),pf(r));return c=>p=>Array.isArray(p)?Dn(h=>ig(Rn(h)),vm(0,f,c,p)):new M(1,[[c,new oe(0,["an array",p])]])}else switch(Ge(ff(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=on(e,t,!0,pe(0,Bt(r))),c=>p=>Nw(Qe(i),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=on(e,t,!1,pe(0,Bt(r))),c=>p=>xc(Qe(o),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=on(e,t,!1,pe(0,Bt(r))),c=>p=>Tw(Qe(s),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=on(e,t,!1,pe(0,Bt(r))),p=on(e,t,!1,pe(1,Bt(r)));let h;const m=w([g=>b=>Pw(Qe(c),Qe(p),g,b),(a=Dw(Qe(c),Qe(p)),g=>b=>xc(Qe(a),g,b))]);return h=g=>b=>$w(m,g,b),g=>b=>Iw(Ow,Qe(h),g,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=on(e,t,!1,pe(0,Bt(r)));return p=>h=>{const m=Cc(Qe(c),p,h);return m.tag===0?new M(0,[Rw(m.fields[0])]):new M(1,[m.fields[0]])}}default:return Ac(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>xw(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>_w(f,c);case"System.String":return f=>c=>wm(f,c);case"System.Char":return f=>c=>vw(f,c);case"System.SByte":return pc;case"System.Byte":return gc;case"System.Int16":return yc;case"System.UInt16":return wc;case"System.Int32":return vc;case"System.UInt32":return bc;case"System.Double":return f=>c=>Cw(f,c);case"System.Single":return f=>c=>Sw(f,c);case"System.DateTime":return f=>c=>Ew(f,c);case"System.DateTimeOffset":return f=>c=>Aw(f,c);case"System.TimeSpan":return f=>c=>kw(f,c);case"System.Guid":return f=>c=>bw(f,c);case"System.Object":return f=>c=>new M(0,[c]);default:return Ac(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Lw(e){return Wl({Compare:Nr})}function bm(e,t,n){const r=rt(t,new Ki(0,[]));return on(Lw(),r,!1,e)}function Vw(e){return e}const _m=xe();function To(e){return Array.from(e)}function Hw(e){return Cs(e,"O")}function jw(e){return pw(e)}function Bw(){return xe()}function Uw(e){return Cs(e,"O")}function Ww(e,t){return JSON.stringify(t,void 0,ct(e))}function Gw(e){return t=>Yp(At(e,t),()=>_m)}function kc(e,t,n,r){let i;const o=new ht(xe());let s;const a=Ge(r);s=a===""?e:cm(a,o,e);let l;if(yf(r)){const u=ze(f=>{const c=hm(t,qr(f)),p=Sn(s,t,n,f[1]);return h=>m=>{const g=tg(h,f);return(!n||n&&g!=null)&&(m[c]=p(g)),m}},Zi(r));l=f=>co((c,p)=>p(f)(c),{},u)}else if(gf(r))l=u=>{const f=eg(u,r),c=f[0],p=f[1],h=p.length|0;if(h===0)return qr(c);{const m=h|0,g=wf(c),b=ao(new Array(m+1),0,m+1,null);_t(b,0,qr(c));for(let x=1;x<=m;x++){const C=Sn(s,t,n,pe(x-1,g)[1]);_t(b,x,C(pe(x-1,p)))}return b}};else throw new Error((i=Ge(r),ri(zn(`Cannot generate auto encoder for %s. Please pass an extra encoder.
32
32
 
33
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function Sn(e,t,n,r){const i=Ge(r),o=dm(i,e);if(o==null)if(df(r)){const s=Sn(e,t,n,oo(r));return a=>To(je(s,a))}else if($l(r))switch(Ge(hf(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=Ge(r);return of(zn(`Cannot generate auto encoder for %s.
33
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function Sn(e,t,n,r){const i=Ge(r),o=dm(i,e);if(o==null)if(cf(r)){const s=Sn(e,t,n,so(r));return a=>To(je(s,a))}else if(Tl(r))switch(Ge(mf(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=Ge(r);return rf(zn(`Cannot generate auto encoder for %s.
34
34
  Thoth.Json.Net only support the following enum types:
35
35
  - sbyte
36
36
  - byte
@@ -42,26 +42,26 @@ Thoth.Json.Net only support the following enum types:
42
42
  If you can't use one of these types, please pass an extra encoder.
43
43
 
44
44
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
45
- `))(a)}}else if(ff(r))if(Ml(r)){const s=ze(a=>Sn(e,t,n,a),gf(r));return a=>To(Wg((l,u)=>pe(l,s)(u),a))}else{const s=Ge(mf(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new op(()=>Gw(Sn(e,t,n,pe(0,Bt(r)))));return l=>l==null?_m:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=Sn(e,t,n,pe(0,Bt(r)));return l=>To(je(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=pe(0,Bt(r)),l=Sn(e,t,n,pe(1,Bt(r)));if(Ge(a)==="System.String"||Ge(a)==="System.Guid")return u=>co((f,c)=>{const p=c;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=Sn(e,t,n,a),c=>To(je(p=>{const h=p;return[u(h[0]),l(h[1])]},c))}}else return Nc(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return Bw;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return Uw;case"System.DateTimeOffset":return Hw;case"System.TimeSpan":return jw;case"System.Guid":return Vw;case"System.Object":return s=>s;default:return Nc(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function zw(e){return Gl({Compare:Nr})}function qw(e,t,n,r){const i=rt(t,new Zi(0,[])),o=rt(r,!0);return Sn(zw(),i,o,e)}class xm extends Ce{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function Yw(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportRowDataDto",[],xm,()=>[["RowId",kt],["Data",qn("Microsoft.FSharp.Collections.FSharpMap`2",[$n,$n])]])}class Cm extends Ce{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}}function Zw(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],Cm,()=>[["IncludesEmploymentInfo",Jp],["Data",wr(Yw())]])}class Kw extends Ce{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function Xw(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],Kw,()=>[["Column",$n],["PropName",$n],["Message",$n]])}class Jw extends Ce{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Qw(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],Jw,()=>[["RowId",kt],["FieldErrors",wr(Xw())]])}class ev extends Ce{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function tv(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],ev,()=>[["Errors",wr(Qw())],["DuplicateEmailCount",kt]])}function Sm(e){return`${e}/import/workspace/v1.0/accounts/current`}function Em(e){return Pe.Delay(()=>{let t;const n=dc(e);return t=Pe.Bind(n,r=>Pe.Return(new $(0,[r]))),Pe.Bind(t,r=>{const i=r;if(i.tag===1)return Pe.Return(new $(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){const s=dc(e);return Pe.Bind(s,a=>Pe.Return(new $(0,[a])))}else return Pe.Return(new $(0,[o]))}})})}function nv(e,t){return Pe.Delay(()=>{const n=Em(mm(new Ul(0,[]),fm(Sm(e)+"/imports")));return Pe.Bind(n,r=>{const i=r;if(i.tag===1)return Pe.Return(new $(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=ym(Qe(bm(Cy(),new Zi(1,[]))),o.responseText);return a=l.tag===1?new $(1,[l.fields[0]]):new $(0,[l.fields[0]]),Pe.Return(a)}case 404:return Pe.Return(new $(0,[void 0]));default:return Pe.Return(new $(1,["Failed to get account imports"]))}}})})}function rv(e,t){return Pe.Delay(()=>{let n;const r=Em((n=mm(new Ul(1,[]),fm(Sm(e)+"/import/validate")),Zy(new em(1,[Ww(0,qw(Zw(),new Zi(1,[]),void 0,void 0)(t))]),n)));return Pe.Bind(r,i=>{const o=i;if(o.tag===1)return Pe.Return(new $(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=ym(Qe(bm(tv(),new Zi(1,[]))),s.responseText);return Pe.Return(a)}else return Pe.Return(new $(1,[`Failed to validate: ${s.responseText}`]))}})})}class iv extends Ce{constructor(t){super(),this.UserActivities=t}}class Tc extends Ce{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function ov(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:rt(At(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function sv(e){return lo(y(Ss(At(t=>new Tc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),uo(t=>new Tc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function av(e){return new iv(rt(At(sv,e),dt()))}class $c extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class lv extends Ce{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class ho extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class uv extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class cv extends Ce{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Am extends Ce{constructor(t,n){super(),this.Column=t,this.Direction=n}}class dv extends X{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class as extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class fv extends Ce{constructor(t,n,r,i,o){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=i|0,this.PageSize=o|0}}function mv(e){return e.tag===1?km(e.fields[0].Data):$m()}function hv(e){return e.tag===1?wi(e.fields[0].Data):new as(1,[])}function pv(e){const t=zl($m(),e);return new ho([Im(an(e),20),t])}function po(e){return e.fields[0][1]}function km(e){return Tm(po(e))}function gv(e){return ql(po(e))}function wi(e){return e.fields[0][0]}function yv(e){const t=wi(e);if(t.tag===0){const n=t.fields[0],r=Nf(n.FirstRowIndex,gv(e));return Tf(Tv(n),r)}else return dt()}function Nm(e,t){const n=zl(km(e),t);return new ho([Av(wi(e),an(ql(n))),n])}function wv(e){return new ho([wi(e),_v(po(e))])}function vv(e){return new ho([Ev(wi(e)),po(e)])}function bv(e){return new ho([Sv(wi(e)),po(e)])}function zl(e,t){return new uv([e,ky(e.Direction,n=>n.Timestamp,t)])}function ql(e){return e.fields[0][1]}function Tm(e){return e.fields[0][0]}function _v(e){return zl(xv(Tm(e)),ql(e))}function $m(){return new Am(new dv,new Ga(0,[]))}function xv(e){return new Am(e.Column,Ay(e.Direction))}function Mm(e,t){return~~(e/t)+(e%t===0?0:1)}function Os(e,t,n){if(e<=0)return new as(1,[]);{const r=ju(n,Mm(e,t))|0,i=(r-1)*t|0;return new as(0,[new fv(r,i,ju(i+t-1,e-1),e,t)])}}function Im(e,t){return Os(e,t,1)}function Cv(e){if(e.tag===0){const t=e.fields[0];return Mm(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function Dm(e){return e.tag===0?e.fields[0].CurrentPage<Cv(e):!1}function Om(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Sv(e){const t=Om(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Os(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Ev(e){const t=Dm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Os(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Av(e,t){return t<=0?new as(1,[]):e.tag===0?Os(t,20,e.fields[0].CurrentPage):Im(t,20)}function kv(e){return e.FirstRowIndex+1}function Nv(e){return e.LastRowIndex+1}function Tv(e){return e.LastRowIndex-e.FirstRowIndex+1}let Kn=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class vi extends Ce{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class Yl extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function $v(e){if(e.tag===1)return Rm(e.fields[0])}function Mv(e){return e.tag===0}function Iv(e){return e.tag===1?new $c(1,[Vv(e.fields[0])]):new $c(0,[])}function Rm(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Dv(e){return Rm(e)!=null}function Ov(e,t){return new Kn(1,[new vi(e.ImportHistory,new Yl(1,[t]),Nm(e.PaginatedList,Bn(n=>ov(n.User,t),e.ImportHistory.UserActivities)))])}function Rv(e){return new Kn(1,[new vi(e.ImportHistory,new Yl(0,[]),Nm(e.PaginatedList,e.ImportHistory.UserActivities))])}function Fv(e){return new Kn(1,[new vi(e.ImportHistory,e.View,wv(e.PaginatedList))])}function Pv(e){return new Kn(1,[new vi(e.ImportHistory,e.View,vv(e.PaginatedList))])}function Lv(e){return new Kn(1,[new vi(e.ImportHistory,e.View,bv(e.PaginatedList))])}function Vv(e){return new lv(e.PaginatedList,Dv(e))}let Xr=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Hv(e){let t;return[e.tag===1?new Kn(0,[]):(t=e.fields[0],new Kn(1,[new vi(t,new Yl(0,[]),pv(t.UserActivities))])),Z()]}function Fm(e,t){return e.tag===1?t(e.fields[0]):[new Kn(0,[]),Z()]}function jv(e,t){return Fm(e,n=>[t(n),Z()])}function Bv(e,t){const n=r=>jv(t,r);switch(e.tag){case 1:return n(Rv);case 2:return n(Fv);case 3:return n(Pv);case 4:return n(Lv);default:{const r=e.fields[0];return Fm(t,i=>Tl(r)?[t,me(o=>{o(new Xr(1,[]))})]:[Ov(i,r),Z()])}}}function Uv(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([(r="M6.77835 19.8844C6.74702 19.9444 6.7414 20.0146 6.76278 20.0789C6.78416 20.1432 6.83071 20.196 6.89177 20.2254L7.82464 20.6734C7.9462 20.7317 8.09214 20.6832 8.15452 20.5636L16.5023 4.56364C16.5337 4.50358 16.5393 4.43338 16.5179 4.3691C16.4965 4.30482 16.45 4.25197 16.3889 4.22264L15.4561 3.77464C15.3345 3.71627 15.1886 3.76481 15.1262 3.88436L6.77835 19.8844Z",["d",r]),["fill","#D1D5DB"],["stroke","#D1D5DB"],["strokeWidth",.5],["strokeLinejoin","round"]])))),["children",v.Children.toArray(Array.from(n))])])))}function Wv(){let e,t,n;return d("div",g(y([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[d("div",g(y([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[d("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),d("div",g(y([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Uv(24,24)],["children",v.Children.toArray(Array.from(n))])]))),d("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function Gv(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([["clipRule","evenodd"],(r="M8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4ZM2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 9.29583 13.5892 10.4957 12.8907 11.4765L17.7071 16.2929C18.0976 16.6834 18.0976 17.3166 17.7071 17.7071C17.3166 18.0976 16.6834 18.0976 16.2929 17.7071L11.4765 12.8907C10.4957 13.5892 9.29583 14 8 14C4.68629 14 2 11.3137 2 8Z",["d",r]),["fill","#9CA3AF"]])))),["children",v.Children.toArray(Array.from(n))])])))}function Ya(e,t){let n,r;return d("svg",g(y([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([(r="M9.70757 0.292433C9.52026 0.105188 9.26626 0 9.00142 0C8.73658 0 8.48257 0.105188 8.29527 0.292433L5.00624 3.58146L1.71721 0.292433C1.52884 0.110495 1.27654 0.00982222 1.01466 0.0120979C0.752781 0.0143736 0.502271 0.119416 0.317087 0.3046C0.131902 0.489785 0.0268602 0.740295 0.0245845 1.00218C0.0223088 1.26406 0.122982 1.51635 0.30492 1.70473L3.59395 4.99376L0.30492 8.28279C0.209525 8.37492 0.133435 8.48513 0.0810888 8.60699C0.028743 8.72885 0.00119014 8.85991 3.77112e-05 8.99253C-0.00111471 9.12515 0.0241565 9.25667 0.0743768 9.37942C0.124597 9.50216 0.19876 9.61368 0.29254 9.70746C0.386319 9.80124 0.497837 9.8754 0.620585 9.92562C0.743333 9.97584 0.874854 10.0011 1.00747 9.99996C1.14009 9.99881 1.27115 9.97126 1.39301 9.91891C1.51487 9.86657 1.62508 9.79047 1.71721 9.69508L5.00624 6.40605L8.29527 9.69508C8.48365 9.87702 8.73594 9.97769 8.99782 9.97542C9.25971 9.97314 9.51022 9.8681 9.6954 9.68291C9.88058 9.49773 9.98563 9.24722 9.9879 8.98534C9.99018 8.72346 9.88951 8.47116 9.70757 8.28279L6.41854 4.99376L9.70757 1.70473C9.89481 1.51743 10 1.26343 10 0.998581C10 0.733736 9.89481 0.479735 9.70757 0.292433Z",["d",r]),["fill","currentColor"]])))),["children",v.Children.toArray(Array.from(n))])])))}class Mc extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function zv(e){let t,n;const r=rt(e.Value,"");return d("div",g(y([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[d("div",g(y([["className",bt(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=ne(T(()=>{let i;return H(A(d("div",g(y([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[Gv(20,20)],["children",v.Children.toArray(Array.from(i))])])))),T(()=>{let o;return H(A(d("input",g(y([(o="rounded-md border-0 py-[0.5625rem] px-10 ring-1 ring-inset ring-gray-300 placeholder:text-gray-500 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-primary-600 bg-white text-sm w-full",["className",o]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new Mc(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),T(()=>{let s;return Tl(r)?A(xe()):A(d("div",g(y([["onClick",a=>{e.ActionHandler(new Mc(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Ya(10,10)],["children",v.Children.toArray(Array.from(s))])]))))}))}))})),["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function qv(e){let t,n;const r=e.height,i=e.width;return d("svg",g(y([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=me(d("path",g(y([(n="M4.98771 6.01229C4.72252 6.01223 4.4682 5.90684 4.28071 5.71929L0.280712 1.71929C0.0985537 1.53069 -0.00224062 1.27808 3.78026e-05 1.01589C0.00231622 0.75369 0.107485 0.502878 0.292893 0.31747C0.478301 0.132062 0.729114 0.0268924 0.99131 0.0246139C1.25351 0.0223355 1.50611 0.12313 1.69471 0.305288L4.98771 3.59829L8.28071 0.305288C8.37296 0.209778 8.4833 0.133596 8.60531 0.0811869C8.72731 0.0287779 8.85853 0.00119157 8.99131 3.77571e-05C9.12409 -0.00111606 9.25577 0.0241854 9.37867 0.0744663C9.50156 0.124747 9.61321 0.199 9.70711 0.292893C9.801 0.386786 9.87525 0.498438 9.92553 0.621334C9.97581 0.744231 10.0011 0.87591 9.99996 1.00869C9.99881 1.14147 9.97122 1.27269 9.91881 1.39469C9.8664 1.5167 9.79022 1.62704 9.69471 1.71929L5.69471 5.71929C5.50722 5.90684 5.25291 6.01223 4.98771 6.01229Z",["d",n]),["fill","#111827"]])))),["children",v.Children.toArray(Array.from(t))])])))}function Yv(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return d("div",g(y([["className",bt(" ",ne(T(()=>H(A("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),T(()=>r.tag===1?A("rotate-180"):A(""))))))],["onClick",i=>{n(void 0)}],(t=[d(qv,{width:10,height:7})],["children",v.Children.toArray(Array.from(t))])])))}function Zv(e){const t=e.toggleSortDirection,n=e.props;return d(Yv,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function Kv(e){let t,n,r,i;const o=d(Zv,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return d("div",g(y([["className","flex-none grid grid-cols-7"],(t=[d("div",g(y([["className","col-span-1 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(n=[d("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",v.Children.toArray(Array.from(n))])]))),d("div",g(y([["className","col-span-2 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(r=[d("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",v.Children.toArray(Array.from(r))])]))),d("div",g(y([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(i=[d("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(t))])])))}function ls(e){"@babel/helpers - typeof";return ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ls(e)}function _r(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function $t(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function vn(e){$t(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ls(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Xv(e,t){$t(2,arguments);var n=vn(e).getTime(),r=_r(t);return new Date(n+r)}var Jv={};function Rs(){return Jv}function Qv(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function eb(e){return $t(1,arguments),e instanceof Date||ls(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function tb(e){if($t(1,arguments),!eb(e)&&typeof e!="number")return!1;var t=vn(e);return!isNaN(Number(t))}function nb(e,t){$t(2,arguments);var n=_r(t);return Xv(e,-n)}var rb=864e5;function ib(e){$t(1,arguments);var t=vn(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/rb)+1}function us(e){$t(1,arguments);var t=1,n=vn(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Pm(e){$t(1,arguments);var t=vn(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=us(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=us(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function ob(e){$t(1,arguments);var t=Pm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=us(n);return r}var sb=6048e5;function ab(e){$t(1,arguments);var t=vn(e),n=us(t).getTime()-ob(t).getTime();return Math.round(n/sb)+1}function cs(e,t){var n,r,i,o,s,a,l,u;$t(1,arguments);var f=Rs(),c=_r((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=vn(e),h=p.getUTCDay(),m=(h<c?7:0)+h-c;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function Lm(e,t){var n,r,i,o,s,a,l,u;$t(1,arguments);var f=vn(e),c=f.getUTCFullYear(),p=Rs(),h=_r((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(c+1,0,h),m.setUTCHours(0,0,0,0);var w=cs(m,t),b=new Date(0);b.setUTCFullYear(c,0,h),b.setUTCHours(0,0,0,0);var x=cs(b,t);return f.getTime()>=w.getTime()?c+1:f.getTime()>=x.getTime()?c:c-1}function lb(e,t){var n,r,i,o,s,a,l,u;$t(1,arguments);var f=Rs(),c=_r((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=Lm(e,t),h=new Date(0);h.setUTCFullYear(p,0,c),h.setUTCHours(0,0,0,0);var m=cs(h,t);return m}var ub=6048e5;function cb(e,t){$t(1,arguments);var n=vn(e),r=cs(n,t).getTime()-lb(n,t).getTime();return Math.round(r/ub)+1}function Oe(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Ln={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return Oe(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Oe(r+1,2)},d:function(t,n){return Oe(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Oe(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Oe(t.getUTCHours(),n.length)},m:function(t,n){return Oe(t.getUTCMinutes(),n.length)},s:function(t,n){return Oe(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return Oe(o,n.length)}},Fr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},db={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Ln.y(t,n)},Y:function(t,n,r,i){var o=Lm(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return Oe(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Oe(s,n.length)},R:function(t,n){var r=Pm(t);return Oe(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Oe(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Oe(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Oe(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Ln.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Oe(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=cb(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Oe(o,n.length)},I:function(t,n,r){var i=ab(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Oe(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ln.d(t,n)},D:function(t,n,r){var i=ib(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Oe(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Oe(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Oe(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return Oe(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Fr.noon:i===0?o=Fr.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Fr.evening:i>=12?o=Fr.afternoon:i>=4?o=Fr.morning:o=Fr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Ln.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ln.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Ln.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Ln.s(t,n)},S:function(t,n){return Ln.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Dc(s);case"XXXX":case"XX":return ar(s);case"XXXXX":case"XXX":default:return ar(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return Dc(s);case"xxxx":case"xx":return ar(s);case"xxxxx":case"xxx":default:return ar(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ic(s,":");case"OOOO":default:return"GMT"+ar(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ic(s,":");case"zzzz":default:return"GMT"+ar(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return Oe(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return Oe(s,n.length)}};function Ic(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t;return n+String(i)+s+Oe(o,2)}function Dc(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Oe(Math.abs(e)/60,2)}return ar(e,t)}function ar(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Oe(Math.floor(i/60),2),s=Oe(i%60,2);return r+o+n+s}var Oc=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Vm=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},fb=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Oc(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",Oc(i,n)).replace("{{time}}",Vm(o,n))},mb={p:Vm,P:fb},hb=["D","DD"],pb=["YY","YYYY"];function gb(e){return hb.indexOf(e)!==-1}function yb(e){return pb.indexOf(e)!==-1}function Rc(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var wb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vb=function(t,n,r){var i,o=wb[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function ga(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var bb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_b={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cb={date:ga({formats:bb,defaultWidth:"full"}),time:ga({formats:_b,defaultWidth:"full"}),dateTime:ga({formats:xb,defaultWidth:"full"})},Sb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Eb=function(t,n,r,i){return Sb[t]};function Ti(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var Ab={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Nb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Tb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$b={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Mb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ib=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Db={ordinalNumber:Ib,era:Ti({values:Ab,defaultWidth:"wide"}),quarter:Ti({values:kb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ti({values:Nb,defaultWidth:"wide"}),day:Ti({values:Tb,defaultWidth:"wide"}),dayPeriod:Ti({values:$b,defaultWidth:"wide",formattingValues:Mb,defaultFormattingWidth:"wide"})};function $i(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Rb(a,function(c){return c.test(s)}):Ob(a,function(c){return c.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var f=t.slice(s.length);return{value:u,rest:f}}}function Ob(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Rb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Fb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Pb=/^(\d+)(th|st|nd|rd)?/i,Lb=/\d+/i,Vb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hb={any:[/^b/i,/^(a|c)/i]},jb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Bb={any:[/1/i,/2/i,/3/i,/4/i]},Ub={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Wb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gb={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},zb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Yb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zb={ordinalNumber:Fb({matchPattern:Pb,parsePattern:Lb,valueCallback:function(t){return parseInt(t,10)}}),era:$i({matchPatterns:Vb,defaultMatchWidth:"wide",parsePatterns:Hb,defaultParseWidth:"any"}),quarter:$i({matchPatterns:jb,defaultMatchWidth:"wide",parsePatterns:Bb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:$i({matchPatterns:Ub,defaultMatchWidth:"wide",parsePatterns:Wb,defaultParseWidth:"any"}),day:$i({matchPatterns:Gb,defaultMatchWidth:"wide",parsePatterns:zb,defaultParseWidth:"any"}),dayPeriod:$i({matchPatterns:qb,defaultMatchWidth:"any",parsePatterns:Yb,defaultParseWidth:"any"})},Kb={code:"en-US",formatDistance:vb,formatLong:Cb,formatRelative:Eb,localize:Db,match:Zb,options:{weekStartsOn:0,firstWeekContainsDate:1}},Xb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qb=/^'([^]*?)'?$/,e_=/''/g,t_=/[a-zA-Z]/;function Hm(e,t,n){var r,i,o,s,a,l,u,f,c,p,h,m,w,b;$t(2,arguments);var x=String(t),C=Rs(),E=(r=(i=void 0)!==null&&i!==void 0?i:C.locale)!==null&&r!==void 0?r:Kb,M=_r((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:C.firstWeekContainsDate)!==null&&s!==void 0?s:(u=C.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=_r((c=(p=(h=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&h!==void 0?h:C.weekStartsOn)!==null&&p!==void 0?p:(w=C.locale)===null||w===void 0||(b=w.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&c!==void 0?c:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var F=vn(e);if(!tb(F))throw new RangeError("Invalid time value");var L=Qv(F),S=nb(F,L),_={firstWeekContainsDate:M,weekStartsOn:I,locale:E,_originalDate:F},k=x.match(Jb).map(function(N){var D=N[0];if(D==="p"||D==="P"){var O=mb[D];return O(N,E.formatLong)}return N}).join("").match(Xb).map(function(N){if(N==="''")return"'";var D=N[0];if(D==="'")return n_(N);var O=db[D];if(O)return yb(N)&&Rc(N,t,String(e)),gb(N)&&Rc(N,t,String(e)),O(S,N,E.localize,_);if(D.match(t_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return N}).join("");return k}function n_(e){var t=e.match(Qb);return t?t[1].replace(e_,"'"):e}function r_(e){return Hm(e,"d MMM, yyyy")}function i_(e){return Hm(e,"h:mm a")}function o_(e){let t,n,r,i,o,s,a;return d("div",g(y([["className","grid grid-cols-7"],(t=[d("div",g(y([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[d("div",g(y([["className"," flex flex-col justify-center items-start"],(r=[d("div",g(y([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:r_(e.Timestamp)})],["children",v.Children.toArray(Array.from(i))])]))),d("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:i_(e.Timestamp)})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])]))),d("div",g(y([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[d("div",g(y([["className","justify-center items-start flex flex-col"],(s=ne(T(()=>{let l;return H(A(d("div",g(y([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",v.Children.toArray(Array.from(l))])])))),T(()=>{const u=e.User.Email;return u==null?A(xe()):A(d("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])]))),d("div",g(y([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[d("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(t))])])))}function s_(e){const t=uo(n=>d(o_,n),e.Data);return d("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:v.Children.toArray(Array.from(t))})}function a_(e){let t,n,r,i,o;const s=e.height,a=e.width;return d("svg",g(y([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=y([d("path",g(y([(n="M60 100C37.9441 100 20 82.0567 20 60C20 37.9433 37.9441 20 60 20C82.0559 20 100 37.9433 100 60C100 82.0567 82.0559 100 60 100Z",["d",n]),["fill","url(#paint0_linear_3770_593)"]]))),d("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",g(y([(r="M60 76C60.5523 76 61 75.5523 61 75C61 74.4477 60.5523 74 60 74C59.4477 74 59 74.4477 59 75C59 75.5523 59.4477 76 60 76Z",["d",r]),["stroke","#111827"],["strokeWidth",2],["strokeLinecap","round"],["strokeLinejoin","round"]]))),(i=me(d("linearGradient",g(y([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=y([d("stop",{offset:0,stopColor:"#FFD84D"}),d("stop",{offset:1,stopColor:"#FF876F"})]),["children",v.Children.toArray(Array.from(o))])])))),d("defs",{children:v.Children.toArray(Array.from(i))}))]),["children",v.Children.toArray(Array.from(t))])])))}function l_(){let e;return d("div",g(y([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[d(a_,{width:120,height:120})],["children",v.Children.toArray(Array.from(e))])])))}function u_(){let e,t,n,r;return d("div",g(y([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[d(l_,null),d("div",g(y([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[d("div",g(y([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[d("div",g(y([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[d("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),d("div",{className:"self-stretch text-center text-gray-500 text-sm font-normal leading-tight",children:"Something went wrong while retrieving your activities. Please refresh the page to try again."})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function c_(e){return{Data:yv(e.Data)}}function d_(e){let t;const n=e.props,r=n.tag===1?d(s_,c_(n.fields[0])):d(u_,null);return d("div",g(y([["className","relative h-full grow"],(t=[d("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:v.Children.toArray([r])})],["children",v.Children.toArray(Array.from(t))])])))}class Fc extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function f_(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return d("div",g(y([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[d("div",{className:"self-stretch h-px bg-gray-200"}),d("div",g(y([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=ne(T(()=>{let o,s,a;return H((o=i,o.tag===1?A(d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],A((a=y([d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(kv(s))}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(Nv(s))}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(s.TotalRecordsNumber)}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),d("div",{children:v.Children.toArray(Array.from(a))}))))),T(()=>{let l,u,f;return A(d("div",g(y([["className","justify-start items-start gap-3 flex"],(l=[d("button",g(y([["type","button"],(u="py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",u]),["children","Previous"],["onClick",c=>{r(new Fc(0,[]))}],["disabled",!Om(i)]]))),d("button",g(y([["type","button"],(f="ml-3 py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",f]),["children","Next"],["onClick",c=>{r(new Fc(1,[]))}],["disabled",!Dm(i)]])))],["children",v.Children.toArray(Array.from(l))])]))))}))})),["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Za extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function m_(e,t){e(t.tag===0?new Za(2,[]):new Za(1,[]))}function h_(e){let t,n;const r=e.actionHandler,i=e.props;return d("div",g(y([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[d(Kv,new cv(mv(i),()=>{r(new Za(0,[]))})),d(d_,{props:i}),d(f_,{pagingInfo:hv(i),pageChangedHandler:o=>{m_(r,o)}})],["children",v.Children.toArray(Array.from(n))])])))}function p_(e,t){t.tag===0?e(new Xr(0,[t.fields[0]])):e(new Xr(1,[]))}function g_(e,t){switch(t.tag){case 2:{e(new Xr(4,[]));break}case 0:{e(new Xr(2,[]));break}default:e(new Xr(3,[]))}}function Pc(e){let t,n;const r=e.importHistory;let i;const o=Hv(r);i=Ir(()=>Mr(()=>o,Bv,(f,c)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=$v(s);return l={ActionHandler:f=>{p_(a,f)},Disabled:Mv(s),Value:Li(u)},d("div",g(y([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[d(Wv,null),d("div",g(y([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[d(zv,l),d(h_,{props:Iv(s),actionHandler:f=>{g_(a,f)}})],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Lc extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function y_(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return d("div",g(y([["className",bt(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[d("div",{className:bt(" ",["w-full h-4 relative rounded",r[1]])})],["children",v.Children.toArray(Array.from(n))])])))}function Vc(e){const t=uo(n=>y_(e,n),y(["col-span-1","col-span-2","col-span-4"]));return d("div",{className:"grid grid-cols-7",children:v.Children.toArray(Array.from(t))})}function w_(){let e,t;return d("div",g(y([(e="self-stretch animate-pulse grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-start items-stretch",["className",e]),(t=lo(me(Vc(new Lc(0,[]))),uo(n=>Vc(new Lc(1,[])),ne(Hl(1,1,5)))),["children",v.Children.toArray(Array.from(t))])])))}function v_(e){let t;const n=Ir(()=>Mr(Ny,(i,o)=>Ty(()=>nv(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?d(Pc,{importHistory:new $(1,[void 0])}):n.tag===1?d(Pc,{importHistory:new $(0,[av(n.fields[0])])}):d(w_,null);const r=[d("style",{children:[Al]}),t];return d(Ue,{},...r)}function b_(){hl(e=>d(v_,e),"apollo-import-workspace-past-history")}class __{constructor(t,n){const r=new ht(xe());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=$e(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();ya(r.contents,o[0],o[1])}}finally{ke(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return $e(this)}GetEnumerator(){return $e(Ns(this.hashMap.values()))}[Symbol.iterator](){return fi($e(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){ya(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Hc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=Uo(this,t[0]);let i;switch(r!=null&&re(V(r)[1],t[1])?(i=0,V(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Of((i,o)=>{_t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return jc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=Uo(n,t[0]);return r!=null?(re(V(r)[1],t[1])&&wa(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){ya(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Wc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Bc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Uc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Yn(T(()=>je(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return wa(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=Uo(this,t);if(i!=null){const o=V(i);return n.contents=o[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Yn(T(()=>je(n=>n[1],t)))}get size(){return jc(this)|0}clear(){Hc(this)}delete(t){return wa(this,t)}entries(){return je(n=>[n[0],n[1]],this)}get(t){return Bc(this,t)}has(t){return Wc(this,t)}keys(){return je(n=>n[0],this)}set(t,n){const r=this;return Uc(r,t,n),r}values(){return je(n=>n[1],this)}forEach(t,n){const r=this;Tr(i=>{t(i[1],i[0],r)},r)}}function go(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=xe();return r=[Rl(e.hashMap,n,new ht(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function Uo(e,t){const n=go(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Zn(e.hashMap,n[1])[n[2]];default:return}}function Hc(e){e.hashMap.clear()}function jc(e){let t=0,n=$e(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{ke(n)}return t|0}function Bc(e,t){const n=Uo(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function Uc(e,t,n){const r=go(e,t);r[0]?r[2]>-1?Zn(e.hashMap,r[1])[r[2]]=[t,n]:Zn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function ya(e,t,n){const r=go(e,t);if(r[0]){if(r[2]>-1)throw new Error(af("An item with the same key has already been added. Key: {0}",t));Zn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Wc(e,t){const n=go(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function wa(e,t){const n=go(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Zn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function x_(e,t){return T(()=>{const n=new Ff([],t);return Ol(r=>Rf(r,n),e)})}function C_(e,t,n){return T(()=>{const r=new Ff(e,n);return Ol(i=>Rf(i,r),t)})}function S_(e,t,n){return T(()=>{const r=new __([],n),i=[],o=$e(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=e(s);let l,u=xe();l=[Rl(r,a,new ht(()=>u,f=>{u=f})),u],l[0]?l[1].push(s):(Zg(r,a,[s]),i.push(a))}}finally{ke(o)}return je(s=>[s,Zn(r,s)],i)})}function jm(e,t){return Yn(x_(e,t))}function Bm(e,t,n){return Yn(C_(e,t,n))}function E_(e,t,n){return Yn(je(r=>[r[0],Yn(r[1])],S_(e,t,n)))}class A_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class k_ extends Ce{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class N_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class Ui extends Ce{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new Ui(void 0,void 0,void 0,void 0,void 0);function Gc(e,t){return new Ui(e.FirstName,e.LastName,e.Email,e.MobilePhone,At(n=>n.fields[0],t))}class T_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class yt extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function $_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}class M_ extends Ce{constructor(t,n){super(),this.Head=t,this.Tail=n}}function I_(e){return Kr(ze(t=>[t[1].fields[0],$_(t[0])],xf([e.Head],e.Tail)),{Compare:Nr})}class D_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Pr extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class xn extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class O_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class R_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class F_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function P_(e,t){let n;return new D_(ze(r=>new T_(r),dg(r=>r,jm((n=ze(r=>pe(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!io(r))),{Equals:(r,i)=>r===i,GetHashCode:Qn}),{Compare:Nr})))}class Um extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class L_ extends Ce{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class Pt extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InviteNow","InviteLater"]}}class $o extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class be extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function Wm(e){switch(e.tag){case 1:return"Last name";case 2:return"Email";case 3:return"Mobile phone";case 4:return"Employment basis";default:return"First name"}}let or=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class Mi extends Ce{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class V_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class En extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let Hr=class extends Ce{constructor(t,n,r,i,o,s,a,l,u,f){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=u|0,this.Status=f}};function H_(e,t){const n=t.tag===1?["lastname","surname","familyname"]:t.tag===2?["email"]:t.tag===3?["mobilephone","mobilephonenumber","mobilenumber","mobile","phonenumber","phone"]:t.tag===4?["employmentbasis","employmenttype"]:["firstname","givenname","christianname","forename","baptismname","baptismalname"];return At(r=>r[0],Es(r=>hi(Nl(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Qn}),e))}function j_(e,t){return new V_(ze(n=>{const r=n[0];return[r,n[1],hi(r,t,{Equals:re,GetHashCode:Xo})?new En(1,[]):new En(0,[])]},e))}function Gm(e,t,n){switch(t.tag){case 1:return[e.FirstName.ColumnIndex,n,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 2:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,n,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 3:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,n,e.EmploymentBasis.ColumnIndex];case 4:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,n];default:return[n,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex]}}function jr(e,t){return Ut(n=>n,ze(n=>Sf(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function Zl(e,t,n,r,i,o,s){let a,l,u;const f=m=>j_(e,m);let c;c=Ut(m=>m,[n,r,i,o,s]).length;const h=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new $o(1,[new k_(l,u,a,o),At(m=>new N_(m),s)])):new $o(0,[new Ui(n,r,i,o,s)]):new $o(0,[new Ui(n,r,i,o,s)]):new $o(0,[new Ui(n,r,i,o,s)]);return new Hr(new Mi(n,f(Ut(m=>m,[r,i,o,s]))),new Mi(r,f(Ut(m=>m,[n,i,o,s]))),new Mi(i,f(Ut(m=>m,[n,r,o,s]))),new Mi(o,f(Ut(m=>m,[n,r,i,s]))),new Mi(s,f(Ut(m=>m,[n,r,i,o]))),t,e.length,c,e.length-c,h)}function Ii(e,t,n,r,i){let o,s,a;const l=[r,i];return a=Gm(n,l[0],l[1]),Zl(e,(o=n.Preview,o!=null&&re(o[0],r)?(s=o[0],[s,jr(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function Di(e,t,n){let r,i;const o=[n,void 0];return i=Gm(t,o[0],o[1]),Zl(e,(r=t.Preview,r!=null&&re(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function zm(e,t){switch(t.tag){case 1:return e.LastName.ColumnIndex!=null;case 2:return e.Email.ColumnIndex!=null;case 3:return e.MobilePhone.ColumnIndex!=null;case 4:return e.EmploymentBasis.ColumnIndex!=null;default:return e.FirstName.ColumnIndex!=null}}const B_=e=>t=>zm(e,t);function U_(e,t){const n=zm(e,t),r=e.Preview;let i;switch(n?r==null?i=2:re(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function W_(e,t){let n,r,i,o,s,a,l,u,f;const c=p=>H_(e,p);return[(n=t==null?(r=c(new be(0,[])),i=c(new be(1,[])),o=c(new be(2,[])),s=c(new be(3,[])),a=c(new be(4,[])),l=Ut(p=>p,[r,i,o,s,a]),u=p=>{let h,m;switch(p!=null?(h=p,l.filter(w=>re(w,h)).length>1?m=0:m=1):m=1,m){case 0:return;default:return p}},[u(r),u(i),u(o),u(s),u(a)]):(f=t,[f.FirstName,f.LastName,f.Email,f.MobilePhone,f.EmploymentBasis]),Zl(e,void 0,n[0],n[1],n[2],n[3],n[4])),Z()]}function G_(e,t,n,r){let i,o,s,a,l,u,f,c,p,h,m,w,b,x,C,E,M,I,F,L,S;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?m=6:m=15;break}case 2:{r.Email.ColumnIndex!=null?m=7:m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?m=8:m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?m=9:m=15;break}default:r.FirstName.ColumnIndex!=null?m=5:m=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(m=11,I=r.LastName.ColumnIndex):m=15;break}case 2:{r.Email.ColumnIndex!=null?(m=12,F=r.Email.ColumnIndex):m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(m=13,L=r.MobilePhone.ColumnIndex):m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(m=14,S=r.EmploymentBasis.ColumnIndex):m=15;break}default:r.FirstName.ColumnIndex!=null?(m=10,M=r.FirstName.ColumnIndex):m=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!re(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(_=>re(u,_[0])?re(_[2],new En(0,[])):!1)?(m=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],b=n.fields[1]):m=15;break}case 2:{f=n.fields[1],!re(r.Email.ColumnIndex,f)&&r.Email.IncomingFields.fields[0].some(_=>re(f,_[0])?re(_[2],new En(0,[])):!1)?(m=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):m=15;break}case 3:{c=n.fields[1],!re(r.MobilePhone.ColumnIndex,c)&&r.MobilePhone.IncomingFields.fields[0].some(_=>re(c,_[0])?re(_[2],new En(0,[])):!1)?(m=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],C=n.fields[1]):m=15;break}case 4:{p=n.fields[1],!re(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(_=>re(p,_[0])?re(_[2],new En(0,[])):!1)?(m=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],E=n.fields[1]):m=15;break}default:h=n.fields[1],!re(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(_=>re(h,_[0])?re(_[2],new En(0,[])):!1)?(m=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],w=n.fields[1]):m=15}}switch(m){case 0:return[(i=[new be(0,[]),w],Ii(e,t,r,i[0],i[1])),Z()];case 1:return[(o=[new be(1,[]),b],Ii(e,t,r,o[0],o[1])),Z()];case 2:return[(s=[new be(2,[]),x],Ii(e,t,r,s[0],s[1])),Z()];case 3:return[(a=[new be(3,[]),C],Ii(e,t,r,a[0],a[1])),Z()];case 4:return[(l=[new be(4,[]),E],Ii(e,t,r,l[0],l[1])),Z()];case 5:return[Di(e,r,new be(0,[])),Z()];case 6:return[Di(e,r,new be(1,[])),Z()];case 7:return[Di(e,r,new be(2,[])),Z()];case 8:return[Di(e,r,new be(3,[])),Z()];case 9:return[Di(e,r,new be(4,[])),Z()];case 10:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(0,[]),jr(M,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 11:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(1,[]),jr(I,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 12:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(2,[]),jr(F,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 13:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(3,[]),jr(L,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 14:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(4,[]),jr(S,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];default:return[r,Z()]}}const qm=typeof document<"u"?K.useLayoutEffect:()=>{};function z_(e){const t=se(null);return qm(()=>{t.current=e},[e]),Se((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const yo=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},mr=e=>e&&"window"in e&&e.window===e?e:yo(e).defaultView||window;function q_(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Y_(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ym(e){let t=null;return()=>(t==null&&(t=e()),t)}const Z_=Ym(function(){return Y_(/^Mac/i)}),K_=Ym(function(){return q_(/Android/i)});function X_(e){return e.mozInputSource===0&&e.isTrusted?!0:K_()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class J_{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Zm(e){let t=se({isFocused:!1,observer:null});qm(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=z_(r=>{e==null||e(r)});return Se(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new J_("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Q_(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Se(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=Zm(o),a=Se(l=>{const u=yo(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}let wo=null,Ka=new Set,Wi=new Map,xr=!1,Xa=!1;const e2={Tab:!0,Escape:!0};function Kl(e,t){for(let n of Ka)n(e,t)}function t2(e){return!(e.metaKey||!Z_()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ds(e){xr=!0,t2(e)&&(wo="keyboard",Kl("keyboard",e))}function Zt(e){wo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(xr=!0,Kl("pointer",e))}function Km(e){X_(e)&&(xr=!0,wo="virtual")}function Xm(e){e.target===window||e.target===document||(!xr&&!Xa&&(wo="virtual",Kl("virtual",e)),xr=!1,Xa=!1)}function Jm(){xr=!1,Xa=!0}function Ja(e){if(typeof window>"u"||Wi.get(mr(e)))return;const t=mr(e),n=yo(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){xr=!0,r.apply(this,arguments)},n.addEventListener("keydown",ds,!0),n.addEventListener("keyup",ds,!0),n.addEventListener("click",Km,!0),t.addEventListener("focus",Xm,!0),t.addEventListener("blur",Jm,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Zt,!0),n.addEventListener("pointermove",Zt,!0),n.addEventListener("pointerup",Zt,!0)):(n.addEventListener("mousedown",Zt,!0),n.addEventListener("mousemove",Zt,!0),n.addEventListener("mouseup",Zt,!0)),t.addEventListener("beforeunload",()=>{Qm(e)},{once:!0}),Wi.set(t,{focus:r})}const Qm=(e,t)=>{const n=mr(e),r=yo(e);t&&r.removeEventListener("DOMContentLoaded",t),Wi.has(n)&&(n.HTMLElement.prototype.focus=Wi.get(n).focus,r.removeEventListener("keydown",ds,!0),r.removeEventListener("keyup",ds,!0),r.removeEventListener("click",Km,!0),n.removeEventListener("focus",Xm,!0),n.removeEventListener("blur",Jm,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Zt,!0),r.removeEventListener("pointermove",Zt,!0),r.removeEventListener("pointerup",Zt,!0)):(r.removeEventListener("mousedown",Zt,!0),r.removeEventListener("mousemove",Zt,!0),r.removeEventListener("mouseup",Zt,!0)),Wi.delete(n))};function n2(e){const t=yo(e);let n;return t.readyState!=="loading"?Ja(e):(n=()=>{Ja(e)},t.addEventListener("DOMContentLoaded",n)),()=>Qm(e,n)}typeof document<"u"&&n2();function eh(){return wo!=="pointer"}const r2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function i2(e,t,n){var r;const i=typeof window<"u"?mr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?mr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?mr(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?mr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!r2.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!e2[n.key])}function o2(e,t,n){Ja(),Me(()=>{let r=(i,o)=>{i2(!!(n!=null&&n.isTextInput),i,o)&&e(eh())};return Ka.add(r),()=>{Ka.delete(r)}},t)}function s2(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=se({isFocusWithin:!1}),s=Se(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Zm(s),l=Se(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let fs=!1,va=0;function Qa(){fs=!0,setTimeout(()=>{fs=!1},50)}function zc(e){e.pointerType==="touch"&&Qa()}function a2(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",zc):document.addEventListener("touchend",Qa),va++,()=>{va--,!(va>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",zc):document.removeEventListener("touchend",Qa))}}function l2(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=ye(!1),a=se({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Me(a2,[]);let{hoverProps:l,triggerHoverEnd:u}=de(()=>{let f=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let w=h.currentTarget;a.target=w,t&&t({type:"hoverstart",target:w,pointerType:m}),n&&n(!0),s(!0)},c=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let w=h.currentTarget;r&&r({type:"hoverend",target:w,pointerType:m}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{fs&&h.pointerType==="mouse"||f(h,h.pointerType)},p.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&c(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!fs&&f(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&c(h,"mouse")}),{hoverProps:p,triggerHoverEnd:c}},[t,n,r,i,a]);return Me(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function u2(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=se({isFocused:!1,isFocusVisible:t||eh()}),[o,s]=ye(!1),[a,l]=ye(()=>i.current.isFocused&&i.current.isFocusVisible),u=Se(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),f=Se(h=>{i.current.isFocused=h,s(h),u()},[u]);o2(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=Q_({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=s2({isDisabled:!r,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:a,focusProps:r?p:c}}var c2=Object.defineProperty,d2=(e,t,n)=>t in e?c2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ba=(e,t,n)=>(d2(e,typeof t!="symbol"?t+"":t,n),n);let f2=class{constructor(){ba(this,"current",this.detect()),ba(this,"handoffState","pending"),ba(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"}},gr=new f2;function bi(e){return gr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Fs(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Pn(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},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 Fs(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=Pn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function tr(){let[e]=ye(Pn);return Me(()=>()=>e.dispose(),[e]),e}let qe=(e,t)=>{gr.isServer?Me(e,t):On(e,t)};function nr(e){let t=se(e);return qe(()=>{t.current=e},[e]),t}let ue=function(e){let t=nr(e);return K.useCallback((...n)=>t.current(...n),[t])};function m2(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function h2(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function p2({disabled:e=!1}={}){let t=se(null),[n,r]=ye(!1),i=tr(),o=ue(()=>{t.current=null,r(!1),i.dispose()}),s=ue(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=bi(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let f=m2(u);r(h2(f,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let g2=Je(void 0);function Xl(){return Ie(g2)}function el(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Dt(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Dt),r}var li=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(li||{}),Wn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Wn||{});function pt(){let e=w2();return Se(t=>y2({mergeRefs:e,...t}),[e])}function y2({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??v2;let l=th(t,e);if(o)return Mo(l,n,r,s,a);let u=i??0;if(u&2){let{static:f=!1,...c}=l;if(f)return Mo(c,n,r,s,a)}if(u&1){let{unmount:f=!0,...c}=l;return Dt(f?0:1,{0(){return null},1(){return Mo({...c,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Mo(l,n,r,s,a)}function Mo(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=_a(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let p=!1,h=[];for(let[m,w]of Object.entries(t))typeof w=="boolean"&&(p=!0),w===!0&&h.push(m.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(p){c["data-headlessui-state"]=h.join(" ");for(let m of h)c[`data-${m}`]=""}}if(o===Ue&&(Object.keys(Vn(l)).length>0||Object.keys(Vn(c)).length>0))if(!di(f)||Array.isArray(f)&&f.length>1){if(Object.keys(Vn(l)).length>0)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(Vn(l)).concat(Object.keys(Vn(c))).map(p=>` - ${p}`).join(`
45
+ `))(a)}}else if(df(r))if($l(r)){const s=ze(a=>Sn(e,t,n,a),pf(r));return a=>To(Wg((l,u)=>pe(l,s)(u),a))}else{const s=Ge(ff(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new op(()=>Gw(Sn(e,t,n,pe(0,Bt(r)))));return l=>l==null?_m:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=Sn(e,t,n,pe(0,Bt(r)));return l=>To(je(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=pe(0,Bt(r)),l=Sn(e,t,n,pe(1,Bt(r)));if(Ge(a)==="System.String"||Ge(a)==="System.Guid")return u=>co((f,c)=>{const p=c;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=Sn(e,t,n,a),c=>To(je(p=>{const h=p;return[u(h[0]),l(h[1])]},c))}}else return kc(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return Bw;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return Uw;case"System.DateTimeOffset":return Hw;case"System.TimeSpan":return jw;case"System.Guid":return Vw;case"System.Object":return s=>s;default:return kc(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function zw(e){return Wl({Compare:Nr})}function qw(e,t,n,r){const i=rt(t,new Ki(0,[])),o=rt(r,!0);return Sn(zw(),i,o,e)}class xm extends Ce{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function Yw(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportRowDataDto",[],xm,()=>[["RowId",kt],["Data",qn("Microsoft.FSharp.Collections.FSharpMap`2",[$n,$n])]])}class Cm extends Ce{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}}function Zw(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],Cm,()=>[["IncludesEmploymentInfo",Jp],["Data",wr(Yw())]])}class Kw extends Ce{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function Xw(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],Kw,()=>[["Column",$n],["PropName",$n],["Message",$n]])}class Jw extends Ce{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Qw(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],Jw,()=>[["RowId",kt],["FieldErrors",wr(Xw())]])}class ev extends Ce{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function tv(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],ev,()=>[["Errors",wr(Qw())],["DuplicateEmailCount",kt]])}function Sm(e){return`${e}/import/workspace/v1.0/accounts/current`}function Em(e){return Se.Delay(()=>{let t;const n=cc(e);return t=Se.Bind(n,r=>Se.Return(new M(0,[r]))),Se.Bind(t,r=>{const i=r;if(i.tag===1)return Se.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){const s=cc(e);return Se.Bind(s,a=>Se.Return(new M(0,[a])))}else return Se.Return(new M(0,[o]))}})})}function nv(e,t){return Se.Delay(()=>{const n=Em(mm(new Bl(0,[]),fm(Sm(e)+"/imports")));return Se.Bind(n,r=>{const i=r;if(i.tag===1)return Se.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=ym(Qe(bm(Cy(),new Ki(1,[]))),o.responseText);return a=l.tag===1?new M(1,[l.fields[0]]):new M(0,[l.fields[0]]),Se.Return(a)}case 404:return Se.Return(new M(0,[void 0]));default:return Se.Return(new M(1,["Failed to get account imports"]))}}})})}function rv(e,t){return Se.Delay(()=>{let n;const r=Em((n=mm(new Bl(1,[]),fm(Sm(e)+"/import/validate")),Zy(new em(1,[Ww(0,qw(Zw(),new Ki(1,[]),void 0,void 0)(t))]),n)));return Se.Bind(r,i=>{const o=i;if(o.tag===1)return Se.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=ym(Qe(bm(tv(),new Ki(1,[]))),s.responseText);return Se.Return(a)}else return Se.Return(new M(1,[`Failed to validate: ${s.responseText}`]))}})})}class iv extends Ce{constructor(t){super(),this.UserActivities=t}}class Nc extends Ce{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function ov(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:rt(At(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function sv(e){return uo(w(Ss(At(t=>new Nc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),gi(t=>new Nc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function av(e){return new iv(rt(At(sv,e),dt()))}class Tc extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class lv extends Ce{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class ho extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class uv extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class cv extends Ce{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Am extends Ce{constructor(t,n){super(),this.Column=t,this.Direction=n}}class dv extends X{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class as extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class fv extends Ce{constructor(t,n,r,i,o){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=i|0,this.PageSize=o|0}}function mv(e){return e.tag===1?km(e.fields[0].Data):$m()}function hv(e){return e.tag===1?vi(e.fields[0].Data):new as(1,[])}function pv(e){const t=Gl($m(),e);return new ho([Im(an(e),20),t])}function po(e){return e.fields[0][1]}function km(e){return Tm(po(e))}function gv(e){return zl(po(e))}function vi(e){return e.fields[0][0]}function yv(e){const t=vi(e);if(t.tag===0){const n=t.fields[0],r=Nf(n.FirstRowIndex,gv(e));return Tf(Tv(n),r)}else return dt()}function Nm(e,t){const n=Gl(km(e),t);return new ho([Av(vi(e),an(zl(n))),n])}function wv(e){return new ho([vi(e),_v(po(e))])}function vv(e){return new ho([Ev(vi(e)),po(e)])}function bv(e){return new ho([Sv(vi(e)),po(e)])}function Gl(e,t){return new uv([e,ky(e.Direction,n=>n.Timestamp,t)])}function zl(e){return e.fields[0][1]}function Tm(e){return e.fields[0][0]}function _v(e){return Gl(xv(Tm(e)),zl(e))}function $m(){return new Am(new dv,new Wa(0,[]))}function xv(e){return new Am(e.Column,Ay(e.Direction))}function Mm(e,t){return~~(e/t)+(e%t===0?0:1)}function Os(e,t,n){if(e<=0)return new as(1,[]);{const r=Hu(n,Mm(e,t))|0,i=(r-1)*t|0;return new as(0,[new fv(r,i,Hu(i+t-1,e-1),e,t)])}}function Im(e,t){return Os(e,t,1)}function Cv(e){if(e.tag===0){const t=e.fields[0];return Mm(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function Dm(e){return e.tag===0?e.fields[0].CurrentPage<Cv(e):!1}function Om(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Sv(e){const t=Om(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Os(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Ev(e){const t=Dm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Os(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Av(e,t){return t<=0?new as(1,[]):e.tag===0?Os(t,20,e.fields[0].CurrentPage):Im(t,20)}function kv(e){return e.FirstRowIndex+1}function Nv(e){return e.LastRowIndex+1}function Tv(e){return e.LastRowIndex-e.FirstRowIndex+1}let Kn=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class bi extends Ce{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class ql extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function $v(e){if(e.tag===1)return Rm(e.fields[0])}function Mv(e){return e.tag===0}function Iv(e){return e.tag===1?new Tc(1,[Vv(e.fields[0])]):new Tc(0,[])}function Rm(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Dv(e){return Rm(e)!=null}function Ov(e,t){return new Kn(1,[new bi(e.ImportHistory,new ql(1,[t]),Nm(e.PaginatedList,Bn(n=>ov(n.User,t),e.ImportHistory.UserActivities)))])}function Rv(e){return new Kn(1,[new bi(e.ImportHistory,new ql(0,[]),Nm(e.PaginatedList,e.ImportHistory.UserActivities))])}function Fv(e){return new Kn(1,[new bi(e.ImportHistory,e.View,wv(e.PaginatedList))])}function Pv(e){return new Kn(1,[new bi(e.ImportHistory,e.View,vv(e.PaginatedList))])}function Lv(e){return new Kn(1,[new bi(e.ImportHistory,e.View,bv(e.PaginatedList))])}function Vv(e){return new lv(e.PaginatedList,Dv(e))}let Xr=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Hv(e){let t;return[e.tag===1?new Kn(0,[]):(t=e.fields[0],new Kn(1,[new bi(t,new ql(0,[]),pv(t.UserActivities))])),Z()]}function Fm(e,t){return e.tag===1?t(e.fields[0]):[new Kn(0,[]),Z()]}function jv(e,t){return Fm(e,n=>[t(n),Z()])}function Bv(e,t){const n=r=>jv(t,r);switch(e.tag){case 1:return n(Rv);case 2:return n(Fv);case 3:return n(Pv);case 4:return n(Lv);default:{const r=e.fields[0];return Fm(t,i=>Nl(r)?[t,me(o=>{o(new Xr(1,[]))})]:[Ov(i,r),Z()])}}}function Uv(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([(r="M6.77835 19.8844C6.74702 19.9444 6.7414 20.0146 6.76278 20.0789C6.78416 20.1432 6.83071 20.196 6.89177 20.2254L7.82464 20.6734C7.9462 20.7317 8.09214 20.6832 8.15452 20.5636L16.5023 4.56364C16.5337 4.50358 16.5393 4.43338 16.5179 4.3691C16.4965 4.30482 16.45 4.25197 16.3889 4.22264L15.4561 3.77464C15.3345 3.71627 15.1886 3.76481 15.1262 3.88436L6.77835 19.8844Z",["d",r]),["fill","#D1D5DB"],["stroke","#D1D5DB"],["strokeWidth",.5],["strokeLinejoin","round"]])))),["children",v.Children.toArray(Array.from(n))])])))}function Wv(){let e,t,n;return d("div",y(w([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[d("div",y(w([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[d("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),d("div",y(w([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Uv(24,24)],["children",v.Children.toArray(Array.from(n))])]))),d("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function Gv(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([["clipRule","evenodd"],(r="M8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4ZM2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 9.29583 13.5892 10.4957 12.8907 11.4765L17.7071 16.2929C18.0976 16.6834 18.0976 17.3166 17.7071 17.7071C17.3166 18.0976 16.6834 18.0976 16.2929 17.7071L11.4765 12.8907C10.4957 13.5892 9.29583 14 8 14C4.68629 14 2 11.3137 2 8Z",["d",r]),["fill","#9CA3AF"]])))),["children",v.Children.toArray(Array.from(n))])])))}function qa(e,t){let n,r;return d("svg",y(w([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([(r="M9.70757 0.292433C9.52026 0.105188 9.26626 0 9.00142 0C8.73658 0 8.48257 0.105188 8.29527 0.292433L5.00624 3.58146L1.71721 0.292433C1.52884 0.110495 1.27654 0.00982222 1.01466 0.0120979C0.752781 0.0143736 0.502271 0.119416 0.317087 0.3046C0.131902 0.489785 0.0268602 0.740295 0.0245845 1.00218C0.0223088 1.26406 0.122982 1.51635 0.30492 1.70473L3.59395 4.99376L0.30492 8.28279C0.209525 8.37492 0.133435 8.48513 0.0810888 8.60699C0.028743 8.72885 0.00119014 8.85991 3.77112e-05 8.99253C-0.00111471 9.12515 0.0241565 9.25667 0.0743768 9.37942C0.124597 9.50216 0.19876 9.61368 0.29254 9.70746C0.386319 9.80124 0.497837 9.8754 0.620585 9.92562C0.743333 9.97584 0.874854 10.0011 1.00747 9.99996C1.14009 9.99881 1.27115 9.97126 1.39301 9.91891C1.51487 9.86657 1.62508 9.79047 1.71721 9.69508L5.00624 6.40605L8.29527 9.69508C8.48365 9.87702 8.73594 9.97769 8.99782 9.97542C9.25971 9.97314 9.51022 9.8681 9.6954 9.68291C9.88058 9.49773 9.98563 9.24722 9.9879 8.98534C9.99018 8.72346 9.88951 8.47116 9.70757 8.28279L6.41854 4.99376L9.70757 1.70473C9.89481 1.51743 10 1.26343 10 0.998581C10 0.733736 9.89481 0.479735 9.70757 0.292433Z",["d",r]),["fill","currentColor"]])))),["children",v.Children.toArray(Array.from(n))])])))}class $c extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function zv(e){let t,n;const r=rt(e.Value,"");return d("div",y(w([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[d("div",y(w([["className",bt(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=ne(T(()=>{let i;return H(A(d("div",y(w([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[Gv(20,20)],["children",v.Children.toArray(Array.from(i))])])))),T(()=>{let o;return H(A(d("input",y(w([(o="rounded-md border-0 py-[0.5625rem] px-10 ring-1 ring-inset ring-gray-300 placeholder:text-gray-500 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-primary-600 bg-white text-sm w-full",["className",o]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new $c(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),T(()=>{let s;return Nl(r)?A(xe()):A(d("div",y(w([["onClick",a=>{e.ActionHandler(new $c(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[qa(10,10)],["children",v.Children.toArray(Array.from(s))])]))))}))}))})),["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function qv(e){let t,n;const r=e.height,i=e.width;return d("svg",y(w([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=me(d("path",y(w([(n="M4.98771 6.01229C4.72252 6.01223 4.4682 5.90684 4.28071 5.71929L0.280712 1.71929C0.0985537 1.53069 -0.00224062 1.27808 3.78026e-05 1.01589C0.00231622 0.75369 0.107485 0.502878 0.292893 0.31747C0.478301 0.132062 0.729114 0.0268924 0.99131 0.0246139C1.25351 0.0223355 1.50611 0.12313 1.69471 0.305288L4.98771 3.59829L8.28071 0.305288C8.37296 0.209778 8.4833 0.133596 8.60531 0.0811869C8.72731 0.0287779 8.85853 0.00119157 8.99131 3.77571e-05C9.12409 -0.00111606 9.25577 0.0241854 9.37867 0.0744663C9.50156 0.124747 9.61321 0.199 9.70711 0.292893C9.801 0.386786 9.87525 0.498438 9.92553 0.621334C9.97581 0.744231 10.0011 0.87591 9.99996 1.00869C9.99881 1.14147 9.97122 1.27269 9.91881 1.39469C9.8664 1.5167 9.79022 1.62704 9.69471 1.71929L5.69471 5.71929C5.50722 5.90684 5.25291 6.01223 4.98771 6.01229Z",["d",n]),["fill","#111827"]])))),["children",v.Children.toArray(Array.from(t))])])))}function Yv(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return d("div",y(w([["className",bt(" ",ne(T(()=>H(A("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),T(()=>r.tag===1?A("rotate-180"):A(""))))))],["onClick",i=>{n(void 0)}],(t=[d(qv,{width:10,height:7})],["children",v.Children.toArray(Array.from(t))])])))}function Zv(e){const t=e.toggleSortDirection,n=e.props;return d(Yv,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function Kv(e){let t,n,r,i;const o=d(Zv,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return d("div",y(w([["className","flex-none grid grid-cols-7"],(t=[d("div",y(w([["className","col-span-1 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(n=[d("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",v.Children.toArray(Array.from(n))])]))),d("div",y(w([["className","col-span-2 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(r=[d("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",v.Children.toArray(Array.from(r))])]))),d("div",y(w([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(i=[d("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(t))])])))}function ls(e){"@babel/helpers - typeof";return ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ls(e)}function _r(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function $t(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function vn(e){$t(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ls(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Xv(e,t){$t(2,arguments);var n=vn(e).getTime(),r=_r(t);return new Date(n+r)}var Jv={};function Rs(){return Jv}function Qv(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function eb(e){return $t(1,arguments),e instanceof Date||ls(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function tb(e){if($t(1,arguments),!eb(e)&&typeof e!="number")return!1;var t=vn(e);return!isNaN(Number(t))}function nb(e,t){$t(2,arguments);var n=_r(t);return Xv(e,-n)}var rb=864e5;function ib(e){$t(1,arguments);var t=vn(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/rb)+1}function us(e){$t(1,arguments);var t=1,n=vn(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Pm(e){$t(1,arguments);var t=vn(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=us(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=us(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function ob(e){$t(1,arguments);var t=Pm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=us(n);return r}var sb=6048e5;function ab(e){$t(1,arguments);var t=vn(e),n=us(t).getTime()-ob(t).getTime();return Math.round(n/sb)+1}function cs(e,t){var n,r,i,o,s,a,l,u;$t(1,arguments);var f=Rs(),c=_r((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=vn(e),h=p.getUTCDay(),m=(h<c?7:0)+h-c;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function Lm(e,t){var n,r,i,o,s,a,l,u;$t(1,arguments);var f=vn(e),c=f.getUTCFullYear(),p=Rs(),h=_r((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(c+1,0,h),m.setUTCHours(0,0,0,0);var g=cs(m,t),b=new Date(0);b.setUTCFullYear(c,0,h),b.setUTCHours(0,0,0,0);var x=cs(b,t);return f.getTime()>=g.getTime()?c+1:f.getTime()>=x.getTime()?c:c-1}function lb(e,t){var n,r,i,o,s,a,l,u;$t(1,arguments);var f=Rs(),c=_r((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=Lm(e,t),h=new Date(0);h.setUTCFullYear(p,0,c),h.setUTCHours(0,0,0,0);var m=cs(h,t);return m}var ub=6048e5;function cb(e,t){$t(1,arguments);var n=vn(e),r=cs(n,t).getTime()-lb(n,t).getTime();return Math.round(r/ub)+1}function Re(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Ln={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return Re(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Re(r+1,2)},d:function(t,n){return Re(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Re(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Re(t.getUTCHours(),n.length)},m:function(t,n){return Re(t.getUTCMinutes(),n.length)},s:function(t,n){return Re(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return Re(o,n.length)}},Fr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},db={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Ln.y(t,n)},Y:function(t,n,r,i){var o=Lm(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return Re(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Re(s,n.length)},R:function(t,n){var r=Pm(t);return Re(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Re(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Re(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Re(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Ln.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Re(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=cb(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Re(o,n.length)},I:function(t,n,r){var i=ab(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Re(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ln.d(t,n)},D:function(t,n,r){var i=ib(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Re(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Re(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Re(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return Re(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Fr.noon:i===0?o=Fr.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Fr.evening:i>=12?o=Fr.afternoon:i>=4?o=Fr.morning:o=Fr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Ln.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ln.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Re(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Re(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Ln.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Ln.s(t,n)},S:function(t,n){return Ln.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Ic(s);case"XXXX":case"XX":return ar(s);case"XXXXX":case"XXX":default:return ar(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return Ic(s);case"xxxx":case"xx":return ar(s);case"xxxxx":case"xxx":default:return ar(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Mc(s,":");case"OOOO":default:return"GMT"+ar(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Mc(s,":");case"zzzz":default:return"GMT"+ar(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return Re(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return Re(s,n.length)}};function Mc(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t;return n+String(i)+s+Re(o,2)}function Ic(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Re(Math.abs(e)/60,2)}return ar(e,t)}function ar(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Re(Math.floor(i/60),2),s=Re(i%60,2);return r+o+n+s}var Dc=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Vm=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},fb=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Dc(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",Dc(i,n)).replace("{{time}}",Vm(o,n))},mb={p:Vm,P:fb},hb=["D","DD"],pb=["YY","YYYY"];function gb(e){return hb.indexOf(e)!==-1}function yb(e){return pb.indexOf(e)!==-1}function Oc(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var wb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vb=function(t,n,r){var i,o=wb[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function ga(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var bb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_b={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cb={date:ga({formats:bb,defaultWidth:"full"}),time:ga({formats:_b,defaultWidth:"full"}),dateTime:ga({formats:xb,defaultWidth:"full"})},Sb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Eb=function(t,n,r,i){return Sb[t]};function $i(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var Ab={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Nb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Tb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$b={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Mb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ib=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Db={ordinalNumber:Ib,era:$i({values:Ab,defaultWidth:"wide"}),quarter:$i({values:kb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$i({values:Nb,defaultWidth:"wide"}),day:$i({values:Tb,defaultWidth:"wide"}),dayPeriod:$i({values:$b,defaultWidth:"wide",formattingValues:Mb,defaultFormattingWidth:"wide"})};function Mi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Rb(a,function(c){return c.test(s)}):Ob(a,function(c){return c.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var f=t.slice(s.length);return{value:u,rest:f}}}function Ob(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Rb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Fb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Pb=/^(\d+)(th|st|nd|rd)?/i,Lb=/\d+/i,Vb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hb={any:[/^b/i,/^(a|c)/i]},jb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Bb={any:[/1/i,/2/i,/3/i,/4/i]},Ub={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Wb={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gb={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},zb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Yb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zb={ordinalNumber:Fb({matchPattern:Pb,parsePattern:Lb,valueCallback:function(t){return parseInt(t,10)}}),era:Mi({matchPatterns:Vb,defaultMatchWidth:"wide",parsePatterns:Hb,defaultParseWidth:"any"}),quarter:Mi({matchPatterns:jb,defaultMatchWidth:"wide",parsePatterns:Bb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Mi({matchPatterns:Ub,defaultMatchWidth:"wide",parsePatterns:Wb,defaultParseWidth:"any"}),day:Mi({matchPatterns:Gb,defaultMatchWidth:"wide",parsePatterns:zb,defaultParseWidth:"any"}),dayPeriod:Mi({matchPatterns:qb,defaultMatchWidth:"any",parsePatterns:Yb,defaultParseWidth:"any"})},Kb={code:"en-US",formatDistance:vb,formatLong:Cb,formatRelative:Eb,localize:Db,match:Zb,options:{weekStartsOn:0,firstWeekContainsDate:1}},Xb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qb=/^'([^]*?)'?$/,e_=/''/g,t_=/[a-zA-Z]/;function Hm(e,t,n){var r,i,o,s,a,l,u,f,c,p,h,m,g,b;$t(2,arguments);var x=String(t),C=Rs(),E=(r=(i=void 0)!==null&&i!==void 0?i:C.locale)!==null&&r!==void 0?r:Kb,$=_r((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:C.firstWeekContainsDate)!==null&&s!==void 0?s:(u=C.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=_r((c=(p=(h=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&h!==void 0?h:C.weekStartsOn)!==null&&p!==void 0?p:(g=C.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&c!==void 0?c:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var L=vn(e);if(!tb(L))throw new RangeError("Invalid time value");var P=Qv(L),S=nb(L,P),_={firstWeekContainsDate:$,weekStartsOn:I,locale:E,_originalDate:L},k=x.match(Jb).map(function(N){var D=N[0];if(D==="p"||D==="P"){var O=mb[D];return O(N,E.formatLong)}return N}).join("").match(Xb).map(function(N){if(N==="''")return"'";var D=N[0];if(D==="'")return n_(N);var O=db[D];if(O)return yb(N)&&Oc(N,t,String(e)),gb(N)&&Oc(N,t,String(e)),O(S,N,E.localize,_);if(D.match(t_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return N}).join("");return k}function n_(e){var t=e.match(Qb);return t?t[1].replace(e_,"'"):e}function r_(e){return Hm(e,"d MMM, yyyy")}function i_(e){return Hm(e,"h:mm a")}function o_(e){let t,n,r,i,o,s,a;return d("div",y(w([["className","grid grid-cols-7"],(t=[d("div",y(w([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[d("div",y(w([["className"," flex flex-col justify-center items-start"],(r=[d("div",y(w([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:r_(e.Timestamp)})],["children",v.Children.toArray(Array.from(i))])]))),d("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:i_(e.Timestamp)})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])]))),d("div",y(w([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[d("div",y(w([["className","justify-center items-start flex flex-col"],(s=ne(T(()=>{let l;return H(A(d("div",y(w([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",v.Children.toArray(Array.from(l))])])))),T(()=>{const u=e.User.Email;return u==null?A(xe()):A(d("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])]))),d("div",y(w([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[d("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(t))])])))}function s_(e){const t=gi(n=>d(o_,n),e.Data);return d("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:v.Children.toArray(Array.from(t))})}function a_(e){let t,n,r,i,o;const s=e.height,a=e.width;return d("svg",y(w([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=w([d("path",y(w([(n="M60 100C37.9441 100 20 82.0567 20 60C20 37.9433 37.9441 20 60 20C82.0559 20 100 37.9433 100 60C100 82.0567 82.0559 100 60 100Z",["d",n]),["fill","url(#paint0_linear_3770_593)"]]))),d("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",y(w([(r="M60 76C60.5523 76 61 75.5523 61 75C61 74.4477 60.5523 74 60 74C59.4477 74 59 74.4477 59 75C59 75.5523 59.4477 76 60 76Z",["d",r]),["stroke","#111827"],["strokeWidth",2],["strokeLinecap","round"],["strokeLinejoin","round"]]))),(i=me(d("linearGradient",y(w([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=w([d("stop",{offset:0,stopColor:"#FFD84D"}),d("stop",{offset:1,stopColor:"#FF876F"})]),["children",v.Children.toArray(Array.from(o))])])))),d("defs",{children:v.Children.toArray(Array.from(i))}))]),["children",v.Children.toArray(Array.from(t))])])))}function l_(){let e;return d("div",y(w([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[d(a_,{width:120,height:120})],["children",v.Children.toArray(Array.from(e))])])))}function u_(){let e,t,n,r;return d("div",y(w([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[d(l_,null),d("div",y(w([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[d("div",y(w([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[d("div",y(w([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[d("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),d("div",{className:"self-stretch text-center text-gray-500 text-sm font-normal leading-tight",children:"Something went wrong while retrieving your activities. Please refresh the page to try again."})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function c_(e){return{Data:yv(e.Data)}}function d_(e){let t;const n=e.props,r=n.tag===1?d(s_,c_(n.fields[0])):d(u_,null);return d("div",y(w([["className","relative h-full grow"],(t=[d("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:v.Children.toArray([r])})],["children",v.Children.toArray(Array.from(t))])])))}class Rc extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function f_(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return d("div",y(w([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[d("div",{className:"self-stretch h-px bg-gray-200"}),d("div",y(w([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=ne(T(()=>{let o,s,a;return H((o=i,o.tag===1?A(d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],A((a=w([d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(kv(s))}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(Nv(s))}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(s.TotalRecordsNumber)}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),d("div",{children:v.Children.toArray(Array.from(a))}))))),T(()=>{let l,u,f;return A(d("div",y(w([["className","justify-start items-start gap-3 flex"],(l=[d("button",y(w([["type","button"],(u="py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",u]),["children","Previous"],["onClick",c=>{r(new Rc(0,[]))}],["disabled",!Om(i)]]))),d("button",y(w([["type","button"],(f="ml-3 py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",f]),["children","Next"],["onClick",c=>{r(new Rc(1,[]))}],["disabled",!Dm(i)]])))],["children",v.Children.toArray(Array.from(l))])]))))}))})),["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Ya extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function m_(e,t){e(t.tag===0?new Ya(2,[]):new Ya(1,[]))}function h_(e){let t,n;const r=e.actionHandler,i=e.props;return d("div",y(w([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[d(Kv,new cv(mv(i),()=>{r(new Ya(0,[]))})),d(d_,{props:i}),d(f_,{pagingInfo:hv(i),pageChangedHandler:o=>{m_(r,o)}})],["children",v.Children.toArray(Array.from(n))])])))}function p_(e,t){t.tag===0?e(new Xr(0,[t.fields[0]])):e(new Xr(1,[]))}function g_(e,t){switch(t.tag){case 2:{e(new Xr(4,[]));break}case 0:{e(new Xr(2,[]));break}default:e(new Xr(3,[]))}}function Fc(e){let t,n;const r=e.importHistory;let i;const o=Hv(r);i=Ir(()=>Mr(()=>o,Bv,(f,c)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=$v(s);return l={ActionHandler:f=>{p_(a,f)},Disabled:Mv(s),Value:Vi(u)},d("div",y(w([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[d(Wv,null),d("div",y(w([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[d(zv,l),d(h_,{props:Iv(s),actionHandler:f=>{g_(a,f)}})],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Pc extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function y_(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return d("div",y(w([["className",bt(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[d("div",{className:bt(" ",["w-full h-4 relative rounded",r[1]])})],["children",v.Children.toArray(Array.from(n))])])))}function Lc(e){const t=gi(n=>y_(e,n),w(["col-span-1","col-span-2","col-span-4"]));return d("div",{className:"grid grid-cols-7",children:v.Children.toArray(Array.from(t))})}function w_(){let e,t;return d("div",y(w([(e="self-stretch animate-pulse grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-start items-stretch",["className",e]),(t=uo(me(Lc(new Pc(0,[]))),gi(n=>Lc(new Pc(1,[])),ne(Vl(1,1,5)))),["children",v.Children.toArray(Array.from(t))])])))}function v_(e){let t;const n=Ir(()=>Mr(Ny,(i,o)=>Ty(()=>nv(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?d(Fc,{importHistory:new M(1,[void 0])}):n.tag===1?d(Fc,{importHistory:new M(0,[av(n.fields[0])])}):d(w_,null);const r=[d("style",{children:[El]}),t];return d(Ue,{},...r)}function b_(){ml(e=>d(v_,e),"apollo-import-workspace-past-history")}class __{constructor(t,n){const r=new ht(xe());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Me(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();ya(r.contents,o[0],o[1])}}finally{Ne(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Me(this)}GetEnumerator(){return Me(Ns(this.hashMap.values()))}[Symbol.iterator](){return fi(Me(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){ya(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Vc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=Uo(this,t[0]);let i;switch(r!=null&&re(V(r)[1],t[1])?(i=0,V(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Of((i,o)=>{_t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Hc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=Uo(n,t[0]);return r!=null?(re(V(r)[1],t[1])&&wa(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){ya(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Uc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return jc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Bc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Yn(T(()=>je(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return wa(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=Uo(this,t);if(i!=null){const o=V(i);return n.contents=o[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Yn(T(()=>je(n=>n[1],t)))}get size(){return Hc(this)|0}clear(){Vc(this)}delete(t){return wa(this,t)}entries(){return je(n=>[n[0],n[1]],this)}get(t){return jc(this,t)}has(t){return Uc(this,t)}keys(){return je(n=>n[0],this)}set(t,n){const r=this;return Bc(r,t,n),r}values(){return je(n=>n[1],this)}forEach(t,n){const r=this;Tr(i=>{t(i[1],i[0],r)},r)}}function go(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=xe();return r=[Ol(e.hashMap,n,new ht(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function Uo(e,t){const n=go(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Zn(e.hashMap,n[1])[n[2]];default:return}}function Vc(e){e.hashMap.clear()}function Hc(e){let t=0,n=Me(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{Ne(n)}return t|0}function jc(e,t){const n=Uo(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function Bc(e,t,n){const r=go(e,t);r[0]?r[2]>-1?Zn(e.hashMap,r[1])[r[2]]=[t,n]:Zn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function ya(e,t,n){const r=go(e,t);if(r[0]){if(r[2]>-1)throw new Error(sf("An item with the same key has already been added. Key: {0}",t));Zn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Uc(e,t){const n=go(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function wa(e,t){const n=go(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Zn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function x_(e,t){return T(()=>{const n=new Ff([],t);return Dl(r=>Rf(r,n),e)})}function C_(e,t,n){return T(()=>{const r=new Ff(e,n);return Dl(i=>Rf(i,r),t)})}function S_(e,t,n){return T(()=>{const r=new __([],n),i=[],o=Me(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=e(s);let l,u=xe();l=[Ol(r,a,new ht(()=>u,f=>{u=f})),u],l[0]?l[1].push(s):(Zg(r,a,[s]),i.push(a))}}finally{Ne(o)}return je(s=>[s,Zn(r,s)],i)})}function jm(e,t){return Yn(x_(e,t))}function Bm(e,t,n){return Yn(C_(e,t,n))}function E_(e,t,n){return Yn(je(r=>[r[0],Yn(r[1])],S_(e,t,n)))}class A_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class k_ extends Ce{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class N_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class Wi extends Ce{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new Wi(void 0,void 0,void 0,void 0,void 0);function Wc(e,t){return new Wi(e.FirstName,e.LastName,e.Email,e.MobilePhone,At(n=>n.fields[0],t))}class T_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class yt extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function $_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}class M_ extends Ce{constructor(t,n){super(),this.Head=t,this.Tail=n}}function I_(e){return Kr(ze(t=>[t[1].fields[0],$_(t[0])],_f([e.Head],e.Tail)),{Compare:Nr})}class D_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Pr extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class xn extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class O_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class R_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class F_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function P_(e,t){let n;return new D_(ze(r=>new T_(r),dg(r=>r,jm((n=ze(r=>pe(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!oo(r))),{Equals:(r,i)=>r===i,GetHashCode:Qn}),{Compare:Nr})))}class Um extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class L_ extends Ce{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class Pt extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InviteNow","InviteLater"]}}class $o extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class be extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function Wm(e){switch(e.tag){case 1:return"Last name";case 2:return"Email";case 3:return"Mobile phone";case 4:return"Employment basis";default:return"First name"}}let or=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class Ii extends Ce{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class V_ extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class En extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let Hr=class extends Ce{constructor(t,n,r,i,o,s,a,l,u,f){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=u|0,this.Status=f}};function H_(e,t){const n=t.tag===1?["lastname","surname","familyname"]:t.tag===2?["email"]:t.tag===3?["mobilephone","mobilephonenumber","mobilenumber","mobile","phonenumber","phone"]:t.tag===4?["employmentbasis","employmenttype"]:["firstname","givenname","christianname","forename","baptismname","baptismalname"];return At(r=>r[0],Es(r=>hi(kl(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Qn}),e))}function j_(e,t){return new V_(ze(n=>{const r=n[0];return[r,n[1],hi(r,t,{Equals:re,GetHashCode:Xo})?new En(1,[]):new En(0,[])]},e))}function Gm(e,t,n){switch(t.tag){case 1:return[e.FirstName.ColumnIndex,n,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 2:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,n,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 3:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,n,e.EmploymentBasis.ColumnIndex];case 4:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,n];default:return[n,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex]}}function jr(e,t){return Ut(n=>n,ze(n=>Cf(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function Yl(e,t,n,r,i,o,s){let a,l,u;const f=m=>j_(e,m);let c;c=Ut(m=>m,[n,r,i,o,s]).length;const h=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new $o(1,[new k_(l,u,a,o),At(m=>new N_(m),s)])):new $o(0,[new Wi(n,r,i,o,s)]):new $o(0,[new Wi(n,r,i,o,s)]):new $o(0,[new Wi(n,r,i,o,s)]);return new Hr(new Ii(n,f(Ut(m=>m,[r,i,o,s]))),new Ii(r,f(Ut(m=>m,[n,i,o,s]))),new Ii(i,f(Ut(m=>m,[n,r,o,s]))),new Ii(o,f(Ut(m=>m,[n,r,i,s]))),new Ii(s,f(Ut(m=>m,[n,r,i,o]))),t,e.length,c,e.length-c,h)}function Di(e,t,n,r,i){let o,s,a;const l=[r,i];return a=Gm(n,l[0],l[1]),Yl(e,(o=n.Preview,o!=null&&re(o[0],r)?(s=o[0],[s,jr(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function Oi(e,t,n){let r,i;const o=[n,void 0];return i=Gm(t,o[0],o[1]),Yl(e,(r=t.Preview,r!=null&&re(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function zm(e,t){switch(t.tag){case 1:return e.LastName.ColumnIndex!=null;case 2:return e.Email.ColumnIndex!=null;case 3:return e.MobilePhone.ColumnIndex!=null;case 4:return e.EmploymentBasis.ColumnIndex!=null;default:return e.FirstName.ColumnIndex!=null}}const B_=e=>t=>zm(e,t);function U_(e,t){const n=zm(e,t),r=e.Preview;let i;switch(n?r==null?i=2:re(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function W_(e,t){let n,r,i,o,s,a,l,u,f;const c=p=>H_(e,p);return[(n=t==null?(r=c(new be(0,[])),i=c(new be(1,[])),o=c(new be(2,[])),s=c(new be(3,[])),a=c(new be(4,[])),l=Ut(p=>p,[r,i,o,s,a]),u=p=>{let h,m;switch(p!=null?(h=p,l.filter(g=>re(g,h)).length>1?m=0:m=1):m=1,m){case 0:return;default:return p}},[u(r),u(i),u(o),u(s),u(a)]):(f=t,[f.FirstName,f.LastName,f.Email,f.MobilePhone,f.EmploymentBasis]),Yl(e,void 0,n[0],n[1],n[2],n[3],n[4])),Z()]}function G_(e,t,n,r){let i,o,s,a,l,u,f,c,p,h,m,g,b,x,C,E,$,I,L,P,S;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?m=6:m=15;break}case 2:{r.Email.ColumnIndex!=null?m=7:m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?m=8:m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?m=9:m=15;break}default:r.FirstName.ColumnIndex!=null?m=5:m=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(m=11,I=r.LastName.ColumnIndex):m=15;break}case 2:{r.Email.ColumnIndex!=null?(m=12,L=r.Email.ColumnIndex):m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(m=13,P=r.MobilePhone.ColumnIndex):m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(m=14,S=r.EmploymentBasis.ColumnIndex):m=15;break}default:r.FirstName.ColumnIndex!=null?(m=10,$=r.FirstName.ColumnIndex):m=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!re(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(_=>re(u,_[0])?re(_[2],new En(0,[])):!1)?(m=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],b=n.fields[1]):m=15;break}case 2:{f=n.fields[1],!re(r.Email.ColumnIndex,f)&&r.Email.IncomingFields.fields[0].some(_=>re(f,_[0])?re(_[2],new En(0,[])):!1)?(m=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):m=15;break}case 3:{c=n.fields[1],!re(r.MobilePhone.ColumnIndex,c)&&r.MobilePhone.IncomingFields.fields[0].some(_=>re(c,_[0])?re(_[2],new En(0,[])):!1)?(m=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],C=n.fields[1]):m=15;break}case 4:{p=n.fields[1],!re(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(_=>re(p,_[0])?re(_[2],new En(0,[])):!1)?(m=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],E=n.fields[1]):m=15;break}default:h=n.fields[1],!re(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(_=>re(h,_[0])?re(_[2],new En(0,[])):!1)?(m=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],g=n.fields[1]):m=15}}switch(m){case 0:return[(i=[new be(0,[]),g],Di(e,t,r,i[0],i[1])),Z()];case 1:return[(o=[new be(1,[]),b],Di(e,t,r,o[0],o[1])),Z()];case 2:return[(s=[new be(2,[]),x],Di(e,t,r,s[0],s[1])),Z()];case 3:return[(a=[new be(3,[]),C],Di(e,t,r,a[0],a[1])),Z()];case 4:return[(l=[new be(4,[]),E],Di(e,t,r,l[0],l[1])),Z()];case 5:return[Oi(e,r,new be(0,[])),Z()];case 6:return[Oi(e,r,new be(1,[])),Z()];case 7:return[Oi(e,r,new be(2,[])),Z()];case 8:return[Oi(e,r,new be(3,[])),Z()];case 9:return[Oi(e,r,new be(4,[])),Z()];case 10:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(0,[]),jr($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 11:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(1,[]),jr(I,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 12:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(2,[]),jr(L,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 13:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(3,[]),jr(P,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 14:return[new Hr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new be(4,[]),jr(S,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];default:return[r,Z()]}}const qm=typeof document<"u"?K.useLayoutEffect:()=>{};function z_(e){const t=se(null);return qm(()=>{t.current=e},[e]),Ee((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const yo=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},mr=e=>e&&"window"in e&&e.window===e?e:yo(e).defaultView||window;function q_(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Y_(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ym(e){let t=null;return()=>(t==null&&(t=e()),t)}const Z_=Ym(function(){return Y_(/^Mac/i)}),K_=Ym(function(){return q_(/Android/i)});function X_(e){return e.mozInputSource===0&&e.isTrusted?!0:K_()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class J_{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Zm(e){let t=se({isFocused:!1,observer:null});qm(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=z_(r=>{e==null||e(r)});return Ee(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new J_("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Q_(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Ee(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=Zm(o),a=Ee(l=>{const u=yo(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}let wo=null,Za=new Set,Gi=new Map,xr=!1,Ka=!1;const e2={Tab:!0,Escape:!0};function Zl(e,t){for(let n of Za)n(e,t)}function t2(e){return!(e.metaKey||!Z_()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ds(e){xr=!0,t2(e)&&(wo="keyboard",Zl("keyboard",e))}function Zt(e){wo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(xr=!0,Zl("pointer",e))}function Km(e){X_(e)&&(xr=!0,wo="virtual")}function Xm(e){e.target===window||e.target===document||(!xr&&!Ka&&(wo="virtual",Zl("virtual",e)),xr=!1,Ka=!1)}function Jm(){xr=!1,Ka=!0}function Xa(e){if(typeof window>"u"||Gi.get(mr(e)))return;const t=mr(e),n=yo(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){xr=!0,r.apply(this,arguments)},n.addEventListener("keydown",ds,!0),n.addEventListener("keyup",ds,!0),n.addEventListener("click",Km,!0),t.addEventListener("focus",Xm,!0),t.addEventListener("blur",Jm,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Zt,!0),n.addEventListener("pointermove",Zt,!0),n.addEventListener("pointerup",Zt,!0)):(n.addEventListener("mousedown",Zt,!0),n.addEventListener("mousemove",Zt,!0),n.addEventListener("mouseup",Zt,!0)),t.addEventListener("beforeunload",()=>{Qm(e)},{once:!0}),Gi.set(t,{focus:r})}const Qm=(e,t)=>{const n=mr(e),r=yo(e);t&&r.removeEventListener("DOMContentLoaded",t),Gi.has(n)&&(n.HTMLElement.prototype.focus=Gi.get(n).focus,r.removeEventListener("keydown",ds,!0),r.removeEventListener("keyup",ds,!0),r.removeEventListener("click",Km,!0),n.removeEventListener("focus",Xm,!0),n.removeEventListener("blur",Jm,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Zt,!0),r.removeEventListener("pointermove",Zt,!0),r.removeEventListener("pointerup",Zt,!0)):(r.removeEventListener("mousedown",Zt,!0),r.removeEventListener("mousemove",Zt,!0),r.removeEventListener("mouseup",Zt,!0)),Gi.delete(n))};function n2(e){const t=yo(e);let n;return t.readyState!=="loading"?Xa(e):(n=()=>{Xa(e)},t.addEventListener("DOMContentLoaded",n)),()=>Qm(e,n)}typeof document<"u"&&n2();function eh(){return wo!=="pointer"}const r2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function i2(e,t,n){var r;const i=typeof window<"u"?mr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?mr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?mr(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?mr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!r2.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!e2[n.key])}function o2(e,t,n){Xa(),Ie(()=>{let r=(i,o)=>{i2(!!(n!=null&&n.isTextInput),i,o)&&e(eh())};return Za.add(r),()=>{Za.delete(r)}},t)}function s2(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=se({isFocusWithin:!1}),s=Ee(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Zm(s),l=Ee(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let fs=!1,va=0;function Ja(){fs=!0,setTimeout(()=>{fs=!1},50)}function Gc(e){e.pointerType==="touch"&&Ja()}function a2(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Gc):document.addEventListener("touchend",Ja),va++,()=>{va--,!(va>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Gc):document.removeEventListener("touchend",Ja))}}function l2(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=ye(!1),a=se({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Ie(a2,[]);let{hoverProps:l,triggerHoverEnd:u}=de(()=>{let f=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let g=h.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:m}),n&&n(!0),s(!0)},c=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:m}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{fs&&h.pointerType==="mouse"||f(h,h.pointerType)},p.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&c(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!fs&&f(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&c(h,"mouse")}),{hoverProps:p,triggerHoverEnd:c}},[t,n,r,i,a]);return Ie(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function u2(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=se({isFocused:!1,isFocusVisible:t||eh()}),[o,s]=ye(!1),[a,l]=ye(()=>i.current.isFocused&&i.current.isFocusVisible),u=Ee(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),f=Ee(h=>{i.current.isFocused=h,s(h),u()},[u]);o2(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=Q_({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=s2({isDisabled:!r,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:a,focusProps:r?p:c}}var c2=Object.defineProperty,d2=(e,t,n)=>t in e?c2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ba=(e,t,n)=>(d2(e,typeof t!="symbol"?t+"":t,n),n);let f2=class{constructor(){ba(this,"current",this.detect()),ba(this,"handoffState","pending"),ba(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"}},gr=new f2;function _i(e){return gr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Fs(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Pn(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},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 Fs(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=Pn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function tr(){let[e]=ye(Pn);return Ie(()=>()=>e.dispose(),[e]),e}let qe=(e,t)=>{gr.isServer?Ie(e,t):On(e,t)};function nr(e){let t=se(e);return qe(()=>{t.current=e},[e]),t}let ue=function(e){let t=nr(e);return K.useCallback((...n)=>t.current(...n),[t])};function m2(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function h2(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function p2({disabled:e=!1}={}){let t=se(null),[n,r]=ye(!1),i=tr(),o=ue(()=>{t.current=null,r(!1),i.dispose()}),s=ue(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=_i(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let f=m2(u);r(h2(f,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let g2=Je(void 0);function Kl(){return De(g2)}function Qa(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Dt(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Dt),r}var li=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(li||{}),Wn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Wn||{});function pt(){let e=w2();return Ee(t=>y2({mergeRefs:e,...t}),[e])}function y2({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??v2;let l=th(t,e);if(o)return Mo(l,n,r,s,a);let u=i??0;if(u&2){let{static:f=!1,...c}=l;if(f)return Mo(c,n,r,s,a)}if(u&1){let{unmount:f=!0,...c}=l;return Dt(f?0:1,{0(){return null},1(){return Mo({...c,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Mo(l,n,r,s,a)}function Mo(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=_a(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let p=!1,h=[];for(let[m,g]of Object.entries(t))typeof g=="boolean"&&(p=!0),g===!0&&h.push(m.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(p){c["data-headlessui-state"]=h.join(" ");for(let m of h)c[`data-${m}`]=""}}if(o===Ue&&(Object.keys(Vn(l)).length>0||Object.keys(Vn(c)).length>0))if(!di(f)||Array.isArray(f)&&f.length>1){if(Object.keys(Vn(l)).length>0)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(Vn(l)).concat(Object.keys(Vn(c))).map(p=>` - ${p}`).join(`
46
46
  `),"","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(p=>` - ${p}`).join(`
47
47
  `)].join(`
48
- `))}else{let p=f.props,h=p==null?void 0:p.className,m=typeof h=="function"?(...x)=>el(h(...x),l.className):el(h,l.className),w=m?{className:m}:{},b=th(f.props,Vn(_a(l,["ref"])));for(let x in c)x in b&&delete c[x];return Sl(f,Object.assign({},b,c,u,{ref:i(b2(f),u.ref)},w))}return d(o,Object.assign({},_a(l,["ref"]),o!==Ue&&u,o!==Ue&&c),f)}function w2(){let e=se([]),t=Se(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function v2(...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 th(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function nh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let s of o)s==null||s(...i)}});return t}function at(e){var t;return Object.assign(xl(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Vn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function _a(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function b2(e){return K.version.split(".")[0]>="19"?e.props.ref:e.ref}function _2(e,t,n){let[r,i]=ye(n),o=e!==void 0,s=se(o),a=se(!1),l=se(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,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.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,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.")),[o?e:r,ue(u=>(o||i(u),t==null?void 0:t(u)))]}function x2(e){let[t]=ye(e);return t}function rh(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))oh(n,ih(t,r),i);return n}function ih(e,t){return e?e+"["+t+"]":t}function oh(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())oh(e,ih(t,r.toString()),i);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,""]):rh(n,t,e)}function C2(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let S2="span";var ui=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ui||{});function E2(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["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 pt()({ourProps:o,theirProps:i,slot:{},defaultTag:S2,name:"Hidden"})}let Ki=at(E2),A2=Je(null);function k2({children:e}){let t=Ie(A2);if(!t)return K.createElement(K.Fragment,null,e);let{target:n}=t;return n?_s(K.createElement(K.Fragment,null,e),n):null}function N2({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=ye(null),a=tr();return Me(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),K.createElement(k2,null,K.createElement(T2,{setForm:s,formId:t}),rh(e).map(([l,u])=>K.createElement(Ki,{features:ui.Hidden,...Vn({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function T2({setForm:e,formId:t}){return Me(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:K.createElement(Ki,{features:ui.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let $2=Je(void 0);function sh(){return Ie($2)}function M2(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&&I2(n)?!1:r}function I2(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let ah=Symbol();function D2(e,t=!0){return Object.assign(e,{[ah]:t})}function St(...e){let t=se(e);Me(()=>{t.current=e},[e]);let n=ue(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[ah]))?void 0:n}let Ps=Je(null);Ps.displayName="DescriptionContext";function lh(){let e=Ie(Ps);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,lh),t}return e}function O2(){var e,t;return(t=(e=Ie(Ps))==null?void 0:e.value)!=null?t:void 0}function R2(){let[e,t]=ye([]);return[e.length>0?e.join(" "):void 0,de(()=>function(n){let r=ue(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=de(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return K.createElement(Ps.Provider,{value:i},n.children)},[t])]}let F2="p";function P2(e,t){let n=Jt(),r=Xl(),{id:i=`headlessui-description-${n}`,...o}=e,s=lh(),a=St(t);qe(()=>s.register(i),[i,s.register]);let l=r||!1,u=de(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:i};return pt()({ourProps:f,theirProps:o,slot:u,defaultTag:F2,name:s.name||"Description"})}let L2=at(P2),V2=Object.assign(L2,{});var lt=(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))(lt||{});let Ls=Je(null);Ls.displayName="LabelContext";function uh(){let e=Ie(Ls);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,uh),t}return e}function ch(e){var t,n,r;let i=(n=(t=Ie(Ls))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function H2({inherit:e=!1}={}){let t=ch(),[n,r]=ye([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,de(()=>function(o){let s=ue(l=>(r(u=>[...u,l]),()=>r(u=>{let f=u.slice(),c=f.indexOf(l);return c!==-1&&f.splice(c,1),f}))),a=de(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return K.createElement(Ls.Provider,{value:a},o.children)},[r])]}let j2="label";function B2(e,t){var n;let r=Jt(),i=uh(),o=sh(),s=Xl(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...f}=e,c=St(t);qe(()=>i.register(a),[a,i.register]);let p=ue(b=>{let x=b.currentTarget;if(x instanceof HTMLLabelElement&&b.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(b),x instanceof HTMLLabelElement){let C=document.getElementById(x.htmlFor);if(C){let E=C.getAttribute("disabled");if(E==="true"||E==="")return;let M=C.getAttribute("aria-disabled");if(M==="true"||M==="")return;(C instanceof HTMLInputElement&&(C.type==="radio"||C.type==="checkbox")||C.role==="radio"||C.role==="checkbox"||C.role==="switch")&&C.click(),C.focus({preventScroll:!0})}}}),h=s||!1,m=de(()=>({...i.slot,disabled:h}),[i.slot,h]),w={ref:c,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in w&&(delete w.htmlFor,delete w.onClick),"onClick"in f&&delete f.onClick),pt()({ourProps:w,theirProps:f,slot:m,defaultTag:l?j2:"div",name:i.name||"Label"})}let U2=at(B2),W2=Object.assign(U2,{}),G2=Je(()=>{});function z2({value:e,children:t}){return K.createElement(G2.Provider,{value:e},t)}function q2(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Y2(e=q2){return Se((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function Z2(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function K2(e,t=!1){let[n,r]=kr(()=>({}),{}),i=de(()=>Z2(e),[e,n]);return qe(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let X2=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function dh(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=t[i].call(n,...o);s&&(n=s,r.forEach(a=>a()))}}}function fh(e){return bs(e.subscribe,e.getSnapshot,e.getSnapshot)}let J2=new X2(()=>dh(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function _i(e,t){let n=J2.get(t),r=Jt(),i=fh(n);if(qe(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),s=i.length;return o===-1&&(o=s,s+=1),o===s-1}let tl=new Map,Gi=new Map;function qc(e){var t;let n=(t=Gi.get(e))!=null?t:0;return Gi.set(e,n+1),n!==0?()=>Yc(e):(tl.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Yc(e))}function Yc(e){var t;let n=(t=Gi.get(e))!=null?t:1;if(n===1?Gi.delete(e):Gi.set(e,n-1),n!==1)return;let r=tl.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,tl.delete(e))}function mh(e,{allowed:t,disallowed:n}={}){let r=_i(e,"inert-others");qe(()=>{var i,o;if(!r)return;let s=Pn();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(qc(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=bi(l);if(!u)continue;let f=l.parentElement;for(;f&&f!==u.body;){for(let c of f.children)a.some(p=>c.contains(p))||s.add(qc(c));f=f.parentElement}}return s.dispose},[r,t,n])}function hh(e,t,n){let r=nr(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});Me(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Pn();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,r,e])}let ms=["[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(","),Q2=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ln=(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[e.AutoFocus=64]="AutoFocus",e))(ln||{}),nl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(nl||{}),ex=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ex||{});function ph(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ms)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function tx(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Q2)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Jl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Jl||{});function gh(e,t=0){var n;return e===((n=bi(e))==null?void 0:n.body)?!1:Dt(t,{0(){return e.matches(ms)},1(){let r=e;for(;r!==null;){if(r.matches(ms))return!0;r=r.parentElement}return!1}})}var nx=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(nx||{});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 Mn(e){e==null||e.focus({preventScroll:!0})}let rx=["textarea","input"].join(",");function ix(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,rx))!=null?n:!1}function yh(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ox(e,t){return Jr(ph(),t,{relativeTo:e})}function Jr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?yh(e):e:t&64?tx(e):ph(e);i.length>0&&s.length>1&&(s=s.filter(h=>!i.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===h:m===h))),r=r??o.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,c=s.length,p;do{if(f>=c||f+c<=0)return 0;let h=l+f;if(t&16)h=(h+c)%c;else{if(h<0)return 3;if(h>=c)return 1}p=s[h],p==null||p.focus(u),f+=a}while(p!==o.activeElement);return t&6&&ix(p)&&p.select(),2}function wh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function sx(){return/Android/gi.test(window.navigator.userAgent)}function ax(){return wh()||sx()}function Oi(e,t,n,r){let i=nr(n);Me(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function vh(e,t,n,r){let i=nr(n);Me(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const Zc=30;function bh(e,t,n){let r=_i(e,"outside-click"),i=nr(n),o=Se(function(l,u){if(l.defaultPrevented)return;let f=u(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let c=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of c)if(p!==null&&(p.contains(f)||l.composed&&l.composedPath().includes(p)))return;return!gh(f,Jl.Loose)&&f.tabIndex!==-1&&l.preventDefault(),i.current(l,f)},[i,t]),s=se(null);Oi(r,"pointerdown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),Oi(r,"mousedown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),Oi(r,"click",l=>{ax()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=se({x:0,y:0});Oi(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),Oi(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Zc||Math.abs(u.y-a.current.y)>=Zc))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),vh(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function xi(...e){return de(()=>bi(...e),[...e])}function _h(e,t,n,r){let i=nr(n);Me(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function lx(e,t){return de(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function ux(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function cx(){return wh()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Pn();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),f=e.querySelector(u);f&&!r(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function dx(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function fx(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let hr=dh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Pn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:fx(n)},i=[cx(),ux(),dx()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});hr.subscribe(()=>{let e=hr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&hr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&hr.dispatch("TEARDOWN",n)}});function mx(e,t,n=()=>({containers:[]})){let r=fh(hr),i=t?r.get(t):void 0,o=i?i.count>0:!1;return qe(()=>{if(!(!t||!e))return hr.dispatch("PUSH",t,n),()=>hr.dispatch("POP",t,n)},[e,t]),o}function xh(e,t,n=()=>[document.body]){let r=_i(e,"scroll-lock");mx(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Kc(e){return[e.screenX,e.screenY]}function hx(){let e=se([-1,-1]);return{wasMoved(t){let n=Kc(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Kc(t)}}}function px(e=0){let[t,n]=ye(e),r=Se(l=>n(l),[t]),i=Se(l=>n(u=>u|l),[t]),o=Se(l=>(t&l)===l,[t]),s=Se(l=>n(u=>u&~l),[n]),a=Se(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var gx={},Xc,Jc;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Xc=process==null?void 0:gx)==null?void 0:Xc.NODE_ENV)==="test"&&typeof((Jc=Element==null?void 0:Element.prototype)==null?void 0:Jc.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
49
- `)),[]});var yx=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(yx||{});function Ch(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Sh(e,t,n,r){let[i,o]=ye(n),{hasFlag:s,addFlag:a,removeFlag:l}=px(e&&i?3:0),u=se(!1),f=se(!1),c=tr();return qe(()=>{var p;if(e){if(n&&o(!0),!t){n&&a(3);return}return(p=r==null?void 0:r.start)==null||p.call(r,n),wx(t,{inFlight:u,prepare(){f.current?f.current=!1:f.current=u.current,u.current=!0,!f.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){f.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var h;f.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||o(!1),(h=r==null?void 0:r.end)==null||h.call(r,n))}})}},[e,n,t,c]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function wx(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Pn();return bx(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(vx(e,r))})}),o.dispose}function vx(e,t){var n,r;let i=Pn();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return s.length===0?(t(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function bx(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function Ql(e,t){let n=se([]),r=ue(e);Me(()=>{let i=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let a=r(t,i);return n.current=t,a}},[r,...t])}function Vs(){return typeof window<"u"}function Ci(e){return Eh(e)?(e.nodeName||"").toLowerCase():"#document"}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(Eh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Eh(e){return Vs()?e instanceof Node||e instanceof Gt(e).Node:!1}function Nt(e){return Vs()?e instanceof Element||e instanceof Gt(e).Element:!1}function wn(e){return Vs()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function Qc(e){return!Vs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}function vo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function _x(e){return["table","td","th"].includes(Ci(e))}function Hs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function eu(e){const t=tu(),n=Nt(e)?fn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function xx(e){let t=Xn(e);for(;wn(t)&&!ci(t);){if(eu(t))return t;if(Hs(t))return null;t=Xn(t)}return null}function tu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ci(e){return["html","body","#document"].includes(Ci(e))}function fn(e){return Gt(e).getComputedStyle(e)}function js(e){return Nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if(Ci(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qc(e)&&e.host||bn(e);return Qc(t)?t.host:t}function Ah(e){const t=Xn(e);return ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&vo(t)?t:Ah(t)}function Xi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ah(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Gt(i);if(o){const a=rl(s);return t.concat(s,s.visualViewport||[],vo(i)?i:[],a&&n?Xi(a):[])}return t.concat(i,Xi(i,[],n))}function rl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cx(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const Cr=Math.min,vt=Math.max,Ji=Math.round,Io=Math.floor,gn=e=>({x:e,y:e}),Sx={left:"right",right:"left",bottom:"top",top:"bottom"},Ex={start:"end",end:"start"};function ed(e,t,n){return vt(e,Cr(t,n))}function Si(e,t){return typeof e=="function"?e(t):e}function Jn(e){return e.split("-")[0]}function bo(e){return e.split("-")[1]}function kh(e){return e==="x"?"y":"x"}function Nh(e){return e==="y"?"height":"width"}function Sr(e){return["top","bottom"].includes(Jn(e))?"y":"x"}function Th(e){return kh(Sr(e))}function Ax(e,t,n){n===void 0&&(n=!1);const r=bo(e),i=Th(e),o=Nh(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=hs(s)),[s,hs(s)]}function kx(e){const t=hs(e);return[il(e),t,il(t)]}function il(e){return e.replace(/start|end/g,t=>Ex[t])}function Nx(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function Tx(e,t,n,r){const i=bo(e);let o=Nx(Jn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(il)))),o}function hs(e){return e.replace(/left|right|bottom|top/g,t=>Sx[t])}function $x(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mx(e){return typeof e!="number"?$x(e):{top:e,right:e,bottom:e,left:e}}function ps(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function td(e,t,n){let{reference:r,floating:i}=e;const o=Sr(t),s=Th(t),a=Nh(s),l=Jn(t),u=o==="y",f=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-i.width,y:c};break;default:h={x:r.x,y:r.y}}switch(bo(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const Ix=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=td(u,r,l),p=r,h={},m=0;for(let w=0;w<a.length;w++){const{name:b,fn:x}=a[w],{x:C,y:E,data:M,reset:I}=await x({x:f,y:c,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,c=E??c,h={...h,[b]:{...h[b],...M}},I&&m<=50&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:f,y:c}=td(u,p,l)),w=-1)}return{x:f,y:c,placement:p,strategy:i,middlewareData:h}};async function Bs(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=Si(t,e),m=Mx(h),b=a[p?c==="floating"?"reference":"floating":c],x=ps(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),C=c==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),M=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},I=ps(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:E,strategy:l}):C);return{top:(x.top-I.top+m.top)/M.y,bottom:(I.bottom-x.bottom+m.bottom)/M.y,left:(x.left-I.left+m.left)/M.x,right:(I.right-x.right+m.right)/M.x}}const Dx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0,...b}=Si(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=Jn(i),C=Sr(a),E=Jn(a)===a,M=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=p||(E||!w?[hs(a)]:kx(a)),F=m!=="none";!p&&F&&I.push(...Tx(a,w,m,M));const L=[a,...I],S=await Bs(t,b),_=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&_.push(S[x]),c){const z=Ax(i,s,M);_.push(S[z[0]],S[z[1]])}if(k=[...k,{placement:i,overflows:_}],!_.every(z=>z<=0)){var N,D;const z=(((N=o.flip)==null?void 0:N.index)||0)+1,he=L[z];if(he)return{data:{index:z,overflows:k},reset:{placement:he}};let q=(D=k.filter(W=>W.overflows[0]<=0).sort((W,P)=>W.overflows[1]-P.overflows[1])[0])==null?void 0:D.placement;if(!q)switch(h){case"bestFit":{var O;const W=(O=k.filter(P=>{if(F){const U=Sr(P.placement);return U===C||U==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(U=>U>0).reduce((U,j)=>U+j,0)]).sort((P,U)=>P[1]-U[1])[0])==null?void 0:O[0];W&&(q=W);break}case"initialPlacement":q=a;break}if(i!==q)return{reset:{placement:q}}}return{}}}};async function Ox(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Jn(n),a=bo(n),l=Sr(n)==="y",u=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,c=Si(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*f,y:p*u}:{x:p*u,y:h*f}}const Rx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await Ox(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Fx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x,y:C}=b;return{x,y:C}}},...l}=Si(e,t),u={x:n,y:r},f=await Bs(t,l),c=Sr(Jn(i)),p=kh(c);let h=u[p],m=u[c];if(o){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=h+f[b],E=h-f[x];h=ed(C,h,E)}if(s){const b=c==="y"?"top":"left",x=c==="y"?"bottom":"right",C=m+f[b],E=m-f[x];m=ed(C,m,E)}const w=a.fn({...t,[p]:h,[c]:m});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[p]:o,[c]:s}}}}}},Px=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Si(e,t),f=await Bs(t,u),c=Jn(i),p=bo(i),h=Sr(i)==="y",{width:m,height:w}=o.floating;let b,x;c==="top"||c==="bottom"?(b=c,x=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=c,b=p==="end"?"top":"bottom");const C=w-f.top-f.bottom,E=m-f.left-f.right,M=Cr(w-f[b],C),I=Cr(m-f[x],E),F=!t.middlewareData.shift;let L=M,S=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=C),F&&!p){const k=vt(f.left,0),N=vt(f.right,0),D=vt(f.top,0),O=vt(f.bottom,0);h?S=m-2*(k!==0||N!==0?k+N:vt(f.left,f.right)):L=w-2*(D!==0||O!==0?D+O:vt(f.top,f.bottom))}await l({...t,availableWidth:S,availableHeight:L});const _=await s.getDimensions(a.floating);return m!==_.width||w!==_.height?{reset:{rects:!0}}:{}}}};function $h(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Ji(n)!==o||Ji(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function nu(e){return Nt(e)?e:e.contextElement}function Qr(e){const t=nu(e);if(!wn(t))return gn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=$h(t);let s=(o?Ji(n.width):n.width)/r,a=(o?Ji(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Lx=gn(0);function Mh(e){const t=Gt(e);return!tu()||!t.visualViewport?Lx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gt(e)?!1:t}function Er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=nu(e);let s=gn(1);t&&(r?Nt(r)&&(s=Qr(r)):s=Qr(e));const a=Vx(o,n,r)?Mh(o):gn(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,c=i.height/s.y;if(o){const p=Gt(o),h=r&&Nt(r)?Gt(r):r;let m=p,w=rl(m);for(;w&&r&&h!==m;){const b=Qr(w),x=w.getBoundingClientRect(),C=fn(w),E=x.left+(w.clientLeft+parseFloat(C.paddingLeft))*b.x,M=x.top+(w.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,c*=b.y,l+=E,u+=M,m=Gt(w),w=rl(m)}}return ps({width:f,height:c,x:l,y:u})}function ru(e,t){const n=js(e).scrollLeft;return t?t.left+n:Er(bn(e)).left+n}function Ih(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:ru(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Hx(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=bn(r),a=t?Hs(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=gn(1);const f=gn(0),c=wn(r);if((c||!c&&!o)&&((Ci(r)!=="body"||vo(s))&&(l=js(r)),wn(r))){const h=Er(r);u=Qr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!c&&!o?Ih(s,l,!0):gn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function jx(e){return Array.from(e.getClientRects())}function Bx(e){const t=bn(e),n=js(e),r=e.ownerDocument.body,i=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ru(e);const a=-n.scrollTop;return fn(r).direction==="rtl"&&(s+=vt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Ux(e,t){const n=Gt(e),r=bn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=tu();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Wx(e,t){const n=Er(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=wn(e)?Qr(e):gn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function nd(e,t,n){let r;if(t==="viewport")r=Ux(e,n);else if(t==="document")r=Bx(bn(e));else if(Nt(t))r=Wx(t,n);else{const i=Mh(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ps(r)}function Dh(e,t){const n=Xn(e);return n===t||!Nt(n)||ci(n)?!1:fn(n).position==="fixed"||Dh(n,t)}function Gx(e,t){const n=t.get(e);if(n)return n;let r=Xi(e,[],!1).filter(a=>Nt(a)&&Ci(a)!=="body"),i=null;const o=fn(e).position==="fixed";let s=o?Xn(e):e;for(;Nt(s)&&!ci(s);){const a=fn(s),l=eu(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||vo(s)&&!l&&Dh(e,s))?r=r.filter(f=>f!==s):i=a,s=Xn(s)}return t.set(e,r),r}function zx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Hs(t)?[]:Gx(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const c=nd(t,f,i);return u.top=vt(c.top,u.top),u.right=Cr(c.right,u.right),u.bottom=Cr(c.bottom,u.bottom),u.left=vt(c.left,u.left),u},nd(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qx(e){const{width:t,height:n}=$h(e);return{width:t,height:n}}function Yx(e,t,n){const r=wn(t),i=bn(t),o=n==="fixed",s=Er(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!o)if((Ci(t)!=="body"||vo(i))&&(a=js(t)),r){const p=Er(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=ru(i));const u=i&&!r&&!o?Ih(i,a):gn(0),f=s.left+a.scrollLeft-l.x-u.x,c=s.top+a.scrollTop-l.y-u.y;return{x:f,y:c,width:s.width,height:s.height}}function xa(e){return fn(e).position==="static"}function rd(e,t){if(!wn(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return bn(e)===n&&(n=n.ownerDocument.body),n}function Oh(e,t){const n=Gt(e);if(Hs(e))return n;if(!wn(e)){let i=Xn(e);for(;i&&!ci(i);){if(Nt(i)&&!xa(i))return i;i=Xn(i)}return n}let r=rd(e,t);for(;r&&_x(r)&&xa(r);)r=rd(r,t);return r&&ci(r)&&xa(r)&&!eu(r)?n:r||xx(e)||n}const Zx=async function(e){const t=this.getOffsetParent||Oh,n=this.getDimensions,r=await n(e.floating);return{reference:Yx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Kx(e){return fn(e).direction==="rtl"}const Xx={convertOffsetParentRelativeRectToViewportRelativeRect:Hx,getDocumentElement:bn,getClippingRect:zx,getOffsetParent:Oh,getElementRects:Zx,getClientRects:jx,getDimensions:qx,getScale:Qr,isElement:Nt,isRTL:Kx};function Rh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jx(e,t){let n=null,r;const i=bn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:f,top:c,width:p,height:h}=u;if(a||t(),!p||!h)return;const m=Io(c),w=Io(i.clientWidth-(f+p)),b=Io(i.clientHeight-(c+h)),x=Io(f),E={rootMargin:-m+"px "+-w+"px "+-b+"px "+-x+"px",threshold:vt(0,Cr(1,l))||1};let M=!0;function I(F){const L=F[0].intersectionRatio;if(L!==l){if(!M)return s();L?s(!1,L):r=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!Rh(u,e.getBoundingClientRect())&&s(),M=!1}try{n=new IntersectionObserver(I,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return s(!0),o}function Qx(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=nu(e),f=i||o?[...u?Xi(u):[],...Xi(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const c=u&&a?Jx(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(x=>{let[C]=x;C&&C.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m,w=l?Er(e):null;l&&b();function b(){const x=Er(e);w&&!Rh(w,x)&&n(),w=x,m=requestAnimationFrame(b)}return n(),()=>{var x;f.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),c==null||c(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Ca=Bs,eC=Rx,tC=Fx,nC=Dx,rC=Px,iC=(e,t,n)=>{const r=new Map,i={platform:Xx,...n},o={...i.platform,_c:r};return Ix(e,t,{...i,platform:o})};var Wo=typeof document<"u"?On:Me;function gs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!gs(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!gs(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Fh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function id(e,t){const n=Fh(e);return Math.round(t*n)/n}function Sa(e){const t=se(e);return Wo(()=>{t.current=e}),t}function oC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,c]=ye({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=ye(r);gs(p,r)||h(r);const[m,w]=ye(null),[b,x]=ye(null),C=Se(P=>{P!==F.current&&(F.current=P,w(P))},[]),E=Se(P=>{P!==L.current&&(L.current=P,x(P))},[]),M=o||m,I=s||b,F=se(null),L=se(null),S=se(f),_=l!=null,k=Sa(l),N=Sa(i),D=Sa(u),O=Se(()=>{if(!F.current||!L.current)return;const P={placement:t,strategy:n,middleware:p};N.current&&(P.platform=N.current),iC(F.current,L.current,P).then(U=>{const j={...U,isPositioned:D.current!==!1};z.current&&!gs(S.current,j)&&(S.current=j,Wt(()=>{c(j)}))})},[p,t,n,N,D]);Wo(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,c(P=>({...P,isPositioned:!1})))},[u]);const z=se(!1);Wo(()=>(z.current=!0,()=>{z.current=!1}),[]),Wo(()=>{if(M&&(F.current=M),I&&(L.current=I),M&&I){if(k.current)return k.current(M,I,O);O()}},[M,I,O,k,_]);const he=de(()=>({reference:F,floating:L,setReference:C,setFloating:E}),[C,E]),q=de(()=>({reference:M,floating:I}),[M,I]),W=de(()=>{const P={position:n,left:0,top:0};if(!q.floating)return P;const U=id(q.floating,f.x),j=id(q.floating,f.y);return a?{...P,transform:"translate("+U+"px, "+j+"px)",...Fh(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:j}},[n,a,q.floating,f.x,f.y]);return de(()=>({...f,update:O,refs:he,elements:q,floatingStyles:W}),[f,O,he,q,W])}const Ph=(e,t)=>({...eC(e),options:[e,t]}),sC=(e,t)=>({...tC(e),options:[e,t]}),aC=(e,t)=>({...nC(e),options:[e,t]}),lC=(e,t)=>({...rC(e),options:[e,t]}),Lh={...Zo},uC=Lh.useInsertionEffect,cC=uC||(e=>e());function Vh(e){const t=se(()=>{});return cC(()=>{t.current=e}),Se(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var ol=typeof document<"u"?On:Me;let od=!1,dC=0;const sd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+dC++;function fC(){const[e,t]=ye(()=>od?sd():void 0);return ol(()=>{e==null&&t(sd())},[]),Me(()=>{od=!0},[]),e}const mC=Lh.useId,hC=mC||fC;function pC(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const gC=Je(null),yC=Je(null),wC=()=>{var e;return((e=Ie(gC))==null?void 0:e.id)||null},vC=()=>Ie(yC),bC="data-floating-ui-focusable";function _C(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=hC(),o=se({}),[s]=ye(()=>pC()),a=wC()!=null,[l,u]=ye(r.reference),f=Vh((h,m,w)=>{o.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:w,nested:a}),n==null||n(h,m,w)}),c=de(()=>({setPositionReference:u}),[]),p=de(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return de(()=>({dataRef:o,open:t,onOpenChange:f,elements:p,events:s,floatingId:i,refs:c}),[t,f,p,s,i,c])}function xC(e){e===void 0&&(e={});const{nodeId:t}=e,n=_C({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=ye(null),[a,l]=ye(null),f=(i==null?void 0:i.domReference)||o,c=se(null),p=vC();ol(()=>{f&&(c.current=f)},[f]);const h=oC({...e,elements:{...i,...a&&{reference:a}}}),m=Se(E=>{const M=Nt(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l(M),h.refs.setReference(M)},[h.refs]),w=Se(E=>{(Nt(E)||E===null)&&(c.current=E,s(E)),(Nt(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!Nt(E))&&h.refs.setReference(E)},[h.refs]),b=de(()=>({...h.refs,setReference:w,setPositionReference:m,domReference:c}),[h.refs,w,m]),x=de(()=>({...h.elements,domReference:f}),[h.elements,f]),C=de(()=>({...h,...r,refs:b,elements:x,nodeId:t}),[h,b,x,t,r]);return ol(()=>{r.dataRef.current.floatingContext=C;const E=p==null?void 0:p.nodesRef.current.find(M=>M.id===t);E&&(E.context=C)}),de(()=>({...h,context:C,refs:b,elements:x}),[h,b,x,C])}const ad="active",ld="selected";function Ea(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[ad]:s,[ld]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[bC]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[u,f]=l;if(!(i&&[ad,ld].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var c;(c=r.get(u))==null||c.push(f),s[u]=function(){for(var p,h=arguments.length,m=new Array(h),w=0;w<h;w++)m[w]=arguments[w];return(p=r.get(u))==null?void 0:p.map(b=>b(...m)).find(b=>b!==void 0)}}}else s[u]=f}),s),{})}}function CC(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),i=Se(a=>Ea(a,e,"reference"),t),o=Se(a=>Ea(a,e,"floating"),n),s=Se(a=>Ea(a,e,"item"),r);return de(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function ud(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const SC=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:u,...f}=Si(e,t),{rects:c,elements:{floating:p}}=t,h=n.current[s],m=(u==null?void 0:u.current)||p,w=p.clientTop||m.clientTop,b=p.clientTop!==0,x=m.clientTop!==0,C=p===m;if(!h)return{};const E={...t,...await Ph(-h.offsetTop-p.clientTop-c.reference.height/2-h.offsetHeight/2-o).fn(t)},M=await Ca(ud(E,m.scrollHeight+w+p.clientTop),f),I=await Ca(E,{...f,elementContext:"reference"}),F=vt(0,M.top),L=E.y+F,k=(m.scrollHeight>m.clientHeight?N=>N:Ji)(vt(0,m.scrollHeight+(b&&C||x?w*2:0)-F-vt(0,M.bottom)));if(m.style.maxHeight=k+"px",m.scrollTop=F,i){const N=m.offsetHeight<h.offsetHeight*Cr(a,n.current.length)-1||I.top>=-l||I.bottom>=-l;Wt(()=>i(N))}return r&&(r.current=await Ca(ud({...E,y:L},m.offsetHeight+w+p.clientTop),f)),{y:L}}});function EC(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=Vh(a),u=se(!1),f=se(null),c=se(null);Me(()=>{if(!i)return;function h(w){if(w.ctrlKey||!m||o.current==null)return;const b=w.deltaY,x=o.current.top>=-.5,C=o.current.bottom>=-.5,E=m.scrollHeight-m.clientHeight,M=b<0?-1:1,I=b<0?"max":"min";m.scrollHeight<=m.clientHeight||(!x&&b>0||!C&&b<0?(w.preventDefault(),Wt(()=>{l(F=>F+Math[I](b,E*M))})):/firefox/i.test(Cx())&&(m.scrollTop+=b))}const m=(s==null?void 0:s.current)||r.floating;if(n&&m)return m.addEventListener("wheel",h),requestAnimationFrame(()=>{f.current=m.scrollTop,o.current!=null&&(c.current={...o.current})}),()=>{f.current=null,c.current=null,m.removeEventListener("wheel",h)}},[i,n,r.floating,o,s,l]);const p=de(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const h=(s==null?void 0:s.current)||r.floating;if(!(!o.current||!h||!u.current)){if(f.current!==null){const m=h.scrollTop-f.current;(o.current.bottom<-.5&&m<-1||o.current.top<-.5&&m>1)&&Wt(()=>l(w=>w+m))}requestAnimationFrame(()=>{f.current=h.scrollTop})}}}),[r.floating,l,o,s]);return de(()=>i?{floating:p}:{},[i,p])}let Ei=Je({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ei.displayName="FloatingContext";let iu=Je(null);iu.displayName="PlacementContext";function AC(e){return de(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function kC(){return Ie(Ei).setReference}function NC(){return Ie(Ei).getReferenceProps}function TC(){let{getFloatingProps:e,slot:t}=Ie(Ei);return Se((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function $C(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ie(iu),n=de(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);qe(()=>{t==null||t(n??null)},[t,n]);let r=Ie(Ei);return de(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let cd=4;function MC({children:e,enabled:t=!0}){let[n,r]=ye(null),[i,o]=ye(0),s=se(null),[a,l]=ye(null);IC(a);let u=t&&n!==null&&a!==null,{to:f="bottom",gap:c=0,offset:p=0,padding:h=0,inner:m}=DC(n,a),[w,b="center"]=f.split(" ");qe(()=>{u&&o(0)},[u]);let{refs:x,floatingStyles:C,context:E}=xC({open:u,placement:w==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${w}`:`${w}-${b}`,strategy:"absolute",transform:!1,middleware:[Ph({mainAxis:w==="selection"?0:c,crossAxis:p}),sC({padding:h}),w!=="selection"&&aC({padding:h}),w==="selection"&&m?SC({...m,padding:h,overflowRef:s,offset:i,minItemsVisible:cd,referenceOverflowThreshold:h,onFallbackChange(N){var D,O;if(!N)return;let z=E.elements.floating;if(!z)return;let he=parseFloat(getComputedStyle(z).scrollPaddingBottom)||0,q=Math.min(cd,z.childElementCount),W=0,P=0;for(let U of(O=(D=E.elements.floating)==null?void 0:D.childNodes)!=null?O:[])if(U instanceof HTMLElement){let j=U.offsetTop,fe=j+U.clientHeight+he,J=z.scrollTop,R=J+z.clientHeight;if(j>=J&&fe<=R)q--;else{P=Math.max(0,Math.min(fe,R)-Math.max(j,J)),W=U.clientHeight;break}}q>=1&&o(U=>{let j=W*q-P+he;return U>=j?U:j})}}):null,lC({padding:h,apply({availableWidth:N,availableHeight:D,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${D}px)`})}})].filter(Boolean),whileElementsMounted:Qx}),[M=w,I=b]=E.placement.split("-");w==="selection"&&(M="selection");let F=de(()=>({anchor:[M,I].filter(Boolean).join(" ")}),[M,I]),L=EC(E,{overflowRef:s,onChange:o}),{getReferenceProps:S,getFloatingProps:_}=CC([L]),k=ue(N=>{l(N),x.setFloating(N)});return d(iu.Provider,{value:r},d(Ei.Provider,{value:{setFloating:k,setReference:x.setReference,styles:C,getReferenceProps:S,getFloatingProps:_,slot:F}},e))}function IC(e){qe(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function DC(e,t){var n,r,i;let o=Aa((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Aa((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Aa((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Aa(e,t,n=void 0){let r=tr(),i=ue((l,u)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[n,null];let f=dd(l,u);return[f,c=>{let p=Hh(l);{let h=p.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let w=!1;for(let[x,C]of p.entries()){let E=window.getComputedStyle(u).getPropertyValue(C);if(h[x]!==E){h[x]=E,w=!0;break}}if(!w)return;let b=dd(l,u);f!==b&&(c(b),f=b)})}return r.dispose}]}return[n,null]}),o=de(()=>i(e,t)[0],[e,t]),[s=o,a]=ye();return qe(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function Hh(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...Hh(i)]:[r]}return[]}function dd(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function OC(e,t){let[n,r]=ye(t);return!e&&n!==t&&r(t),e?n:t}let Us=Je(null);Us.displayName="OpenClosedContext";var Tt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Tt||{});function _o(){return Ie(Us)}function jh({value:e,children:t}){return K.createElement(Us.Provider,{value:e},t)}function RC({children:e}){return K.createElement(Us.Provider,{value:null},e)}function FC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Hn=[];FC(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Hn[0]===t.target)return;let n=t.target;n=n.closest(ms),Hn.unshift(n??t.target),Hn=Hn.filter(r=>r!=null&&r.isConnected),Hn.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 PC(e){throw new Error("Unexpected object: "+e)}var ut=(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))(ut||{});function ka(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{i===-1&&(i=n.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:PC(e)}}function Bh(e){let t=ue(e),n=se(!1);Me(()=>(n.current=!1,()=>{n.current=!0,Fs(()=>{n.current&&t()})}),[t])}function LC(){let e=typeof document>"u";return"useSyncExternalStore"in Zo?(t=>t.useSyncExternalStore)(Zo)(()=>()=>{},()=>!1,()=>!e):!1}function xo(){let e=LC(),[t,n]=ye(gr.isHandoffComplete);return t&&gr.isHandoffComplete===!1&&n(!1),Me(()=>{t!==!0&&n(!0)},[t]),Me(()=>gr.handoff(),[]),e?!1:t}let Uh=Je(!1);function VC(){return Ie(Uh)}function fd(e){return K.createElement(Uh.Provider,{value:e.force},e.children)}function HC(e){let t=VC(),n=Ie(Gh),r=xi(e),[i,o]=ye(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(gr.isServer)return null;let a=r==null?void 0:r.getElementById("headlessui-portal-root");if(a)return a;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return Me(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),Me(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let Wh=Ue,jC=at(function(e,t){let n=e,r=se(null),i=St(D2(c=>{r.current=c}),t),o=xi(r),s=HC(r),[a]=ye(()=>{var c;return gr.isServer?null:(c=o==null?void 0:o.createElement("div"))!=null?c:null}),l=Ie(sl),u=xo();qe(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),qe(()=>{if(a&&l)return l.register(a)},[l,a]),Bh(()=>{var c;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))});let f=pt();return u?!s||!a?null:_s(f({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Wh,name:"Portal"}),a):null});function BC(e,t){let n=St(t),{enabled:r=!0,...i}=e,o=pt();return r?K.createElement(jC,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Wh,name:"Portal"})}let UC=Ue,Gh=Je(null);function WC(e,t){let{target:n,...r}=e,i={ref:St(t)},o=pt();return K.createElement(Gh.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:UC,name:"Popover.Group"}))}let sl=Je(null);function GC(){let e=Ie(sl),t=se([]),n=ue(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ue(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=de(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,de(()=>function({children:o}){return K.createElement(sl.Provider,{value:i},o)},[i])]}let zC=at(BC),zh=at(WC),qh=Object.assign(zC,{Group:zh});function qC(e,t=typeof document<"u"?document.defaultView:null,n){let r=_i(e,"escape");_h(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===lt.Escape&&n(i))})}function YC(){var e;let[t]=ye(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ye((e=t==null?void 0:t.matches)!=null?e:!1);return qe(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function ZC({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=xi(n),i=ue(()=>{var o,s;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"current"in l&&l.current instanceof HTMLElement&&a.push(l.current));if(t!=null&&t.current)for(let l of t.current)a.push(l);for(let l of(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((s=n==null?void 0:n.getRootNode())==null?void 0:s.host))||a.some(u=>l.contains(u))||a.push(l));return a});return{resolveContainers:i,contains:ue(o=>i().some(s=>s.contains(o)))}}let Yh=Je(null);function md({children:e,node:t}){let[n,r]=ye(null),i=Zh(t??n);return K.createElement(Yh.Provider,{value:i},e,i===null&&K.createElement(Ki,{features:ui.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=bi(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){r(l);break}}}}))}function Zh(e=null){var t;return(t=Ie(Yh))!=null?t:e}function ou(){let e=se(!1);return qe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Vi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Vi||{});function KC(){let e=se(0);return vh(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Kh(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let XC="div";var dr=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(dr||{});function JC(e,t){let n=se(null),r=St(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;xo()||(a=0);let u=xi(n);n3(a,{ownerDocument:u});let f=r3(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});i3(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:f});let c=KC(),p=ue(C=>{let E=n.current;E&&(M=>M())(()=>{Dt(c.current,{[Vi.Forwards]:()=>{Jr(E,ln.First,{skipElements:[C.relatedTarget,o]})},[Vi.Backwards]:()=>{Jr(E,ln.Last,{skipElements:[C.relatedTarget,o]})}})})}),h=_i(!!(a&2),"focus-trap#tab-lock"),m=tr(),w=se(!1),b={ref:r,onKeyDown(C){C.key=="Tab"&&(w.current=!0,m.requestAnimationFrame(()=>{w.current=!1}))},onBlur(C){if(!(a&4))return;let E=Kh(s);n.current instanceof HTMLElement&&E.add(n.current);let M=C.relatedTarget;M instanceof HTMLElement&&M.dataset.headlessuiFocusGuard!=="true"&&(Xh(E,M)||(w.current?Jr(n.current,Dt(c.current,{[Vi.Forwards]:()=>ln.Next,[Vi.Backwards]:()=>ln.Previous})|ln.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&Mn(C.target)))}},x=pt();return K.createElement(K.Fragment,null,h&&K.createElement(Ki,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ui.Focusable}),x({ourProps:b,theirProps:l,defaultTag:XC,name:"FocusTrap"}),h&&K.createElement(Ki,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ui.Focusable}))}let QC=at(JC),e3=Object.assign(QC,{features:dr});function t3(e=!0){let t=se(Hn.slice());return Ql(([n],[r])=>{r===!0&&n===!1&&Fs(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Hn.slice())},[e,Hn,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function n3(e,{ownerDocument:t}){let n=!!(e&8),r=t3(n);Ql(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Mn(r())},[n]),Bh(()=>{n&&Mn(r())})}function r3(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=se(null),s=_i(!!(e&1),"focus-trap#initial-focus"),a=ou();return Ql(()=>{if(e===0)return;if(!s){i!=null&&i.current&&Mn(i.current);return}let l=n.current;l&&Fs(()=>{if(!a.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){o.current=u;return}}else if(l.contains(u)){o.current=u;return}if(r!=null&&r.current)Mn(r.current);else{if(e&16){if(Jr(l,ln.First|ln.AutoFocus)!==nl.Error)return}else if(Jr(l,ln.First)!==nl.Error)return;if(i!=null&&i.current&&(Mn(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,s,e]),o}function i3(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=ou(),s=!!(e&4);_h(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=Kh(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let f=a.target;f&&f instanceof HTMLElement?Xh(l,f)?(i.current=f,Mn(f)):(a.preventDefault(),a.stopPropagation(),Mn(u)):Mn(i.current)},!0)}function Xh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Jh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:e0)!==Ue||K.Children.count(e.children)===1}let Ws=Je(null);Ws.displayName="TransitionContext";var o3=(e=>(e.Visible="visible",e.Hidden="hidden",e))(o3||{});function s3(){let e=Ie(Ws);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function a3(){let e=Ie(Gs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Gs=Je(null);Gs.displayName="NestingContext";function zs(e){return"children"in e?zs(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Qh(e,t){let n=nr(e),r=se([]),i=ou(),o=tr(),s=ue((h,m=Wn.Hidden)=>{let w=r.current.findIndex(({el:b})=>b===h);w!==-1&&(Dt(m,{[Wn.Unmount](){r.current.splice(w,1)},[Wn.Hidden](){r.current[w].state="hidden"}}),o.microTask(()=>{var b;!zs(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=ue(h=>{let m=r.current.find(({el:w})=>w===h);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,Wn.Unmount)}),l=se([]),u=se(Promise.resolve()),f=se({enter:[],leave:[]}),c=ue((h,m,w)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([b])=>b!==h)),t==null||t.chains.current[m].push([h,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[m].push([h,new Promise(b=>{Promise.all(f.current[m].map(([x,C])=>C)).then(()=>b())})]),m==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>w(m)):w(m)}),p=ue((h,m,w)=>{Promise.all(f.current[m].splice(0).map(([b,x])=>x)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>w(m))});return de(()=>({children:r,register:a,unregister:s,onStart:c,onStop:p,wait:u,chains:f}),[a,s,r,c,p,f,u])}let e0=Ue,t0=li.RenderStrategy;function l3(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:f,enterTo:c,entered:p,leave:h,leaveFrom:m,leaveTo:w,...b}=e,[x,C]=ye(null),E=se(null),M=Jh(e),I=St(...M?[E,t,C]:t===null?[]:[t]),F=(n=b.unmount)==null||n?Wn.Unmount:Wn.Hidden,{show:L,appear:S,initial:_}=s3(),[k,N]=ye(L?"visible":"hidden"),D=a3(),{register:O,unregister:z}=D;qe(()=>O(E),[O,E]),qe(()=>{if(F===Wn.Hidden&&E.current){if(L&&k!=="visible"){N("visible");return}return Dt(k,{hidden:()=>z(E),visible:()=>O(E)})}},[k,E,O,z,L,F]);let he=xo();qe(()=>{if(M&&he&&k==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,k,he,M]);let q=_&&!S,W=S&&L&&_,P=se(!1),U=Qh(()=>{P.current||(N("hidden"),z(E))},D),j=ue(De=>{P.current=!0;let ie=De?"enter":"leave";U.onStart(E,ie,we=>{we==="enter"?o==null||o():we==="leave"&&(a==null||a())})}),fe=ue(De=>{let ie=De?"enter":"leave";P.current=!1,U.onStop(E,ie,we=>{we==="enter"?s==null||s():we==="leave"&&(l==null||l())}),ie==="leave"&&!zs(U)&&(N("hidden"),z(E))});Me(()=>{M&&i||(j(L),fe(L))},[L,M,i]);let J=!(!i||!M||!he||q),[,R]=Sh(J,x,L,{start:j,end:fe}),ee=Vn({ref:I,className:((r=el(b.className,W&&u,W&&f,R.enter&&u,R.enter&&R.closed&&f,R.enter&&!R.closed&&c,R.leave&&h,R.leave&&!R.closed&&m,R.leave&&R.closed&&w,!R.transition&&L&&p))==null?void 0:r.trim())||void 0,...Ch(R)}),le=0;k==="visible"&&(le|=Tt.Open),k==="hidden"&&(le|=Tt.Closed),R.enter&&(le|=Tt.Opening),R.leave&&(le|=Tt.Closing);let Ne=pt();return K.createElement(Gs.Provider,{value:U},K.createElement(jh,{value:le},Ne({ourProps:ee,theirProps:b,defaultTag:e0,features:t0,visible:k==="visible",name:"Transition.Child"})))}function u3(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=se(null),a=Jh(e),l=St(...a?[s,t]:t===null?[]:[t]);xo();let u=_o();if(n===void 0&&u!==null&&(n=(u&Tt.Open)===Tt.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,c]=ye(n?"visible":"hidden"),p=Qh(()=>{n||c("hidden")}),[h,m]=ye(!0),w=se([n]);qe(()=>{h!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),m(!1))},[w,n]);let b=de(()=>({show:n,appear:r,initial:h}),[n,r,h]);qe(()=>{n?c("visible"):!zs(p)&&s.current!==null&&c("hidden")},[n,p]);let x={unmount:i},C=ue(()=>{var I;h&&m(!1),(I=e.beforeEnter)==null||I.call(e)}),E=ue(()=>{var I;h&&m(!1),(I=e.beforeLeave)==null||I.call(e)}),M=pt();return K.createElement(Gs.Provider,{value:p},K.createElement(Ws.Provider,{value:b},M({ourProps:{...x,as:Ue,children:K.createElement(n0,{ref:l,...x,...o,beforeEnter:C,beforeLeave:E})},theirProps:{},defaultTag:Ue,features:t0,visible:f==="visible",name:"Transition"})))}function c3(e,t){let n=Ie(Ws)!==null,r=_o()!==null;return K.createElement(K.Fragment,null,!n&&r?K.createElement(al,{ref:t,...e}):K.createElement(n0,{ref:t,...e}))}let al=at(u3),n0=at(l3),su=at(c3),d3=Object.assign(al,{Child:su,Root:al});var f3=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(f3||{}),m3=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(m3||{});let h3={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},au=Je(null);au.displayName="DialogContext";function qs(e){let t=Ie(au);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,qs),n}return t}function p3(e,t){return Dt(t.type,h3,e,t)}let hd=at(function(e,t){let n=Jt(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:f=!1,...c}=e,p=se(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(p.current||(p.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=_o();i===void 0&&h!==null&&(i=(h&Tt.Open)===Tt.Open);let m=se(null),w=St(m,t),b=xi(m),x=i?0:1,[C,E]=kr(p3,{titleId:null,descriptionId:null,panelRef:vs()}),M=ue(()=>o(!1)),I=ue(fe=>E({type:0,id:fe})),F=xo()?x===0:!1,[L,S]=GC(),_={get current(){var fe;return(fe=C.panelRef.current)!=null?fe:m.current}},k=Zh(),{resolveContainers:N}=ZC({mainTreeNode:k,portals:L,defaultContainers:[_]}),D=h!==null?(h&Tt.Closing)===Tt.Closing:!1;mh(u||D?!1:F,{allowed:ue(()=>{var fe,J;return[(J=(fe=m.current)==null?void 0:fe.closest("[data-headlessui-portal]"))!=null?J:null]}),disallowed:ue(()=>{var fe;return[(fe=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?fe:null]})}),bh(F,N,fe=>{fe.preventDefault(),M()}),qC(F,b==null?void 0:b.defaultView,fe=>{fe.preventDefault(),fe.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),M()}),xh(u||D?!1:F,b,N),hh(F,m,M);let[O,z]=R2(),he=de(()=>[{dialogState:x,close:M,setTitleId:I,unmount:f},C],[x,C,M,I,f]),q=de(()=>({open:x===0}),[x]),W={ref:w,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:x===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":O,unmount:f},P=!YC(),U=dr.None;F&&!u&&(U|=dr.RestoreFocus,U|=dr.TabLock,l&&(U|=dr.AutoFocus),P&&(U|=dr.InitialFocus));let j=pt();return K.createElement(RC,null,K.createElement(fd,{force:!0},K.createElement(qh,null,K.createElement(au.Provider,{value:he},K.createElement(zh,{target:m},K.createElement(fd,{force:!1},K.createElement(z,{slot:q},K.createElement(S,null,K.createElement(e3,{initialFocus:s,initialFocusFallback:m,containers:N,features:U},K.createElement(z2,{value:M},j({ourProps:W,theirProps:c,slot:q,defaultTag:g3,features:y3,visible:x===0,name:"Dialog"})))))))))))}),g3="div",y3=li.RenderStrategy|li.Static;function w3(e,t){let{transition:n=!1,open:r,...i}=e,o=_o(),s=e.hasOwnProperty("open")||o!==null,a=e.hasOwnProperty("onClose");if(!s&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?K.createElement(md,null,K.createElement(d3,{show:r,transition:n,unmount:i.unmount},K.createElement(hd,{ref:t,...i}))):K.createElement(md,null,K.createElement(hd,{ref:t,open:r,...i}))}let v3="div";function b3(e,t){let n=Jt(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=qs("Dialog.Panel"),u=St(t,l.panelRef),f=de(()=>({open:s===0}),[s]),c=ue(b=>{b.stopPropagation()}),p={ref:u,id:r,onClick:c},h=i?su:Ue,m=i?{unmount:a}:{},w=pt();return K.createElement(h,{...m},w({ourProps:p,theirProps:o,slot:f,defaultTag:v3,name:"Dialog.Panel"}))}let _3="div";function x3(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=qs("Dialog.Backdrop"),s=de(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?su:Ue,u=n?{unmount:o}:{},f=pt();return K.createElement(l,{...u},f({ourProps:a,theirProps:r,slot:s,defaultTag:_3,name:"Dialog.Backdrop"}))}let C3="h2";function S3(e,t){let n=Jt(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=qs("Dialog.Title"),a=St(t);Me(()=>(s(r),()=>s(null)),[r,s]);let l=de(()=>({open:o===0}),[o]),u={ref:a,id:r};return pt()({ourProps:u,theirProps:i,slot:l,defaultTag:C3,name:"Dialog.Title"})}let E3=at(w3),A3=at(b3),k3=at(x3),N3=at(S3),r0=Object.assign(E3,{Panel:A3,Title:N3,Description:V2});function T3(e,t){let n=se({left:0,top:0});if(qe(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let pd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function gd(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return pd.test(s)&&(s=s.replace(pd,"")),s}function $3(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():gd(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return gd(e).trim()}function M3(e){let t=se(""),n=se("");return ue(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=$3(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var I3=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(I3||{}),D3=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(D3||{}),O3=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(O3||{}),R3=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(R3||{});function Na(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=yh(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let F3={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,i,o,s;if(e.dataRef.current.disabled||e.listboxState===1)return e;let a={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===ut.Nothing)return{...a,activeOptionIndex:null};if(t.focus===ut.Specific)return{...a,activeOptionIndex:e.options.findIndex(f=>f.id===t.id)};if(t.focus===ut.Previous){let f=e.activeOptionIndex;if(f!==null){let c=e.options[f].dataRef.current.domRef,p=ka(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((r=c.current)==null?void 0:r.previousElementSibling)===h.current||((i=h.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:p}}}}else if(t.focus===ut.Next){let f=e.activeOptionIndex;if(f!==null){let c=e.options[f].dataRef.current.domRef,p=ka(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((o=c.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=Na(e),u=ka(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled});return{...a,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(r))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Na(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Na(e,r=>{let i=r.findIndex(o=>o.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},lu=Je(null);lu.displayName="ListboxActionsContext";function Ys(e){let t=Ie(lu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ys),n}return t}let Zs=Je(null);Zs.displayName="ListboxDataContext";function Co(e){let t=Ie(Zs);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Co),n}return t}function P3(e,t){return Dt(t.type,F3,e,t)}let L3=Ue;function V3(e,t){var n;let r=Xl(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:f=!1,disabled:c=r||!1,horizontal:p=!1,multiple:h=!1,__demoMode:m=!1,...w}=e;const b=p?"horizontal":"vertical";let x=St(t),C=x2(o),[E=h?[]:void 0,M]=_2(i,l,C),[I,F]=kr(P3,{dataRef:vs(),listboxState:m?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:m}),L=se({static:!1,hold:!1}),S=se(new Map),_=Y2(u),k=Se(B=>Dt(N.mode,{1:()=>E.some(Q=>_(Q,B)),0:()=>_(E,B)}),[E]),N=de(()=>({...I,value:E,disabled:c,invalid:f,mode:h?1:0,orientation:b,compare:_,isSelected:k,optionsPropsRef:L,listRef:S}),[E,c,f,h,I,S]);qe(()=>{I.dataRef.current=N},[N]);let D=N.listboxState===0;bh(D,[N.buttonElement,N.optionsElement],(B,Q)=>{var G;F({type:1}),gh(Q,Jl.Loose)||(B.preventDefault(),(G=N.buttonElement)==null||G.focus())});let O=de(()=>({open:N.listboxState===0,disabled:c,invalid:f,value:E}),[N,c,E,f]),z=ue(B=>{let Q=N.options.find(G=>G.id===B);Q&&fe(Q.dataRef.current.value)}),he=ue(()=>{if(N.activeOptionIndex!==null){let{dataRef:B,id:Q}=N.options[N.activeOptionIndex];fe(B.current.value),F({type:2,focus:ut.Specific,id:Q})}}),q=ue(()=>F({type:0})),W=ue(()=>F({type:1})),P=tr(),U=ue((B,Q,G)=>{P.dispose(),P.microTask(()=>B===ut.Specific?F({type:2,focus:ut.Specific,id:Q,trigger:G}):F({type:2,focus:B,trigger:G}))}),j=ue((B,Q)=>(F({type:5,id:B,dataRef:Q}),()=>F({type:6,id:B}))),fe=ue(B=>Dt(N.mode,{0(){return M==null?void 0:M(B)},1(){let Q=N.value.slice(),G=Q.findIndex(te=>_(te,B));return G===-1?Q.push(B):Q.splice(G,1),M==null?void 0:M(Q)}})),J=ue(B=>F({type:3,value:B})),R=ue(()=>F({type:4})),ee=ue(B=>{F({type:7,element:B})}),le=ue(B=>{F({type:8,element:B})}),Ne=de(()=>({onChange:fe,registerOption:j,goToOption:U,closeListbox:W,openListbox:q,selectActiveOption:he,selectOption:z,search:J,clearSearch:R,setButtonElement:ee,setOptionsElement:le}),[]),[De,ie]=H2({inherit:!0}),we={ref:x},Y=Se(()=>{if(C!==void 0)return M==null?void 0:M(C)},[M,C]),ae=pt();return K.createElement(ie,{value:De,props:{htmlFor:(n=N.buttonElement)==null?void 0:n.id},slot:{open:N.listboxState===0,disabled:c}},K.createElement(MC,null,K.createElement(lu.Provider,{value:Ne},K.createElement(Zs.Provider,{value:N},K.createElement(jh,{value:Dt(N.listboxState,{0:Tt.Open,1:Tt.Closed})},a!=null&&E!=null&&K.createElement(N2,{disabled:c,data:{[a]:E},form:s,onReset:Y}),ae({ourProps:we,theirProps:w,slot:O,defaultTag:L3,name:"Listbox"}))))))}let H3="button";function j3(e,t){var n;let r=Co("Listbox.Button"),i=Ys("Listbox.Button"),o=Jt(),s=sh(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...f}=e,c=St(t,kC(),i.setButtonElement),p=NC(),h=ue(N=>{switch(N.key){case lt.Enter:C2(N.currentTarget);break;case lt.Space:case lt.ArrowDown:N.preventDefault(),Wt(()=>i.openListbox()),r.value||i.goToOption(ut.First);break;case lt.ArrowUp:N.preventDefault(),Wt(()=>i.openListbox()),r.value||i.goToOption(ut.Last);break}}),m=ue(N=>{switch(N.key){case lt.Space:N.preventDefault();break}}),w=ue(N=>{var D;if(M2(N.currentTarget))return N.preventDefault();r.listboxState===0?(Wt(()=>i.closeListbox()),(D=r.buttonElement)==null||D.focus({preventScroll:!0})):(N.preventDefault(),i.openListbox())}),b=ue(N=>N.preventDefault()),x=ch([a]),C=O2(),{isFocusVisible:E,focusProps:M}=u2({autoFocus:u}),{isHovered:I,hoverProps:F}=l2({isDisabled:l}),{pressed:L,pressProps:S}=p2({disabled:l}),_=de(()=>({open:r.listboxState===0,active:L||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:I,focus:E,autofocus:u}),[r.listboxState,r.value,l,I,E,L,r.invalid,u]),k=nh(p(),{ref:c,id:a,type:lx(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":x,"aria-describedby":C,disabled:l||void 0,autoFocus:u,onKeyDown:h,onKeyUp:m,onKeyPress:b,onClick:w},M,F,S);return pt()({ourProps:k,theirProps:f,slot:_,defaultTag:H3,name:"Listbox.Button"})}let i0=Je(!1),B3="div",U3=li.RenderStrategy|li.Static;function W3(e,t){var n,r;let i=Jt(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...f}=e,c=AC(s),[p,h]=ye(null);c&&(a=!0);let m=Co("Listbox.Options"),w=Ys("Listbox.Options"),b=xi(m.optionsElement),x=_o(),[C,E]=Sh(u,p,x!==null?(x&Tt.Open)===Tt.Open:m.listboxState===0);hh(C,m.buttonElement,w.closeListbox);let M=m.__demoMode?!1:l&&m.listboxState===0;xh(M,b);let I=m.__demoMode?!1:l&&m.listboxState===0;mh(I,{allowed:Se(()=>[m.buttonElement,m.optionsElement],[m.buttonElement,m.optionsElement])});let F=m.listboxState!==0,L=T3(F,m.buttonElement)?!1:C,S=C&&m.listboxState===1,_=OC(S,m.value),k=ue(R=>m.compare(_,R)),N=de(()=>{var R;if(c==null||!((R=c==null?void 0:c.to)!=null&&R.includes("selection")))return null;let ee=m.options.findIndex(le=>k(le.dataRef.current.value));return ee===-1&&(ee=0),ee},[c,m.options]),D=(()=>{if(c==null)return;if(N===null)return{...c,inner:void 0};let R=Array.from(m.listRef.current.values());return{...c,inner:{listRef:{current:R},index:N}}})(),[O,z]=$C(D),he=TC(),q=St(t,c?O:null,w.setOptionsElement,h),W=tr();Me(()=>{var R;let ee=m.optionsElement;ee&&m.listboxState===0&&ee!==((R=bi(ee))==null?void 0:R.activeElement)&&(ee==null||ee.focus({preventScroll:!0}))},[m.listboxState,m.optionsElement]);let P=ue(R=>{var ee,le;switch(W.dispose(),R.key){case lt.Space:if(m.searchQuery!=="")return R.preventDefault(),R.stopPropagation(),w.search(R.key);case lt.Enter:if(R.preventDefault(),R.stopPropagation(),m.activeOptionIndex!==null){let{dataRef:Ne}=m.options[m.activeOptionIndex];w.onChange(Ne.current.value)}m.mode===0&&(Wt(()=>w.closeListbox()),(ee=m.buttonElement)==null||ee.focus({preventScroll:!0}));break;case Dt(m.orientation,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return R.preventDefault(),R.stopPropagation(),w.goToOption(ut.Next);case Dt(m.orientation,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return R.preventDefault(),R.stopPropagation(),w.goToOption(ut.Previous);case lt.Home:case lt.PageUp:return R.preventDefault(),R.stopPropagation(),w.goToOption(ut.First);case lt.End:case lt.PageDown:return R.preventDefault(),R.stopPropagation(),w.goToOption(ut.Last);case lt.Escape:R.preventDefault(),R.stopPropagation(),Wt(()=>w.closeListbox()),(le=m.buttonElement)==null||le.focus({preventScroll:!0});return;case lt.Tab:R.preventDefault(),R.stopPropagation(),Wt(()=>w.closeListbox()),ox(m.buttonElement,R.shiftKey?ln.Previous:ln.Next);break;default:R.key.length===1&&(w.search(R.key),W.setTimeout(()=>w.clearSearch(),350));break}}),U=(n=m.buttonElement)==null?void 0:n.id,j=de(()=>({open:m.listboxState===0}),[m.listboxState]),fe=nh(c?he():{},{id:o,ref:q,"aria-activedescendant":m.activeOptionIndex===null||(r=m.options[m.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":m.mode===1?!0:void 0,"aria-labelledby":U,"aria-orientation":m.orientation,onKeyDown:P,role:"listbox",tabIndex:m.listboxState===0?0:void 0,style:{...f.style,...z,"--button-width":K2(m.buttonElement,!0).width},...Ch(E)}),J=pt();return K.createElement(qh,{enabled:a?e.static||C:!1},K.createElement(Zs.Provider,{value:m.mode===1?m:{...m,isSelected:k}},J({ourProps:fe,theirProps:f,slot:j,defaultTag:B3,features:U3,visible:L,name:"Listbox.Options"})))}let G3="div";function z3(e,t){let n=Jt(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Ie(i0)===!0,l=Co("Listbox.Option"),u=Ys("Listbox.Option"),f=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,c=l.isSelected(o),p=se(null),h=M3(p),m=nr({disabled:i,value:o,domRef:p,get textValue(){return h()}}),w=St(t,p,_=>{_?l.listRef.current.set(r,_):l.listRef.current.delete(r)});qe(()=>{if(!l.__demoMode&&l.listboxState===0&&f&&l.activationTrigger!==0)return Pn().requestAnimationFrame(()=>{var _,k;(k=(_=p.current)==null?void 0:_.scrollIntoView)==null||k.call(_,{block:"nearest"})})},[p,f,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),qe(()=>{if(!a)return u.registerOption(r,m)},[m,r,a]);let b=ue(_=>{var k;if(i)return _.preventDefault();u.onChange(o),l.mode===0&&(Wt(()=>u.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),x=ue(()=>{if(i)return u.goToOption(ut.Nothing);u.goToOption(ut.Specific,r)}),C=hx(),E=ue(_=>{C.update(_),!i&&(f||u.goToOption(ut.Specific,r,0))}),M=ue(_=>{C.wasMoved(_)&&(i||f||u.goToOption(ut.Specific,r,0))}),I=ue(_=>{C.wasMoved(_)&&(i||f&&u.goToOption(ut.Nothing))}),F=de(()=>({active:f,focus:f,selected:c,disabled:i,selectedOption:c&&a}),[f,c,i,a]),L=a?{}:{id:r,ref:w,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":c,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:E,onMouseEnter:E,onPointerMove:M,onMouseMove:M,onPointerLeave:I,onMouseLeave:I},S=pt();return!c&&a?null:S({ourProps:L,theirProps:s,slot:F,defaultTag:G3,name:"Listbox.Option"})}let q3=Ue;function Y3(e,t){let{options:n,placeholder:r,...i}=e,o={ref:St(t)},s=Co("ListboxSelectedOption"),a=de(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=pt();return K.createElement(i0.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:K.createElement(K.Fragment,null,r&&l?r:n)},slot:a,defaultTag:q3,name:"ListboxSelectedOption"}))}let Z3=at(V3),o0=at(j3),K3=W2,s0=at(W3),a0=at(z3),X3=at(Y3),J3=Object.assign(Z3,{Button:o0,Label:K3,Options:s0,Option:a0,SelectedOption:X3}),Kt=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Ks(e){return d(r0,$r(e,1))}class Xs extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Js(e){return d(r0.Panel,$r(e,1))}class Qs extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function ea(e){return d(k3,$r(e,1))}function ta(e,t){let n;return d("svg",g(y([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",v.Children.toArray(Array.from(n))])])))}function Q3(e,t){let n,r,i,o,s;return Ks(y([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ea(me(new Qs(2,["fixed inset-0 bg-gray-500/50"]))),d("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Js(me(new Xs(2,[[d("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(r=[d("div",g(y([["className","flex flex-row justify-between"],(i=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),d("button",g(y([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[ta(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),d("div",g(y([["className","text-sm text-gray-600 pt-6"],(s="Mapping involves pairing each incoming CSV field with its correct destination field. This step is important because it makes sure that your data is organised correctly, minimising the risk of errors and ensuring a smooth import process.",["children",s])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function na(e){return d("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function ra(e){return d("span",{className:"text-sm font-normal pt-2",children:e})}function Qi(e,t){return d("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:n=>{t()},type:"button",children:v.Children.toArray([e])})}function e5(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM9 9C8.44772 9 8 9.44772 8 10C8 10.5523 8.44772 11 9 11V14C9 14.5523 9.44772 15 10 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13V10C11 9.44772 10.5523 9 10 9H9Z",["d",r]),["fill","#60A5FA"]])))),["children",v.Children.toArray(Array.from(n))])])))}function l0(){let e,t,n;return d("div",g(y([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[e5(20,20),d("div",g(y([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[d("div",g(y([["className","grow shrink basis-0 text-blue-800 text-sm font-medium leading-tight"],(n="We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.",["children",n])])))],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function u0(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([(r="M15.8008 12.5263L9.48383 0.880306C9.32803 0.591371 9.09045 0.354828 8.80083 0.200306C8.40735 -0.0102628 7.94665 -0.0569536 7.51893 0.0703896C7.0912 0.197733 6.73106 0.488809 6.51683 0.880306L0.20083 12.5263C0.0627228 12.7826 -0.00633038 13.0704 0.00045607 13.3614C0.00724252 13.6525 0.0896351 13.9368 0.239538 14.1863C0.38944 14.4359 0.601694 14.6422 0.855444 14.7849C1.10919 14.9276 1.39571 15.0018 1.68683 15.0003H14.3148C14.5939 15.0003 14.8686 14.9316 15.1148 14.8003C15.3099 14.6968 15.4825 14.5556 15.6228 14.3851C15.763 14.2145 15.8681 14.0178 15.932 13.8064C15.9958 13.595 16.0172 13.373 15.9949 13.1533C15.9726 12.9336 15.9069 12.7205 15.8018 12.5263H15.8008ZM8.00083 13.0003C7.80305 13.0003 7.60971 12.9417 7.44526 12.8318C7.28081 12.7219 7.15264 12.5657 7.07695 12.383C7.00126 12.2003 6.98146 11.9992 7.02004 11.8052C7.05863 11.6112 7.15387 11.4331 7.29372 11.2932C7.43358 11.1533 7.61176 11.0581 7.80574 11.0195C7.99972 10.9809 8.20079 11.0007 8.38351 11.0764C8.56624 11.1521 8.72242 11.2803 8.8323 11.4447C8.94218 11.6092 9.00083 11.8025 9.00083 12.0003C9.00083 12.2655 8.89547 12.5199 8.70794 12.7074C8.5204 12.8949 8.26605 13.0003 8.00083 13.0003ZM9.00083 9.50031C9.00083 9.63291 8.94815 9.76009 8.85438 9.85386C8.76062 9.94763 8.63344 10.0003 8.50083 10.0003H7.50083C7.36822 10.0003 7.24104 9.94763 7.14728 9.85386C7.05351 9.76009 7.00083 9.63291 7.00083 9.50031V5.50031C7.00083 5.3677 7.05351 5.24052 7.14728 5.14675C7.24104 5.05298 7.36822 5.00031 7.50083 5.00031H8.50083C8.63344 5.00031 8.76062 5.05298 8.85438 5.14675C8.94815 5.24052 9.00083 5.3677 9.00083 5.50031V9.50031Z",["d",r]),["fill","#F87171"]])))),["children",v.Children.toArray(Array.from(n))])])))}function c0(e){let t,n;return d("div",g(y([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[u0(16,15),d("div",g(y([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[d("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function ia(e,t){let n;return d("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=y([d("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",v.Children.toArray(Array.from(n))])])))}class ei extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function d0(e){return d(J3,$r(e,1))}class ys extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function f0(e){return d(o0,$r(e,1))}class m0 extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function h0(e,t){return d(s0,$r(e,1),...t)}class pn extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function p0(e){return d(a0,$r(e,1))}function g0(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",["d",r]),["fill","#6B7280"]])))),["children",v.Children.toArray(Array.from(n))])])))}class Ri extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function Fi(e,t,n,r,i,o,s,a,l){let u,f,c,p,h,m,w;const b=i.fields[0],x=lf(At(C=>C[1].fields[0],Zp(C=>Sf(C.fields[0],b),r)));return d("div",g(y([["key",tt(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[d("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(f=[d("div",g(ne(T(()=>H(A(["className",`${r==null?"bg-gray-50 border-gray-200 text-gray-500":"bg-emerald-50 border-emerald-200 text-emerald-700"} px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden`]),T(()=>{let C;return A((C=ne(T(()=>H(A(d("div",{className:"text-sm font-medium leading-tight",children:Wm(e)})),T(()=>A(t?d("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):xe()))))),["children",v.Children.toArray(Array.from(C))]))}))))))],["children",v.Children.toArray(Array.from(f))])]))),d("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(c=[ia(16,12)],["children",v.Children.toArray(Array.from(c))])]))),d("div",g(y([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[d0(y([new ei(0,[x]),new ei(1,[C=>{Tr(E=>{s(E[0])},Ss(Es(E=>E[1].fields[0]===C?re(E[2],new En(0,[])):!1,b)))}]),new ei(2,[[d("div",g(y([["className","relative w-full"],(h=[f0(ne(T(()=>H(A(new ys(0,[`${t&&n&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2`])),T(()=>{let C;return A(new ys(1,[[d("span",g(ne(T(()=>{const E=r!=null?[x,""]:n?["Select a field","text-red-900"]:["Select a field","text-gray-500"];return H(A(["className",`${E[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>A(["children",E[0]])))})))),d("span",g(y([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(C=[g0(20,20)],["children",v.Children.toArray(Array.from(C))])])))]]))}))))),h0(ne(T(()=>A(new m0(`z-10 absolute ${o.tag===1?"-mt-[226px]":"mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),ne(T(()=>Ts(C=>{const E=C[2],M=C[1].fields[0];return A(p0(y([new pn(0,[cn(C[0].fields[0])]),new pn(1,[M]),new pn(2,[re(E,new En(1,[]))]),new pn(3,["relative select-none"]),new pn(4,[I=>[d("span",{className:"px-4 py-2 block truncate "+(E.tag===1?"text-gray-700 opacity-50 cursor-not-allowed":I.active?"bg-primary-600 text-white":(I.selected,"text-gray-700")),children:M})]])])))},b))))],["children",v.Children.toArray(Array.from(h))])])))]])]))],["children",v.Children.toArray(Array.from(p))])]))),d("div",g(y([(m="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",m]),(w=[d("button",g(ne(T(()=>H(A(["children","Clear"]),T(()=>H(a==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer"]),T(()=>{const C=a;if(C==null)return mt();{const E=C;return A(["onClick",M=>{E()}])}})))))))),d("button",g(ne(T(()=>H(A(["children","Preview"]),T(()=>H(l==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer"]),T(()=>{const C=l;if(C==null)return mt();{const E=C;return A(["onClick",M=>{E()}])}}))))))))],["children",v.Children.toArray(Array.from(w))])])))],["children",v.Children.toArray(Array.from(u))])])))}function y0(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.3001 1.40002C6.03495 1.40002 5.79257 1.54983 5.674 1.78697L5.16747 2.80002H2.8001C2.4135 2.80002 2.1001 3.11342 2.1001 3.50002C2.1001 3.88662 2.4135 4.20002 2.8001 4.20002L2.8001 11.2C2.8001 11.9732 3.4269 12.6 4.2001 12.6H9.80009C10.5733 12.6 11.2001 11.9732 11.2001 11.2V4.20002C11.5867 4.20002 11.9001 3.88662 11.9001 3.50002C11.9001 3.11342 11.5867 2.80002 11.2001 2.80002H8.83272L8.32619 1.78697C8.20762 1.54983 7.96523 1.40002 7.70009 1.40002H6.3001ZM4.9001 5.60002C4.9001 5.21342 5.2135 4.90002 5.60009 4.90002C5.98669 4.90002 6.30009 5.21342 6.30009 5.60002V9.80002C6.30009 10.1866 5.98669 10.5 5.60009 10.5C5.2135 10.5 4.9001 10.1866 4.9001 9.80002V5.60002ZM8.40009 4.90002C8.01349 4.90002 7.70009 5.21342 7.70009 5.60002V9.80002C7.70009 10.1866 8.01349 10.5 8.40009 10.5C8.78669 10.5 9.10009 10.1866 9.10009 9.80002V5.60002C9.10009 5.21342 8.78669 4.90002 8.40009 4.90002Z",["d",r]),["fill","#9CA3AF"]])))),["children",v.Children.toArray(Array.from(n))])])))}function uu(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([(r="M9.99992 0.833328C4.94575 0.833328 0.833252 4.94583 0.833252 10C0.833252 15.0542 4.94575 19.1667 9.99992 19.1667C15.0541 19.1667 19.1666 15.0542 19.1666 10C19.1666 4.94583 15.0541 0.833328 9.99992 0.833328ZM8.37409 14.5525L4.65492 10.8333L5.83325 9.655L8.29242 12.1142L14.0883 5.49083L15.3424 6.58833L8.37409 14.5525Z",["d",r]),["fill","#10B981"]])))),["children",v.Children.toArray(Array.from(n))])])))}function w0(e){let t,n,r;return d("div",g(y([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[d("span",g(y([["className","text-emerald-700"],(n=[uu(20,20)],["children",v.Children.toArray(Array.from(n))])]))),d("div",g(y([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[d("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}function cu(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([(r="M8.83429 0.234315C9.14671 -0.0781049 9.65324 -0.0781049 9.96566 0.234315L13.1657 3.43431C13.4781 3.74673 13.4781 4.25327 13.1657 4.56569L9.96566 7.76569C9.65324 8.0781 9.14671 8.0781 8.83429 7.76569C8.52187 7.45327 8.52187 6.94673 8.83429 6.63432L10.6686 4.8H1.39998C0.958148 4.8 0.599976 4.44183 0.599976 4C0.599976 3.55817 0.958148 3.2 1.39998 3.2H10.6686L8.83429 1.36569C8.52187 1.05327 8.52187 0.546734 8.83429 0.234315Z",["d",r]),["fill","white"]])))),["children",v.Children.toArray(Array.from(n))])])))}function t5(e,t){let n,r,i,o,s,a,l;return d("div",g(y([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[d("div",g(y([(r="grow shrink basis-0 p-4 bg-white rounded-lg shadow-lg border border-gray-100 flex-col justify-start items-start gap-3 inline-flex overflow-hidden",["className",r]),(i=[d("div",g(y([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[d("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${Wm(e)}”`})],["children",v.Children.toArray(Array.from(o))])]))),d("div",g(y([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[d("div",g(y([["className","self-stretch flex-col justify-center items-start flex"],(a=Cf((u,f)=>d("div",g(ne(T(()=>H(A(["className",`${u%2===0?"bg-white":"bg-gray-50"} self-stretch h-10 px-3 py-3.5 border-b border-gray-200 justify-start items-center gap-1 inline-flex overflow-hidden`]),T(()=>{let c;return A((c=ne(T(()=>{const p=io(f);return A(p?d("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):d("div",{className:"grow shrink text-gray-700 text-sm font-medium leading-tight",children:f}))})),["children",v.Children.toArray(Array.from(c))]))})))))),t),["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(s))])]))),d("div",g(y([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[d("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",v.Children.toArray(Array.from(l))])])))],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(n))])])))}function n5(e){let t,n,r;const i=e.back,o=e.next,s=e.dataRows,a=e.headerRow,l=e.existingMappings;let u;const f=W_(a,l);u=Ir(()=>Mr(()=>f,(E,M)=>G_(a,s,E,M),(E,M)=>{}),void 0,void 0);const c=u[0],p=u[1],h=v.useState(!1),m=h[1],w=v.useState(!1),b=w[0],x=E=>{if(B_(c)(E))return()=>{p(new or(1,[E]))}},C=E=>{if(U_(c,E))return()=>{p(new or(2,[E]))}};return d("div",g(y([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[Q3(h[0],()=>{m(!1)}),na("Map fields"),ra("Match the fields from your CSV to the corresponding destination fields."),d("div",g(y([["className","flex flex-row pt-3 gap-2"],(n=[Qi("What is mapping and why is it important?",()=>{m(!0)})],["children",v.Children.toArray(Array.from(n))])]))),d("div",g(y([["className","justify-start items-start gap-12 inline-flex"],(r=ne(T(()=>{let E;return H(A(d("div",g(y([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(E=ne(T(()=>H(l==null?A(l0()):A(xe()),T(()=>H(b&&c.Status.tag===0?A(c0("Some required fields are incomplete. Fill in all required fields to continue.")):A(xe()),T(()=>{let M,I,F,L,S,_,k,N;return A(d("div",g(y([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(M=[d("div",g(y([(I="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",I]),(F=[d("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(L=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),d("div",g(ne(T(()=>H(A(["className",`${c.NumberOfDestinationFieldsMapped===5?"bg-emerald-100 text-emerald-800":"bg-blue-100 text-blue-800"} px-2.5 py-0.5 rounded-[10px] justify-center items-center flex`]),T(()=>{let D;return A((D=[d("div",{className:"text-center text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",v.Children.toArray(Array.from(D))]))}))))))],["children",v.Children.toArray(Array.from(L))])]))),d("div",{className:"w-5 h-5 px-3 py-3.5"}),d("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(S=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),d("div",g(y([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(_=[d("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of ${c.NumberOfIncomingFields} used`})],["children",v.Children.toArray(Array.from(_))])])))],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(F))])]))),d("div",g(y([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(k=[d("div",g(me((N=ne(T(()=>H(A(Fi(new be(0,[]),!0,b,c.FirstName.ColumnIndex,c.FirstName.IncomingFields,new Ri(0,[]),D=>{let O;p((O=[new be(0,[]),D],new or(0,[O[0],O[1]])))},x(new be(0,[])),C(new be(0,[])))),T(()=>H(A(Fi(new be(1,[]),!0,b,c.LastName.ColumnIndex,c.LastName.IncomingFields,new Ri(0,[]),D=>{let O;p((O=[new be(1,[]),D],new or(0,[O[0],O[1]])))},x(new be(1,[])),C(new be(1,[])))),T(()=>H(A(Fi(new be(2,[]),!0,b,c.Email.ColumnIndex,c.Email.IncomingFields,new Ri(0,[]),D=>{let O;p((O=[new be(2,[]),D],new or(0,[O[0],O[1]])))},x(new be(2,[])),C(new be(2,[])))),T(()=>H(A(Fi(new be(3,[]),!1,b,c.MobilePhone.ColumnIndex,c.MobilePhone.IncomingFields,new Ri(0,[]),D=>{let O;p((O=[new be(3,[]),D],new or(0,[O[0],O[1]])))},x(new be(3,[])),C(new be(3,[])))),T(()=>H(A(Fi(new be(4,[]),!1,b,c.EmploymentBasis.ColumnIndex,c.EmploymentBasis.IncomingFields,new Ri(1,[]),D=>{let O;p((O=[new be(4,[]),D],new or(0,[O[0],O[1]])))},x(new be(4,[])),C(new be(4,[])))),T(()=>{let D,O,z,he,q,W;return H(c.NumberOfIncomingFieldsDiscarded===0?A(xe()):A(d("div",g(y([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(D=[d("div",g(y([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(O=[d("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(z=[y0(14,14),d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",v.Children.toArray(Array.from(z))])]))),d("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(he=[ia(16,12)],["children",v.Children.toArray(Array.from(he))])]))),d("div",g(y([["className","flex-col justify-start items-start gap-2 inline-flex"],(q=[d("div",g(y([["className","w-[218px] pl-3 items-center inline-flex"],(W=[d("div",g(ne(T(()=>H(A(["className","text-gray-500 text-sm font-medium"]),T(()=>{const P=c.NumberOfIncomingFieldsDiscarded|0;return A(P===1?["children","Remaining 1 unused field"]:["children",`Remaining ${P} unused fields`])}))))))],["children",v.Children.toArray(Array.from(W))])])))],["children",v.Children.toArray(Array.from(q))])])))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(D))])])))),T(()=>{let P;return A(d("div",g(y([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(P=ne(T(()=>H(c.NumberOfDestinationFieldsMapped===5?A(w0("All destination fields have been mapped. You’re good to go.")):A(xe()),T(()=>{let U,j,fe,J,R,ee,le,Ne,De;return A(d("div",g(y([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(U=[d("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(j=[d("div",g(y([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(fe=[d("div",g(y([["className","grow shrink basis-0 text-right"],(J=[d("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),d("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),d("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",v.Children.toArray(Array.from(J))])])))],["children",v.Children.toArray(Array.from(fe))])]))),d("div",g(y([["className","justify-start items-center gap-2 flex"],(R=[d("button",g(y([(ee="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ee]),["onClick",ie=>{i(c.Status)}],(le=[d("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(le))])]))),d("button",g(y([(Ne="pl-[13px] pr-[11px] py-[9px] bg-primary-600 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Ne]),["disabled",b&&c.Status.tag===0],["onClick",ie=>{const we=c.Status;we.tag===0?w[1](!0):o([we.fields[0],we.fields[1]])}],(De=[d("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),cu(13,8)],["children",v.Children.toArray(Array.from(De))])])))],["children",v.Children.toArray(Array.from(R))])])))],["children",v.Children.toArray(Array.from(j))])])))],["children",v.Children.toArray(Array.from(U))])]))))})))),["children",v.Children.toArray(Array.from(P))])]))))}))})))))))))))),["children",v.Children.toArray(Array.from(N))]))))],["children",v.Children.toArray(Array.from(k))])])))],["children",v.Children.toArray(Array.from(M))])]))))})))))),["children",v.Children.toArray(Array.from(E))])])))),T(()=>{const M=c.Preview;return M==null?A(xe()):A(t5(M[0],M[1]))}))})),["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Do extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Ta extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let sr=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}};function r5(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}let Oo=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},i5=class extends Ce{constructor(t,n,r,i,o,s,a){super(),this.IncomingValues=t,this.Selections=n,this.NumberOfIncomingValuesUsed=r|0,this.NumberOfDestinationValuesMapped=i|0,this.DiscardedValues=o,this.ValidatedMappings=s,this.Prefilled=a}};class eo extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const jn=[void 0];function v0(e,t,n){let r;const i=t.fields[0],o=Ut(s=>s,rs(uc(n)));return new i5(ze(s=>[s,hi(s,o,{Equals:re,GetHashCode:Xo})?new eo(1,[]):new eo(0,[])],i),n,o.length,Ug(Ol(s=>{let a;return a=Ut(l=>l,s),a.length!==0},uc(n))),Bm(o,i,{Equals:re,GetHashCode:Xo}),(r=y(Ut(s=>s,rs(je(s=>ze(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),Ae(r)?void 0:new M_(ce(r),Rn(Ee(r)))),e)}function o5(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>hi(Nl(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Qn}))}function s5(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=o5(e,o);return!vr(re,s,xe())&&s.length===0?jn:(r=!0,ze(a=>a,s))};n=[Kr([[new yt(0,[]),i(new yt(0,[]))],[new yt(1,[]),i(new yt(1,[]))],[new yt(2,[]),i(new yt(2,[]))],[new yt(3,[]),i(new yt(3,[]))]],{Compare:gt}),r]}else{const r=t,i=Kr(ze(o=>[o[0],ze(s=>s[1],cg(o[1],{Compare:El}))],E_(o=>o[0],rs([r.Tail,[r.Head]]),{Equals:re,GetHashCode:Xo})),{Compare:gt});n=[Kr([[new yt(0,[]),rt(hn(i,new yt(0,[])),jn)],[new yt(1,[]),rt(hn(i,new yt(1,[])),jn)],[new yt(2,[]),rt(hn(i,new yt(2,[])),jn)],[new yt(3,[]),rt(hn(i,new yt(3,[])),jn)]],{Compare:gt}),!1]}return[v0(n[1],e,n[0]),Z()]}function b0(e,t){const n=br(e.Selections,t);let r;switch(!vr(re,n,xe())&&n.length===1&&pe(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function _0(e,t){let n;return e.DiscardedValues.length>0?(n=br(e.Selections,t),!n.some(r=>r==null)):!1}function a5(e,t,n){const r=br(e.Selections,t);return!vr(re,r,xe())&&r.length===1?!1:hi(n,r,{Equals:re,GetHashCode:Xt})}function l5(e,t,n,r){return!re(n,r)&&e.IncomingValues.some(i=>re(i[0],r)?re(i[1],new eo(0,[])):!1)?hi(n,br(e.Selections,t),{Equals:re,GetHashCode:Xt}):!1}function u5(e,t,n){let r,i;const o=m=>v0(n.Prefilled,e,m);let s,a,l,u,f,c,p,h;switch(t.tag){case 1:{b0(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{a5(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],f=t.fields[1]):s=4;break}case 3:{l5(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,c=t.fields[0],p=t.fields[1],h=t.fields[2]):s=4;break}default:_0(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(No(a,m=>At(w=>xf(w,jn),m),n.Selections)),Z()];case 1:return[o(No(l,m=>At(w=>jn,m),n.Selections)),Z()];case 2:return[o(No(u,(r=(i=[f],m=>Bm(i,m,{Equals:re,GetHashCode:Xt})),m=>At(r,m)),n.Selections)),Z()];case 3:return[o(No(c,m=>At(w=>ze(b=>re(b,p)?h:b,w),m),n.Selections)),Z()];default:return[n,Z()]}}function c5(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.9999 12.6C10.0927 12.6 12.5999 10.0928 12.5999 7.00002C12.5999 3.90723 10.0927 1.40002 6.9999 1.40002C3.90711 1.40002 1.3999 3.90723 1.3999 7.00002C1.3999 10.0928 3.90711 12.6 6.9999 12.6ZM7.6999 4.90002C7.6999 4.51342 7.3865 4.20002 6.9999 4.20002C6.6133 4.20002 6.2999 4.51342 6.2999 4.90002V6.30002H4.8999C4.5133 6.30002 4.1999 6.61342 4.1999 7.00002C4.1999 7.38662 4.5133 7.70002 4.8999 7.70002H6.2999V9.10002C6.2999 9.48662 6.6133 9.80002 6.9999 9.80002C7.3865 9.80002 7.6999 9.48662 7.6999 9.10002V7.70002H9.0999C9.4865 7.70002 9.7999 7.38662 9.7999 7.00002C9.7999 6.61342 9.4865 6.30002 9.0999 6.30002H7.6999V4.90002Z",["d",r]),["fill","currentColor"]])))),["children",v.Children.toArray(Array.from(n))])])))}function d5(e,t,n,r,i,o,s){let a,l,u,f,c,p;return d("div",g(y([["key",tt(e)],["className"," pr-3 py-2 justify-start items-start gap-2 inline-flex"],(a=[d("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[d("div",g(y([["className",bt(" ",ne(T(()=>H(vr(re,t,jn)?A("bg-gray-50 border-gray-200 text-gray-500"):A("bg-emerald-50 border-emerald-200 text-emerald-700"),T(()=>A("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(u=[d("div",{className:"text-sm font-medium leading-tight",children:r5(e)})],["children",v.Children.toArray(Array.from(u))])])))],["children",v.Children.toArray(Array.from(l))])]))),d("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(f=[ia(16,12)],["children",v.Children.toArray(Array.from(f))])]))),d("div",g(y([["className","px-3 justify-start items-center gap-2 flex flex-col"],(c=[d("div",g(me((p=ne(T(()=>je(h=>{let m,w,b;return d("div",g(y([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(m=[d("div",g(y([["className","justify-start items-end gap-2 flex flex-col w-[206px]"],(w=ne(T(()=>H(A(d0(ne(T(()=>{const x=lf(At(C=>C.fields[0],h));return H(A(new ei(0,[x])),T(()=>H(A(new ei(1,[C=>{Tr(E=>{s([h,E[0]])},Ss(Es(E=>E[0].fields[0]===C?re(E[1],new eo(0,[])):!1,n)))}])),T(()=>{let C,E;return A(new ei(2,[[d("div",g(y([["className","relative w-full"],(C=[f0(y([new ys(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2"]),new ys(1,[[d("span",g(ne(T(()=>{const M=h!=null?[x,""]:["Select a value","text-gray-500"];return H(A(["className",`${M[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>A(["children",M[0]])))})))),d("span",g(y([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[g0(20,20)],["children",v.Children.toArray(Array.from(E))])])))]])])),h0(me(new m0("z-10 absolute mt-0.5 max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm")),ne(T(()=>Ts(M=>{const I=M[1],F=M[0].fields[0];return A(p0(y([new pn(0,[F]),new pn(1,[F]),new pn(2,[re(I,new eo(1,[]))]),new pn(3,["relative select-none"]),new pn(4,[L=>[d("span",{className:bt(" ",ne(T(()=>H(A("px-4 py-2 block truncate"),T(()=>{const S=L.active,_=L.selected;let k;switch(I.tag===1?_?S?k=2:k=3:k=0:S?k=2:_?k=3:k=1,k){case 0:return A("text-gray-700 opacity-50 cursor-not-allowed");case 1:return A("text-gray-700");case 2:return A("bg-primary-600 text-white");default:return A("text-gray-700")}}))))),children:F})]])])))},n))))],["children",v.Children.toArray(Array.from(C))])])))]]))}))))})))),T(()=>re(h,sg(t))?A(d("button",g(ne(T(()=>{let x;return H(A((x=[c5(14,14),d("span",{children:["Map additional value"]})],["children",v.Children.toArray(Array.from(x))])),T(()=>H(A(["className",bt(" ",ne(T(()=>H(A("justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),T(()=>i==null?A("opacity-50 cursor-not-allowed underline"):A("cursor-pointer underline"))))))]),T(()=>{const C=i;if(C==null)return mt();{const E=C;return A(["onClick",M=>{E()}])}}))))}))))):mt())))),["children",v.Children.toArray(Array.from(w))])]))),d("div",g(y([["className","text-gray-500 text-xs font-normal mt-2 pl-1"],(b=ne(T(()=>{if(o!=null){const x=o;return A(d("button",{children:"Remove",className:"cursor-pointer underline",onClick:C=>{x(h)}}))}else return A(d("button",g(ne(T(()=>H(A(["children","Clear"]),T(()=>H(r==null?A(["className","opacity-50 cursor-not-allowed underline"]):A(["className","cursor-pointer underline"]),T(()=>{const x=r;if(x==null)return mt();{const C=x;return A(["onClick",E=>{C()}])}})))))))))})),["children",v.Children.toArray(Array.from(b))])])))],["children",v.Children.toArray(Array.from(m))])])))},t))),["children",v.Children.toArray(Array.from(p))]))))],["children",v.Children.toArray(Array.from(c))])])))],["children",v.Children.toArray(Array.from(a))])])))}function f5(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=s5(s,a);l=Ir(()=>Mr(()=>u,(m,w)=>u5(s,m,w),(m,w)=>{}),void 0,void 0);const f=l[0],c=l[1],p=v.useState(!1),h=p[0];return d("div",g(y([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[na("Map values - Employment basis"),ra("Match the values from your CSV to the corresponding destination values."),d("div",g(y([["className","justify-start items-start gap-12 inline-flex"],(n=[d("div",g(y([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=ne(T(()=>H(f.Prefilled?A(l0()):A(xe()),T(()=>H(h&&f.ValidatedMappings==null?A(c0("Map at least one value to continue.")):A(xe()),T(()=>{let m,w,b,x,C,E,M,I,F;return A(d("div",g(y([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(m=[d("div",g(y([(w="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",w]),(b=[d("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(x=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),d("div",g(y([["className",bt(" ",ne(T(()=>H(f.NumberOfDestinationValuesMapped===4?A("bg-emerald-100 text-emerald-800"):A("bg-blue-100 text-blue-800"),T(()=>A("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(C=[d("div",{className:"text-center text-xs font-medium leading-none",children:`${f.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",v.Children.toArray(Array.from(C))])])))],["children",v.Children.toArray(Array.from(x))])]))),d("div",{className:"w-5 h-5 px-3 py-3.5"}),d("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),d("div",g(y([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(M=[d("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${f.NumberOfIncomingValuesUsed} of ${f.IncomingValues.length} used`})],["children",v.Children.toArray(Array.from(M))])])))],["children",v.Children.toArray(Array.from(E))])])))],["children",v.Children.toArray(Array.from(b))])]))),d("div",g(y([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(I=[d("div",g(me((F=ne(T(()=>H(Ts(L=>{let S,_,k;const N=L[0];return A(d5(N,L[1],f.IncomingValues,(S=N,b0(f,S)?()=>{c(new Oo(1,[S]))}:void 0),(_=N,_0(f,_)?()=>{c(new Oo(0,[_]))}:void 0),(k=N,br(f.Selections,k).length>1?D=>{let O;c((O=[k,D],new Oo(2,[O[0],O[1]])))}:void 0),D=>{let O;c((O=[N,D[0],D[1]],new Oo(3,[O[0],O[1],O[2]])))}))},zy(f.Selections)),T(()=>{let L,S,_,k,N,D;return H(f.DiscardedValues.length===0?A(xe()):A(d("div",g(y([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(L=[d("div",g(y([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(S=[d("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[y0(14,14),d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",v.Children.toArray(Array.from(_))])]))),d("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[ia(16,12)],["children",v.Children.toArray(Array.from(k))])]))),d("div",g(y([["className","flex-col justify-start items-start gap-2 inline-flex"],(N=[d("div",g(y([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(D=ne(T(()=>H(A(d("div",g(ne(T(()=>H(A(["className","font-medium"]),T(()=>{const O=f.DiscardedValues.length|0;return A(O===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${O} unused fields:`])}))))))),T(()=>{let O;return A(d("ul",g(y([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(O=ze(z=>d("li",{children:[z]}),rs(Yn(T(()=>H(A(ze(z=>z.fields[0],f.DiscardedValues.slice(void 0,8))),T(()=>f.DiscardedValues.length>8?A(["... and 0 other values"]):mt())))))),["children",v.Children.toArray(Array.from(O))])]))))})))),["children",v.Children.toArray(Array.from(D))])])))],["children",v.Children.toArray(Array.from(N))])])))],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(L))])])))),T(()=>{let O;return A(d("div",g(y([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(O=ne(T(()=>H(f.DiscardedValues.length===0?A(w0("All incoming values have been mapped.")):A(xe()),T(()=>{let z,he,q,W,P,U,j;return A(d("div",g(y([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(z=[d("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(he=[d("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),d("div",g(y([["className","justify-start items-center gap-2 flex"],(q=[d("button",g(y([(W="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",W]),["onClick",fe=>{i(f.ValidatedMappings)}],(P=[d("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(P))])]))),d("button",g(y([(U="pl-[13px] pr-[11px] py-[9px] bg-primary-600 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",U]),["disabled",h&&f.ValidatedMappings==null],["onClick",fe=>{const J=f.ValidatedMappings;J==null?p[1](!0):o(J)}],(j=[d("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),cu(13,8)],["children",v.Children.toArray(Array.from(j))])])))],["children",v.Children.toArray(Array.from(q))])])))],["children",v.Children.toArray(Array.from(he))])])))],["children",v.Children.toArray(Array.from(z))])]))))})))),["children",v.Children.toArray(Array.from(O))])]))))}))})))),["children",v.Children.toArray(Array.from(F))]))))],["children",v.Children.toArray(Array.from(I))])])))],["children",v.Children.toArray(Array.from(m))])]))))})))))),["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class m5 extends Ce{constructor(t,n,r,i,o,s,a,l,u){super(),this.RowNumber=t|0,this.FirstName=n,this.LastName=r,this.Email=i,this.MobilePhone=o,this.EmploymentBasis=s,this.HasDuplicateEmailError=a,this.HasErrorOtherThanDuplicateEmail=l,this.ErrorDetail=u}}function Ro(e){if(!io(e))return e}function h5(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],I_(n[1])]:void 0;return y(ze(i=>{let o,s,a,l,u,f,c,p,h,m,w;const b=i.fields[0];return Kr(Ut(x=>x,[(o=Ro(pe(t.FirstName.fields[0],b)),o==null?void 0:["firstName",o]),(s=Ro(pe(t.LastName.fields[0],b)),s==null?void 0:["lastName",s]),(a=Ro(pe(t.Email.fields[0],b)),a==null?void 0:["email",a]),(l=(u=t.MobilePhone,u==null?void 0:Ro(pe(u.fields[0],b))),l==null?void 0:["mobileNumber",l]),(f=(c=r,c==null?void 0:(p=c,h=(m=pe(p[0],b),w=xe(),[Wy(p[1],m,new ht(()=>w,x=>{w=x})),w]),h[0]?h[1]:void 0)),f==null?void 0:["employmentBasis",f])]),{Compare:Nr})},e.fields[0]))}function p5(e,t,n,r){let i;const o=new Cm(r!=null,Ba((a,l)=>new xm(a,l),(i=[t,n,r],h5(i[0],i[1],i[2])))),s=e(o);return Pe.Bind(s,a=>{let l;const u=a;return l=u.tag===1?new $(1,[u.fields[0]]):new $(0,[Ba((f,c)=>{let p,h,m,w;const b=rt((p=vg(F=>F.RowId===f,u.fields[0].Errors),p==null?void 0:Rn(p.FieldErrors)),[]),x=[hn(c.Data,"firstName"),!b.some(F=>F.PropName==="firstName")],C=[hn(c.Data,"lastName"),!b.some(F=>F.PropName==="lastName")],E=[hn(c.Data,"email"),!b.some(F=>F.PropName==="email")],M=[hn(c.Data,"mobileNumber"),!b.some(F=>F.PropName==="mobileNumber")],I=[hn(c.Data,"employmentBasis"),!b.some(F=>F.PropName==="employmentBasis")];return new m5(f+1,x,C,E,M,I,b.some(F=>F.Message.startsWith("Duplicate Email")),(h=b.filter(F=>!F.Message.startsWith("Duplicate Email")),h.length!==0),!vr(re,b,xe())&&b.length===0?void 0:!vr(re,b,xe())&&b.length===1?(m=pe(0,b).PropName,w=pe(0,b).Message,m==="firstName"?x[0]==null?"Missing first name":"Invalid first name":m==="lastName"?C[0]==null?"Missing last name":"Invalid last name":m==="email"?E[0]!=null?w.startsWith("Duplicate Email")?"Duplicate email":"Invalid email":"Missing email":m==="mobileNumber"?M[0]==null?"Missing mobile phone":"Invalid mobile phone":m==="employmentBasis"?I[0]==null?"Missing employment basis":"Invalid employment basis":"Invalid or missing field"):"Multiple invalid or missing fields")},o.Data)]),Pe.Return(l)})}let Hi=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage"]}},Br=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validating","Reviewing"]}};class Pi extends Ce{constructor(t,n,r,i,o,s,a,l,u,f,c,p,h){super(),this.Data=t,this.InviteTiming=n,this.DuplicateEmailCount=r|0,this.NumberOfRowsWithErrorsOtherThanDuplicateEmail=i|0,this.NumberOfInvalidRows=o|0,this.NumberOfRows=s|0,this.NumberOfValidRows=a|0,this.ShowingOnlyRowsWithErrors=l,this.HasErrors=u,this.RowFrom=f|0,this.RowTo=c|0,this.Page=p,this.PageNo=h|0}}function g5(e){return[new Br(0,[]),Yf(t=>{Zf(t)},e,void 0,t=>new Hi(0,[t]))]}function Fo(e,t,n){const r=(e-1)*20|0,i=Ag(r,e*20-1,n?Bn(o=>o.ErrorDetail!=null,t):t);if(Ae(i))return[0,0,dt()];{const o=i;return[r+1,r+an(o),o]}}function x0(e){return e.PageNo>1}function C0(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function y5(e,t){const n=Bn(r=>r.ErrorDetail!=null,e.Data);return lo(me(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
50
- `),Ba((r,i)=>{const o=rt(i.ErrorDetail,""),s=rt(i.FirstName[0],""),a=rt(i.LastName[0],""),l=rt(i.Email[0],""),u=rt(i.MobilePhone[0],""),f=r===an(n)-1?"":`
51
- `;return t?`${o},${s},${a},${l},${u},${rt(i.EmploymentBasis[0],"")},${i.RowNumber}${f}`:`${o},${s},${a},${l},${u},${i.RowNumber}${f}`},n))}function w5(e,t,n){let r,i,o,s,a,l,u,f,c,p;switch(t.tag){case 1:{n.tag===1?(i=2,s=t.fields[0],a=n.fields[0]):(i=6,p=n);break}case 2:{n.tag===1?(r=n.fields[0],r.HasErrors&&r.ShowingOnlyRowsWithErrors!==t.fields[0]?(i=3,l=n.fields[0],u=t.fields[0]):(i=6,p=n)):(i=6,p=n);break}case 3:{n.tag===1&&C0(n.fields[0])?(i=4,f=n.fields[0]):(i=6,p=n);break}case 4:{n.tag===1&&x0(n.fields[0])?(i=5,c=n.fields[0]):(i=6,p=n);break}default:t.fields[0].tag===1?n.tag===0?i=1:(i=6,p=n):n.tag===0?(i=0,o=t.fields[0].fields[0]):(i=6,p=n)}switch(i){case 0:{let h;const m=[o,!1];return h=Fo(1,m[0],m[1]),[new Br(1,[new Pi(o,new Pt(1,[]),an(Bn(w=>w.HasDuplicateEmailError,o)),an(Bn(w=>w.HasErrorOtherThanDuplicateEmail,o)),an(Bn(w=>w.ErrorDetail!=null,o)),an(o),an(Bn(w=>w.ErrorDetail==null,o)),!1,Cg(w=>w.ErrorDetail!=null,o),h[0],h[1],h[2],1)]),Z()]}case 1:return[n,qf(h=>{e()})];case 2:return[new Br(1,[new Pi(a.Data,s,a.DuplicateEmailCount,a.NumberOfRowsWithErrorsOtherThanDuplicateEmail,a.NumberOfInvalidRows,a.NumberOfRows,a.NumberOfValidRows,a.ShowingOnlyRowsWithErrors,a.HasErrors,a.RowFrom,a.RowTo,a.Page,a.PageNo)]),Z()];case 3:{let h;const m=[l.Data,u];return h=Fo(1,m[0],m[1]),[new Br(1,[new Pi(l.Data,l.InviteTiming,l.DuplicateEmailCount,l.NumberOfRowsWithErrorsOtherThanDuplicateEmail,l.NumberOfInvalidRows,l.NumberOfRows,l.NumberOfValidRows,u,l.HasErrors,h[0],h[1],h[2],1)]),Z()]}case 4:{const h=f.PageNo+1|0;let m;const w=[f.Data,f.ShowingOnlyRowsWithErrors];return m=Fo(h,w[0],w[1]),[new Br(1,[new Pi(f.Data,f.InviteTiming,f.DuplicateEmailCount,f.NumberOfRowsWithErrorsOtherThanDuplicateEmail,f.NumberOfInvalidRows,f.NumberOfRows,f.NumberOfValidRows,f.ShowingOnlyRowsWithErrors,f.HasErrors,m[0],m[1],m[2],h)]),Z()]}case 5:{const h=c.PageNo-1|0;let m;const w=[c.Data,c.ShowingOnlyRowsWithErrors];return m=Fo(h,w[0],w[1]),[new Br(1,[new Pi(c.Data,c.InviteTiming,c.DuplicateEmailCount,c.NumberOfRowsWithErrorsOtherThanDuplicateEmail,c.NumberOfInvalidRows,c.NumberOfRows,c.NumberOfValidRows,c.ShowingOnlyRowsWithErrors,c.HasErrors,m[0],m[1],m[2],h)]),Z()]}default:return[p,Z()]}}function S0(e,t){let n,r,i;return d("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=y([d("path",g(y([(r="M12.6666 14.6667H3.33328C2.23062 14.6667 1.33328 13.7693 1.33328 12.6667V10H2.66662V12.6667C2.66662 13.034 2.96595 13.3333 3.33328 13.3333H12.6666C13.0339 13.3333 13.3333 13.034 13.3333 12.6667V10H14.6666V12.6667C14.6666 13.7693 13.7693 14.6667 12.6666 14.6667Z",["d",r]),["fill","#2E66F7"]]))),d("path",g(y([(i="M11.3333 5.72395L8.66667 8.39062V1.33328H7.33333V8.39062L4.66667 5.72395L3.724 6.66662L8 10.9426L12.276 6.66662L11.3333 5.72395Z",["d",i]),["fill","#2E66F7"]])))]),["children",v.Children.toArray(Array.from(n))])])))}function E0(e,t,n){let r,i,o,s,a,l,u,f,c,p,h,m,w,b,x,C,E,M,I,F,L,S;return Ks(y([new Kt(3,[t]),new Kt(4,[n]),new Kt(5,[[ea(me(new Qs(2,["fixed inset-0 bg-gray-500/50"]))),d("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Js(me(new Xs(2,[[d("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(i=[d("div",g(y([["className","flex flex-row justify-between"],(o=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),d("button",g(y([["onClick",_=>{n()}],["type","button"],["className","text-gray-600"],(s=[ta(24,24)],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])]))),d("div",g(y([["className","text-gray-600 text-sm pt-6"],(a=[d("span",{children:"Fields marked with "}),d("span",{className:"text-red-600",children:"*"}),d("span",g(me((l=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",l]))))],["children",v.Children.toArray(Array.from(a))])]))),d("div",g(y([["className","grid grid-cols-2 mt-3"],(u=[d("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),d("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),d("div",g(y([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(f=[d("span",{children:"First name "}),d("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(f))])]))),d("div",g(me((c=[d("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",v.Children.toArray(Array.from(p))])])))],["children",v.Children.toArray(Array.from(c))])))),d("div",g(y([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[d("span",{children:"Last name "}),d("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(h))])]))),d("div",g(me((m=[d("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(w=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",v.Children.toArray(Array.from(w))])])))],["children",v.Children.toArray(Array.from(m))])))),d("div",g(y([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(b=[d("span",{children:"Email "}),d("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(b))])]))),d("div",g(me((x=[d("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(C=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",v.Children.toArray(Array.from(C))])])))],["children",v.Children.toArray(Array.from(x))])))),d("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),d("div",g(me((E=[d("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(M=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"+61432368712"})],["children",v.Children.toArray(Array.from(M))])])))],["children",v.Children.toArray(Array.from(E))])))),d("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),d("div",g(me((I=[d("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(F=[d("span",{children:"One of the following options:"}),d("br",{}),d("ul",g(y([["className","italic list-disc px-3"],(L=[d("li",{children:"Full-time"}),d("li",{children:"Part-time"}),d("li",{children:"Labour hire"}),d("li",{children:"Casual"})],["children",v.Children.toArray(Array.from(L))])])))],["children",v.Children.toArray(Array.from(F))])])))],["children",v.Children.toArray(Array.from(I))])))),d("a",g(y([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(S=[d("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),S0(16,16)],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(u))])])))],["children",v.Children.toArray(Array.from(i))])])))]])))],["children",v.Children.toArray(Array.from(r))])])))]])]))}function v5(e,t){let n,r,i,o,s,a,l,u,f,c,p,h,m;return Ks(y([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ea(me(new Qs(2,["fixed inset-0 bg-gray-500/50"]))),d("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Js(me(new Xs(2,[[d("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(r=[d("div",g(y([["className","flex flex-row justify-between"],(i=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),d("button",g(y([["onClick",w=>{t()}],["type","button"],["className","text-gray-600"],(o=[ta(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),d("div",g(y([["className","text-gray-500 text-sm font-normal pt-6"],(s=[d("p",g(me((a=[d("span",{children:["Workplace benefits is a"]}),d("span",{className:"font-semibold",children:" free platform "}),(l="for your entire workforce – including full-time, part-time, casual employees, and volunteers. It allows you to share company benefits while supporting employee wellbeing.",d("span",{children:[l]}))],["children",v.Children.toArray(Array.from(a))])))),d("p",g(y([["className","pt-3"],(u=[(f="With workplace benefits, your people can access everyday savings from top Australian brands like Woolworths, Kmart, Harvey Norman, The Iconic, and more – all through the ",d("span",{children:[f]})),d("span",{className:"font-semibold",children:" Flare App"}),d("span",{children:["."]})],["children",v.Children.toArray(Array.from(u))])]))),d("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),d("ul",g(y([["className","list-inside list-disc pt-3"],(c=[d("li",g(me((p=[d("span",{className:"font-semibold",children:"Savings "}),d("span",{children:["on essentials like food, fuel, and more."]})],["children",v.Children.toArray(Array.from(p))])))),d("li",g(y([["className","pt-2"],(h=[d("span",{className:"font-semibold",children:"Exclusive offers "}),d("span",{children:["from leading brands and retailers."]})],["children",v.Children.toArray(Array.from(h))])]))),d("li",g(y([["className","pt-2"],(m=[d("span",{className:"font-semibold",children:"Tax savings "}),d("span",{children:["with salary packaging."]})],["children",v.Children.toArray(Array.from(m))])])))],["children",v.Children.toArray(Array.from(c))])])))],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function b5(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",g(y([(r="M17.8008 14.5263L11.4838 2.88031C11.328 2.59137 11.0904 2.35483 10.8008 2.20031C10.4074 1.98974 9.94665 1.94305 9.51893 2.07039C9.0912 2.19773 8.73106 2.48881 8.51683 2.88031L2.20083 14.5263C2.06272 14.7826 1.99367 15.0704 2.00046 15.3614C2.00724 15.6525 2.08964 15.9368 2.23954 16.1863C2.38944 16.4359 2.60169 16.6422 2.85544 16.7849C3.10919 16.9276 3.39571 17.0018 3.68683 17.0003H16.3148C16.5939 17.0003 16.8686 16.9316 17.1148 16.8003C17.3099 16.6968 17.4825 16.5556 17.6228 16.3851C17.763 16.2145 17.8681 16.0178 17.932 15.8064C17.9958 15.595 18.0172 15.373 17.9949 15.1533C17.9726 14.9336 17.9069 14.7205 17.8018 14.5263H17.8008ZM10.0008 15.0003C9.80305 15.0003 9.60971 14.9417 9.44526 14.8318C9.28081 14.7219 9.15264 14.5657 9.07695 14.383C9.00126 14.2003 8.98146 13.9992 9.02004 13.8052C9.05863 13.6112 9.15387 13.4331 9.29372 13.2932C9.43358 13.1533 9.61176 13.0581 9.80574 13.0195C9.99972 12.9809 10.2008 13.0007 10.3835 13.0764C10.5662 13.1521 10.7224 13.2803 10.8323 13.4447C10.9422 13.6092 11.0008 13.8025 11.0008 14.0003C11.0008 14.2655 10.8955 14.5199 10.7079 14.7074C10.5204 14.8949 10.266 15.0003 10.0008 15.0003ZM11.0008 11.5003C11.0008 11.6329 10.9482 11.7601 10.8544 11.8539C10.7606 11.9476 10.6334 12.0003 10.5008 12.0003H9.50083C9.36822 12.0003 9.24104 11.9476 9.14728 11.8539C9.05351 11.7601 9.00083 11.6329 9.00083 11.5003V7.50031C9.00083 7.3677 9.05351 7.24052 9.14728 7.14675C9.24104 7.05298 9.36822 7.00031 9.50083 7.00031H10.5008C10.6334 7.00031 10.7606 7.05298 10.8544 7.14675C10.9482 7.24052 11.0008 7.3677 11.0008 7.50031V11.5003Z",["d",r]),["fill","#FBBF24"]])))),["children",v.Children.toArray(Array.from(n))])])))}const _5=e=>d("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("g",{id:"Group 67"},d("path",{id:"Vector",d:"M24.2605 17.5933C17.766 17.5933 12.5005 22.9015 12.5005 29.4469V53.1561H36.0205V29.4469C36.0205 22.8995 30.7549 17.5933 24.2605 17.5933Z",fill:"url(#paint0_linear_4467_4223)"}),d("g",{id:"Group",opacity:.95},d("path",{id:"Vector_2",d:"M35.76 35.646C29.2655 35.646 24 40.9115 24 47.406V53.1558H47.52V47.406C47.52 40.9115 42.2544 35.646 35.76 35.646Z",fill:"url(#paint1_linear_4467_4223)"})),d("path",{id:"Vector_3",opacity:.95,d:"M12.24 35.646C5.74553 35.646 0.47998 40.9115 0.47998 47.406V53.1558H24V47.406C24 40.9115 18.7344 35.646 12.24 35.646Z",fill:"url(#paint2_linear_4467_4223)"}),d("path",{id:"Vector_4",d:"M24.1303 16.8098C28.5328 16.8098 32.1018 13.2408 32.1018 8.83827C32.1018 4.43569 28.5328 0.866699 24.1303 0.866699C19.7277 0.866699 16.1587 4.43569 16.1587 8.83827C16.1587 13.2408 19.7277 16.8098 24.1303 16.8098Z",fill:"#0095F2"}),d("path",{id:"Vector_5",opacity:.93,d:"M13.1537 35.1253C17.5563 35.1253 21.1253 31.5563 21.1253 27.1537C21.1253 22.7511 17.5563 19.1821 13.1537 19.1821C8.75112 19.1821 5.18213 22.7511 5.18213 27.1537C5.18213 31.5563 8.75112 35.1253 13.1537 35.1253Z",fill:"#FF876F"}),d("path",{id:"Vector_6",opacity:.93,d:"M35.89 35.1253C40.2926 35.1253 43.8616 31.5563 43.8616 27.1537C43.8616 22.7511 40.2926 19.1821 35.89 19.1821C31.4875 19.1821 27.9185 22.7511 27.9185 27.1537C27.9185 31.5563 31.4875 35.1253 35.89 35.1253Z",fill:"#A650FF"})),d("defs",null,d("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},d("stop",{stopColor:"#161E37"}),d("stop",{offset:.11,stopColor:"#172243"}),d("stop",{offset:.31,stopColor:"#1B2E62"}),d("stop",{offset:.57,stopColor:"#214196"}),d("stop",{offset:.89,stopColor:"#2A5CDD"}),d("stop",{offset:1,stopColor:"#2E66F7"})),d("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},d("stop",{offset:.11,stopColor:"#FF876F"}),d("stop",{offset:.99,stopColor:"#A650FF"})),d("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},d("stop",{stopColor:"#0095F2"}),d("stop",{offset:.29,stopColor:"#307CF6"}),d("stop",{offset:.61,stopColor:"#6163FB"}),d("stop",{offset:.86,stopColor:"#7F54FD"}),d("stop",{offset:1,stopColor:"#8B4FFF"}))));function x5(e,t){return v.createElement(e,g(t))}function C5(e){return x5(_5,e)}function Lr(e,t){let n;return d("div",g(y([["className",bt(" ",["animate-pulse w-full relative",e,t])],(n=[d("div",{className:bt(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",v.Children.toArray(Array.from(n))])])))}function S5(){let e,t,n,r,i,o,s,a,l,u,f,c;return d("div",g(y([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[d("div",g(y([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(t=[d("div",g(y([["className","justify-start items-center gap-2 inline-flex"],(n=[d("input",{type:"checkbox",defaultChecked:!1,disabled:!0,className:"rounded-sm border border-gray-300 bg-white"}),d("span",{className:"text-gray-400 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",v.Children.toArray(Array.from(n))])]))),d("div",g(y([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[d("div",g(y([["className","w-full w-[1030px]"],(i=ne(T(()=>{let p,h,m,w;return H(A(d("div",g(y([["className","bg-gray-100 flex"],(p=[d("div",g(y([["className","px-3 py-2.5 text-left"],(h=[Lr("h-5","w-[128px]")],["children",v.Children.toArray(Array.from(h))])]))),d("div",g(y([["className","px-3 py-2.5 text-left"],(m=[Lr("h-5","w-[148px]")],["children",v.Children.toArray(Array.from(m))])]))),d("div",g(y([["className","px-3 py-2.5 text-left flex-1"],(w=[Lr("h-5","w-full")],["children",v.Children.toArray(Array.from(w))])])))],["children",v.Children.toArray(Array.from(p))])])))),T(()=>je(b=>d("div",g(ne(T(()=>H(b%2===1?A(["className","bg-white border-t border-gray-200 flex"]):A(["className","bg-gray-50 border-t border-gray-200 flex"]),T(()=>{let x,C,E,M;return A((x=[d("div",g(y([["className","px-3 py-2.5 text-left"],(C=[Lr("h-5","w-[128px]")],["children",v.Children.toArray(Array.from(C))])]))),d("div",g(y([["className","px-3 py-2.5 text-left"],(E=[Lr("h-5","w-[148px]")],["children",v.Children.toArray(Array.from(E))])]))),d("div",g(y([["className","px-3 py-2.5 text-left flex-1"],(M=[Lr("h-5","w-full")],["children",v.Children.toArray(Array.from(M))])])))],["children",v.Children.toArray(Array.from(x))]))})))))),ne(Hl(0,1,9)))))})),["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])]))),d("div",g(y([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(o=[d("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(s=[d("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),d("div",g(y([["className","justify-start items-center gap-2 flex"],(a=[d("button",g(y([(l="px-[13px] py-[9px] bg-white opacity-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex",["className",l]),["disabled",!0],(u=[d("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(u))])]))),d("button",g(y([(f="pl-[13px] pr-[11px] py-[9px] opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex",["className",f]),["disabled",!0],(c=[d("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",v.Children.toArray(Array.from(c))])])))],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(e))])])))}function E5(e){const t=ze(r=>r,Rn(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const A5=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function k5(){window.location.replace(`${window.location.origin}/admin/app/oops`)}function N5(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasis,a=e.baseColumnMappings,l=e.dataRows,u=e.apiCallAsync;let f;const c=g5(()=>p5(u,l,a,s));f=Ir(()=>Mr(()=>c,(x,C)=>w5(()=>{k5()},x,C),(x,C)=>{}),void 0,void 0);const p=f[1],h=v.useState(!1),m=h[1],w=v.useState(!1),b=w[1];return d("div",g(y([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[E0(A5,h[0],()=>{m(!1)}),v5(w[0],()=>{b(!1)}),na("Review"),ra("Preview your data and confirm that everything is mapped correctly."),d("div",g(y([["className","flex flex-row pt-3 gap-2"],(n=[Qi("What kind of data do I need?",()=>{m(!0)})],["children",v.Children.toArray(Array.from(n))])]))),d("div",g(y([["className","justify-start items-start gap-12 inline-flex"],(r=[d("div",g(ne(T(()=>H(A(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),T(()=>{let x,C,E;const M=f[0];if(M.tag===1){const I=M.fields[0],F=_=>{p(new Hi(1,[_]))},L=C0(I)?_=>{p(new Hi(3,[]))}:void 0,S=x0(I)?_=>{p(new Hi(4,[]))}:void 0;return A((x=[d("div",g(y([["className","flex-col justify-start items-start gap-6 inline-flex"],(C=ne(T(()=>{let _,k,N,D,O,z,he,q;return H(I.HasErrors?A(d("div",g(y([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex"],(_=[b5(20,20),d("div",g(y([["className","flex-col justify-start items-start gap-2 inline-flex"],(k=[d("div",g(ne(T(()=>H(A(["className","self-stretch text-amber-800 text-sm font-medium leading-tight"]),T(()=>{const W=I.DuplicateEmailCount>0,P=I.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0;let U;switch(W?P?U=1:U=0:P?U=0:U=1,U){case 0:return A(["children","We have found 1 issue"]);default:return A(["children","We have found 2 issues"])}})))))),d("ul",g(y([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],(N=ne(T(()=>{let W;return H(I.DuplicateEmailCount>0?A((W=y([d("span",{children:["Your CSV contains "]}),d("span",{className:"font-medium",children:`${I.DuplicateEmailCount} rows with duplicate email addresses. `}),d("span",{children:["We’ll skip these rows during the import process."]})]),d("li",{children:v.Children.toArray(Array.from(W))}))):mt(),T(()=>{let P;return I.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?A((P=y([d("span",{children:["Your CSV contains "]}),d("span",{className:"font-medium",children:`${I.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows with some missing or incorrectly formatted data. `}),d("span",{children:["We’ll skip these rows during the import process."]})]),d("li",{children:v.Children.toArray(Array.from(P))}))):mt()}))})),["children",v.Children.toArray(Array.from(N))])]))),d("div",g(y([["className","px-2 py-1.5"],(D=[d("div",g(y([["className","text-amber-700 text-sm leading-tight"],(O=[d("span",{children:["You can download the "]}),d("span",{className:"font-medium",children:`${I.NumberOfInvalidRows} invalid rows `}),(z="along with their error details as a CSV file. To import the remaining users: correct the errors then re-import.",d("span",{children:[z]}))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(D))])]))),d("div",g(y([["className","px-2 py-1.5"],(he=[d("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error CSV",href:E5((q=[I,s!=null],y5(q[0],q[1]))),download:"import_users_error_rows"})],["children",v.Children.toArray(Array.from(he))])])))],["children",v.Children.toArray(Array.from(k))])])))],["children",v.Children.toArray(Array.from(_))])])))):mt(),T(()=>{let W,P,U,j,fe,J,R,ee,le,Ne,De,ie,we;return H(A(d("div",g(y([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(W=[d("div",g(y([["className","justify-start items-center gap-2 inline-flex"],(P=[d("input",g(y([["type","checkbox"],["defaultChecked",!1],(U="appearance-none rounded-sm border border-gray-300 bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 forced-colors:appearance-auto",["className",U]),["onClick",Y=>{p(new Hi(2,[!I.ShowingOnlyRowsWithErrors]))}]]))),d("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",v.Children.toArray(Array.from(P))])]))),d("div",g(y([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(j=[d("div",g(me((fe=[d("div",g(y([["className","w-full max-h-[470px] overflow-auto"],(J=[d("table",g(y([["className","w-full divide-y divide-gray-300"],(R=[d("thead",g(y([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(ee=ne(T(()=>H(A(d("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),T(()=>H(A(d("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Error detail"})),T(()=>{let Y;return H(A(d("th",g(y([["scope","col"],["className","px-3 py-2.5 text-left"],(Y=[d("span",{children:["First name "]}),d("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(Y))])])))),T(()=>{let ae;return H(A(d("th",g(y([["scope","col"],["className","px-3 py-2.5 text-left"],(ae=[d("span",{children:["Last name "]}),d("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(ae))])])))),T(()=>{let B;return H(A(d("th",g(y([["scope","col"],["className","px-3 py-2.5 text-left"],(B=[d("span",{children:["Email "]}),d("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(B))])])))),T(()=>H(A(d("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Mobile Phone"})),T(()=>s!=null?A(d("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Employment Basis"})):mt()))))}))}))})))))),["children",v.Children.toArray(Array.from(ee))])]))),d("tbody",g(y([["className","divide-y divide-gray-200"],(le=ne(T(()=>je(Y=>d("tr",g(ne(T(()=>H(A(["key",Y.RowNumber]),T(()=>{let ae;return H((ae=Y.RowNumber%2|0,Y.ErrorDetail==null?A(ae===1?["className","bg-white"]:["className","bg-gray-50"]):A(["className","bg-amber-50"])),T(()=>{let B;return A((B=ne(T(()=>H(A(d("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm text-gray-500",children:Y.RowNumber})),T(()=>H(A(d("td",g(ne(T(()=>H(A(["className","whitespace-nowrap px-3 py-2.5"]),T(()=>{let Q,G;return Y.ErrorDetail!=null?A((Q=[d("div",g(y([(G="text-center text-amber-800 text-xs font-medium h-5 px-2.5 py-0.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",G]),["children",V(Y.ErrorDetail)]])))],["children",v.Children.toArray(Array.from(Q))])):mt()}))))))),T(()=>H(A(d("td",g(ne(T(()=>{let Q,G;const te=Y.FirstName;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))),T(()=>H(A(d("td",g(ne(T(()=>{let Q,G;const te=Y.LastName;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))),T(()=>H(A(d("td",g(ne(T(()=>{let Q,G;const te=Y.Email;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))),T(()=>H(A(d("td",g(ne(T(()=>{let Q,G;const te=Y.MobilePhone;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))),T(()=>s!=null?A(d("td",g(ne(T(()=>{let Q,G;const te=Y.EmploymentBasis;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))):mt())))))))))))))),["children",v.Children.toArray(Array.from(B))]))}))})))))),I.Page))),["children",v.Children.toArray(Array.from(le))])])))],["children",v.Children.toArray(Array.from(R))])])))],["children",v.Children.toArray(Array.from(J))])]))),d("div",g(y([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(Ne=[d("div",g(y([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(De=[(ie=y([d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.RowFrom}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.RowTo}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.ShowingOnlyRowsWithErrors?I.NumberOfInvalidRows:I.NumberOfRows}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),d("div",{children:v.Children.toArray(Array.from(ie))})),d("div",g(y([["className","justify-start items-start gap-3 flex"],(we=[d("button",g(ne(T(()=>{let Y;return H((Y=S,Y==null?A(["disabled",!0]):A(["onClick",Y])),T(()=>{let ae;return H(A((ae="px-[17px] py-[9px] disabled:opacity-50 bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ae])),T(()=>{let B;return A((B=[d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",v.Children.toArray(Array.from(B))]))}))}))})))),d("button",g(ne(T(()=>{let Y;return H((Y=L,Y==null?A(["disabled",!0]):A(["onClick",Y])),T(()=>{let ae;return H(A((ae="px-[17px] py-[9px] disabled:opacity-50 bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ae])),T(()=>{let B;return A((B=[d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",v.Children.toArray(Array.from(B))]))}))}))}))))],["children",v.Children.toArray(Array.from(we))])])))],["children",v.Children.toArray(Array.from(De))])])))],["children",v.Children.toArray(Array.from(Ne))])])))],["children",v.Children.toArray(Array.from(fe))]))))],["children",v.Children.toArray(Array.from(j))])])))],["children",v.Children.toArray(Array.from(W))])])))),T(()=>{let Y,ae,B,Q,G,te,Le,ve,Et,We,ot,mn,qt,ft,en;return H(I.NumberOfValidRows>0?A(d("div",g(y([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(Y=[C5([]),d("div",g(y([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(ae=[d("div",g(y([["className","flex-col justify-start items-start gap-2 flex"],(B=[d("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${I.NumberOfValidRows} users to workplace benefits`})],["children",v.Children.toArray(Array.from(B))])]))),Qi("What is workplace benefits?",()=>{b(!0)}),d("div",g(me((Q=[d("div",g(y([["className","flex-col justify-start items-start gap-2 flex"],(G=[d("div",g(y([["key",tt(new Pt(1,[]))],["className","relative flex items-start"],(te=[d("div",g(y([["className","flex h-6 items-center"],(Le=[d("input",g(y([["id",tt(new Pt(1,[]))],["name","InviteTiming"],["type","radio"],(ve="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",ve]),["checked",re(I.InviteTiming,new Pt(1,[]))],["onChange",Fe=>{Fe.target.checked,F(new Pt(1,[]))}]])))],["children",v.Children.toArray(Array.from(Le))])]))),d("div",g(y([["className","ml-3 text-sm/6"],(Et=[d("label",{for:tt(new Pt(1,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import now, Invite later"}),d("p",{id:`${tt(new Pt(1,[]))}-description`,className:"text-gray-500 text-sm font-normal leading-tight",children:"We’ll import your users now. You can invite them to workplace benefits at any time later."})],["children",v.Children.toArray(Array.from(Et))])])))],["children",v.Children.toArray(Array.from(te))])])))],["children",v.Children.toArray(Array.from(G))])]))),d("div",g(me((We=[d("div",g(y([["key",tt(new Pt(0,[]))],["className","relative flex items-start"],(ot=[d("div",g(y([["className","flex h-6 items-center"],(mn=[d("input",g(y([["id",tt(new Pt(0,[]))],["name","InviteTiming"],["type","radio"],(qt="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",qt]),["checked",re(I.InviteTiming,new Pt(0,[]))],["onChange",Fe=>{Fe.target.checked,F(new Pt(0,[]))}]])))],["children",v.Children.toArray(Array.from(mn))])]))),d("div",g(y([["className","ml-3 text-sm/6"],(ft=[d("label",{for:tt(new Pt(0,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import and invite now"}),d("p",g(y([["id",`${tt(new Pt(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(en="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",en])])))],["children",v.Children.toArray(Array.from(ft))])])))],["children",v.Children.toArray(Array.from(ot))])])))],["children",v.Children.toArray(Array.from(We))]))))],["children",v.Children.toArray(Array.from(Q))]))))],["children",v.Children.toArray(Array.from(ae))])])))],["children",v.Children.toArray(Array.from(Y))])])))):mt(),T(()=>{let Fe,Mt,Ot,tn,Ai,_n,Rt;return A(d("div",g(y([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(Fe=[d("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(Mt=[d("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),d("div",g(y([["className","justify-start items-center gap-2 flex"],(Ot=[d("button",g(y([(tn="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",tn]),["onClick",rr=>{i()}],(Ai=[d("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(Ai))])]))),d("button",g(y([(_n="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",_n]),["onClick",rr=>{o(I.InviteTiming)}],["disabled",I.NumberOfValidRows===0],(Rt=[d("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:`Import ${I.NumberOfValidRows} users`})],["children",v.Children.toArray(Array.from(Rt))])])))],["children",v.Children.toArray(Array.from(Ot))])])))],["children",v.Children.toArray(Array.from(Mt))])])))],["children",v.Children.toArray(Array.from(Fe))])]))))}))}))}))})),["children",v.Children.toArray(Array.from(C))])])))],["children",v.Children.toArray(Array.from(x))]))}else return A((E=[S5()],["children",v.Children.toArray(Array.from(E))]))}))))))],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Cn extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class Go extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var zo={exports:{}};/* @license
48
+ `))}else{let p=f.props,h=p==null?void 0:p.className,m=typeof h=="function"?(...x)=>Qa(h(...x),l.className):Qa(h,l.className),g=m?{className:m}:{},b=th(f.props,Vn(_a(l,["ref"])));for(let x in c)x in b&&delete c[x];return Cl(f,Object.assign({},b,c,u,{ref:i(b2(f),u.ref)},g))}return d(o,Object.assign({},_a(l,["ref"]),o!==Ue&&u,o!==Ue&&c),f)}function w2(){let e=se([]),t=Ee(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function v2(...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 th(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function nh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let s of o)s==null||s(...i)}});return t}function at(e){var t;return Object.assign(_l(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Vn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function _a(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function b2(e){return K.version.split(".")[0]>="19"?e.props.ref:e.ref}function _2(e,t,n){let[r,i]=ye(n),o=e!==void 0,s=se(o),a=se(!1),l=se(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,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.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,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.")),[o?e:r,ue(u=>(o||i(u),t==null?void 0:t(u)))]}function x2(e){let[t]=ye(e);return t}function rh(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))oh(n,ih(t,r),i);return n}function ih(e,t){return e?e+"["+t+"]":t}function oh(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())oh(e,ih(t,r.toString()),i);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,""]):rh(n,t,e)}function C2(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let S2="span";var ui=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ui||{});function E2(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["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 pt()({ourProps:o,theirProps:i,slot:{},defaultTag:S2,name:"Hidden"})}let Xi=at(E2),A2=Je(null);function k2({children:e}){let t=De(A2);if(!t)return K.createElement(K.Fragment,null,e);let{target:n}=t;return n?_s(K.createElement(K.Fragment,null,e),n):null}function N2({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=ye(null),a=tr();return Ie(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),K.createElement(k2,null,K.createElement(T2,{setForm:s,formId:t}),rh(e).map(([l,u])=>K.createElement(Xi,{features:ui.Hidden,...Vn({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function T2({setForm:e,formId:t}){return Ie(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:K.createElement(Xi,{features:ui.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let $2=Je(void 0);function sh(){return De($2)}function M2(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&&I2(n)?!1:r}function I2(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let ah=Symbol();function D2(e,t=!0){return Object.assign(e,{[ah]:t})}function St(...e){let t=se(e);Ie(()=>{t.current=e},[e]);let n=ue(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[ah]))?void 0:n}let Ps=Je(null);Ps.displayName="DescriptionContext";function lh(){let e=De(Ps);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,lh),t}return e}function O2(){var e,t;return(t=(e=De(Ps))==null?void 0:e.value)!=null?t:void 0}function R2(){let[e,t]=ye([]);return[e.length>0?e.join(" "):void 0,de(()=>function(n){let r=ue(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=de(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return K.createElement(Ps.Provider,{value:i},n.children)},[t])]}let F2="p";function P2(e,t){let n=Jt(),r=Kl(),{id:i=`headlessui-description-${n}`,...o}=e,s=lh(),a=St(t);qe(()=>s.register(i),[i,s.register]);let l=r||!1,u=de(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:i};return pt()({ourProps:f,theirProps:o,slot:u,defaultTag:F2,name:s.name||"Description"})}let L2=at(P2),V2=Object.assign(L2,{});var lt=(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))(lt||{});let Ls=Je(null);Ls.displayName="LabelContext";function uh(){let e=De(Ls);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,uh),t}return e}function ch(e){var t,n,r;let i=(n=(t=De(Ls))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function H2({inherit:e=!1}={}){let t=ch(),[n,r]=ye([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,de(()=>function(o){let s=ue(l=>(r(u=>[...u,l]),()=>r(u=>{let f=u.slice(),c=f.indexOf(l);return c!==-1&&f.splice(c,1),f}))),a=de(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return K.createElement(Ls.Provider,{value:a},o.children)},[r])]}let j2="label";function B2(e,t){var n;let r=Jt(),i=uh(),o=sh(),s=Kl(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...f}=e,c=St(t);qe(()=>i.register(a),[a,i.register]);let p=ue(b=>{let x=b.currentTarget;if(x instanceof HTMLLabelElement&&b.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(b),x instanceof HTMLLabelElement){let C=document.getElementById(x.htmlFor);if(C){let E=C.getAttribute("disabled");if(E==="true"||E==="")return;let $=C.getAttribute("aria-disabled");if($==="true"||$==="")return;(C instanceof HTMLInputElement&&(C.type==="radio"||C.type==="checkbox")||C.role==="radio"||C.role==="checkbox"||C.role==="switch")&&C.click(),C.focus({preventScroll:!0})}}}),h=s||!1,m=de(()=>({...i.slot,disabled:h}),[i.slot,h]),g={ref:c,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in f&&delete f.onClick),pt()({ourProps:g,theirProps:f,slot:m,defaultTag:l?j2:"div",name:i.name||"Label"})}let U2=at(B2),W2=Object.assign(U2,{}),G2=Je(()=>{});function z2({value:e,children:t}){return K.createElement(G2.Provider,{value:e},t)}function q2(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Y2(e=q2){return Ee((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function Z2(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function K2(e,t=!1){let[n,r]=kr(()=>({}),{}),i=de(()=>Z2(e),[e,n]);return qe(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let X2=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function dh(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=t[i].call(n,...o);s&&(n=s,r.forEach(a=>a()))}}}function fh(e){return bs(e.subscribe,e.getSnapshot,e.getSnapshot)}let J2=new X2(()=>dh(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function xi(e,t){let n=J2.get(t),r=Jt(),i=fh(n);if(qe(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),s=i.length;return o===-1&&(o=s,s+=1),o===s-1}let el=new Map,zi=new Map;function zc(e){var t;let n=(t=zi.get(e))!=null?t:0;return zi.set(e,n+1),n!==0?()=>qc(e):(el.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>qc(e))}function qc(e){var t;let n=(t=zi.get(e))!=null?t:1;if(n===1?zi.delete(e):zi.set(e,n-1),n!==1)return;let r=el.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,el.delete(e))}function mh(e,{allowed:t,disallowed:n}={}){let r=xi(e,"inert-others");qe(()=>{var i,o;if(!r)return;let s=Pn();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(zc(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=_i(l);if(!u)continue;let f=l.parentElement;for(;f&&f!==u.body;){for(let c of f.children)a.some(p=>c.contains(p))||s.add(zc(c));f=f.parentElement}}return s.dispose},[r,t,n])}function hh(e,t,n){let r=nr(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});Ie(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Pn();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,r,e])}let ms=["[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(","),Q2=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ln=(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[e.AutoFocus=64]="AutoFocus",e))(ln||{}),tl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(tl||{}),ex=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ex||{});function ph(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ms)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function tx(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Q2)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Xl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Xl||{});function gh(e,t=0){var n;return e===((n=_i(e))==null?void 0:n.body)?!1:Dt(t,{0(){return e.matches(ms)},1(){let r=e;for(;r!==null;){if(r.matches(ms))return!0;r=r.parentElement}return!1}})}var nx=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(nx||{});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 Mn(e){e==null||e.focus({preventScroll:!0})}let rx=["textarea","input"].join(",");function ix(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,rx))!=null?n:!1}function yh(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ox(e,t){return Jr(ph(),t,{relativeTo:e})}function Jr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?yh(e):e:t&64?tx(e):ph(e);i.length>0&&s.length>1&&(s=s.filter(h=>!i.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===h:m===h))),r=r??o.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,c=s.length,p;do{if(f>=c||f+c<=0)return 0;let h=l+f;if(t&16)h=(h+c)%c;else{if(h<0)return 3;if(h>=c)return 1}p=s[h],p==null||p.focus(u),f+=a}while(p!==o.activeElement);return t&6&&ix(p)&&p.select(),2}function wh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function sx(){return/Android/gi.test(window.navigator.userAgent)}function ax(){return wh()||sx()}function Ri(e,t,n,r){let i=nr(n);Ie(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function vh(e,t,n,r){let i=nr(n);Ie(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const Yc=30;function bh(e,t,n){let r=xi(e,"outside-click"),i=nr(n),o=Ee(function(l,u){if(l.defaultPrevented)return;let f=u(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let c=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of c)if(p!==null&&(p.contains(f)||l.composed&&l.composedPath().includes(p)))return;return!gh(f,Xl.Loose)&&f.tabIndex!==-1&&l.preventDefault(),i.current(l,f)},[i,t]),s=se(null);Ri(r,"pointerdown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),Ri(r,"mousedown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),Ri(r,"click",l=>{ax()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=se({x:0,y:0});Ri(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),Ri(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Yc||Math.abs(u.y-a.current.y)>=Yc))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),vh(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ci(...e){return de(()=>_i(...e),[...e])}function _h(e,t,n,r){let i=nr(n);Ie(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function lx(e,t){return de(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function ux(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function cx(){return wh()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Pn();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),f=e.querySelector(u);f&&!r(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function dx(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function fx(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let hr=dh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Pn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:fx(n)},i=[cx(),ux(),dx()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});hr.subscribe(()=>{let e=hr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&hr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&hr.dispatch("TEARDOWN",n)}});function mx(e,t,n=()=>({containers:[]})){let r=fh(hr),i=t?r.get(t):void 0,o=i?i.count>0:!1;return qe(()=>{if(!(!t||!e))return hr.dispatch("PUSH",t,n),()=>hr.dispatch("POP",t,n)},[e,t]),o}function xh(e,t,n=()=>[document.body]){let r=xi(e,"scroll-lock");mx(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Zc(e){return[e.screenX,e.screenY]}function hx(){let e=se([-1,-1]);return{wasMoved(t){let n=Zc(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Zc(t)}}}function px(e=0){let[t,n]=ye(e),r=Ee(l=>n(l),[t]),i=Ee(l=>n(u=>u|l),[t]),o=Ee(l=>(t&l)===l,[t]),s=Ee(l=>n(u=>u&~l),[n]),a=Ee(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var gx={},Kc,Xc;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Kc=process==null?void 0:gx)==null?void 0:Kc.NODE_ENV)==="test"&&typeof((Xc=Element==null?void 0:Element.prototype)==null?void 0:Xc.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
49
+ `)),[]});var yx=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(yx||{});function Ch(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Sh(e,t,n,r){let[i,o]=ye(n),{hasFlag:s,addFlag:a,removeFlag:l}=px(e&&i?3:0),u=se(!1),f=se(!1),c=tr();return qe(()=>{var p;if(e){if(n&&o(!0),!t){n&&a(3);return}return(p=r==null?void 0:r.start)==null||p.call(r,n),wx(t,{inFlight:u,prepare(){f.current?f.current=!1:f.current=u.current,u.current=!0,!f.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){f.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var h;f.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||o(!1),(h=r==null?void 0:r.end)==null||h.call(r,n))}})}},[e,n,t,c]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function wx(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Pn();return bx(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(vx(e,r))})}),o.dispose}function vx(e,t){var n,r;let i=Pn();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return s.length===0?(t(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function bx(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function Jl(e,t){let n=se([]),r=ue(e);Ie(()=>{let i=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let a=r(t,i);return n.current=t,a}},[r,...t])}function Vs(){return typeof window<"u"}function Si(e){return Eh(e)?(e.nodeName||"").toLowerCase():"#document"}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(Eh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Eh(e){return Vs()?e instanceof Node||e instanceof Gt(e).Node:!1}function Nt(e){return Vs()?e instanceof Element||e instanceof Gt(e).Element:!1}function wn(e){return Vs()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function Jc(e){return!Vs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}function vo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function _x(e){return["table","td","th"].includes(Si(e))}function Hs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ql(e){const t=eu(),n=Nt(e)?fn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function xx(e){let t=Xn(e);for(;wn(t)&&!ci(t);){if(Ql(t))return t;if(Hs(t))return null;t=Xn(t)}return null}function eu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ci(e){return["html","body","#document"].includes(Si(e))}function fn(e){return Gt(e).getComputedStyle(e)}function js(e){return Nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if(Si(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jc(e)&&e.host||bn(e);return Jc(t)?t.host:t}function Ah(e){const t=Xn(e);return ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&vo(t)?t:Ah(t)}function Ji(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Ah(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Gt(i);if(o){const a=nl(s);return t.concat(s,s.visualViewport||[],vo(i)?i:[],a&&n?Ji(a):[])}return t.concat(i,Ji(i,[],n))}function nl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cx(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const Cr=Math.min,vt=Math.max,Qi=Math.round,Io=Math.floor,gn=e=>({x:e,y:e}),Sx={left:"right",right:"left",bottom:"top",top:"bottom"},Ex={start:"end",end:"start"};function Qc(e,t,n){return vt(e,Cr(t,n))}function Ei(e,t){return typeof e=="function"?e(t):e}function Jn(e){return e.split("-")[0]}function bo(e){return e.split("-")[1]}function kh(e){return e==="x"?"y":"x"}function Nh(e){return e==="y"?"height":"width"}function Sr(e){return["top","bottom"].includes(Jn(e))?"y":"x"}function Th(e){return kh(Sr(e))}function Ax(e,t,n){n===void 0&&(n=!1);const r=bo(e),i=Th(e),o=Nh(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=hs(s)),[s,hs(s)]}function kx(e){const t=hs(e);return[rl(e),t,rl(t)]}function rl(e){return e.replace(/start|end/g,t=>Ex[t])}function Nx(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function Tx(e,t,n,r){const i=bo(e);let o=Nx(Jn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(rl)))),o}function hs(e){return e.replace(/left|right|bottom|top/g,t=>Sx[t])}function $x(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mx(e){return typeof e!="number"?$x(e):{top:e,right:e,bottom:e,left:e}}function ps(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ed(e,t,n){let{reference:r,floating:i}=e;const o=Sr(t),s=Th(t),a=Nh(s),l=Jn(t),u=o==="y",f=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-i.width,y:c};break;default:h={x:r.x,y:r.y}}switch(bo(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const Ix=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=ed(u,r,l),p=r,h={},m=0;for(let g=0;g<a.length;g++){const{name:b,fn:x}=a[g],{x:C,y:E,data:$,reset:I}=await x({x:f,y:c,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,c=E??c,h={...h,[b]:{...h[b],...$}},I&&m<=50&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:f,y:c}=ed(u,p,l)),g=-1)}return{x:f,y:c,placement:p,strategy:i,middlewareData:h}};async function Bs(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=Ei(t,e),m=Mx(h),b=a[p?c==="floating"?"reference":"floating":c],x=ps(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),C=c==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),$=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},I=ps(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:E,strategy:l}):C);return{top:(x.top-I.top+m.top)/$.y,bottom:(I.bottom-x.bottom+m.bottom)/$.y,left:(x.left-I.left+m.left)/$.x,right:(I.right-x.right+m.right)/$.x}}const Dx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=Ei(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=Jn(i),C=Sr(a),E=Jn(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=p||(E||!g?[hs(a)]:kx(a)),L=m!=="none";!p&&L&&I.push(...Tx(a,g,m,$));const P=[a,...I],S=await Bs(t,b),_=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&_.push(S[x]),c){const z=Ax(i,s,$);_.push(S[z[0]],S[z[1]])}if(k=[...k,{placement:i,overflows:_}],!_.every(z=>z<=0)){var N,D;const z=(((N=o.flip)==null?void 0:N.index)||0)+1,he=P[z];if(he)return{data:{index:z,overflows:k},reset:{placement:he}};let q=(D=k.filter(W=>W.overflows[0]<=0).sort((W,F)=>W.overflows[1]-F.overflows[1])[0])==null?void 0:D.placement;if(!q)switch(h){case"bestFit":{var O;const W=(O=k.filter(F=>{if(L){const U=Sr(F.placement);return U===C||U==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,j)=>U+j,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:O[0];W&&(q=W);break}case"initialPlacement":q=a;break}if(i!==q)return{reset:{placement:q}}}return{}}}};async function Ox(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Jn(n),a=bo(n),l=Sr(n)==="y",u=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,c=Ei(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*f,y:p*u}:{x:p*u,y:h*f}}const Rx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await Ox(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Fx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x,y:C}=b;return{x,y:C}}},...l}=Ei(e,t),u={x:n,y:r},f=await Bs(t,l),c=Sr(Jn(i)),p=kh(c);let h=u[p],m=u[c];if(o){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=h+f[b],E=h-f[x];h=Qc(C,h,E)}if(s){const b=c==="y"?"top":"left",x=c==="y"?"bottom":"right",C=m+f[b],E=m-f[x];m=Qc(C,m,E)}const g=a.fn({...t,[p]:h,[c]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[c]:s}}}}}},Px=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Ei(e,t),f=await Bs(t,u),c=Jn(i),p=bo(i),h=Sr(i)==="y",{width:m,height:g}=o.floating;let b,x;c==="top"||c==="bottom"?(b=c,x=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=c,b=p==="end"?"top":"bottom");const C=g-f.top-f.bottom,E=m-f.left-f.right,$=Cr(g-f[b],C),I=Cr(m-f[x],E),L=!t.middlewareData.shift;let P=$,S=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=C),L&&!p){const k=vt(f.left,0),N=vt(f.right,0),D=vt(f.top,0),O=vt(f.bottom,0);h?S=m-2*(k!==0||N!==0?k+N:vt(f.left,f.right)):P=g-2*(D!==0||O!==0?D+O:vt(f.top,f.bottom))}await l({...t,availableWidth:S,availableHeight:P});const _=await s.getDimensions(a.floating);return m!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function $h(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Qi(n)!==o||Qi(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function tu(e){return Nt(e)?e:e.contextElement}function Qr(e){const t=tu(e);if(!wn(t))return gn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=$h(t);let s=(o?Qi(n.width):n.width)/r,a=(o?Qi(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Lx=gn(0);function Mh(e){const t=Gt(e);return!eu()||!t.visualViewport?Lx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gt(e)?!1:t}function Er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=tu(e);let s=gn(1);t&&(r?Nt(r)&&(s=Qr(r)):s=Qr(e));const a=Vx(o,n,r)?Mh(o):gn(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,c=i.height/s.y;if(o){const p=Gt(o),h=r&&Nt(r)?Gt(r):r;let m=p,g=nl(m);for(;g&&r&&h!==m;){const b=Qr(g),x=g.getBoundingClientRect(),C=fn(g),E=x.left+(g.clientLeft+parseFloat(C.paddingLeft))*b.x,$=x.top+(g.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,c*=b.y,l+=E,u+=$,m=Gt(g),g=nl(m)}}return ps({width:f,height:c,x:l,y:u})}function nu(e,t){const n=js(e).scrollLeft;return t?t.left+n:Er(bn(e)).left+n}function Ih(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:nu(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Hx(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=bn(r),a=t?Hs(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=gn(1);const f=gn(0),c=wn(r);if((c||!c&&!o)&&((Si(r)!=="body"||vo(s))&&(l=js(r)),wn(r))){const h=Er(r);u=Qr(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!c&&!o?Ih(s,l,!0):gn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function jx(e){return Array.from(e.getClientRects())}function Bx(e){const t=bn(e),n=js(e),r=e.ownerDocument.body,i=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+nu(e);const a=-n.scrollTop;return fn(r).direction==="rtl"&&(s+=vt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Ux(e,t){const n=Gt(e),r=bn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=eu();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Wx(e,t){const n=Er(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=wn(e)?Qr(e):gn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function td(e,t,n){let r;if(t==="viewport")r=Ux(e,n);else if(t==="document")r=Bx(bn(e));else if(Nt(t))r=Wx(t,n);else{const i=Mh(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ps(r)}function Dh(e,t){const n=Xn(e);return n===t||!Nt(n)||ci(n)?!1:fn(n).position==="fixed"||Dh(n,t)}function Gx(e,t){const n=t.get(e);if(n)return n;let r=Ji(e,[],!1).filter(a=>Nt(a)&&Si(a)!=="body"),i=null;const o=fn(e).position==="fixed";let s=o?Xn(e):e;for(;Nt(s)&&!ci(s);){const a=fn(s),l=Ql(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||vo(s)&&!l&&Dh(e,s))?r=r.filter(f=>f!==s):i=a,s=Xn(s)}return t.set(e,r),r}function zx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Hs(t)?[]:Gx(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const c=td(t,f,i);return u.top=vt(c.top,u.top),u.right=Cr(c.right,u.right),u.bottom=Cr(c.bottom,u.bottom),u.left=vt(c.left,u.left),u},td(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qx(e){const{width:t,height:n}=$h(e);return{width:t,height:n}}function Yx(e,t,n){const r=wn(t),i=bn(t),o=n==="fixed",s=Er(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!o)if((Si(t)!=="body"||vo(i))&&(a=js(t)),r){const p=Er(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=nu(i));const u=i&&!r&&!o?Ih(i,a):gn(0),f=s.left+a.scrollLeft-l.x-u.x,c=s.top+a.scrollTop-l.y-u.y;return{x:f,y:c,width:s.width,height:s.height}}function xa(e){return fn(e).position==="static"}function nd(e,t){if(!wn(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return bn(e)===n&&(n=n.ownerDocument.body),n}function Oh(e,t){const n=Gt(e);if(Hs(e))return n;if(!wn(e)){let i=Xn(e);for(;i&&!ci(i);){if(Nt(i)&&!xa(i))return i;i=Xn(i)}return n}let r=nd(e,t);for(;r&&_x(r)&&xa(r);)r=nd(r,t);return r&&ci(r)&&xa(r)&&!Ql(r)?n:r||xx(e)||n}const Zx=async function(e){const t=this.getOffsetParent||Oh,n=this.getDimensions,r=await n(e.floating);return{reference:Yx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Kx(e){return fn(e).direction==="rtl"}const Xx={convertOffsetParentRelativeRectToViewportRelativeRect:Hx,getDocumentElement:bn,getClippingRect:zx,getOffsetParent:Oh,getElementRects:Zx,getClientRects:jx,getDimensions:qx,getScale:Qr,isElement:Nt,isRTL:Kx};function Rh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jx(e,t){let n=null,r;const i=bn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:f,top:c,width:p,height:h}=u;if(a||t(),!p||!h)return;const m=Io(c),g=Io(i.clientWidth-(f+p)),b=Io(i.clientHeight-(c+h)),x=Io(f),E={rootMargin:-m+"px "+-g+"px "+-b+"px "+-x+"px",threshold:vt(0,Cr(1,l))||1};let $=!0;function I(L){const P=L[0].intersectionRatio;if(P!==l){if(!$)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Rh(u,e.getBoundingClientRect())&&s(),$=!1}try{n=new IntersectionObserver(I,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return s(!0),o}function Qx(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=tu(e),f=i||o?[...u?Ji(u):[],...Ji(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const c=u&&a?Jx(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(x=>{let[C]=x;C&&C.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m,g=l?Er(e):null;l&&b();function b(){const x=Er(e);g&&!Rh(g,x)&&n(),g=x,m=requestAnimationFrame(b)}return n(),()=>{var x;f.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),c==null||c(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Ca=Bs,eC=Rx,tC=Fx,nC=Dx,rC=Px,iC=(e,t,n)=>{const r=new Map,i={platform:Xx,...n},o={...i.platform,_c:r};return Ix(e,t,{...i,platform:o})};var Wo=typeof document<"u"?On:Ie;function gs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!gs(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!gs(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Fh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rd(e,t){const n=Fh(e);return Math.round(t*n)/n}function Sa(e){const t=se(e);return Wo(()=>{t.current=e}),t}function oC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,c]=ye({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=ye(r);gs(p,r)||h(r);const[m,g]=ye(null),[b,x]=ye(null),C=Ee(F=>{F!==L.current&&(L.current=F,g(F))},[]),E=Ee(F=>{F!==P.current&&(P.current=F,x(F))},[]),$=o||m,I=s||b,L=se(null),P=se(null),S=se(f),_=l!=null,k=Sa(l),N=Sa(i),D=Sa(u),O=Ee(()=>{if(!L.current||!P.current)return;const F={placement:t,strategy:n,middleware:p};N.current&&(F.platform=N.current),iC(L.current,P.current,F).then(U=>{const j={...U,isPositioned:D.current!==!1};z.current&&!gs(S.current,j)&&(S.current=j,Wt(()=>{c(j)}))})},[p,t,n,N,D]);Wo(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,c(F=>({...F,isPositioned:!1})))},[u]);const z=se(!1);Wo(()=>(z.current=!0,()=>{z.current=!1}),[]),Wo(()=>{if($&&(L.current=$),I&&(P.current=I),$&&I){if(k.current)return k.current($,I,O);O()}},[$,I,O,k,_]);const he=de(()=>({reference:L,floating:P,setReference:C,setFloating:E}),[C,E]),q=de(()=>({reference:$,floating:I}),[$,I]),W=de(()=>{const F={position:n,left:0,top:0};if(!q.floating)return F;const U=rd(q.floating,f.x),j=rd(q.floating,f.y);return a?{...F,transform:"translate("+U+"px, "+j+"px)",...Fh(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:j}},[n,a,q.floating,f.x,f.y]);return de(()=>({...f,update:O,refs:he,elements:q,floatingStyles:W}),[f,O,he,q,W])}const Ph=(e,t)=>({...eC(e),options:[e,t]}),sC=(e,t)=>({...tC(e),options:[e,t]}),aC=(e,t)=>({...nC(e),options:[e,t]}),lC=(e,t)=>({...rC(e),options:[e,t]}),Lh={...Zo},uC=Lh.useInsertionEffect,cC=uC||(e=>e());function Vh(e){const t=se(()=>{});return cC(()=>{t.current=e}),Ee(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var il=typeof document<"u"?On:Ie;let id=!1,dC=0;const od=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+dC++;function fC(){const[e,t]=ye(()=>id?od():void 0);return il(()=>{e==null&&t(od())},[]),Ie(()=>{id=!0},[]),e}const mC=Lh.useId,hC=mC||fC;function pC(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const gC=Je(null),yC=Je(null),wC=()=>{var e;return((e=De(gC))==null?void 0:e.id)||null},vC=()=>De(yC),bC="data-floating-ui-focusable";function _C(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=hC(),o=se({}),[s]=ye(()=>pC()),a=wC()!=null,[l,u]=ye(r.reference),f=Vh((h,m,g)=>{o.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:g,nested:a}),n==null||n(h,m,g)}),c=de(()=>({setPositionReference:u}),[]),p=de(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return de(()=>({dataRef:o,open:t,onOpenChange:f,elements:p,events:s,floatingId:i,refs:c}),[t,f,p,s,i,c])}function xC(e){e===void 0&&(e={});const{nodeId:t}=e,n=_C({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=ye(null),[a,l]=ye(null),f=(i==null?void 0:i.domReference)||o,c=se(null),p=vC();il(()=>{f&&(c.current=f)},[f]);const h=oC({...e,elements:{...i,...a&&{reference:a}}}),m=Ee(E=>{const $=Nt(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l($),h.refs.setReference($)},[h.refs]),g=Ee(E=>{(Nt(E)||E===null)&&(c.current=E,s(E)),(Nt(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!Nt(E))&&h.refs.setReference(E)},[h.refs]),b=de(()=>({...h.refs,setReference:g,setPositionReference:m,domReference:c}),[h.refs,g,m]),x=de(()=>({...h.elements,domReference:f}),[h.elements,f]),C=de(()=>({...h,...r,refs:b,elements:x,nodeId:t}),[h,b,x,t,r]);return il(()=>{r.dataRef.current.floatingContext=C;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=C)}),de(()=>({...h,context:C,refs:b,elements:x}),[h,b,x,C])}const sd="active",ad="selected";function Ea(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[sd]:s,[ad]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[bC]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[u,f]=l;if(!(i&&[sd,ad].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var c;(c=r.get(u))==null||c.push(f),s[u]=function(){for(var p,h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return(p=r.get(u))==null?void 0:p.map(b=>b(...m)).find(b=>b!==void 0)}}}else s[u]=f}),s),{})}}function CC(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),i=Ee(a=>Ea(a,e,"reference"),t),o=Ee(a=>Ea(a,e,"floating"),n),s=Ee(a=>Ea(a,e,"item"),r);return de(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function ld(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const SC=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:u,...f}=Ei(e,t),{rects:c,elements:{floating:p}}=t,h=n.current[s],m=(u==null?void 0:u.current)||p,g=p.clientTop||m.clientTop,b=p.clientTop!==0,x=m.clientTop!==0,C=p===m;if(!h)return{};const E={...t,...await Ph(-h.offsetTop-p.clientTop-c.reference.height/2-h.offsetHeight/2-o).fn(t)},$=await Ca(ld(E,m.scrollHeight+g+p.clientTop),f),I=await Ca(E,{...f,elementContext:"reference"}),L=vt(0,$.top),P=E.y+L,k=(m.scrollHeight>m.clientHeight?N=>N:Qi)(vt(0,m.scrollHeight+(b&&C||x?g*2:0)-L-vt(0,$.bottom)));if(m.style.maxHeight=k+"px",m.scrollTop=L,i){const N=m.offsetHeight<h.offsetHeight*Cr(a,n.current.length)-1||I.top>=-l||I.bottom>=-l;Wt(()=>i(N))}return r&&(r.current=await Ca(ld({...E,y:P},m.offsetHeight+g+p.clientTop),f)),{y:P}}});function EC(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=Vh(a),u=se(!1),f=se(null),c=se(null);Ie(()=>{if(!i)return;function h(g){if(g.ctrlKey||!m||o.current==null)return;const b=g.deltaY,x=o.current.top>=-.5,C=o.current.bottom>=-.5,E=m.scrollHeight-m.clientHeight,$=b<0?-1:1,I=b<0?"max":"min";m.scrollHeight<=m.clientHeight||(!x&&b>0||!C&&b<0?(g.preventDefault(),Wt(()=>{l(L=>L+Math[I](b,E*$))})):/firefox/i.test(Cx())&&(m.scrollTop+=b))}const m=(s==null?void 0:s.current)||r.floating;if(n&&m)return m.addEventListener("wheel",h),requestAnimationFrame(()=>{f.current=m.scrollTop,o.current!=null&&(c.current={...o.current})}),()=>{f.current=null,c.current=null,m.removeEventListener("wheel",h)}},[i,n,r.floating,o,s,l]);const p=de(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const h=(s==null?void 0:s.current)||r.floating;if(!(!o.current||!h||!u.current)){if(f.current!==null){const m=h.scrollTop-f.current;(o.current.bottom<-.5&&m<-1||o.current.top<-.5&&m>1)&&Wt(()=>l(g=>g+m))}requestAnimationFrame(()=>{f.current=h.scrollTop})}}}),[r.floating,l,o,s]);return de(()=>i?{floating:p}:{},[i,p])}let Ai=Je({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ai.displayName="FloatingContext";let ru=Je(null);ru.displayName="PlacementContext";function AC(e){return de(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function kC(){return De(Ai).setReference}function NC(){return De(Ai).getReferenceProps}function TC(){let{getFloatingProps:e,slot:t}=De(Ai);return Ee((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function $C(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=De(ru),n=de(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);qe(()=>{t==null||t(n??null)},[t,n]);let r=De(Ai);return de(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let ud=4;function MC({children:e,enabled:t=!0}){let[n,r]=ye(null),[i,o]=ye(0),s=se(null),[a,l]=ye(null);IC(a);let u=t&&n!==null&&a!==null,{to:f="bottom",gap:c=0,offset:p=0,padding:h=0,inner:m}=DC(n,a),[g,b="center"]=f.split(" ");qe(()=>{u&&o(0)},[u]);let{refs:x,floatingStyles:C,context:E}=xC({open:u,placement:g==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${g}`:`${g}-${b}`,strategy:"absolute",transform:!1,middleware:[Ph({mainAxis:g==="selection"?0:c,crossAxis:p}),sC({padding:h}),g!=="selection"&&aC({padding:h}),g==="selection"&&m?SC({...m,padding:h,overflowRef:s,offset:i,minItemsVisible:ud,referenceOverflowThreshold:h,onFallbackChange(N){var D,O;if(!N)return;let z=E.elements.floating;if(!z)return;let he=parseFloat(getComputedStyle(z).scrollPaddingBottom)||0,q=Math.min(ud,z.childElementCount),W=0,F=0;for(let U of(O=(D=E.elements.floating)==null?void 0:D.childNodes)!=null?O:[])if(U instanceof HTMLElement){let j=U.offsetTop,fe=j+U.clientHeight+he,J=z.scrollTop,R=J+z.clientHeight;if(j>=J&&fe<=R)q--;else{F=Math.max(0,Math.min(fe,R)-Math.max(j,J)),W=U.clientHeight;break}}q>=1&&o(U=>{let j=W*q-F+he;return U>=j?U:j})}}):null,lC({padding:h,apply({availableWidth:N,availableHeight:D,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${D}px)`})}})].filter(Boolean),whileElementsMounted:Qx}),[$=g,I=b]=E.placement.split("-");g==="selection"&&($="selection");let L=de(()=>({anchor:[$,I].filter(Boolean).join(" ")}),[$,I]),P=EC(E,{overflowRef:s,onChange:o}),{getReferenceProps:S,getFloatingProps:_}=CC([P]),k=ue(N=>{l(N),x.setFloating(N)});return d(ru.Provider,{value:r},d(Ai.Provider,{value:{setFloating:k,setReference:x.setReference,styles:C,getReferenceProps:S,getFloatingProps:_,slot:L}},e))}function IC(e){qe(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function DC(e,t){var n,r,i;let o=Aa((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Aa((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Aa((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Aa(e,t,n=void 0){let r=tr(),i=ue((l,u)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[n,null];let f=cd(l,u);return[f,c=>{let p=Hh(l);{let h=p.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let g=!1;for(let[x,C]of p.entries()){let E=window.getComputedStyle(u).getPropertyValue(C);if(h[x]!==E){h[x]=E,g=!0;break}}if(!g)return;let b=cd(l,u);f!==b&&(c(b),f=b)})}return r.dispose}]}return[n,null]}),o=de(()=>i(e,t)[0],[e,t]),[s=o,a]=ye();return qe(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function Hh(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...Hh(i)]:[r]}return[]}function cd(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function OC(e,t){let[n,r]=ye(t);return!e&&n!==t&&r(t),e?n:t}let Us=Je(null);Us.displayName="OpenClosedContext";var Tt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Tt||{});function _o(){return De(Us)}function jh({value:e,children:t}){return K.createElement(Us.Provider,{value:e},t)}function RC({children:e}){return K.createElement(Us.Provider,{value:null},e)}function FC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Hn=[];FC(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Hn[0]===t.target)return;let n=t.target;n=n.closest(ms),Hn.unshift(n??t.target),Hn=Hn.filter(r=>r!=null&&r.isConnected),Hn.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 PC(e){throw new Error("Unexpected object: "+e)}var ut=(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))(ut||{});function ka(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{i===-1&&(i=n.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:PC(e)}}function Bh(e){let t=ue(e),n=se(!1);Ie(()=>(n.current=!1,()=>{n.current=!0,Fs(()=>{n.current&&t()})}),[t])}function LC(){let e=typeof document>"u";return"useSyncExternalStore"in Zo?(t=>t.useSyncExternalStore)(Zo)(()=>()=>{},()=>!1,()=>!e):!1}function xo(){let e=LC(),[t,n]=ye(gr.isHandoffComplete);return t&&gr.isHandoffComplete===!1&&n(!1),Ie(()=>{t!==!0&&n(!0)},[t]),Ie(()=>gr.handoff(),[]),e?!1:t}let Uh=Je(!1);function VC(){return De(Uh)}function dd(e){return K.createElement(Uh.Provider,{value:e.force},e.children)}function HC(e){let t=VC(),n=De(Gh),r=Ci(e),[i,o]=ye(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(gr.isServer)return null;let a=r==null?void 0:r.getElementById("headlessui-portal-root");if(a)return a;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return Ie(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),Ie(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let Wh=Ue,jC=at(function(e,t){let n=e,r=se(null),i=St(D2(c=>{r.current=c}),t),o=Ci(r),s=HC(r),[a]=ye(()=>{var c;return gr.isServer?null:(c=o==null?void 0:o.createElement("div"))!=null?c:null}),l=De(ol),u=xo();qe(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),qe(()=>{if(a&&l)return l.register(a)},[l,a]),Bh(()=>{var c;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))});let f=pt();return u?!s||!a?null:_s(f({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Wh,name:"Portal"}),a):null});function BC(e,t){let n=St(t),{enabled:r=!0,...i}=e,o=pt();return r?K.createElement(jC,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Wh,name:"Portal"})}let UC=Ue,Gh=Je(null);function WC(e,t){let{target:n,...r}=e,i={ref:St(t)},o=pt();return K.createElement(Gh.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:UC,name:"Popover.Group"}))}let ol=Je(null);function GC(){let e=De(ol),t=se([]),n=ue(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ue(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=de(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,de(()=>function({children:o}){return K.createElement(ol.Provider,{value:i},o)},[i])]}let zC=at(BC),zh=at(WC),qh=Object.assign(zC,{Group:zh});function qC(e,t=typeof document<"u"?document.defaultView:null,n){let r=xi(e,"escape");_h(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===lt.Escape&&n(i))})}function YC(){var e;let[t]=ye(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ye((e=t==null?void 0:t.matches)!=null?e:!1);return qe(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function ZC({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Ci(n),i=ue(()=>{var o,s;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"current"in l&&l.current instanceof HTMLElement&&a.push(l.current));if(t!=null&&t.current)for(let l of t.current)a.push(l);for(let l of(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((s=n==null?void 0:n.getRootNode())==null?void 0:s.host))||a.some(u=>l.contains(u))||a.push(l));return a});return{resolveContainers:i,contains:ue(o=>i().some(s=>s.contains(o)))}}let Yh=Je(null);function fd({children:e,node:t}){let[n,r]=ye(null),i=Zh(t??n);return K.createElement(Yh.Provider,{value:i},e,i===null&&K.createElement(Xi,{features:ui.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=_i(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){r(l);break}}}}))}function Zh(e=null){var t;return(t=De(Yh))!=null?t:e}function iu(){let e=se(!1);return qe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Hi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Hi||{});function KC(){let e=se(0);return vh(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Kh(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let XC="div";var dr=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(dr||{});function JC(e,t){let n=se(null),r=St(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;xo()||(a=0);let u=Ci(n);n3(a,{ownerDocument:u});let f=r3(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});i3(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:f});let c=KC(),p=ue(C=>{let E=n.current;E&&($=>$())(()=>{Dt(c.current,{[Hi.Forwards]:()=>{Jr(E,ln.First,{skipElements:[C.relatedTarget,o]})},[Hi.Backwards]:()=>{Jr(E,ln.Last,{skipElements:[C.relatedTarget,o]})}})})}),h=xi(!!(a&2),"focus-trap#tab-lock"),m=tr(),g=se(!1),b={ref:r,onKeyDown(C){C.key=="Tab"&&(g.current=!0,m.requestAnimationFrame(()=>{g.current=!1}))},onBlur(C){if(!(a&4))return;let E=Kh(s);n.current instanceof HTMLElement&&E.add(n.current);let $=C.relatedTarget;$ instanceof HTMLElement&&$.dataset.headlessuiFocusGuard!=="true"&&(Xh(E,$)||(g.current?Jr(n.current,Dt(c.current,{[Hi.Forwards]:()=>ln.Next,[Hi.Backwards]:()=>ln.Previous})|ln.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&Mn(C.target)))}},x=pt();return K.createElement(K.Fragment,null,h&&K.createElement(Xi,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ui.Focusable}),x({ourProps:b,theirProps:l,defaultTag:XC,name:"FocusTrap"}),h&&K.createElement(Xi,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ui.Focusable}))}let QC=at(JC),e3=Object.assign(QC,{features:dr});function t3(e=!0){let t=se(Hn.slice());return Jl(([n],[r])=>{r===!0&&n===!1&&Fs(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Hn.slice())},[e,Hn,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function n3(e,{ownerDocument:t}){let n=!!(e&8),r=t3(n);Jl(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Mn(r())},[n]),Bh(()=>{n&&Mn(r())})}function r3(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=se(null),s=xi(!!(e&1),"focus-trap#initial-focus"),a=iu();return Jl(()=>{if(e===0)return;if(!s){i!=null&&i.current&&Mn(i.current);return}let l=n.current;l&&Fs(()=>{if(!a.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){o.current=u;return}}else if(l.contains(u)){o.current=u;return}if(r!=null&&r.current)Mn(r.current);else{if(e&16){if(Jr(l,ln.First|ln.AutoFocus)!==tl.Error)return}else if(Jr(l,ln.First)!==tl.Error)return;if(i!=null&&i.current&&(Mn(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,s,e]),o}function i3(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=iu(),s=!!(e&4);_h(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=Kh(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let f=a.target;f&&f instanceof HTMLElement?Xh(l,f)?(i.current=f,Mn(f)):(a.preventDefault(),a.stopPropagation(),Mn(u)):Mn(i.current)},!0)}function Xh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Jh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:e0)!==Ue||K.Children.count(e.children)===1}let Ws=Je(null);Ws.displayName="TransitionContext";var o3=(e=>(e.Visible="visible",e.Hidden="hidden",e))(o3||{});function s3(){let e=De(Ws);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function a3(){let e=De(Gs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Gs=Je(null);Gs.displayName="NestingContext";function zs(e){return"children"in e?zs(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Qh(e,t){let n=nr(e),r=se([]),i=iu(),o=tr(),s=ue((h,m=Wn.Hidden)=>{let g=r.current.findIndex(({el:b})=>b===h);g!==-1&&(Dt(m,{[Wn.Unmount](){r.current.splice(g,1)},[Wn.Hidden](){r.current[g].state="hidden"}}),o.microTask(()=>{var b;!zs(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=ue(h=>{let m=r.current.find(({el:g})=>g===h);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,Wn.Unmount)}),l=se([]),u=se(Promise.resolve()),f=se({enter:[],leave:[]}),c=ue((h,m,g)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([b])=>b!==h)),t==null||t.chains.current[m].push([h,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[m].push([h,new Promise(b=>{Promise.all(f.current[m].map(([x,C])=>C)).then(()=>b())})]),m==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(m)):g(m)}),p=ue((h,m,g)=>{Promise.all(f.current[m].splice(0).map(([b,x])=>x)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>g(m))});return de(()=>({children:r,register:a,unregister:s,onStart:c,onStop:p,wait:u,chains:f}),[a,s,r,c,p,f,u])}let e0=Ue,t0=li.RenderStrategy;function l3(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:f,enterTo:c,entered:p,leave:h,leaveFrom:m,leaveTo:g,...b}=e,[x,C]=ye(null),E=se(null),$=Jh(e),I=St(...$?[E,t,C]:t===null?[]:[t]),L=(n=b.unmount)==null||n?Wn.Unmount:Wn.Hidden,{show:P,appear:S,initial:_}=s3(),[k,N]=ye(P?"visible":"hidden"),D=a3(),{register:O,unregister:z}=D;qe(()=>O(E),[O,E]),qe(()=>{if(L===Wn.Hidden&&E.current){if(P&&k!=="visible"){N("visible");return}return Dt(k,{hidden:()=>z(E),visible:()=>O(E)})}},[k,E,O,z,P,L]);let he=xo();qe(()=>{if($&&he&&k==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,k,he,$]);let q=_&&!S,W=S&&P&&_,F=se(!1),U=Qh(()=>{F.current||(N("hidden"),z(E))},D),j=ue(Oe=>{F.current=!0;let ie=Oe?"enter":"leave";U.onStart(E,ie,we=>{we==="enter"?o==null||o():we==="leave"&&(a==null||a())})}),fe=ue(Oe=>{let ie=Oe?"enter":"leave";F.current=!1,U.onStop(E,ie,we=>{we==="enter"?s==null||s():we==="leave"&&(l==null||l())}),ie==="leave"&&!zs(U)&&(N("hidden"),z(E))});Ie(()=>{$&&i||(j(P),fe(P))},[P,$,i]);let J=!(!i||!$||!he||q),[,R]=Sh(J,x,P,{start:j,end:fe}),ee=Vn({ref:I,className:((r=Qa(b.className,W&&u,W&&f,R.enter&&u,R.enter&&R.closed&&f,R.enter&&!R.closed&&c,R.leave&&h,R.leave&&!R.closed&&m,R.leave&&R.closed&&g,!R.transition&&P&&p))==null?void 0:r.trim())||void 0,...Ch(R)}),le=0;k==="visible"&&(le|=Tt.Open),k==="hidden"&&(le|=Tt.Closed),R.enter&&(le|=Tt.Opening),R.leave&&(le|=Tt.Closing);let Te=pt();return K.createElement(Gs.Provider,{value:U},K.createElement(jh,{value:le},Te({ourProps:ee,theirProps:b,defaultTag:e0,features:t0,visible:k==="visible",name:"Transition.Child"})))}function u3(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=se(null),a=Jh(e),l=St(...a?[s,t]:t===null?[]:[t]);xo();let u=_o();if(n===void 0&&u!==null&&(n=(u&Tt.Open)===Tt.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,c]=ye(n?"visible":"hidden"),p=Qh(()=>{n||c("hidden")}),[h,m]=ye(!0),g=se([n]);qe(()=>{h!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),m(!1))},[g,n]);let b=de(()=>({show:n,appear:r,initial:h}),[n,r,h]);qe(()=>{n?c("visible"):!zs(p)&&s.current!==null&&c("hidden")},[n,p]);let x={unmount:i},C=ue(()=>{var I;h&&m(!1),(I=e.beforeEnter)==null||I.call(e)}),E=ue(()=>{var I;h&&m(!1),(I=e.beforeLeave)==null||I.call(e)}),$=pt();return K.createElement(Gs.Provider,{value:p},K.createElement(Ws.Provider,{value:b},$({ourProps:{...x,as:Ue,children:K.createElement(n0,{ref:l,...x,...o,beforeEnter:C,beforeLeave:E})},theirProps:{},defaultTag:Ue,features:t0,visible:f==="visible",name:"Transition"})))}function c3(e,t){let n=De(Ws)!==null,r=_o()!==null;return K.createElement(K.Fragment,null,!n&&r?K.createElement(sl,{ref:t,...e}):K.createElement(n0,{ref:t,...e}))}let sl=at(u3),n0=at(l3),ou=at(c3),d3=Object.assign(sl,{Child:ou,Root:sl});var f3=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(f3||{}),m3=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(m3||{});let h3={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},su=Je(null);su.displayName="DialogContext";function qs(e){let t=De(su);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,qs),n}return t}function p3(e,t){return Dt(t.type,h3,e,t)}let md=at(function(e,t){let n=Jt(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:f=!1,...c}=e,p=se(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(p.current||(p.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=_o();i===void 0&&h!==null&&(i=(h&Tt.Open)===Tt.Open);let m=se(null),g=St(m,t),b=Ci(m),x=i?0:1,[C,E]=kr(p3,{titleId:null,descriptionId:null,panelRef:vs()}),$=ue(()=>o(!1)),I=ue(fe=>E({type:0,id:fe})),L=xo()?x===0:!1,[P,S]=GC(),_={get current(){var fe;return(fe=C.panelRef.current)!=null?fe:m.current}},k=Zh(),{resolveContainers:N}=ZC({mainTreeNode:k,portals:P,defaultContainers:[_]}),D=h!==null?(h&Tt.Closing)===Tt.Closing:!1;mh(u||D?!1:L,{allowed:ue(()=>{var fe,J;return[(J=(fe=m.current)==null?void 0:fe.closest("[data-headlessui-portal]"))!=null?J:null]}),disallowed:ue(()=>{var fe;return[(fe=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?fe:null]})}),bh(L,N,fe=>{fe.preventDefault(),$()}),qC(L,b==null?void 0:b.defaultView,fe=>{fe.preventDefault(),fe.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),xh(u||D?!1:L,b,N),hh(L,m,$);let[O,z]=R2(),he=de(()=>[{dialogState:x,close:$,setTitleId:I,unmount:f},C],[x,C,$,I,f]),q=de(()=>({open:x===0}),[x]),W={ref:g,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:x===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":O,unmount:f},F=!YC(),U=dr.None;L&&!u&&(U|=dr.RestoreFocus,U|=dr.TabLock,l&&(U|=dr.AutoFocus),F&&(U|=dr.InitialFocus));let j=pt();return K.createElement(RC,null,K.createElement(dd,{force:!0},K.createElement(qh,null,K.createElement(su.Provider,{value:he},K.createElement(zh,{target:m},K.createElement(dd,{force:!1},K.createElement(z,{slot:q},K.createElement(S,null,K.createElement(e3,{initialFocus:s,initialFocusFallback:m,containers:N,features:U},K.createElement(z2,{value:$},j({ourProps:W,theirProps:c,slot:q,defaultTag:g3,features:y3,visible:x===0,name:"Dialog"})))))))))))}),g3="div",y3=li.RenderStrategy|li.Static;function w3(e,t){let{transition:n=!1,open:r,...i}=e,o=_o(),s=e.hasOwnProperty("open")||o!==null,a=e.hasOwnProperty("onClose");if(!s&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?K.createElement(fd,null,K.createElement(d3,{show:r,transition:n,unmount:i.unmount},K.createElement(md,{ref:t,...i}))):K.createElement(fd,null,K.createElement(md,{ref:t,open:r,...i}))}let v3="div";function b3(e,t){let n=Jt(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=qs("Dialog.Panel"),u=St(t,l.panelRef),f=de(()=>({open:s===0}),[s]),c=ue(b=>{b.stopPropagation()}),p={ref:u,id:r,onClick:c},h=i?ou:Ue,m=i?{unmount:a}:{},g=pt();return K.createElement(h,{...m},g({ourProps:p,theirProps:o,slot:f,defaultTag:v3,name:"Dialog.Panel"}))}let _3="div";function x3(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=qs("Dialog.Backdrop"),s=de(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?ou:Ue,u=n?{unmount:o}:{},f=pt();return K.createElement(l,{...u},f({ourProps:a,theirProps:r,slot:s,defaultTag:_3,name:"Dialog.Backdrop"}))}let C3="h2";function S3(e,t){let n=Jt(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=qs("Dialog.Title"),a=St(t);Ie(()=>(s(r),()=>s(null)),[r,s]);let l=de(()=>({open:o===0}),[o]),u={ref:a,id:r};return pt()({ourProps:u,theirProps:i,slot:l,defaultTag:C3,name:"Dialog.Title"})}let E3=at(w3),A3=at(b3),k3=at(x3),N3=at(S3),r0=Object.assign(E3,{Panel:A3,Title:N3,Description:V2});function T3(e,t){let n=se({left:0,top:0});if(qe(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let hd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function pd(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return hd.test(s)&&(s=s.replace(hd,"")),s}function $3(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():pd(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return pd(e).trim()}function M3(e){let t=se(""),n=se("");return ue(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=$3(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var I3=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(I3||{}),D3=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(D3||{}),O3=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(O3||{}),R3=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(R3||{});function Na(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=yh(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let F3={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,i,o,s;if(e.dataRef.current.disabled||e.listboxState===1)return e;let a={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===ut.Nothing)return{...a,activeOptionIndex:null};if(t.focus===ut.Specific)return{...a,activeOptionIndex:e.options.findIndex(f=>f.id===t.id)};if(t.focus===ut.Previous){let f=e.activeOptionIndex;if(f!==null){let c=e.options[f].dataRef.current.domRef,p=ka(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((r=c.current)==null?void 0:r.previousElementSibling)===h.current||((i=h.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:p}}}}else if(t.focus===ut.Next){let f=e.activeOptionIndex;if(f!==null){let c=e.options[f].dataRef.current.domRef,p=ka(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((o=c.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=Na(e),u=ka(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled});return{...a,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(r))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Na(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Na(e,r=>{let i=r.findIndex(o=>o.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},au=Je(null);au.displayName="ListboxActionsContext";function Ys(e){let t=De(au);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ys),n}return t}let Zs=Je(null);Zs.displayName="ListboxDataContext";function Co(e){let t=De(Zs);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Co),n}return t}function P3(e,t){return Dt(t.type,F3,e,t)}let L3=Ue;function V3(e,t){var n;let r=Kl(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:f=!1,disabled:c=r||!1,horizontal:p=!1,multiple:h=!1,__demoMode:m=!1,...g}=e;const b=p?"horizontal":"vertical";let x=St(t),C=x2(o),[E=h?[]:void 0,$]=_2(i,l,C),[I,L]=kr(P3,{dataRef:vs(),listboxState:m?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:m}),P=se({static:!1,hold:!1}),S=se(new Map),_=Y2(u),k=Ee(B=>Dt(N.mode,{1:()=>E.some(Q=>_(Q,B)),0:()=>_(E,B)}),[E]),N=de(()=>({...I,value:E,disabled:c,invalid:f,mode:h?1:0,orientation:b,compare:_,isSelected:k,optionsPropsRef:P,listRef:S}),[E,c,f,h,I,S]);qe(()=>{I.dataRef.current=N},[N]);let D=N.listboxState===0;bh(D,[N.buttonElement,N.optionsElement],(B,Q)=>{var G;L({type:1}),gh(Q,Xl.Loose)||(B.preventDefault(),(G=N.buttonElement)==null||G.focus())});let O=de(()=>({open:N.listboxState===0,disabled:c,invalid:f,value:E}),[N,c,E,f]),z=ue(B=>{let Q=N.options.find(G=>G.id===B);Q&&fe(Q.dataRef.current.value)}),he=ue(()=>{if(N.activeOptionIndex!==null){let{dataRef:B,id:Q}=N.options[N.activeOptionIndex];fe(B.current.value),L({type:2,focus:ut.Specific,id:Q})}}),q=ue(()=>L({type:0})),W=ue(()=>L({type:1})),F=tr(),U=ue((B,Q,G)=>{F.dispose(),F.microTask(()=>B===ut.Specific?L({type:2,focus:ut.Specific,id:Q,trigger:G}):L({type:2,focus:B,trigger:G}))}),j=ue((B,Q)=>(L({type:5,id:B,dataRef:Q}),()=>L({type:6,id:B}))),fe=ue(B=>Dt(N.mode,{0(){return $==null?void 0:$(B)},1(){let Q=N.value.slice(),G=Q.findIndex(te=>_(te,B));return G===-1?Q.push(B):Q.splice(G,1),$==null?void 0:$(Q)}})),J=ue(B=>L({type:3,value:B})),R=ue(()=>L({type:4})),ee=ue(B=>{L({type:7,element:B})}),le=ue(B=>{L({type:8,element:B})}),Te=de(()=>({onChange:fe,registerOption:j,goToOption:U,closeListbox:W,openListbox:q,selectActiveOption:he,selectOption:z,search:J,clearSearch:R,setButtonElement:ee,setOptionsElement:le}),[]),[Oe,ie]=H2({inherit:!0}),we={ref:x},Y=Ee(()=>{if(C!==void 0)return $==null?void 0:$(C)},[$,C]),ae=pt();return K.createElement(ie,{value:Oe,props:{htmlFor:(n=N.buttonElement)==null?void 0:n.id},slot:{open:N.listboxState===0,disabled:c}},K.createElement(MC,null,K.createElement(au.Provider,{value:Te},K.createElement(Zs.Provider,{value:N},K.createElement(jh,{value:Dt(N.listboxState,{0:Tt.Open,1:Tt.Closed})},a!=null&&E!=null&&K.createElement(N2,{disabled:c,data:{[a]:E},form:s,onReset:Y}),ae({ourProps:we,theirProps:g,slot:O,defaultTag:L3,name:"Listbox"}))))))}let H3="button";function j3(e,t){var n;let r=Co("Listbox.Button"),i=Ys("Listbox.Button"),o=Jt(),s=sh(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...f}=e,c=St(t,kC(),i.setButtonElement),p=NC(),h=ue(N=>{switch(N.key){case lt.Enter:C2(N.currentTarget);break;case lt.Space:case lt.ArrowDown:N.preventDefault(),Wt(()=>i.openListbox()),r.value||i.goToOption(ut.First);break;case lt.ArrowUp:N.preventDefault(),Wt(()=>i.openListbox()),r.value||i.goToOption(ut.Last);break}}),m=ue(N=>{switch(N.key){case lt.Space:N.preventDefault();break}}),g=ue(N=>{var D;if(M2(N.currentTarget))return N.preventDefault();r.listboxState===0?(Wt(()=>i.closeListbox()),(D=r.buttonElement)==null||D.focus({preventScroll:!0})):(N.preventDefault(),i.openListbox())}),b=ue(N=>N.preventDefault()),x=ch([a]),C=O2(),{isFocusVisible:E,focusProps:$}=u2({autoFocus:u}),{isHovered:I,hoverProps:L}=l2({isDisabled:l}),{pressed:P,pressProps:S}=p2({disabled:l}),_=de(()=>({open:r.listboxState===0,active:P||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:I,focus:E,autofocus:u}),[r.listboxState,r.value,l,I,E,P,r.invalid,u]),k=nh(p(),{ref:c,id:a,type:lx(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":x,"aria-describedby":C,disabled:l||void 0,autoFocus:u,onKeyDown:h,onKeyUp:m,onKeyPress:b,onClick:g},$,L,S);return pt()({ourProps:k,theirProps:f,slot:_,defaultTag:H3,name:"Listbox.Button"})}let i0=Je(!1),B3="div",U3=li.RenderStrategy|li.Static;function W3(e,t){var n,r;let i=Jt(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...f}=e,c=AC(s),[p,h]=ye(null);c&&(a=!0);let m=Co("Listbox.Options"),g=Ys("Listbox.Options"),b=Ci(m.optionsElement),x=_o(),[C,E]=Sh(u,p,x!==null?(x&Tt.Open)===Tt.Open:m.listboxState===0);hh(C,m.buttonElement,g.closeListbox);let $=m.__demoMode?!1:l&&m.listboxState===0;xh($,b);let I=m.__demoMode?!1:l&&m.listboxState===0;mh(I,{allowed:Ee(()=>[m.buttonElement,m.optionsElement],[m.buttonElement,m.optionsElement])});let L=m.listboxState!==0,P=T3(L,m.buttonElement)?!1:C,S=C&&m.listboxState===1,_=OC(S,m.value),k=ue(R=>m.compare(_,R)),N=de(()=>{var R;if(c==null||!((R=c==null?void 0:c.to)!=null&&R.includes("selection")))return null;let ee=m.options.findIndex(le=>k(le.dataRef.current.value));return ee===-1&&(ee=0),ee},[c,m.options]),D=(()=>{if(c==null)return;if(N===null)return{...c,inner:void 0};let R=Array.from(m.listRef.current.values());return{...c,inner:{listRef:{current:R},index:N}}})(),[O,z]=$C(D),he=TC(),q=St(t,c?O:null,g.setOptionsElement,h),W=tr();Ie(()=>{var R;let ee=m.optionsElement;ee&&m.listboxState===0&&ee!==((R=_i(ee))==null?void 0:R.activeElement)&&(ee==null||ee.focus({preventScroll:!0}))},[m.listboxState,m.optionsElement]);let F=ue(R=>{var ee,le;switch(W.dispose(),R.key){case lt.Space:if(m.searchQuery!=="")return R.preventDefault(),R.stopPropagation(),g.search(R.key);case lt.Enter:if(R.preventDefault(),R.stopPropagation(),m.activeOptionIndex!==null){let{dataRef:Te}=m.options[m.activeOptionIndex];g.onChange(Te.current.value)}m.mode===0&&(Wt(()=>g.closeListbox()),(ee=m.buttonElement)==null||ee.focus({preventScroll:!0}));break;case Dt(m.orientation,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return R.preventDefault(),R.stopPropagation(),g.goToOption(ut.Next);case Dt(m.orientation,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return R.preventDefault(),R.stopPropagation(),g.goToOption(ut.Previous);case lt.Home:case lt.PageUp:return R.preventDefault(),R.stopPropagation(),g.goToOption(ut.First);case lt.End:case lt.PageDown:return R.preventDefault(),R.stopPropagation(),g.goToOption(ut.Last);case lt.Escape:R.preventDefault(),R.stopPropagation(),Wt(()=>g.closeListbox()),(le=m.buttonElement)==null||le.focus({preventScroll:!0});return;case lt.Tab:R.preventDefault(),R.stopPropagation(),Wt(()=>g.closeListbox()),ox(m.buttonElement,R.shiftKey?ln.Previous:ln.Next);break;default:R.key.length===1&&(g.search(R.key),W.setTimeout(()=>g.clearSearch(),350));break}}),U=(n=m.buttonElement)==null?void 0:n.id,j=de(()=>({open:m.listboxState===0}),[m.listboxState]),fe=nh(c?he():{},{id:o,ref:q,"aria-activedescendant":m.activeOptionIndex===null||(r=m.options[m.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":m.mode===1?!0:void 0,"aria-labelledby":U,"aria-orientation":m.orientation,onKeyDown:F,role:"listbox",tabIndex:m.listboxState===0?0:void 0,style:{...f.style,...z,"--button-width":K2(m.buttonElement,!0).width},...Ch(E)}),J=pt();return K.createElement(qh,{enabled:a?e.static||C:!1},K.createElement(Zs.Provider,{value:m.mode===1?m:{...m,isSelected:k}},J({ourProps:fe,theirProps:f,slot:j,defaultTag:B3,features:U3,visible:P,name:"Listbox.Options"})))}let G3="div";function z3(e,t){let n=Jt(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=De(i0)===!0,l=Co("Listbox.Option"),u=Ys("Listbox.Option"),f=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,c=l.isSelected(o),p=se(null),h=M3(p),m=nr({disabled:i,value:o,domRef:p,get textValue(){return h()}}),g=St(t,p,_=>{_?l.listRef.current.set(r,_):l.listRef.current.delete(r)});qe(()=>{if(!l.__demoMode&&l.listboxState===0&&f&&l.activationTrigger!==0)return Pn().requestAnimationFrame(()=>{var _,k;(k=(_=p.current)==null?void 0:_.scrollIntoView)==null||k.call(_,{block:"nearest"})})},[p,f,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),qe(()=>{if(!a)return u.registerOption(r,m)},[m,r,a]);let b=ue(_=>{var k;if(i)return _.preventDefault();u.onChange(o),l.mode===0&&(Wt(()=>u.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),x=ue(()=>{if(i)return u.goToOption(ut.Nothing);u.goToOption(ut.Specific,r)}),C=hx(),E=ue(_=>{C.update(_),!i&&(f||u.goToOption(ut.Specific,r,0))}),$=ue(_=>{C.wasMoved(_)&&(i||f||u.goToOption(ut.Specific,r,0))}),I=ue(_=>{C.wasMoved(_)&&(i||f&&u.goToOption(ut.Nothing))}),L=de(()=>({active:f,focus:f,selected:c,disabled:i,selectedOption:c&&a}),[f,c,i,a]),P=a?{}:{id:r,ref:g,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":c,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:E,onMouseEnter:E,onPointerMove:$,onMouseMove:$,onPointerLeave:I,onMouseLeave:I},S=pt();return!c&&a?null:S({ourProps:P,theirProps:s,slot:L,defaultTag:G3,name:"Listbox.Option"})}let q3=Ue;function Y3(e,t){let{options:n,placeholder:r,...i}=e,o={ref:St(t)},s=Co("ListboxSelectedOption"),a=de(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=pt();return K.createElement(i0.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:K.createElement(K.Fragment,null,r&&l?r:n)},slot:a,defaultTag:q3,name:"ListboxSelectedOption"}))}let Z3=at(V3),o0=at(j3),K3=W2,s0=at(W3),a0=at(z3),X3=at(Y3),J3=Object.assign(Z3,{Button:o0,Label:K3,Options:s0,Option:a0,SelectedOption:X3}),Kt=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Ks(e){return d(r0,$r(e,1))}class Xs extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Js(e){return d(r0.Panel,$r(e,1))}class Qs extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function ea(e){return d(k3,$r(e,1))}function ta(e,t){let n;return d("svg",y(w([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",v.Children.toArray(Array.from(n))])])))}function Q3(e,t){let n,r,i,o,s;return Ks(w([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ea(me(new Qs(2,["fixed inset-0 bg-gray-500/50"]))),d("div",y(w([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Js(me(new Xs(2,[[d("div",y(w([["className","flex flex-col mt-6 mb-6 px-6"],(r=[d("div",y(w([["className","flex flex-row justify-between"],(i=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),d("button",y(w([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[ta(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),d("div",y(w([["className","text-sm text-gray-600 pt-6"],(s="Mapping involves pairing each incoming CSV field with its correct destination field. This step is important because it makes sure that your data is organised correctly, minimising the risk of errors and ensuring a smooth import process.",["children",s])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function na(e){return d("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function ra(e){return d("span",{className:"text-sm font-normal pt-2",children:e})}function eo(e,t){return d("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:n=>{t()},type:"button",children:v.Children.toArray([e])})}function e5(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM9 9C8.44772 9 8 9.44772 8 10C8 10.5523 8.44772 11 9 11V14C9 14.5523 9.44772 15 10 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13V10C11 9.44772 10.5523 9 10 9H9Z",["d",r]),["fill","#60A5FA"]])))),["children",v.Children.toArray(Array.from(n))])])))}function l0(){let e,t,n;return d("div",y(w([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[e5(20,20),d("div",y(w([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[d("div",y(w([["className","grow shrink basis-0 text-blue-800 text-sm font-medium leading-tight"],(n="We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.",["children",n])])))],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function u0(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([(r="M15.8008 12.5263L9.48383 0.880306C9.32803 0.591371 9.09045 0.354828 8.80083 0.200306C8.40735 -0.0102628 7.94665 -0.0569536 7.51893 0.0703896C7.0912 0.197733 6.73106 0.488809 6.51683 0.880306L0.20083 12.5263C0.0627228 12.7826 -0.00633038 13.0704 0.00045607 13.3614C0.00724252 13.6525 0.0896351 13.9368 0.239538 14.1863C0.38944 14.4359 0.601694 14.6422 0.855444 14.7849C1.10919 14.9276 1.39571 15.0018 1.68683 15.0003H14.3148C14.5939 15.0003 14.8686 14.9316 15.1148 14.8003C15.3099 14.6968 15.4825 14.5556 15.6228 14.3851C15.763 14.2145 15.8681 14.0178 15.932 13.8064C15.9958 13.595 16.0172 13.373 15.9949 13.1533C15.9726 12.9336 15.9069 12.7205 15.8018 12.5263H15.8008ZM8.00083 13.0003C7.80305 13.0003 7.60971 12.9417 7.44526 12.8318C7.28081 12.7219 7.15264 12.5657 7.07695 12.383C7.00126 12.2003 6.98146 11.9992 7.02004 11.8052C7.05863 11.6112 7.15387 11.4331 7.29372 11.2932C7.43358 11.1533 7.61176 11.0581 7.80574 11.0195C7.99972 10.9809 8.20079 11.0007 8.38351 11.0764C8.56624 11.1521 8.72242 11.2803 8.8323 11.4447C8.94218 11.6092 9.00083 11.8025 9.00083 12.0003C9.00083 12.2655 8.89547 12.5199 8.70794 12.7074C8.5204 12.8949 8.26605 13.0003 8.00083 13.0003ZM9.00083 9.50031C9.00083 9.63291 8.94815 9.76009 8.85438 9.85386C8.76062 9.94763 8.63344 10.0003 8.50083 10.0003H7.50083C7.36822 10.0003 7.24104 9.94763 7.14728 9.85386C7.05351 9.76009 7.00083 9.63291 7.00083 9.50031V5.50031C7.00083 5.3677 7.05351 5.24052 7.14728 5.14675C7.24104 5.05298 7.36822 5.00031 7.50083 5.00031H8.50083C8.63344 5.00031 8.76062 5.05298 8.85438 5.14675C8.94815 5.24052 9.00083 5.3677 9.00083 5.50031V9.50031Z",["d",r]),["fill","#F87171"]])))),["children",v.Children.toArray(Array.from(n))])])))}function c0(e){let t,n;return d("div",y(w([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[u0(16,15),d("div",y(w([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[d("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function ia(e,t){let n;return d("svg",y(w([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=w([d("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",v.Children.toArray(Array.from(n))])])))}class ei extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function d0(e){return d(J3,$r(e,1))}class ys extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function f0(e){return d(o0,$r(e,1))}class m0 extends X{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function h0(e,t){return d(s0,$r(e,1),...t)}class pn extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function p0(e){return d(a0,$r(e,1))}function g0(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",["d",r]),["fill","#6B7280"]])))),["children",v.Children.toArray(Array.from(n))])])))}class Fi extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function Pi(e,t,n,r,i,o,s,a,l){let u,f,c,p,h,m,g;const b=i.fields[0],x=af(At(C=>C[1].fields[0],Zp(C=>Cf(C.fields[0],b),r)));return d("div",y(w([["key",et(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[d("div",y(w([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(f=[d("div",y(ne(T(()=>H(A(["className",`${r==null?"bg-gray-50 border-gray-200 text-gray-500":"bg-emerald-50 border-emerald-200 text-emerald-700"} px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden`]),T(()=>{let C;return A((C=ne(T(()=>H(A(d("div",{className:"text-sm font-medium leading-tight",children:Wm(e)})),T(()=>A(t?d("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):xe()))))),["children",v.Children.toArray(Array.from(C))]))}))))))],["children",v.Children.toArray(Array.from(f))])]))),d("div",y(w([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(c=[ia(16,12)],["children",v.Children.toArray(Array.from(c))])]))),d("div",y(w([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[d0(w([new ei(0,[x]),new ei(1,[C=>{Tr(E=>{s(E[0])},Ss(Es(E=>E[1].fields[0]===C?re(E[2],new En(0,[])):!1,b)))}]),new ei(2,[[d("div",y(w([["className","relative w-full"],(h=[f0(ne(T(()=>{let C;return H(A(new ys(0,[`${C=t&&n,C&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2`])),T(()=>{let E;return A(new ys(1,[[d("span",y(ne(T(()=>{let $;const I=t&&n;return $=r!=null?[x,""]:I?["Select a field","text-red-900"]:["Select a field","text-gray-500"],H(A(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>A(["children",$[0]])))})))),d("span",y(w([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[g0(20,20)],["children",v.Children.toArray(Array.from(E))])])))]]))}))}))),h0(ne(T(()=>A(new m0(`z-10 absolute ${o.tag===1?"-mt-[226px]":"mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),ne(T(()=>Ts(C=>{const E=C[2],$=C[1].fields[0];return A(p0(w([new pn(0,[cn(C[0].fields[0])]),new pn(1,[$]),new pn(2,[re(E,new En(1,[]))]),new pn(3,["relative select-none"]),new pn(4,[I=>[d("span",{className:"px-4 py-2 block truncate "+(E.tag===0?I.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:$})]])])))},b))))],["children",v.Children.toArray(Array.from(h))])])))]])]))],["children",v.Children.toArray(Array.from(p))])]))),d("div",y(w([(m="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",m]),(g=[d("button",y(ne(T(()=>H(A(["children","Clear"]),T(()=>H(a==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer"]),T(()=>{const C=a;if(C==null)return mt();{const E=C;return A(["onClick",$=>{E()}])}})))))))),d("button",y(ne(T(()=>H(A(["children","Preview"]),T(()=>H(l==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer"]),T(()=>{const C=l;if(C==null)return mt();{const E=C;return A(["onClick",$=>{E()}])}}))))))))],["children",v.Children.toArray(Array.from(g))])])))],["children",v.Children.toArray(Array.from(u))])])))}function y0(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.3001 1.40002C6.03495 1.40002 5.79257 1.54983 5.674 1.78697L5.16747 2.80002H2.8001C2.4135 2.80002 2.1001 3.11342 2.1001 3.50002C2.1001 3.88662 2.4135 4.20002 2.8001 4.20002L2.8001 11.2C2.8001 11.9732 3.4269 12.6 4.2001 12.6H9.80009C10.5733 12.6 11.2001 11.9732 11.2001 11.2V4.20002C11.5867 4.20002 11.9001 3.88662 11.9001 3.50002C11.9001 3.11342 11.5867 2.80002 11.2001 2.80002H8.83272L8.32619 1.78697C8.20762 1.54983 7.96523 1.40002 7.70009 1.40002H6.3001ZM4.9001 5.60002C4.9001 5.21342 5.2135 4.90002 5.60009 4.90002C5.98669 4.90002 6.30009 5.21342 6.30009 5.60002V9.80002C6.30009 10.1866 5.98669 10.5 5.60009 10.5C5.2135 10.5 4.9001 10.1866 4.9001 9.80002V5.60002ZM8.40009 4.90002C8.01349 4.90002 7.70009 5.21342 7.70009 5.60002V9.80002C7.70009 10.1866 8.01349 10.5 8.40009 10.5C8.78669 10.5 9.10009 10.1866 9.10009 9.80002V5.60002C9.10009 5.21342 8.78669 4.90002 8.40009 4.90002Z",["d",r]),["fill","#9CA3AF"]])))),["children",v.Children.toArray(Array.from(n))])])))}function lu(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([(r="M9.99992 0.833328C4.94575 0.833328 0.833252 4.94583 0.833252 10C0.833252 15.0542 4.94575 19.1667 9.99992 19.1667C15.0541 19.1667 19.1666 15.0542 19.1666 10C19.1666 4.94583 15.0541 0.833328 9.99992 0.833328ZM8.37409 14.5525L4.65492 10.8333L5.83325 9.655L8.29242 12.1142L14.0883 5.49083L15.3424 6.58833L8.37409 14.5525Z",["d",r]),["fill","#10B981"]])))),["children",v.Children.toArray(Array.from(n))])])))}function w0(e){let t,n,r;return d("div",y(w([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[d("span",y(w([["className","text-emerald-700"],(n=[lu(20,20)],["children",v.Children.toArray(Array.from(n))])]))),d("div",y(w([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[d("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}function uu(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([(r="M8.83429 0.234315C9.14671 -0.0781049 9.65324 -0.0781049 9.96566 0.234315L13.1657 3.43431C13.4781 3.74673 13.4781 4.25327 13.1657 4.56569L9.96566 7.76569C9.65324 8.0781 9.14671 8.0781 8.83429 7.76569C8.52187 7.45327 8.52187 6.94673 8.83429 6.63432L10.6686 4.8H1.39998C0.958148 4.8 0.599976 4.44183 0.599976 4C0.599976 3.55817 0.958148 3.2 1.39998 3.2H10.6686L8.83429 1.36569C8.52187 1.05327 8.52187 0.546734 8.83429 0.234315Z",["d",r]),["fill","white"]])))),["children",v.Children.toArray(Array.from(n))])])))}function t5(e,t){let n,r,i,o,s,a,l;return d("div",y(w([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[d("div",y(w([(r="grow shrink basis-0 p-4 bg-white rounded-lg shadow-lg border border-gray-100 flex-col justify-start items-start gap-3 inline-flex overflow-hidden",["className",r]),(i=[d("div",y(w([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[d("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${Wm(e)}”`})],["children",v.Children.toArray(Array.from(o))])]))),d("div",y(w([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[d("div",y(w([["className","self-stretch flex-col justify-center items-start flex"],(a=xf((u,f)=>d("div",y(ne(T(()=>H(A(["className",`${u%2===0?"bg-white":"bg-gray-50"} self-stretch h-10 px-3 py-3.5 border-b border-gray-200 justify-start items-center gap-1 inline-flex overflow-hidden`]),T(()=>{let c;return A((c=ne(T(()=>{const p=oo(f);return A(p?d("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):d("div",{className:"grow shrink text-gray-700 text-sm font-medium leading-tight",children:f}))})),["children",v.Children.toArray(Array.from(c))]))})))))),t),["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(s))])]))),d("div",y(w([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[d("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",v.Children.toArray(Array.from(l))])])))],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(n))])])))}function n5(e){let t,n,r;const i=e.back,o=e.next,s=e.dataRows,a=e.headerRow,l=e.existingMappings;let u;const f=W_(a,l);u=Ir(()=>Mr(()=>f,(E,$)=>G_(a,s,E,$),(E,$)=>{}),void 0,void 0);const c=u[0],p=u[1],h=v.useState(!1),m=h[1],g=v.useState(!1),b=g[0],x=E=>{if(B_(c)(E))return()=>{p(new or(1,[E]))}},C=E=>{if(U_(c,E))return()=>{p(new or(2,[E]))}};return d("div",y(w([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[Q3(h[0],()=>{m(!1)}),na("Map fields"),ra("Match the fields from your CSV to the corresponding destination fields."),d("div",y(w([["className","flex flex-row pt-3 gap-2"],(n=[eo("What is mapping and why is it important?",()=>{m(!0)})],["children",v.Children.toArray(Array.from(n))])]))),d("div",y(w([["className","justify-start items-start gap-12 inline-flex"],(r=ne(T(()=>{let E;return H(A(d("div",y(w([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(E=ne(T(()=>H(l==null?A(l0()):A(xe()),T(()=>H(b&&c.Status.tag===0?A(c0("Some required fields are incomplete. Fill in all required fields to continue.")):A(xe()),T(()=>{let $,I,L,P,S,_,k,N;return A(d("div",y(w([["className","flex-col justify-start items-start inline-flex overflow-hidden"],($=[d("div",y(w([(I="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",I]),(L=[d("div",y(w([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(P=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),d("div",y(ne(T(()=>H(A(["className",`${c.NumberOfDestinationFieldsMapped===5?"bg-emerald-100 text-emerald-800":"bg-blue-100 text-blue-800"} px-2.5 py-0.5 rounded-[10px] justify-center items-center flex`]),T(()=>{let D;return A((D=[d("div",{className:"text-center text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",v.Children.toArray(Array.from(D))]))}))))))],["children",v.Children.toArray(Array.from(P))])]))),d("div",{className:"w-5 h-5 px-3 py-3.5"}),d("div",y(w([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(S=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),d("div",y(w([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(_=[d("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of ${c.NumberOfIncomingFields} used`})],["children",v.Children.toArray(Array.from(_))])])))],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(L))])]))),d("div",y(w([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(k=[d("div",y(me((N=ne(T(()=>H(A(Pi(new be(0,[]),!0,b,c.FirstName.ColumnIndex,c.FirstName.IncomingFields,new Fi(0,[]),D=>{let O;p((O=[new be(0,[]),D],new or(0,[O[0],O[1]])))},x(new be(0,[])),C(new be(0,[])))),T(()=>H(A(Pi(new be(1,[]),!0,b,c.LastName.ColumnIndex,c.LastName.IncomingFields,new Fi(0,[]),D=>{let O;p((O=[new be(1,[]),D],new or(0,[O[0],O[1]])))},x(new be(1,[])),C(new be(1,[])))),T(()=>H(A(Pi(new be(2,[]),!0,b,c.Email.ColumnIndex,c.Email.IncomingFields,new Fi(0,[]),D=>{let O;p((O=[new be(2,[]),D],new or(0,[O[0],O[1]])))},x(new be(2,[])),C(new be(2,[])))),T(()=>H(A(Pi(new be(3,[]),!1,b,c.MobilePhone.ColumnIndex,c.MobilePhone.IncomingFields,new Fi(0,[]),D=>{let O;p((O=[new be(3,[]),D],new or(0,[O[0],O[1]])))},x(new be(3,[])),C(new be(3,[])))),T(()=>H(A(Pi(new be(4,[]),!1,b,c.EmploymentBasis.ColumnIndex,c.EmploymentBasis.IncomingFields,new Fi(1,[]),D=>{let O;p((O=[new be(4,[]),D],new or(0,[O[0],O[1]])))},x(new be(4,[])),C(new be(4,[])))),T(()=>{let D,O,z,he,q,W;return H(c.NumberOfIncomingFieldsDiscarded===0?A(xe()):A(d("div",y(w([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(D=[d("div",y(w([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(O=[d("div",y(w([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(z=[y0(14,14),d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",v.Children.toArray(Array.from(z))])]))),d("div",y(w([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(he=[ia(16,12)],["children",v.Children.toArray(Array.from(he))])]))),d("div",y(w([["className","flex-col justify-start items-start gap-2 inline-flex"],(q=[d("div",y(w([["className","w-[218px] pl-3 items-center inline-flex"],(W=[d("div",y(ne(T(()=>H(A(["className","text-gray-500 text-sm font-medium"]),T(()=>{const F=c.NumberOfIncomingFieldsDiscarded|0;return A(F===1?["children","Remaining 1 unused field"]:["children",`Remaining ${F} unused fields`])}))))))],["children",v.Children.toArray(Array.from(W))])])))],["children",v.Children.toArray(Array.from(q))])])))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(D))])])))),T(()=>{let F;return A(d("div",y(w([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(F=ne(T(()=>H(c.NumberOfDestinationFieldsMapped===5?A(w0("All destination fields have been mapped. You’re good to go.")):A(xe()),T(()=>{let U,j,fe,J,R,ee,le,Te,Oe;return A(d("div",y(w([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(U=[d("div",y(w([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(j=[d("div",y(w([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(fe=[d("div",y(w([["className","grow shrink basis-0 text-right"],(J=[d("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),d("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),d("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",v.Children.toArray(Array.from(J))])])))],["children",v.Children.toArray(Array.from(fe))])]))),d("div",y(w([["className","justify-start items-center gap-2 flex"],(R=[d("button",y(w([(ee="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ee]),["onClick",ie=>{i(c.Status)}],(le=[d("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(le))])]))),d("button",y(w([(Te="pl-[13px] pr-[11px] py-[9px] bg-primary-600 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Te]),["disabled",b&&c.Status.tag===0],["onClick",ie=>{const we=c.Status;we.tag===0?g[1](!0):o([we.fields[0],we.fields[1]])}],(Oe=[d("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),uu(13,8)],["children",v.Children.toArray(Array.from(Oe))])])))],["children",v.Children.toArray(Array.from(R))])])))],["children",v.Children.toArray(Array.from(j))])])))],["children",v.Children.toArray(Array.from(U))])]))))})))),["children",v.Children.toArray(Array.from(F))])]))))}))})))))))))))),["children",v.Children.toArray(Array.from(N))]))))],["children",v.Children.toArray(Array.from(k))])])))],["children",v.Children.toArray(Array.from($))])]))))})))))),["children",v.Children.toArray(Array.from(E))])])))),T(()=>{const $=c.Preview;return $==null?A(xe()):A(t5($[0],$[1]))}))})),["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Do extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Ta extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let sr=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}};function r5(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}let Oo=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},i5=class extends Ce{constructor(t,n,r,i,o,s,a){super(),this.IncomingValues=t,this.Selections=n,this.NumberOfIncomingValuesUsed=r|0,this.NumberOfDestinationValuesMapped=i|0,this.DiscardedValues=o,this.ValidatedMappings=s,this.Prefilled=a}};class to extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const jn=[void 0];function v0(e,t,n){let r;const i=t.fields[0],o=Ut(s=>s,rs(lc(n)));return new i5(ze(s=>[s,hi(s,o,{Equals:re,GetHashCode:Xo})?new to(1,[]):new to(0,[])],i),n,o.length,Ug(Dl(s=>{let a;return a=Ut(l=>l,s),a.length!==0},lc(n))),Bm(o,i,{Equals:re,GetHashCode:Xo}),(r=w(Ut(s=>s,rs(je(s=>ze(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),ke(r)?void 0:new M_(ce(r),Rn(Ae(r)))),e)}function o5(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>hi(kl(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Qn}))}function s5(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=o5(e,o);return!vr(re,s,xe())&&s.length===0?jn:(r=!0,ze(a=>a,s))};n=[Kr([[new yt(0,[]),i(new yt(0,[]))],[new yt(1,[]),i(new yt(1,[]))],[new yt(2,[]),i(new yt(2,[]))],[new yt(3,[]),i(new yt(3,[]))]],{Compare:gt}),r]}else{const r=t,i=Kr(ze(o=>[o[0],ze(s=>s[1],cg(o[1],{Compare:Sl}))],E_(o=>o[0],rs([r.Tail,[r.Head]]),{Equals:re,GetHashCode:Xo})),{Compare:gt});n=[Kr([[new yt(0,[]),rt(hn(i,new yt(0,[])),jn)],[new yt(1,[]),rt(hn(i,new yt(1,[])),jn)],[new yt(2,[]),rt(hn(i,new yt(2,[])),jn)],[new yt(3,[]),rt(hn(i,new yt(3,[])),jn)]],{Compare:gt}),!1]}return[v0(n[1],e,n[0]),Z()]}function b0(e,t){const n=br(e.Selections,t);let r;switch(!vr(re,n,xe())&&n.length===1&&pe(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function _0(e,t){let n;return e.DiscardedValues.length>0?(n=br(e.Selections,t),!n.some(r=>r==null)):!1}function a5(e,t,n){const r=br(e.Selections,t);return!vr(re,r,xe())&&r.length===1?!1:hi(n,r,{Equals:re,GetHashCode:Xt})}function l5(e,t,n,r){return!re(n,r)&&e.IncomingValues.some(i=>re(i[0],r)?re(i[1],new to(0,[])):!1)?hi(n,br(e.Selections,t),{Equals:re,GetHashCode:Xt}):!1}function u5(e,t,n){let r,i;const o=m=>v0(n.Prefilled,e,m);let s,a,l,u,f,c,p,h;switch(t.tag){case 1:{b0(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{a5(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],f=t.fields[1]):s=4;break}case 3:{l5(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,c=t.fields[0],p=t.fields[1],h=t.fields[2]):s=4;break}default:_0(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(No(a,m=>At(g=>_f(g,jn),m),n.Selections)),Z()];case 1:return[o(No(l,m=>At(g=>jn,m),n.Selections)),Z()];case 2:return[o(No(u,(r=(i=[f],m=>Bm(i,m,{Equals:re,GetHashCode:Xt})),m=>At(r,m)),n.Selections)),Z()];case 3:return[o(No(c,m=>At(g=>ze(b=>re(b,p)?h:b,g),m),n.Selections)),Z()];default:return[n,Z()]}}function c5(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.9999 12.6C10.0927 12.6 12.5999 10.0928 12.5999 7.00002C12.5999 3.90723 10.0927 1.40002 6.9999 1.40002C3.90711 1.40002 1.3999 3.90723 1.3999 7.00002C1.3999 10.0928 3.90711 12.6 6.9999 12.6ZM7.6999 4.90002C7.6999 4.51342 7.3865 4.20002 6.9999 4.20002C6.6133 4.20002 6.2999 4.51342 6.2999 4.90002V6.30002H4.8999C4.5133 6.30002 4.1999 6.61342 4.1999 7.00002C4.1999 7.38662 4.5133 7.70002 4.8999 7.70002H6.2999V9.10002C6.2999 9.48662 6.6133 9.80002 6.9999 9.80002C7.3865 9.80002 7.6999 9.48662 7.6999 9.10002V7.70002H9.0999C9.4865 7.70002 9.7999 7.38662 9.7999 7.00002C9.7999 6.61342 9.4865 6.30002 9.0999 6.30002H7.6999V4.90002Z",["d",r]),["fill","currentColor"]])))),["children",v.Children.toArray(Array.from(n))])])))}function d5(e,t,n,r,i,o,s){let a,l,u,f,c,p;return d("div",y(w([["key",et(e)],["className"," pr-3 py-2 justify-start items-start gap-2 inline-flex"],(a=[d("div",y(w([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[d("div",y(w([["className",bt(" ",ne(T(()=>H(vr(re,t,jn)?A("bg-gray-50 border-gray-200 text-gray-500"):A("bg-emerald-50 border-emerald-200 text-emerald-700"),T(()=>A("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(u=[d("div",{className:"text-sm font-medium leading-tight",children:r5(e)})],["children",v.Children.toArray(Array.from(u))])])))],["children",v.Children.toArray(Array.from(l))])]))),d("div",y(w([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(f=[ia(16,12)],["children",v.Children.toArray(Array.from(f))])]))),d("div",y(w([["className","px-3 justify-start items-center gap-2 flex flex-col"],(c=[d("div",y(me((p=ne(T(()=>je(h=>{let m,g,b;return d("div",y(w([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(m=[d("div",y(w([["className","justify-start items-end gap-2 flex flex-col w-[206px]"],(g=ne(T(()=>H(A(d0(ne(T(()=>{const x=af(At(C=>C.fields[0],h));return H(A(new ei(0,[x])),T(()=>H(A(new ei(1,[C=>{Tr(E=>{s([h,E[0]])},Ss(Es(E=>E[0].fields[0]===C?re(E[1],new to(0,[])):!1,n)))}])),T(()=>{let C,E;return A(new ei(2,[[d("div",y(w([["className","relative w-full"],(C=[f0(w([new ys(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2"]),new ys(1,[[d("span",y(ne(T(()=>{const $=h!=null?[x,""]:["Select a value","text-gray-500"];return H(A(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>A(["children",$[0]])))})))),d("span",y(w([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[g0(20,20)],["children",v.Children.toArray(Array.from(E))])])))]])])),h0(me(new m0("z-10 absolute mt-0.5 max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm")),ne(T(()=>Ts($=>{const I=$[1],L=$[0].fields[0];return A(p0(w([new pn(0,[L]),new pn(1,[L]),new pn(2,[re(I,new to(1,[]))&&L!==x]),new pn(3,["relative select-none"]),new pn(4,[P=>[d("span",{className:bt(" ",ne(T(()=>H(A("px-4 py-2 block truncate"),T(()=>{const S=P.active;let _;switch(P.selected?S?_=2:_=1:I.tag===1?_=0:S?_=2:_=1,_){case 0:return A("text-gray-700 opacity-50 cursor-not-allowed");case 1:return A("text-gray-700");default:return A("bg-primary-600 text-white")}}))))),children:L})]])])))},n))))],["children",v.Children.toArray(Array.from(C))])])))]]))}))))})))),T(()=>re(h,sg(t))?A(d("button",y(ne(T(()=>{let x;return H(A((x=[c5(14,14),d("span",{children:["Map additional value"]})],["children",v.Children.toArray(Array.from(x))])),T(()=>H(A(["className",bt(" ",ne(T(()=>H(A("justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),T(()=>i==null?A("opacity-50 cursor-not-allowed underline"):A("cursor-pointer underline"))))))]),T(()=>{const C=i;if(C==null)return mt();{const E=C;return A(["onClick",$=>{E()}])}}))))}))))):mt())))),["children",v.Children.toArray(Array.from(g))])]))),d("div",y(w([["className","text-gray-500 text-xs font-normal mt-2 pl-1"],(b=ne(T(()=>{if(o!=null){const x=o;return A(d("button",{children:"Remove",className:"cursor-pointer underline",onClick:C=>{x(h)}}))}else return A(d("button",y(ne(T(()=>H(A(["children","Clear"]),T(()=>H(r==null?A(["className","opacity-50 cursor-not-allowed underline"]):A(["className","cursor-pointer underline"]),T(()=>{const x=r;if(x==null)return mt();{const C=x;return A(["onClick",E=>{C()}])}})))))))))})),["children",v.Children.toArray(Array.from(b))])])))],["children",v.Children.toArray(Array.from(m))])])))},t))),["children",v.Children.toArray(Array.from(p))]))))],["children",v.Children.toArray(Array.from(c))])])))],["children",v.Children.toArray(Array.from(a))])])))}function f5(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=s5(s,a);l=Ir(()=>Mr(()=>u,(m,g)=>u5(s,m,g),(m,g)=>{}),void 0,void 0);const f=l[0],c=l[1],p=v.useState(!1),h=p[0];return d("div",y(w([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[na("Map values - Employment basis"),ra("Match the values from your CSV to the corresponding destination values."),d("div",y(w([["className","justify-start items-start gap-12 inline-flex"],(n=[d("div",y(w([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=ne(T(()=>H(f.Prefilled?A(l0()):A(xe()),T(()=>H(h&&f.ValidatedMappings==null?A(c0("Map at least one value to continue.")):A(xe()),T(()=>{let m,g,b,x,C,E,$,I,L;return A(d("div",y(w([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(m=[d("div",y(w([(g="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",g]),(b=[d("div",y(w([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(x=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),d("div",y(w([["className",bt(" ",ne(T(()=>H(f.NumberOfDestinationValuesMapped===4?A("bg-emerald-100 text-emerald-800"):A("bg-blue-100 text-blue-800"),T(()=>A("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(C=[d("div",{className:"text-center text-xs font-medium leading-none",children:`${f.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",v.Children.toArray(Array.from(C))])])))],["children",v.Children.toArray(Array.from(x))])]))),d("div",{className:"w-5 h-5 px-3 py-3.5"}),d("div",y(w([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),d("div",y(w([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],($=[d("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${f.NumberOfIncomingValuesUsed} of ${f.IncomingValues.length} used`})],["children",v.Children.toArray(Array.from($))])])))],["children",v.Children.toArray(Array.from(E))])])))],["children",v.Children.toArray(Array.from(b))])]))),d("div",y(w([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(I=[d("div",y(me((L=ne(T(()=>H(Ts(P=>{let S,_,k;const N=P[0];return A(d5(N,P[1],f.IncomingValues,(S=N,b0(f,S)?()=>{c(new Oo(1,[S]))}:void 0),(_=N,_0(f,_)?()=>{c(new Oo(0,[_]))}:void 0),(k=N,br(f.Selections,k).length>1?D=>{let O;c((O=[k,D],new Oo(2,[O[0],O[1]])))}:void 0),D=>{let O;c((O=[N,D[0],D[1]],new Oo(3,[O[0],O[1],O[2]])))}))},zy(f.Selections)),T(()=>{let P,S,_,k,N,D;return H(f.DiscardedValues.length===0?A(xe()):A(d("div",y(w([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(P=[d("div",y(w([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(S=[d("div",y(w([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[y0(14,14),d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",v.Children.toArray(Array.from(_))])]))),d("div",y(w([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[ia(16,12)],["children",v.Children.toArray(Array.from(k))])]))),d("div",y(w([["className","flex-col justify-start items-start gap-2 inline-flex"],(N=[d("div",y(w([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(D=ne(T(()=>H(A(d("div",y(ne(T(()=>H(A(["className","font-medium"]),T(()=>{const O=f.DiscardedValues.length|0;return A(O===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${O} unused fields:`])}))))))),T(()=>{let O;return A(d("ul",y(w([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(O=ze(z=>d("li",{children:[z]}),rs(Yn(T(()=>H(A(ze(z=>z.fields[0],f.DiscardedValues.slice(void 0,8))),T(()=>f.DiscardedValues.length>8?A(["... and 0 other values"]):mt())))))),["children",v.Children.toArray(Array.from(O))])]))))})))),["children",v.Children.toArray(Array.from(D))])])))],["children",v.Children.toArray(Array.from(N))])])))],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(P))])])))),T(()=>{let O;return A(d("div",y(w([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(O=ne(T(()=>H(f.DiscardedValues.length===0?A(w0("All incoming values have been mapped.")):A(xe()),T(()=>{let z,he,q,W,F,U,j;return A(d("div",y(w([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(z=[d("div",y(w([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(he=[d("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),d("div",y(w([["className","justify-start items-center gap-2 flex"],(q=[d("button",y(w([(W="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",W]),["onClick",fe=>{i(f.ValidatedMappings)}],(F=[d("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(F))])]))),d("button",y(w([(U="pl-[13px] pr-[11px] py-[9px] bg-primary-600 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",U]),["disabled",h&&f.ValidatedMappings==null],["onClick",fe=>{const J=f.ValidatedMappings;J==null?p[1](!0):o(J)}],(j=[d("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),uu(13,8)],["children",v.Children.toArray(Array.from(j))])])))],["children",v.Children.toArray(Array.from(q))])])))],["children",v.Children.toArray(Array.from(he))])])))],["children",v.Children.toArray(Array.from(z))])]))))})))),["children",v.Children.toArray(Array.from(O))])]))))}))})))),["children",v.Children.toArray(Array.from(L))]))))],["children",v.Children.toArray(Array.from(I))])])))],["children",v.Children.toArray(Array.from(m))])]))))})))))),["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class m5 extends Ce{constructor(t,n,r,i,o,s,a,l,u){super(),this.RowNumber=t|0,this.FirstName=n,this.LastName=r,this.Email=i,this.MobilePhone=o,this.EmploymentBasis=s,this.HasDuplicateEmailError=a,this.HasErrorOtherThanDuplicateEmail=l,this.ErrorDetail=u}}function Ro(e){if(!oo(e))return e}function h5(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],I_(n[1])]:void 0;return w(ze(i=>{let o,s,a,l,u,f,c,p,h,m,g;const b=i.fields[0];return Kr(Ut(x=>x,[(o=Ro(pe(t.FirstName.fields[0],b)),o==null?void 0:["firstName",o]),(s=Ro(pe(t.LastName.fields[0],b)),s==null?void 0:["lastName",s]),(a=Ro(pe(t.Email.fields[0],b)),a==null?void 0:["email",a]),(l=(u=t.MobilePhone,u==null?void 0:Ro(pe(u.fields[0],b))),l==null?void 0:["mobileNumber",l]),(f=(c=r,c==null?void 0:(p=c,h=(m=pe(p[0],b),g=xe(),[Wy(p[1],m,new ht(()=>g,x=>{g=x})),g]),h[0]?h[1]:void 0)),f==null?void 0:["employmentBasis",f])]),{Compare:Nr})},e.fields[0]))}function p5(e,t,n,r){return Se.Delay(()=>Se.TryWith(Se.Delay(()=>{let i,o,s;return Se.ReturnFrom((i=new Cm(r!=null,Af((a,l)=>new xm(a,l),(o=[t,n,r],h5(o[0],o[1],o[2])))),s=e(i),Se.Bind(s,a=>{let l;const u=a;return l=u.tag===1?new M(1,[u.fields[0]]):new M(0,[gi(f=>{let c,p,h,m;const g=rt((c=vg(I=>I.RowId===f.RowId,u.fields[0].Errors),c==null?void 0:Rn(c.FieldErrors)),[]),b=[hn(f.Data,"firstName"),!g.some(I=>I.PropName==="firstName")],x=[hn(f.Data,"lastName"),!g.some(I=>I.PropName==="lastName")],C=[hn(f.Data,"email"),!g.some(I=>I.PropName==="email")],E=[hn(f.Data,"mobileNumber"),!g.some(I=>I.PropName==="mobileNumber")],$=[hn(f.Data,"employmentBasis"),!g.some(I=>I.PropName==="employmentBasis")];return new m5(f.RowId+1,b,x,C,E,$,g.some(I=>I.Message.startsWith("Duplicate Email")),(p=g.filter(I=>!I.Message.startsWith("Duplicate Email")),p.length!==0),!vr(re,g,xe())&&g.length===0?void 0:!vr(re,g,xe())&&g.length===1?(h=pe(0,g).PropName,m=pe(0,g).Message,h==="firstName"?b[0]==null?"Missing first name":"Invalid first name":h==="lastName"?x[0]==null?"Missing last name":"Invalid last name":h==="email"?C[0]!=null?m.startsWith("Duplicate Email")?"Duplicate email":"Invalid email":"Missing email":h==="mobileNumber"?E[0]==null?"Missing mobile phone":"Invalid mobile phone":h==="employmentBasis"?$[0]==null?"Missing employment basis":"Invalid employment basis":"Invalid or missing field"):"Multiple invalid or missing fields")},i.Data)]),Se.Return(l)})))}),i=>Se.Return(new M(1,[et(i)]))))}let ji=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage"]}},Br=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validating","Reviewing"]}};class Li extends Ce{constructor(t,n,r,i,o,s,a,l,u,f,c,p,h){super(),this.Data=t,this.InviteTiming=n,this.DuplicateEmailCount=r|0,this.NumberOfRowsWithErrorsOtherThanDuplicateEmail=i|0,this.NumberOfInvalidRows=o|0,this.NumberOfRows=s|0,this.NumberOfValidRows=a|0,this.ShowingOnlyRowsWithErrors=l,this.HasErrors=u,this.RowFrom=f|0,this.RowTo=c|0,this.Page=p,this.PageNo=h|0}}function g5(e){return[new Br(0,[]),Yf(t=>{Zf(t)},e,void 0,t=>new ji(0,[t]))]}function Fo(e,t,n){const r=(e-1)*20|0,i=Ag(r,e*20-1,n?Bn(o=>o.ErrorDetail!=null,t):t);if(ke(i))return[0,0,dt()];{const o=i;return[r+1,r+an(o),o]}}function x0(e){return e.PageNo>1}function C0(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function y5(e,t){const n=Bn(r=>r.ErrorDetail!=null,e.Data);return uo(me(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
50
+ `),Af((r,i)=>{const o=rt(i.ErrorDetail,""),s=rt(i.FirstName[0],""),a=rt(i.LastName[0],""),l=rt(i.Email[0],""),u=rt(i.MobilePhone[0],""),f=r===an(n)-1?"":`
51
+ `;return t?`${o},${s},${a},${l},${u},${rt(i.EmploymentBasis[0],"")},${i.RowNumber}${f}`:`${o},${s},${a},${l},${u},${i.RowNumber}${f}`},n))}function w5(e,t,n){let r,i,o,s,a,l,u,f,c,p;switch(t.tag){case 1:{n.tag===1?(i=2,s=t.fields[0],a=n.fields[0]):(i=6,p=n);break}case 2:{n.tag===1?(r=n.fields[0],r.HasErrors&&r.ShowingOnlyRowsWithErrors!==t.fields[0]?(i=3,l=n.fields[0],u=t.fields[0]):(i=6,p=n)):(i=6,p=n);break}case 3:{n.tag===1&&C0(n.fields[0])?(i=4,f=n.fields[0]):(i=6,p=n);break}case 4:{n.tag===1&&x0(n.fields[0])?(i=5,c=n.fields[0]):(i=6,p=n);break}default:t.fields[0].tag===1?n.tag===0?i=1:(i=6,p=n):n.tag===0?(i=0,o=t.fields[0].fields[0]):(i=6,p=n)}switch(i){case 0:{let h;const m=[o,!1];return h=Fo(1,m[0],m[1]),[new Br(1,[new Li(o,new Pt(1,[]),an(Bn(g=>g.HasDuplicateEmailError,o)),an(Bn(g=>g.HasErrorOtherThanDuplicateEmail,o)),an(Bn(g=>g.ErrorDetail!=null,o)),an(o),an(Bn(g=>g.ErrorDetail==null,o)),!1,Cg(g=>g.ErrorDetail!=null,o),h[0],h[1],h[2],1)]),Z()]}case 1:return[n,qf(h=>{e()})];case 2:return[new Br(1,[new Li(a.Data,s,a.DuplicateEmailCount,a.NumberOfRowsWithErrorsOtherThanDuplicateEmail,a.NumberOfInvalidRows,a.NumberOfRows,a.NumberOfValidRows,a.ShowingOnlyRowsWithErrors,a.HasErrors,a.RowFrom,a.RowTo,a.Page,a.PageNo)]),Z()];case 3:{let h;const m=[l.Data,u];return h=Fo(1,m[0],m[1]),[new Br(1,[new Li(l.Data,l.InviteTiming,l.DuplicateEmailCount,l.NumberOfRowsWithErrorsOtherThanDuplicateEmail,l.NumberOfInvalidRows,l.NumberOfRows,l.NumberOfValidRows,u,l.HasErrors,h[0],h[1],h[2],1)]),Z()]}case 4:{const h=f.PageNo+1|0;let m;const g=[f.Data,f.ShowingOnlyRowsWithErrors];return m=Fo(h,g[0],g[1]),[new Br(1,[new Li(f.Data,f.InviteTiming,f.DuplicateEmailCount,f.NumberOfRowsWithErrorsOtherThanDuplicateEmail,f.NumberOfInvalidRows,f.NumberOfRows,f.NumberOfValidRows,f.ShowingOnlyRowsWithErrors,f.HasErrors,m[0],m[1],m[2],h)]),Z()]}case 5:{const h=c.PageNo-1|0;let m;const g=[c.Data,c.ShowingOnlyRowsWithErrors];return m=Fo(h,g[0],g[1]),[new Br(1,[new Li(c.Data,c.InviteTiming,c.DuplicateEmailCount,c.NumberOfRowsWithErrorsOtherThanDuplicateEmail,c.NumberOfInvalidRows,c.NumberOfRows,c.NumberOfValidRows,c.ShowingOnlyRowsWithErrors,c.HasErrors,m[0],m[1],m[2],h)]),Z()]}default:return[p,Z()]}}function S0(e,t){let n,r,i;return d("svg",y(w([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=w([d("path",y(w([(r="M12.6666 14.6667H3.33328C2.23062 14.6667 1.33328 13.7693 1.33328 12.6667V10H2.66662V12.6667C2.66662 13.034 2.96595 13.3333 3.33328 13.3333H12.6666C13.0339 13.3333 13.3333 13.034 13.3333 12.6667V10H14.6666V12.6667C14.6666 13.7693 13.7693 14.6667 12.6666 14.6667Z",["d",r]),["fill","#2E66F7"]]))),d("path",y(w([(i="M11.3333 5.72395L8.66667 8.39062V1.33328H7.33333V8.39062L4.66667 5.72395L3.724 6.66662L8 10.9426L12.276 6.66662L11.3333 5.72395Z",["d",i]),["fill","#2E66F7"]])))]),["children",v.Children.toArray(Array.from(n))])])))}function E0(e,t,n){let r,i,o,s,a,l,u,f,c,p,h,m,g,b,x,C,E,$,I,L,P,S;return Ks(w([new Kt(3,[t]),new Kt(4,[n]),new Kt(5,[[ea(me(new Qs(2,["fixed inset-0 bg-gray-500/50"]))),d("div",y(w([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Js(me(new Xs(2,[[d("div",y(w([["className","flex flex-col mt-6 mb-6 px-6"],(i=[d("div",y(w([["className","flex flex-row justify-between"],(o=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),d("button",y(w([["onClick",_=>{n()}],["type","button"],["className","text-gray-600"],(s=[ta(24,24)],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])]))),d("div",y(w([["className","text-gray-600 text-sm pt-6"],(a=[d("span",{children:"Fields marked with "}),d("span",{className:"text-red-600",children:"*"}),d("span",y(me((l=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",l]))))],["children",v.Children.toArray(Array.from(a))])]))),d("div",y(w([["className","grid grid-cols-2 mt-3"],(u=[d("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),d("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),d("div",y(w([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(f=[d("span",{children:"First name "}),d("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(f))])]))),d("div",y(me((c=[d("div",y(w([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",v.Children.toArray(Array.from(p))])])))],["children",v.Children.toArray(Array.from(c))])))),d("div",y(w([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[d("span",{children:"Last name "}),d("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(h))])]))),d("div",y(me((m=[d("div",y(w([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(g=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",v.Children.toArray(Array.from(g))])])))],["children",v.Children.toArray(Array.from(m))])))),d("div",y(w([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(b=[d("span",{children:"Email "}),d("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(b))])]))),d("div",y(me((x=[d("div",y(w([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(C=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",v.Children.toArray(Array.from(C))])])))],["children",v.Children.toArray(Array.from(x))])))),d("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),d("div",y(me((E=[d("div",y(w([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],($=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"+61432368712"})],["children",v.Children.toArray(Array.from($))])])))],["children",v.Children.toArray(Array.from(E))])))),d("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),d("div",y(me((I=[d("div",y(w([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(L=[d("span",{children:"One of the following options:"}),d("br",{}),d("ul",y(w([["className","italic list-disc px-3"],(P=[d("li",{children:"Full-time"}),d("li",{children:"Part-time"}),d("li",{children:"Labour hire"}),d("li",{children:"Casual"})],["children",v.Children.toArray(Array.from(P))])])))],["children",v.Children.toArray(Array.from(L))])])))],["children",v.Children.toArray(Array.from(I))])))),d("a",y(w([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(S=[d("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),S0(16,16)],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(u))])])))],["children",v.Children.toArray(Array.from(i))])])))]])))],["children",v.Children.toArray(Array.from(r))])])))]])]))}function v5(e,t){let n,r,i,o,s,a,l,u,f,c,p,h,m;return Ks(w([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ea(me(new Qs(2,["fixed inset-0 bg-gray-500/50"]))),d("div",y(w([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Js(me(new Xs(2,[[d("div",y(w([["className","flex flex-col mt-6 mb-6 px-6"],(r=[d("div",y(w([["className","flex flex-row justify-between"],(i=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),d("button",y(w([["onClick",g=>{t()}],["type","button"],["className","text-gray-600"],(o=[ta(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),d("div",y(w([["className","text-gray-500 text-sm font-normal pt-6"],(s=[d("p",y(me((a=[d("span",{children:["Workplace benefits is a"]}),d("span",{className:"font-semibold",children:" free platform "}),(l="for your entire workforce – including full-time, part-time, casual employees, and volunteers. It allows you to share company benefits while supporting employee wellbeing.",d("span",{children:[l]}))],["children",v.Children.toArray(Array.from(a))])))),d("p",y(w([["className","pt-3"],(u=[(f="With workplace benefits, your people can access everyday savings from top Australian brands like Woolworths, Kmart, Harvey Norman, The Iconic, and more – all through the ",d("span",{children:[f]})),d("span",{className:"font-semibold",children:" Flare App"}),d("span",{children:["."]})],["children",v.Children.toArray(Array.from(u))])]))),d("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),d("ul",y(w([["className","list-inside list-disc pt-3"],(c=[d("li",y(me((p=[d("span",{className:"font-semibold",children:"Savings "}),d("span",{children:["on essentials like food, fuel, and more."]})],["children",v.Children.toArray(Array.from(p))])))),d("li",y(w([["className","pt-2"],(h=[d("span",{className:"font-semibold",children:"Exclusive offers "}),d("span",{children:["from leading brands and retailers."]})],["children",v.Children.toArray(Array.from(h))])]))),d("li",y(w([["className","pt-2"],(m=[d("span",{className:"font-semibold",children:"Tax savings "}),d("span",{children:["with salary packaging."]})],["children",v.Children.toArray(Array.from(m))])])))],["children",v.Children.toArray(Array.from(c))])])))],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function b5(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(d("path",y(w([(r="M17.8008 14.5263L11.4838 2.88031C11.328 2.59137 11.0904 2.35483 10.8008 2.20031C10.4074 1.98974 9.94665 1.94305 9.51893 2.07039C9.0912 2.19773 8.73106 2.48881 8.51683 2.88031L2.20083 14.5263C2.06272 14.7826 1.99367 15.0704 2.00046 15.3614C2.00724 15.6525 2.08964 15.9368 2.23954 16.1863C2.38944 16.4359 2.60169 16.6422 2.85544 16.7849C3.10919 16.9276 3.39571 17.0018 3.68683 17.0003H16.3148C16.5939 17.0003 16.8686 16.9316 17.1148 16.8003C17.3099 16.6968 17.4825 16.5556 17.6228 16.3851C17.763 16.2145 17.8681 16.0178 17.932 15.8064C17.9958 15.595 18.0172 15.373 17.9949 15.1533C17.9726 14.9336 17.9069 14.7205 17.8018 14.5263H17.8008ZM10.0008 15.0003C9.80305 15.0003 9.60971 14.9417 9.44526 14.8318C9.28081 14.7219 9.15264 14.5657 9.07695 14.383C9.00126 14.2003 8.98146 13.9992 9.02004 13.8052C9.05863 13.6112 9.15387 13.4331 9.29372 13.2932C9.43358 13.1533 9.61176 13.0581 9.80574 13.0195C9.99972 12.9809 10.2008 13.0007 10.3835 13.0764C10.5662 13.1521 10.7224 13.2803 10.8323 13.4447C10.9422 13.6092 11.0008 13.8025 11.0008 14.0003C11.0008 14.2655 10.8955 14.5199 10.7079 14.7074C10.5204 14.8949 10.266 15.0003 10.0008 15.0003ZM11.0008 11.5003C11.0008 11.6329 10.9482 11.7601 10.8544 11.8539C10.7606 11.9476 10.6334 12.0003 10.5008 12.0003H9.50083C9.36822 12.0003 9.24104 11.9476 9.14728 11.8539C9.05351 11.7601 9.00083 11.6329 9.00083 11.5003V7.50031C9.00083 7.3677 9.05351 7.24052 9.14728 7.14675C9.24104 7.05298 9.36822 7.00031 9.50083 7.00031H10.5008C10.6334 7.00031 10.7606 7.05298 10.8544 7.14675C10.9482 7.24052 11.0008 7.3677 11.0008 7.50031V11.5003Z",["d",r]),["fill","#FBBF24"]])))),["children",v.Children.toArray(Array.from(n))])])))}const _5=e=>d("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d("g",{id:"Group 67"},d("path",{id:"Vector",d:"M24.2605 17.5933C17.766 17.5933 12.5005 22.9015 12.5005 29.4469V53.1561H36.0205V29.4469C36.0205 22.8995 30.7549 17.5933 24.2605 17.5933Z",fill:"url(#paint0_linear_4467_4223)"}),d("g",{id:"Group",opacity:.95},d("path",{id:"Vector_2",d:"M35.76 35.646C29.2655 35.646 24 40.9115 24 47.406V53.1558H47.52V47.406C47.52 40.9115 42.2544 35.646 35.76 35.646Z",fill:"url(#paint1_linear_4467_4223)"})),d("path",{id:"Vector_3",opacity:.95,d:"M12.24 35.646C5.74553 35.646 0.47998 40.9115 0.47998 47.406V53.1558H24V47.406C24 40.9115 18.7344 35.646 12.24 35.646Z",fill:"url(#paint2_linear_4467_4223)"}),d("path",{id:"Vector_4",d:"M24.1303 16.8098C28.5328 16.8098 32.1018 13.2408 32.1018 8.83827C32.1018 4.43569 28.5328 0.866699 24.1303 0.866699C19.7277 0.866699 16.1587 4.43569 16.1587 8.83827C16.1587 13.2408 19.7277 16.8098 24.1303 16.8098Z",fill:"#0095F2"}),d("path",{id:"Vector_5",opacity:.93,d:"M13.1537 35.1253C17.5563 35.1253 21.1253 31.5563 21.1253 27.1537C21.1253 22.7511 17.5563 19.1821 13.1537 19.1821C8.75112 19.1821 5.18213 22.7511 5.18213 27.1537C5.18213 31.5563 8.75112 35.1253 13.1537 35.1253Z",fill:"#FF876F"}),d("path",{id:"Vector_6",opacity:.93,d:"M35.89 35.1253C40.2926 35.1253 43.8616 31.5563 43.8616 27.1537C43.8616 22.7511 40.2926 19.1821 35.89 19.1821C31.4875 19.1821 27.9185 22.7511 27.9185 27.1537C27.9185 31.5563 31.4875 35.1253 35.89 35.1253Z",fill:"#A650FF"})),d("defs",null,d("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},d("stop",{stopColor:"#161E37"}),d("stop",{offset:.11,stopColor:"#172243"}),d("stop",{offset:.31,stopColor:"#1B2E62"}),d("stop",{offset:.57,stopColor:"#214196"}),d("stop",{offset:.89,stopColor:"#2A5CDD"}),d("stop",{offset:1,stopColor:"#2E66F7"})),d("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},d("stop",{offset:.11,stopColor:"#FF876F"}),d("stop",{offset:.99,stopColor:"#A650FF"})),d("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},d("stop",{stopColor:"#0095F2"}),d("stop",{offset:.29,stopColor:"#307CF6"}),d("stop",{offset:.61,stopColor:"#6163FB"}),d("stop",{offset:.86,stopColor:"#7F54FD"}),d("stop",{offset:1,stopColor:"#8B4FFF"}))));function x5(e,t){return v.createElement(e,y(t))}function C5(e){return x5(_5,e)}function Lr(e,t){let n;return d("div",y(w([["className",bt(" ",["animate-pulse w-full relative",e,t])],(n=[d("div",{className:bt(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",v.Children.toArray(Array.from(n))])])))}function S5(){let e,t,n,r,i,o,s,a,l,u,f,c;return d("div",y(w([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[d("div",y(w([["className","flex-col justify-start items-end gap-4 inline-flex"],(t=[d("div",y(w([["className","justify-start items-center gap-2 inline-flex"],(n=[d("input",{type:"checkbox",defaultChecked:!1,disabled:!0,className:"rounded-sm border border-gray-300 bg-white"}),d("span",{className:"text-gray-400 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",v.Children.toArray(Array.from(n))])]))),d("div",y(w([["className","px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[d("div",y(w([["className","w-[1030px]"],(i=ne(T(()=>{let p,h,m,g;return H(A(d("div",y(w([["className","bg-gray-100 flex"],(p=[d("div",y(w([["className","px-3 py-2.5 text-left"],(h=[Lr("h-5","w-[128px]")],["children",v.Children.toArray(Array.from(h))])]))),d("div",y(w([["className","px-3 py-2.5 text-left"],(m=[Lr("h-5","w-[148px]")],["children",v.Children.toArray(Array.from(m))])]))),d("div",y(w([["className","px-3 py-2.5 text-left flex-1"],(g=[Lr("h-5","w-full")],["children",v.Children.toArray(Array.from(g))])])))],["children",v.Children.toArray(Array.from(p))])])))),T(()=>je(b=>d("div",y(ne(T(()=>H(b%2===1?A(["className","bg-white border-t border-gray-200 flex"]):A(["className","bg-gray-50 border-t border-gray-200 flex"]),T(()=>{let x,C,E,$;return A((x=[d("div",y(w([["className","px-3 py-2.5 text-left"],(C=[Lr("h-5","w-[128px]")],["children",v.Children.toArray(Array.from(C))])]))),d("div",y(w([["className","px-3 py-2.5 text-left"],(E=[Lr("h-5","w-[148px]")],["children",v.Children.toArray(Array.from(E))])]))),d("div",y(w([["className","px-3 py-2.5 text-left flex-1"],($=[Lr("h-5","w-full")],["children",v.Children.toArray(Array.from($))])])))],["children",v.Children.toArray(Array.from(x))]))})))))),ne(Vl(0,1,9)))))})),["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])]))),d("div",y(w([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(o=[d("div",y(w([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(s=[d("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),d("div",y(w([["className","justify-start items-center gap-2 flex"],(a=[d("button",y(w([(l="px-[13px] py-[9px] bg-white opacity-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex",["className",l]),["disabled",!0],(u=[d("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(u))])]))),d("button",y(w([(f="pl-[13px] pr-[11px] py-[9px] opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex",["className",f]),["disabled",!0],(c=[d("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",v.Children.toArray(Array.from(c))])])))],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(e))])])))}function E5(e){const t=ze(r=>r,Rn(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const A5=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function k5(){window.location.replace(`${window.location.origin}/admin/app/oops`)}function N5(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasis,a=e.baseColumnMappings,l=e.dataRows,u=e.apiCallAsync;let f;const c=g5(()=>p5(u,l,a,s));f=Ir(()=>Mr(()=>c,(x,C)=>w5(()=>{k5()},x,C),(x,C)=>{}),void 0,void 0);const p=f[1],h=v.useState(!1),m=h[1],g=v.useState(!1),b=g[1];return d("div",y(w([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[E0(A5,h[0],()=>{m(!1)}),v5(g[0],()=>{b(!1)}),na("Review"),ra("Preview your data and confirm that everything is mapped correctly."),d("div",y(w([["className","flex flex-row pt-3 gap-2"],(n=[eo("What kind of data do I need?",()=>{m(!0)})],["children",v.Children.toArray(Array.from(n))])]))),d("div",y(w([["className","justify-start items-start gap-12 inline-flex"],(r=[d("div",y(ne(T(()=>H(A(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),T(()=>{let x,C,E;const $=f[0];if($.tag===1){const I=$.fields[0],L=_=>{p(new ji(1,[_]))},P=C0(I)?_=>{p(new ji(3,[]))}:void 0,S=x0(I)?_=>{p(new ji(4,[]))}:void 0;return A((x=[d("div",y(w([["className","flex-col justify-start items-start gap-6 inline-flex"],(C=ne(T(()=>{let _,k,N,D,O,z,he,q;return H(I.HasErrors?A(d("div",y(w([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex"],(_=[b5(20,20),d("div",y(w([["className","flex-col justify-start items-start gap-2 inline-flex"],(k=[d("div",y(ne(T(()=>H(A(["className","self-stretch text-amber-800 text-sm font-medium leading-tight"]),T(()=>{const W=I.DuplicateEmailCount>0,F=I.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0;let U;switch(W?F?U=1:U=0:F?U=0:U=1,U){case 0:return A(["children","We have found 1 issue"]);default:return A(["children","We have found 2 issues"])}})))))),d("ul",y(w([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],(N=ne(T(()=>{let W;return H(I.DuplicateEmailCount>0?A((W=w([d("span",{children:["Your CSV contains "]}),d("span",{className:"font-medium",children:`${I.DuplicateEmailCount} rows with duplicate email addresses. `}),d("span",{children:["We’ll skip these rows during the import process."]})]),d("li",{children:v.Children.toArray(Array.from(W))}))):mt(),T(()=>{let F;return I.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?A((F=w([d("span",{children:["Your CSV contains "]}),d("span",{className:"font-medium",children:`${I.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows with some missing or incorrectly formatted data. `}),d("span",{children:["We’ll skip these rows during the import process."]})]),d("li",{children:v.Children.toArray(Array.from(F))}))):mt()}))})),["children",v.Children.toArray(Array.from(N))])]))),d("div",y(w([["className","px-2 py-1.5"],(D=[d("div",y(w([["className","text-amber-700 text-sm leading-tight"],(O=[d("span",{children:["You can download the "]}),d("span",{className:"font-medium",children:`${I.NumberOfInvalidRows} invalid rows `}),(z="along with their error details as a CSV file. To import the remaining users: correct the errors then re-import.",d("span",{children:[z]}))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(D))])]))),d("div",y(w([["className","px-2 py-1.5"],(he=[d("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error CSV",href:E5((q=[I,s!=null],y5(q[0],q[1]))),download:"import_users_error_rows"})],["children",v.Children.toArray(Array.from(he))])])))],["children",v.Children.toArray(Array.from(k))])])))],["children",v.Children.toArray(Array.from(_))])])))):mt(),T(()=>{let W,F,U,j,fe,J,R,ee,le,Te,Oe,ie,we;return H(A(d("div",y(w([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(W=[d("div",y(w([["className","justify-start items-center gap-2 inline-flex"],(F=[d("input",y(w([["type","checkbox"],["defaultChecked",!1],(U="appearance-none rounded-sm border border-gray-300 bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 forced-colors:appearance-auto",["className",U]),["onClick",Y=>{p(new ji(2,[!I.ShowingOnlyRowsWithErrors]))}]]))),d("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",v.Children.toArray(Array.from(F))])]))),d("div",y(w([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(j=[d("div",y(me((fe=[d("div",y(w([["className","w-full max-h-[470px] overflow-auto"],(J=[d("table",y(w([["className","w-full divide-y divide-gray-300"],(R=[d("thead",y(w([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(ee=ne(T(()=>H(A(d("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),T(()=>H(A(d("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Error detail"})),T(()=>{let Y;return H(A(d("th",y(w([["scope","col"],["className","px-3 py-2.5 text-left"],(Y=[d("span",{children:["First name "]}),d("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(Y))])])))),T(()=>{let ae;return H(A(d("th",y(w([["scope","col"],["className","px-3 py-2.5 text-left"],(ae=[d("span",{children:["Last name "]}),d("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(ae))])])))),T(()=>{let B;return H(A(d("th",y(w([["scope","col"],["className","px-3 py-2.5 text-left"],(B=[d("span",{children:["Email "]}),d("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(B))])])))),T(()=>H(A(d("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Mobile Phone"})),T(()=>s!=null?A(d("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Employment Basis"})):mt()))))}))}))})))))),["children",v.Children.toArray(Array.from(ee))])]))),d("tbody",y(w([["className","divide-y divide-gray-200"],(le=ne(T(()=>je(Y=>d("tr",y(ne(T(()=>H(A(["key",Y.RowNumber]),T(()=>{let ae;return H((ae=Y.RowNumber%2|0,Y.ErrorDetail==null?A(ae===1?["className","bg-white"]:["className","bg-gray-50"]):A(["className","bg-amber-50"])),T(()=>{let B;return A((B=ne(T(()=>H(A(d("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm text-gray-500",children:Y.RowNumber})),T(()=>H(A(d("td",y(ne(T(()=>H(A(["className","whitespace-nowrap px-3 py-2.5"]),T(()=>{let Q,G;return Y.ErrorDetail!=null?A((Q=[d("div",y(w([(G="text-center text-amber-800 text-xs font-medium h-5 px-2.5 py-0.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",G]),["children",V(Y.ErrorDetail)]])))],["children",v.Children.toArray(Array.from(Q))])):mt()}))))))),T(()=>H(A(d("td",y(ne(T(()=>{let Q,G;const te=Y.FirstName;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))),T(()=>H(A(d("td",y(ne(T(()=>{let Q,G;const te=Y.LastName;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))),T(()=>H(A(d("td",y(ne(T(()=>{let Q,G;const te=Y.Email;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))),T(()=>H(A(d("td",y(ne(T(()=>{let Q,G;const te=Y.MobilePhone;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))),T(()=>s!=null?A(d("td",y(ne(T(()=>{let Q,G;const te=Y.EmploymentBasis;return te[0]==null?mt():te[1]?(Q=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",Q])))):(G=te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",G]))))}))))):mt())))))))))))))),["children",v.Children.toArray(Array.from(B))]))}))})))))),I.Page))),["children",v.Children.toArray(Array.from(le))])])))],["children",v.Children.toArray(Array.from(R))])])))],["children",v.Children.toArray(Array.from(J))])]))),d("div",y(w([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(Te=[d("div",y(w([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(Oe=[(ie=w([d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.RowFrom}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.RowTo}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.ShowingOnlyRowsWithErrors?I.NumberOfInvalidRows:I.NumberOfRows}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),d("div",{children:v.Children.toArray(Array.from(ie))})),d("div",y(w([["className","justify-start items-start gap-3 flex"],(we=[d("button",y(ne(T(()=>{let Y;return H((Y=S,Y==null?A(["disabled",!0]):A(["onClick",Y])),T(()=>{let ae;return H(A((ae="px-[17px] py-[9px] disabled:opacity-50 bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ae])),T(()=>{let B;return A((B=[d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",v.Children.toArray(Array.from(B))]))}))}))})))),d("button",y(ne(T(()=>{let Y;return H((Y=P,Y==null?A(["disabled",!0]):A(["onClick",Y])),T(()=>{let ae;return H(A((ae="px-[17px] py-[9px] disabled:opacity-50 bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ae])),T(()=>{let B;return A((B=[d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",v.Children.toArray(Array.from(B))]))}))}))}))))],["children",v.Children.toArray(Array.from(we))])])))],["children",v.Children.toArray(Array.from(Oe))])])))],["children",v.Children.toArray(Array.from(Te))])])))],["children",v.Children.toArray(Array.from(fe))]))))],["children",v.Children.toArray(Array.from(j))])])))],["children",v.Children.toArray(Array.from(W))])])))),T(()=>{let Y,ae,B,Q,G,te,Le,ve,Et,We,ot,mn,qt,ft,en;return H(I.NumberOfValidRows>0?A(d("div",y(w([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(Y=[C5([]),d("div",y(w([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(ae=[d("div",y(w([["className","flex-col justify-start items-start gap-2 flex"],(B=[d("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${I.NumberOfValidRows} users to workplace benefits`})],["children",v.Children.toArray(Array.from(B))])]))),eo("What is workplace benefits?",()=>{b(!0)}),d("div",y(me((Q=[d("div",y(w([["className","flex-col justify-start items-start gap-2 flex"],(G=[d("div",y(w([["key",et(new Pt(1,[]))],["className","relative flex items-start"],(te=[d("div",y(w([["className","flex h-6 items-center"],(Le=[d("input",y(w([["id",et(new Pt(1,[]))],["name","InviteTiming"],["type","radio"],(ve="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",ve]),["checked",re(I.InviteTiming,new Pt(1,[]))],["onChange",Pe=>{Pe.target.checked,L(new Pt(1,[]))}]])))],["children",v.Children.toArray(Array.from(Le))])]))),d("div",y(w([["className","ml-3 text-sm/6"],(Et=[d("label",{for:et(new Pt(1,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import now, Invite later"}),d("p",{id:`${et(new Pt(1,[]))}-description`,className:"text-gray-500 text-sm font-normal leading-tight",children:"We’ll import your users now. You can invite them to workplace benefits at any time later."})],["children",v.Children.toArray(Array.from(Et))])])))],["children",v.Children.toArray(Array.from(te))])])))],["children",v.Children.toArray(Array.from(G))])]))),d("div",y(me((We=[d("div",y(w([["key",et(new Pt(0,[]))],["className","relative flex items-start"],(ot=[d("div",y(w([["className","flex h-6 items-center"],(mn=[d("input",y(w([["id",et(new Pt(0,[]))],["name","InviteTiming"],["type","radio"],(qt="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",qt]),["checked",re(I.InviteTiming,new Pt(0,[]))],["onChange",Pe=>{Pe.target.checked,L(new Pt(0,[]))}]])))],["children",v.Children.toArray(Array.from(mn))])]))),d("div",y(w([["className","ml-3 text-sm/6"],(ft=[d("label",{for:et(new Pt(0,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import and invite now"}),d("p",y(w([["id",`${et(new Pt(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(en="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",en])])))],["children",v.Children.toArray(Array.from(ft))])])))],["children",v.Children.toArray(Array.from(ot))])])))],["children",v.Children.toArray(Array.from(We))]))))],["children",v.Children.toArray(Array.from(Q))]))))],["children",v.Children.toArray(Array.from(ae))])])))],["children",v.Children.toArray(Array.from(Y))])])))):mt(),T(()=>{let Pe,Mt,Ot,tn,ki,_n,Rt;return A(d("div",y(w([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(Pe=[d("div",y(w([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(Mt=[d("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),d("div",y(w([["className","justify-start items-center gap-2 flex"],(Ot=[d("button",y(w([(tn="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",tn]),["onClick",rr=>{i()}],(ki=[d("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(ki))])]))),d("button",y(w([(_n="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",_n]),["onClick",rr=>{o(I.InviteTiming)}],["disabled",I.NumberOfValidRows===0],(Rt=[d("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:`Import ${I.NumberOfValidRows} users`})],["children",v.Children.toArray(Array.from(Rt))])])))],["children",v.Children.toArray(Array.from(Ot))])])))],["children",v.Children.toArray(Array.from(Mt))])])))],["children",v.Children.toArray(Array.from(Pe))])]))))}))}))}))})),["children",v.Children.toArray(Array.from(C))])])))],["children",v.Children.toArray(Array.from(x))]))}else return A((E=[S5()],["children",v.Children.toArray(Array.from(E))]))}))))))],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Cn extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class Go extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var zo={exports:{}};/* @license
52
52
  Papa Parse
53
53
  v5.5.1
54
54
  https://github.com/mholt/PapaParse
55
55
  License: MIT
56
- */var T5=zo.exports,yd;function $5(){return yd||(yd=1,function(e,t){((n,r)=>{e.exports=r()})(T5,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,o=!r.document&&!!r.postMessage,s=r.IS_PAPA_WORKER||!1,a={},l=0,u={};function f(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(_){var k=I(_);k.chunkSize=parseInt(k.chunkSize),_.step||_.chunk||(k.chunkSize=null),this._handle=new w(k),(this._handle.streamer=this)._config=k}).call(this,S),this.parseChunk=function(_,k){var N=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<N){let O=this._config.newline;O||(D=this._config.quoteChar||'"',O=this._handle.guessLineEndings(_,D)),_=[..._.split(O).slice(N)].join(O)}this.isFirstChunk&&L(this._config.beforeFirstChunk)&&(D=this._config.beforeFirstChunk(_))!==void 0&&(_=D),this.isFirstChunk=!1,this._halted=!1;var N=this._partialLine+_,D=(this._partialLine="",this._handle.parse(N,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(_=D.meta.cursor,N=(this._finished||(this._partialLine=N.substring(_-this._baseIndex),this._baseIndex=_),D&&D.data&&(this._rowCount+=D.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)r.postMessage({results:D,workerId:u.WORKER_ID,finished:N});else if(L(this._config.chunk)&&!k){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=D=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!N||!L(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),N||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(_){L(this._config.error)?this._config.error(_):s&&this._config.error&&r.postMessage({workerId:u.WORKER_ID,error:_,finished:!1})}}function c(S){var _;(S=S||{}).chunkSize||(S.chunkSize=u.RemoteChunkSize),f.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(k){this._input=k,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(_=new XMLHttpRequest,this._config.withCredentials&&(_.withCredentials=this._config.withCredentials),o||(_.onload=F(this._chunkLoaded,this),_.onerror=F(this._chunkError,this)),_.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var k,N=this._config.downloadRequestHeaders;for(k in N)_.setRequestHeader(k,N[k])}var D;this._config.chunkSize&&(D=this._start+this._config.chunkSize-1,_.setRequestHeader("Range","bytes="+this._start+"-"+D));try{_.send(this._config.downloadRequestBody)}catch(O){this._chunkError(O.message)}o&&_.status===0&&this._chunkError()}},this._chunkLoaded=function(){_.readyState===4&&(_.status<200||400<=_.status?this._chunkError():(this._start+=this._config.chunkSize||_.responseText.length,this._finished=!this._config.chunkSize||this._start>=(k=>(k=k.getResponseHeader("Content-Range"))!==null?parseInt(k.substring(k.lastIndexOf("/")+1)):-1)(_),this.parseChunk(_.responseText)))},this._chunkError=function(k){k=_.statusText||k,this._sendError(new Error(k))}}function p(S){(S=S||{}).chunkSize||(S.chunkSize=u.LocalChunkSize),f.call(this,S);var _,k,N=typeof FileReader<"u";this.stream=function(D){this._input=D,k=D.slice||D.webkitSlice||D.mozSlice,N?((_=new FileReader).onload=F(this._chunkLoaded,this),_.onerror=F(this._chunkError,this)):_=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var D=this._input,O=(this._config.chunkSize&&(O=Math.min(this._start+this._config.chunkSize,this._input.size),D=k.call(D,this._start,O)),_.readAsText(D,this._config.encoding));N||this._chunkLoaded({target:{result:O}})},this._chunkLoaded=function(D){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(D.target.result)},this._chunkError=function(){this._sendError(_.error)}}function h(S){var _;f.call(this,S=S||{}),this.stream=function(k){return _=k,this._nextChunk()},this._nextChunk=function(){var k,N;if(!this._finished)return k=this._config.chunkSize,_=k?(N=_.substring(0,k),_.substring(k)):(N=_,""),this._finished=!_,this.parseChunk(N)}}function m(S){f.call(this,S=S||{});var _=[],k=!0,N=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(D){this._input=D,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){N&&_.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),_.length?this.parseChunk(_.shift()):k=!0},this._streamData=F(function(D){try{_.push(typeof D=="string"?D:D.toString(this._config.encoding)),k&&(k=!1,this._checkIsFinished(),this.parseChunk(_.shift()))}catch(O){this._streamError(O)}},this),this._streamError=F(function(D){this._streamCleanUp(),this._sendError(D)},this),this._streamEnd=F(function(){this._streamCleanUp(),N=!0,this._streamData("")},this),this._streamCleanUp=F(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function w(S){var _,k,N,D,O=Math.pow(2,53),z=-O,he=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,q=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,W=this,P=0,U=0,j=!1,fe=!1,J=[],R={data:[],errors:[],meta:{}};function ee(ie){return S.skipEmptyLines==="greedy"?ie.join("").trim()==="":ie.length===1&&ie[0].length===0}function le(){if(R&&N&&(De("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),N=!1),S.skipEmptyLines&&(R.data=R.data.filter(function(B){return!ee(B)})),Ne()){let B=function(Q,G){L(S.transformHeader)&&(Q=S.transformHeader(Q,G)),J.push(Q)};var ae=B;if(R)if(Array.isArray(R.data[0])){for(var ie=0;Ne()&&ie<R.data.length;ie++)R.data[ie].forEach(B);R.data.splice(0,1)}else R.data.forEach(B)}function we(B,Q){for(var G=S.header?{}:[],te=0;te<B.length;te++){var Le=te,ve=B[te],ve=((Et,We)=>(ot=>(S.dynamicTypingFunction&&S.dynamicTyping[ot]===void 0&&(S.dynamicTyping[ot]=S.dynamicTypingFunction(ot)),(S.dynamicTyping[ot]||S.dynamicTyping)===!0))(Et)?We==="true"||We==="TRUE"||We!=="false"&&We!=="FALSE"&&((ot=>{if(he.test(ot)&&(ot=parseFloat(ot),z<ot&&ot<O))return 1})(We)?parseFloat(We):q.test(We)?new Date(We):We===""?null:We):We)(Le=S.header?te>=J.length?"__parsed_extra":J[te]:Le,ve=S.transform?S.transform(ve,Le):ve);Le==="__parsed_extra"?(G[Le]=G[Le]||[],G[Le].push(ve)):G[Le]=ve}return S.header&&(te>J.length?De("FieldMismatch","TooManyFields","Too many fields: expected "+J.length+" fields but parsed "+te,U+Q):te<J.length&&De("FieldMismatch","TooFewFields","Too few fields: expected "+J.length+" fields but parsed "+te,U+Q)),G}var Y;R&&(S.header||S.dynamicTyping||S.transform)&&(Y=1,!R.data.length||Array.isArray(R.data[0])?(R.data=R.data.map(we),Y=R.data.length):R.data=we(R.data,0),S.header&&R.meta&&(R.meta.fields=J),U+=Y)}function Ne(){return S.header&&J.length===0}function De(ie,we,Y,ae){ie={type:ie,code:we,message:Y},ae!==void 0&&(ie.row=ae),R.errors.push(ie)}L(S.step)&&(D=S.step,S.step=function(ie){R=ie,Ne()?le():(le(),R.data.length!==0&&(P+=ie.data.length,S.preview&&P>S.preview?k.abort():(R.data=R.data[0],D(R,W))))}),this.parse=function(ie,we,Y){var ae=S.quoteChar||'"',ae=(S.newline||(S.newline=this.guessLineEndings(ie,ae)),N=!1,S.delimiter?L(S.delimiter)&&(S.delimiter=S.delimiter(ie),R.meta.delimiter=S.delimiter):((ae=((B,Q,G,te,Le)=>{var ve,Et,We,ot;Le=Le||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var mn=0;mn<Le.length;mn++){for(var qt,ft=Le[mn],en=0,Fe=0,Mt=0,Ot=(We=void 0,new x({comments:te,delimiter:ft,newline:Q,preview:10}).parse(B)),tn=0;tn<Ot.data.length;tn++)G&&ee(Ot.data[tn])?Mt++:(qt=Ot.data[tn].length,Fe+=qt,We===void 0?We=qt:0<qt&&(en+=Math.abs(qt-We),We=qt));0<Ot.data.length&&(Fe/=Ot.data.length-Mt),(Et===void 0||en<=Et)&&(ot===void 0||ot<Fe)&&1.99<Fe&&(Et=en,ve=ft,ot=Fe)}return{successful:!!(S.delimiter=ve),bestDelimiter:ve}})(ie,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess)).successful?S.delimiter=ae.bestDelimiter:(N=!0,S.delimiter=u.DefaultDelimiter),R.meta.delimiter=S.delimiter),I(S));return S.preview&&S.header&&ae.preview++,_=ie,k=new x(ae),R=k.parse(_,we,Y),le(),j?{meta:{paused:!0}}:R||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,k.abort(),_=L(S.chunk)?"":_.substring(k.getCharIndex())},this.resume=function(){W.streamer._halted?(j=!1,W.streamer.parseChunk(_,!0)):setTimeout(W.resume,3)},this.aborted=function(){return fe},this.abort=function(){fe=!0,k.abort(),R.meta.aborted=!0,L(S.complete)&&S.complete(R),_=""},this.guessLineEndings=function(B,ae){B=B.substring(0,1048576);var ae=new RegExp(b(ae)+"([^]*?)"+b(ae),"gm"),Y=(B=B.replace(ae,"")).split("\r"),ae=B.split(`
56
+ */var T5=zo.exports,gd;function $5(){return gd||(gd=1,function(e,t){((n,r)=>{e.exports=r()})(T5,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,o=!r.document&&!!r.postMessage,s=r.IS_PAPA_WORKER||!1,a={},l=0,u={};function f(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(_){var k=I(_);k.chunkSize=parseInt(k.chunkSize),_.step||_.chunk||(k.chunkSize=null),this._handle=new g(k),(this._handle.streamer=this)._config=k}).call(this,S),this.parseChunk=function(_,k){var N=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<N){let O=this._config.newline;O||(D=this._config.quoteChar||'"',O=this._handle.guessLineEndings(_,D)),_=[..._.split(O).slice(N)].join(O)}this.isFirstChunk&&P(this._config.beforeFirstChunk)&&(D=this._config.beforeFirstChunk(_))!==void 0&&(_=D),this.isFirstChunk=!1,this._halted=!1;var N=this._partialLine+_,D=(this._partialLine="",this._handle.parse(N,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(_=D.meta.cursor,N=(this._finished||(this._partialLine=N.substring(_-this._baseIndex),this._baseIndex=_),D&&D.data&&(this._rowCount+=D.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)r.postMessage({results:D,workerId:u.WORKER_ID,finished:N});else if(P(this._config.chunk)&&!k){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=D=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!N||!P(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),N||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(_){P(this._config.error)?this._config.error(_):s&&this._config.error&&r.postMessage({workerId:u.WORKER_ID,error:_,finished:!1})}}function c(S){var _;(S=S||{}).chunkSize||(S.chunkSize=u.RemoteChunkSize),f.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(k){this._input=k,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(_=new XMLHttpRequest,this._config.withCredentials&&(_.withCredentials=this._config.withCredentials),o||(_.onload=L(this._chunkLoaded,this),_.onerror=L(this._chunkError,this)),_.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var k,N=this._config.downloadRequestHeaders;for(k in N)_.setRequestHeader(k,N[k])}var D;this._config.chunkSize&&(D=this._start+this._config.chunkSize-1,_.setRequestHeader("Range","bytes="+this._start+"-"+D));try{_.send(this._config.downloadRequestBody)}catch(O){this._chunkError(O.message)}o&&_.status===0&&this._chunkError()}},this._chunkLoaded=function(){_.readyState===4&&(_.status<200||400<=_.status?this._chunkError():(this._start+=this._config.chunkSize||_.responseText.length,this._finished=!this._config.chunkSize||this._start>=(k=>(k=k.getResponseHeader("Content-Range"))!==null?parseInt(k.substring(k.lastIndexOf("/")+1)):-1)(_),this.parseChunk(_.responseText)))},this._chunkError=function(k){k=_.statusText||k,this._sendError(new Error(k))}}function p(S){(S=S||{}).chunkSize||(S.chunkSize=u.LocalChunkSize),f.call(this,S);var _,k,N=typeof FileReader<"u";this.stream=function(D){this._input=D,k=D.slice||D.webkitSlice||D.mozSlice,N?((_=new FileReader).onload=L(this._chunkLoaded,this),_.onerror=L(this._chunkError,this)):_=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var D=this._input,O=(this._config.chunkSize&&(O=Math.min(this._start+this._config.chunkSize,this._input.size),D=k.call(D,this._start,O)),_.readAsText(D,this._config.encoding));N||this._chunkLoaded({target:{result:O}})},this._chunkLoaded=function(D){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(D.target.result)},this._chunkError=function(){this._sendError(_.error)}}function h(S){var _;f.call(this,S=S||{}),this.stream=function(k){return _=k,this._nextChunk()},this._nextChunk=function(){var k,N;if(!this._finished)return k=this._config.chunkSize,_=k?(N=_.substring(0,k),_.substring(k)):(N=_,""),this._finished=!_,this.parseChunk(N)}}function m(S){f.call(this,S=S||{});var _=[],k=!0,N=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(D){this._input=D,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){N&&_.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),_.length?this.parseChunk(_.shift()):k=!0},this._streamData=L(function(D){try{_.push(typeof D=="string"?D:D.toString(this._config.encoding)),k&&(k=!1,this._checkIsFinished(),this.parseChunk(_.shift()))}catch(O){this._streamError(O)}},this),this._streamError=L(function(D){this._streamCleanUp(),this._sendError(D)},this),this._streamEnd=L(function(){this._streamCleanUp(),N=!0,this._streamData("")},this),this._streamCleanUp=L(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function g(S){var _,k,N,D,O=Math.pow(2,53),z=-O,he=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,q=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,W=this,F=0,U=0,j=!1,fe=!1,J=[],R={data:[],errors:[],meta:{}};function ee(ie){return S.skipEmptyLines==="greedy"?ie.join("").trim()==="":ie.length===1&&ie[0].length===0}function le(){if(R&&N&&(Oe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),N=!1),S.skipEmptyLines&&(R.data=R.data.filter(function(B){return!ee(B)})),Te()){let B=function(Q,G){P(S.transformHeader)&&(Q=S.transformHeader(Q,G)),J.push(Q)};var ae=B;if(R)if(Array.isArray(R.data[0])){for(var ie=0;Te()&&ie<R.data.length;ie++)R.data[ie].forEach(B);R.data.splice(0,1)}else R.data.forEach(B)}function we(B,Q){for(var G=S.header?{}:[],te=0;te<B.length;te++){var Le=te,ve=B[te],ve=((Et,We)=>(ot=>(S.dynamicTypingFunction&&S.dynamicTyping[ot]===void 0&&(S.dynamicTyping[ot]=S.dynamicTypingFunction(ot)),(S.dynamicTyping[ot]||S.dynamicTyping)===!0))(Et)?We==="true"||We==="TRUE"||We!=="false"&&We!=="FALSE"&&((ot=>{if(he.test(ot)&&(ot=parseFloat(ot),z<ot&&ot<O))return 1})(We)?parseFloat(We):q.test(We)?new Date(We):We===""?null:We):We)(Le=S.header?te>=J.length?"__parsed_extra":J[te]:Le,ve=S.transform?S.transform(ve,Le):ve);Le==="__parsed_extra"?(G[Le]=G[Le]||[],G[Le].push(ve)):G[Le]=ve}return S.header&&(te>J.length?Oe("FieldMismatch","TooManyFields","Too many fields: expected "+J.length+" fields but parsed "+te,U+Q):te<J.length&&Oe("FieldMismatch","TooFewFields","Too few fields: expected "+J.length+" fields but parsed "+te,U+Q)),G}var Y;R&&(S.header||S.dynamicTyping||S.transform)&&(Y=1,!R.data.length||Array.isArray(R.data[0])?(R.data=R.data.map(we),Y=R.data.length):R.data=we(R.data,0),S.header&&R.meta&&(R.meta.fields=J),U+=Y)}function Te(){return S.header&&J.length===0}function Oe(ie,we,Y,ae){ie={type:ie,code:we,message:Y},ae!==void 0&&(ie.row=ae),R.errors.push(ie)}P(S.step)&&(D=S.step,S.step=function(ie){R=ie,Te()?le():(le(),R.data.length!==0&&(F+=ie.data.length,S.preview&&F>S.preview?k.abort():(R.data=R.data[0],D(R,W))))}),this.parse=function(ie,we,Y){var ae=S.quoteChar||'"',ae=(S.newline||(S.newline=this.guessLineEndings(ie,ae)),N=!1,S.delimiter?P(S.delimiter)&&(S.delimiter=S.delimiter(ie),R.meta.delimiter=S.delimiter):((ae=((B,Q,G,te,Le)=>{var ve,Et,We,ot;Le=Le||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var mn=0;mn<Le.length;mn++){for(var qt,ft=Le[mn],en=0,Pe=0,Mt=0,Ot=(We=void 0,new x({comments:te,delimiter:ft,newline:Q,preview:10}).parse(B)),tn=0;tn<Ot.data.length;tn++)G&&ee(Ot.data[tn])?Mt++:(qt=Ot.data[tn].length,Pe+=qt,We===void 0?We=qt:0<qt&&(en+=Math.abs(qt-We),We=qt));0<Ot.data.length&&(Pe/=Ot.data.length-Mt),(Et===void 0||en<=Et)&&(ot===void 0||ot<Pe)&&1.99<Pe&&(Et=en,ve=ft,ot=Pe)}return{successful:!!(S.delimiter=ve),bestDelimiter:ve}})(ie,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess)).successful?S.delimiter=ae.bestDelimiter:(N=!0,S.delimiter=u.DefaultDelimiter),R.meta.delimiter=S.delimiter),I(S));return S.preview&&S.header&&ae.preview++,_=ie,k=new x(ae),R=k.parse(_,we,Y),le(),j?{meta:{paused:!0}}:R||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,k.abort(),_=P(S.chunk)?"":_.substring(k.getCharIndex())},this.resume=function(){W.streamer._halted?(j=!1,W.streamer.parseChunk(_,!0)):setTimeout(W.resume,3)},this.aborted=function(){return fe},this.abort=function(){fe=!0,k.abort(),R.meta.aborted=!0,P(S.complete)&&S.complete(R),_=""},this.guessLineEndings=function(B,ae){B=B.substring(0,1048576);var ae=new RegExp(b(ae)+"([^]*?)"+b(ae),"gm"),Y=(B=B.replace(ae,"")).split("\r"),ae=B.split(`
57
57
  `),B=1<ae.length&&ae[0].length<Y[0].length;if(Y.length===1||B)return`
58
58
  `;for(var Q=0,G=0;G<Y.length;G++)Y[G][0]===`
59
59
  `&&Q++;return Q>=Y.length/2?`\r
60
60
  `:"\r"}}function b(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(S){var _=(S=S||{}).delimiter,k=S.newline,N=S.comments,D=S.step,O=S.preview,z=S.fastMode,he=null,q=S.quoteChar==null?'"':S.quoteChar,W=q;if(S.escapeChar!==void 0&&(W=S.escapeChar),(typeof _!="string"||-1<u.BAD_DELIMITERS.indexOf(_))&&(_=","),N===_)throw new Error("Comment character same as delimiter");N===!0?N="#":(typeof N!="string"||-1<u.BAD_DELIMITERS.indexOf(N))&&(N=!1),k!==`
61
61
  `&&k!=="\r"&&k!==`\r
62
62
  `&&(k=`
63
- `);var P=0,U=!1;this.parse=function(j,fe,J){if(typeof j!="string")throw new Error("Input must be a string");var R=j.length,ee=_.length,le=k.length,Ne=N.length,De=L(D),ie=[],we=[],Y=[],ae=P=0;if(!j)return ft();if(z||z!==!1&&j.indexOf(q)===-1){for(var B=j.split(k),Q=0;Q<B.length;Q++){if(Y=B[Q],P+=Y.length,Q!==B.length-1)P+=k.length;else if(J)return ft();if(!N||Y.substring(0,Ne)!==N){if(De){if(ie=[],We(Y.split(_)),en(),U)return ft()}else We(Y.split(_));if(O&&O<=Q)return ie=ie.slice(0,O),ft(!0)}}return ft()}for(var G=j.indexOf(_,P),te=j.indexOf(k,P),Le=new RegExp(b(W)+b(q),"g"),ve=j.indexOf(q,P);;)if(j[P]===q)for(ve=P,P++;;){if((ve=j.indexOf(q,ve+1))===-1)return J||we.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ie.length,index:P}),mn();if(ve===R-1)return mn(j.substring(P,ve).replace(Le,q));if(q===W&&j[ve+1]===W)ve++;else if(q===W||ve===0||j[ve-1]!==W){G!==-1&&G<ve+1&&(G=j.indexOf(_,ve+1));var Et=ot((te=te!==-1&&te<ve+1?j.indexOf(k,ve+1):te)===-1?G:Math.min(G,te));if(j.substr(ve+1+Et,ee)===_){Y.push(j.substring(P,ve).replace(Le,q)),j[P=ve+1+Et+ee]!==q&&(ve=j.indexOf(q,P)),G=j.indexOf(_,P),te=j.indexOf(k,P);break}if(Et=ot(te),j.substring(ve+1+Et,ve+1+Et+le)===k){if(Y.push(j.substring(P,ve).replace(Le,q)),qt(ve+1+Et+le),G=j.indexOf(_,P),ve=j.indexOf(q,P),De&&(en(),U))return ft();if(O&&ie.length>=O)return ft(!0);break}we.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ie.length,index:P}),ve++}}else if(N&&Y.length===0&&j.substring(P,P+Ne)===N){if(te===-1)return ft();P=te+le,te=j.indexOf(k,P),G=j.indexOf(_,P)}else if(G!==-1&&(G<te||te===-1))Y.push(j.substring(P,G)),P=G+ee,G=j.indexOf(_,P);else{if(te===-1)break;if(Y.push(j.substring(P,te)),qt(te+le),De&&(en(),U))return ft();if(O&&ie.length>=O)return ft(!0)}return mn();function We(Fe){ie.push(Fe),ae=P}function ot(Fe){var Mt=0;return Mt=Fe!==-1&&(Fe=j.substring(ve+1,Fe))&&Fe.trim()===""?Fe.length:Mt}function mn(Fe){return J||(Fe===void 0&&(Fe=j.substring(P)),Y.push(Fe),P=R,We(Y),De&&en()),ft()}function qt(Fe){P=Fe,We(Y),Y=[],te=j.indexOf(k,P)}function ft(Fe){if(S.header&&!fe&&ie.length){var Mt=ie[0],Ot={},tn=new Set(Mt);let Ai=!1;for(let _n=0;_n<Mt.length;_n++){let Rt=Mt[_n];if(Ot[Rt=L(S.transformHeader)?S.transformHeader(Rt,_n):Rt]){let rr,du=Ot[Rt];for(;rr=Rt+"_"+du,du++,tn.has(rr););tn.add(rr),Mt[_n]=rr,Ot[Rt]++,Ai=!0,(he=he===null?{}:he)[rr]=Rt}else Ot[Rt]=1,Mt[_n]=Rt;tn.add(Rt)}Ai&&console.warn("Duplicate headers found and renamed.")}return{data:ie,errors:we,meta:{delimiter:_,linebreak:k,aborted:U,truncated:!!Fe,cursor:ae+(fe||0),renamedHeaders:he}}}function en(){D(ft()),ie=[],we=[]}},this.abort=function(){U=!0},this.getCharIndex=function(){return P}}function C(S){var _=S.data,k=a[_.workerId],N=!1;if(_.error)k.userError(_.error,_.file);else if(_.results&&_.results.data){var D={abort:function(){N=!0,E(_.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:M,resume:M};if(L(k.userStep)){for(var O=0;O<_.results.data.length&&(k.userStep({data:_.results.data[O],errors:_.results.errors,meta:_.results.meta},D),!N);O++);delete _.results}else L(k.userChunk)&&(k.userChunk(_.results,D,_.file),delete _.results)}_.finished&&!N&&E(_.workerId,_.results)}function E(S,_){var k=a[S];L(k.userComplete)&&k.userComplete(_),k.terminate(),delete a[S]}function M(){throw new Error("Not implemented.")}function I(S){if(typeof S!="object"||S===null)return S;var _,k=Array.isArray(S)?[]:{};for(_ in S)k[_]=I(S[_]);return k}function F(S,_){return function(){S.apply(_,arguments)}}function L(S){return typeof S=="function"}return u.parse=function(S,_){var k=(_=_||{}).dynamicTyping||!1;if(L(k)&&(_.dynamicTypingFunction=k,k={}),_.dynamicTyping=k,_.transform=!!L(_.transform)&&_.transform,!_.worker||!u.WORKERS_SUPPORTED)return k=null,u.NODE_STREAM_INPUT,typeof S=="string"?(S=(N=>N.charCodeAt(0)!==65279?N:N.slice(1))(S),k=new(_.download?c:h)(_)):S.readable===!0&&L(S.read)&&L(S.on)?k=new m(_):(r.File&&S instanceof File||S instanceof Object)&&(k=new p(_)),k.stream(S);(k=(()=>{var N;return!!u.WORKERS_SUPPORTED&&(N=(()=>{var D=r.URL||r.webkitURL||null,O=n.toString();return u.BLOB_URL||(u.BLOB_URL=D.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",O,")();"],{type:"text/javascript"})))})(),(N=new r.Worker(N)).onmessage=C,N.id=l++,a[N.id]=N)})()).userStep=_.step,k.userChunk=_.chunk,k.userComplete=_.complete,k.userError=_.error,_.step=L(_.step),_.chunk=L(_.chunk),_.complete=L(_.complete),_.error=L(_.error),delete _.worker,k.postMessage({input:S,config:_,workerId:k.id})},u.unparse=function(S,_){var k=!1,N=!0,D=",",O=`\r
64
- `,z='"',he=z+z,q=!1,W=null,P=!1,U=((()=>{if(typeof _=="object"){if(typeof _.delimiter!="string"||u.BAD_DELIMITERS.filter(function(J){return _.delimiter.indexOf(J)!==-1}).length||(D=_.delimiter),typeof _.quotes!="boolean"&&typeof _.quotes!="function"&&!Array.isArray(_.quotes)||(k=_.quotes),typeof _.skipEmptyLines!="boolean"&&typeof _.skipEmptyLines!="string"||(q=_.skipEmptyLines),typeof _.newline=="string"&&(O=_.newline),typeof _.quoteChar=="string"&&(z=_.quoteChar),typeof _.header=="boolean"&&(N=_.header),Array.isArray(_.columns)){if(_.columns.length===0)throw new Error("Option columns is empty");W=_.columns}_.escapeChar!==void 0&&(he=_.escapeChar+z),_.escapeFormulae instanceof RegExp?P=_.escapeFormulae:typeof _.escapeFormulae=="boolean"&&_.escapeFormulae&&(P=/^[=+\-@\t\r].*$/)}})(),new RegExp(b(z),"g"));if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return j(null,S,q);if(typeof S[0]=="object")return j(W||Object.keys(S[0]),S,q)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||W),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),j(S.fields||[],S.data||[],q);throw new Error("Unable to serialize unrecognized input");function j(J,R,ee){var le="",Ne=(typeof J=="string"&&(J=JSON.parse(J)),typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(J)&&0<J.length),De=!Array.isArray(R[0]);if(Ne&&N){for(var ie=0;ie<J.length;ie++)0<ie&&(le+=D),le+=fe(J[ie],ie);0<R.length&&(le+=O)}for(var we=0;we<R.length;we++){var Y=(Ne?J:R[we]).length,ae=!1,B=Ne?Object.keys(R[we]).length===0:R[we].length===0;if(ee&&!Ne&&(ae=ee==="greedy"?R[we].join("").trim()==="":R[we].length===1&&R[we][0].length===0),ee==="greedy"&&Ne){for(var Q=[],G=0;G<Y;G++){var te=De?J[G]:G;Q.push(R[we][te])}ae=Q.join("").trim()===""}if(!ae){for(var Le=0;Le<Y;Le++){0<Le&&!B&&(le+=D);var ve=Ne&&De?J[Le]:Le;le+=fe(R[we][ve],Le)}we<R.length-1&&(!ee||0<Y&&!B)&&(le+=O)}}return le}function fe(J,R){var ee,le;return J==null?"":J.constructor===Date?JSON.stringify(J).slice(1,25):(le=!1,P&&typeof J=="string"&&P.test(J)&&(J="'"+J,le=!0),ee=J.toString().replace(U,he),(le=le||k===!0||typeof k=="function"&&k(J,R)||Array.isArray(k)&&k[R]||((Ne,De)=>{for(var ie=0;ie<De.length;ie++)if(-1<Ne.indexOf(De[ie]))return!0;return!1})(ee,u.BAD_DELIMITERS)||-1<ee.indexOf(D)||ee.charAt(0)===" "||ee.charAt(ee.length-1)===" ")?z+ee+z:ee)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
65
- `,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!o&&!!r.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=x,u.ParserHandle=w,u.NetworkStreamer=c,u.FileStreamer=p,u.StringStreamer=h,u.ReadableStreamStreamer=m,r.jQuery&&((i=r.jQuery).fn.parse=function(S){var _=S.config||{},k=[];return this.each(function(O){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var z=0;z<this.files.length;z++)k.push({file:this.files[z],inputElem:this,instanceConfig:i.extend({},_)})}),N(),this;function N(){if(k.length===0)L(S.complete)&&S.complete();else{var O,z,he,q,W=k[0];if(L(S.before)){var P=S.before(W.file,W.inputElem);if(typeof P=="object"){if(P.action==="abort")return O="AbortError",z=W.file,he=W.inputElem,q=P.reason,void(L(S.error)&&S.error({name:O},z,he,q));if(P.action==="skip")return void D();typeof P.config=="object"&&(W.instanceConfig=i.extend(W.instanceConfig,P.config))}else if(P==="skip")return void D()}var U=W.instanceConfig.complete;W.instanceConfig.complete=function(j){L(U)&&U(j,W.file,W.inputElem),D()},u.parse(W.file,W.instanceConfig)}}function D(){k.splice(0,1),N()}}),s&&(r.onmessage=function(S){S=S.data,u.WORKER_ID===void 0&&S&&(u.WORKER_ID=S.workerId),typeof S.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(S.input,S.config),finished:!0}):(r.File&&S.input instanceof File||S.input instanceof Object)&&(S=u.parse(S.input,S.config))&&r.postMessage({workerId:u.WORKER_ID,results:S,finished:!0})}),(c.prototype=Object.create(f.prototype)).constructor=c,(p.prototype=Object.create(f.prototype)).constructor=p,(h.prototype=Object.create(h.prototype)).constructor=h,(m.prototype=Object.create(f.prototype)).constructor=m,u})}(zo)),zo.exports}var M5=$5();const I5=e=>e.filter(n=>!io(n)).length===0;function D5(e,t){const n=t.type==="text/csv",r=t.size<=10485760;if(n)if(r){const i={};i.complete=(o,s)=>{let a,l,u,f,c,p,h,m,w,b,x,C;e((a=o.errors,!vr(re,a,xe())&&a.length===0?(l=(u=o.data,u.filter(E=>!I5(E))),f=l.length>1?new $(0,[void 0]):new $(1,[new Cn(2,[])]),f.tag===1?new $(1,[f.fields[0]]):(c=l.length<=5001?new $(0,[void 0]):new $(1,[new Cn(3,[])]),c.tag===1?new $(1,[c.fields[0]]):(p=Bu(l),h=p.length|0,m=p.some(io)?new $(1,[new Cn(4,[])]):new $(0,[void 0]),m.tag===1?new $(1,[m.fields[0]]):(w=(b=jm(ze(E=>E.trim().toLocaleLowerCase(),p),{Equals:(E,M)=>E===M,GetHashCode:Qn}),b.length===h?new $(0,[void 0]):new $(1,[new Cn(5,[])])),w.tag===1?new $(1,[w.fields[0]]):(x=(C=l.filter(E=>E.length!==h),C.length===0?new $(0,[void 0]):new $(1,[new Cn(6,[])])),x.tag===1?new $(1,[x.fields[0]]):new $(0,[new L_(new Um(t.name),Cf((E,M)=>[new A_(E),new O_(M.trim())],Bu(l)),new F_(ze(E=>new R_(ze(M=>M.trim(),E)),fg(l))),t.size)])))))):new $(1,[new Cn(7,[pe(0,o.errors).message])])))},i.error=(o,s)=>{e(new $(1,[new Cn(7,[o])]))},i.worker=!0,M5.parse(t,i)}else e(new $(1,[new Cn(1,[])]));else e(new $(1,[new Cn(0,[])]))}let fr=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function O5(e){return e==null?[new fr(0,[void 0]),Z()]:[new fr(2,[e]),Z()]}function R5(e,t){let n,r,i,o,s;switch(e.tag){case 1:{t.tag===1?n=4:n=5;break}case 2:{t.tag===2?n=6:n=7;break}default:if(e.fields[0].tag===1)e.fields[0].fields[0].tag===1?t.tag===1?(n=2,s=e.fields[0].fields[0].fields[0]):n=3:t.tag===1?(n=1,o=e.fields[0].fields[0].fields[0]):n=3;else switch(t.tag){case 0:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}case 2:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}default:n=3}}switch(n){case 0:return[new fr(1,[r]),qf(i)];case 1:return[new fr(2,[o]),Z()];case 2:return[new fr(0,[s]),Z()];case 3:return[t,Z()];case 4:return[new fr(0,[void 0]),Z()];case 5:return[t,Z()];case 6:return[new fr(0,[void 0]),Z()];default:return[t,Z()]}}function F5(e,t){let n,r,i,o,s,a,l;return Ks(y([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ea(me(new Qs(2,["fixed inset-0 bg-gray-500/50"]))),d("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Js(me(new Xs(2,[[d("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(r=[d("div",g(y([["className","flex flex-row justify-between"],(i=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),d("button",g(y([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(o=[ta(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),d("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),d("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),d("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),d("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),d("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),d("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),d("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),d("div",g(y([["className","text-sm text-gray-500 pt-2"],(s="You must include the required fields: “First name,” “Last name,” and “Email” to create a profile. “Mobile number” and “Employment basis” are optional but recommended, as they can help with searching and filtering.",["children",s])]))),d("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),d("div",g(y([["className","text-sm text-gray-500 pt-2"],(a=`We recommend downloading and editing our sample CSV template, which includes all the necessary column headers and example values.
66
- If you’re using your own CSV, ensure that your data is organised correctly and that there are no extra spaces or special characters.`,["children",a])]))),d("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),d("div",g(y([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
67
- If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function P5(e,t){let n,r,i;return d("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=y([d("path",g(y([(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM3.99743 10C3.99743 13.3151 6.68487 16.0026 10 16.0026C13.3151 16.0026 16.0026 13.3151 16.0026 10C16.0026 6.68487 13.3151 3.99743 10 3.99743C6.68487 3.99743 3.99743 6.68487 3.99743 10Z",["d",r]),["fill","#D6E2FC"]]))),d("path",g(y([(i="M10 3C10 2.44772 10.4494 1.99356 10.9974 2.06242C11.7053 2.15137 12.3996 2.3348 13.0615 2.60896C14.0321 3.011 14.914 3.60028 15.6569 4.34315C16.3997 5.08602 16.989 5.96793 17.391 6.93853C17.6652 7.60043 17.8486 8.29473 17.9376 9.0026C18.0064 9.55057 17.5523 10 17 10C16.4477 10 16.0085 9.54925 15.9169 9.00462C15.842 8.55939 15.7169 8.12298 15.5433 7.7039C15.2417 6.97595 14.7998 6.31451 14.2426 5.75736C13.6855 5.20021 13.0241 4.75825 12.2961 4.45672C11.877 4.28313 11.4406 4.15804 10.9954 4.08314C10.4508 3.99152 10 3.55228 10 3Z",["d",i]),["fill","#2E66F7"]])))]),["children",v.Children.toArray(Array.from(n))])])))}function L5(e,t){let n,r;return d("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=y([d("path",g(y([(r="M17 21H3C1.346 21 0 19.654 0 18V14H2V18C2 18.551 2.448 19 3 19H17C17.552 19 18 18.551 18 18V14H20V18C20 19.654 18.654 21 17 21Z",["d",r]),["fill","#9CA3AF"]]))),d("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",v.Children.toArray(Array.from(n))])])))}function V5(e,t){zf(Pe.Delay(()=>Pe.Bind(H1(1e3),()=>(D5(n=>{t(new Go(0,[new Is(1,[n])]))},e),Pe.Zero()))))}const $a=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function H5(e){let t,n,r,i,o,s,a,l;const u=e.cancel,f=e.next,c=e.existingCsvFile;let p;const h=O5(c);p=Ir(()=>Mr(()=>h,R5,(_,k)=>{}),void 0,void 0);const m=p[0],w=p[1],b=_=>{w(new Go(0,[new Is(0,[[new Um(_.name),k=>{V5(_,k)}]])]))},x=v.useState(!1),C=x[1],E=v.useState(!1),M=E[1],I=v.useState(!1),F=I[1],L=v.useRef(void 0),S=m.tag===2;return d("div",g(y([["className","bg-gray-50 h-full"],(t=[d("div",g(y([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[E0($a,x[0],()=>{C(!1)}),F5(I[0],()=>{F(!1)}),na("Upload CSV"),ra("Download and use our template, or upload your own CSV to get started."),d("a",g(y([["className","flex flex-row items-end gap-1"],["href",$a],["download","import_users"],(r=[d("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),S0(16,16)],["children",v.Children.toArray(Array.from(r))])]))),d("div",g(y([["className","flex flex-row pt-3 gap-2"],(i=[Qi("What kind of data do I need?",()=>{C(!0)}),Qi("Frequently asked questions",()=>{F(!0)})],["children",v.Children.toArray(Array.from(i))])]))),d("div",g(ne(T(()=>H(E[0]?A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),T(()=>{let _;return A((_=ne(T(()=>{let k,N,D,O,z,he,q,W,P,U,j,fe,J;switch(m.tag){case 2:{let R;const ee=m.fields[0].SizeInBytes/1024/1024;return R=ee<.01?.01:ee,A(d("div",g(y([["className","p-6 justify-between items-center inline-flex w-full"],(k=[d("div",g(y([["className","justify-start items-start gap-2 flex"],(N=[d("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].Name.fields[0]}),d("span",g(y([["className","text-emerald-700"],(D=[uu(20,20)],["children",v.Children.toArray(Array.from(D))])])))],["children",v.Children.toArray(Array.from(N))])]))),d("div",g(y([["className","justify-start items-start gap-2 flex"],(O=[d("div",{className:"text-center text-gray-500 text-sm font-medium",children:`${R}MB`}),d("button",g(y([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",le=>{w(new Go(2,[]))}],(z=[d("div",{className:"text-center text-sm font-medium",children:"Remove"}),d("div",g(y([["className","w-4 h-4 justify-center items-center flex"],(he=[Ya(10,10)],["children",v.Children.toArray(Array.from(he))])])))],["children",v.Children.toArray(Array.from(z))])])))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(k))])]))))}case 1:return A(d("div",g(y([["className","p-6 justify-between items-center inline-flex w-full"],(q=[d("div",g(y([["className","justify-start items-start gap-2 flex"],(W=[d("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].fields[0]}),d("span",g(y([["className","animate-spin"],(P=[P5(20,20)],["children",v.Children.toArray(Array.from(P))])])))],["children",v.Children.toArray(Array.from(W))])]))),d("div",g(y([["className","justify-start items-start gap-2 flex"],(U=[d("button",g(y([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",R=>{w(new Go(1,[]))}],(j=[d("div",{className:"text-center text-sm font-medium",children:"Cancel"}),d("div",g(y([["className","w-4 h-4 justify-center items-center flex"],(fe=[Ya(10,10)],["children",v.Children.toArray(Array.from(fe))])])))],["children",v.Children.toArray(Array.from(j))])])))],["children",v.Children.toArray(Array.from(U))])])))],["children",v.Children.toArray(Array.from(q))])]))));default:{const R=ee=>{ee.preventDefault(),ee.stopPropagation()};return A(d("div",g(y([["className","flex flex-col items-center p-4"],["onDragEnter",ee=>{R(ee),M(!0)}],["onDragLeave",ee=>{R(ee),M(!1)}],["onDragOver",ee=>{R(ee),M(!0)}],["onDrop",ee=>{let le;R(ee),M(!1),b((le=ee,le.dataTransfer).files.item(0))}],(J=ne(T(()=>{let ee,le,Ne,De,ie,we;return H((ee=m.fields[0],ee==null?A(xe()):(le=ee,A(d("div",g(y([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(Ne=[d("div",g(y([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(De=[u0(16,15)],["children",v.Children.toArray(Array.from(De))])]))),d("div",g(y([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(ie=[d("div",g(y([["className","self-stretch text-red-800 text-sm font-normal"],(we=ne(T(()=>{let Y;const ae=G=>d("span",{className:"font-medium",children:G}),B=G=>d("span",{children:[G]}),Q=d("a",{className:"underline",children:"sample CSV",href:$a,download:"import_users"});return A((Y=le.tag===1?y([ae("File is too large (over 10MB). "),B("Upload a "),ae("smaller file"),B(".")]):le.tag===2?y([ae("File is empty. "),B("Ensure your file contains data before uploading.")]):le.tag===3?y([ae("Too many rows (5000+). "),B("Upload a "),ae("file with fewer rows"),B(".")]):le.tag===4?y([ae("Invalid CSV: Missing header field(s). "),B("Try using our "),Q,B(".")]):le.tag===5?y([ae("Invalid CSV: Duplicate header fields. "),B("Try using our "),Q,B(".")]):le.tag===6?y([ae("Invalid CSV: Rows have different lengths. "),B("Check for missing or extra columns.")]):le.tag===7?y([ae("Invalid CSV format. "),B("Try using our "),Q,B(".")]):y([ae("Unsupported file type. "),B("Upload a "),ae(".csv file"),B(".")]),d("p",{children:v.Children.toArray(Array.from(Y))})))})),["children",v.Children.toArray(Array.from(we))])])))],["children",v.Children.toArray(Array.from(ie))])])))],["children",v.Children.toArray(Array.from(Ne))])])))))),T(()=>{let Y;return H(A(d("div",g(y([["className","pt-2"],(Y=[L5(20,21)],["children",v.Children.toArray(Array.from(Y))])])))),T(()=>H(A(d("input",{type:"file",onChange:ae=>{const B=ae.target.files;B!=null&&B.length>0&&b(B.item(0))},className:"hidden",ref:L})),T(()=>H(A(d("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),T(()=>H(A(d("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white",onClick:ae=>{Tr(B=>{B.click()},Ss(L.current))},type:"button",children:v.Children.toArray(["Choose file"])})),T(()=>A(d("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",v.Children.toArray(Array.from(J))])]))))}}})),["children",v.Children.toArray(Array.from(_))]))})))))),d("div",g(y([["className","flex flex-row justify-end gap-3"],(o=[d("button",g(y([(s="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",_=>{u()}],["type","button"],["children",v.Children.toArray(["Cancel import"])]]))),d("button",g(y([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",_=>{m.tag===2&&f(m.fields[0])}],["type","button"],["disabled",!S],(l=["Map fields",cu(13,8)],["children",v.Children.toArray(Array.from(l))])])))],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Lt extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class It extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function j5(){return[new It(0,[new Lt(0,[void 0])]),Z()]}function B5(e,t){let n,r,i,o,s,a,l,u,f,c,p,h,m,w,b,x,C,E,M,I,F,L,S,_,k,N,D,O,z,he,q,W,P,U,j,fe,J;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,N=t.fields[0].fields[0][1],D=t.fields[0].fields[0][0],O=t.fields[0].fields[0][2],z=e.fields[0].fields[0]):n=14;break}case 2:{e.fields[0].fields[0].tag===0?t.tag===0&&t.fields[0].tag===1?(n=17,fe=t.fields[0].fields[0][0],J=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,W=e.fields[0].fields[0].fields[0],P=t.fields[0].fields[0][0],U=e.fields[0].fields[0].fields[1],j=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,he=e.fields[0].fields[0].fields[0],q=t.fields[0].fields[0][0]):n=18;break}default:t.tag===0&&t.fields[0].tag===3?t.fields[0].fields[0][2]!=null?(n=11,L=t.fields[0].fields[0][1],S=t.fields[0].fields[0][0],_=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,I=t.fields[0].fields[0][1],F=t.fields[0].fields[0][0]):n=12}else switch(e.fields[0].tag){case 1:{e.fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=4,u=e.fields[0].fields[0],f=t.fields[0].fields[0][0],c=e.fields[0].fields[1],p=t.fields[0].fields[0][1]):n=5:t.tag===0&&t.fields[0].tag===1?(n=3,a=e.fields[0].fields[0],l=t.fields[0].fields[0][0]):n=5;break}case 2:{t.tag===0&&t.fields[0].tag===2?(n=6,h=t.fields[0].fields[0][1],m=t.fields[0].fields[0][0],w=t.fields[0].fields[0][2],b=e.fields[0].fields[0]):n=7;break}case 3:{t.tag===0&&t.fields[0].tag===3?(n=8,x=t.fields[0].fields[0][1],C=t.fields[0].fields[0][0],E=t.fields[0].fields[0][2],M=e.fields[0].fields[0]):n=9;break}default:t.tag===0&&t.fields[0].tag===0?t.fields[0].fields[0]!=null?(n=1,i=e.fields[0].fields[0],o=t.fields[0].fields[0][0],s=t.fields[0].fields[0][1]):(n=0,r=e.fields[0].fields[0]):n=2}switch(n){case 0:return[new It(0,[new Lt(1,[[r,new xn(0,[void 0])]])]),Z()];case 1:return re(i,o)?[new It(0,[new Lt(1,[[o,s]])]),Z()]:[new It(0,[new Lt(1,[[i,new xn(0,[void 0])]])]),Z()];case 2:return[t,Z()];case 3:return[new It(0,[new Lt(3,[[l,a,void 0]])]),Z()];case 4:return[new It(0,[new Lt(2,[[f,u,c,p.tag===1&&p.fields[0].tag===1&&re(c,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),Z()];case 5:return[t,Z()];case 6:return[new It(0,[new Lt(3,[[m,h,[w,b]]])]),Z()];case 7:return[t,Z()];case 8:return[new It(1,[[C,x,E,M]]),Z()];case 9:return[t,Z()];case 10:return[new It(0,[new Lt(1,[[F,new xn(1,[new Pr(0,[I])])]])]),Z()];case 11:return[new It(0,[new Lt(2,[[S,L,_,k]])]),Z()];case 12:return[t,Z()];case 13:return[new It(0,[new Lt(1,[[D,new xn(1,[new Pr(1,[N,O,z])])]])]),Z()];case 14:return[t,Z()];case 15:return[new It(0,[new Lt(0,[[q,new xn(1,[new Pr(0,[he])])]])]),Z()];case 16:return[new It(0,[new Lt(0,[[P,j.tag===1?j.fields[0].tag===1?re(W,j.fields[0].fields[0])&&re(U,j.fields[0].fields[1])?j:new xn(1,[new Pr(1,[W,U,void 0])]):new xn(1,[new Pr(1,[W,U,void 0])]):new xn(1,[new Pr(1,[W,U,void 0])])]])]),Z()];case 17:return[new It(0,[new Lt(0,[[fe,new xn(0,[J])]])]),Z()];default:return[t,Z()]}}function U5(e,t,n,r,i,o,s){return d("div",{children:"Importing ..."})}class wt extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class Po extends Ce{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function W5(e){switch(e.tag){case 1:return new Po(new wt(0,[]),new wt(1,[]),new wt(2,[]),new wt(2,[]));case 2:return new Po(new wt(0,[]),new wt(0,[]),new wt(1,[]),new wt(2,[]));case 3:return new Po(new wt(0,[]),new wt(0,[]),new wt(0,[]),new wt(1,[]));default:return new Po(new wt(1,[]),new wt(2,[]),new wt(2,[]),new wt(2,[]))}}function G5(e,t,n,r){switch(r.tag){case 1:{const i=r.fields[0],o=i[1].tag===1?i[1].fields[0].tag===1?[Gc(i[1].fields[0].fields[0],i[1].fields[0].fields[1]),i[0].HeaderRow,i[0].DataRows]:[Gc(i[1].fields[0].fields[0],void 0),i[0].HeaderRow,i[0].DataRows]:[i[1].fields[0],i[0].HeaderRow,i[0].DataRows];return d(n5,{existingMappings:Li(o[0]),headerRow:o[1],dataRows:o[2],next:s=>{let a;n(new sr(0,[(a=s,new Do(1,[a[0],a[1]]))]))},back:s=>{n(new sr(1,[new Ta(2,[s])]))}})}case 2:{const i=P_(r.fields[0][0].DataRows,r.fields[0][2]);return d(f5,{existingMappings:Li(r.fields[0][3]),employmentBasisColumn:i,next:o=>{n(new sr(0,[new Do(2,[o])]))},back:o=>{n(new sr(1,[new Ta(1,[o])]))}})}case 3:return d(N5,{apiCallAsync:e,dataRows:r.fields[0][0].DataRows,baseColumnMappings:r.fields[0][1],employmentBasis:Li(r.fields[0][2]),next:i=>{n(new sr(0,[new Do(3,[i])]))},back:()=>{n(new sr(1,[new Ta(0,[])]))}});default:{const i=At(o=>o[0],r.fields[0]);return d(H5,{existingCsvFile:Li(i),next:o=>{n(new sr(0,[new Do(0,[o])]))},cancel:t})}}}function Lo(e,t){let n,r,i;switch(t.tag){case 1:return d("div",g(y([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[d("span",{children:e})],["children",v.Children.toArray(Array.from(n))])])));case 2:return d("div",g(y([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[d("span",{children:e})],["children",v.Children.toArray(Array.from(r))])])));default:return d("div",g(y([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[uu(20,20),d("span",{children:e})],["children",v.Children.toArray(Array.from(i))])])))}}function z5(e){let t,n,r,i,o;const s=j5();o=Ir(()=>Mr(()=>s,B5,(c,p)=>{}),void 0,void 0);const a=o[0],l=v.useState(!1);let u;if(a.tag===0){const c=a.fields[0],p=()=>{l[0]||l[1](!0)},h=W5(c),m=G5(w=>rv(e.backendUrl,w),p,o[1],c);u=d("div",g(y([["className","flex flex-col h-full"],(t=[d("div",g(y([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[d("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),d("button",g(y([(r="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",w=>{p()}],["type","button"],["children",v.Children.toArray(["Cancel import"])]])))],["children",v.Children.toArray(Array.from(n))])]))),d("div",g(y([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[Lo("1. Upload CSV",h.UploadingCsv),d("hr",{className:"w-16 pt-1.5"}),Lo("2. Map fields",h.MappingColumns),d("hr",{className:"w-16 pt-1.5"}),Lo("3. Map values",h.MappingEmploymentBasis),d("hr",{className:"w-16 pt-1.5"}),Lo("4. Review",h.Reviewing)],["children",v.Children.toArray(Array.from(i))])]))),m],["children",v.Children.toArray(Array.from(t))])])))}else{const c=a.fields[0][0].DataRows;u=U5(a.fields[0][0].Name,a.fields[0][0].HeaderRow,c,a.fields[0][1],a.fields[0][2],a.fields[0][3])}const f=[d("style",{children:[Al]}),u];return d(Ue,{},...f)}function q5(){hl(e=>d(z5,e),"apollo-import-workspace-wizard")}hl(e=>d(kg,e),"apollo-import-workspace-app");b_();q5();
63
+ `);var F=0,U=!1;this.parse=function(j,fe,J){if(typeof j!="string")throw new Error("Input must be a string");var R=j.length,ee=_.length,le=k.length,Te=N.length,Oe=P(D),ie=[],we=[],Y=[],ae=F=0;if(!j)return ft();if(z||z!==!1&&j.indexOf(q)===-1){for(var B=j.split(k),Q=0;Q<B.length;Q++){if(Y=B[Q],F+=Y.length,Q!==B.length-1)F+=k.length;else if(J)return ft();if(!N||Y.substring(0,Te)!==N){if(Oe){if(ie=[],We(Y.split(_)),en(),U)return ft()}else We(Y.split(_));if(O&&O<=Q)return ie=ie.slice(0,O),ft(!0)}}return ft()}for(var G=j.indexOf(_,F),te=j.indexOf(k,F),Le=new RegExp(b(W)+b(q),"g"),ve=j.indexOf(q,F);;)if(j[F]===q)for(ve=F,F++;;){if((ve=j.indexOf(q,ve+1))===-1)return J||we.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ie.length,index:F}),mn();if(ve===R-1)return mn(j.substring(F,ve).replace(Le,q));if(q===W&&j[ve+1]===W)ve++;else if(q===W||ve===0||j[ve-1]!==W){G!==-1&&G<ve+1&&(G=j.indexOf(_,ve+1));var Et=ot((te=te!==-1&&te<ve+1?j.indexOf(k,ve+1):te)===-1?G:Math.min(G,te));if(j.substr(ve+1+Et,ee)===_){Y.push(j.substring(F,ve).replace(Le,q)),j[F=ve+1+Et+ee]!==q&&(ve=j.indexOf(q,F)),G=j.indexOf(_,F),te=j.indexOf(k,F);break}if(Et=ot(te),j.substring(ve+1+Et,ve+1+Et+le)===k){if(Y.push(j.substring(F,ve).replace(Le,q)),qt(ve+1+Et+le),G=j.indexOf(_,F),ve=j.indexOf(q,F),Oe&&(en(),U))return ft();if(O&&ie.length>=O)return ft(!0);break}we.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ie.length,index:F}),ve++}}else if(N&&Y.length===0&&j.substring(F,F+Te)===N){if(te===-1)return ft();F=te+le,te=j.indexOf(k,F),G=j.indexOf(_,F)}else if(G!==-1&&(G<te||te===-1))Y.push(j.substring(F,G)),F=G+ee,G=j.indexOf(_,F);else{if(te===-1)break;if(Y.push(j.substring(F,te)),qt(te+le),Oe&&(en(),U))return ft();if(O&&ie.length>=O)return ft(!0)}return mn();function We(Pe){ie.push(Pe),ae=F}function ot(Pe){var Mt=0;return Mt=Pe!==-1&&(Pe=j.substring(ve+1,Pe))&&Pe.trim()===""?Pe.length:Mt}function mn(Pe){return J||(Pe===void 0&&(Pe=j.substring(F)),Y.push(Pe),F=R,We(Y),Oe&&en()),ft()}function qt(Pe){F=Pe,We(Y),Y=[],te=j.indexOf(k,F)}function ft(Pe){if(S.header&&!fe&&ie.length){var Mt=ie[0],Ot={},tn=new Set(Mt);let ki=!1;for(let _n=0;_n<Mt.length;_n++){let Rt=Mt[_n];if(Ot[Rt=P(S.transformHeader)?S.transformHeader(Rt,_n):Rt]){let rr,cu=Ot[Rt];for(;rr=Rt+"_"+cu,cu++,tn.has(rr););tn.add(rr),Mt[_n]=rr,Ot[Rt]++,ki=!0,(he=he===null?{}:he)[rr]=Rt}else Ot[Rt]=1,Mt[_n]=Rt;tn.add(Rt)}ki&&console.warn("Duplicate headers found and renamed.")}return{data:ie,errors:we,meta:{delimiter:_,linebreak:k,aborted:U,truncated:!!Pe,cursor:ae+(fe||0),renamedHeaders:he}}}function en(){D(ft()),ie=[],we=[]}},this.abort=function(){U=!0},this.getCharIndex=function(){return F}}function C(S){var _=S.data,k=a[_.workerId],N=!1;if(_.error)k.userError(_.error,_.file);else if(_.results&&_.results.data){var D={abort:function(){N=!0,E(_.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(P(k.userStep)){for(var O=0;O<_.results.data.length&&(k.userStep({data:_.results.data[O],errors:_.results.errors,meta:_.results.meta},D),!N);O++);delete _.results}else P(k.userChunk)&&(k.userChunk(_.results,D,_.file),delete _.results)}_.finished&&!N&&E(_.workerId,_.results)}function E(S,_){var k=a[S];P(k.userComplete)&&k.userComplete(_),k.terminate(),delete a[S]}function $(){throw new Error("Not implemented.")}function I(S){if(typeof S!="object"||S===null)return S;var _,k=Array.isArray(S)?[]:{};for(_ in S)k[_]=I(S[_]);return k}function L(S,_){return function(){S.apply(_,arguments)}}function P(S){return typeof S=="function"}return u.parse=function(S,_){var k=(_=_||{}).dynamicTyping||!1;if(P(k)&&(_.dynamicTypingFunction=k,k={}),_.dynamicTyping=k,_.transform=!!P(_.transform)&&_.transform,!_.worker||!u.WORKERS_SUPPORTED)return k=null,u.NODE_STREAM_INPUT,typeof S=="string"?(S=(N=>N.charCodeAt(0)!==65279?N:N.slice(1))(S),k=new(_.download?c:h)(_)):S.readable===!0&&P(S.read)&&P(S.on)?k=new m(_):(r.File&&S instanceof File||S instanceof Object)&&(k=new p(_)),k.stream(S);(k=(()=>{var N;return!!u.WORKERS_SUPPORTED&&(N=(()=>{var D=r.URL||r.webkitURL||null,O=n.toString();return u.BLOB_URL||(u.BLOB_URL=D.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",O,")();"],{type:"text/javascript"})))})(),(N=new r.Worker(N)).onmessage=C,N.id=l++,a[N.id]=N)})()).userStep=_.step,k.userChunk=_.chunk,k.userComplete=_.complete,k.userError=_.error,_.step=P(_.step),_.chunk=P(_.chunk),_.complete=P(_.complete),_.error=P(_.error),delete _.worker,k.postMessage({input:S,config:_,workerId:k.id})},u.unparse=function(S,_){var k=!1,N=!0,D=",",O=`\r
64
+ `,z='"',he=z+z,q=!1,W=null,F=!1,U=((()=>{if(typeof _=="object"){if(typeof _.delimiter!="string"||u.BAD_DELIMITERS.filter(function(J){return _.delimiter.indexOf(J)!==-1}).length||(D=_.delimiter),typeof _.quotes!="boolean"&&typeof _.quotes!="function"&&!Array.isArray(_.quotes)||(k=_.quotes),typeof _.skipEmptyLines!="boolean"&&typeof _.skipEmptyLines!="string"||(q=_.skipEmptyLines),typeof _.newline=="string"&&(O=_.newline),typeof _.quoteChar=="string"&&(z=_.quoteChar),typeof _.header=="boolean"&&(N=_.header),Array.isArray(_.columns)){if(_.columns.length===0)throw new Error("Option columns is empty");W=_.columns}_.escapeChar!==void 0&&(he=_.escapeChar+z),_.escapeFormulae instanceof RegExp?F=_.escapeFormulae:typeof _.escapeFormulae=="boolean"&&_.escapeFormulae&&(F=/^[=+\-@\t\r].*$/)}})(),new RegExp(b(z),"g"));if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return j(null,S,q);if(typeof S[0]=="object")return j(W||Object.keys(S[0]),S,q)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||W),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),j(S.fields||[],S.data||[],q);throw new Error("Unable to serialize unrecognized input");function j(J,R,ee){var le="",Te=(typeof J=="string"&&(J=JSON.parse(J)),typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(J)&&0<J.length),Oe=!Array.isArray(R[0]);if(Te&&N){for(var ie=0;ie<J.length;ie++)0<ie&&(le+=D),le+=fe(J[ie],ie);0<R.length&&(le+=O)}for(var we=0;we<R.length;we++){var Y=(Te?J:R[we]).length,ae=!1,B=Te?Object.keys(R[we]).length===0:R[we].length===0;if(ee&&!Te&&(ae=ee==="greedy"?R[we].join("").trim()==="":R[we].length===1&&R[we][0].length===0),ee==="greedy"&&Te){for(var Q=[],G=0;G<Y;G++){var te=Oe?J[G]:G;Q.push(R[we][te])}ae=Q.join("").trim()===""}if(!ae){for(var Le=0;Le<Y;Le++){0<Le&&!B&&(le+=D);var ve=Te&&Oe?J[Le]:Le;le+=fe(R[we][ve],Le)}we<R.length-1&&(!ee||0<Y&&!B)&&(le+=O)}}return le}function fe(J,R){var ee,le;return J==null?"":J.constructor===Date?JSON.stringify(J).slice(1,25):(le=!1,F&&typeof J=="string"&&F.test(J)&&(J="'"+J,le=!0),ee=J.toString().replace(U,he),(le=le||k===!0||typeof k=="function"&&k(J,R)||Array.isArray(k)&&k[R]||((Te,Oe)=>{for(var ie=0;ie<Oe.length;ie++)if(-1<Te.indexOf(Oe[ie]))return!0;return!1})(ee,u.BAD_DELIMITERS)||-1<ee.indexOf(D)||ee.charAt(0)===" "||ee.charAt(ee.length-1)===" ")?z+ee+z:ee)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
65
+ `,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!o&&!!r.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=x,u.ParserHandle=g,u.NetworkStreamer=c,u.FileStreamer=p,u.StringStreamer=h,u.ReadableStreamStreamer=m,r.jQuery&&((i=r.jQuery).fn.parse=function(S){var _=S.config||{},k=[];return this.each(function(O){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var z=0;z<this.files.length;z++)k.push({file:this.files[z],inputElem:this,instanceConfig:i.extend({},_)})}),N(),this;function N(){if(k.length===0)P(S.complete)&&S.complete();else{var O,z,he,q,W=k[0];if(P(S.before)){var F=S.before(W.file,W.inputElem);if(typeof F=="object"){if(F.action==="abort")return O="AbortError",z=W.file,he=W.inputElem,q=F.reason,void(P(S.error)&&S.error({name:O},z,he,q));if(F.action==="skip")return void D();typeof F.config=="object"&&(W.instanceConfig=i.extend(W.instanceConfig,F.config))}else if(F==="skip")return void D()}var U=W.instanceConfig.complete;W.instanceConfig.complete=function(j){P(U)&&U(j,W.file,W.inputElem),D()},u.parse(W.file,W.instanceConfig)}}function D(){k.splice(0,1),N()}}),s&&(r.onmessage=function(S){S=S.data,u.WORKER_ID===void 0&&S&&(u.WORKER_ID=S.workerId),typeof S.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(S.input,S.config),finished:!0}):(r.File&&S.input instanceof File||S.input instanceof Object)&&(S=u.parse(S.input,S.config))&&r.postMessage({workerId:u.WORKER_ID,results:S,finished:!0})}),(c.prototype=Object.create(f.prototype)).constructor=c,(p.prototype=Object.create(f.prototype)).constructor=p,(h.prototype=Object.create(h.prototype)).constructor=h,(m.prototype=Object.create(f.prototype)).constructor=m,u})}(zo)),zo.exports}var M5=$5();const I5=e=>e.filter(n=>!oo(n)).length===0;function D5(e,t){const n=t.type==="text/csv",r=t.size<=10485760;if(n)if(r){const i={};i.complete=(o,s)=>{let a,l,u,f,c,p,h,m,g,b,x,C;e((a=o.errors,!vr(re,a,xe())&&a.length===0?(l=(u=o.data,u.filter(E=>!I5(E))),f=l.length>1?new M(0,[void 0]):new M(1,[new Cn(2,[])]),f.tag===1?new M(1,[f.fields[0]]):(c=l.length<=5001?new M(0,[void 0]):new M(1,[new Cn(3,[])]),c.tag===1?new M(1,[c.fields[0]]):(p=ju(l),h=p.length|0,m=p.some(oo)?new M(1,[new Cn(4,[])]):new M(0,[void 0]),m.tag===1?new M(1,[m.fields[0]]):(g=(b=jm(ze(E=>E.trim().toLocaleLowerCase(),p),{Equals:(E,$)=>E===$,GetHashCode:Qn}),b.length===h?new M(0,[void 0]):new M(1,[new Cn(5,[])])),g.tag===1?new M(1,[g.fields[0]]):(x=(C=l.filter(E=>E.length!==h),C.length===0?new M(0,[void 0]):new M(1,[new Cn(6,[])])),x.tag===1?new M(1,[x.fields[0]]):new M(0,[new L_(new Um(t.name),xf((E,$)=>[new A_(E),new O_($.trim())],ju(l)),new F_(ze(E=>new R_(ze($=>$.trim(),E)),fg(l))),t.size)])))))):new M(1,[new Cn(7,[pe(0,o.errors).message])])))},i.error=(o,s)=>{e(new M(1,[new Cn(7,[o])]))},i.worker=!0,M5.parse(t,i)}else e(new M(1,[new Cn(1,[])]));else e(new M(1,[new Cn(0,[])]))}let fr=class extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function O5(e){return e==null?[new fr(0,[void 0]),Z()]:[new fr(2,[e]),Z()]}function R5(e,t){let n,r,i,o,s;switch(e.tag){case 1:{t.tag===1?n=4:n=5;break}case 2:{t.tag===2?n=6:n=7;break}default:if(e.fields[0].tag===1)e.fields[0].fields[0].tag===1?t.tag===1?(n=2,s=e.fields[0].fields[0].fields[0]):n=3:t.tag===1?(n=1,o=e.fields[0].fields[0].fields[0]):n=3;else switch(t.tag){case 0:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}case 2:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}default:n=3}}switch(n){case 0:return[new fr(1,[r]),qf(i)];case 1:return[new fr(2,[o]),Z()];case 2:return[new fr(0,[s]),Z()];case 3:return[t,Z()];case 4:return[new fr(0,[void 0]),Z()];case 5:return[t,Z()];case 6:return[new fr(0,[void 0]),Z()];default:return[t,Z()]}}function F5(e,t){let n,r,i,o,s,a,l;return Ks(w([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ea(me(new Qs(2,["fixed inset-0 bg-gray-500/50"]))),d("div",y(w([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Js(me(new Xs(2,[[d("div",y(w([["className","flex flex-col mt-6 mb-6 px-6"],(r=[d("div",y(w([["className","flex flex-row justify-between"],(i=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),d("button",y(w([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(o=[ta(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),d("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),d("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),d("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),d("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),d("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),d("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),d("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),d("div",y(w([["className","text-sm text-gray-500 pt-2"],(s="You must include the required fields: “First name,” “Last name,” and “Email” to create a profile. “Mobile number” and “Employment basis” are optional but recommended, as they can help with searching and filtering.",["children",s])]))),d("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),d("div",y(w([["className","text-sm text-gray-500 pt-2"],(a=`We recommend downloading and editing our sample CSV template, which includes all the necessary column headers and example values.
66
+ If you’re using your own CSV, ensure that your data is organised correctly and that there are no extra spaces or special characters.`,["children",a])]))),d("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),d("div",y(w([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
67
+ If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function P5(e,t){let n,r,i;return d("svg",y(w([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=w([d("path",y(w([(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM3.99743 10C3.99743 13.3151 6.68487 16.0026 10 16.0026C13.3151 16.0026 16.0026 13.3151 16.0026 10C16.0026 6.68487 13.3151 3.99743 10 3.99743C6.68487 3.99743 3.99743 6.68487 3.99743 10Z",["d",r]),["fill","#D6E2FC"]]))),d("path",y(w([(i="M10 3C10 2.44772 10.4494 1.99356 10.9974 2.06242C11.7053 2.15137 12.3996 2.3348 13.0615 2.60896C14.0321 3.011 14.914 3.60028 15.6569 4.34315C16.3997 5.08602 16.989 5.96793 17.391 6.93853C17.6652 7.60043 17.8486 8.29473 17.9376 9.0026C18.0064 9.55057 17.5523 10 17 10C16.4477 10 16.0085 9.54925 15.9169 9.00462C15.842 8.55939 15.7169 8.12298 15.5433 7.7039C15.2417 6.97595 14.7998 6.31451 14.2426 5.75736C13.6855 5.20021 13.0241 4.75825 12.2961 4.45672C11.877 4.28313 11.4406 4.15804 10.9954 4.08314C10.4508 3.99152 10 3.55228 10 3Z",["d",i]),["fill","#2E66F7"]])))]),["children",v.Children.toArray(Array.from(n))])])))}function L5(e,t){let n,r;return d("svg",y(w([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=w([d("path",y(w([(r="M17 21H3C1.346 21 0 19.654 0 18V14H2V18C2 18.551 2.448 19 3 19H17C17.552 19 18 18.551 18 18V14H20V18C20 19.654 18.654 21 17 21Z",["d",r]),["fill","#9CA3AF"]]))),d("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",v.Children.toArray(Array.from(n))])])))}function V5(e,t){zf(Se.Delay(()=>Se.Bind(H1(1e3),()=>(D5(n=>{t(new Go(0,[new Is(1,[n])]))},e),Se.Zero()))))}const $a=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function H5(e){let t,n,r,i,o,s,a,l;const u=e.cancel,f=e.next,c=e.existingCsvFile;let p;const h=O5(c);p=Ir(()=>Mr(()=>h,R5,(_,k)=>{}),void 0,void 0);const m=p[0],g=p[1],b=_=>{g(new Go(0,[new Is(0,[[new Um(_.name),k=>{V5(_,k)}]])]))},x=v.useState(!1),C=x[1],E=v.useState(!1),$=E[1],I=v.useState(!1),L=I[1],P=v.useRef(void 0),S=m.tag===2;return d("div",y(w([["className","bg-gray-50 h-full"],(t=[d("div",y(w([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[E0($a,x[0],()=>{C(!1)}),F5(I[0],()=>{L(!1)}),na("Upload CSV"),ra("Download and use our template, or upload your own CSV to get started."),d("a",y(w([["className","flex flex-row items-end gap-1"],["href",$a],["download","import_users"],(r=[d("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),S0(16,16)],["children",v.Children.toArray(Array.from(r))])]))),d("div",y(w([["className","flex flex-row pt-3 gap-2"],(i=[eo("What kind of data do I need?",()=>{C(!0)}),eo("Frequently asked questions",()=>{L(!0)})],["children",v.Children.toArray(Array.from(i))])]))),d("div",y(ne(T(()=>H(E[0]?A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),T(()=>{let _;return A((_=ne(T(()=>{let k,N,D,O,z,he,q,W,F,U,j,fe,J;switch(m.tag){case 2:{let R;const ee=m.fields[0].SizeInBytes/1024/1024;return R=ee<.01?.01:ee,A(d("div",y(w([["className","p-6 justify-between items-center inline-flex w-full"],(k=[d("div",y(w([["className","justify-start items-start gap-2 flex"],(N=[d("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].Name.fields[0]}),d("span",y(w([["className","text-emerald-700"],(D=[lu(20,20)],["children",v.Children.toArray(Array.from(D))])])))],["children",v.Children.toArray(Array.from(N))])]))),d("div",y(w([["className","justify-start items-start gap-2 flex"],(O=[d("div",{className:"text-center text-gray-500 text-sm font-medium",children:`${R}MB`}),d("button",y(w([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",le=>{g(new Go(2,[]))}],(z=[d("div",{className:"text-center text-sm font-medium",children:"Remove"}),d("div",y(w([["className","w-4 h-4 justify-center items-center flex"],(he=[qa(10,10)],["children",v.Children.toArray(Array.from(he))])])))],["children",v.Children.toArray(Array.from(z))])])))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(k))])]))))}case 1:return A(d("div",y(w([["className","p-6 justify-between items-center inline-flex w-full"],(q=[d("div",y(w([["className","justify-start items-start gap-2 flex"],(W=[d("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].fields[0]}),d("span",y(w([["className","animate-spin"],(F=[P5(20,20)],["children",v.Children.toArray(Array.from(F))])])))],["children",v.Children.toArray(Array.from(W))])]))),d("div",y(w([["className","justify-start items-start gap-2 flex"],(U=[d("button",y(w([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",R=>{g(new Go(1,[]))}],(j=[d("div",{className:"text-center text-sm font-medium",children:"Cancel"}),d("div",y(w([["className","w-4 h-4 justify-center items-center flex"],(fe=[qa(10,10)],["children",v.Children.toArray(Array.from(fe))])])))],["children",v.Children.toArray(Array.from(j))])])))],["children",v.Children.toArray(Array.from(U))])])))],["children",v.Children.toArray(Array.from(q))])]))));default:{const R=ee=>{ee.preventDefault(),ee.stopPropagation()};return A(d("div",y(w([["className","flex flex-col items-center p-4"],["onDragEnter",ee=>{R(ee),$(!0)}],["onDragLeave",ee=>{R(ee),$(!1)}],["onDragOver",ee=>{R(ee),$(!0)}],["onDrop",ee=>{let le;R(ee),$(!1),b((le=ee,le.dataTransfer).files.item(0))}],(J=ne(T(()=>{let ee,le,Te,Oe,ie,we;return H((ee=m.fields[0],ee==null?A(xe()):(le=ee,A(d("div",y(w([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(Te=[d("div",y(w([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(Oe=[u0(16,15)],["children",v.Children.toArray(Array.from(Oe))])]))),d("div",y(w([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(ie=[d("div",y(w([["className","self-stretch text-red-800 text-sm font-normal"],(we=ne(T(()=>{let Y;const ae=G=>d("span",{className:"font-medium",children:G}),B=G=>d("span",{children:[G]}),Q=d("a",{className:"underline",children:"sample CSV",href:$a,download:"import_users"});return A((Y=le.tag===1?w([ae("File is too large (over 10MB). "),B("Upload a "),ae("smaller file"),B(".")]):le.tag===2?w([ae("File is empty. "),B("Ensure your file contains data before uploading.")]):le.tag===3?w([ae("Too many rows (5000+). "),B("Upload a "),ae("file with fewer rows"),B(".")]):le.tag===4?w([ae("Invalid CSV: Missing header field(s). "),B("Try using our "),Q,B(".")]):le.tag===5?w([ae("Invalid CSV: Duplicate header fields. "),B("Try using our "),Q,B(".")]):le.tag===6?w([ae("Invalid CSV: Rows have different lengths. "),B("Check for missing or extra columns.")]):le.tag===7?w([ae("Invalid CSV format. "),B("Try using our "),Q,B(".")]):w([ae("Unsupported file type. "),B("Upload a "),ae(".csv file"),B(".")]),d("p",{children:v.Children.toArray(Array.from(Y))})))})),["children",v.Children.toArray(Array.from(we))])])))],["children",v.Children.toArray(Array.from(ie))])])))],["children",v.Children.toArray(Array.from(Te))])])))))),T(()=>{let Y;return H(A(d("div",y(w([["className","pt-2"],(Y=[L5(20,21)],["children",v.Children.toArray(Array.from(Y))])])))),T(()=>H(A(d("input",{type:"file",onChange:ae=>{const B=ae.target.files;B!=null&&B.length>0&&b(B.item(0))},className:"hidden",ref:P})),T(()=>H(A(d("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),T(()=>H(A(d("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white",onClick:ae=>{Tr(B=>{B.click()},Ss(P.current))},type:"button",children:v.Children.toArray(["Choose file"])})),T(()=>A(d("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",v.Children.toArray(Array.from(J))])]))))}}})),["children",v.Children.toArray(Array.from(_))]))})))))),d("div",y(w([["className","flex flex-row justify-end gap-3"],(o=[d("button",y(w([(s="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",_=>{u()}],["type","button"],["children",v.Children.toArray(["Cancel import"])]]))),d("button",y(w([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",_=>{m.tag===2&&f(m.fields[0])}],["type","button"],["disabled",!S],(l=["Map fields",uu(13,8)],["children",v.Children.toArray(Array.from(l))])])))],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Lt extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class It extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function j5(){return[new It(0,[new Lt(0,[void 0])]),Z()]}function B5(e,t){let n,r,i,o,s,a,l,u,f,c,p,h,m,g,b,x,C,E,$,I,L,P,S,_,k,N,D,O,z,he,q,W,F,U,j,fe,J;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,N=t.fields[0].fields[0][1],D=t.fields[0].fields[0][0],O=t.fields[0].fields[0][2],z=e.fields[0].fields[0]):n=14;break}case 2:{e.fields[0].fields[0].tag===0?t.tag===0&&t.fields[0].tag===1?(n=17,fe=t.fields[0].fields[0][0],J=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,W=e.fields[0].fields[0].fields[0],F=t.fields[0].fields[0][0],U=e.fields[0].fields[0].fields[1],j=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,he=e.fields[0].fields[0].fields[0],q=t.fields[0].fields[0][0]):n=18;break}default:t.tag===0&&t.fields[0].tag===3?t.fields[0].fields[0][2]!=null?(n=11,P=t.fields[0].fields[0][1],S=t.fields[0].fields[0][0],_=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,I=t.fields[0].fields[0][1],L=t.fields[0].fields[0][0]):n=12}else switch(e.fields[0].tag){case 1:{e.fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=4,u=e.fields[0].fields[0],f=t.fields[0].fields[0][0],c=e.fields[0].fields[1],p=t.fields[0].fields[0][1]):n=5:t.tag===0&&t.fields[0].tag===1?(n=3,a=e.fields[0].fields[0],l=t.fields[0].fields[0][0]):n=5;break}case 2:{t.tag===0&&t.fields[0].tag===2?(n=6,h=t.fields[0].fields[0][1],m=t.fields[0].fields[0][0],g=t.fields[0].fields[0][2],b=e.fields[0].fields[0]):n=7;break}case 3:{t.tag===0&&t.fields[0].tag===3?(n=8,x=t.fields[0].fields[0][1],C=t.fields[0].fields[0][0],E=t.fields[0].fields[0][2],$=e.fields[0].fields[0]):n=9;break}default:t.tag===0&&t.fields[0].tag===0?t.fields[0].fields[0]!=null?(n=1,i=e.fields[0].fields[0],o=t.fields[0].fields[0][0],s=t.fields[0].fields[0][1]):(n=0,r=e.fields[0].fields[0]):n=2}switch(n){case 0:return[new It(0,[new Lt(1,[[r,new xn(0,[void 0])]])]),Z()];case 1:return re(i,o)?[new It(0,[new Lt(1,[[o,s]])]),Z()]:[new It(0,[new Lt(1,[[i,new xn(0,[void 0])]])]),Z()];case 2:return[t,Z()];case 3:return[new It(0,[new Lt(3,[[l,a,void 0]])]),Z()];case 4:return[new It(0,[new Lt(2,[[f,u,c,p.tag===1&&p.fields[0].tag===1&&re(c,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),Z()];case 5:return[t,Z()];case 6:return[new It(0,[new Lt(3,[[m,h,[g,b]]])]),Z()];case 7:return[t,Z()];case 8:return[new It(1,[[C,x,E,$]]),Z()];case 9:return[t,Z()];case 10:return[new It(0,[new Lt(1,[[L,new xn(1,[new Pr(0,[I])])]])]),Z()];case 11:return[new It(0,[new Lt(2,[[S,P,_,k]])]),Z()];case 12:return[t,Z()];case 13:return[new It(0,[new Lt(1,[[D,new xn(1,[new Pr(1,[N,O,z])])]])]),Z()];case 14:return[t,Z()];case 15:return[new It(0,[new Lt(0,[[q,new xn(1,[new Pr(0,[he])])]])]),Z()];case 16:return[new It(0,[new Lt(0,[[F,j.tag===1?j.fields[0].tag===1?re(W,j.fields[0].fields[0])&&re(U,j.fields[0].fields[1])?j:new xn(1,[new Pr(1,[W,U,void 0])]):new xn(1,[new Pr(1,[W,U,void 0])]):new xn(1,[new Pr(1,[W,U,void 0])])]])]),Z()];case 17:return[new It(0,[new Lt(0,[[fe,new xn(0,[J])]])]),Z()];default:return[t,Z()]}}function U5(e,t,n,r,i,o,s){return d("div",{children:"Importing ..."})}class wt extends X{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class Po extends Ce{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function W5(e){switch(e.tag){case 1:return new Po(new wt(0,[]),new wt(1,[]),new wt(2,[]),new wt(2,[]));case 2:return new Po(new wt(0,[]),new wt(0,[]),new wt(1,[]),new wt(2,[]));case 3:return new Po(new wt(0,[]),new wt(0,[]),new wt(0,[]),new wt(1,[]));default:return new Po(new wt(1,[]),new wt(2,[]),new wt(2,[]),new wt(2,[]))}}function G5(e,t,n,r){switch(r.tag){case 1:{const i=r.fields[0],o=i[1].tag===1?i[1].fields[0].tag===1?[Wc(i[1].fields[0].fields[0],i[1].fields[0].fields[1]),i[0].HeaderRow,i[0].DataRows]:[Wc(i[1].fields[0].fields[0],void 0),i[0].HeaderRow,i[0].DataRows]:[i[1].fields[0],i[0].HeaderRow,i[0].DataRows];return d(n5,{existingMappings:Vi(o[0]),headerRow:o[1],dataRows:o[2],next:s=>{let a;n(new sr(0,[(a=s,new Do(1,[a[0],a[1]]))]))},back:s=>{n(new sr(1,[new Ta(2,[s])]))}})}case 2:{const i=P_(r.fields[0][0].DataRows,r.fields[0][2]);return d(f5,{existingMappings:Vi(r.fields[0][3]),employmentBasisColumn:i,next:o=>{n(new sr(0,[new Do(2,[o])]))},back:o=>{n(new sr(1,[new Ta(1,[o])]))}})}case 3:return d(N5,{apiCallAsync:e,dataRows:r.fields[0][0].DataRows,baseColumnMappings:r.fields[0][1],employmentBasis:Vi(r.fields[0][2]),next:i=>{n(new sr(0,[new Do(3,[i])]))},back:()=>{n(new sr(1,[new Ta(0,[])]))}});default:{const i=At(o=>o[0],r.fields[0]);return d(H5,{existingCsvFile:Vi(i),next:o=>{n(new sr(0,[new Do(0,[o])]))},cancel:t})}}}function Lo(e,t){let n,r,i;switch(t.tag){case 1:return d("div",y(w([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[d("span",{children:e})],["children",v.Children.toArray(Array.from(n))])])));case 2:return d("div",y(w([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[d("span",{children:e})],["children",v.Children.toArray(Array.from(r))])])));default:return d("div",y(w([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[lu(20,20),d("span",{children:e})],["children",v.Children.toArray(Array.from(i))])])))}}function z5(e){let t,n,r,i,o;const s=j5();o=Ir(()=>Mr(()=>s,B5,(c,p)=>{}),void 0,void 0);const a=o[0],l=v.useState(!1);let u;if(a.tag===0){const c=a.fields[0],p=()=>{l[0]||l[1](!0)},h=W5(c),m=G5(g=>rv(e.backendUrl,g),p,o[1],c);u=d("div",y(w([["className","flex flex-col h-full"],(t=[d("div",y(w([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[d("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),d("button",y(w([(r="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",g=>{p()}],["type","button"],["children",v.Children.toArray(["Cancel import"])]])))],["children",v.Children.toArray(Array.from(n))])]))),d("div",y(w([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[Lo("1. Upload CSV",h.UploadingCsv),d("hr",{className:"w-16 pt-1.5"}),Lo("2. Map fields",h.MappingColumns),d("hr",{className:"w-16 pt-1.5"}),Lo("3. Map values",h.MappingEmploymentBasis),d("hr",{className:"w-16 pt-1.5"}),Lo("4. Review",h.Reviewing)],["children",v.Children.toArray(Array.from(i))])]))),m],["children",v.Children.toArray(Array.from(t))])])))}else{const c=a.fields[0][0].DataRows;u=U5(a.fields[0][0].Name,a.fields[0][0].HeaderRow,c,a.fields[0][1],a.fields[0][2],a.fields[0][3])}const f=[d("style",{children:[El]}),u];return d(Ue,{},...f)}function q5(){ml(e=>d(z5,e),"apollo-import-workspace-wizard")}ml(e=>d(kg,e),"apollo-import-workspace-app");b_();q5();