@flarehr/apollo-import-workspace-app 0.26.0 → 0.27.0
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 ho,ke,Wd,mr,Du,Gd,ja,yl,Ba,Ua,zd,ro={},qd=[],sp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ms=Array.isArray;function kn(e,t){for(var n in t)e[n]=t[n];return e}function Yd(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function c(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?ho.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&&ke.vnode!=null&&ke.vnode(o),o}function Is(){return{current:null}}function ze(e){return e.children}function dn(e,t){this.props=e,this.context=t}function si(e,t){if(t==null)return e.__?si(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"?si(e):null}function Zd(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 Zd(e)}}function Wa(e){(!e.__d&&(e.__d=!0)&&mr.push(e)&&!os.__r++||Du!==ke.debounceRendering)&&((Du=ke.debounceRendering)||Gd)(os)}function os(){var e,t,n,r,i,o,s,a;for(mr.sort(ja);e=mr.shift();)e.__d&&(t=mr.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=kn({},i)).__v=i.__v+1,ke.vnode&&ke.vnode(r),vl(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??si(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Jd(s,r,a),r.__e!=o&&Zd(r)),mr.length>t&&mr.sort(ja));os.__r=0}function Kd(e,t,n,r,i,o,s,a,l,u,f){var d,p,h,m,v,b=r&&r.__k||qd,x=t.length;for(n.__d=l,ap(n,t,b),l=n.__d,d=0;d<x;d++)(h=n.__k[d])!=null&&(p=h.__i===-1?ro:b[h.__i]||ro,h.__i=d,vl(e,h,p,i,o,s,a,l,u,f),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&bl(p.ref,null,h),f.push(h.ref,h.__c||m,h)),v==null&&m!=null&&(v=m),65536&h.__u||p.__k===h.__k?l=Xd(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=v}function ap(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,f=u,d=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+d,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ji(null,i,null,null,null):Ms(i)?Ji(ze,{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=lp(i,n,s,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:(a>s?d--:d++,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=si(o)),Qd(o,o))}function Xd(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=Xd(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=si(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Mn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ms(e)?e.some(function(n){Mn(n,t)}):t.push(e)),t}function lp(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===ze||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 Ou(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||sp.test(t)?n:n+"px"}function Ro(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||Ou(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ou(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=yl,e.addEventListener(t,o?Ua:Ba,o)):e.removeEventListener(t,o?Ua:Ba,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 Ru(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=yl++;else if(t.t<n.u)return;return ke.event&&(t=ke.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function vl(e,t,n,r,i,o,s,a,l,u){var f,d,p,h,m,v,b,x,C,S,M,O,F,L,E,_,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=ke.__b)&&f(t);e:if(typeof k=="function")try{if(x=t.props,C="prototype"in k&&k.prototype.render,S=(f=k.contextType)&&r[f.__c],M=f?S?S.props.value:f.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:(C?t.__c=d=new k(x,M):(t.__c=d=new dn(x,M),d.constructor=k,d.render=cp),S&&S.sub(d),d.props=x,d.state||(d.state={}),d.context=M,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),C&&d.__s==null&&(d.__s=d.state),C&&k.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=kn({},d.__s)),kn(d.__s,k.getDerivedStateFromProps(x,d.__s))),h=d.props,m=d.state,d.__v=t,p)C&&k.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),C&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(C&&k.getDerivedStateFromProps==null&&x!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,M),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,M)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=x,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,M),C&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,m,v)})}if(d.context=M,d.props=x,d.__P=e,d.__e=!1,F=ke.__r,L=0,C){for(d.state=d.__s,d.__d=!1,F&&F(t),f=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do d.__d=!1,F&&F(t),f=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++L<25);d.state=d.__s,d.getChildContext!=null&&(r=kn(kn({},r),d.getChildContext())),C&&!p&&d.getSnapshotBeforeUpdate!=null&&(v=d.getSnapshotBeforeUpdate(h,m)),Kd(e,Ms(_=f!=null&&f.type===ze&&f.key==null?f.props.children:f)?_:[_],t,n,r,i,o,s,a,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),b&&(d.__E=d.__=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;ke.__e(N,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=up(n.__e,t,n,r,i,o,s,l,u);(f=ke.diffed)&&f(t)}function Jd(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)bl(n[r],n[++r],n[++r]);ke.__c&&ke.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){ke.__e(o,i.__v)}})}function up(e,t,n,r,i,o,s,a,l){var u,f,d,p,h,m,v,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&&(ke.__m&&ke.__m(t,o),a=!1),o=null}if(C===null)b===x||a&&e.data===x||(e.data=x);else{if(o=o&&ho.call(e.childNodes),b=n.props||ro,!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")d=h;else if(!(u in x)){if(u=="value"&&"defaultValue"in x||u=="checked"&&"defaultChecked"in x)continue;Ro(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"?v=h:a&&typeof h!="function"||b[u]===h||Ro(e,u,h,b[u],i);if(f)a||d&&(f.__html===d.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(d&&(e.innerHTML=""),Kd(e,Ms(p)?p:[p],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&si(n,0),a,l),o!=null)for(u=o.length;u--;)Yd(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])&&Ro(e,u,m,b[u],i),u="checked",v!==void 0&&v!==e[u]&&Ro(e,u,v,b[u],i))}return e}function bl(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){ke.__e(i,n)}}function Qd(e,t,n){var r,i;if(ke.unmount&&ke.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||bl(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){ke.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Qd(r[i],t,n||typeof e.type!="function");n||Yd(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function cp(e,t,n){return this.constructor(e,n)}function Zn(e,t,n){var r,i,o,s;ke.__&&ke.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],vl(t,e=(!r&&n||t).__k=c(ze,null,[e]),i||ro,ro,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?ho.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),Jd(o,e,s)}function _l(e,t){Zn(e,t,_l)}function xl(e,t,n){var r,i,o,s,a=kn({},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?ho.call(arguments,2):n),Ji(e.type,a,r||e.key,i||e.ref,null)}function st(e,t){var n={__c:t="__cC"+zd++,__: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,Wa(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}ho=qd.slice,ke={__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,dn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=kn({},this.state),typeof e=="function"&&(e=e(kn({},n),this.props)),e&&kn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Wa(this))},dn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Wa(this))},dn.prototype.render=ze,mr=[],Gd=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ja=function(e,t){return e.__v.__b-t.__v.__b},os.__r=0,yl=0,Ba=Ru(!1),Ua=Ru(!0),zd=0;function Cl(){return(Cl=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 dp=["context","children"];function fp(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,dp);return xl(t,n)}function mp(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=c(fp,Cl({},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[ef(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?o[f]=c(Fu,{name:f},u):i[s]=u}var d=r?c(Fu,null,i):i;return c(r||n.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?_l:Zn)(this._vdom,this._root)}function ef(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function hp(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[ef(e)]=n,this._vdom=xl(this._vdom,r),Zn(this._vdom,this._root)}}function pp(){Zn(this._vdom=null,this._root)}function Fu(e,t){var n=this;return c("slot",Cl({},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 gp(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=mp,i.prototype.attributeChangedCallback=hp,i.prototype.disconnectedCallback=pp,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 Sl(e,t){gp(e,t)}var On,We,ha,Pu,ai=0,tf=[],tt=ke,Lu=tt.__b,Vu=tt.__r,Hu=tt.diffed,ju=tt.__c,Bu=tt.unmount,Uu=tt.__;function Dr(e,t){tt.__h&&tt.__h(We,e,ai||t),ai=0;var n=We.__H||(We.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function be(e){return ai=1,Or(nf,e)}function Or(e,t,n){var r=Dr(On++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):nf(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=We,!We.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 d=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]&&(d=!0)}}),o&&o.call(this,a,l,u)||d};We.u=!0;var o=We.shouldComponentUpdate,s=We.componentWillUpdate;We.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)},We.shouldComponentUpdate=i}return r.__N||r.__}function Re(e,t){var n=Dr(On++,3);!tt.__s&&kl(n.__H,t)&&(n.__=e,n.i=t,We.__H.__h.push(n))}function vn(e,t){var n=Dr(On++,4);!tt.__s&&kl(n.__H,t)&&(n.__=e,n.i=t,We.__h.push(n))}function re(e){return ai=5,fe(function(){return{current:e}},[])}function El(e,t,n){ai=6,vn(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 fe(e,t){var n=Dr(On++,7);return kl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Oe(e,t){return ai=8,fe(function(){return e},t)}function Ve(e){var t=We.context[e.__c],n=Dr(On++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(We)),t.props.value):e.__}function Al(e,t){tt.useDebugValue&&tt.useDebugValue(t?t(e):e)}function wp(e){var t=Dr(On++,10),n=be();return t.__=e,We.componentDidCatch||(We.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function tn(){var e=Dr(On++,11);if(!e.__){for(var t=We.__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 yp(){for(var e;e=tf.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ko),e.__H.__h.forEach(Ga),e.__H.__h=[]}catch(t){e.__H.__h=[],tt.__e(t,e.__v)}}tt.__b=function(e){We=null,Lu&&Lu(e)},tt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Uu&&Uu(e,t)},tt.__r=function(e){Vu&&Vu(e),On=0;var t=(We=e.__c).__H;t&&(ha===We?(t.__h=[],We.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Ko),t.__h.forEach(Ga),t.__h=[],On=0)),ha=We},tt.diffed=function(e){Hu&&Hu(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(tf.push(t)!==1&&Pu===tt.requestAnimationFrame||((Pu=tt.requestAnimationFrame)||vp)(yp)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ha=We=null},tt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ko),n.__h=n.__h.filter(function(r){return!r.__||Ga(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],tt.__e(r,n.__v)}}),ju&&ju(e,t)},tt.unmount=function(e){Bu&&Bu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ko(r)}catch(i){t=i}}),n.__H=void 0,t&&tt.__e(t,n.__v))};var Wu=typeof requestAnimationFrame=="function";function vp(e){var t,n=function(){clearTimeout(r),Wu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Wu&&(t=requestAnimationFrame(n))}function Ko(e){var t=We,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),We=t}function Ga(e){var t=We;e.__c=e.__(),We=t}function kl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function nf(e,t){return typeof t=="function"?t(e):t}function za(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 Ds(e,t){var n=t(),r=be({t:{__:n,u:t}}),i=r[0].t,o=r[1];return vn(function(){i.__=n,i.u=t,pa(i)&&o({t:i})},[e,n,t]),Re(function(){return pa(i)&&o({t:i}),e(function(){pa(i)&&o({t:i})})},[e]),n}function pa(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 Nl(e){e()}function Tl(e){return e}function $l(){return[!1,Nl]}var Ml=vn;function ss(e,t){this.props=e,this.context=t}function rf(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:za(this.props,i)}function r(i){return this.shouldComponentUpdate=n,c(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ss.prototype=new dn).isPureReactComponent=!0,ss.prototype.shouldComponentUpdate=function(e,t){return za(this.props,e)||za(this.state,t)};var Gu=ke.__b;ke.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Gu&&Gu(e)};var bp=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Il(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=bp,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var zu=function(e,t){return e==null?null:Mn(Mn(e).map(t))},of={map:zu,forEach:zu,count:function(e){return e?Mn(e).length:0},only:function(e){var t=Mn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Mn},_p=ke.__e;ke.__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)}_p(e,t,n,r)};var qu=ke.unmount;function sf(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 sf(r,t,n)})),e}function af(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return af(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 Qi(){this.__u=0,this.o=null,this.__b=null}function lf(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function uf(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 c(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Yr(){this.i=null,this.l=null}ke.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),qu&&qu(e)},(Qi.prototype=new dn).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=lf(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]=af(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)},Qi.prototype.componentWillUnmount=function(){this.o=[]},Qi.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]=sf(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&c(ze,null,e.fallback);return i&&(i.__u&=-33),[c(ze,null,t.__a?null:e.children),i]};var Yu=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 xp(e){return this.getChildContext=function(){return e.context},e.children}function Cp(e){var t=this,n=e.h;t.componentWillUnmount=function(){Zn(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)}}),Zn(c(xp,{context:t.context},e.__v),t.v)}function Os(e,t){var n=c(Cp,{__v:e,h:t});return n.containerInfo=t,n}(Yr.prototype=new dn).__a=function(e){var t=this,n=lf(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Yu(t,e,r)):i()};n?n(o):o()}},Yr.prototype.render=function(e){this.i=null,this.l=new Map;var t=Mn(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},Yr.prototype.componentDidUpdate=Yr.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Yu(e,n,t)})};var cf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Sp=/^(?: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]/,Ep=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ap=/[A-Z0-9]/g,kp=typeof document<"u",Np=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function df(e,t,n){return t.__k==null&&(t.textContent=""),Zn(e,t),typeof n=="function"&&n(),e?e.__c:null}function ff(e,t,n){return _l(e,t),typeof n=="function"&&n(),e?e.__c:null}dn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(dn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Zu=ke.event;function Tp(){}function $p(){return this.cancelBubble}function Mp(){return this.defaultPrevented}ke.event=function(e){return Zu&&(e=Zu(e)),e.persist=Tp,e.isPropagationStopped=$p,e.isDefaultPrevented=Mp,e.nativeEvent=e};var Dl,Ip={enumerable:!1,configurable:!0,get:function(){return this.class}},Ku=ke.vnode;ke.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||kp&&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"||Np(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Ep.test(s)&&(s=l):l=s="oninput":o&&Sp.test(s)?s=s.replace(Ap,"-$&").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=Mn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Mn(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",Ip)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=cf,Ku&&Ku(e)};var Xu=ke.__r;ke.__r=function(e){Xu&&Xu(e),Dl=e.__c};var Ju=ke.diffed;ke.diffed=function(e){Ju&&Ju(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),Dl=null};var mf={ReactCurrentDispatcher:{current:{readContext:function(e){return Dl.__n[e.__c].props.value},useCallback:Oe,useContext:Ve,useDebugValue:Al,useDeferredValue:Tl,useEffect:Re,useId:tn,useImperativeHandle:El,useInsertionEffect:Ml,useLayoutEffect:vn,useMemo:fe,useReducer:Or,useRef:re,useState:be,useSyncExternalStore:Ds,useTransition:$l}}},Dp="18.3.1";function hf(e){return c.bind(null,e)}function pi(e){return!!e&&e.$$typeof===cf}function pf(e){return pi(e)&&e.type===ze}function gf(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ol(e){return pi(e)?xl.apply(null,arguments):e}function wf(e){return!!e.__k&&(Zn(null,e),!0)}function yf(e){return e&&(e.base||e.nodeType===1&&e)||null}var vf=function(e,t){return e(t)},qt=function(e,t){return e(t)},bf=ze,_f=pi,K={useState:be,useId:tn,useReducer:Or,useEffect:Re,useLayoutEffect:vn,useInsertionEffect:Ml,useTransition:$l,useDeferredValue:Tl,useSyncExternalStore:Ds,startTransition:Nl,useRef:re,useImperativeHandle:El,useMemo:fe,useCallback:Oe,useContext:Ve,useDebugValue:Al,version:"18.3.1",Children:of,render:df,hydrate:ff,unmountComponentAtNode:wf,createPortal:Os,createElement:c,createContext:st,createFactory:hf,cloneElement:Ol,createRef:Is,Fragment:ze,isValidElement:pi,isElement:_f,isFragment:pf,isMemo:gf,findDOMNode:yf,Component:dn,PureComponent:ss,memo:rf,forwardRef:Il,flushSync:qt,unstable_batchedUpdates:vf,StrictMode:bf,Suspense:Qi,SuspenseList:Yr,lazy:uf,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:mf};const as=Object.freeze(Object.defineProperty({__proto__:null,Children:of,Component:dn,Fragment:ze,PureComponent:ss,StrictMode:bf,Suspense:Qi,SuspenseList:Yr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:mf,cloneElement:Ol,createContext:st,createElement:c,createFactory:hf,createPortal:Os,createRef:Is,default:K,findDOMNode:yf,flushSync:qt,forwardRef:Il,hydrate:ff,isElement:_f,isFragment:pf,isMemo:gf,isValidElement:pi,lazy:uf,memo:rf,render:df,startTransition:Nl,unmountComponentAtNode:wf,unstable_batchedUpdates:vf,useCallback:Oe,useContext:Ve,useDebugValue:Al,useDeferredValue:Tl,useEffect:Re,useErrorBoundary:wp,useId:tn,useImperativeHandle:El,useInsertionEffect:Ml,useLayoutEffect:vn,useMemo:fe,useReducer:Or,useRef:re,useState:be,useSyncExternalStore:Ds,useTransition:$l,version:Dp},Symbol.toStringTag,{value:"Module"})),Op=`*,: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}.left-full{left:100%}.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}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-auto{margin-left:auto;margin-right:auto}.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-1{margin-left:.25rem}.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-5{margin-top:1.25rem}.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-12{width:3rem;height:3rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-1\\.5{height:.375rem}.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-\\[118px\\]{height:118px}.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}.h-screen{height:100vh}.max-h-48{max-height:12rem}.max-h-\\[470px\\]{max-height:470px}.min-h-full{min-height:100%}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[1030px\\]{width:1030px}.w-\\[120px\\]{width:120px}.w-\\[128px\\]{width:128px}.w-\\[140px\\]{width:140px}.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%}.w-screen{width:100vw}.min-w-60{min-width:15rem}.max-w-\\[640px\\]{max-width:640px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.-translate-y-1\\/4{--tw-translate-y: -25%;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))}.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-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.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-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[5px\\]{border-radius:5px}.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-r{border-right-width:1px}.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)}.border-r-gray-200{--tw-border-opacity: 1;border-right-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.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-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.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-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#a650ff\\]{--tw-gradient-from: #a650ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(166 80 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#0095f2\\]{--tw-gradient-to: #0095f2 var(--tw-gradient-to-position)}.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-5{padding-left:1.25rem;padding-right:1.25rem}.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-2\\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-\\[13px\\]{padding-left:13px}.pr-1\\.5{padding-right:.375rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.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-5{padding-top:1.25rem}.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-5{line-height:1.25rem}.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-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.ring-opacity-5{--tw-ring-opacity: .05}.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)}@keyframes progressBar{0%{width:0}to{width:100%}}.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-emerald-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.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))}.hover\\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-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)}.hover\\:enabled\\:bg-emerald-700:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-gray-50:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-primary-700:enabled:hover{background-color:var(--fl-color-primary-700)}.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\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:size-10{width:2.5rem;height:2.5rem}.sm\\:size-4{width:1rem;height:1rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}}@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 mn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Rp(e){return e!=null&&typeof e.GetEnumerator=="function"}function Fp(e){return e!=null&&typeof e.CompareTo=="function"}function Pp(e){return e!=null&&typeof e.Equals=="function"}function xf(e){return e!=null&&typeof e.GetHashCode=="function"}function qa(e){return e!=null&&typeof e.Dispose=="function"}function Ie(e){qa(e)&&e.Dispose()}function Ae(){return null}function ls(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 Lp{constructor(t){this.iter=t,this.current=Ae()}"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 Le(e){return Rp(e)?e.GetEnumerator():new Lp(e[Symbol.iterator]())}function gi(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 Vp{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 je(e,t){return e.toString(10).padStart(t,"0")}function Hp(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Qu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function jp(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function fn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Nn{static id(t){return Nn.idMap.has(t)||Nn.idMap.set(t,++Nn.count),Nn.idMap.get(t)}}Nn.idMap=new WeakMap;Nn.count=0;function ir(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function ln(e){return e*2654435761|0}function Cf(e){return ir(e.toString(32))}function po(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 Bp(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ln(e);case"bigint":return Cf(e);case"string":return ir(e);default:return ln(Nn.id(e))}}function Up(e){return xf(e)?e.GetHashCode():Bp(e)}function Wp(e){return e.getTime()}function Gp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Qt(e[r]);return po(n)}function Qt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ln(e);case"bigint":return Cf(e);case"string":return ir(e);default:{if(xf(e))return e.GetHashCode();if(mn(e))return Gp(e);if(e instanceof Date)return Wp(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Qt(r));return po(n)}else return ln(Nn.id(e))}}}function us(e){return Up(e)}function Ya(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 Sf(e,t){return Ya(e,t,J)}function zp(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]||!J(e[n[i]],t[r[i]]))return!1;return!0}function J(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Pp(e)?e.Equals(t):mn(e)?mn(t)&&Sf(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Ef(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&zp(e,t)}function Ef(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Qu(e),r=t.getTime()+Qu(t)),n===r?0:n<r?-1:1}function Rr(e,t){return e===t?0:e<t?-1:1}function qp(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 Rl(e,t){return qp(e,t,Ct)}function Yp(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=Ct(e[s],t[s]),o!==0)return o}return 0}function Ct(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Fp(e)?e.CompareTo(t):mn(e)?mn(t)?Rl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Ef(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Yp(e,t):-1}function w(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Zp(e){mn(e)?e.splice(0):e.clear()}const Rs=new WeakMap;function et(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Rs.set(t,e),t}function Wn(e){return Rs.get(e)??(t=>n=>e(t,n))}function Za(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Rs.set(t,e),t}function ga(e){return Rs.get(e)??(t=>n=>r=>e(t,n,r))}function Kp(e){let t=0,n="[";for(const r of e){if(t===0)n+=Xe(r);else if(t===100){n+="; ...";break}else n+="; "+Xe(r);t++}return n+"]"}function Xe(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 Kp(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+Xe(o,t+1)).join(`
|
|
2
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function
|
|
3
|
-
`)+" }"}function e1(e){const t=Object.values(e).map(n=>Qt(n));return po(t)}function t1(e,t){if(e===t)return!0;if(ls(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!J(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function n1(e,t){if(e===t)return 0;if(ls(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=Ct(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Se{toJSON(){return Jp(this)}toString(){return Qp(this)}GetHashCode(){return e1(this)}Equals(t){return t1(this,t)}CompareTo(t){return n1(this,t)}}class bt{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 r1{constructor(t){this.message=t}}function i1(e){return e instanceof r1||e instanceof Error}function o1(e){return e instanceof Promise}function cs(e){return i1(e)||o1(e)?e:new Error(String(e))}const Fl=Xe(Op),wi=Symbol("numeric");function Af(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[wi])}function s1(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ka(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[wi]().multiply(t)}function Xo(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[wi]().toFixed(t)}function ds(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[wi]().toPrecision(t)}function fs(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[wi]().toExponential(t)}function ms(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[wi]().toHex()}const a1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],l1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c1=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ht(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function ec(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function d1(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 Pl(e,t,n){let r=0,i=0,o="";const s=n?go(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=Ht(t,r,"d"),r+=i,i){case 1:o+=nc(s);break;case 2:o+=je(nc(s),2);break;case 3:o+=a1[oc(s)];break;case 4:o+=l1[oc(s)];break}break;case"f":if(i=Ht(t,r,"f"),r+=i,i<=3){const b=10**(3-i);o+=je(Math.floor(Po(s)/b),i)}else i<=7&&(o+=(""+Po(s)).padEnd(i,"0"));break;case"F":if(i=Ht(t,r,"F"),r+=i,i<=3){const b=10**(3-i),x=Math.floor(Po(s)/b);x!=0&&(o+=je(x,i))}else if(i<=7){const b=Po(s);b!=0&&(o+=je(b,3))}break;case"g":i=Ht(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=Ht(t,r,"h"),r+=i,i){case 1:o+=Fo(s)%12;break;case 2:o+=je(Fo(s)%12,2);break}break;case"H":switch(i=Ht(t,r,"H"),r+=i,i){case 1:o+=Fo(s);break;case 2:o+=je(Fo(s),2);break}break;case"K":switch(i=Ht(t,r,"K"),r+=i,i){case 1:switch(tc(s)){case 1:o+="Z";break;case 2:o+=Kr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=Ht(t,r,"m"),r+=i,i){case 1:o+=rc(s);break;case 2:o+=je(rc(s),2);break}break;case"M":switch(i=Ht(t,r,"M"),r+=i,i){case 1:o+=Lo(s);break;case 2:o+=je(Lo(s),2);break;case 3:o+=u1[Lo(s)-1];break;case 4:o+=c1[Lo(s)-1];break}break;case"s":switch(i=Ht(t,r,"s"),r+=i,i){case 1:o+=ic(s);break;case 2:o+=je(ic(s),2);break}break;case"t":switch(i=Ht(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=Ht(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=je(s.getFullYear()%100,2);break;case 3:o+=je(s.getFullYear(),3);break;case 4:o+=je(s.getFullYear(),4);break;case 5:o+=je(s.getFullYear(),5);break}break;case"z":i=Ht(t,r,"z"),r+=i;let l="";switch(tc(s)){case 1:l="+00:00";break;case 2:l=Kr(s.getTimezoneOffset()*-6e4);break;case 0:l=Kr(b1(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),d=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${je(f,2)}`;break;default:o+=`${u}${je(f,2)}:${je(d,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=d1(t,r);o+=p,r+=h;break;case"%":const m=ec(t,r);if(m>=0&&m!==37)r+=2,o+=Pl(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const v=ec(t,r);if(v>=0)r+=2,o+=String.fromCharCode(v);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function tc(e){return e.kind||0}function Kr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+je(n,2)+":"+je(r,2)}function hs(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 f1(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return je(e.getFullYear(),4)+"-"+je(e.getMonth()+1,2)+"-"+je(e.getDate(),2)+"T"+je(e.getHours(),2)+":"+je(e.getMinutes(),2)+":"+je(e.getSeconds(),2)+"."+je(e.getMilliseconds(),3)+(n?Kr(e.getTimezoneOffset()*-6e4):"")}}function m1(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Kr(t)}function h1(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," ")+Kr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return hs(n,"first");case"T":case"t":return hs(n,"second");case"O":case"o":return m1(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Pl(n,t,!0)}function p1(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?hs(e,"first"):e.toLocaleDateString();case"T":case"t":return n?hs(e,"second"):e.toLocaleTimeString();case"O":case"o":return f1(e,n);default:throw new Error("Unrecognized Date print format")}else return Pl(e,t,n)}function Fs(e,t,n){return e.offset!=null?h1(e,t):p1(e,t)}function go(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function g1(){return go(-621355968e5,1)}function kf(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 w1(e,t=!1){const[n,r]=kf(e),i=r!=null?t&&r==="Z"?1:2:0;return go(n.getTime(),i)}function y1(e,t){try{return t.contents=w1(e),!0}catch{return!1}}function v1(e){return e.kind===1?e:go(e.getTime(),1)}function b1(e){return e.kind===2?e:go(e.getTime(),2)}function nc(e){return e.kind===1?e.getUTCDate():e.getDate()}function Fo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Po(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function rc(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Lo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ic(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function oc(e){return e.kind===1?e.getUTCDay():e.getDay()}function _1(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 Ps(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function sc(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 Ll(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 d=0;d<f;d++)a.push(arguments[d]);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=_1(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=sc(e,a),u=sc.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 Li=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,x1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Nf(e,t){return s1(e,t)<0}function Rn(e){return{input:e,cont:S1(e)}}function Tf(e,t){return typeof t=="string"?e(t):t.cont(e)}function Cr(e){return Tf(t=>t,e)}function $f(e){return Tf(t=>{throw new Error(t)},e)}function C1(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Af(e))switch(i.toLowerCase()!=="x"&&(Nf(e,0)?(e=Ka(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=Xo(e,r);break;case"g":case"G":e=r!=null?ds(e,r):ds(e);break;case"e":case"E":e=r!=null?fs(e,r):fs(e);break;case"x":e=ms(e);break;case"X":e=ms(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Fs(e):e=Xe(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=io(e,n-o.length,l,a),e=o+e):e=io(o+e,n,l,a)}return e}function Mf(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,d,p,h]=l[0];let m=d;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+=C1(u,f,m,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Mf(e,a,l,s,i)}}function S1(e){return t=>{Li.lastIndex=0;const n=[],r=[];let i=0,o=Li.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Li.lastIndex,Li.lastIndex-=1,o=Li.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Mf(t,n,r))}}function Vl(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(x1,(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(Af(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Xo(u,a);break;case"g":case"G":u=a!=null?ds(u,a):ds(u);break;case"e":case"E":u=a!=null?fs(u,a):fs(u);break;case"p":case"P":a=a??2,u=Xo(Ka(u,100),a)+" %";break;case"d":case"D":u=a!=null?wa(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?wa(ms(u),a,"0"):ms(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(d,p,h)=>{Nf(u,0)&&(u=Ka(u,-1),f="-"),h=h==null?"":h.substring(1),u=Xo(u,Math.max(h.length,0));let[m,v]=u.split(".");v||(v="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;m=wa(m,b,"0");const x=h.replace(/#+$/,"").length;if(x>v.length?v=E1(v,x,"0"):x<v.length&&(v=v.substring(0,x)+v.substring(x).replace(/0+$/,"")),p.indexOf(",")>0){const C=m.length%3,S=Math.floor(m.length/3);let M=C>0?m.substr(0,C)+(S>0?",":""):"";for(let O=0;O<S;O++)M+=m.substr(C+O*3,3)+(O<S-1?",":"");m=M}return v.length>0?m+"."+v:m}),u=f+u}}else u instanceof Date?u=Fs(u,l||s):u=Xe(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=io(String(u),Math.abs(o)," ",o<0)),u})}function Hl(e){return typeof e!="string"||e.length===0}function yi(e){return typeof e!="string"||/^\s*$/.test(e)}function St(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function io(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 wa(e,t,n){return io(e,t,n)}function E1(e,t,n){return io(e,t,n,!0)}function If(e,t,n){return e.replace(new RegExp(Ps(t),"g"),n)}function Df(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(Ps),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 d=o?e.substring(u).trim():e.substring(u);(!i||d.length>0)&&s.push(d),l=!1}else{const d=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!i||d.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(d)),u=a.lastIndex}}while(l);return s}function A1(e,...t){if(t.length===0)return e.trim();const n="["+Ps(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function jl(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Ps(t.join(""))+"]+$"),"")}function k1(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}class Sr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Qt(this.value)}Equals(t){return t==null?!1:J(this.value,t instanceof Sr?t.value:t)}CompareTo(t){return t==null?1:Ct(this.value,t instanceof Sr?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof Sr?e.value:e}function Zi(e){return e instanceof Sr?e.value:e}function lt(e){return e==null||e instanceof Sr?new Sr(e):e}function Of(e){return e==null?null:V(e)}function vi(e){return e==null?[]:[V(e)]}function Je(e,t){return e!=null?V(e):t}function N1(e,t){return e!=null?V(e):t()}function xt(e,t){return t!=null?lt(e(V(t))):void 0}function T1(e,t){return t!=null?e(V(t)):void 0}class $1{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 qe(this)}GetHashCode(){return Rf(this)}Equals(t){return Xa(this,t)}}function Gt(e){return e.generics!=null?e.generics:[]}function Rf(e){const t=ir(e.fullname),n=Gt(e).map(Rf);return po([t,...n])}function Xa(e,t){return e.fullname===""?t.fullname===""&&Ya(oo(e),oo(t),([n,r],[i,o])=>n===i&&Xa(r,o)):e.fullname===t.fullname&&Ya(Gt(e),Gt(t),Xa)}function Kn(e,t,n,r){return new Zt(e,t,n,r)}function nn(e,t,n,r){return new Zt(e,t,n,void 0,r)}function Ff(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 $1(i,a,o[a],s))});return i}function Xr(e){return new Zt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Er(e){return new Zt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const M1=new Zt("System.Object"),In=new Zt("System.String"),I1=new Zt("System.Boolean"),It=new Zt("System.Int32");function Jr(e){if(Array.isArray(e))return e[0];if(e instanceof Zt){const t=wo(e);if(t!=null)return Jr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function qe(e){const t=wo(e);return t!=null?qe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>qe(n)).join(",")+"]"}function Pf(e){return wo(e)!=null}function wo(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Lf(e){return e.generics!=null&&e.generics.length>0}function Bl(e){return e.enumCases!=null&&e.enumCases.length>0}function Vf(e){return e.generics==null?e:new Zt(e.fullname,e.generics.map(()=>M1))}function Hf(e){var t;return(t=e.generics)==null?void 0:t[0]}function Lr(e){if(Bl(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function D1(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 Vr(e,t){const n=parseInt(t,10);return D1(e,isNaN(n)?t:n)[1]}function jf(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function oo(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Bf(e){if(Ul(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Uf(e){return e instanceof Zt?e.cases!=null:e instanceof G}function Wf(e){return e instanceof Zt?e.fields!=null:e instanceof Se}function Ul(e){return e.fullname.startsWith("System.Tuple")}function O1(e,t){const r=jf(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Gf(e){return e.fields==null?[]:e.fields}function R1(e,t){return e[t[0]]}function F1(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 P1(e,t){const n=oo(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 L1(e,t){return e}const zf="Collection was empty.",V1="The input must be non-negative.",qf="The input sequence has an insufficient number of elements.";function li(e,t){return new Array(t)}function ac(e,t){return e>t?e:t}function lc(e,t){return e<t?e:t}function Yf(e,t,n){const r=e.length|0,i=t.length|0,o=li(n,r+i);for(let s=0;s<=r-1;s++)Tt(o,s,he(s,e));for(let s=0;s<=i-1;s++)Tt(o,s+r,he(s,t));return o}function yo(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function H1(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return he(e.length-1,e)}function Zf(e,t,n){const r=t.length|0,i=li(n,r);for(let o=0;o<=r-1;o++)Tt(i,o,e(o,he(o,t)));return i}function Ye(e,t,n){const r=t.length|0,i=li(n,r);for(let o=0;o<=r-1;o++)Tt(i,o,e(he(o,t)));return i}function ps(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return li(t,0);case 1:return he(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=he(a,n);o=o+l.length|0}const s=li(t,o);for(let a=0;a<=n.length-1;a++){const l=he(a,n);for(let u=0;u<=l.length-1;u++)Tt(s,i,he(u,l)),i=i+1|0}return s}}}function j1(e,t,n,r,i){const o=Je(n,0)|0,s=Je(xt(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,he(u,e)))return u|0;l=u+1;continue e}})(o)|0}function bi(e,t,n){return j1(t,e,void 0,void 0,n)>=0}function B1(e,t){const n=li(t,1);return Tt(n,0,e),n}function U1(e){return e.slice().reverse()}function Ls(e,t){return t.find(e)}function zt(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(he(i,t));if(o!=null){const s=V(o);r.push(s)}}return J(n,Ae())?r:Ye(i=>i,r,n)}function Vs(e,t,n){const r=e;return n.reduce(r,t)}function W1(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function G1(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function Ar(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(he(r,t),he(r,n)),r=r+1|0;return i}}function uc(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return he(0,e)}function z1(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function he(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 Tt(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 Kf(e,t){if(!(e<0||e>=t.length))return lt(t[e])}function Xf(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class Et extends Se{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+St("; ",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),d=V(u);if(J(s.head,a.head)){i=f,o=d;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)+Qt(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),d=V(u),p=Ct(s.head,a.head)|0;if(p===0){i=f,o=d;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Y1(this)}[Symbol.iterator](){return gi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class q1{constructor(t){this.xs=t,this.it=this.xs,this.current=Ae()}"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=Ae()}Dispose(){}}function Y1(e){return new q1(e)}function it(){return new Et(Ae(),void 0)}function vo(e,t){return new Et(e,t)}function wn(e){return e.tail==null}function Jf(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 Xn(e){if(e.tail!=null)return e.head;throw new Error(zf+"\\nParameter name: list")}function yt(e){const t=e.tail;if(t!=null)return V(t);throw new Error(zf+"\\nParameter name: list")}function ot(){return it()}function Xt(e,t){return vo(e,t)}function ae(e){return vo(e,it())}function $e(e){return wn(e)}function un(e){return Jf(e)}function se(e){return Xn(e)}function Me(e){return yt(e)}function or(e){const t=Jf(e)|0,n=yo(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!wn(a)){Tt(n,s,Xn(a)),i=s+1,o=yt(a);continue e}break}})(0,e),n}function Ln(e,t,n){let r=t,i=n;for(;!wn(i);)r=e(r,se(i)),i=yt(i);return r}function Wl(e){return Ln((t,n)=>vo(n,t),it(),e)}function Z1(e,t,n){return Xf(e,or(t),n)}function K1(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,u=s;if(wn(u))return l;i=a+1,o=e(a,l,Xn(u)),s=yt(u);continue e}})(0,t,n)}function gs(e,t){Ln((n,r)=>{e(r)},void 0,t)}function Qe(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=vo(he(r,e),n);return n}function g(e){return Qe(e,it())}function X1(e){let t,n;if(mn(e))return g(e);if(e instanceof Et)return e;{const r=it();let i=r;const o=Le(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new Et(l,void 0),t.tail=n,n)}}finally{Ie(o)}const s=i,a=it();return s.tail=a,yt(r)}}function bo(e,t){return Ln((n,r)=>vo(r,n),t,Wl(e))}function J1(e,t){let n,r;const i=it();let o=i,s=t;for(;!wn(s);){let u=e(Xn(s));for(;!wn(u);)o=(n=o,r=new Et(Xn(u),void 0),n.tail=r,r),u=yt(u);s=yt(s)}const a=o,l=it();return a.tail=l,yt(i)}function Gl(e,t){const n=it(),r=K1((o,s,a)=>{const l=new Et(e(o,a),void 0);return s.tail=l,l},n,t),i=it();return r.tail=i,yt(n)}function Jn(e,t){const n=it(),r=Ln((o,s)=>{const a=new Et(e(s),void 0);return o.tail=a,a},n,t),i=it();return r.tail=i,yt(n)}function Q1(e,t){return(r=>{e:for(;;){const i=r;if(wn(i))return;{const o=e(Xn(i));if(o==null){r=yt(i);continue e}else return o}}})(t)}function eg(e,t){return Q1(n=>e(n)?lt(n):void 0,t)}function tg(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(wn(s))return;if(e(Xn(s)))return o;r=o+1,i=yt(s);continue e}})(0,t)}function Tn(e,t){const n=it(),r=Ln((o,s)=>{if(e(s)){const a=new Et(s,void 0);return o.tail=a,a}else return o},n,t),i=it();return r.tail=i,yt(n)}function ng(e,t){const n=it(),r=it(),i=n,o=Ln((l,u)=>{let f,d;const p=l[0],h=l[1];return e(u)?[(f=new Et(u,void 0),p.tail=f,f),h]:[p,(d=new Et(u,void 0),h.tail=d,d)]},[i,r],t),s=it();o[0].tail=s;const a=it();return o[1].tail=a,[yt(i),yt(r)]}function rg(e,t){const n=it(),r=Ln((o,s)=>{const a=e(s);if(a==null)return o;{const l=new Et(V(a),void 0);return o.tail=l,l}},n,t),i=it();return r.tail=i,yt(n)}function zl(e,t){return tg(e,t)!=null}function Qf(e,t){const n=or(t);return n.sort(e),g(n)}function ig(e,t,n){return Qf((r,i)=>n.Compare(e(r),e(i)),t)}function og(e,t,n){return Qf((r,i)=>n.Compare(e(r),e(i))*-1,t)}function e0(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(wn(r))throw new Error(qf+"\\nParameter name: list");e=n-1,t=yt(r);continue e}}function t0(e,t){if(e<0)throw new Error(V1+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const f=s,d=a,p=l;if(f<=0)return d;if(wn(p))throw new Error(qf+"\\nParameter name: list");s=f-1,a=(u=new Et(Xn(p),void 0),d.tail=u,u),l=yt(p);continue e}},r=it(),i=n(e,r,t),o=it();return i.tail=o,yt(r)}function sg(e,t,n){const r=un(n)|0;let i;const o=Je(e,0)|0;i=o<0?0:o;let s;const a=Je(t,r-1)|0;return s=a>=r?r-1:a,s<i?it():t0(s-i+1,e0(i,n))}const y=K;function ag(e){const t=g([c("style",{children:[Fl]}),c("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return c("div",{children:y.Children.toArray(Array.from(t))})}function lg(e){throw new Error(e)}const ug="Enumeration already finished.",cg="Enumeration has not started. Call MoveNext.",n0="The input sequence has an insufficient number of elements.",dg="Reset is not supported on this enumerator.";function fg(){throw new Error(dg)}function ql(){throw new Error(cg)}function Ja(){throw new Error(ug)}class mg{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=Le(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Xe(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Ie(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return gi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function hg(e){return new mg(e)}class pg{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"(){fg()}Dispose(){this.dispose()}}function Hs(e,t,n){return new pg(e,t,n)}function gg(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{Ie(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{Ie(a)}finally{t=void 0}}};return Hs(()=>(r?i&&Ja():ql(),o!=null?V(o):Ja()),()=>{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 d=V(f);if(d["System.Collections.IEnumerator.MoveNext"]())o=lt(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Ie(d)}finally{n=void 0}}else{const d=V(u);d["System.Collections.IEnumerator.MoveNext"]()?n=(a=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(a)):(s(),l=!1)}else t=Le(e)}return V(l)}},()=>{i||s()})}function wg(e,t){return Hs(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Ie(t)}finally{}})}function r0(e,t,n){let r=!1,i,o=lt(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 Hs(()=>(r||ql(),i!=null?V(i):Ja()),()=>{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 yg(e,t){let n,r=t;return Hs(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return ql()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function vg(e,t){t==null&&lg(e)}function _i(e){return hg(e)}function en(e){return vg("source",e),Le(e)}function T(e){return _i(()=>Le(e()))}function js(e){return _i(()=>gg(e))}function bg(e,t){return _i(()=>yg(e,t))}function ft(){return T(()=>new Array(0))}function A(e){return T(()=>B1(e))}function Fn(e){return e instanceof Et?or(e):Array.from(e)}function Z(e){return mn(e)?g(e):e instanceof Et?e:X1(e)}function Yl(e,t,n){return _i(()=>r0(e,t,n))}function i0(e,t,n){return _i(()=>{let r=-1;return r0(e,i=>(r=r+1|0,t(r,i)),n)})}function H(e,t){return js([e,t])}function _g(e,t){return Yl(()=>en(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=>{Ie(n)})}function xg(e,t,n){const r=en(t);try{const i=en(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{Ie(i)}}finally{Ie(r)}}function Hr(e,t,n){const r=en(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{Ie(r)}}function Bs(e,t){return _g(n=>{if(e(n))return lt(n)},t)}function _o(e,t,n){const r=en(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{Ie(r)}}function Vn(e,t){_o((n,r)=>{e(r)},void 0,t)}function o0(e,t){_o((n,r)=>(e(n,r),n+1|0),0,t)}function Cg(e){if(mn(e))return e.length|0;if(e instanceof Et)return un(e)|0;{const t=en(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{Ie(t)}}}function Pe(e,t){return Yl(()=>en(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?lt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ie(n)})}function Sg(e,t){return i0(()=>en(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?lt(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ie(n)})}function Eg(e,t,n){return Yl(()=>[en(t),en(n)],r=>{const i=r[0],o=r[1];return i["System.Collections.IEnumerator.MoveNext"]()&&o["System.Collections.IEnumerator.MoveNext"]()?lt(e(i["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0},r=>{try{Ie(r[0])}finally{Ie(r[1])}})}function Ag(e){return T(()=>U1(Fn(e)))}function kg(e,t){return _i(()=>{const n=en(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(n0+"\\nParameter name: source");return wg(()=>{},n)}catch(r){throw Ie(n),r}})}function Ng(e,t){return i0(()=>en(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return lt(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(n0+"\\nParameter name: source")}else return},n=>{Ie(n)})}function Tg(e,t){return Eg((n,r)=>[n,r],e,t)}function Us(e,t){return T(()=>js(Pe(e,t)))}const hr={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ya(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 $g(e,t){switch(t){case hr.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case hr.SnakeCase:return ya(e,"_");case hr.SnakeCaseAllCaps:return ya(e,"_").toUpperCase();case hr.KebabCase:return ya(e,"-");case hr.None:default:return e}}function sr(e,t=hr.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=$g(s,a),n[s]=l}for(let s of e){let a=hr.None;if(s==null&&i(s),s instanceof G){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 Zl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function s0(e,t){return t.has(e)?!1:(t.add(e),!0)}function Mg(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 Qn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class a0{constructor(t,n){const r=new bt(Ae());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Le(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();va(r.contents,o)}}finally{Ie(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}GetEnumerator(){return Le(js(this.hashMap.values()))}[Symbol.iterator](){return gi(Le(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){va(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){cc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return fc(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){o0((i,o)=>{Tt(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return dc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return mc(this,t)}get size(){return dc(this)|0}add(t){const n=this;return va(n,t),n}clear(){cc(this)}delete(t){return mc(this,t)}has(t){return fc(this,t)}keys(){return Pe(n=>n,this)}values(){return Pe(n=>n,this)}entries(){return Pe(n=>[n,n],this)}forEach(t,n){const r=this;Vn(i=>{t(i,i,r)},r)}}function Kl(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[Zl(e.hashMap,n,new bt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function cc(e){e.hashMap.clear()}function dc(e){let t=0,n=Le(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{Ie(n)}return t|0}function va(e,t){const n=Kl(e,t);return n[0]?n[2]>-1?!1:(Qn(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function fc(e,t){const n=Kl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function mc(e,t){const n=Kl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Qn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class l0{constructor(t){this.k=t}}function Ut(e){return new l0(e)}function ve(e){return e.k}class Fe extends l0{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function Wt(e,t,n,r){return new Fe(e,t,n,r)}function Ge(e){return e.left}function Ue(e){return e.right}function Zr(e){return e.h}function u0(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=V(n);if(i instanceof Fe){const o=i;e=Ge(o),t=u0(Ue(o),r+1);continue e}else return r+1|0}else return r|0}}function Ig(e){return u0(e,0)}function on(e,t,n){let r,i,o;const s=e;if(s!=null){const f=V(s);o=f instanceof Fe?(r=f,Zr(r)):1}else o=0;let a;const l=n;if(l!=null){const f=V(l);a=f instanceof Fe?(i=f,Zr(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Ut(t):Wt(t,e,n,u+1)}function hc(e,t,n){let r,i,o,s,a,l,u,f,d;const p=e;if(p!=null){const v=V(p);d=v instanceof Fe?(r=v,Zr(r)):1}else d=0;let h;const m=n;if(m!=null){const v=V(m);h=v instanceof Fe?(i=v,Zr(i)):1}else h=0;if(h>d+2){const v=V(n);if(v instanceof Fe){const b=v;if(o=Ge(b),(o!=null?(s=V(o),s instanceof Fe?(a=s,Zr(a)):1):0)>d+1){const x=V(Ge(b));if(x instanceof Fe){const C=x;return on(on(e,t,Ge(C)),ve(C),on(Ue(C),ve(b),Ue(b)))}else throw new Error("internal error: Set.rebalance")}else return on(on(e,t,Ge(b)),ve(b),Ue(b))}else throw new Error("internal error: Set.rebalance")}else if(d>h+2){const v=V(e);if(v instanceof Fe){const b=v;if(l=Ue(b),(l!=null?(u=V(l),u instanceof Fe?(f=u,Zr(f)):1):0)>h+1){const x=V(Ue(b));if(x instanceof Fe){const C=x;return on(on(Ge(b),ve(b),Ge(C)),ve(C),on(Ue(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return on(Ge(b),ve(b),on(Ue(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return on(e,t,n)}function ui(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,ve(r))|0;if(r instanceof Fe){const o=r;return i<0?hc(ui(e,t,Ge(o)),ve(o),Ue(o)):i===0?n:hc(Ge(o),ve(o),ui(e,t,Ue(o)))}else{const o=e.Compare(t,ve(r))|0;return o<0?Wt(t,void 0,n,2):o===0?n:Wt(t,n,void 0,2)}}else return Ut(t)}function c0(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ve(s))|0;if(s instanceof Fe){const l=s;if(a<0){e=r,t=i,n=Ge(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Ue(l);continue e}}else return a===0}else return!1}}function d0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Fe){const o=i;d0(n,Ge(o)),n(ve(o)),e=n,t=Ue(o);continue e}else n(ve(i))}break}}class Dg extends Se{constructor(t,n){super(),this.stack=t,this.started=n}}function f0(e){e:for(;;){const t=e;if($e(t))return ot();{const n=se(t),r=Me(t);if(n!=null){const i=V(n);if(i instanceof Fe){const o=i;e=Qe([Ge(o),Ut(ve(o)),Ue(o)],r);continue e}else return t}else{e=r;continue e}}}}function pc(e){return new Dg(f0(ae(e)),!1)}function Og(){throw new Error("Enumeration not started")}function Rg(){throw new Error("Enumeration already started")}function gc(e){if(e.started){const t=e.stack;if($e(t))return Rg();if(se(t)!=null){const n=V(se(t));return ve(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Og()}function Fg(e){if(e.started){const t=e.stack;if($e(t))return!1;if(se(t)!=null){if(V(se(t))instanceof Fe)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=f0(Me(t)),!$e(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!$e(e.stack)}function wc(e){let t=pc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return gc(t)},"System.Collections.IEnumerator.get_Current"(){return gc(t)},"System.Collections.IEnumerator.MoveNext"(){return Fg(t)},"System.Collections.IEnumerator.Reset"(){t=pc(e)},Dispose(){}}}function Pg(e,t,n){e:for(;;){const r=e,i=t,o=n;if($e(i))return $e(o)?0:-1;if($e(o))return 1;if(se(o)!=null)if(se(i)!=null){const s=V(se(i)),a=V(se(o));if(s instanceof Fe){const l=s;if(Ge(l)==null)if(a instanceof Fe){const u=a;if(Ge(u)==null){const f=r.Compare(ve(l),ve(u))|0;if(f!==0)return f|0;e=r,t=Xt(Ue(l),Me(i)),n=Xt(Ue(u),Me(o));continue e}else{let f,d,p,h,m;switch($e(i)?$e(o)?f=2:se(o)!=null?(f=1,h=Me(o),m=V(se(o))):f=2:se(i)!=null?(f=0,d=Me(i),p=V(se(i))):$e(o)?f=2:se(o)!=null?(f=1,h=Me(o),m=V(se(o))):f=2,f){case 0:if(p instanceof Fe){const v=p;e=r,t=Qe([Ge(v),Wt(ve(v),void 0,Ue(v),0)],d),n=o;continue e}else{e=r,t=Qe([void 0,Ut(ve(p))],d),n=o;continue e}case 1:if(m instanceof Fe){const v=m;e=r,t=i,n=Qe([Ge(v),Wt(ve(v),void 0,Ue(v),0)],h);continue e}else{e=r,t=i,n=Qe([void 0,Ut(ve(m))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(ve(l),ve(a))|0;if(u!==0)return u|0;e=r,t=Xt(Ue(l),Me(i)),n=Xt(void 0,Me(o));continue e}else{let u,f,d,p,h;switch($e(i)?$e(o)?u=2:se(o)!=null?(u=1,p=Me(o),h=V(se(o))):u=2:se(i)!=null?(u=0,f=Me(i),d=V(se(i))):$e(o)?u=2:se(o)!=null?(u=1,p=Me(o),h=V(se(o))):u=2,u){case 0:if(d instanceof Fe){const m=d;e=r,t=Qe([Ge(m),Wt(ve(m),void 0,Ue(m),0)],f),n=o;continue e}else{e=r,t=Qe([void 0,Ut(ve(d))],f),n=o;continue e}case 1:if(h instanceof Fe){const m=h;e=r,t=i,n=Qe([Ge(m),Wt(ve(m),void 0,Ue(m),0)],p);continue e}else{e=r,t=i,n=Qe([void 0,Ut(ve(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Fe){const l=a;if(Ge(l)==null){const u=r.Compare(ve(s),ve(l))|0;if(u!==0)return u|0;e=r,t=Xt(void 0,Me(i)),n=Xt(Ue(l),Me(o));continue e}else{let u,f,d,p,h;switch($e(i)?$e(o)?u=2:se(o)!=null?(u=1,p=Me(o),h=V(se(o))):u=2:se(i)!=null?(u=0,f=Me(i),d=V(se(i))):$e(o)?u=2:se(o)!=null?(u=1,p=Me(o),h=V(se(o))):u=2,u){case 0:if(d instanceof Fe){const m=d;e=r,t=Qe([Ge(m),Wt(ve(m),void 0,Ue(m),0)],f),n=o;continue e}else{e=r,t=Qe([void 0,Ut(ve(d))],f),n=o;continue e}case 1:if(h instanceof Fe){const m=h;e=r,t=i,n=Qe([Ge(m),Wt(ve(m),void 0,Ue(m),0)],p);continue e}else{e=r,t=i,n=Qe([void 0,Ut(ve(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ve(s),ve(a))|0;if(l!==0)return l|0;e=r,t=Me(i),n=Me(o);continue e}}else{V(se(o));let s,a,l,u,f;switch($e(i)?$e(o)?s=2:se(o)!=null?(s=1,u=Me(o),f=V(se(o))):s=2:se(i)!=null?(s=0,a=Me(i),l=V(se(i))):$e(o)?s=2:se(o)!=null?(s=1,u=Me(o),f=V(se(o))):s=2,s){case 0:if(l instanceof Fe){const d=l;e=r,t=Qe([Ge(d),Wt(ve(d),void 0,Ue(d),0)],a),n=o;continue e}else{e=r,t=Qe([void 0,Ut(ve(l))],a),n=o;continue e}case 1:if(f instanceof Fe){const d=f;e=r,t=i,n=Qe([Ge(d),Wt(ve(d),void 0,Ue(d),0)],u);continue e}else{e=r,t=i,n=Qe([void 0,Ut(ve(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(se(i)!=null){V(se(i));let s,a,l,u,f;switch($e(i)?$e(o)?s=2:se(o)!=null?(s=1,u=Me(o),f=V(se(o))):s=2:se(i)!=null?(s=0,a=Me(i),l=V(se(i))):$e(o)?s=2:se(o)!=null?(s=1,u=Me(o),f=V(se(o))):s=2,s){case 0:if(l instanceof Fe){const d=l;e=r,t=Qe([Ge(d),Wt(ve(d),void 0,Ue(d),0)],a),n=o;continue e}else{e=r,t=Qe([void 0,Ut(ve(l))],a),n=o;continue e}case 1:if(f instanceof Fe){const d=f;e=r,t=i,n=Qe([Ge(d),Wt(ve(d),void 0,Ue(d),0)],u);continue e}else{e=r,t=i,n=Qe([void 0,Ut(ve(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=Me(i),n=Me(o);continue e}}}function yc(e,t,n){return t==null?n==null?0:-1:n==null?1:Pg(e,ae(t),ae(n))|0}function Lg(e,t,n){let r=n;d0(i=>{Tt(t,r,i),r=r+1|0},e)}function Vg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ui(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function Hg(e,t){return Vs((n,r)=>ui(e,r,n),void 0,t)}function jg(e,t){return Ln((n,r)=>ui(e,r,n),void 0,t)}function m0(e,t){if(mn(t))return Hg(e,t);if(t instanceof Et)return jg(e,t);{const n=Le(t);try{return Vg(e,void 0,n)}finally{Ie(n)}}}class Xl{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Wg(this)|0}Equals(t){let n;const r=this;return t instanceof Xl&&(n=t,yc(Qr(r),sn(r),sn(n))===0)}toString(){return"set ["+St("; ",Pe(n=>Xe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return yc(Qr(n),sn(n),sn(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 c0(Qr(n),t,sn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Lg(sn(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ba(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ba(this)|0}GetEnumerator(){return wc(sn(this))}[Symbol.iterator](){return gi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return wc(sn(this))}get size(){return ba(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 h0(this,t)}keys(){return Pe(n=>n,this)}values(){return Pe(n=>n,this)}entries(){return Pe(n=>[n,n],this)}forEach(t,n){const r=this;Vn(i=>{t(i,i,r)},r)}}function Ws(e,t){return new Xl(e,t)}function Qr(e){return e.comparer}function sn(e){return e.tree}function Bg(e){return Ws(e,void 0)}function Ug(e,t){return Ws(Qr(e),ui(Qr(e),t,sn(e)))}function ba(e){return Ig(sn(e))}function h0(e,t){return c0(Qr(e),t,sn(e))}function Wg(e){let t=0;const n=Le(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Qt(r)+631|0}}finally{Ie(n)}return Math.abs(t)|0}function Qa(e,t){return h0(t,e)}function Gg(e,t){return Ug(t,e)}function zg(e){return Bg(e)}function qg(e,t){return Ws(t,m0(t,e))}function Yg(e,t){return Ws(t,m0(t,e))}function Zg(){return ot()}function Jl(e){return St("/",e)}function Kg(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Jl(t),n])}function p0(e,t,n){try{Ie(n)}catch(r){e(["Error stopping subscription: "+Jl(t),r])}}function Xg(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+Jl(n),i]);return}}function Jg(e,t){gs(n=>{p0(e,n[0],n[1])},t)}function vc(e,t,n,r,i,o){return gs(s=>{Kg(e,s)},n),gs(s=>{p0(e,s[0],s[1])},r),bo(i,rg(s=>Xg(e,t,s[0],s[1]),o))}function Qg(){return[ot(),zg({Compare:Ct}),ot()]}function ew(e,t,n,r,i){return Qa(e,r)?[Xt(e,n),r,i]:[n,Gg(e,r),Xt([e,t],i)]}function tw(e){return Z1((t,n)=>ew(t[0],t[1],n[0],n[1],n[2]),e,Qg())}const nw=ot();function bc(e,t){const n=qg(Jn(s=>s[0],e),{Compare:Ct}),r=tw(t),i=r[1],o=r[0];if(n.Equals(i))return[o,ot(),e,ot()];{const s=ng(a=>Qa(a[0],i),e);return[o,s[1],s[0],Tn(a=>!Qa(a[0],n),r[2])]}}function rw(e){return new g0(0,[e])}function iw(e){return new g0(1,[e])}class g0 extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function ow(e){return rw(e)}function sw(e){return iw(e)}class aw{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function lw(e,t){t.Subscribe(new aw(e))}class uw{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 dw(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 cw=class extends uw{};function dw(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 fw{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 cw}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 mw(e,t){console.error(lt(e),t)}function hw(e,t){let n,r=new fw(e);r.AutoReset=!1,n=r,lw(t,n.Elapsed()),n.Enabled=!0,n.Start()}class w0{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 Gs extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Gs.prototype)}}class Ql{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Ql.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function $n(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Gs);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(cs(n))}});else try{e(t)}catch(n){t.onError(cs(n))}}}function pw(e,t){return $n(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(cs(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function gw(e){return $n(t=>t.onSuccess(e))}class ww{Bind(t,n){return pw(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return $n(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 gw(t)}ReturnFrom(t){return t}TryFinally(t,n){return $n(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 $n(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(cs(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 $n(t=>t.onSuccess(void 0))}}const ue=new ww;function _a(e){}function yw(e){return new w0(!1)}function vw(e){e.cancel()}function bw(e){return e!=null&&e.isCancelled}const _w=new w0;function xw(e){return $n(t=>{e({onSuccess:n=>t.onSuccess(ow(n)),onError:n=>t.onSuccess(sw(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Cw(e){return $n(t=>e([t.onSuccess,t.onError,t.onCancel]))}function eu(e){return $n(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Gs)})})}function Sw(e,t){return Ew(e,t)}function zs(e,t){return Sw(e,t)}function Ew(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new Ql;e({onSuccess:t||_a,onError:_a,onCancel:_a,cancelToken:i||_w,trampoline:o})}function _c(e,t,n){gs(r=>{try{r(t)}catch(i){e(i)}},n)}function X(){return ot()}function Jo(e){return ae(e)}function y0(e,t,n,r){return ae(i=>{e(ue.Delay(()=>ue.Bind(xw(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),ue.Zero()})))})}function v0(e){hw(1,t=>{zs(e)})}function Aw(e,t,n,r){const i=Ct(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=Ct(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function kw(e,t,n,r,i){const o=Aw(t,n,r,i);return T(()=>bg(o,e))}function tu(e,t,n){return kw(e,t,n,0,(r,i)=>r+i)}class ei extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Nw{constructor(t){this.state=new ei(0,[yo(new Array(ac(t,10)),0,ac(t,10),null),0])}}function Tw(e){return new Nw(e)}function xc(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 ei(0,[i,n]):e.state=new ei(1,[i,n,o]),lt(he(r,i))}else return}function $w(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];Tt(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new ei(1,[Mw(e,i,o),o.length,0]):e.state=new ei(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];Tt(i,r,t);const o=(r+1)%i.length|0;e.state=new ei(1,[i,o,r])}}function Mw(e,t,n){return Array.from(T(()=>H(kg(t,n),T(()=>H(Ng(t,n),T(()=>Us(r=>A(Ae()),tu(0,1,n.length))))))))}class nu extends Se{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 Fr(e,t,n){return new nu(e,t,r=>Zg(),n,et(r=>{const i=Wn(n)(r);return o=>{i(o)}}),r=>{mw(r[0],r[1])},[r=>!1,r=>{}])}function Iw(e,t){return new nu(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Dw(e){return e.init}function Ow(e,t,n,r,i,o,s){const a=Wn(e)(s.init),l=ga(t)(Wn(s.update)),u=ga(n)(Wn(s.view)),f=ga(r)(Wn(s.setState));return new nu(a,et(l),Wn(i)(s.subscribe),et(u),et(f),s.onError,o(s.termination))}function Rw(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=Tw(10);let u=!1,f=o,d=nw,p=!1;const h=b=>{p||($w(l,b),u||(u=!0,v(),u=!1))},m=Wn(e)(h),v=()=>{let b,x=xc(l);for(;!p&&x!=null;){const C=V(x);if(a[0](C))Jg(n.onError,d),a[1](f),p=!0;else{const S=n.update(C,f),M=S[0],O=n.subscribe(M);n.setState(M,m),_c(F=>{n.onError([Cr(Rn("Error handling the message: %A"))(C),F])},m,S[1]),f=M,d=(b=bc(d,O),vc(n.onError,m,b[0],b[1],b[2],b[3])),x=xc(l)}}};u=!0,n.setState(o,m),_c(b=>{n.onError([Cr(Rn("Error intitializing:")),b])},m,i[1]),d=(r=bc(d,s),vc(n.onError,m,r[0],r[1],r[2],r[3])),v(),u=!1}function Fw(e,t){Rw(et(n=>n),e,t)}function Pw(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 xa={exports:{}},Ca={};const Lw=Pw(as);/**
|
|
1
|
+
var go,ke,ef,pr,Uu,tf,Xa,Tl,Ja,Qa,nf,so={},rf=[],hp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Os=Array.isArray;function kn(e,t){for(var n in t)e[n]=t[n];return e}function of(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function c(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?go.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 to(e,s,r,i,null)}function to(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??++ef,__i:-1,__u:0};return i==null&&ke.vnode!=null&&ke.vnode(o),o}function Rs(){return{current:null}}function ze(e){return e.children}function dn(e,t){this.props=e,this.context=t}function ai(e,t){if(t==null)return e.__?ai(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"?ai(e):null}function sf(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 sf(e)}}function el(e){(!e.__d&&(e.__d=!0)&&pr.push(e)&&!ls.__r++||Uu!==ke.debounceRendering)&&((Uu=ke.debounceRendering)||tf)(ls)}function ls(){var e,t,n,r,i,o,s,a;for(pr.sort(Xa);e=pr.shift();)e.__d&&(t=pr.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=kn({},i)).__v=i.__v+1,ke.vnode&&ke.vnode(r),$l(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??ai(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,uf(s,r,a),r.__e!=o&&sf(r)),pr.length>t&&pr.sort(Xa));ls.__r=0}function af(e,t,n,r,i,o,s,a,l,u,f){var d,p,h,m,v,b=r&&r.__k||rf,x=t.length;for(n.__d=l,pp(n,t,b),l=n.__d,d=0;d<x;d++)(h=n.__k[d])!=null&&(p=h.__i===-1?so:b[h.__i]||so,h.__i=d,$l(e,h,p,i,o,s,a,l,u,f),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Ml(p.ref,null,h),f.push(h.ref,h.__c||m,h)),v==null&&m!=null&&(v=m),65536&h.__u||p.__k===h.__k?l=lf(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=v}function pp(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,f=u,d=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+d,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?to(null,i,null,null,null):Os(i)?to(ze,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?to(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=gp(i,n,s,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:(a>s?d--:d++,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=ai(o)),cf(o,o))}function lf(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=lf(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ai(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Mn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Os(e)?e.some(function(n){Mn(n,t)}):t.push(e)),t}function gp(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===ze||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 Wu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||hp.test(t)?n:n+"px"}function Lo(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||Wu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Wu(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=Tl,e.addEventListener(t,o?Qa:Ja,o)):e.removeEventListener(t,o?Qa:Ja,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 Gu(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Tl++;else if(t.t<n.u)return;return ke.event&&(t=ke.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function $l(e,t,n,r,i,o,s,a,l,u){var f,d,p,h,m,v,b,x,C,S,$,D,F,L,E,_,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=ke.__b)&&f(t);e:if(typeof k=="function")try{if(x=t.props,C="prototype"in k&&k.prototype.render,S=(f=k.contextType)&&r[f.__c],$=f?S?S.props.value:f.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:(C?t.__c=d=new k(x,$):(t.__c=d=new dn(x,$),d.constructor=k,d.render=yp),S&&S.sub(d),d.props=x,d.state||(d.state={}),d.context=$,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),C&&d.__s==null&&(d.__s=d.state),C&&k.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=kn({},d.__s)),kn(d.__s,k.getDerivedStateFromProps(x,d.__s))),h=d.props,m=d.state,d.__v=t,p)C&&k.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),C&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(C&&k.getDerivedStateFromProps==null&&x!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,$),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,$)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=x,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),D=0;D<d._sb.length;D++)d.__h.push(d._sb[D]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,$),C&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,m,v)})}if(d.context=$,d.props=x,d.__P=e,d.__e=!1,F=ke.__r,L=0,C){for(d.state=d.__s,d.__d=!1,F&&F(t),f=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do d.__d=!1,F&&F(t),f=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++L<25);d.state=d.__s,d.getChildContext!=null&&(r=kn(kn({},r),d.getChildContext())),C&&!p&&d.getSnapshotBeforeUpdate!=null&&(v=d.getSnapshotBeforeUpdate(h,m)),af(e,Os(_=f!=null&&f.type===ze&&f.key==null?f.props.children:f)?_:[_],t,n,r,i,o,s,a,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),b&&(d.__E=d.__=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;ke.__e(N,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=wp(n.__e,t,n,r,i,o,s,l,u);(f=ke.diffed)&&f(t)}function uf(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Ml(n[r],n[++r],n[++r]);ke.__c&&ke.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){ke.__e(o,i.__v)}})}function wp(e,t,n,r,i,o,s,a,l){var u,f,d,p,h,m,v,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&&(ke.__m&&ke.__m(t,o),a=!1),o=null}if(C===null)b===x||a&&e.data===x||(e.data=x);else{if(o=o&&go.call(e.childNodes),b=n.props||so,!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")d=h;else if(!(u in x)){if(u=="value"&&"defaultValue"in x||u=="checked"&&"defaultChecked"in x)continue;Lo(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"?v=h:a&&typeof h!="function"||b[u]===h||Lo(e,u,h,b[u],i);if(f)a||d&&(f.__html===d.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(d&&(e.innerHTML=""),af(e,Os(p)?p:[p],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&ai(n,0),a,l),o!=null)for(u=o.length;u--;)of(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])&&Lo(e,u,m,b[u],i),u="checked",v!==void 0&&v!==e[u]&&Lo(e,u,v,b[u],i))}return e}function Ml(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){ke.__e(i,n)}}function cf(e,t,n){var r,i;if(ke.unmount&&ke.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ml(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){ke.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&cf(r[i],t,n||typeof e.type!="function");n||of(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function yp(e,t,n){return this.constructor(e,n)}function Zn(e,t,n){var r,i,o,s;ke.__&&ke.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],$l(t,e=(!r&&n||t).__k=c(ze,null,[e]),i||so,so,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?go.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),uf(o,e,s)}function Il(e,t){Zn(e,t,Il)}function Dl(e,t,n){var r,i,o,s,a=kn({},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?go.call(arguments,2):n),to(e.type,a,r||e.key,i||e.ref,null)}function st(e,t){var n={__c:t="__cC"+nf++,__: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,el(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}go=rf.slice,ke={__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}},ef=0,dn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=kn({},this.state),typeof e=="function"&&(e=e(kn({},n),this.props)),e&&kn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),el(this))},dn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),el(this))},dn.prototype.render=ze,pr=[],tf=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xa=function(e,t){return e.__v.__b-t.__v.__b},ls.__r=0,Tl=0,Ja=Gu(!1),Qa=Gu(!0),nf=0;function Ol(){return(Ol=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 vp=["context","children"];function bp(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,vp);return Dl(t,n)}function _p(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=c(bp,Ol({},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[df(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?o[f]=c(zu,{name:f},u):i[s]=u}var d=r?c(zu,null,i):i;return c(r||n.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Il:Zn)(this._vdom,this._root)}function df(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function xp(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[df(e)]=n,this._vdom=Dl(this._vdom,r),Zn(this._vdom,this._root)}}function Cp(){Zn(this._vdom=null,this._root)}function zu(e,t){var n=this;return c("slot",Ol({},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 Sp(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=_p,i.prototype.attributeChangedCallback=xp,i.prototype.disconnectedCallback=Cp,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 Rl(e,t){Sp(e,t)}var On,We,Sa,qu,li=0,ff=[],tt=ke,Yu=tt.__b,Zu=tt.__r,Ku=tt.diffed,Xu=tt.__c,Ju=tt.unmount,Qu=tt.__;function Or(e,t){tt.__h&&tt.__h(We,e,li||t),li=0;var n=We.__H||(We.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function be(e){return li=1,Rr(mf,e)}function Rr(e,t,n){var r=Or(On++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):mf(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=We,!We.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 d=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]&&(d=!0)}}),o&&o.call(this,a,l,u)||d};We.u=!0;var o=We.shouldComponentUpdate,s=We.componentWillUpdate;We.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)},We.shouldComponentUpdate=i}return r.__N||r.__}function Re(e,t){var n=Or(On++,3);!tt.__s&&Ll(n.__H,t)&&(n.__=e,n.i=t,We.__H.__h.push(n))}function vn(e,t){var n=Or(On++,4);!tt.__s&&Ll(n.__H,t)&&(n.__=e,n.i=t,We.__h.push(n))}function ie(e){return li=5,fe(function(){return{current:e}},[])}function Fl(e,t,n){li=6,vn(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 fe(e,t){var n=Or(On++,7);return Ll(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Oe(e,t){return li=8,fe(function(){return e},t)}function Ve(e){var t=We.context[e.__c],n=Or(On++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(We)),t.props.value):e.__}function Pl(e,t){tt.useDebugValue&&tt.useDebugValue(t?t(e):e)}function Ep(e){var t=Or(On++,10),n=be();return t.__=e,We.componentDidCatch||(We.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function nn(){var e=Or(On++,11);if(!e.__){for(var t=We.__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 Ap(){for(var e;e=ff.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qo),e.__H.__h.forEach(tl),e.__H.__h=[]}catch(t){e.__H.__h=[],tt.__e(t,e.__v)}}tt.__b=function(e){We=null,Yu&&Yu(e)},tt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Qu&&Qu(e,t)},tt.__r=function(e){Zu&&Zu(e),On=0;var t=(We=e.__c).__H;t&&(Sa===We?(t.__h=[],We.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Qo),t.__h.forEach(tl),t.__h=[],On=0)),Sa=We},tt.diffed=function(e){Ku&&Ku(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ff.push(t)!==1&&qu===tt.requestAnimationFrame||((qu=tt.requestAnimationFrame)||kp)(Ap)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Sa=We=null},tt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Qo),n.__h=n.__h.filter(function(r){return!r.__||tl(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],tt.__e(r,n.__v)}}),Xu&&Xu(e,t)},tt.unmount=function(e){Ju&&Ju(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Qo(r)}catch(i){t=i}}),n.__H=void 0,t&&tt.__e(t,n.__v))};var ec=typeof requestAnimationFrame=="function";function kp(e){var t,n=function(){clearTimeout(r),ec&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ec&&(t=requestAnimationFrame(n))}function Qo(e){var t=We,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),We=t}function tl(e){var t=We;e.__c=e.__(),We=t}function Ll(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function mf(e,t){return typeof t=="function"?t(e):t}function nl(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Fs(e,t){var n=t(),r=be({t:{__:n,u:t}}),i=r[0].t,o=r[1];return vn(function(){i.__=n,i.u=t,Ea(i)&&o({t:i})},[e,n,t]),Re(function(){return Ea(i)&&o({t:i}),e(function(){Ea(i)&&o({t:i})})},[e]),n}function Ea(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 Vl(e){e()}function Hl(e){return e}function jl(){return[!1,Vl]}var Bl=vn;function us(e,t){this.props=e,this.context=t}function hf(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:nl(this.props,i)}function r(i){return this.shouldComponentUpdate=n,c(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(us.prototype=new dn).isPureReactComponent=!0,us.prototype.shouldComponentUpdate=function(e,t){return nl(this.props,e)||nl(this.state,t)};var tc=ke.__b;ke.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),tc&&tc(e)};var Np=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ul(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=Np,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var nc=function(e,t){return e==null?null:Mn(Mn(e).map(t))},pf={map:nc,forEach:nc,count:function(e){return e?Mn(e).length:0},only:function(e){var t=Mn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Mn},Tp=ke.__e;ke.__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)}Tp(e,t,n,r)};var rc=ke.unmount;function gf(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 gf(r,t,n)})),e}function wf(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return wf(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 no(){this.__u=0,this.o=null,this.__b=null}function yf(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function vf(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 c(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Zr(){this.i=null,this.l=null}ke.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),rc&&rc(e)},(no.prototype=new dn).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=yf(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]=wf(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)},no.prototype.componentWillUnmount=function(){this.o=[]},no.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]=gf(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&c(ze,null,e.fallback);return i&&(i.__u&=-33),[c(ze,null,t.__a?null:e.children),i]};var ic=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 $p(e){return this.getChildContext=function(){return e.context},e.children}function Mp(e){var t=this,n=e.h;t.componentWillUnmount=function(){Zn(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)}}),Zn(c($p,{context:t.context},e.__v),t.v)}function Ps(e,t){var n=c(Mp,{__v:e,h:t});return n.containerInfo=t,n}(Zr.prototype=new dn).__a=function(e){var t=this,n=yf(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),ic(t,e,r)):i()};n?n(o):o()}},Zr.prototype.render=function(e){this.i=null,this.l=new Map;var t=Mn(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},Zr.prototype.componentDidUpdate=Zr.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){ic(e,n,t)})};var bf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ip=/^(?: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]/,Dp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Op=/[A-Z0-9]/g,Rp=typeof document<"u",Fp=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function _f(e,t,n){return t.__k==null&&(t.textContent=""),Zn(e,t),typeof n=="function"&&n(),e?e.__c:null}function xf(e,t,n){return Il(e,t),typeof n=="function"&&n(),e?e.__c:null}dn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(dn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var oc=ke.event;function Pp(){}function Lp(){return this.cancelBubble}function Vp(){return this.defaultPrevented}ke.event=function(e){return oc&&(e=oc(e)),e.persist=Pp,e.isPropagationStopped=Lp,e.isDefaultPrevented=Vp,e.nativeEvent=e};var Wl,Hp={enumerable:!1,configurable:!0,get:function(){return this.class}},sc=ke.vnode;ke.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||Rp&&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"||Fp(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Dp.test(s)&&(s=l):l=s="oninput":o&&Ip.test(s)?s=s.replace(Op,"-$&").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=Mn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Mn(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",Hp)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=bf,sc&&sc(e)};var ac=ke.__r;ke.__r=function(e){ac&&ac(e),Wl=e.__c};var lc=ke.diffed;ke.diffed=function(e){lc&&lc(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),Wl=null};var Cf={ReactCurrentDispatcher:{current:{readContext:function(e){return Wl.__n[e.__c].props.value},useCallback:Oe,useContext:Ve,useDebugValue:Pl,useDeferredValue:Hl,useEffect:Re,useId:nn,useImperativeHandle:Fl,useInsertionEffect:Bl,useLayoutEffect:vn,useMemo:fe,useReducer:Rr,useRef:ie,useState:be,useSyncExternalStore:Fs,useTransition:jl}}},jp="18.3.1";function Sf(e){return c.bind(null,e)}function gi(e){return!!e&&e.$$typeof===bf}function Ef(e){return gi(e)&&e.type===ze}function Af(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Gl(e){return gi(e)?Dl.apply(null,arguments):e}function kf(e){return!!e.__k&&(Zn(null,e),!0)}function Nf(e){return e&&(e.base||e.nodeType===1&&e)||null}var Tf=function(e,t){return e(t)},Yt=function(e,t){return e(t)},$f=ze,Mf=gi,K={useState:be,useId:nn,useReducer:Rr,useEffect:Re,useLayoutEffect:vn,useInsertionEffect:Bl,useTransition:jl,useDeferredValue:Hl,useSyncExternalStore:Fs,startTransition:Vl,useRef:ie,useImperativeHandle:Fl,useMemo:fe,useCallback:Oe,useContext:Ve,useDebugValue:Pl,version:"18.3.1",Children:pf,render:_f,hydrate:xf,unmountComponentAtNode:kf,createPortal:Ps,createElement:c,createContext:st,createFactory:Sf,cloneElement:Gl,createRef:Rs,Fragment:ze,isValidElement:gi,isElement:Mf,isFragment:Ef,isMemo:Af,findDOMNode:Nf,Component:dn,PureComponent:us,memo:hf,forwardRef:Ul,flushSync:Yt,unstable_batchedUpdates:Tf,StrictMode:$f,Suspense:no,SuspenseList:Zr,lazy:vf,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cf};const cs=Object.freeze(Object.defineProperty({__proto__:null,Children:pf,Component:dn,Fragment:ze,PureComponent:us,StrictMode:$f,Suspense:no,SuspenseList:Zr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cf,cloneElement:Gl,createContext:st,createElement:c,createFactory:Sf,createPortal:Ps,createRef:Rs,default:K,findDOMNode:Nf,flushSync:Yt,forwardRef:Ul,hydrate:xf,isElement:Mf,isFragment:Ef,isMemo:Af,isValidElement:gi,lazy:vf,memo:hf,render:_f,startTransition:Vl,unmountComponentAtNode:kf,unstable_batchedUpdates:Tf,useCallback:Oe,useContext:Ve,useDebugValue:Pl,useDeferredValue:Hl,useEffect:Re,useErrorBoundary:Ep,useId:nn,useImperativeHandle:Fl,useInsertionEffect:Bl,useLayoutEffect:vn,useMemo:fe,useReducer:Rr,useRef:ie,useState:be,useSyncExternalStore:Fs,useTransition:jl,version:jp},Symbol.toStringTag,{value:"Module"})),Bp=`*,: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}.left-full{left:100%}.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}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-auto{margin-left:auto;margin-right:auto}.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-1{margin-left:.25rem}.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-5{margin-top:1.25rem}.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-12{width:3rem;height:3rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-1\\.5{height:.375rem}.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-\\[118px\\]{height:118px}.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}.h-screen{height:100vh}.max-h-48{max-height:12rem}.max-h-\\[470px\\]{max-height:470px}.min-h-full{min-height:100%}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[1030px\\]{width:1030px}.w-\\[120px\\]{width:120px}.w-\\[128px\\]{width:128px}.w-\\[140px\\]{width:140px}.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%}.w-screen{width:100vw}.min-w-60{min-width:15rem}.max-w-\\[640px\\]{max-width:640px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.-translate-y-1\\/4{--tw-translate-y: -25%;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))}.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-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.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-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[5px\\]{border-radius:5px}.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-r{border-right-width:1px}.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)}.border-r-gray-200{--tw-border-opacity: 1;border-right-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.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-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.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-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#a650ff\\]{--tw-gradient-from: #a650ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(166 80 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#0095f2\\]{--tw-gradient-to: #0095f2 var(--tw-gradient-to-position)}.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-5{padding-left:1.25rem;padding-right:1.25rem}.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-2\\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-\\[13px\\]{padding-left:13px}.pr-1\\.5{padding-right:.375rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.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-5{padding-top:1.25rem}.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-5{line-height:1.25rem}.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-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.ring-opacity-5{--tw-ring-opacity: .05}.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)}@keyframes progressBar{0%{width:0}to{width:100%}}.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-emerald-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.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))}.hover\\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-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)}.hover\\:enabled\\:bg-emerald-700:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-gray-50:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-primary-700:enabled:hover{background-color:var(--fl-color-primary-700)}.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\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:size-10{width:2.5rem;height:2.5rem}.sm\\:size-4{width:1rem;height:1rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}}@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 mn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Up(e){return e!=null&&typeof e.GetEnumerator=="function"}function Wp(e){return e!=null&&typeof e.CompareTo=="function"}function Gp(e){return e!=null&&typeof e.Equals=="function"}function If(e){return e!=null&&typeof e.GetHashCode=="function"}function rl(e){return e!=null&&typeof e.Dispose=="function"}function Ie(e){rl(e)&&e.Dispose()}function Ae(){return null}function ds(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 zp{constructor(t){this.iter=t,this.current=Ae()}"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 Le(e){return Up(e)?e.GetEnumerator():new zp(e[Symbol.iterator]())}function wi(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 qp{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 je(e,t){return e.toString(10).padStart(t,"0")}function Yp(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function uc(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Zp(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function fn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Nn{static id(t){return Nn.idMap.has(t)||Nn.idMap.set(t,++Nn.count),Nn.idMap.get(t)}}Nn.idMap=new WeakMap;Nn.count=0;function sr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function ln(e){return e*2654435761|0}function Df(e){return sr(e.toString(32))}function wo(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 Kp(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ln(e);case"bigint":return Df(e);case"string":return sr(e);default:return ln(Nn.id(e))}}function Xp(e){return If(e)?e.GetHashCode():Kp(e)}function Jp(e){return e.getTime()}function Qp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=en(e[r]);return wo(n)}function en(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ln(e);case"bigint":return Df(e);case"string":return sr(e);default:{if(If(e))return e.GetHashCode();if(mn(e))return Qp(e);if(e instanceof Date)return Jp(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>en(r));return wo(n)}else return ln(Nn.id(e))}}}function fs(e){return Xp(e)}function il(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 Of(e,t){return il(e,t,Q)}function e1(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]||!Q(e[n[i]],t[r[i]]))return!1;return!0}function Q(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Gp(e)?e.Equals(t):mn(e)?mn(t)&&Of(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Rf(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&e1(e,t)}function Rf(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+uc(e),r=t.getTime()+uc(t)),n===r?0:n<r?-1:1}function Fr(e,t){return e===t?0:e<t?-1:1}function t1(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 zl(e,t){return t1(e,t,St)}function n1(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=St(e[s],t[s]),o!==0)return o}return 0}function St(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Wp(e)?e.CompareTo(t):mn(e)?mn(t)?zl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Rf(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?n1(e,t):-1}function w(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function r1(e){mn(e)?e.splice(0):e.clear()}const Ls=new WeakMap;function qe(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Ls.set(t,e),t}function Wn(e){return Ls.get(e)??(t=>n=>e(t,n))}function ol(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Ls.set(t,e),t}function Aa(e){return Ls.get(e)??(t=>n=>r=>e(t,n,r))}function i1(e){let t=0,n="[";for(const r of e){if(t===0)n+=Je(r);else if(t===100){n+="; ...";break}else n+="; "+Je(r);t++}return n+"]"}function Je(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 i1(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+Je(o,t+1)).join(`
|
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function o1(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Je(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>Je(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class U{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return o1(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>en(n));return t.splice(0,0,ln(this.tag)),wo(t)}Equals(t){return this===t?!0:ds(this,t)&&this.tag===t.tag?Of(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ds(this,t)?this.tag===t.tag?zl(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function s1(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function a1(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Je(n)).join(`
|
|
3
|
+
`)+" }"}function l1(e){const t=Object.values(e).map(n=>en(n));return wo(t)}function u1(e,t){if(e===t)return!0;if(ds(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Q(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function c1(e,t){if(e===t)return 0;if(ds(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=St(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class _e{toJSON(){return s1(this)}toString(){return a1(this)}GetHashCode(){return l1(this)}Equals(t){return u1(this,t)}CompareTo(t){return c1(this,t)}}class _t{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 d1{constructor(t){this.message=t}}function f1(e){return e instanceof d1||e instanceof Error}function m1(e){return e instanceof Promise}function ms(e){return f1(e)||m1(e)?e:new Error(String(e))}const ql=Je(Bp),yi=Symbol("numeric");function Ff(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[yi])}function h1(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function sl(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[yi]().multiply(t)}function es(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[yi]().toFixed(t)}function hs(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[yi]().toPrecision(t)}function ps(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[yi]().toExponential(t)}function gs(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[yi]().toHex()}const p1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],g1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],w1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],y1=["January","February","March","April","May","June","July","August","September","October","November","December"];function jt(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function cc(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function v1(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 Yl(e,t,n){let r=0,i=0,o="";const s=n?yo(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=jt(t,r,"d"),r+=i,i){case 1:o+=fc(s);break;case 2:o+=je(fc(s),2);break;case 3:o+=p1[pc(s)];break;case 4:o+=g1[pc(s)];break}break;case"f":if(i=jt(t,r,"f"),r+=i,i<=3){const b=10**(3-i);o+=je(Math.floor(Ho(s)/b),i)}else i<=7&&(o+=(""+Ho(s)).padEnd(i,"0"));break;case"F":if(i=jt(t,r,"F"),r+=i,i<=3){const b=10**(3-i),x=Math.floor(Ho(s)/b);x!=0&&(o+=je(x,i))}else if(i<=7){const b=Ho(s);b!=0&&(o+=je(b,3))}break;case"g":i=jt(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=jt(t,r,"h"),r+=i,i){case 1:o+=Vo(s)%12;break;case 2:o+=je(Vo(s)%12,2);break}break;case"H":switch(i=jt(t,r,"H"),r+=i,i){case 1:o+=Vo(s);break;case 2:o+=je(Vo(s),2);break}break;case"K":switch(i=jt(t,r,"K"),r+=i,i){case 1:switch(dc(s)){case 1:o+="Z";break;case 2:o+=Xr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=jt(t,r,"m"),r+=i,i){case 1:o+=mc(s);break;case 2:o+=je(mc(s),2);break}break;case"M":switch(i=jt(t,r,"M"),r+=i,i){case 1:o+=jo(s);break;case 2:o+=je(jo(s),2);break;case 3:o+=w1[jo(s)-1];break;case 4:o+=y1[jo(s)-1];break}break;case"s":switch(i=jt(t,r,"s"),r+=i,i){case 1:o+=hc(s);break;case 2:o+=je(hc(s),2);break}break;case"t":switch(i=jt(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=jt(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=je(s.getFullYear()%100,2);break;case 3:o+=je(s.getFullYear(),3);break;case 4:o+=je(s.getFullYear(),4);break;case 5:o+=je(s.getFullYear(),5);break}break;case"z":i=jt(t,r,"z"),r+=i;let l="";switch(dc(s)){case 1:l="+00:00";break;case 2:l=Xr(s.getTimezoneOffset()*-6e4);break;case 0:l=Xr(N1(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),d=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${je(f,2)}`;break;default:o+=`${u}${je(f,2)}:${je(d,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=v1(t,r);o+=p,r+=h;break;case"%":const m=cc(t,r);if(m>=0&&m!==37)r+=2,o+=Yl(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const v=cc(t,r);if(v>=0)r+=2,o+=String.fromCharCode(v);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function dc(e){return e.kind||0}function Xr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+je(n,2)+":"+je(r,2)}function ws(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 b1(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return je(e.getFullYear(),4)+"-"+je(e.getMonth()+1,2)+"-"+je(e.getDate(),2)+"T"+je(e.getHours(),2)+":"+je(e.getMinutes(),2)+":"+je(e.getSeconds(),2)+"."+je(e.getMilliseconds(),3)+(n?Xr(e.getTimezoneOffset()*-6e4):"")}}function _1(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Xr(t)}function x1(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," ")+Xr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ws(n,"first");case"T":case"t":return ws(n,"second");case"O":case"o":return _1(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Yl(n,t,!0)}function C1(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?ws(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ws(e,"second"):e.toLocaleTimeString();case"O":case"o":return b1(e,n);default:throw new Error("Unrecognized Date print format")}else return Yl(e,t,n)}function Vs(e,t,n){return e.offset!=null?x1(e,t):C1(e,t)}function yo(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function S1(){return yo(-621355968e5,1)}function Pf(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 E1(e,t=!1){const[n,r]=Pf(e),i=r!=null?t&&r==="Z"?1:2:0;return yo(n.getTime(),i)}function A1(e,t){try{return t.contents=E1(e),!0}catch{return!1}}function k1(e){return e.kind===1?e:yo(e.getTime(),1)}function N1(e){return e.kind===2?e:yo(e.getTime(),2)}function fc(e){return e.kind===1?e.getUTCDate():e.getDate()}function Vo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Ho(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function mc(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function jo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function hc(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function pc(e){return e.kind===1?e.getUTCDay():e.getDay()}function T1(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 Hs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function gc(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 Zl(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 d=0;d<f;d++)a.push(arguments[d]);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=T1(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=gc(e,a),u=gc.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 Vi=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,$1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Lf(e,t){return h1(e,t)<0}function Rn(e){return{input:e,cont:I1(e)}}function Vf(e,t){return typeof t=="string"?e(t):t.cont(e)}function Er(e){return Vf(t=>t,e)}function Hf(e){return Vf(t=>{throw new Error(t)},e)}function M1(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Ff(e))switch(i.toLowerCase()!=="x"&&(Lf(e,0)?(e=sl(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=es(e,r);break;case"g":case"G":e=r!=null?hs(e,r):hs(e);break;case"e":case"E":e=r!=null?ps(e,r):ps(e);break;case"x":e=gs(e);break;case"X":e=gs(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Vs(e):e=Je(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=ao(e,n-o.length,l,a),e=o+e):e=ao(o+e,n,l,a)}return e}function jf(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,d,p,h]=l[0];let m=d;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+=M1(u,f,m,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):jf(e,a,l,s,i)}}function I1(e){return t=>{Vi.lastIndex=0;const n=[],r=[];let i=0,o=Vi.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Vi.lastIndex,Vi.lastIndex-=1,o=Vi.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),jf(t,n,r))}}function Kl(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace($1,(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(Ff(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=es(u,a);break;case"g":case"G":u=a!=null?hs(u,a):hs(u);break;case"e":case"E":u=a!=null?ps(u,a):ps(u);break;case"p":case"P":a=a??2,u=es(sl(u,100),a)+" %";break;case"d":case"D":u=a!=null?ka(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?ka(gs(u),a,"0"):gs(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(d,p,h)=>{Lf(u,0)&&(u=sl(u,-1),f="-"),h=h==null?"":h.substring(1),u=es(u,Math.max(h.length,0));let[m,v]=u.split(".");v||(v="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;m=ka(m,b,"0");const x=h.replace(/#+$/,"").length;if(x>v.length?v=D1(v,x,"0"):x<v.length&&(v=v.substring(0,x)+v.substring(x).replace(/0+$/,"")),p.indexOf(",")>0){const C=m.length%3,S=Math.floor(m.length/3);let $=C>0?m.substr(0,C)+(S>0?",":""):"";for(let D=0;D<S;D++)$+=m.substr(C+D*3,3)+(D<S-1?",":"");m=$}return v.length>0?m+"."+v:m}),u=f+u}}else u instanceof Date?u=Vs(u,l||s):u=Je(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=ao(String(u),Math.abs(o)," ",o<0)),u})}function Xl(e){return typeof e!="string"||e.length===0}function vi(e){return typeof e!="string"||/^\s*$/.test(e)}function Et(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function ao(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 ka(e,t,n){return ao(e,t,n)}function D1(e,t,n){return ao(e,t,n,!0)}function Bf(e,t,n){return e.replace(new RegExp(Hs(t),"g"),n)}function Uf(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(Hs),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 d=o?e.substring(u).trim():e.substring(u);(!i||d.length>0)&&s.push(d),l=!1}else{const d=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!i||d.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(d)),u=a.lastIndex}}while(l);return s}function O1(e,...t){if(t.length===0)return e.trim();const n="["+Hs(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function Jl(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Hs(t.join(""))+"]+$"),"")}function R1(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}class Ar{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return en(this.value)}Equals(t){return t==null?!1:Q(this.value,t instanceof Ar?t.value:t)}CompareTo(t){return t==null?1:St(this.value,t instanceof Ar?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof Ar?e.value:e}function Ji(e){return e instanceof Ar?e.value:e}function lt(e){return e==null||e instanceof Ar?new Ar(e):e}function Wf(e){return e==null?null:V(e)}function bi(e){return e==null?[]:[V(e)]}function Qe(e,t){return e!=null?V(e):t}function F1(e,t){return e!=null?V(e):t()}function Ct(e,t){return t!=null?lt(e(V(t))):void 0}function P1(e,t){return t!=null?e(V(t)):void 0}class L1{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Kt{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 Ye(this)}GetHashCode(){return Gf(this)}Equals(t){return al(this,t)}}function zt(e){return e.generics!=null?e.generics:[]}function Gf(e){const t=sr(e.fullname),n=zt(e).map(Gf);return wo([t,...n])}function al(e,t){return e.fullname===""?t.fullname===""&&il(lo(e),lo(t),([n,r],[i,o])=>n===i&&al(r,o)):e.fullname===t.fullname&&il(zt(e),zt(t),al)}function Kn(e,t,n,r){return new Kt(e,t,n,r)}function Rt(e,t,n,r){return new Kt(e,t,n,void 0,r)}function js(e,t,n,r){const i=new Kt(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new L1(i,a,o[a],s))});return i}function Jr(e){return new Kt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Xn(e){return new Kt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const V1=new Kt("System.Object"),In=new Kt("System.String"),ll=new Kt("System.Boolean"),ht=new Kt("System.Int32");function Qr(e){if(Array.isArray(e))return e[0];if(e instanceof Kt){const t=vo(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 Ye(e){const t=vo(e);return t!=null?Ye(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Ye(n)).join(",")+"]"}function zf(e){return vo(e)!=null}function vo(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function qf(e){return e.generics!=null&&e.generics.length>0}function Ql(e){return e.enumCases!=null&&e.enumCases.length>0}function Yf(e){return e.generics==null?e:new Kt(e.fullname,e.generics.map(()=>V1))}function Zf(e){var t;return(t=e.generics)==null?void 0:t[0]}function Vr(e){if(Ql(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function H1(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 Hr(e,t){const n=parseInt(t,10);return H1(e,isNaN(n)?t:n)[1]}function Kf(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function lo(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Xf(e){if(eu(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Jf(e){return e instanceof Kt?e.cases!=null:e instanceof U}function Qf(e){return e instanceof Kt?e.fields!=null:e instanceof _e}function eu(e){return e.fullname.startsWith("System.Tuple")}function j1(e,t){const r=Kf(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function e0(e){return e.fields==null?[]:e.fields}function B1(e,t){return e[t[0]]}function U1(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 W1(e,t){const n=lo(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 G1(e,t){return e}const t0="Collection was empty.",z1="The input must be non-negative.",n0="The input sequence has an insufficient number of elements.";function ui(e,t){return new Array(t)}function wc(e,t){return e>t?e:t}function yc(e,t){return e<t?e:t}function r0(e,t,n){const r=e.length|0,i=t.length|0,o=ui(n,r+i);for(let s=0;s<=r-1;s++)$t(o,s,he(s,e));for(let s=0;s<=i-1;s++)$t(o,s+r,he(s,t));return o}function bo(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function q1(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return he(e.length-1,e)}function i0(e,t,n){const r=t.length|0,i=ui(n,r);for(let o=0;o<=r-1;o++)$t(i,o,e(o,he(o,t)));return i}function Ze(e,t,n){const r=t.length|0,i=ui(n,r);for(let o=0;o<=r-1;o++)$t(i,o,e(he(o,t)));return i}function ys(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return ui(t,0);case 1:return he(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=he(a,n);o=o+l.length|0}const s=ui(t,o);for(let a=0;a<=n.length-1;a++){const l=he(a,n);for(let u=0;u<=l.length-1;u++)$t(s,i,he(u,l)),i=i+1|0}return s}}}function Y1(e,t,n,r,i){const o=Qe(n,0)|0,s=Qe(Ct(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,he(u,e)))return u|0;l=u+1;continue e}})(o)|0}function _i(e,t,n){return Y1(t,e,void 0,void 0,n)>=0}function Z1(e,t){const n=ui(t,1);return $t(n,0,e),n}function K1(e){return e.slice().reverse()}function Bs(e,t){return t.find(e)}function qt(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(he(i,t));if(o!=null){const s=V(o);r.push(s)}}return Q(n,Ae())?r:Ze(i=>i,r,n)}function Us(e,t,n){const r=e;return n.reduce(r,t)}function X1(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function J1(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function kr(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(he(r,t),he(r,n)),r=r+1|0;return i}}function vc(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return he(0,e)}function Q1(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function he(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 o0(e,t){if(!(e<0||e>=t.length))return lt(t[e])}function s0(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class At extends _e{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Et("; ",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),d=V(u);if(Q(s.head,a.head)){i=f,o=d;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)+en(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),d=V(u),p=St(s.head,a.head)|0;if(p===0){i=f,o=d;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return tg(this)}[Symbol.iterator](){return wi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class eg{constructor(t){this.xs=t,this.it=this.xs,this.current=Ae()}"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=Ae()}Dispose(){}}function tg(e){return new eg(e)}function it(){return new At(Ae(),void 0)}function _o(e,t){return new At(e,t)}function wn(e){return e.tail==null}function a0(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 Jn(e){if(e.tail!=null)return e.head;throw new Error(t0+"\\nParameter name: list")}function vt(e){const t=e.tail;if(t!=null)return V(t);throw new Error(t0+"\\nParameter name: list")}function ot(){return it()}function Jt(e,t){return _o(e,t)}function le(e){return _o(e,it())}function $e(e){return wn(e)}function un(e){return a0(e)}function ae(e){return Jn(e)}function Me(e){return vt(e)}function ar(e){const t=a0(e)|0,n=bo(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!wn(a)){$t(n,s,Jn(a)),i=s+1,o=vt(a);continue e}break}})(0,e),n}function Ln(e,t,n){let r=t,i=n;for(;!wn(i);)r=e(r,ae(i)),i=vt(i);return r}function tu(e){return Ln((t,n)=>_o(n,t),it(),e)}function ng(e,t,n){return s0(e,ar(t),n)}function rg(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,u=s;if(wn(u))return l;i=a+1,o=e(a,l,Jn(u)),s=vt(u);continue e}})(0,t,n)}function vs(e,t){Ln((n,r)=>{e(r)},void 0,t)}function et(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=_o(he(r,e),n);return n}function g(e){return et(e,it())}function ig(e){let t,n;if(mn(e))return g(e);if(e instanceof At)return e;{const r=it();let i=r;const o=Le(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new At(l,void 0),t.tail=n,n)}}finally{Ie(o)}const s=i,a=it();return s.tail=a,vt(r)}}function xo(e,t){return Ln((n,r)=>_o(r,n),t,tu(e))}function og(e,t){let n,r;const i=it();let o=i,s=t;for(;!wn(s);){let u=e(Jn(s));for(;!wn(u);)o=(n=o,r=new At(Jn(u),void 0),n.tail=r,r),u=vt(u);s=vt(s)}const a=o,l=it();return a.tail=l,vt(i)}function nu(e,t){const n=it(),r=rg((o,s,a)=>{const l=new At(e(o,a),void 0);return s.tail=l,l},n,t),i=it();return r.tail=i,vt(n)}function Qn(e,t){const n=it(),r=Ln((o,s)=>{const a=new At(e(s),void 0);return o.tail=a,a},n,t),i=it();return r.tail=i,vt(n)}function sg(e,t){return(r=>{e:for(;;){const i=r;if(wn(i))return;{const o=e(Jn(i));if(o==null){r=vt(i);continue e}else return o}}})(t)}function ag(e,t){return sg(n=>e(n)?lt(n):void 0,t)}function lg(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(wn(s))return;if(e(Jn(s)))return o;r=o+1,i=vt(s);continue e}})(0,t)}function Tn(e,t){const n=it(),r=Ln((o,s)=>{if(e(s)){const a=new At(s,void 0);return o.tail=a,a}else return o},n,t),i=it();return r.tail=i,vt(n)}function ug(e,t){const n=it(),r=it(),i=n,o=Ln((l,u)=>{let f,d;const p=l[0],h=l[1];return e(u)?[(f=new At(u,void 0),p.tail=f,f),h]:[p,(d=new At(u,void 0),h.tail=d,d)]},[i,r],t),s=it();o[0].tail=s;const a=it();return o[1].tail=a,[vt(i),vt(r)]}function cg(e,t){const n=it(),r=Ln((o,s)=>{const a=e(s);if(a==null)return o;{const l=new At(V(a),void 0);return o.tail=l,l}},n,t),i=it();return r.tail=i,vt(n)}function ru(e,t){return lg(e,t)!=null}function l0(e,t){const n=ar(t);return n.sort(e),g(n)}function dg(e,t,n){return l0((r,i)=>n.Compare(e(r),e(i)),t)}function fg(e,t,n){return l0((r,i)=>n.Compare(e(r),e(i))*-1,t)}function u0(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(wn(r))throw new Error(n0+"\\nParameter name: list");e=n-1,t=vt(r);continue e}}function c0(e,t){if(e<0)throw new Error(z1+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const f=s,d=a,p=l;if(f<=0)return d;if(wn(p))throw new Error(n0+"\\nParameter name: list");s=f-1,a=(u=new At(Jn(p),void 0),d.tail=u,u),l=vt(p);continue e}},r=it(),i=n(e,r,t),o=it();return i.tail=o,vt(r)}function mg(e,t,n){const r=un(n)|0;let i;const o=Qe(e,0)|0;i=o<0?0:o;let s;const a=Qe(t,r-1)|0;return s=a>=r?r-1:a,s<i?it():c0(s-i+1,u0(i,n))}const y=K;function hg(e){const t=g([c("style",{children:[ql]}),c("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return c("div",{children:y.Children.toArray(Array.from(t))})}function pg(e){throw new Error(e)}const gg="Enumeration already finished.",wg="Enumeration has not started. Call MoveNext.",d0="The input sequence has an insufficient number of elements.",yg="Reset is not supported on this enumerator.";function vg(){throw new Error(yg)}function iu(){throw new Error(wg)}function ul(){throw new Error(gg)}class bg{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=Le(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Je(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Ie(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return wi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function _g(e){return new bg(e)}class xg{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"(){vg()}Dispose(){this.dispose()}}function Ws(e,t,n){return new xg(e,t,n)}function Cg(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{Ie(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{Ie(a)}finally{t=void 0}}};return Ws(()=>(r?i&&ul():iu(),o!=null?V(o):ul()),()=>{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 d=V(f);if(d["System.Collections.IEnumerator.MoveNext"]())o=lt(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Ie(d)}finally{n=void 0}}else{const d=V(u);d["System.Collections.IEnumerator.MoveNext"]()?n=(a=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(a)):(s(),l=!1)}else t=Le(e)}return V(l)}},()=>{i||s()})}function Sg(e,t){return Ws(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Ie(t)}finally{}})}function f0(e,t,n){let r=!1,i,o=lt(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 Ws(()=>(r||iu(),i!=null?V(i):ul()),()=>{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 Eg(e,t){let n,r=t;return Ws(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return iu()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function Ag(e,t){t==null&&pg(e)}function xi(e){return _g(e)}function tn(e){return Ag("source",e),Le(e)}function T(e){return xi(()=>Le(e()))}function Gs(e){return xi(()=>Cg(e))}function kg(e,t){return xi(()=>Eg(e,t))}function ft(){return T(()=>new Array(0))}function A(e){return T(()=>Z1(e))}function Fn(e){return e instanceof At?ar(e):Array.from(e)}function Z(e){return mn(e)?g(e):e instanceof At?e:ig(e)}function ou(e,t,n){return xi(()=>f0(e,t,n))}function m0(e,t,n){return xi(()=>{let r=-1;return f0(e,i=>(r=r+1|0,t(r,i)),n)})}function H(e,t){return Gs([e,t])}function Ng(e,t){return ou(()=>tn(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=>{Ie(n)})}function Tg(e,t,n){const r=tn(t);try{const i=tn(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{Ie(i)}}finally{Ie(r)}}function jr(e,t,n){const r=tn(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{Ie(r)}}function zs(e,t){return Ng(n=>{if(e(n))return lt(n)},t)}function Co(e,t,n){const r=tn(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{Ie(r)}}function Vn(e,t){Co((n,r)=>{e(r)},void 0,t)}function h0(e,t){Co((n,r)=>(e(n,r),n+1|0),0,t)}function $g(e){if(mn(e))return e.length|0;if(e instanceof At)return un(e)|0;{const t=tn(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{Ie(t)}}}function Pe(e,t){return ou(()=>tn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?lt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ie(n)})}function Mg(e,t){return m0(()=>tn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?lt(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ie(n)})}function Ig(e,t,n){return ou(()=>[tn(t),tn(n)],r=>{const i=r[0],o=r[1];return i["System.Collections.IEnumerator.MoveNext"]()&&o["System.Collections.IEnumerator.MoveNext"]()?lt(e(i["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0},r=>{try{Ie(r[0])}finally{Ie(r[1])}})}function Dg(e){return T(()=>K1(Fn(e)))}function Og(e,t){return xi(()=>{const n=tn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(d0+"\\nParameter name: source");return Sg(()=>{},n)}catch(r){throw Ie(n),r}})}function Rg(e,t){return m0(()=>tn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return lt(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(d0+"\\nParameter name: source")}else return},n=>{Ie(n)})}function Fg(e,t){return Ig((n,r)=>[n,r],e,t)}function qs(e,t){return T(()=>Gs(Pe(e,t)))}const gr={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Na(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 Pg(e,t){switch(t){case gr.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case gr.SnakeCase:return Na(e,"_");case gr.SnakeCaseAllCaps:return Na(e,"_").toUpperCase();case gr.KebabCase:return Na(e,"-");case gr.None:default:return e}}function lr(e,t=gr.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=Pg(s,a),n[s]=l}for(let s of e){let a=gr.None;if(s==null&&i(s),s instanceof U){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 su(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function p0(e,t){return t.has(e)?!1:(t.add(e),!0)}function Lg(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 er(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class g0{constructor(t,n){const r=new _t(Ae());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Le(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Ta(r.contents,o)}}finally{Ie(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}GetEnumerator(){return Le(Gs(this.hashMap.values()))}[Symbol.iterator](){return wi(Le(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Ta(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){bc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return xc(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){h0((i,o)=>{$t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return _c(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return Cc(this,t)}get size(){return _c(this)|0}add(t){const n=this;return Ta(n,t),n}clear(){bc(this)}delete(t){return Cc(this,t)}has(t){return xc(this,t)}keys(){return Pe(n=>n,this)}values(){return Pe(n=>n,this)}entries(){return Pe(n=>[n,n],this)}forEach(t,n){const r=this;Vn(i=>{t(i,i,r)},r)}}function au(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[su(e.hashMap,n,new _t(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function bc(e){e.hashMap.clear()}function _c(e){let t=0,n=Le(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{Ie(n)}return t|0}function Ta(e,t){const n=au(e,t);return n[0]?n[2]>-1?!1:(er(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function xc(e,t){const n=au(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Cc(e,t){const n=au(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return er(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class w0{constructor(t){this.k=t}}function Wt(e){return new w0(e)}function ve(e){return e.k}class Fe extends w0{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function Gt(e,t,n,r){return new Fe(e,t,n,r)}function Ge(e){return e.left}function Ue(e){return e.right}function Kr(e){return e.h}function y0(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=V(n);if(i instanceof Fe){const o=i;e=Ge(o),t=y0(Ue(o),r+1);continue e}else return r+1|0}else return r|0}}function Vg(e){return y0(e,0)}function on(e,t,n){let r,i,o;const s=e;if(s!=null){const f=V(s);o=f instanceof Fe?(r=f,Kr(r)):1}else o=0;let a;const l=n;if(l!=null){const f=V(l);a=f instanceof Fe?(i=f,Kr(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Wt(t):Gt(t,e,n,u+1)}function Sc(e,t,n){let r,i,o,s,a,l,u,f,d;const p=e;if(p!=null){const v=V(p);d=v instanceof Fe?(r=v,Kr(r)):1}else d=0;let h;const m=n;if(m!=null){const v=V(m);h=v instanceof Fe?(i=v,Kr(i)):1}else h=0;if(h>d+2){const v=V(n);if(v instanceof Fe){const b=v;if(o=Ge(b),(o!=null?(s=V(o),s instanceof Fe?(a=s,Kr(a)):1):0)>d+1){const x=V(Ge(b));if(x instanceof Fe){const C=x;return on(on(e,t,Ge(C)),ve(C),on(Ue(C),ve(b),Ue(b)))}else throw new Error("internal error: Set.rebalance")}else return on(on(e,t,Ge(b)),ve(b),Ue(b))}else throw new Error("internal error: Set.rebalance")}else if(d>h+2){const v=V(e);if(v instanceof Fe){const b=v;if(l=Ue(b),(l!=null?(u=V(l),u instanceof Fe?(f=u,Kr(f)):1):0)>h+1){const x=V(Ue(b));if(x instanceof Fe){const C=x;return on(on(Ge(b),ve(b),Ge(C)),ve(C),on(Ue(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return on(Ge(b),ve(b),on(Ue(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return on(e,t,n)}function ci(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,ve(r))|0;if(r instanceof Fe){const o=r;return i<0?Sc(ci(e,t,Ge(o)),ve(o),Ue(o)):i===0?n:Sc(Ge(o),ve(o),ci(e,t,Ue(o)))}else{const o=e.Compare(t,ve(r))|0;return o<0?Gt(t,void 0,n,2):o===0?n:Gt(t,n,void 0,2)}}else return Wt(t)}function v0(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ve(s))|0;if(s instanceof Fe){const l=s;if(a<0){e=r,t=i,n=Ge(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Ue(l);continue e}}else return a===0}else return!1}}function b0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Fe){const o=i;b0(n,Ge(o)),n(ve(o)),e=n,t=Ue(o);continue e}else n(ve(i))}break}}class Hg extends _e{constructor(t,n){super(),this.stack=t,this.started=n}}function _0(e){e:for(;;){const t=e;if($e(t))return ot();{const n=ae(t),r=Me(t);if(n!=null){const i=V(n);if(i instanceof Fe){const o=i;e=et([Ge(o),Wt(ve(o)),Ue(o)],r);continue e}else return t}else{e=r;continue e}}}}function Ec(e){return new Hg(_0(le(e)),!1)}function jg(){throw new Error("Enumeration not started")}function Bg(){throw new Error("Enumeration already started")}function Ac(e){if(e.started){const t=e.stack;if($e(t))return Bg();if(ae(t)!=null){const n=V(ae(t));return ve(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return jg()}function Ug(e){if(e.started){const t=e.stack;if($e(t))return!1;if(ae(t)!=null){if(V(ae(t))instanceof Fe)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=_0(Me(t)),!$e(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!$e(e.stack)}function kc(e){let t=Ec(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ac(t)},"System.Collections.IEnumerator.get_Current"(){return Ac(t)},"System.Collections.IEnumerator.MoveNext"(){return Ug(t)},"System.Collections.IEnumerator.Reset"(){t=Ec(e)},Dispose(){}}}function Wg(e,t,n){e:for(;;){const r=e,i=t,o=n;if($e(i))return $e(o)?0:-1;if($e(o))return 1;if(ae(o)!=null)if(ae(i)!=null){const s=V(ae(i)),a=V(ae(o));if(s instanceof Fe){const l=s;if(Ge(l)==null)if(a instanceof Fe){const u=a;if(Ge(u)==null){const f=r.Compare(ve(l),ve(u))|0;if(f!==0)return f|0;e=r,t=Jt(Ue(l),Me(i)),n=Jt(Ue(u),Me(o));continue e}else{let f,d,p,h,m;switch($e(i)?$e(o)?f=2:ae(o)!=null?(f=1,h=Me(o),m=V(ae(o))):f=2:ae(i)!=null?(f=0,d=Me(i),p=V(ae(i))):$e(o)?f=2:ae(o)!=null?(f=1,h=Me(o),m=V(ae(o))):f=2,f){case 0:if(p instanceof Fe){const v=p;e=r,t=et([Ge(v),Gt(ve(v),void 0,Ue(v),0)],d),n=o;continue e}else{e=r,t=et([void 0,Wt(ve(p))],d),n=o;continue e}case 1:if(m instanceof Fe){const v=m;e=r,t=i,n=et([Ge(v),Gt(ve(v),void 0,Ue(v),0)],h);continue e}else{e=r,t=i,n=et([void 0,Wt(ve(m))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(ve(l),ve(a))|0;if(u!==0)return u|0;e=r,t=Jt(Ue(l),Me(i)),n=Jt(void 0,Me(o));continue e}else{let u,f,d,p,h;switch($e(i)?$e(o)?u=2:ae(o)!=null?(u=1,p=Me(o),h=V(ae(o))):u=2:ae(i)!=null?(u=0,f=Me(i),d=V(ae(i))):$e(o)?u=2:ae(o)!=null?(u=1,p=Me(o),h=V(ae(o))):u=2,u){case 0:if(d instanceof Fe){const m=d;e=r,t=et([Ge(m),Gt(ve(m),void 0,Ue(m),0)],f),n=o;continue e}else{e=r,t=et([void 0,Wt(ve(d))],f),n=o;continue e}case 1:if(h instanceof Fe){const m=h;e=r,t=i,n=et([Ge(m),Gt(ve(m),void 0,Ue(m),0)],p);continue e}else{e=r,t=i,n=et([void 0,Wt(ve(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Fe){const l=a;if(Ge(l)==null){const u=r.Compare(ve(s),ve(l))|0;if(u!==0)return u|0;e=r,t=Jt(void 0,Me(i)),n=Jt(Ue(l),Me(o));continue e}else{let u,f,d,p,h;switch($e(i)?$e(o)?u=2:ae(o)!=null?(u=1,p=Me(o),h=V(ae(o))):u=2:ae(i)!=null?(u=0,f=Me(i),d=V(ae(i))):$e(o)?u=2:ae(o)!=null?(u=1,p=Me(o),h=V(ae(o))):u=2,u){case 0:if(d instanceof Fe){const m=d;e=r,t=et([Ge(m),Gt(ve(m),void 0,Ue(m),0)],f),n=o;continue e}else{e=r,t=et([void 0,Wt(ve(d))],f),n=o;continue e}case 1:if(h instanceof Fe){const m=h;e=r,t=i,n=et([Ge(m),Gt(ve(m),void 0,Ue(m),0)],p);continue e}else{e=r,t=i,n=et([void 0,Wt(ve(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ve(s),ve(a))|0;if(l!==0)return l|0;e=r,t=Me(i),n=Me(o);continue e}}else{V(ae(o));let s,a,l,u,f;switch($e(i)?$e(o)?s=2:ae(o)!=null?(s=1,u=Me(o),f=V(ae(o))):s=2:ae(i)!=null?(s=0,a=Me(i),l=V(ae(i))):$e(o)?s=2:ae(o)!=null?(s=1,u=Me(o),f=V(ae(o))):s=2,s){case 0:if(l instanceof Fe){const d=l;e=r,t=et([Ge(d),Gt(ve(d),void 0,Ue(d),0)],a),n=o;continue e}else{e=r,t=et([void 0,Wt(ve(l))],a),n=o;continue e}case 1:if(f instanceof Fe){const d=f;e=r,t=i,n=et([Ge(d),Gt(ve(d),void 0,Ue(d),0)],u);continue e}else{e=r,t=i,n=et([void 0,Wt(ve(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(ae(i)!=null){V(ae(i));let s,a,l,u,f;switch($e(i)?$e(o)?s=2:ae(o)!=null?(s=1,u=Me(o),f=V(ae(o))):s=2:ae(i)!=null?(s=0,a=Me(i),l=V(ae(i))):$e(o)?s=2:ae(o)!=null?(s=1,u=Me(o),f=V(ae(o))):s=2,s){case 0:if(l instanceof Fe){const d=l;e=r,t=et([Ge(d),Gt(ve(d),void 0,Ue(d),0)],a),n=o;continue e}else{e=r,t=et([void 0,Wt(ve(l))],a),n=o;continue e}case 1:if(f instanceof Fe){const d=f;e=r,t=i,n=et([Ge(d),Gt(ve(d),void 0,Ue(d),0)],u);continue e}else{e=r,t=i,n=et([void 0,Wt(ve(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=Me(i),n=Me(o);continue e}}}function Nc(e,t,n){return t==null?n==null?0:-1:n==null?1:Wg(e,le(t),le(n))|0}function Gg(e,t,n){let r=n;b0(i=>{$t(t,r,i),r=r+1|0},e)}function zg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ci(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function qg(e,t){return Us((n,r)=>ci(e,r,n),void 0,t)}function Yg(e,t){return Ln((n,r)=>ci(e,r,n),void 0,t)}function x0(e,t){if(mn(t))return qg(e,t);if(t instanceof At)return Yg(e,t);{const n=Le(t);try{return zg(e,void 0,n)}finally{Ie(n)}}}class lu{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Xg(this)|0}Equals(t){let n;const r=this;return t instanceof lu&&(n=t,Nc(ei(r),sn(r),sn(n))===0)}toString(){return"set ["+Et("; ",Pe(n=>Je(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Nc(ei(n),sn(n),sn(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 v0(ei(n),t,sn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Gg(sn(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return $a(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return $a(this)|0}GetEnumerator(){return kc(sn(this))}[Symbol.iterator](){return wi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return kc(sn(this))}get size(){return $a(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 C0(this,t)}keys(){return Pe(n=>n,this)}values(){return Pe(n=>n,this)}entries(){return Pe(n=>[n,n],this)}forEach(t,n){const r=this;Vn(i=>{t(i,i,r)},r)}}function Ys(e,t){return new lu(e,t)}function ei(e){return e.comparer}function sn(e){return e.tree}function Zg(e){return Ys(e,void 0)}function Kg(e,t){return Ys(ei(e),ci(ei(e),t,sn(e)))}function $a(e){return Vg(sn(e))}function C0(e,t){return v0(ei(e),t,sn(e))}function Xg(e){let t=0;const n=Le(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+en(r)+631|0}}finally{Ie(n)}return Math.abs(t)|0}function cl(e,t){return C0(t,e)}function Jg(e,t){return Kg(t,e)}function Qg(e){return Zg(e)}function ew(e,t){return Ys(t,x0(t,e))}function tw(e,t){return Ys(t,x0(t,e))}function nw(){return ot()}function uu(e){return Et("/",e)}function rw(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+uu(t),n])}function S0(e,t,n){try{Ie(n)}catch(r){e(["Error stopping subscription: "+uu(t),r])}}function iw(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+uu(n),i]);return}}function ow(e,t){vs(n=>{S0(e,n[0],n[1])},t)}function Tc(e,t,n,r,i,o){return vs(s=>{rw(e,s)},n),vs(s=>{S0(e,s[0],s[1])},r),xo(i,cg(s=>iw(e,t,s[0],s[1]),o))}function sw(){return[ot(),Qg({Compare:St}),ot()]}function aw(e,t,n,r,i){return cl(e,r)?[Jt(e,n),r,i]:[n,Jg(e,r),Jt([e,t],i)]}function lw(e){return ng((t,n)=>aw(t[0],t[1],n[0],n[1],n[2]),e,sw())}const uw=ot();function $c(e,t){const n=ew(Qn(s=>s[0],e),{Compare:St}),r=lw(t),i=r[1],o=r[0];if(n.Equals(i))return[o,ot(),e,ot()];{const s=ug(a=>cl(a[0],i),e);return[o,s[1],s[0],Tn(a=>!cl(a[0],n),r[2])]}}function cw(e){return new E0(0,[e])}function dw(e){return new E0(1,[e])}class E0 extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function fw(e){return cw(e)}function mw(e){return dw(e)}class hw{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function pw(e,t){t.Subscribe(new hw(e))}class gw{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 yw(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 ww=class extends gw{};function yw(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 vw{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 ww}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 bw(e,t){console.error(lt(e),t)}function _w(e,t){let n,r=new vw(e);r.AutoReset=!1,n=r,pw(t,n.Elapsed()),n.Enabled=!0,n.Start()}class A0{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 Zs extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Zs.prototype)}}class cu{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>cu.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function $n(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Zs);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(ms(n))}});else try{e(t)}catch(n){t.onError(ms(n))}}}function xw(e,t){return $n(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(ms(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Cw(e){return $n(t=>t.onSuccess(e))}class Sw{Bind(t,n){return xw(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return $n(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 Cw(t)}ReturnFrom(t){return t}TryFinally(t,n){return $n(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 $n(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(ms(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 $n(t=>t.onSuccess(void 0))}}const J=new Sw;function Ma(e){}function Ew(e){return new A0(!1)}function Aw(e){e.cancel()}function kw(e){return e!=null&&e.isCancelled}const Nw=new A0;function Tw(e){return $n(t=>{e({onSuccess:n=>t.onSuccess(fw(n)),onError:n=>t.onSuccess(mw(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function $w(e){return $n(t=>e([t.onSuccess,t.onError,t.onCancel]))}function k0(e){return $n(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Zs)})})}function Mw(e,t){return Iw(e,t)}function Ks(e,t){return Mw(e,t)}function Iw(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new cu;e({onSuccess:t||Ma,onError:Ma,onCancel:Ma,cancelToken:i||Nw,trampoline:o})}function Mc(e,t,n){vs(r=>{try{r(t)}catch(i){e(i)}},n)}function X(){return ot()}function ts(e){return le(e)}function N0(e,t,n,r){return le(i=>{e(J.Delay(()=>J.Bind(Tw(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),J.Zero()})))})}function T0(e){_w(1,t=>{Ks(e)})}function Dw(e,t,n,r){const i=St(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=St(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function Ow(e,t,n,r,i){const o=Dw(t,n,r,i);return T(()=>kg(o,e))}function du(e,t,n){return Ow(e,t,n,0,(r,i)=>r+i)}class ti extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Rw{constructor(t){this.state=new ti(0,[bo(new Array(wc(t,10)),0,wc(t,10),null),0])}}function Fw(e){return new Rw(e)}function Ic(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 ti(0,[i,n]):e.state=new ti(1,[i,n,o]),lt(he(r,i))}else return}function Pw(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 ti(1,[Lw(e,i,o),o.length,0]):e.state=new ti(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 ti(1,[i,o,r])}}function Lw(e,t,n){return Array.from(T(()=>H(Og(t,n),T(()=>H(Rg(t,n),T(()=>qs(r=>A(Ae()),du(0,1,n.length))))))))}class fu extends _e{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 Pr(e,t,n){return new fu(e,t,r=>nw(),n,qe(r=>{const i=Wn(n)(r);return o=>{i(o)}}),r=>{bw(r[0],r[1])},[r=>!1,r=>{}])}function Vw(e,t){return new fu(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Hw(e){return e.init}function jw(e,t,n,r,i,o,s){const a=Wn(e)(s.init),l=Aa(t)(Wn(s.update)),u=Aa(n)(Wn(s.view)),f=Aa(r)(Wn(s.setState));return new fu(a,qe(l),Wn(i)(s.subscribe),qe(u),qe(f),s.onError,o(s.termination))}function Bw(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=Fw(10);let u=!1,f=o,d=uw,p=!1;const h=b=>{p||(Pw(l,b),u||(u=!0,v(),u=!1))},m=Wn(e)(h),v=()=>{let b,x=Ic(l);for(;!p&&x!=null;){const C=V(x);if(a[0](C))ow(n.onError,d),a[1](f),p=!0;else{const S=n.update(C,f),$=S[0],D=n.subscribe($);n.setState($,m),Mc(F=>{n.onError([Er(Rn("Error handling the message: %A"))(C),F])},m,S[1]),f=$,d=(b=$c(d,D),Tc(n.onError,m,b[0],b[1],b[2],b[3])),x=Ic(l)}}};u=!0,n.setState(o,m),Mc(b=>{n.onError([Er(Rn("Error intitializing:")),b])},m,i[1]),d=(r=$c(d,s),Tc(n.onError,m,r[0],r[1],r[2],r[3])),v(),u=!1}function Uw(e,t){Bw(qe(n=>n),e,t)}function Ww(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 Ia={exports:{}},Da={};const Gw=Ww(cs);/**
|
|
4
4
|
* @license React
|
|
5
5
|
* use-sync-external-store-shim.production.min.js
|
|
6
6
|
*
|
|
@@ -8,18 +8,18 @@ var ho,ke,Wd,mr,Du,Gd,ja,yl,Ba,Ua,zd,ro={},qd=[],sp=/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 Cc;function Vw(){if(Cc)return Ca;Cc=1;var e=Lw;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&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(d,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),v=m[0].inst,b=m[1];return o(function(){v.value=h,v.getSnapshot=p,l(v)&&b({inst:v})},[d,h,p]),i(function(){return l(v)&&b({inst:v}),d(function(){l(v)&&b({inst:v})})},[d]),s(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!n(d,h)}catch{return!0}}function u(d,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Ca.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Ca}var Sc;function Hw(){return Sc||(Sc=1,xa.exports=Vw()),xa.exports}var jw=Hw();class Bw{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=Dw(i)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const d=this.finalDispatch;d==null?o.push(f):d(f)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let d=!1;const p=qa(this.state[0]);return Fw(this.arg,Iw((h,m)=>{const v=this.state;this.finalDispatch=m,this.state=[h,v[1],!0,o],h!==v[0]&&f()},Ow((h,m)=>{const v=this.cmd;return this.cmd=X(),[this.state[0],v]},(h,m,v)=>h(m)(this.state[0]),Za(h=>h),Za(h=>h),et(h=>h),h=>[m=>h[0](m)?!0:p&&d,m=>{const v=m;qa(v)?Ie(v):h[1](m)}],i))),()=>{d=!0}}}}function Ec(e,t,n){return new Bw(e,t,n)}function Uw(e){return e.state}function Ww(e){return e.subscribe}function Gw(e,t,n){return J(e.arg,t)?!J(e.dependencies,n):!0}function Pr(e,t,n){const r=be(()=>Ec(e,t,n)),i=r[0];Gw(i,t,n)&&r[1](Ec(e,t,n));const o=jw.useSyncExternalStore(Ww(i),()=>Uw(i)),s=o[2],a=o[3],l=o[1];return Re(()=>{if(s&&a.length>0){let u=Le(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Ie(u)}Zp(a)}},[s,a]),[o[0],l]}class zw extends Se{constructor(t,n){super(),this.Name=t,this.Email=n}}function ru(){return nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],zw,()=>[["Name",In],["Email",Xr(In)]])}class qw extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function b0(){return Ff("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],qw,()=>[[],[]])}class Yw extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Zw(){return Ff("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],Yw,()=>[[],[]])}class Kw extends Se{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function Xw(){return nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],Kw,()=>[["User",ru()],["ProfileCount",It],["RequestType",Zw()],["RequestedAt",Kn("System.DateTime")]])}class Jw extends Se{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 Qw(){return nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],Jw,()=>[["Stage",b0()],["InputRowCount",It],["StartTime",Kn("System.DateTime")],["SucceededRowCount",Xr(It)],["FailedRowCount",Xr(It)],["RemainingRowCount",Xr(It)]])}class ey extends Se{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 _0(){return nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],ey,()=>[["Stage",b0()],["InputRowCount",It],["SucceededRowCount",It],["FailedRowCount",It],["StartTime",Kn("System.DateTime")],["StopTime",Kn("System.DateTime")]])}class ty extends Se{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 ny(){return nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],ty,()=>[["ImportId",It],["User",ru()],["Filename",In],["NumberOfRecords",It],["CurrentStage",Xr(Qw())],["CompletedStages",Er(_0())],["StartTime",Kn("System.DateTime")]])}class ry extends Se{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 iy(){return nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],ry,()=>[["ImportId",It],["User",ru()],["Filename",In],["NumberOfRecords",It],["CompletedStages",Er(_0())],["BenefitsRequests",Er(Xw())],["StartTime",Kn("System.DateTime")],["StopTime",Kn("System.DateTime")]])}class oy extends Se{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function sy(){return nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],oy,()=>[["ActiveImport",Xr(ny())],["ImportHistory",Er(iy())]])}function ay(e){return new $(0,[e])}function x0(e){return new $(1,[e])}class $ extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Pn(e,t){return t.tag===0?ay(e(t.fields[0])):x0(t.fields[0])}function ly(e,t){return t.tag===0?e(t.fields[0]):x0(t.fields[0])}class el extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function uy(e){return e.tag===1?new el(0,[]):new el(1,[])}function cy(e,t,n){return e.tag===1?og(t,n,{Compare:Ct}):ig(t,n,{Compare:Ct})}class qs extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Qo=class extends Se{constructor(t){super(),this.View=t}},es=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},C0=class extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function dy(){return[new Qo(new es(0,[])),ae(e=>{e(new C0(new qs(0,[void 0])))})]}function fy(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Qo(new es(2,[t.fields[0].fields[0].fields[0]])),X()]:[new Qo(new es(1,[t.fields[0].fields[0].fields[0]])),X()]:[new Qo(new es(0,[])),y0(r=>{v0(r)},e,void 0,r=>new C0(new qs(1,[r])))]}class iu extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class S0 extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Ys extends Se{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 Wr extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class E0 extends Se{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 A0{constructor(t,n){this.k=t,this.v=n}}function ci(e,t){return new A0(e,t)}function at(e){return e.k}function mt(e){return e.v}class ct extends A0{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function _r(e,t,n,r,i){return new ct(e,t,n,r,i)}function nt(e){return e.left}function rt(e){return e.right}function qn(e){return e.h}function k0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof ct){const o=i;e=k0(n+1,nt(o)),t=rt(o);continue e}else return n+1|0}else return n|0}}function N0(e){return k0(0,e)}function Bt(e,t,n,r){let i,o,s;const a=e;if(a!=null){const d=V(a);s=d instanceof ct?(i=d,qn(i)):1}else s=0;let l;const u=r;if(u!=null){const d=V(u);l=d instanceof ct?(o=d,qn(o)):1}else l=0;const f=(s<l?l:s)|0;return f===0?ci(t,n):_r(t,n,e,r,f+1)}function ws(e,t,n,r){let i,o,s,a,l,u,f,d,p;const h=e;if(h!=null){const b=V(h);p=b instanceof ct?(i=b,qn(i)):1}else p=0;let m;const v=r;if(v!=null){const b=V(v);m=b instanceof ct?(o=b,qn(o)):1}else m=0;if(m>p+2){const b=V(r);if(b instanceof ct){const x=b;if(s=nt(x),(s!=null?(a=V(s),a instanceof ct?(l=a,qn(l)):1):0)>p+1){const C=V(nt(x));if(C instanceof ct){const S=C;return Bt(Bt(e,t,n,nt(S)),at(S),mt(S),Bt(rt(S),at(x),mt(x),rt(x)))}else throw new Error("internal error: Map.rebalance")}else return Bt(Bt(e,t,n,nt(x)),at(x),mt(x),rt(x))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const b=V(e);if(b instanceof ct){const x=b;if(u=rt(x),(u!=null?(f=V(u),f instanceof ct?(d=f,qn(d)):1):0)>m+1){const C=V(rt(x));if(C instanceof ct){const S=C;return Bt(Bt(nt(x),at(x),mt(x),nt(S)),at(S),mt(S),Bt(rt(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Bt(nt(x),at(x),mt(x),Bt(rt(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Bt(e,t,n,r)}function di(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,at(i))|0;if(i instanceof ct){const s=i;return o<0?ws(di(e,t,n,nt(s)),at(s),mt(s),rt(s)):o===0?_r(t,n,nt(s),rt(s),qn(s)):ws(nt(s),at(s),mt(s),di(e,t,n,rt(s)))}else return o<0?_r(t,n,void 0,r,2):o===0?ci(t,n):_r(t,n,r,void 0,2)}else return ci(t,n)}function ou(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,at(s))|0;if(a===0)return lt(mt(s));if(s instanceof ct){const l=s;e=r,t=i,n=a<0?nt(l):rt(l);continue e}else return}else return}}function my(e,t,n){const r=ou(e,t,n);if(r==null)throw new Error;return V(r)}function T0(e){if(e!=null){const t=V(e);if(t instanceof ct){const n=t;if(nt(n)==null)return[at(n),mt(n),rt(n)];{const r=T0(nt(n));return[r[0],r[1],Bt(r[2],at(n),mt(n),rt(n))]}}else return[at(t),mt(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function tl(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof ct){const o=i,s=e.Compare(t,at(o))|0;if(s<0)return ws(tl(e,t,n,nt(o)),at(o),mt(o),rt(o));if(s===0){const a=n(lt(mt(o)));if(a!=null)return _r(t,V(a),nt(o),rt(o),qn(o));if(nt(o)==null)return rt(o);if(rt(o)==null)return nt(o);{const l=T0(rt(o));return Bt(nt(o),l[0],l[1],l[2])}}else return ws(nt(o),at(o),mt(o),tl(e,t,n,rt(o)))}else{const o=e.Compare(t,at(i))|0;if(o<0){const s=n(void 0);return s!=null?_r(t,V(s),void 0,r,2):r}else if(o===0){const s=n(lt(mt(i)));return s!=null?ci(t,V(s)):void 0}else{const s=n(void 0);return s!=null?_r(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?ci(t,V(i)):r}}function hy(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,at(s))|0;if(s instanceof ct){const l=s;if(a<0){e=r,t=i,n=nt(l);continue e}else{if(a===0)return!0;e=r,t=i,n=rt(l);continue e}}else return a===0}else return!1}}function $0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof ct){const o=i;$0(n,nt(o)),n(at(o),mt(o)),e=n,t=rt(o);continue e}else n(at(i),mt(i))}break}}function py(e,t){$0(e,t)}function M0(e,t,n){let r=n;py((i,o)=>{Tt(t,r,[i,o]),r=r+1|0},e)}function gy(e){const t=N0(e)|0,n=yo(new Array(t),0,t,[null,null]);return M0(e,n,0),n}function wy(e,t){return Ln((n,r)=>di(e,r[0],r[1],n),void 0,t)}function yy(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=di(r,s[0],s[1],i),n=o;continue e}else return i}}function vy(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=he(r,t);n=di(e,i[0],i[1],n)}return n}function I0(e,t){if(mn(t))return vy(e,t);if(t instanceof Et)return wy(e,t);{const n=Le(t);try{return yy(e,void 0,n)}finally{Ie(n)}}}class by extends Se{constructor(t,n){super(),this.stack=t,this.started=n}}function D0(e){e:for(;;){const t=e;if($e(t))return ot();{const n=Me(t),r=se(t);if(r!=null){const i=V(r);if(i instanceof ct){const o=i;e=Qe([nt(o),ci(at(o),mt(o)),rt(o)],n);continue e}else return t}else{e=n;continue e}}}}function Ac(e){return new by(D0(ae(e)),!1)}function _y(){throw new Error("enumeration not started")}function xy(){throw new Error("enumeration already finished")}function kc(e){if(e.started){const t=e.stack;if($e(t))return xy();if(se(t)!=null){const n=V(se(t));if(n instanceof ct)throw new Error("Please report error: Map iterator, unexpected stack for current");return[at(n),mt(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return _y()}function Cy(e){if(e.started){const t=e.stack;if($e(t))return!1;if(se(t)!=null){if(V(se(t))instanceof ct)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=D0(Me(t)),!$e(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!$e(e.stack)}function Nc(e){let t=Ac(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return kc(t)},"System.Collections.IEnumerator.get_Current"(){return kc(t)},"System.Collections.IEnumerator.MoveNext"(){return Cy(t)},"System.Collections.IEnumerator.Reset"(){t=Ac(e)},Dispose(){}}}class ys{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ny(this)|0}Equals(t){const n=this;if(t instanceof ys){const r=t,i=Le(n);try{const o=Le(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 J(l[0],u[0])&&J(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{Ie(o)}}finally{Ie(i)}}else return!1}toString(){return"map ["+St("; ",Pe(n=>Vl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Nc(this.tree)}[Symbol.iterator](){return gi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Nc(this.tree)}CompareTo(t){const n=this;if(t instanceof ys)return xg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:Ct(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 Tc(n,t[0])&&J(kr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){M0(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Sa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Sa(this)|0}get size(){return Sa(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Pe(n=>[n[0],n[1]],this)}get(t){return kr(this,t)}has(t){return Tc(this,t)}keys(){return Pe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Pe(n=>n[1],this)}forEach(t,n){const r=this;Vn(i=>{t(i[1],i[0],r)},r)}}function xo(e,t){return new ys(e,t)}function Sy(e){return xo(e,void 0)}function Ey(e,t,n){return xo(e.comparer,di(e.comparer,t,n,e.tree))}function Ay(e,t,n){return xo(e.comparer,tl(e.comparer,t,n,e.tree))}function kr(e,t){return my(e.comparer,t,e.tree)}function Sa(e){return N0(e.tree)}function Tc(e,t){return hy(e.comparer,t,e.tree)}function ky(e,t,n){const r=ou(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function $c(e){return Ye(t=>t[1],gy(e.tree))}function yr(e,t){return ou(e.comparer,t,e.tree)}function Ny(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=Le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Qt(i[0]))|0,n=t(n,Qt(i[1]))|0}}finally{Ie(r)}return n|0}function O0(e,t,n){return Ey(n,e,t)}function Vo(e,t,n){return Ay(n,e,t)}function R0(e,t){return yr(t,e)}function Ty(e){return Pe(t=>[t[0],t[1]],e)}function ti(e,t){return xo(t,I0(t,e))}function $y(e,t){return xo(t,I0(t,e))}function su(e){return Sy(e)}const ur=new Ys("",new iu(0,[]),ot(),!1,void 0,void 0,void 0,new S0(0,[]));new E0(0,"","","",su({Compare:Rr}),new Wr(0,[""]));function Mc(e,t){return Hl(t)?new Array(0):Df(t,[e],void 0,0)}function My(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 F0(e){return new Ys(e,ur.method,ur.headers,ur.withCredentials,ur.overridenMimeType,ur.overridenResponseType,ur.timeout,ur.content)}function P0(e,t){return new Ys(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Iy(e,t){return new Ys(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Ic(e){return Cw(t=>{const n=new XMLHttpRequest;n.open(My(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,d,p,h,m;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,d=n.responseType,p=(h=n.responseType,h===""?new Wr(0,[n.responseText]):h==="text"?new Wr(0,[n.responseText]):h==="arraybuffer"?new Wr(2,[n.response]):h==="blob"?new Wr(1,[n.response]):new Wr(3,[n.response])),m=$y(zt(v=>{const b=g(Mc(":",v));if(!$e(b))return[se(b).toLocaleLowerCase(),St(":",Me(b)).trim()]},Mc(`\r
|
|
12
|
-
`,n.getAllResponseHeaders())),{Compare:
|
|
11
|
+
*/var Dc;function zw(){if(Dc)return Da;Dc=1;var e=Gw;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&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(d,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),v=m[0].inst,b=m[1];return o(function(){v.value=h,v.getSnapshot=p,l(v)&&b({inst:v})},[d,h,p]),i(function(){return l(v)&&b({inst:v}),d(function(){l(v)&&b({inst:v})})},[d]),s(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!n(d,h)}catch{return!0}}function u(d,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Da.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Da}var Oc;function qw(){return Oc||(Oc=1,Ia.exports=zw()),Ia.exports}var Yw=qw();class Zw{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=Hw(i)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const d=this.finalDispatch;d==null?o.push(f):d(f)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let d=!1;const p=rl(this.state[0]);return Uw(this.arg,Vw((h,m)=>{const v=this.state;this.finalDispatch=m,this.state=[h,v[1],!0,o],h!==v[0]&&f()},jw((h,m)=>{const v=this.cmd;return this.cmd=X(),[this.state[0],v]},(h,m,v)=>h(m)(this.state[0]),ol(h=>h),ol(h=>h),qe(h=>h),h=>[m=>h[0](m)?!0:p&&d,m=>{const v=m;rl(v)?Ie(v):h[1](m)}],i))),()=>{d=!0}}}}function Rc(e,t,n){return new Zw(e,t,n)}function Kw(e){return e.state}function Xw(e){return e.subscribe}function Jw(e,t,n){return Q(e.arg,t)?!Q(e.dependencies,n):!0}function Lr(e,t,n){const r=be(()=>Rc(e,t,n)),i=r[0];Jw(i,t,n)&&r[1](Rc(e,t,n));const o=Yw.useSyncExternalStore(Xw(i),()=>Kw(i)),s=o[2],a=o[3],l=o[1];return Re(()=>{if(s&&a.length>0){let u=Le(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Ie(u)}r1(a)}},[s,a]),[o[0],l]}class Qw extends _e{constructor(t,n){super(),this.Name=t,this.Email=n}}function mu(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],Qw,()=>[["Name",In],["Email",Jr(In)]])}class ey extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function $0(){return js("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],ey,()=>[[],[]])}class ty extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function ny(){return js("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],ty,()=>[[],[]])}class ry extends _e{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function iy(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],ry,()=>[["User",mu()],["ProfileCount",ht],["RequestType",ny()],["RequestedAt",Kn("System.DateTime")]])}class oy extends _e{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 sy(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],oy,()=>[["Stage",$0()],["InputRowCount",ht],["StartTime",Kn("System.DateTime")],["SucceededRowCount",Jr(ht)],["FailedRowCount",Jr(ht)],["RemainingRowCount",Jr(ht)]])}class ay extends _e{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 M0(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],ay,()=>[["Stage",$0()],["InputRowCount",ht],["SucceededRowCount",ht],["FailedRowCount",ht],["StartTime",Kn("System.DateTime")],["StopTime",Kn("System.DateTime")]])}class ly extends _e{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 uy(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],ly,()=>[["ImportId",ht],["User",mu()],["Filename",In],["NumberOfRecords",ht],["CurrentStage",Jr(sy())],["CompletedStages",Xn(M0())],["StartTime",Kn("System.DateTime")]])}class cy extends _e{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 dy(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],cy,()=>[["ImportId",ht],["User",mu()],["Filename",In],["NumberOfRecords",ht],["CompletedStages",Xn(M0())],["BenefitsRequests",Xn(iy())],["StartTime",Kn("System.DateTime")],["StopTime",Kn("System.DateTime")]])}class fy extends _e{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function my(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],fy,()=>[["ActiveImport",Jr(uy())],["ImportHistory",Xn(dy())]])}function hy(e){return new M(0,[e])}function I0(e){return new M(1,[e])}class M extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Pn(e,t){return t.tag===0?hy(e(t.fields[0])):I0(t.fields[0])}function py(e,t){return t.tag===0?e(t.fields[0]):I0(t.fields[0])}class dl extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function gy(e){return e.tag===1?new dl(0,[]):new dl(1,[])}function wy(e,t,n){return e.tag===1?fg(t,n,{Compare:St}):dg(t,n,{Compare:St})}class Xs extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let ns=class extends _e{constructor(t){super(),this.View=t}},rs=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},D0=class extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function yy(){return[new ns(new rs(0,[])),le(e=>{e(new D0(new Xs(0,[void 0])))})]}function vy(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ns(new rs(2,[t.fields[0].fields[0].fields[0]])),X()]:[new ns(new rs(1,[t.fields[0].fields[0].fields[0]])),X()]:[new ns(new rs(0,[])),N0(r=>{T0(r)},e,void 0,r=>new D0(new Xs(1,[r])))]}class So extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class hu extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Js extends _e{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 Gr extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class O0 extends _e{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 R0{constructor(t,n){this.k=t,this.v=n}}function di(e,t){return new R0(e,t)}function at(e){return e.k}function mt(e){return e.v}class ct extends R0{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function Cr(e,t,n,r,i){return new ct(e,t,n,r,i)}function nt(e){return e.left}function rt(e){return e.right}function qn(e){return e.h}function F0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof ct){const o=i;e=F0(n+1,nt(o)),t=rt(o);continue e}else return n+1|0}else return n|0}}function P0(e){return F0(0,e)}function Ut(e,t,n,r){let i,o,s;const a=e;if(a!=null){const d=V(a);s=d instanceof ct?(i=d,qn(i)):1}else s=0;let l;const u=r;if(u!=null){const d=V(u);l=d instanceof ct?(o=d,qn(o)):1}else l=0;const f=(s<l?l:s)|0;return f===0?di(t,n):Cr(t,n,e,r,f+1)}function bs(e,t,n,r){let i,o,s,a,l,u,f,d,p;const h=e;if(h!=null){const b=V(h);p=b instanceof ct?(i=b,qn(i)):1}else p=0;let m;const v=r;if(v!=null){const b=V(v);m=b instanceof ct?(o=b,qn(o)):1}else m=0;if(m>p+2){const b=V(r);if(b instanceof ct){const x=b;if(s=nt(x),(s!=null?(a=V(s),a instanceof ct?(l=a,qn(l)):1):0)>p+1){const C=V(nt(x));if(C instanceof ct){const S=C;return Ut(Ut(e,t,n,nt(S)),at(S),mt(S),Ut(rt(S),at(x),mt(x),rt(x)))}else throw new Error("internal error: Map.rebalance")}else return Ut(Ut(e,t,n,nt(x)),at(x),mt(x),rt(x))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const b=V(e);if(b instanceof ct){const x=b;if(u=rt(x),(u!=null?(f=V(u),f instanceof ct?(d=f,qn(d)):1):0)>m+1){const C=V(rt(x));if(C instanceof ct){const S=C;return Ut(Ut(nt(x),at(x),mt(x),nt(S)),at(S),mt(S),Ut(rt(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ut(nt(x),at(x),mt(x),Ut(rt(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ut(e,t,n,r)}function fi(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,at(i))|0;if(i instanceof ct){const s=i;return o<0?bs(fi(e,t,n,nt(s)),at(s),mt(s),rt(s)):o===0?Cr(t,n,nt(s),rt(s),qn(s)):bs(nt(s),at(s),mt(s),fi(e,t,n,rt(s)))}else return o<0?Cr(t,n,void 0,r,2):o===0?di(t,n):Cr(t,n,r,void 0,2)}else return di(t,n)}function pu(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,at(s))|0;if(a===0)return lt(mt(s));if(s instanceof ct){const l=s;e=r,t=i,n=a<0?nt(l):rt(l);continue e}else return}else return}}function by(e,t,n){const r=pu(e,t,n);if(r==null)throw new Error;return V(r)}function L0(e){if(e!=null){const t=V(e);if(t instanceof ct){const n=t;if(nt(n)==null)return[at(n),mt(n),rt(n)];{const r=L0(nt(n));return[r[0],r[1],Ut(r[2],at(n),mt(n),rt(n))]}}else return[at(t),mt(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function fl(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof ct){const o=i,s=e.Compare(t,at(o))|0;if(s<0)return bs(fl(e,t,n,nt(o)),at(o),mt(o),rt(o));if(s===0){const a=n(lt(mt(o)));if(a!=null)return Cr(t,V(a),nt(o),rt(o),qn(o));if(nt(o)==null)return rt(o);if(rt(o)==null)return nt(o);{const l=L0(rt(o));return Ut(nt(o),l[0],l[1],l[2])}}else return bs(nt(o),at(o),mt(o),fl(e,t,n,rt(o)))}else{const o=e.Compare(t,at(i))|0;if(o<0){const s=n(void 0);return s!=null?Cr(t,V(s),void 0,r,2):r}else if(o===0){const s=n(lt(mt(i)));return s!=null?di(t,V(s)):void 0}else{const s=n(void 0);return s!=null?Cr(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?di(t,V(i)):r}}function _y(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,at(s))|0;if(s instanceof ct){const l=s;if(a<0){e=r,t=i,n=nt(l);continue e}else{if(a===0)return!0;e=r,t=i,n=rt(l);continue e}}else return a===0}else return!1}}function V0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof ct){const o=i;V0(n,nt(o)),n(at(o),mt(o)),e=n,t=rt(o);continue e}else n(at(i),mt(i))}break}}function xy(e,t){V0(e,t)}function H0(e,t,n){let r=n;xy((i,o)=>{$t(t,r,[i,o]),r=r+1|0},e)}function Cy(e){const t=P0(e)|0,n=bo(new Array(t),0,t,[null,null]);return H0(e,n,0),n}function Sy(e,t){return Ln((n,r)=>fi(e,r[0],r[1],n),void 0,t)}function Ey(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=fi(r,s[0],s[1],i),n=o;continue e}else return i}}function Ay(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=he(r,t);n=fi(e,i[0],i[1],n)}return n}function j0(e,t){if(mn(t))return Ay(e,t);if(t instanceof At)return Sy(e,t);{const n=Le(t);try{return Ey(e,void 0,n)}finally{Ie(n)}}}class ky extends _e{constructor(t,n){super(),this.stack=t,this.started=n}}function B0(e){e:for(;;){const t=e;if($e(t))return ot();{const n=Me(t),r=ae(t);if(r!=null){const i=V(r);if(i instanceof ct){const o=i;e=et([nt(o),di(at(o),mt(o)),rt(o)],n);continue e}else return t}else{e=n;continue e}}}}function Fc(e){return new ky(B0(le(e)),!1)}function Ny(){throw new Error("enumeration not started")}function Ty(){throw new Error("enumeration already finished")}function Pc(e){if(e.started){const t=e.stack;if($e(t))return Ty();if(ae(t)!=null){const n=V(ae(t));if(n instanceof ct)throw new Error("Please report error: Map iterator, unexpected stack for current");return[at(n),mt(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Ny()}function $y(e){if(e.started){const t=e.stack;if($e(t))return!1;if(ae(t)!=null){if(V(ae(t))instanceof ct)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=B0(Me(t)),!$e(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!$e(e.stack)}function Lc(e){let t=Fc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Pc(t)},"System.Collections.IEnumerator.get_Current"(){return Pc(t)},"System.Collections.IEnumerator.MoveNext"(){return $y(t)},"System.Collections.IEnumerator.Reset"(){t=Fc(e)},Dispose(){}}}class _s{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ry(this)|0}Equals(t){const n=this;if(t instanceof _s){const r=t,i=Le(n);try{const o=Le(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 Q(l[0],u[0])&&Q(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{Ie(o)}}finally{Ie(i)}}else return!1}toString(){return"map ["+Et("; ",Pe(n=>Kl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Lc(this.tree)}[Symbol.iterator](){return wi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Lc(this.tree)}CompareTo(t){const n=this;if(t instanceof _s)return Tg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:St(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 Vc(n,t[0])&&Q(Nr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){H0(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Oa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Oa(this)|0}get size(){return Oa(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Pe(n=>[n[0],n[1]],this)}get(t){return Nr(this,t)}has(t){return Vc(this,t)}keys(){return Pe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Pe(n=>n[1],this)}forEach(t,n){const r=this;Vn(i=>{t(i[1],i[0],r)},r)}}function Eo(e,t){return new _s(e,t)}function My(e){return Eo(e,void 0)}function Iy(e,t,n){return Eo(e.comparer,fi(e.comparer,t,n,e.tree))}function Dy(e,t,n){return Eo(e.comparer,fl(e.comparer,t,n,e.tree))}function Nr(e,t){return by(e.comparer,t,e.tree)}function Oa(e){return P0(e.tree)}function Vc(e,t){return _y(e.comparer,t,e.tree)}function Oy(e,t,n){const r=pu(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function Hc(e){return Ze(t=>t[1],Cy(e.tree))}function br(e,t){return pu(e.comparer,t,e.tree)}function Ry(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=Le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,en(i[0]))|0,n=t(n,en(i[1]))|0}}finally{Ie(r)}return n|0}function U0(e,t,n){return Iy(n,e,t)}function Bo(e,t,n){return Dy(n,e,t)}function W0(e,t){return br(t,e)}function Fy(e){return Pe(t=>[t[0],t[1]],e)}function ni(e,t){return Eo(t,j0(t,e))}function Py(e,t){return Eo(t,j0(t,e))}function gu(e){return My(e)}const dr=new Js("",new So(0,[]),ot(),!1,void 0,void 0,void 0,new hu(0,[]));new O0(0,"","","",gu({Compare:Fr}),new Gr(0,[""]));function jc(e,t){return Xl(t)?new Array(0):Uf(t,[e],void 0,0)}function Ly(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 Qs(e){return new Js(e,dr.method,dr.headers,dr.withCredentials,dr.overridenMimeType,dr.overridenResponseType,dr.timeout,dr.content)}function ea(e,t){return new Js(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function G0(e,t){return new Js(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Bc(e){return $w(t=>{const n=new XMLHttpRequest;n.open(Ly(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,d,p,h,m;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,d=n.responseType,p=(h=n.responseType,h===""?new Gr(0,[n.responseText]):h==="text"?new Gr(0,[n.responseText]):h==="arraybuffer"?new Gr(2,[n.response]):h==="blob"?new Gr(1,[n.response]):new Gr(3,[n.response])),m=Py(qt(v=>{const b=g(jc(":",v));if(!$e(b))return[ae(b).toLocaleLowerCase(),Et(":",Me(b)).trim()]},jc(`\r
|
|
12
|
+
`,n.getAllResponseHeaders())),{Compare:Fr}),new O0(f,l,d,n.responseURL,m,p)))};const r=Le(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{Ie(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(lt(a.fields[0]));break}case 3:{n.send(lt(a.fields[0]));break}case 2:{n.send(lt(a.fields[0]));break}default:n.send()}})}class re extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class tr extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Uc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function z0(e,t){switch(e.tag){case 2:return Zl(Uc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Uc(t)}}const Vy=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Wc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Hy=/^\{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(Wc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Vy.test(n))return O1(n,"{","}","(",")");if(Wc.test(n))return t(n);if(Hy.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 By(e,t){try{return t.contents=jy(e),!0}catch{return!1}}var ml;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(ml||(ml={}));function Uy(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function Gc(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 Wy(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 Gy(e,t){if(t&ml.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 zy(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||Gy(o,t),!Wy(n).test(s))return Uy(i,n)}return null}function qy(e,t,n,r,i){const o=zy(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=Gc(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=Gc(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Ci(e,t,n,r,i){try{return i.contents=qy(e,t,n,r),!0}catch{return!1}}function q0(e,t){Yy(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Yy(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 Zy(){return q0(-621355968e5,0)}function Ky(e){const[t,n]=Pf(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return q0(t.getTime(),r)}function Xy(e,t){try{return t.contents=Ky(e),!0}catch{return!1}}function Ao(e){return e<0?Math.ceil(e):Math.floor(e)}function zc(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return Jy(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 Jy(e){return Number(BigInt(e)/10000n)}function Qy(e){return Ao(e/864e5)}function e2(e){return Ao(e%864e5/36e5)}function t2(e){return Ao(e%36e5/6e4)}function n2(e){return Ao(e%6e4/1e3)}function r2(e){return Ao(e%1e3)}function i2(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Qy(e)),i=Math.abs(e2(e)),o=Math.abs(t2(e)),s=Math.abs(n2(e)),a=Math.abs(r2(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:je(i,2)}:${je(o,2)}:${je(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+je(a,3):"."+Yp(a,3,7)}`}function o2(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 zc(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*zc(i,l,u,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function s2(e,t){try{return t.contents=o2(e),!0}catch{return!1}}function Hi(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
|
|
15
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
14
|
+
`:" ")}}function a2(e,t){const n=t.tag===2?Hi(t.fields[0],t.fields[1],!0):t.tag===1?Hi(t.fields[0],t.fields[1],!1)+`
|
|
15
|
+
Reason: `+t.fields[2]:t.tag===3?Hi(t.fields[0],t.fields[1],!0):t.tag===4?Hi(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
|
+
`+Et(`
|
|
19
19
|
|
|
20
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:
|
|
20
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Hi(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Y0(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new M(1,[a2(i[0],i[1])])}else return new M(0,[r.fields[0]])}function ta(e,t){try{return Y0("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new M(1,["Given an invalid JSON: "+n.message]);throw n}}function Z0(e,t){return typeof t=="string"?new M(0,[t]):new M(1,[[e,new re(0,["a string",t])]])}function l2(e,t){if(typeof t=="string"){const n=t;return n.length===1?new M(0,[n[0]]):new M(1,[[e,new re(0,["a single character string",t])]])}else return new M(1,[[e,new re(0,["a char",t])]])}function u2(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[By(t,new _t(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new re(0,["a guid",t])]])}else return new M(1,[[e,new re(0,["a guid",t])]])}function c2(e,t){return t==null?new M(0,[void 0]):new M(1,[[e,new re(0,["null",t])]])}const qc=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 re(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new M(1,[[n,new re(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ci(r,511,!1,8,new _t(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["a sbyte",r])]])}else return new M(1,[[n,new re(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 M(0,[i&255]):new M(1,[[n,new re(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new M(1,[[n,new re(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ci(r,511,!0,8,new _t(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["a byte",r])]])}else return new M(1,[[n,new re(0,["a byte",r])]])},Zc=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 re(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new M(1,[[n,new re(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ci(r,511,!1,16,new _t(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an int16",r])]])}else return new M(1,[[n,new re(0,["an int16",r])]])},Kc=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 re(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new M(1,[[n,new re(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ci(r,511,!0,16,new _t(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an uint16",r])]])}else return new M(1,[[n,new re(0,["an uint16",r])]])},Xc=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 re(1,["an int",i,"Value was either too large or too small for an int"])]]):new M(1,[[n,new re(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ci(r,511,!1,32,new _t(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an int",r])]])}else return new M(1,[[n,new re(0,["an int",r])]])},Jc=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 re(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new M(1,[[n,new re(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ci(r,511,!0,32,new _t(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an uint32",r])]])}else return new M(1,[[n,new re(0,["an uint32",r])]])};function d2(e,t){return typeof t=="boolean"?new M(0,[t]):new M(1,[[e,new re(0,["a boolean",t])]])}function f2(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new re(0,["a float",t])]])}function m2(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new re(0,["a float32",t])]])}function h2(e,t){if(typeof t=="string"){let n,r=S1();return n=[A1(t,new _t(()=>r,i=>{r=i})),r],n[0]?new M(0,[k1(n[1])]):new M(1,[[e,new re(0,["a datetime",t])]])}else return new M(1,[[e,new re(0,["a datetime",t])]])}function p2(e,t){if(typeof t=="string"){let n,r=Zy();return n=[Xy(t,new _t(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new re(0,["a datetimeoffset",t])]])}else return new M(1,[[e,new re(0,["a datetime",t])]])}function g2(e,t){if(typeof t=="string"){let n,r=0;return n=[s2(t,new _t(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new re(0,["a timespan",t])]])}else return new M(1,[[e,new re(0,["a timespan",t])]])}function Qc(e,t,n,r){let i;const o=n+".["+fn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,he(e,s)):new M(1,[[o,new re(5,["a longer array. Need index `"+fn(e)+"` but there are only `"+(i=s.length,fn(i))+"` entries",r])]])}else return new M(1,[[o,new re(0,["an array",r])]])}function w2(e,t,n){return n==null?new M(0,[void 0]):Pn(lt,e(t,n))}function ed(e,t,n){if(Array.isArray(n)){let r=-1;return Pn(tu,Us((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+fn(r)+"]",o);return s.tag===0?new M(0,[Jt(s.fields[0],i.fields[0])]):new M(1,[s.fields[0]])}else return i},new M(0,[ot()]),n))}else return new M(1,[[t,new re(0,["a list",n])]])}function y2(e,t,n){if(Array.isArray(n)){let r=-1;return Pn(Dg,Us((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+fn(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 re(0,["a seq",n])]])}function td(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return Us((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+fn(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,[bo(new Array(i.length),0,i.length,null)]),i)}else return new M(1,[[t,new re(0,["an array",n])]])}function v2(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if($e(s))return new M(1,[[t,new re(7,[a])]]);{const l=Y0(t,qe(ae(s)),n);if(l.tag===1){i=Me(s),o=xo(a,le(l.fields[0]));continue e}else return new M(0,[l.fields[0]])}}})(e,ot())}function b2(e,t,n){return new M(0,[e])}function nd(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 _2(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 x2(e,t){let n;const r=e;return n=i=>o=>Qc(0,r,i,o),i=>o=>nd(ol(s=>{let a;const l=t;return a=u=>f=>Qc(1,l,u,f),u=>f=>nd((d,p,h)=>b2([s,d]),qe(a),u,f)}),qe(n),i,o)}function C2(e){return ni(e,{Compare:St})}function S2(e){return tw(e,{Compare:St})}function E2(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?s0((r,i)=>{const o=r[0];return i.tag===0?Pn(s=>Jt(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new M(0,[ot()])):new M(1,[[t,new re(0,["an object",n])]])}function A2(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,[Jt([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,[ot()]),Object.keys(r)):new M(1,[[n,new re(0,["an object",r])]])}function K0(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new M(1,[[n,new re(6,[(i=r.length|0,Er(Rn("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new M(0,[ot()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=Er(Rn("%s[%i]"))(n)(a),f=he(a-e,t),d=he(a,r);s=Pn(p=>Jt(p,l),f(u)(d))}return Pn(tu,s)}}function rd(e,t,n,r,i,o){const s=Bs(a=>Qr(a)===r,Kf(n));if(s!=null){const a=s,l=Ze(u=>an(e,t,!1,u[1]),e0(a));return Pn(u=>U1(a,ar(u)),l.length===0&&o.length<=1?new M(0,[ot()]):K0(1,l,i,o))}else return new M(1,[[i,new re(6,["Cannot find case "+r+" in "+Ye(n)])]])}function id(e,t,n,r){let i;const o=new _t(Ae());let s;const a=Ye(r);s=a===""?e:U0(a,o,e);let l;if(Qf(r)){const u=Ze(f=>[z0(t,Qr(f)),an(s,t,!1,f[1])],lo(r));l=f=>d=>Pn(p=>W1(r,ar(p)),E2(u,f,d))}else if(Jf(r))l=u=>f=>{if(typeof f=="string")return rd(s,t,r,f,u,[]);if(Array.isArray(f)){const d=f;return py(p=>rd(s,t,r,p,u,d),Z0(u+"[0]",he(0,d)))}else return new M(1,[[u,new re(0,["a string or array",f])]])};else if(n)l=u=>f=>new M(1,[[u,new re(2,["an extra coder for "+Ye(r),f])]]);else throw new Error((i=Ye(r),Er(Rn(`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 an(e,t,n,r){let i,o,s,a;const l=
|
|
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 an(e,t,n,r){let i,o,s,a;const l=Ye(r),u=W0(l,e);if(u==null)if(zf(r)){const f=an(e,t,!1,vo(r));return d=>p=>td(qe(f),d,p)}else if(Ql(r))switch(Ye(Zf(r))){case"System.SByte":return d=>p=>{const h=r,m=d,v=p,b=qc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return jr(x,Vr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Hr(h,x.toString())]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.Byte":return d=>p=>{const h=r,m=d,v=p,b=Yc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return jr(x,Vr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Hr(h,x.toString())]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.Int16":return d=>p=>{const h=r,m=d,v=p,b=Zc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return jr(x,Vr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Hr(h,Zp(x))]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.UInt16":return d=>p=>{const h=r,m=d,v=p,b=Kc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return jr(x,Vr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Hr(h,x.toString())]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.Int32":return d=>p=>{const h=r,m=d,v=p,b=Xc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return jr(x,Vr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Hr(h,fn(x))]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.UInt32":return d=>p=>{const h=r,m=d,v=p,b=Jc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return jr(x,Vr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Hr(h,x.toString())]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};default:{const d=Ye(r),p=Hf(Rn(`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
|
-
`))(d);return h=>p(h)}}else if(
|
|
31
|
+
`))(d);return h=>p(h)}}else if(qf(r))if(eu(r)){const f=Ze(d=>an(e,t,!1,d),Xf(r));return d=>p=>Array.isArray(p)?Pn(h=>G1(ar(h)),K0(0,f,d,p)):new M(1,[[d,new re(0,["an array",p])]])}else switch(Ye(Yf(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=an(e,t,!0,he(0,zt(r))),d=>p=>w2(qe(i),d,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=an(e,t,!1,he(0,zt(r))),d=>p=>ed(qe(o),d,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=an(e,t,!1,he(0,zt(r))),d=>p=>y2(qe(s),d,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const d=an(e,t,!1,he(0,zt(r))),p=an(e,t,!1,he(1,zt(r)));let h;const m=g([v=>b=>A2(qe(d),qe(p),v,b),(a=x2(qe(d),qe(p)),v=>b=>ed(qe(a),v,b))]);return h=v=>b=>v2(m,v,b),v=>b=>_2(C2,qe(h),v,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const d=an(e,t,!1,he(0,zt(r)));return p=>h=>{const m=td(qe(d),p,h);return m.tag===0?new M(0,[S2(m.fields[0])]):new M(1,[m.fields[0]])}}default:return id(e,t,n,r)}else switch(l){case"System.Boolean":return f=>d=>d2(f,d);case"Microsoft.FSharp.Core.Unit":return f=>d=>c2(f,d);case"System.String":return f=>d=>Z0(f,d);case"System.Char":return f=>d=>l2(f,d);case"System.SByte":return qc;case"System.Byte":return Yc;case"System.Int16":return Zc;case"System.UInt16":return Kc;case"System.Int32":return Xc;case"System.UInt32":return Jc;case"System.Double":return f=>d=>f2(f,d);case"System.Single":return f=>d=>m2(f,d);case"System.DateTime":return f=>d=>h2(f,d);case"System.DateTimeOffset":return f=>d=>p2(f,d);case"System.TimeSpan":return f=>d=>g2(f,d);case"System.Guid":return f=>d=>u2(f,d);case"System.Object":return f=>d=>new M(0,[d]);default:return id(e,t,n,r)}else{const f=u;return d=>p=>f.contents(d)(p)}}function k2(e){return gu({Compare:Fr})}function na(e,t,n){const r=Qe(t,new tr(0,[]));return an(k2(),r,!1,e)}function N2(e){return e}const X0=Ae();function Uo(e){return Array.from(e)}function T2(e){return Vs(e,"O")}function $2(e){return i2(e)}function M2(){return Ae()}function I2(e){return Vs(e,"O")}function J0(e,t){return JSON.stringify(t,void 0,lt(e))}function D2(e){return t=>F1(Ct(e,t),()=>X0)}function od(e,t,n,r){let i;const o=new _t(Ae());let s;const a=Ye(r);s=a===""?e:U0(a,o,e);let l;if(Qf(r)){const u=Ze(f=>{const d=z0(t,Qr(f)),p=En(s,t,n,f[1]);return h=>m=>{const v=B1(h,f);return(!n||n&&v!=null)&&(m[d]=p(v)),m}},lo(r));l=f=>Co((d,p)=>p(f)(d),{},u)}else if(Jf(r))l=u=>{const f=j1(u,r),d=f[0],p=f[1],h=p.length|0;if(h===0)return Qr(d);{const m=h|0,v=e0(d),b=bo(new Array(m+1),0,m+1,null);$t(b,0,Qr(d));for(let x=1;x<=m;x++){const C=En(s,t,n,he(x-1,v)[1]);$t(b,x,C(he(x-1,p)))}return b}};else throw new Error((i=Ye(r),Er(Rn(`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 En(e,t,n,r){const i=
|
|
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 En(e,t,n,r){const i=Ye(r),o=W0(i,e);if(o==null)if(zf(r)){const s=En(e,t,n,vo(r));return a=>Uo(Pe(s,a))}else if(Ql(r))switch(Ye(Zf(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=Ye(r);return Hf(Rn(`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(Lf(r))if(Ul(r)){const s=Ye(a=>En(e,t,n,a),Bf(r));return a=>Ho(Sg((l,u)=>he(l,s)(u),a))}else{const s=qe(Vf(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Vp(()=>N2(En(e,t,n,he(0,Gt(r)))));return l=>l==null?G0: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=En(e,t,n,he(0,Gt(r)));return l=>Ho(Pe(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=he(0,Gt(r)),l=En(e,t,n,he(1,Gt(r)));if(qe(a)==="System.String"||qe(a)==="System.Guid")return u=>_o((f,d)=>{const p=d;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=En(e,t,n,a),d=>Ho(Pe(p=>{const h=p;return[u(h[0]),l(h[1])]},d))}}else return Zc(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return E2;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 A2;case"System.DateTimeOffset":return C2;case"System.TimeSpan":return S2;case"System.Guid":return x2;case"System.Object":return s=>s;default:return Zc(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function T2(e){return su({Compare:Rr})}function $2(e,t,n,r){const i=Je(t,new so(0,[])),o=Je(r,!0);return En(T2(),i,o,e)}class au extends Se{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function M2(){return nn("Import.Dto.Shared.WorkspaceApi.ImportRowDataDto",[],au,()=>[["RowId",It],["Data",Kn("Microsoft.FSharp.Collections.FSharpMap`2",[In,In])]])}let z0=class extends Se{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}};function I2(){return nn("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],z0,()=>[["IncludesEmploymentInfo",I1],["Data",Er(M2())]])}class D2 extends Se{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function O2(){return nn("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],D2,()=>[["Column",In],["PropName",In],["Message",In]])}class R2 extends Se{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function F2(){return nn("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],R2,()=>[["RowId",It],["FieldErrors",Er(O2())]])}class P2 extends Se{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function L2(){return nn("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],P2,()=>[["Errors",Er(F2())],["DuplicateEmailCount",It]])}class V2 extends Se{constructor(t){super(),this.ImportId=t|0}}function q0(e){return`${e}/import/workspace/v1.0/accounts/current`}function Y0(e){return ue.Delay(()=>{let t;const n=Ic(e);return t=ue.Bind(n,r=>ue.Return(new $(0,[r]))),ue.Bind(t,r=>{const i=r;if(i.tag===1)return ue.Return(new $(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){const s=Ic(e);return ue.Bind(s,a=>ue.Return(new $(0,[a])))}else return ue.Return(new $(0,[o]))}})})}function H2(e,t){return ue.Delay(()=>{const n=Y0(P0(new iu(0,[]),F0(q0(e)+"/imports")));return ue.Bind(n,r=>{const i=r;if(i.tag===1)return ue.Return(new $(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=j0(et(W0(sy(),new so(1,[]))),o.responseText);return a=l.tag===1?new $(1,[l.fields[0]]):new $(0,[l.fields[0]]),ue.Return(a)}case 404:return ue.Return(new $(0,[void 0]));default:return ue.Return(new $(1,["Failed to get account imports"]))}}})})}function j2(e,t){return ue.Delay(()=>{let n;const r=Y0((n=P0(new iu(1,[]),F0(q0(e)+"/import/validate")),Iy(new S0(1,[k2(0,$2(I2(),new so(1,[]),void 0,void 0)(t))]),n)));return ue.Bind(r,i=>{const o=i;if(o.tag===1)return ue.Return(new $(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=j0(et(W0(L2(),new so(1,[]))),s.responseText);return ue.Return(a)}else return ue.Return(new $(1,[`Failed to validate: ${s.responseText}`]))}})})}function B2(e,t){return ue.Delay(()=>{let n;const r=eu(2e3);return n=ue.Bind(r,i=>ue.Return(new $(0,[i]))),ue.Bind(n,i=>{let o;const s=i;return o=s.tag===1?new $(1,[s.fields[0]]):new $(0,[new V2(1)]),ue.Return(o)})})}class U2 extends Se{constructor(t){super(),this.UserActivities=t}}class Kc extends Se{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function W2(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Je(xt(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function G2(e){return bo(g(vi(xt(t=>new Kc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),Jn(t=>new Kc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function z2(e){return new U2(Je(xt(G2,e),ot()))}class Xc extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class q2 extends Se{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class So extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class Y2 extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class Z2 extends Se{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Z0 extends Se{constructor(t,n){super(),this.Column=t,this.Direction=n}}class K2 extends G{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class vs extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class X2 extends Se{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 J2(e){return e.tag===1?K0(e.fields[0].Data):Q0()}function Q2(e){return e.tag===1?Ci(e.fields[0].Data):new vs(1,[])}function ev(e){const t=lu(Q0(),e);return new So([tm(un(e),20),t])}function Eo(e){return e.fields[0][1]}function K0(e){return J0(Eo(e))}function tv(e){return uu(Eo(e))}function Ci(e){return e.fields[0][0]}function nv(e){const t=Ci(e);if(t.tag===0){const n=t.fields[0],r=e0(n.FirstRowIndex,tv(e));return t0(hv(n),r)}else return ot()}function X0(e,t){const n=lu(K0(e),t);return new So([dv(Ci(e),un(uu(n))),n])}function rv(e){return new So([Ci(e),sv(Eo(e))])}function iv(e){return new So([cv(Ci(e)),Eo(e)])}function ov(e){return new So([uv(Ci(e)),Eo(e)])}function lu(e,t){return new Y2([e,cy(e.Direction,n=>n.Timestamp,t)])}function uu(e){return e.fields[0][1]}function J0(e){return e.fields[0][0]}function sv(e){return lu(av(J0(e)),uu(e))}function Q0(){return new Z0(new K2,new el(0,[]))}function av(e){return new Z0(e.Column,uy(e.Direction))}function em(e,t){return~~(e/t)+(e%t===0?0:1)}function Zs(e,t,n){if(e<=0)return new vs(1,[]);{const r=lc(n,em(e,t))|0,i=(r-1)*t|0;return new vs(0,[new X2(r,i,lc(i+t-1,e-1),e,t)])}}function tm(e,t){return Zs(e,t,1)}function lv(e){if(e.tag===0){const t=e.fields[0];return em(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function nm(e){return e.tag===0?e.fields[0].CurrentPage<lv(e):!1}function rm(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function uv(e){const t=rm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Zs(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function cv(e){const t=nm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Zs(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function dv(e,t){return t<=0?new vs(1,[]):e.tag===0?Zs(t,20,e.fields[0].CurrentPage):tm(t,20)}function fv(e){return e.FirstRowIndex+1}function mv(e){return e.LastRowIndex+1}function hv(e){return e.LastRowIndex-e.FirstRowIndex+1}let er=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class Si extends Se{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class cu extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function pv(e){if(e.tag===1)return im(e.fields[0])}function gv(e){return e.tag===0}function wv(e){return e.tag===1?new Xc(1,[Sv(e.fields[0])]):new Xc(0,[])}function im(e){const t=e.View;if(t.tag===1)return t.fields[0]}function yv(e){return im(e)!=null}function vv(e,t){return new er(1,[new Si(e.ImportHistory,new cu(1,[t]),X0(e.PaginatedList,Tn(n=>W2(n.User,t),e.ImportHistory.UserActivities)))])}function bv(e){return new er(1,[new Si(e.ImportHistory,new cu(0,[]),X0(e.PaginatedList,e.ImportHistory.UserActivities))])}function _v(e){return new er(1,[new Si(e.ImportHistory,e.View,rv(e.PaginatedList))])}function xv(e){return new er(1,[new Si(e.ImportHistory,e.View,iv(e.PaginatedList))])}function Cv(e){return new er(1,[new Si(e.ImportHistory,e.View,ov(e.PaginatedList))])}function Sv(e){return new q2(e.PaginatedList,yv(e))}let ni=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Ev(e){let t;return[e.tag===1?new er(0,[]):(t=e.fields[0],new er(1,[new Si(t,new cu(0,[]),ev(t.UserActivities))])),X()]}function om(e,t){return e.tag===1?t(e.fields[0]):[new er(0,[]),X()]}function Av(e,t){return om(e,n=>[t(n),X()])}function kv(e,t){const n=r=>Av(t,r);switch(e.tag){case 1:return n(bv);case 2:return n(_v);case 3:return n(xv);case 4:return n(Cv);default:{const r=e.fields[0];return om(t,i=>Hl(r)?[t,ae(o=>{o(new ni(1,[]))})]:[vv(i,r),X()])}}}function Nv(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function Tv(){let e,t,n;return c("div",w(g([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[c("div",w(g([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),c("div",w(g([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Nv(24,24)],["children",y.Children.toArray(Array.from(n))])]))),c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function $v(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function rl(e,t){let n,r;return c("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}class Jc extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function Mv(e){let t,n;const r=Je(e.Value,"");return c("div",w(g([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[c("div",w(g([["className",St(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=Z(T(()=>{let i;return H(A(c("div",w(g([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[$v(20,20)],["children",y.Children.toArray(Array.from(i))])])))),T(()=>{let o;return H(A(c("input",w(g([(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 Jc(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),T(()=>{let s;return Hl(r)?A(Ae()):A(c("div",w(g([["onClick",a=>{e.ActionHandler(new Jc(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[rl(10,10)],["children",y.Children.toArray(Array.from(s))])]))))}))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Iv(e){let t,n;const r=e.height,i=e.width;return c("svg",w(g([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=ae(c("path",w(g([(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",y.Children.toArray(Array.from(t))])])))}function Dv(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return c("div",w(g([["className",St(" ",Z(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=[c(Iv,{width:10,height:7})],["children",y.Children.toArray(Array.from(t))])])))}function Ov(e){const t=e.toggleSortDirection,n=e.props;return c(Dv,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function Rv(e){let t,n,r,i;const o=c(Ov,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return c("div",w(g([["className","flex-none grid grid-cols-7"],(t=[c("div",w(g([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])])))}function bs(e){"@babel/helpers - typeof";return bs=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},bs(e)}function Nr(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 Rt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function bn(e){Rt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||bs(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 Fv(e,t){Rt(2,arguments);var n=bn(e).getTime(),r=Nr(t);return new Date(n+r)}var Pv={};function Ks(){return Pv}function Lv(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 Vv(e){return Rt(1,arguments),e instanceof Date||bs(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Hv(e){if(Rt(1,arguments),!Vv(e)&&typeof e!="number")return!1;var t=bn(e);return!isNaN(Number(t))}function jv(e,t){Rt(2,arguments);var n=Nr(t);return Fv(e,-n)}var Bv=864e5;function Uv(e){Rt(1,arguments);var t=bn(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/Bv)+1}function _s(e){Rt(1,arguments);var t=1,n=bn(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 sm(e){Rt(1,arguments);var t=bn(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=_s(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=_s(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Wv(e){Rt(1,arguments);var t=sm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=_s(n);return r}var Gv=6048e5;function zv(e){Rt(1,arguments);var t=bn(e),n=_s(t).getTime()-Wv(t).getTime();return Math.round(n/Gv)+1}function xs(e,t){var n,r,i,o,s,a,l,u;Rt(1,arguments);var f=Ks(),d=Nr((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(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=bn(e),h=p.getUTCDay(),m=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function am(e,t){var n,r,i,o,s,a,l,u;Rt(1,arguments);var f=bn(e),d=f.getUTCFullYear(),p=Ks(),h=Nr((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(d+1,0,h),m.setUTCHours(0,0,0,0);var v=xs(m,t),b=new Date(0);b.setUTCFullYear(d,0,h),b.setUTCHours(0,0,0,0);var x=xs(b,t);return f.getTime()>=v.getTime()?d+1:f.getTime()>=x.getTime()?d:d-1}function qv(e,t){var n,r,i,o,s,a,l,u;Rt(1,arguments);var f=Ks(),d=Nr((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=am(e,t),h=new Date(0);h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0);var m=xs(h,t);return m}var Yv=6048e5;function Zv(e,t){Rt(1,arguments);var n=bn(e),r=xs(n,t).getTime()-qv(n,t).getTime();return Math.round(r/Yv)+1}function He(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Bn={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return He(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):He(r+1,2)},d:function(t,n){return He(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 He(t.getUTCHours()%12||12,n.length)},H:function(t,n){return He(t.getUTCHours(),n.length)},m:function(t,n){return He(t.getUTCMinutes(),n.length)},s:function(t,n){return He(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 He(o,n.length)}},jr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Kv={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 Bn.y(t,n)},Y:function(t,n,r,i){var o=am(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return He(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):He(s,n.length)},R:function(t,n){var r=sm(t);return He(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return He(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 He(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 He(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 Bn.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 He(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=Zv(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):He(o,n.length)},I:function(t,n,r){var i=zv(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):He(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Bn.d(t,n)},D:function(t,n,r){var i=Uv(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):He(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 He(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 He(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 He(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=jr.noon:i===0?o=jr.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=jr.evening:i>=12?o=jr.afternoon:i>=4?o=jr.morning:o=jr.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 Bn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Bn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):He(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):He(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Bn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Bn.s(t,n)},S:function(t,n){return Bn.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 ed(s);case"XXXX":case"XX":return fr(s);case"XXXXX":case"XXX":default:return fr(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return ed(s);case"xxxx":case"xx":return fr(s);case"xxxxx":case"xxx":default:return fr(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"+Qc(s,":");case"OOOO":default:return"GMT"+fr(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"+Qc(s,":");case"zzzz":default:return"GMT"+fr(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return He(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return He(s,n.length)}};function Qc(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+He(o,2)}function ed(e,t){if(e%60===0){var n=e>0?"-":"+";return n+He(Math.abs(e)/60,2)}return fr(e,t)}function fr(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=He(Math.floor(i/60),2),s=He(i%60,2);return r+o+n+s}var td=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"})}},lm=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"})}},Xv=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return td(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}}",td(i,n)).replace("{{time}}",lm(o,n))},Jv={p:lm,P:Xv},Qv=["D","DD"],eb=["YY","YYYY"];function tb(e){return Qv.indexOf(e)!==-1}function nb(e){return eb.indexOf(e)!==-1}function nd(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 rb={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"}},ib=function(t,n,r){var i,o=rb[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 Ea(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 ob={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ab={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lb={date:Ea({formats:ob,defaultWidth:"full"}),time:Ea({formats:sb,defaultWidth:"full"}),dateTime:Ea({formats:ab,defaultWidth:"full"})},ub={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},cb=function(t,n,r,i){return ub[t]};function Hi(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 db={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mb={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"]},hb={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"]},pb={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"}},gb={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"}},wb=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"},yb={ordinalNumber:wb,era:Hi({values:db,defaultWidth:"wide"}),quarter:Hi({values:fb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Hi({values:mb,defaultWidth:"wide"}),day:Hi({values:hb,defaultWidth:"wide"}),dayPeriod:Hi({values:pb,defaultWidth:"wide",formattingValues:gb,defaultFormattingWidth:"wide"})};function ji(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)?bb(a,function(d){return d.test(s)}):vb(a,function(d){return d.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 vb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function bb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function _b(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 xb=/^(\d+)(th|st|nd|rd)?/i,Cb=/\d+/i,Sb={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},Eb={any:[/^b/i,/^(a|c)/i]},Ab={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},kb={any:[/1/i,/2/i,/3/i,/4/i]},Nb={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},Tb={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]},$b={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},Mb={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]},Ib={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},Db={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}},Ob={ordinalNumber:_b({matchPattern:xb,parsePattern:Cb,valueCallback:function(t){return parseInt(t,10)}}),era:ji({matchPatterns:Sb,defaultMatchWidth:"wide",parsePatterns:Eb,defaultParseWidth:"any"}),quarter:ji({matchPatterns:Ab,defaultMatchWidth:"wide",parsePatterns:kb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ji({matchPatterns:Nb,defaultMatchWidth:"wide",parsePatterns:Tb,defaultParseWidth:"any"}),day:ji({matchPatterns:$b,defaultMatchWidth:"wide",parsePatterns:Mb,defaultParseWidth:"any"}),dayPeriod:ji({matchPatterns:Ib,defaultMatchWidth:"any",parsePatterns:Db,defaultParseWidth:"any"})},Rb={code:"en-US",formatDistance:ib,formatLong:lb,formatRelative:cb,localize:yb,match:Ob,options:{weekStartsOn:0,firstWeekContainsDate:1}},Fb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lb=/^'([^]*?)'?$/,Vb=/''/g,Hb=/[a-zA-Z]/;function um(e,t,n){var r,i,o,s,a,l,u,f,d,p,h,m,v,b;Rt(2,arguments);var x=String(t),C=Ks(),S=(r=(i=void 0)!==null&&i!==void 0?i:C.locale)!==null&&r!==void 0?r:Rb,M=Nr((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 O=Nr((d=(p=(h=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&h!==void 0?h:C.weekStartsOn)!==null&&p!==void 0?p:(v=C.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&d!==void 0?d:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var F=bn(e);if(!Hv(F))throw new RangeError("Invalid time value");var L=Lv(F),E=jv(F,L),_={firstWeekContainsDate:M,weekStartsOn:O,locale:S,_originalDate:F},k=x.match(Pb).map(function(N){var I=N[0];if(I==="p"||I==="P"){var D=Jv[I];return D(N,S.formatLong)}return N}).join("").match(Fb).map(function(N){if(N==="''")return"'";var I=N[0];if(I==="'")return jb(N);var D=Kv[I];if(D)return nb(N)&&nd(N,t,String(e)),tb(N)&&nd(N,t,String(e)),D(E,N,S.localize,_);if(I.match(Hb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return N}).join("");return k}function jb(e){var t=e.match(Lb);return t?t[1].replace(Vb,"'"):e}function Bb(e){return um(e,"d MMM, yyyy")}function Ub(e){return um(e,"h:mm a")}function Wb(e){let t,n,r,i,o,s,a;return c("div",w(g([["className","grid grid-cols-7"],(t=[c("div",w(g([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[c("div",w(g([["className"," flex flex-col justify-center items-start"],(r=[c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:Bb(e.Timestamp)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:Ub(e.Timestamp)})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[c("div",w(g([["className","justify-center items-start flex flex-col"],(s=Z(T(()=>{let l;return H(A(c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",y.Children.toArray(Array.from(l))])])))),T(()=>{const u=e.User.Email;return u==null?A(Ae()):A(c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Gb(e){const t=Jn(n=>c(Wb,n),e.Data);return c("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:y.Children.toArray(Array.from(t))})}function zb(e){let t,n,r,i,o;const s=e.height,a=e.width;return c("svg",w(g([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=g([c("path",w(g([(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)"]]))),c("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",w(g([(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=ae(c("linearGradient",w(g([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=g([c("stop",{offset:0,stopColor:"#FFD84D"}),c("stop",{offset:1,stopColor:"#FF876F"})]),["children",y.Children.toArray(Array.from(o))])])))),c("defs",{children:y.Children.toArray(Array.from(i))}))]),["children",y.Children.toArray(Array.from(t))])])))}function qb(){let e;return c("div",w(g([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[c(zb,{width:120,height:120})],["children",y.Children.toArray(Array.from(e))])])))}function Yb(){let e,t,n,r;return c("div",w(g([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[c(qb,null),c("div",w(g([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[c("div",w(g([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[c("div",w(g([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[c("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),c("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",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function Zb(e){return{Data:nv(e.Data)}}function Kb(e){let t;const n=e.props,r=n.tag===1?c(Gb,Zb(n.fields[0])):c(Yb,null);return c("div",w(g([["className","relative h-full grow"],(t=[c("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:y.Children.toArray([r])})],["children",y.Children.toArray(Array.from(t))])])))}class rd extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function Xb(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return c("div",w(g([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[c("div",{className:"self-stretch h-px bg-gray-200"}),c("div",w(g([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=Z(T(()=>{let o,s,a;return H((o=i,o.tag===1?A(c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],A((a=g([c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:fn(fv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:fn(mv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:fn(s.TotalRecordsNumber)}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:y.Children.toArray(Array.from(a))}))))),T(()=>{let l,u,f;return A(c("div",w(g([["className","justify-start items-start gap-3 flex"],(l=[c("button",w(g([["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",d=>{r(new rd(0,[]))}],["disabled",!rm(i)]]))),c("button",w(g([["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",d=>{r(new rd(1,[]))}],["disabled",!nm(i)]])))],["children",y.Children.toArray(Array.from(l))])]))))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class il extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function Jb(e,t){e(t.tag===0?new il(2,[]):new il(1,[]))}function Qb(e){let t,n;const r=e.actionHandler,i=e.props;return c("div",w(g([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[c(Rv,new Z2(J2(i),()=>{r(new il(0,[]))})),c(Kb,{props:i}),c(Xb,{pagingInfo:Q2(i),pageChangedHandler:o=>{Jb(r,o)}})],["children",y.Children.toArray(Array.from(n))])])))}function e_(e,t){t.tag===0?e(new ni(0,[t.fields[0]])):e(new ni(1,[]))}function t_(e,t){switch(t.tag){case 2:{e(new ni(4,[]));break}case 0:{e(new ni(2,[]));break}default:e(new ni(3,[]))}}function id(e){let t,n;const r=e.importHistory;let i;const o=Ev(r);i=Pr(()=>Fr(()=>o,kv,(f,d)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=pv(s);return l={ActionHandler:f=>{e_(a,f)},Disabled:gv(s),Value:Zi(u)},c("div",w(g([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[c(Tv,null),c("div",w(g([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[c(Mv,l),c(Qb,{props:wv(s),actionHandler:f=>{t_(a,f)}})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class od extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function n_(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return c("div",w(g([["className",St(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[c("div",{className:St(" ",["w-full h-4 relative rounded",r[1]])})],["children",y.Children.toArray(Array.from(n))])])))}function sd(e){const t=Jn(n=>n_(e,n),g(["col-span-1","col-span-2","col-span-4"]));return c("div",{className:"grid grid-cols-7",children:y.Children.toArray(Array.from(t))})}function r_(){let e,t;return c("div",w(g([(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=bo(ae(sd(new od(0,[]))),Jn(n=>sd(new od(1,[])),Z(tu(1,1,5)))),["children",y.Children.toArray(Array.from(t))])])))}function i_(e){let t;const n=Pr(()=>Fr(dy,(i,o)=>fy(()=>H2(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?c(id,{importHistory:new $(1,[void 0])}):n.tag===1?c(id,{importHistory:new $(0,[z2(n.fields[0])])}):c(r_,null);const r=[c("style",{children:[Fl]}),t];return c(ze,{},...r)}function o_(){Sl(e=>c(i_,e),"apollo-import-workspace-past-history")}const cm=(e,t)=>{Re(()=>{const n=e();return()=>{n.Dispose()}},t)},s_=e=>{vn(()=>{const t=e();return()=>{t.Dispose()}})};function a_(e){return{Dispose(){Vn(t=>{Ie(t)},vi(e))}}}function l_(e,t){return t}function u_(e,t,n,r){const i=y.memo(e,et(Je(xt(Wn,n),Ae())));return Vn(o=>{e.displayName=o},vi(t)),o=>{const s=l_(r,o);return y.createElement(i,s)}}function du(e){return{Dispose(){e()}}}function dm(e){const t=y.useRef(!1);y.useEffect(()=>{t.current||(t.current=!0,e())},[])}function fm(e){const t=y.useRef(void 0),n=y.useRef(!1),r=y.useRef(!1);n.current&&(r.current=!0),cm(()=>a_(n.current?void 0:(n.current=!0,t.current=lt(e()),r.current?t.current:void 0)),[])}function mm(e){const t=y.useRef(e),n=y.useCallback(r=>t.current(r),[]);return s_(r=>(t.current=e,du(()=>{}))),n}function ol(e,t){if(t.startsWith(e))return t}function ad(e,t){if(t.endsWith(e))return t}function c_(e){return t=>{let n,r;return n=ol("/",t),n!=null?(r=n,r):"/"+t}}function d_(e,t){return c_()(St("/",Jn(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function hm(e,t,n){history.pushState(void 0,"",d_(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function f_(e,t){return J1(n=>{if(yi(n))return ot();{const r=jl(n,"#");if(r==="?")return ot();if(ol("?",r)!=null)return ae(r);{const i=r.split("?");if(!Ar((o,s)=>o===s,i,Ae())&&i.length===1){const o=he(0,i);return ae(decodeURIComponent(o))}else if(!Ar((o,s)=>o===s,i,Ae())&&i.length===2)if(he(1,i)===""){const o=he(0,i);return ae(decodeURIComponent(o))}else{const o=he(0,i),s=he(1,i);return g([decodeURIComponent(o),"?"+s])}else return ot()}}},g(Df(ol("#",e)!=null?k1(e,1,e.length-1):t===1&&(ad("#",e)!=null||ad("#/",e)!=null)?"":e,["/"],void 0,0)))}function m_(e,t,n){return t(f_(e===2?window.location.pathname+window.location.search:window.location.hash,e))}u_(e=>{const t=mm(r=>{const i=Je(e.onUrlChanged,o=>{});m_(Je(e.hashMode,1),i)});fm(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),du(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),dm(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??Ae()},void 0,void 0,void 0);class h_{constructor(t,n){const r=new bt(Ae());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Le(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Aa(r.contents,o[0],o[1])}}finally{Ie(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}GetEnumerator(){return Le(js(this.hashMap.values()))}[Symbol.iterator](){return gi(Le(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Aa(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){ld(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=ts(this,t[0]);let i;switch(r!=null&&J(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){o0((i,o)=>{Tt(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return ud(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=ts(n,t[0]);return r!=null?(J(V(r)[1],t[1])&&ka(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Aa(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return fd(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return cd(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){dd(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Fn(T(()=>Pe(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return ka(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=ts(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 Fn(T(()=>Pe(n=>n[1],t)))}get size(){return ud(this)|0}clear(){ld(this)}delete(t){return ka(this,t)}entries(){return Pe(n=>[n[0],n[1]],this)}get(t){return cd(this,t)}has(t){return fd(this,t)}keys(){return Pe(n=>n[0],this)}set(t,n){const r=this;return dd(r,t,n),r}values(){return Pe(n=>n[1],this)}forEach(t,n){const r=this;Vn(i=>{t(i[1],i[0],r)},r)}}function Ao(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[Zl(e.hashMap,n,new bt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function ts(e,t){const n=Ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Qn(e.hashMap,n[1])[n[2]];default:return}}function ld(e){e.hashMap.clear()}function ud(e){let t=0,n=Le(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{Ie(n)}return t|0}function cd(e,t){const n=ts(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function dd(e,t,n){const r=Ao(e,t);r[0]?r[2]>-1?Qn(e.hashMap,r[1])[r[2]]=[t,n]:Qn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Aa(e,t,n){const r=Ao(e,t);if(r[0]){if(r[2]>-1)throw new Error(Vl("An item with the same key has already been added. Key: {0}",t));Qn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function fd(e,t){const n=Ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function ka(e,t){const n=Ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Qn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function p_(e,t){return T(()=>{const n=new a0([],t);return Bs(r=>s0(r,n),e)})}function g_(e,t,n){return T(()=>{const r=new a0(e,n);return Bs(i=>s0(i,r),t)})}function w_(e,t,n){return T(()=>{const r=new h_([],n),i=[],o=Le(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=e(s);let l,u=Ae();l=[Zl(r,a,new bt(()=>u,f=>{u=f})),u],l[0]?l[1].push(s):(Mg(r,a,[s]),i.push(a))}}finally{Ie(o)}return Pe(s=>[s,Qn(r,s)],i)})}function pm(e,t){return Fn(p_(e,t))}function gm(e,t,n){return Fn(g_(e,t,n))}function y_(e,t,n){return Fn(Pe(r=>[r[0],Fn(r[1])],w_(e,t,n)))}class v_ extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class b_ extends Se{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class __ extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class eo extends Se{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new eo(void 0,void 0,void 0,void 0,void 0);function md(e,t){return new eo(e.FirstName,e.LastName,e.Email,e.MobilePhone,xt(n=>n.fields[0],t))}class x_ extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class dt extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function wm(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}function C_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}function S_(e){switch(e){case"FullTime":return new dt(0,[]);case"PartTime":return new dt(1,[]);case"Casual":return new dt(2,[]);case"LabourHire":return new dt(3,[]);default:return}}class E_ extends Se{constructor(t,n){super(),this.Head=t,this.Tail=n}}function A_(e){return ti(Ye(t=>[t[1].fields[0],C_(t[0])],Yf([e.Head],e.Tail)),{Compare:Rr})}class k_ extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Br extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class Cn extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class N_ extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class T_ extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class ym extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function $_(e,t){let n;return new k_(Ye(r=>new x_(r),G1(r=>r,pm((n=Ye(r=>he(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!yi(r))),{Equals:(r,i)=>r===i,GetHashCode:ir}),{Compare:Rr})))}class vm extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class M_ extends Se{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class kt extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InviteNow","InviteLater"]}}class jo extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class oe extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function ao(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"}}function pr(e){switch(e.tag){case 1:return"lastName";case 2:return"email";case 3:return"mobileNumber";case 4:return"employmentBasis";default:return"firstName"}}function bm(e){switch(e){case"firstName":return new oe(0,[]);case"lastName":return new oe(1,[]);case"email":return new oe(2,[]);case"mobileNumber":return new oe(3,[]);case"employmentBasis":return new oe(4,[]);default:return}}let cr=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class Bi extends Se{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class I_ extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class An extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let Gr=class extends Se{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 D_(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 xt(r=>r[0],Ls(r=>bi(Ll(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:ir}),e))}function O_(e,t){return new I_(Ye(n=>{const r=n[0];return[r,n[1],bi(r,t,{Equals:J,GetHashCode:us})?new An(1,[]):new An(0,[])]},e))}function _m(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 zr(e,t){return zt(n=>n,Ye(n=>Kf(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function fu(e,t,n,r,i,o,s){let a,l,u;const f=m=>O_(e,m);let d;d=zt(m=>m,[n,r,i,o,s]).length;const h=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new jo(1,[new b_(l,u,a,o),xt(m=>new __(m),s)])):new jo(0,[new eo(n,r,i,o,s)]):new jo(0,[new eo(n,r,i,o,s)]):new jo(0,[new eo(n,r,i,o,s)]);return new Gr(new Bi(n,f(zt(m=>m,[r,i,o,s]))),new Bi(r,f(zt(m=>m,[n,i,o,s]))),new Bi(i,f(zt(m=>m,[n,r,o,s]))),new Bi(o,f(zt(m=>m,[n,r,i,s]))),new Bi(s,f(zt(m=>m,[n,r,i,o]))),t,e.length,d,e.length-d,h)}function Ui(e,t,n,r,i){let o,s,a;const l=[r,i];return a=_m(n,l[0],l[1]),fu(e,(o=n.Preview,o!=null&&J(o[0],r)?(s=o[0],[s,zr(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function Wi(e,t,n){let r,i;const o=[n,void 0];return i=_m(t,o[0],o[1]),fu(e,(r=t.Preview,r!=null&&J(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function xm(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 R_=e=>t=>xm(e,t);function F_(e,t){const n=xm(e,t),r=e.Preview;let i;switch(n?r==null?i=2:J(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function P_(e,t){let n,r,i,o,s,a,l,u,f;const d=p=>D_(e,p);return[(n=t==null?(r=d(new oe(0,[])),i=d(new oe(1,[])),o=d(new oe(2,[])),s=d(new oe(3,[])),a=d(new oe(4,[])),l=zt(p=>p,[r,i,o,s,a]),u=p=>{let h,m;switch(p!=null?(h=p,l.filter(v=>J(v,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]),fu(e,void 0,n[0],n[1],n[2],n[3],n[4])),X()]}function L_(e,t,n,r){let i,o,s,a,l,u,f,d,p,h,m,v,b,x,C,S,M,O,F,L,E;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,O=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,E=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],!J(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(_=>J(u,_[0])?J(_[2],new An(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],!J(r.Email.ColumnIndex,f)&&r.Email.IncomingFields.fields[0].some(_=>J(f,_[0])?J(_[2],new An(0,[])):!1)?(m=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):m=15;break}case 3:{d=n.fields[1],!J(r.MobilePhone.ColumnIndex,d)&&r.MobilePhone.IncomingFields.fields[0].some(_=>J(d,_[0])?J(_[2],new An(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],!J(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(_=>J(p,_[0])?J(_[2],new An(0,[])):!1)?(m=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],S=n.fields[1]):m=15;break}default:h=n.fields[1],!J(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(_=>J(h,_[0])?J(_[2],new An(0,[])):!1)?(m=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],v=n.fields[1]):m=15}}switch(m){case 0:return[(i=[new oe(0,[]),v],Ui(e,t,r,i[0],i[1])),X()];case 1:return[(o=[new oe(1,[]),b],Ui(e,t,r,o[0],o[1])),X()];case 2:return[(s=[new oe(2,[]),x],Ui(e,t,r,s[0],s[1])),X()];case 3:return[(a=[new oe(3,[]),C],Ui(e,t,r,a[0],a[1])),X()];case 4:return[(l=[new oe(4,[]),S],Ui(e,t,r,l[0],l[1])),X()];case 5:return[Wi(e,r,new oe(0,[])),X()];case 6:return[Wi(e,r,new oe(1,[])),X()];case 7:return[Wi(e,r,new oe(2,[])),X()];case 8:return[Wi(e,r,new oe(3,[])),X()];case 9:return[Wi(e,r,new oe(4,[])),X()];case 10:return[new Gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(0,[]),zr(M,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 11:return[new Gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(1,[]),zr(O,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 12:return[new Gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(2,[]),zr(F,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 13:return[new Gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(3,[]),zr(L,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 14:return[new Gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(4,[]),zr(E,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];default:return[r,X()]}}const Cm=typeof document<"u"?K.useLayoutEffect:()=>{};function V_(e){const t=re(null);return Cm(()=>{t.current=e},[e]),Oe((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const ko=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},vr=e=>e&&"window"in e&&e.window===e?e:ko(e).defaultView||window;function H_(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 j_(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 Sm(e){let t=null;return()=>(t==null&&(t=e()),t)}const B_=Sm(function(){return j_(/^Mac/i)}),U_=Sm(function(){return H_(/Android/i)});function W_(e){return e.mozInputSource===0&&e.isTrusted?!0:U_()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class G_{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 Em(e){let t=re({isFocused:!1,observer:null});Cm(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=V_(r=>{e==null||e(r)});return Oe(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 G_("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 z_(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Oe(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=Em(o),a=Oe(l=>{const u=ko(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 No=null,sl=new Set,to=new Map,Tr=!1,al=!1;const q_={Tab:!0,Escape:!0};function mu(e,t){for(let n of sl)n(e,t)}function Y_(e){return!(e.metaKey||!B_()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Cs(e){Tr=!0,Y_(e)&&(No="keyboard",mu("keyboard",e))}function Jt(e){No="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Tr=!0,mu("pointer",e))}function Am(e){W_(e)&&(Tr=!0,No="virtual")}function km(e){e.target===window||e.target===document||(!Tr&&!al&&(No="virtual",mu("virtual",e)),Tr=!1,al=!1)}function Nm(){Tr=!1,al=!0}function ll(e){if(typeof window>"u"||to.get(vr(e)))return;const t=vr(e),n=ko(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Tr=!0,r.apply(this,arguments)},n.addEventListener("keydown",Cs,!0),n.addEventListener("keyup",Cs,!0),n.addEventListener("click",Am,!0),t.addEventListener("focus",km,!0),t.addEventListener("blur",Nm,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Jt,!0),n.addEventListener("pointermove",Jt,!0),n.addEventListener("pointerup",Jt,!0)):(n.addEventListener("mousedown",Jt,!0),n.addEventListener("mousemove",Jt,!0),n.addEventListener("mouseup",Jt,!0)),t.addEventListener("beforeunload",()=>{Tm(e)},{once:!0}),to.set(t,{focus:r})}const Tm=(e,t)=>{const n=vr(e),r=ko(e);t&&r.removeEventListener("DOMContentLoaded",t),to.has(n)&&(n.HTMLElement.prototype.focus=to.get(n).focus,r.removeEventListener("keydown",Cs,!0),r.removeEventListener("keyup",Cs,!0),r.removeEventListener("click",Am,!0),n.removeEventListener("focus",km,!0),n.removeEventListener("blur",Nm,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Jt,!0),r.removeEventListener("pointermove",Jt,!0),r.removeEventListener("pointerup",Jt,!0)):(r.removeEventListener("mousedown",Jt,!0),r.removeEventListener("mousemove",Jt,!0),r.removeEventListener("mouseup",Jt,!0)),to.delete(n))};function Z_(e){const t=ko(e);let n;return t.readyState!=="loading"?ll(e):(n=()=>{ll(e)},t.addEventListener("DOMContentLoaded",n)),()=>Tm(e,n)}typeof document<"u"&&Z_();function $m(){return No!=="pointer"}const K_=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function X_(e,t,n){var r;const i=typeof window<"u"?vr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?vr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?vr(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?vr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!K_.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&&!q_[n.key])}function J_(e,t,n){ll(),Re(()=>{let r=(i,o)=>{X_(!!(n!=null&&n.isTextInput),i,o)&&e($m())};return sl.add(r),()=>{sl.delete(r)}},t)}function Q_(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=re({isFocusWithin:!1}),s=Oe(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Em(s),l=Oe(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 Ss=!1,Na=0;function ul(){Ss=!0,setTimeout(()=>{Ss=!1},50)}function hd(e){e.pointerType==="touch"&&ul()}function ex(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",hd):document.addEventListener("touchend",ul),Na++,()=>{Na--,!(Na>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",hd):document.removeEventListener("touchend",ul))}}function tx(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=be(!1),a=re({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Re(ex,[]);let{hoverProps:l,triggerHoverEnd:u}=fe(()=>{let f=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let v=h.currentTarget;a.target=v,t&&t({type:"hoverstart",target:v,pointerType:m}),n&&n(!0),s(!0)},d=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let v=h.currentTarget;r&&r({type:"hoverend",target:v,pointerType:m}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Ss&&h.pointerType==="mouse"||f(h,h.pointerType)},p.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!Ss&&f(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:p,triggerHoverEnd:d}},[t,n,r,i,a]);return Re(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function nx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=re({isFocused:!1,isFocusVisible:t||$m()}),[o,s]=be(!1),[a,l]=be(()=>i.current.isFocused&&i.current.isFocusVisible),u=Oe(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),f=Oe(h=>{i.current.isFocused=h,s(h),u()},[u]);J_(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=z_({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=Q_({isDisabled:!r,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:a,focusProps:r?p:d}}var rx=Object.defineProperty,ix=(e,t,n)=>t in e?rx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ta=(e,t,n)=>(ix(e,typeof t!="symbol"?t+"":t,n),n);let ox=class{constructor(){Ta(this,"current",this.detect()),Ta(this,"handoffState","pending"),Ta(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"}},xr=new ox;function Ei(e){return xr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Xs(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Hn(){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 Xs(()=>{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=Hn();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 ar(){let[e]=be(Hn);return Re(()=>()=>e.dispose(),[e]),e}let Ze=(e,t)=>{xr.isServer?Re(e,t):vn(e,t)};function lr(e){let t=re(e);return Ze(()=>{t.current=e},[e]),t}let le=function(e){let t=lr(e);return K.useCallback((...n)=>t.current(...n),[t])};function sx(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 ax(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function lx({disabled:e=!1}={}){let t=re(null),[n,r]=be(!1),i=ar(),o=le(()=>{t.current=null,r(!1),i.dispose()}),s=le(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=Ei(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let f=sx(u);r(ax(f,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let ux=st(void 0);function hu(){return Ve(ux)}function cl(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Lt(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,Lt),r}var fi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(fi||{}),Yn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Yn||{});function _t(){let e=dx();return Oe(t=>cx({mergeRefs:e,...t}),[e])}function cx({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??fx;let l=Mm(t,e);if(o)return Bo(l,n,r,s,a);let u=i??0;if(u&2){let{static:f=!1,...d}=l;if(f)return Bo(d,n,r,s,a)}if(u&1){let{unmount:f=!0,...d}=l;return Lt(f?0:1,{0(){return null},1(){return Bo({...d,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Bo(l,n,r,s,a)}function Bo(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 d={};if(t){let p=!1,h=[];for(let[m,v]of Object.entries(t))typeof v=="boolean"&&(p=!0),v===!0&&h.push(m.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(p){d["data-headlessui-state"]=h.join(" ");for(let m of h)d[`data-${m}`]=""}}if(o===ze&&(Object.keys(Un(l)).length>0||Object.keys(Un(d)).length>0))if(!pi(f)||Array.isArray(f)&&f.length>1){if(Object.keys(Un(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(Un(l)).concat(Object.keys(Un(d))).map(p=>` - ${p}`).join(`
|
|
45
|
+
`))(a)}}else if(qf(r))if(eu(r)){const s=Ze(a=>En(e,t,n,a),Xf(r));return a=>Uo(Mg((l,u)=>he(l,s)(u),a))}else{const s=Ye(Yf(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new qp(()=>D2(En(e,t,n,he(0,zt(r)))));return l=>l==null?X0: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=En(e,t,n,he(0,zt(r)));return l=>Uo(Pe(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=he(0,zt(r)),l=En(e,t,n,he(1,zt(r)));if(Ye(a)==="System.String"||Ye(a)==="System.Guid")return u=>Co((f,d)=>{const p=d;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=En(e,t,n,a),d=>Uo(Pe(p=>{const h=p;return[u(h[0]),l(h[1])]},d))}}else return od(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return M2;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 I2;case"System.DateTimeOffset":return T2;case"System.TimeSpan":return $2;case"System.Guid":return N2;case"System.Object":return s=>s;default:return od(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function O2(e){return gu({Compare:Fr})}function Q0(e,t,n,r){const i=Qe(t,new tr(0,[])),o=Qe(r,!0);return En(O2(),i,o,e)}class wu extends _e{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function em(){return Rt("Import.Dto.Shared.WorkspaceApi.ImportRowDataDto",[],wu,()=>[["RowId",ht],["Data",Kn("Microsoft.FSharp.Collections.FSharpMap`2",[In,In])]])}let tm=class extends _e{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}};function R2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],tm,()=>[["IncludesEmploymentInfo",ll],["Data",Xn(em())]])}class F2 extends _e{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function P2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],F2,()=>[["Column",In],["PropName",In],["Message",In]])}class L2 extends _e{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function V2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],L2,()=>[["RowId",ht],["FieldErrors",Xn(P2())]])}class H2 extends _e{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function j2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],H2,()=>[["Errors",Xn(V2())],["DuplicateEmailCount",ht]])}class nm extends _e{constructor(t,n,r){super(),this.IncludesEmploymentInfo=t,this.InviteNow=n,this.Data=r}}function B2(){return Rt("Import.Dto.Shared.WorkspaceApi.StartImportRequest.ImportDataDto",[],nm,()=>[["IncludesEmploymentInfo",ll],["InviteNow",ll],["Data",Xn(em())]])}class U2 extends _e{constructor(t){super(),this.ImportId=t|0}}function W2(){return Rt("Import.Dto.Shared.WorkspaceApi.StartImportResponse.ImportCreatedDto",[],U2,()=>[["ImportId",ht]])}class G2 extends _e{constructor(t,n){super(),this.DuplicateEmailCount=t|0,this.OtherFailuresCount=n|0}}function z2(){return Rt("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.FailuresInfoDto",[],G2,()=>[["DuplicateEmailCount",ht],["OtherFailuresCount",ht]])}class q2 extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AllRowsImported","SingleDuplicateEmail","ManyFailures"]}}function Y2(){return js("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.DoneStatsDto",[],q2,()=>[[["count",ht]],[["rowId",ht]],[["Item",z2()]]])}class Z2 extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InProgress","Done"]}}function K2(){return js("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.ImportStatusDto",[],Z2,()=>[[],[["Item",Y2()]]])}function ra(e){return`${e}/import/workspace/v1.0/accounts/current`}function ia(e){return J.Delay(()=>{let t;const n=Bc(e);return t=J.Bind(n,r=>J.Return(new M(0,[r]))),J.Bind(t,r=>{const i=r;if(i.tag===1)return J.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){const s=Bc(e);return J.Bind(s,a=>J.Return(new M(0,[a])))}else return J.Return(new M(0,[o]))}})})}function X2(e,t){return J.Delay(()=>{const n=ia(ea(new So(0,[]),Qs(ra(e)+"/imports")));return J.Bind(n,r=>{const i=r;if(i.tag===1)return J.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=ta(qe(na(my(),new tr(1,[]))),o.responseText);return a=l.tag===1?new M(1,[l.fields[0]]):new M(0,[l.fields[0]]),J.Return(a)}case 404:return J.Return(new M(0,[void 0]));default:return J.Return(new M(1,["Failed to get account imports"]))}}})})}function J2(e,t){return J.Delay(()=>{let n;const r=ia((n=ea(new So(1,[]),Qs(ra(e)+"/import/validate")),G0(new hu(1,[J0(0,Q0(R2(),new tr(1,[]),void 0,void 0)(t))]),n)));return J.Bind(r,i=>{const o=i;if(o.tag===1)return J.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=ta(qe(na(j2(),new tr(1,[]))),s.responseText);return J.Return(a)}else return J.Return(new M(1,[`Failed to validate: ${s.responseText}`]))}})})}function Q2(e,t){return J.Delay(()=>{let n;const r=ia((n=ea(new So(1,[]),Qs(ra(e)+"/import/start")),G0(new hu(1,[J0(0,Q0(B2(),new tr(1,[]),void 0,void 0)(t))]),n)));return J.Bind(r,i=>{const o=i;if(o.tag===1)return J.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===201){const a=ta(qe(na(W2(),new tr(1,[]))),s.responseText);return J.Return(a)}else return J.Return(new M(1,[`Failed to start import: ${s.responseText}`]))}})})}function ev(e,t){return J.Delay(()=>{const n=ia(ea(new So(0,[]),Qs(ra(e)+`/import/${t}/status`)));return J.Bind(n,r=>{const i=r;if(i.tag===1)return J.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===200){const s=ta(qe(na(K2(),new tr(1,[]))),o.responseText);return J.Return(s)}else return J.Return(new M(1,[`Failed to get import status: ${o.responseText}`]))}})})}class tv extends _e{constructor(t){super(),this.UserActivities=t}}class sd extends _e{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function nv(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Qe(Ct(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function rv(e){return xo(g(bi(Ct(t=>new sd(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),Qn(t=>new sd(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function iv(e){return new tv(Qe(Ct(rv,e),ot()))}class ad extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class ov extends _e{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class ko extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class sv extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class av extends _e{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class rm extends _e{constructor(t,n){super(),this.Column=t,this.Direction=n}}class lv extends U{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class xs extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class uv extends _e{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 cv(e){return e.tag===1?im(e.fields[0].Data):am()}function dv(e){return e.tag===1?Si(e.fields[0].Data):new xs(1,[])}function fv(e){const t=yu(am(),e);return new ko([um(un(e),20),t])}function No(e){return e.fields[0][1]}function im(e){return sm(No(e))}function mv(e){return vu(No(e))}function Si(e){return e.fields[0][0]}function hv(e){const t=Si(e);if(t.tag===0){const n=t.fields[0],r=u0(n.FirstRowIndex,mv(e));return c0(Av(n),r)}else return ot()}function om(e,t){const n=yu(im(e),t);return new ko([Cv(Si(e),un(vu(n))),n])}function pv(e){return new ko([Si(e),yv(No(e))])}function gv(e){return new ko([xv(Si(e)),No(e)])}function wv(e){return new ko([_v(Si(e)),No(e)])}function yu(e,t){return new sv([e,wy(e.Direction,n=>n.Timestamp,t)])}function vu(e){return e.fields[0][1]}function sm(e){return e.fields[0][0]}function yv(e){return yu(vv(sm(e)),vu(e))}function am(){return new rm(new lv,new dl(0,[]))}function vv(e){return new rm(e.Column,gy(e.Direction))}function lm(e,t){return~~(e/t)+(e%t===0?0:1)}function oa(e,t,n){if(e<=0)return new xs(1,[]);{const r=yc(n,lm(e,t))|0,i=(r-1)*t|0;return new xs(0,[new uv(r,i,yc(i+t-1,e-1),e,t)])}}function um(e,t){return oa(e,t,1)}function bv(e){if(e.tag===0){const t=e.fields[0];return lm(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function cm(e){return e.tag===0?e.fields[0].CurrentPage<bv(e):!1}function dm(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function _v(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 oa(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function xv(e){const t=cm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return oa(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Cv(e,t){return t<=0?new xs(1,[]):e.tag===0?oa(t,20,e.fields[0].CurrentPage):um(t,20)}function Sv(e){return e.FirstRowIndex+1}function Ev(e){return e.LastRowIndex+1}function Av(e){return e.LastRowIndex-e.FirstRowIndex+1}let nr=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class Ei extends _e{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class bu extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function kv(e){if(e.tag===1)return fm(e.fields[0])}function Nv(e){return e.tag===0}function Tv(e){return e.tag===1?new ad(1,[Fv(e.fields[0])]):new ad(0,[])}function fm(e){const t=e.View;if(t.tag===1)return t.fields[0]}function $v(e){return fm(e)!=null}function Mv(e,t){return new nr(1,[new Ei(e.ImportHistory,new bu(1,[t]),om(e.PaginatedList,Tn(n=>nv(n.User,t),e.ImportHistory.UserActivities)))])}function Iv(e){return new nr(1,[new Ei(e.ImportHistory,new bu(0,[]),om(e.PaginatedList,e.ImportHistory.UserActivities))])}function Dv(e){return new nr(1,[new Ei(e.ImportHistory,e.View,pv(e.PaginatedList))])}function Ov(e){return new nr(1,[new Ei(e.ImportHistory,e.View,gv(e.PaginatedList))])}function Rv(e){return new nr(1,[new Ei(e.ImportHistory,e.View,wv(e.PaginatedList))])}function Fv(e){return new ov(e.PaginatedList,$v(e))}let ri=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Pv(e){let t;return[e.tag===1?new nr(0,[]):(t=e.fields[0],new nr(1,[new Ei(t,new bu(0,[]),fv(t.UserActivities))])),X()]}function mm(e,t){return e.tag===1?t(e.fields[0]):[new nr(0,[]),X()]}function Lv(e,t){return mm(e,n=>[t(n),X()])}function Vv(e,t){const n=r=>Lv(t,r);switch(e.tag){case 1:return n(Iv);case 2:return n(Dv);case 3:return n(Ov);case 4:return n(Rv);default:{const r=e.fields[0];return mm(t,i=>Xl(r)?[t,le(o=>{o(new ri(1,[]))})]:[Mv(i,r),X()])}}}function Hv(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function jv(){let e,t,n;return c("div",w(g([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[c("div",w(g([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),c("div",w(g([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Hv(24,24)],["children",y.Children.toArray(Array.from(n))])]))),c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function Bv(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function hl(e,t){let n,r;return c("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}class ld extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function Uv(e){let t,n;const r=Qe(e.Value,"");return c("div",w(g([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[c("div",w(g([["className",Et(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=Z(T(()=>{let i;return H(A(c("div",w(g([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[Bv(20,20)],["children",y.Children.toArray(Array.from(i))])])))),T(()=>{let o;return H(A(c("input",w(g([(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 ld(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),T(()=>{let s;return Xl(r)?A(Ae()):A(c("div",w(g([["onClick",a=>{e.ActionHandler(new ld(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[hl(10,10)],["children",y.Children.toArray(Array.from(s))])]))))}))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Wv(e){let t,n;const r=e.height,i=e.width;return c("svg",w(g([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=le(c("path",w(g([(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",y.Children.toArray(Array.from(t))])])))}function Gv(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return c("div",w(g([["className",Et(" ",Z(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=[c(Wv,{width:10,height:7})],["children",y.Children.toArray(Array.from(t))])])))}function zv(e){const t=e.toggleSortDirection,n=e.props;return c(Gv,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function qv(e){let t,n,r,i;const o=c(zv,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return c("div",w(g([["className","flex-none grid grid-cols-7"],(t=[c("div",w(g([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Cs(e){"@babel/helpers - typeof";return Cs=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},Cs(e)}function Tr(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 Ft(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function bn(e){Ft(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Cs(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 Yv(e,t){Ft(2,arguments);var n=bn(e).getTime(),r=Tr(t);return new Date(n+r)}var Zv={};function sa(){return Zv}function Kv(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 Xv(e){return Ft(1,arguments),e instanceof Date||Cs(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Jv(e){if(Ft(1,arguments),!Xv(e)&&typeof e!="number")return!1;var t=bn(e);return!isNaN(Number(t))}function Qv(e,t){Ft(2,arguments);var n=Tr(t);return Yv(e,-n)}var eb=864e5;function tb(e){Ft(1,arguments);var t=bn(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/eb)+1}function Ss(e){Ft(1,arguments);var t=1,n=bn(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 hm(e){Ft(1,arguments);var t=bn(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Ss(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Ss(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function nb(e){Ft(1,arguments);var t=hm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ss(n);return r}var rb=6048e5;function ib(e){Ft(1,arguments);var t=bn(e),n=Ss(t).getTime()-nb(t).getTime();return Math.round(n/rb)+1}function Es(e,t){var n,r,i,o,s,a,l,u;Ft(1,arguments);var f=sa(),d=Tr((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(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=bn(e),h=p.getUTCDay(),m=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function pm(e,t){var n,r,i,o,s,a,l,u;Ft(1,arguments);var f=bn(e),d=f.getUTCFullYear(),p=sa(),h=Tr((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(d+1,0,h),m.setUTCHours(0,0,0,0);var v=Es(m,t),b=new Date(0);b.setUTCFullYear(d,0,h),b.setUTCHours(0,0,0,0);var x=Es(b,t);return f.getTime()>=v.getTime()?d+1:f.getTime()>=x.getTime()?d:d-1}function ob(e,t){var n,r,i,o,s,a,l,u;Ft(1,arguments);var f=sa(),d=Tr((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=pm(e,t),h=new Date(0);h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0);var m=Es(h,t);return m}var sb=6048e5;function ab(e,t){Ft(1,arguments);var n=bn(e),r=Es(n,t).getTime()-ob(n,t).getTime();return Math.round(r/sb)+1}function He(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Bn={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return He(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):He(r+1,2)},d:function(t,n){return He(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 He(t.getUTCHours()%12||12,n.length)},H:function(t,n){return He(t.getUTCHours(),n.length)},m:function(t,n){return He(t.getUTCMinutes(),n.length)},s:function(t,n){return He(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 He(o,n.length)}},Br={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lb={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 Bn.y(t,n)},Y:function(t,n,r,i){var o=pm(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return He(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):He(s,n.length)},R:function(t,n){var r=hm(t);return He(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return He(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 He(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 He(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 Bn.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 He(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=ab(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):He(o,n.length)},I:function(t,n,r){var i=ib(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):He(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Bn.d(t,n)},D:function(t,n,r){var i=tb(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):He(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 He(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 He(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 He(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=Br.noon:i===0?o=Br.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=Br.evening:i>=12?o=Br.afternoon:i>=4?o=Br.morning:o=Br.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 Bn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Bn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):He(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):He(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Bn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Bn.s(t,n)},S:function(t,n){return Bn.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 cd(s);case"XXXX":case"XX":return hr(s);case"XXXXX":case"XXX":default:return hr(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return cd(s);case"xxxx":case"xx":return hr(s);case"xxxxx":case"xxx":default:return hr(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"+ud(s,":");case"OOOO":default:return"GMT"+hr(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"+ud(s,":");case"zzzz":default:return"GMT"+hr(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return He(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return He(s,n.length)}};function ud(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+He(o,2)}function cd(e,t){if(e%60===0){var n=e>0?"-":"+";return n+He(Math.abs(e)/60,2)}return hr(e,t)}function hr(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=He(Math.floor(i/60),2),s=He(i%60,2);return r+o+n+s}var dd=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"})}},gm=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"})}},ub=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return dd(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}}",dd(i,n)).replace("{{time}}",gm(o,n))},cb={p:gm,P:ub},db=["D","DD"],fb=["YY","YYYY"];function mb(e){return db.indexOf(e)!==-1}function hb(e){return fb.indexOf(e)!==-1}function fd(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 pb={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"}},gb=function(t,n,r){var i,o=pb[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 Ra(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 wb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},bb={date:Ra({formats:wb,defaultWidth:"full"}),time:Ra({formats:yb,defaultWidth:"full"}),dateTime:Ra({formats:vb,defaultWidth:"full"})},_b={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xb=function(t,n,r,i){return _b[t]};function ji(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 Cb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Sb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Eb={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"]},Ab={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"]},kb={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"}},Nb={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"}},Tb=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"},$b={ordinalNumber:Tb,era:ji({values:Cb,defaultWidth:"wide"}),quarter:ji({values:Sb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ji({values:Eb,defaultWidth:"wide"}),day:ji({values:Ab,defaultWidth:"wide"}),dayPeriod:ji({values:kb,defaultWidth:"wide",formattingValues:Nb,defaultFormattingWidth:"wide"})};function Bi(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)?Ib(a,function(d){return d.test(s)}):Mb(a,function(d){return d.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 Mb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Ib(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Db(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 Ob=/^(\d+)(th|st|nd|rd)?/i,Rb=/\d+/i,Fb={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},Pb={any:[/^b/i,/^(a|c)/i]},Lb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vb={any:[/1/i,/2/i,/3/i,/4/i]},Hb={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},jb={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]},Bb={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},Ub={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]},Wb={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},Gb={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:Db({matchPattern:Ob,parsePattern:Rb,valueCallback:function(t){return parseInt(t,10)}}),era:Bi({matchPatterns:Fb,defaultMatchWidth:"wide",parsePatterns:Pb,defaultParseWidth:"any"}),quarter:Bi({matchPatterns:Lb,defaultMatchWidth:"wide",parsePatterns:Vb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Bi({matchPatterns:Hb,defaultMatchWidth:"wide",parsePatterns:jb,defaultParseWidth:"any"}),day:Bi({matchPatterns:Bb,defaultMatchWidth:"wide",parsePatterns:Ub,defaultParseWidth:"any"}),dayPeriod:Bi({matchPatterns:Wb,defaultMatchWidth:"any",parsePatterns:Gb,defaultParseWidth:"any"})},qb={code:"en-US",formatDistance:gb,formatLong:bb,formatRelative:xb,localize:$b,match:zb,options:{weekStartsOn:0,firstWeekContainsDate:1}},Yb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Zb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Kb=/^'([^]*?)'?$/,Xb=/''/g,Jb=/[a-zA-Z]/;function wm(e,t,n){var r,i,o,s,a,l,u,f,d,p,h,m,v,b;Ft(2,arguments);var x=String(t),C=sa(),S=(r=(i=void 0)!==null&&i!==void 0?i:C.locale)!==null&&r!==void 0?r:qb,$=Tr((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 D=Tr((d=(p=(h=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&h!==void 0?h:C.weekStartsOn)!==null&&p!==void 0?p:(v=C.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&d!==void 0?d:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var F=bn(e);if(!Jv(F))throw new RangeError("Invalid time value");var L=Kv(F),E=Qv(F,L),_={firstWeekContainsDate:$,weekStartsOn:D,locale:S,_originalDate:F},k=x.match(Zb).map(function(N){var I=N[0];if(I==="p"||I==="P"){var O=cb[I];return O(N,S.formatLong)}return N}).join("").match(Yb).map(function(N){if(N==="''")return"'";var I=N[0];if(I==="'")return Qb(N);var O=lb[I];if(O)return hb(N)&&fd(N,t,String(e)),mb(N)&&fd(N,t,String(e)),O(E,N,S.localize,_);if(I.match(Jb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return N}).join("");return k}function Qb(e){var t=e.match(Kb);return t?t[1].replace(Xb,"'"):e}function e_(e){return wm(e,"d MMM, yyyy")}function t_(e){return wm(e,"h:mm a")}function n_(e){let t,n,r,i,o,s,a;return c("div",w(g([["className","grid grid-cols-7"],(t=[c("div",w(g([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[c("div",w(g([["className"," flex flex-col justify-center items-start"],(r=[c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e_(e.Timestamp)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:t_(e.Timestamp)})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[c("div",w(g([["className","justify-center items-start flex flex-col"],(s=Z(T(()=>{let l;return H(A(c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",y.Children.toArray(Array.from(l))])])))),T(()=>{const u=e.User.Email;return u==null?A(Ae()):A(c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(t))])])))}function r_(e){const t=Qn(n=>c(n_,n),e.Data);return c("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:y.Children.toArray(Array.from(t))})}function i_(e){let t,n,r,i,o;const s=e.height,a=e.width;return c("svg",w(g([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=g([c("path",w(g([(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)"]]))),c("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",w(g([(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=le(c("linearGradient",w(g([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=g([c("stop",{offset:0,stopColor:"#FFD84D"}),c("stop",{offset:1,stopColor:"#FF876F"})]),["children",y.Children.toArray(Array.from(o))])])))),c("defs",{children:y.Children.toArray(Array.from(i))}))]),["children",y.Children.toArray(Array.from(t))])])))}function o_(){let e;return c("div",w(g([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[c(i_,{width:120,height:120})],["children",y.Children.toArray(Array.from(e))])])))}function s_(){let e,t,n,r;return c("div",w(g([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[c(o_,null),c("div",w(g([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[c("div",w(g([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[c("div",w(g([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[c("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),c("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",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function a_(e){return{Data:hv(e.Data)}}function l_(e){let t;const n=e.props,r=n.tag===1?c(r_,a_(n.fields[0])):c(s_,null);return c("div",w(g([["className","relative h-full grow"],(t=[c("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:y.Children.toArray([r])})],["children",y.Children.toArray(Array.from(t))])])))}class md extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function u_(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return c("div",w(g([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[c("div",{className:"self-stretch h-px bg-gray-200"}),c("div",w(g([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=Z(T(()=>{let o,s,a;return H((o=i,o.tag===1?A(c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],A((a=g([c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:fn(Sv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:fn(Ev(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:fn(s.TotalRecordsNumber)}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:y.Children.toArray(Array.from(a))}))))),T(()=>{let l,u,f;return A(c("div",w(g([["className","justify-start items-start gap-3 flex"],(l=[c("button",w(g([["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",d=>{r(new md(0,[]))}],["disabled",!dm(i)]]))),c("button",w(g([["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",d=>{r(new md(1,[]))}],["disabled",!cm(i)]])))],["children",y.Children.toArray(Array.from(l))])]))))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class pl extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function c_(e,t){e(t.tag===0?new pl(2,[]):new pl(1,[]))}function d_(e){let t,n;const r=e.actionHandler,i=e.props;return c("div",w(g([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[c(qv,new av(cv(i),()=>{r(new pl(0,[]))})),c(l_,{props:i}),c(u_,{pagingInfo:dv(i),pageChangedHandler:o=>{c_(r,o)}})],["children",y.Children.toArray(Array.from(n))])])))}function f_(e,t){t.tag===0?e(new ri(0,[t.fields[0]])):e(new ri(1,[]))}function m_(e,t){switch(t.tag){case 2:{e(new ri(4,[]));break}case 0:{e(new ri(2,[]));break}default:e(new ri(3,[]))}}function hd(e){let t,n;const r=e.importHistory;let i;const o=Pv(r);i=Lr(()=>Pr(()=>o,Vv,(f,d)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=kv(s);return l={ActionHandler:f=>{f_(a,f)},Disabled:Nv(s),Value:Ji(u)},c("div",w(g([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[c(jv,null),c("div",w(g([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[c(Uv,l),c(d_,{props:Tv(s),actionHandler:f=>{m_(a,f)}})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class pd extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function h_(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return c("div",w(g([["className",Et(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[c("div",{className:Et(" ",["w-full h-4 relative rounded",r[1]])})],["children",y.Children.toArray(Array.from(n))])])))}function gd(e){const t=Qn(n=>h_(e,n),g(["col-span-1","col-span-2","col-span-4"]));return c("div",{className:"grid grid-cols-7",children:y.Children.toArray(Array.from(t))})}function p_(){let e,t;return c("div",w(g([(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=xo(le(gd(new pd(0,[]))),Qn(n=>gd(new pd(1,[])),Z(du(1,1,5)))),["children",y.Children.toArray(Array.from(t))])])))}function g_(e){let t;const n=Lr(()=>Pr(yy,(i,o)=>vy(()=>X2(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?c(hd,{importHistory:new M(1,[void 0])}):n.tag===1?c(hd,{importHistory:new M(0,[iv(n.fields[0])])}):c(p_,null);const r=[c("style",{children:[ql]}),t];return c(ze,{},...r)}function w_(){Rl(e=>c(g_,e),"apollo-import-workspace-past-history")}const ym=(e,t)=>{Re(()=>{const n=e();return()=>{n.Dispose()}},t)},y_=e=>{vn(()=>{const t=e();return()=>{t.Dispose()}})};function v_(e){return{Dispose(){Vn(t=>{Ie(t)},bi(e))}}}function b_(e,t){return t}function __(e,t,n,r){const i=y.memo(e,qe(Qe(Ct(Wn,n),Ae())));return Vn(o=>{e.displayName=o},bi(t)),o=>{const s=b_(r,o);return y.createElement(i,s)}}function _u(e){return{Dispose(){e()}}}function vm(e){const t=y.useRef(!1);y.useEffect(()=>{t.current||(t.current=!0,e())},[])}function bm(e){const t=y.useRef(void 0),n=y.useRef(!1),r=y.useRef(!1);n.current&&(r.current=!0),ym(()=>v_(n.current?void 0:(n.current=!0,t.current=lt(e()),r.current?t.current:void 0)),[])}function _m(e){const t=y.useRef(e),n=y.useCallback(r=>t.current(r),[]);return y_(r=>(t.current=e,_u(()=>{}))),n}function gl(e,t){if(t.startsWith(e))return t}function wd(e,t){if(t.endsWith(e))return t}function x_(e){return t=>{let n,r;return n=gl("/",t),n!=null?(r=n,r):"/"+t}}function C_(e,t){return x_()(Et("/",Qn(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function xm(e,t,n){history.pushState(void 0,"",C_(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function S_(e,t){return og(n=>{if(vi(n))return ot();{const r=Jl(n,"#");if(r==="?")return ot();if(gl("?",r)!=null)return le(r);{const i=r.split("?");if(!kr((o,s)=>o===s,i,Ae())&&i.length===1){const o=he(0,i);return le(decodeURIComponent(o))}else if(!kr((o,s)=>o===s,i,Ae())&&i.length===2)if(he(1,i)===""){const o=he(0,i);return le(decodeURIComponent(o))}else{const o=he(0,i),s=he(1,i);return g([decodeURIComponent(o),"?"+s])}else return ot()}}},g(Uf(gl("#",e)!=null?R1(e,1,e.length-1):t===1&&(wd("#",e)!=null||wd("#/",e)!=null)?"":e,["/"],void 0,0)))}function E_(e,t,n){return t(S_(e===2?window.location.pathname+window.location.search:window.location.hash,e))}__(e=>{const t=_m(r=>{const i=Qe(e.onUrlChanged,o=>{});E_(Qe(e.hashMode,1),i)});bm(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),_u(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),vm(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??Ae()},void 0,void 0,void 0);class A_{constructor(t,n){const r=new _t(Ae());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Le(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Fa(r.contents,o[0],o[1])}}finally{Ie(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}GetEnumerator(){return Le(Gs(this.hashMap.values()))}[Symbol.iterator](){return wi(Le(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Fa(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){yd(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=is(this,t[0]);let i;switch(r!=null&&Q(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){h0((i,o)=>{$t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return vd(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=is(n,t[0]);return r!=null?(Q(V(r)[1],t[1])&&Pa(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Fa(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return xd(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return bd(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){_d(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Fn(T(()=>Pe(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Pa(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=is(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 Fn(T(()=>Pe(n=>n[1],t)))}get size(){return vd(this)|0}clear(){yd(this)}delete(t){return Pa(this,t)}entries(){return Pe(n=>[n[0],n[1]],this)}get(t){return bd(this,t)}has(t){return xd(this,t)}keys(){return Pe(n=>n[0],this)}set(t,n){const r=this;return _d(r,t,n),r}values(){return Pe(n=>n[1],this)}forEach(t,n){const r=this;Vn(i=>{t(i[1],i[0],r)},r)}}function To(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[su(e.hashMap,n,new _t(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function is(e,t){const n=To(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return er(e.hashMap,n[1])[n[2]];default:return}}function yd(e){e.hashMap.clear()}function vd(e){let t=0,n=Le(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{Ie(n)}return t|0}function bd(e,t){const n=is(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function _d(e,t,n){const r=To(e,t);r[0]?r[2]>-1?er(e.hashMap,r[1])[r[2]]=[t,n]:er(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Fa(e,t,n){const r=To(e,t);if(r[0]){if(r[2]>-1)throw new Error(Kl("An item with the same key has already been added. Key: {0}",t));er(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function xd(e,t){const n=To(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Pa(e,t){const n=To(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return er(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function k_(e,t){return T(()=>{const n=new g0([],t);return zs(r=>p0(r,n),e)})}function N_(e,t,n){return T(()=>{const r=new g0(e,n);return zs(i=>p0(i,r),t)})}function T_(e,t,n){return T(()=>{const r=new A_([],n),i=[],o=Le(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=e(s);let l,u=Ae();l=[su(r,a,new _t(()=>u,f=>{u=f})),u],l[0]?l[1].push(s):(Lg(r,a,[s]),i.push(a))}}finally{Ie(o)}return Pe(s=>[s,er(r,s)],i)})}function Cm(e,t){return Fn(k_(e,t))}function Sm(e,t,n){return Fn(N_(e,t,n))}function $_(e,t,n){return Fn(Pe(r=>[r[0],Fn(r[1])],T_(e,t,n)))}class M_ extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class I_ extends _e{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class D_ extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class ro extends _e{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new ro(void 0,void 0,void 0,void 0,void 0);function Cd(e,t){return new ro(e.FirstName,e.LastName,e.Email,e.MobilePhone,Ct(n=>n.fields[0],t))}class O_ extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class dt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function Em(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}function R_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}function F_(e){switch(e){case"FullTime":return new dt(0,[]);case"PartTime":return new dt(1,[]);case"Casual":return new dt(2,[]);case"LabourHire":return new dt(3,[]);default:return}}class P_ extends _e{constructor(t,n){super(),this.Head=t,this.Tail=n}}function L_(e){return ni(Ze(t=>[t[1].fields[0],R_(t[0])],r0([e.Head],e.Tail)),{Compare:Fr})}class V_ extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Ur extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class Cn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class H_ extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class j_ extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Am extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function B_(e,t){let n;return new V_(Ze(r=>new O_(r),J1(r=>r,Cm((n=Ze(r=>he(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!vi(r))),{Equals:(r,i)=>r===i,GetHashCode:sr}),{Compare:Fr})))}class km extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class U_ extends _e{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class Nt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InviteNow","InviteLater"]}}class Wo extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class se extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function uo(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"}}function wr(e){switch(e.tag){case 1:return"lastName";case 2:return"email";case 3:return"mobileNumber";case 4:return"employmentBasis";default:return"firstName"}}function Nm(e){switch(e){case"firstName":return new se(0,[]);case"lastName":return new se(1,[]);case"email":return new se(2,[]);case"mobileNumber":return new se(3,[]);case"employmentBasis":return new se(4,[]);default:return}}let fr=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class Ui extends _e{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class W_ extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class An extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let zr=class extends _e{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 G_(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 Ct(r=>r[0],Bs(r=>_i(Zl(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:sr}),e))}function z_(e,t){return new W_(Ze(n=>{const r=n[0];return[r,n[1],_i(r,t,{Equals:Q,GetHashCode:fs})?new An(1,[]):new An(0,[])]},e))}function Tm(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 qr(e,t){return qt(n=>n,Ze(n=>o0(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function xu(e,t,n,r,i,o,s){let a,l,u;const f=m=>z_(e,m);let d;d=qt(m=>m,[n,r,i,o,s]).length;const h=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new Wo(1,[new I_(l,u,a,o),Ct(m=>new D_(m),s)])):new Wo(0,[new ro(n,r,i,o,s)]):new Wo(0,[new ro(n,r,i,o,s)]):new Wo(0,[new ro(n,r,i,o,s)]);return new zr(new Ui(n,f(qt(m=>m,[r,i,o,s]))),new Ui(r,f(qt(m=>m,[n,i,o,s]))),new Ui(i,f(qt(m=>m,[n,r,o,s]))),new Ui(o,f(qt(m=>m,[n,r,i,s]))),new Ui(s,f(qt(m=>m,[n,r,i,o]))),t,e.length,d,e.length-d,h)}function Wi(e,t,n,r,i){let o,s,a;const l=[r,i];return a=Tm(n,l[0],l[1]),xu(e,(o=n.Preview,o!=null&&Q(o[0],r)?(s=o[0],[s,qr(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function Gi(e,t,n){let r,i;const o=[n,void 0];return i=Tm(t,o[0],o[1]),xu(e,(r=t.Preview,r!=null&&Q(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function $m(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 q_=e=>t=>$m(e,t);function Y_(e,t){const n=$m(e,t),r=e.Preview;let i;switch(n?r==null?i=2:Q(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function Z_(e,t){let n,r,i,o,s,a,l,u,f;const d=p=>G_(e,p);return[(n=t==null?(r=d(new se(0,[])),i=d(new se(1,[])),o=d(new se(2,[])),s=d(new se(3,[])),a=d(new se(4,[])),l=qt(p=>p,[r,i,o,s,a]),u=p=>{let h,m;switch(p!=null?(h=p,l.filter(v=>Q(v,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]),xu(e,void 0,n[0],n[1],n[2],n[3],n[4])),X()]}function K_(e,t,n,r){let i,o,s,a,l,u,f,d,p,h,m,v,b,x,C,S,$,D,F,L,E;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,D=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,E=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],!Q(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(_=>Q(u,_[0])?Q(_[2],new An(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],!Q(r.Email.ColumnIndex,f)&&r.Email.IncomingFields.fields[0].some(_=>Q(f,_[0])?Q(_[2],new An(0,[])):!1)?(m=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):m=15;break}case 3:{d=n.fields[1],!Q(r.MobilePhone.ColumnIndex,d)&&r.MobilePhone.IncomingFields.fields[0].some(_=>Q(d,_[0])?Q(_[2],new An(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],!Q(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(_=>Q(p,_[0])?Q(_[2],new An(0,[])):!1)?(m=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],S=n.fields[1]):m=15;break}default:h=n.fields[1],!Q(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(_=>Q(h,_[0])?Q(_[2],new An(0,[])):!1)?(m=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],v=n.fields[1]):m=15}}switch(m){case 0:return[(i=[new se(0,[]),v],Wi(e,t,r,i[0],i[1])),X()];case 1:return[(o=[new se(1,[]),b],Wi(e,t,r,o[0],o[1])),X()];case 2:return[(s=[new se(2,[]),x],Wi(e,t,r,s[0],s[1])),X()];case 3:return[(a=[new se(3,[]),C],Wi(e,t,r,a[0],a[1])),X()];case 4:return[(l=[new se(4,[]),S],Wi(e,t,r,l[0],l[1])),X()];case 5:return[Gi(e,r,new se(0,[])),X()];case 6:return[Gi(e,r,new se(1,[])),X()];case 7:return[Gi(e,r,new se(2,[])),X()];case 8:return[Gi(e,r,new se(3,[])),X()];case 9:return[Gi(e,r,new se(4,[])),X()];case 10:return[new zr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(0,[]),qr($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 11:return[new zr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(1,[]),qr(D,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 12:return[new zr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(2,[]),qr(F,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 13:return[new zr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(3,[]),qr(L,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 14:return[new zr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(4,[]),qr(E,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];default:return[r,X()]}}const Mm=typeof document<"u"?K.useLayoutEffect:()=>{};function X_(e){const t=ie(null);return Mm(()=>{t.current=e},[e]),Oe((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const $o=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},_r=e=>e&&"window"in e&&e.window===e?e:$o(e).defaultView||window;function J_(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 Q_(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 Im(e){let t=null;return()=>(t==null&&(t=e()),t)}const ex=Im(function(){return Q_(/^Mac/i)}),tx=Im(function(){return J_(/Android/i)});function nx(e){return e.mozInputSource===0&&e.isTrusted?!0:tx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class rx{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 Dm(e){let t=ie({isFocused:!1,observer:null});Mm(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=X_(r=>{e==null||e(r)});return Oe(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 rx("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 ix(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Oe(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=Dm(o),a=Oe(l=>{const u=$o(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 Mo=null,wl=new Set,io=new Map,$r=!1,yl=!1;const ox={Tab:!0,Escape:!0};function Cu(e,t){for(let n of wl)n(e,t)}function sx(e){return!(e.metaKey||!ex()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function As(e){$r=!0,sx(e)&&(Mo="keyboard",Cu("keyboard",e))}function Qt(e){Mo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&($r=!0,Cu("pointer",e))}function Om(e){nx(e)&&($r=!0,Mo="virtual")}function Rm(e){e.target===window||e.target===document||(!$r&&!yl&&(Mo="virtual",Cu("virtual",e)),$r=!1,yl=!1)}function Fm(){$r=!1,yl=!0}function vl(e){if(typeof window>"u"||io.get(_r(e)))return;const t=_r(e),n=$o(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){$r=!0,r.apply(this,arguments)},n.addEventListener("keydown",As,!0),n.addEventListener("keyup",As,!0),n.addEventListener("click",Om,!0),t.addEventListener("focus",Rm,!0),t.addEventListener("blur",Fm,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Qt,!0),n.addEventListener("pointermove",Qt,!0),n.addEventListener("pointerup",Qt,!0)):(n.addEventListener("mousedown",Qt,!0),n.addEventListener("mousemove",Qt,!0),n.addEventListener("mouseup",Qt,!0)),t.addEventListener("beforeunload",()=>{Pm(e)},{once:!0}),io.set(t,{focus:r})}const Pm=(e,t)=>{const n=_r(e),r=$o(e);t&&r.removeEventListener("DOMContentLoaded",t),io.has(n)&&(n.HTMLElement.prototype.focus=io.get(n).focus,r.removeEventListener("keydown",As,!0),r.removeEventListener("keyup",As,!0),r.removeEventListener("click",Om,!0),n.removeEventListener("focus",Rm,!0),n.removeEventListener("blur",Fm,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Qt,!0),r.removeEventListener("pointermove",Qt,!0),r.removeEventListener("pointerup",Qt,!0)):(r.removeEventListener("mousedown",Qt,!0),r.removeEventListener("mousemove",Qt,!0),r.removeEventListener("mouseup",Qt,!0)),io.delete(n))};function ax(e){const t=$o(e);let n;return t.readyState!=="loading"?vl(e):(n=()=>{vl(e)},t.addEventListener("DOMContentLoaded",n)),()=>Pm(e,n)}typeof document<"u"&&ax();function Lm(){return Mo!=="pointer"}const lx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ux(e,t,n){var r;const i=typeof window<"u"?_r(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?_r(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?_r(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?_r(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!lx.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&&!ox[n.key])}function cx(e,t,n){vl(),Re(()=>{let r=(i,o)=>{ux(!!(n!=null&&n.isTextInput),i,o)&&e(Lm())};return wl.add(r),()=>{wl.delete(r)}},t)}function dx(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=ie({isFocusWithin:!1}),s=Oe(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Dm(s),l=Oe(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 ks=!1,La=0;function bl(){ks=!0,setTimeout(()=>{ks=!1},50)}function Sd(e){e.pointerType==="touch"&&bl()}function fx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Sd):document.addEventListener("touchend",bl),La++,()=>{La--,!(La>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Sd):document.removeEventListener("touchend",bl))}}function mx(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=be(!1),a=ie({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Re(fx,[]);let{hoverProps:l,triggerHoverEnd:u}=fe(()=>{let f=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let v=h.currentTarget;a.target=v,t&&t({type:"hoverstart",target:v,pointerType:m}),n&&n(!0),s(!0)},d=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let v=h.currentTarget;r&&r({type:"hoverend",target:v,pointerType:m}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{ks&&h.pointerType==="mouse"||f(h,h.pointerType)},p.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!ks&&f(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:p,triggerHoverEnd:d}},[t,n,r,i,a]);return Re(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function hx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=ie({isFocused:!1,isFocusVisible:t||Lm()}),[o,s]=be(!1),[a,l]=be(()=>i.current.isFocused&&i.current.isFocusVisible),u=Oe(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),f=Oe(h=>{i.current.isFocused=h,s(h),u()},[u]);cx(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=ix({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=dx({isDisabled:!r,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:a,focusProps:r?p:d}}var px=Object.defineProperty,gx=(e,t,n)=>t in e?px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Va=(e,t,n)=>(gx(e,typeof t!="symbol"?t+"":t,n),n);let wx=class{constructor(){Va(this,"current",this.detect()),Va(this,"handoffState","pending"),Va(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"}},Sr=new wx;function Ai(e){return Sr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function aa(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Hn(){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 aa(()=>{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=Hn();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 ur(){let[e]=be(Hn);return Re(()=>()=>e.dispose(),[e]),e}let Ke=(e,t)=>{Sr.isServer?Re(e,t):vn(e,t)};function cr(e){let t=ie(e);return Ke(()=>{t.current=e},[e]),t}let ue=function(e){let t=cr(e);return K.useCallback((...n)=>t.current(...n),[t])};function yx(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 vx(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function bx({disabled:e=!1}={}){let t=ie(null),[n,r]=be(!1),i=ur(),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=Ai(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let f=yx(u);r(vx(f,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let _x=st(void 0);function Su(){return Ve(_x)}function _l(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Vt(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,Vt),r}var mi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mi||{}),Yn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Yn||{});function xt(){let e=Cx();return Oe(t=>xx({mergeRefs:e,...t}),[e])}function xx({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??Sx;let l=Vm(t,e);if(o)return Go(l,n,r,s,a);let u=i??0;if(u&2){let{static:f=!1,...d}=l;if(f)return Go(d,n,r,s,a)}if(u&1){let{unmount:f=!0,...d}=l;return Vt(f?0:1,{0(){return null},1(){return Go({...d,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Go(l,n,r,s,a)}function Go(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=Ha(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 d={};if(t){let p=!1,h=[];for(let[m,v]of Object.entries(t))typeof v=="boolean"&&(p=!0),v===!0&&h.push(m.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(p){d["data-headlessui-state"]=h.join(" ");for(let m of h)d[`data-${m}`]=""}}if(o===ze&&(Object.keys(Un(l)).length>0||Object.keys(Un(d)).length>0))if(!gi(f)||Array.isArray(f)&&f.length>1){if(Object.keys(Un(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(Un(l)).concat(Object.keys(Un(d))).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)=>cl(h(...x),l.className):cl(h,l.className),v=m?{className:m}:{},b=Mm(f.props,Un($a(l,["ref"])));for(let x in d)x in b&&delete d[x];return Ol(f,Object.assign({},b,d,u,{ref:i(mx(f),u.ref)},v))}return c(o,Object.assign({},$a(l,["ref"]),o!==ze&&u,o!==ze&&d),f)}function dx(){let e=re([]),t=Oe(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 fx(...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 Mm(...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 Im(...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 ht(e){var t;return Object.assign(Il(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Un(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 mx(e){return K.version.split(".")[0]>="19"?e.props.ref:e.ref}function hx(e,t,n){let[r,i]=be(n),o=e!==void 0,s=re(o),a=re(!1),l=re(!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,le(u=>(o||i(u),t==null?void 0:t(u)))]}function px(e){let[t]=be(e);return t}function Dm(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))Rm(n,Om(t,r),i);return n}function Om(e,t){return e?e+"["+t+"]":t}function Rm(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())Rm(e,Om(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,""]):Dm(n,t,e)}function gx(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 wx="span";var mi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(mi||{});function yx(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 _t()({ourProps:o,theirProps:i,slot:{},defaultTag:wx,name:"Hidden"})}let lo=ht(yx),vx=st(null);function bx({children:e}){let t=Ve(vx);if(!t)return K.createElement(K.Fragment,null,e);let{target:n}=t;return n?Os(K.createElement(K.Fragment,null,e),n):null}function _x({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=be(null),a=ar();return Re(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),K.createElement(bx,null,K.createElement(xx,{setForm:s,formId:t}),Dm(e).map(([l,u])=>K.createElement(lo,{features:mi.Hidden,...Un({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function xx({setForm:e,formId:t}){return Re(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:K.createElement(lo,{features:mi.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Cx=st(void 0);function Fm(){return Ve(Cx)}function Sx(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&&Ex(n)?!1:r}function Ex(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Pm=Symbol();function Ax(e,t=!0){return Object.assign(e,{[Pm]:t})}function $t(...e){let t=re(e);Re(()=>{t.current=e},[e]);let n=le(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[Pm]))?void 0:n}let Js=st(null);Js.displayName="DescriptionContext";function Lm(){let e=Ve(Js);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,Lm),t}return e}function kx(){var e,t;return(t=(e=Ve(Js))==null?void 0:e.value)!=null?t:void 0}function Nx(){let[e,t]=be([]);return[e.length>0?e.join(" "):void 0,fe(()=>function(n){let r=le(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=fe(()=>({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(Js.Provider,{value:i},n.children)},[t])]}let Tx="p";function $x(e,t){let n=tn(),r=hu(),{id:i=`headlessui-description-${n}`,...o}=e,s=Lm(),a=$t(t);Ze(()=>s.register(i),[i,s.register]);let l=r||!1,u=fe(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:i};return _t()({ourProps:f,theirProps:o,slot:u,defaultTag:Tx,name:s.name||"Description"})}let Mx=ht($x),Ix=Object.assign(Mx,{});var gt=(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))(gt||{});let Qs=st(null);Qs.displayName="LabelContext";function Vm(){let e=Ve(Qs);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,Vm),t}return e}function Hm(e){var t,n,r;let i=(n=(t=Ve(Qs))==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 Dx({inherit:e=!1}={}){let t=Hm(),[n,r]=be([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,fe(()=>function(o){let s=le(l=>(r(u=>[...u,l]),()=>r(u=>{let f=u.slice(),d=f.indexOf(l);return d!==-1&&f.splice(d,1),f}))),a=fe(()=>({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(Qs.Provider,{value:a},o.children)},[r])]}let Ox="label";function Rx(e,t){var n;let r=tn(),i=Vm(),o=Fm(),s=hu(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...f}=e,d=$t(t);Ze(()=>i.register(a),[a,i.register]);let p=le(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 S=C.getAttribute("disabled");if(S==="true"||S==="")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=fe(()=>({...i.slot,disabled:h}),[i.slot,h]),v={ref:d,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in f&&delete f.onClick),_t()({ourProps:v,theirProps:f,slot:m,defaultTag:l?Ox:"div",name:i.name||"Label"})}let Fx=ht(Rx),Px=Object.assign(Fx,{}),Lx=st(()=>{});function Vx({value:e,children:t}){return K.createElement(Lx.Provider,{value:e},t)}function Hx(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 jx(e=Hx){return Oe((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 Bx(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Ux(e,t=!1){let[n,r]=Or(()=>({}),{}),i=fe(()=>Bx(e),[e,n]);return Ze(()=>{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 Wx=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 jm(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 Bm(e){return Ds(e.subscribe,e.getSnapshot,e.getSnapshot)}let Gx=new Wx(()=>jm(()=>[],{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 Ai(e,t){let n=Gx.get(t),r=tn(),i=Bm(n);if(Ze(()=>{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 dl=new Map,no=new Map;function pd(e){var t;let n=(t=no.get(e))!=null?t:0;return no.set(e,n+1),n!==0?()=>gd(e):(dl.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>gd(e))}function gd(e){var t;let n=(t=no.get(e))!=null?t:1;if(n===1?no.delete(e):no.set(e,n-1),n!==1)return;let r=dl.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,dl.delete(e))}function Um(e,{allowed:t,disallowed:n}={}){let r=Ai(e,"inert-others");Ze(()=>{var i,o;if(!r)return;let s=Hn();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(pd(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=Ei(l);if(!u)continue;let f=l.parentElement;for(;f&&f!==u.body;){for(let d of f.children)a.some(p=>d.contains(p))||s.add(pd(d));f=f.parentElement}}return s.dispose},[r,t,n])}function Wm(e,t,n){let r=lr(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});Re(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Hn();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 Es=["[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(","),zx=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var cn=(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))(cn||{}),fl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(fl||{}),qx=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(qx||{});function Gm(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Es)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Yx(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(zx)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var pu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(pu||{});function zm(e,t=0){var n;return e===((n=Ei(e))==null?void 0:n.body)?!1:Lt(t,{0(){return e.matches(Es)},1(){let r=e;for(;r!==null;){if(r.matches(Es))return!0;r=r.parentElement}return!1}})}var Zx=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Zx||{});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 Dn(e){e==null||e.focus({preventScroll:!0})}let Kx=["textarea","input"].join(",");function Xx(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Kx))!=null?n:!1}function qm(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 Jx(e,t){return ri(Gm(),t,{relativeTo:e})}function ri(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?qm(e):e:t&64?Yx(e):Gm(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,d=s.length,p;do{if(f>=d||f+d<=0)return 0;let h=l+f;if(t&16)h=(h+d)%d;else{if(h<0)return 3;if(h>=d)return 1}p=s[h],p==null||p.focus(u),f+=a}while(p!==o.activeElement);return t&6&&Xx(p)&&p.select(),2}function Ym(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Qx(){return/Android/gi.test(window.navigator.userAgent)}function e3(){return Ym()||Qx()}function Gi(e,t,n,r){let i=lr(n);Re(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function Zm(e,t,n,r){let i=lr(n);Re(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const wd=30;function Km(e,t,n){let r=Ai(e,"outside-click"),i=lr(n),o=Oe(function(l,u){if(l.defaultPrevented)return;let f=u(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let d=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of d)if(p!==null&&(p.contains(f)||l.composed&&l.composedPath().includes(p)))return;return!zm(f,pu.Loose)&&f.tabIndex!==-1&&l.preventDefault(),i.current(l,f)},[i,t]),s=re(null);Gi(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),Gi(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),Gi(r,"click",l=>{e3()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=re({x:0,y:0});Gi(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),Gi(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=wd||Math.abs(u.y-a.current.y)>=wd))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Zm(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ki(...e){return fe(()=>Ei(...e),[...e])}function Xm(e,t,n,r){let i=lr(n);Re(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function t3(e,t){return fe(()=>{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 n3(){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 r3(){return Ym()?{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=Hn();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 i3(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function o3(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let br=jm(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Hn(),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:o3(n)},i=[r3(),n3(),i3()];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)}});br.subscribe(()=>{let e=br.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)&&br.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&br.dispatch("TEARDOWN",n)}});function s3(e,t,n=()=>({containers:[]})){let r=Bm(br),i=t?r.get(t):void 0,o=i?i.count>0:!1;return Ze(()=>{if(!(!t||!e))return br.dispatch("PUSH",t,n),()=>br.dispatch("POP",t,n)},[e,t]),o}function Jm(e,t,n=()=>[document.body]){let r=Ai(e,"scroll-lock");s3(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function yd(e){return[e.screenX,e.screenY]}function a3(){let e=re([-1,-1]);return{wasMoved(t){let n=yd(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=yd(t)}}}function l3(e=0){let[t,n]=be(e),r=Oe(l=>n(l),[t]),i=Oe(l=>n(u=>u|l),[t]),o=Oe(l=>(t&l)===l,[t]),s=Oe(l=>n(u=>u&~l),[n]),a=Oe(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var u3={},vd,bd;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((vd=process==null?void 0:u3)==null?void 0:vd.NODE_ENV)==="test"&&typeof((bd=Element==null?void 0:Element.prototype)==null?void 0:bd.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 c3=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(c3||{});function Qm(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function eh(e,t,n,r){let[i,o]=be(n),{hasFlag:s,addFlag:a,removeFlag:l}=l3(e&&i?3:0),u=re(!1),f=re(!1),d=ar();return Ze(()=>{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),d3(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,d]),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 d3(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Hn();return m3(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(f3(e,r))})}),o.dispose}function f3(e,t){var n,r;let i=Hn();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 m3(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 gu(e,t){let n=re([]),r=le(e);Re(()=>{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 ea(){return typeof window<"u"}function Ni(e){return th(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=(th(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function th(e){return ea()?e instanceof Node||e instanceof Yt(e).Node:!1}function Dt(e){return ea()?e instanceof Element||e instanceof Yt(e).Element:!1}function yn(e){return ea()?e instanceof HTMLElement||e instanceof Yt(e).HTMLElement:!1}function _d(e){return!ea()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot}function To(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function h3(e){return["table","td","th"].includes(Ni(e))}function ta(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function wu(e){const t=yu(),n=Dt(e)?hn(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 p3(e){let t=tr(e);for(;yn(t)&&!hi(t);){if(wu(t))return t;if(ta(t))return null;t=tr(t)}return null}function yu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hi(e){return["html","body","#document"].includes(Ni(e))}function hn(e){return Yt(e).getComputedStyle(e)}function na(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tr(e){if(Ni(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||_n(e);return _d(t)?t.host:t}function nh(e){const t=tr(e);return hi(t)?e.ownerDocument?e.ownerDocument.body:e.body:yn(t)&&To(t)?t:nh(t)}function uo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=nh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Yt(i);if(o){const a=ml(s);return t.concat(s,s.visualViewport||[],To(i)?i:[],a&&n?uo(a):[])}return t.concat(i,uo(i,[],n))}function ml(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function g3(){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 $r=Math.min,Nt=Math.max,co=Math.round,Uo=Math.floor,gn=e=>({x:e,y:e}),w3={left:"right",right:"left",bottom:"top",top:"bottom"},y3={start:"end",end:"start"};function xd(e,t,n){return Nt(e,$r(t,n))}function Ti(e,t){return typeof e=="function"?e(t):e}function nr(e){return e.split("-")[0]}function $o(e){return e.split("-")[1]}function rh(e){return e==="x"?"y":"x"}function ih(e){return e==="y"?"height":"width"}function Mr(e){return["top","bottom"].includes(nr(e))?"y":"x"}function oh(e){return rh(Mr(e))}function v3(e,t,n){n===void 0&&(n=!1);const r=$o(e),i=oh(e),o=ih(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=As(s)),[s,As(s)]}function b3(e){const t=As(e);return[hl(e),t,hl(t)]}function hl(e){return e.replace(/start|end/g,t=>y3[t])}function _3(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 x3(e,t,n,r){const i=$o(e);let o=_3(nr(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(hl)))),o}function As(e){return e.replace(/left|right|bottom|top/g,t=>w3[t])}function C3(e){return{top:0,right:0,bottom:0,left:0,...e}}function S3(e){return typeof e!="number"?C3(e):{top:e,right:e,bottom:e,left:e}}function ks(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 Cd(e,t,n){let{reference:r,floating:i}=e;const o=Mr(t),s=oh(t),a=ih(s),l=nr(t),u=o==="y",f=r.x+r.width/2-i.width/2,d=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:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch($o(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const E3=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:d}=Cd(u,r,l),p=r,h={},m=0;for(let v=0;v<a.length;v++){const{name:b,fn:x}=a[v],{x:C,y:S,data:M,reset:O}=await x({x:f,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,d=S??d,h={...h,[b]:{...h[b],...M}},O&&m<=50&&(m++,typeof O=="object"&&(O.placement&&(p=O.placement),O.rects&&(u=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:f,y:d}=Cd(u,p,l)),v=-1)}return{x:f,y:d,placement:p,strategy:i,middlewareData:h}};async function ra(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:d="floating",altBoundary:p=!1,padding:h=0}=Ti(t,e),m=S3(h),b=a[p?d==="floating"?"reference":"floating":d],x=ks(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=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),M=await(o.isElement==null?void 0:o.isElement(S))?await(o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},O=ks(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:S,strategy:l}):C);return{top:(x.top-O.top+m.top)/M.y,bottom:(O.bottom-x.bottom+m.bottom)/M.y,left:(x.left-O.left+m.left)/M.x,right:(O.right-x.right+m.right)/M.x}}const A3=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:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...b}=Ti(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=nr(i),C=Mr(a),S=nr(a)===a,M=await(l.isRTL==null?void 0:l.isRTL(u.floating)),O=p||(S||!v?[As(a)]:b3(a)),F=m!=="none";!p&&F&&O.push(...x3(a,v,m,M));const L=[a,...O],E=await ra(t,b),_=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&_.push(E[x]),d){const B=v3(i,s,M);_.push(E[B[0]],E[B[1]])}if(k=[...k,{placement:i,overflows:_}],!_.every(B=>B<=0)){var N,I;const B=(((N=o.flip)==null?void 0:N.index)||0)+1,pe=L[B];if(pe)return{data:{index:B,overflows:k},reset:{placement:pe}};let Y=(I=k.filter(U=>U.overflows[0]<=0).sort((U,P)=>U.overflows[1]-P.overflows[1])[0])==null?void 0:I.placement;if(!Y)switch(h){case"bestFit":{var D;const U=(D=k.filter(P=>{if(F){const W=Mr(P.placement);return W===C||W==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(W=>W>0).reduce((W,j)=>W+j,0)]).sort((P,W)=>P[1]-W[1])[0])==null?void 0:D[0];U&&(Y=U);break}case"initialPlacement":Y=a;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};async function k3(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=nr(n),a=$o(n),l=Mr(n)==="y",u=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,d=Ti(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.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 N3=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 k3(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}}}}},T3=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}=Ti(e,t),u={x:n,y:r},f=await ra(t,l),d=Mr(nr(i)),p=rh(d);let h=u[p],m=u[d];if(o){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=h+f[b],S=h-f[x];h=xd(C,h,S)}if(s){const b=d==="y"?"top":"left",x=d==="y"?"bottom":"right",C=m+f[b],S=m-f[x];m=xd(C,m,S)}const v=a.fn({...t,[p]:h,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:s}}}}}},$3=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}=Ti(e,t),f=await ra(t,u),d=nr(i),p=$o(i),h=Mr(i)==="y",{width:m,height:v}=o.floating;let b,x;d==="top"||d==="bottom"?(b=d,x=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,b=p==="end"?"top":"bottom");const C=v-f.top-f.bottom,S=m-f.left-f.right,M=$r(v-f[b],C),O=$r(m-f[x],S),F=!t.middlewareData.shift;let L=M,E=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=C),F&&!p){const k=Nt(f.left,0),N=Nt(f.right,0),I=Nt(f.top,0),D=Nt(f.bottom,0);h?E=m-2*(k!==0||N!==0?k+N:Nt(f.left,f.right)):L=v-2*(I!==0||D!==0?I+D:Nt(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:L});const _=await s.getDimensions(a.floating);return m!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function sh(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=yn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=co(n)!==o||co(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function vu(e){return Dt(e)?e:e.contextElement}function ii(e){const t=vu(e);if(!yn(t))return gn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=sh(t);let s=(o?co(n.width):n.width)/r,a=(o?co(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const M3=gn(0);function ah(e){const t=Yt(e);return!yu()||!t.visualViewport?M3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function I3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yt(e)?!1:t}function Ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=vu(e);let s=gn(1);t&&(r?Dt(r)&&(s=ii(r)):s=ii(e));const a=I3(o,n,r)?ah(o):gn(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(o){const p=Yt(o),h=r&&Dt(r)?Yt(r):r;let m=p,v=ml(m);for(;v&&r&&h!==m;){const b=ii(v),x=v.getBoundingClientRect(),C=hn(v),S=x.left+(v.clientLeft+parseFloat(C.paddingLeft))*b.x,M=x.top+(v.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,d*=b.y,l+=S,u+=M,m=Yt(v),v=ml(m)}}return ks({width:f,height:d,x:l,y:u})}function bu(e,t){const n=na(e).scrollLeft;return t?t.left+n:Ir(_n(e)).left+n}function lh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:bu(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function D3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=_n(r),a=t?ta(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=gn(1);const f=gn(0),d=yn(r);if((d||!d&&!o)&&((Ni(r)!=="body"||To(s))&&(l=na(r)),yn(r))){const h=Ir(r);u=ii(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!d&&!o?lh(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 O3(e){return Array.from(e.getClientRects())}function R3(e){const t=_n(e),n=na(e),r=e.ownerDocument.body,i=Nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+bu(e);const a=-n.scrollTop;return hn(r).direction==="rtl"&&(s+=Nt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function F3(e,t){const n=Yt(e),r=_n(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=yu();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function P3(e,t){const n=Ir(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=yn(e)?ii(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 Sd(e,t,n){let r;if(t==="viewport")r=F3(e,n);else if(t==="document")r=R3(_n(e));else if(Dt(t))r=P3(t,n);else{const i=ah(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ks(r)}function uh(e,t){const n=tr(e);return n===t||!Dt(n)||hi(n)?!1:hn(n).position==="fixed"||uh(n,t)}function L3(e,t){const n=t.get(e);if(n)return n;let r=uo(e,[],!1).filter(a=>Dt(a)&&Ni(a)!=="body"),i=null;const o=hn(e).position==="fixed";let s=o?tr(e):e;for(;Dt(s)&&!hi(s);){const a=hn(s),l=wu(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||To(s)&&!l&&uh(e,s))?r=r.filter(f=>f!==s):i=a,s=tr(s)}return t.set(e,r),r}function V3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ta(t)?[]:L3(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const d=Sd(t,f,i);return u.top=Nt(d.top,u.top),u.right=$r(d.right,u.right),u.bottom=$r(d.bottom,u.bottom),u.left=Nt(d.left,u.left),u},Sd(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function H3(e){const{width:t,height:n}=sh(e);return{width:t,height:n}}function j3(e,t,n){const r=yn(t),i=_n(t),o=n==="fixed",s=Ir(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!o)if((Ni(t)!=="body"||To(i))&&(a=na(t)),r){const p=Ir(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=bu(i));const u=i&&!r&&!o?lh(i,a):gn(0),f=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function Ma(e){return hn(e).position==="static"}function Ed(e,t){if(!yn(e)||hn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _n(e)===n&&(n=n.ownerDocument.body),n}function ch(e,t){const n=Yt(e);if(ta(e))return n;if(!yn(e)){let i=tr(e);for(;i&&!hi(i);){if(Dt(i)&&!Ma(i))return i;i=tr(i)}return n}let r=Ed(e,t);for(;r&&h3(r)&&Ma(r);)r=Ed(r,t);return r&&hi(r)&&Ma(r)&&!wu(r)?n:r||p3(e)||n}const B3=async function(e){const t=this.getOffsetParent||ch,n=this.getDimensions,r=await n(e.floating);return{reference:j3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function U3(e){return hn(e).direction==="rtl"}const W3={convertOffsetParentRelativeRectToViewportRelativeRect:D3,getDocumentElement:_n,getClippingRect:V3,getOffsetParent:ch,getElementRects:B3,getClientRects:O3,getDimensions:H3,getScale:ii,isElement:Dt,isRTL:U3};function dh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function G3(e,t){let n=null,r;const i=_n(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:d,width:p,height:h}=u;if(a||t(),!p||!h)return;const m=Uo(d),v=Uo(i.clientWidth-(f+p)),b=Uo(i.clientHeight-(d+h)),x=Uo(f),S={rootMargin:-m+"px "+-v+"px "+-b+"px "+-x+"px",threshold:Nt(0,$r(1,l))||1};let M=!0;function O(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&&!dh(u,e.getBoundingClientRect())&&s(),M=!1}try{n=new IntersectionObserver(O,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,S)}n.observe(e)}return s(!0),o}function z3(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=vu(e),f=i||o?[...u?uo(u):[],...uo(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const d=u&&a?G3(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 S;(S=h)==null||S.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m,v=l?Ir(e):null;l&&b();function b(){const x=Ir(e);v&&!dh(v,x)&&n(),v=x,m=requestAnimationFrame(b)}return n(),()=>{var x;f.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),d==null||d(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Ia=ra,q3=N3,Y3=T3,Z3=A3,K3=$3,X3=(e,t,n)=>{const r=new Map,i={platform:W3,...n},o={...i.platform,_c:r};return E3(e,t,{...i,platform:o})};var ns=typeof document<"u"?vn:Re;function Ns(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(!Ns(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)&&!Ns(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 Ad(e,t){const n=fh(e);return Math.round(t*n)/n}function Da(e){const t=re(e);return ns(()=>{t.current=e}),t}function J3(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,d]=be({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=be(r);Ns(p,r)||h(r);const[m,v]=be(null),[b,x]=be(null),C=Oe(P=>{P!==F.current&&(F.current=P,v(P))},[]),S=Oe(P=>{P!==L.current&&(L.current=P,x(P))},[]),M=o||m,O=s||b,F=re(null),L=re(null),E=re(f),_=l!=null,k=Da(l),N=Da(i),I=Da(u),D=Oe(()=>{if(!F.current||!L.current)return;const P={placement:t,strategy:n,middleware:p};N.current&&(P.platform=N.current),X3(F.current,L.current,P).then(W=>{const j={...W,isPositioned:I.current!==!1};B.current&&!Ns(E.current,j)&&(E.current=j,qt(()=>{d(j)}))})},[p,t,n,N,I]);ns(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const B=re(!1);ns(()=>(B.current=!0,()=>{B.current=!1}),[]),ns(()=>{if(M&&(F.current=M),O&&(L.current=O),M&&O){if(k.current)return k.current(M,O,D);D()}},[M,O,D,k,_]);const pe=fe(()=>({reference:F,floating:L,setReference:C,setFloating:S}),[C,S]),Y=fe(()=>({reference:M,floating:O}),[M,O]),U=fe(()=>{const P={position:n,left:0,top:0};if(!Y.floating)return P;const W=Ad(Y.floating,f.x),j=Ad(Y.floating,f.y);return a?{...P,transform:"translate("+W+"px, "+j+"px)",...fh(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:j}},[n,a,Y.floating,f.x,f.y]);return fe(()=>({...f,update:D,refs:pe,elements:Y,floatingStyles:U}),[f,D,pe,Y,U])}const mh=(e,t)=>({...q3(e),options:[e,t]}),Q3=(e,t)=>({...Y3(e),options:[e,t]}),e5=(e,t)=>({...Z3(e),options:[e,t]}),t5=(e,t)=>({...K3(e),options:[e,t]}),hh={...as},n5=hh.useInsertionEffect,r5=n5||(e=>e());function ph(e){const t=re(()=>{});return r5(()=>{t.current=e}),Oe(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 pl=typeof document<"u"?vn:Re;let kd=!1,i5=0;const Nd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+i5++;function o5(){const[e,t]=be(()=>kd?Nd():void 0);return pl(()=>{e==null&&t(Nd())},[]),Re(()=>{kd=!0},[]),e}const s5=hh.useId,a5=s5||o5;function l5(){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 u5=st(null),c5=st(null),d5=()=>{var e;return((e=Ve(u5))==null?void 0:e.id)||null},f5=()=>Ve(c5),m5="data-floating-ui-focusable";function h5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=a5(),o=re({}),[s]=be(()=>l5()),a=d5()!=null,[l,u]=be(r.reference),f=ph((h,m,v)=>{o.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:v,nested:a}),n==null||n(h,m,v)}),d=fe(()=>({setPositionReference:u}),[]),p=fe(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return fe(()=>({dataRef:o,open:t,onOpenChange:f,elements:p,events:s,floatingId:i,refs:d}),[t,f,p,s,i,d])}function p5(e){e===void 0&&(e={});const{nodeId:t}=e,n=h5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=be(null),[a,l]=be(null),f=(i==null?void 0:i.domReference)||o,d=re(null),p=f5();pl(()=>{f&&(d.current=f)},[f]);const h=J3({...e,elements:{...i,...a&&{reference:a}}}),m=Oe(S=>{const M=Dt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;l(M),h.refs.setReference(M)},[h.refs]),v=Oe(S=>{(Dt(S)||S===null)&&(d.current=S,s(S)),(Dt(h.refs.reference.current)||h.refs.reference.current===null||S!==null&&!Dt(S))&&h.refs.setReference(S)},[h.refs]),b=fe(()=>({...h.refs,setReference:v,setPositionReference:m,domReference:d}),[h.refs,v,m]),x=fe(()=>({...h.elements,domReference:f}),[h.elements,f]),C=fe(()=>({...h,...r,refs:b,elements:x,nodeId:t}),[h,b,x,t,r]);return pl(()=>{r.dataRef.current.floatingContext=C;const S=p==null?void 0:p.nodesRef.current.find(M=>M.id===t);S&&(S.context=C)}),fe(()=>({...h,context:C,refs:b,elements:x}),[h,b,x,C])}const Td="active",$d="selected";function Oa(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Td]:s,[$d]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[m5]:""},...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&&[Td,$d].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var d;(d=r.get(u))==null||d.push(f),s[u]=function(){for(var p,h=arguments.length,m=new Array(h),v=0;v<h;v++)m[v]=arguments[v];return(p=r.get(u))==null?void 0:p.map(b=>b(...m)).find(b=>b!==void 0)}}}else s[u]=f}),s),{})}}function g5(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=Oe(a=>Oa(a,e,"reference"),t),o=Oe(a=>Oa(a,e,"floating"),n),s=Oe(a=>Oa(a,e,"item"),r);return fe(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Md(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const w5=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}=Ti(e,t),{rects:d,elements:{floating:p}}=t,h=n.current[s],m=(u==null?void 0:u.current)||p,v=p.clientTop||m.clientTop,b=p.clientTop!==0,x=m.clientTop!==0,C=p===m;if(!h)return{};const S={...t,...await mh(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-o).fn(t)},M=await Ia(Md(S,m.scrollHeight+v+p.clientTop),f),O=await Ia(S,{...f,elementContext:"reference"}),F=Nt(0,M.top),L=S.y+F,k=(m.scrollHeight>m.clientHeight?N=>N:co)(Nt(0,m.scrollHeight+(b&&C||x?v*2:0)-F-Nt(0,M.bottom)));if(m.style.maxHeight=k+"px",m.scrollTop=F,i){const N=m.offsetHeight<h.offsetHeight*$r(a,n.current.length)-1||O.top>=-l||O.bottom>=-l;qt(()=>i(N))}return r&&(r.current=await Ia(Md({...S,y:L},m.offsetHeight+v+p.clientTop),f)),{y:L}}});function y5(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=ph(a),u=re(!1),f=re(null),d=re(null);Re(()=>{if(!i)return;function h(v){if(v.ctrlKey||!m||o.current==null)return;const b=v.deltaY,x=o.current.top>=-.5,C=o.current.bottom>=-.5,S=m.scrollHeight-m.clientHeight,M=b<0?-1:1,O=b<0?"max":"min";m.scrollHeight<=m.clientHeight||(!x&&b>0||!C&&b<0?(v.preventDefault(),qt(()=>{l(F=>F+Math[O](b,S*M))})):/firefox/i.test(g3())&&(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&&(d.current={...o.current})}),()=>{f.current=null,d.current=null,m.removeEventListener("wheel",h)}},[i,n,r.floating,o,s,l]);const p=fe(()=>({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)&&qt(()=>l(v=>v+m))}requestAnimationFrame(()=>{f.current=h.scrollTop})}}}),[r.floating,l,o,s]);return fe(()=>i?{floating:p}:{},[i,p])}let $i=st({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});$i.displayName="FloatingContext";let _u=st(null);_u.displayName="PlacementContext";function v5(e){return fe(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function b5(){return Ve($i).setReference}function _5(){return Ve($i).getReferenceProps}function x5(){let{getFloatingProps:e,slot:t}=Ve($i);return Oe((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function C5(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ve(_u),n=fe(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);Ze(()=>{t==null||t(n??null)},[t,n]);let r=Ve($i);return fe(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Id=4;function S5({children:e,enabled:t=!0}){let[n,r]=be(null),[i,o]=be(0),s=re(null),[a,l]=be(null);E5(a);let u=t&&n!==null&&a!==null,{to:f="bottom",gap:d=0,offset:p=0,padding:h=0,inner:m}=A5(n,a),[v,b="center"]=f.split(" ");Ze(()=>{u&&o(0)},[u]);let{refs:x,floatingStyles:C,context:S}=p5({open:u,placement:v==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${v}`:`${v}-${b}`,strategy:"absolute",transform:!1,middleware:[mh({mainAxis:v==="selection"?0:d,crossAxis:p}),Q3({padding:h}),v!=="selection"&&e5({padding:h}),v==="selection"&&m?w5({...m,padding:h,overflowRef:s,offset:i,minItemsVisible:Id,referenceOverflowThreshold:h,onFallbackChange(N){var I,D;if(!N)return;let B=S.elements.floating;if(!B)return;let pe=parseFloat(getComputedStyle(B).scrollPaddingBottom)||0,Y=Math.min(Id,B.childElementCount),U=0,P=0;for(let W of(D=(I=S.elements.floating)==null?void 0:I.childNodes)!=null?D:[])if(W instanceof HTMLElement){let j=W.offsetTop,de=j+W.clientHeight+pe,z=B.scrollTop,R=z+B.clientHeight;if(j>=z&&de<=R)Y--;else{P=Math.max(0,Math.min(de,R)-Math.max(j,z)),U=W.clientHeight;break}}Y>=1&&o(W=>{let j=U*Y-P+pe;return W>=j?W:j})}}):null,t5({padding:h,apply({availableWidth:N,availableHeight:I,elements:D}){Object.assign(D.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${I}px)`})}})].filter(Boolean),whileElementsMounted:z3}),[M=v,O=b]=S.placement.split("-");v==="selection"&&(M="selection");let F=fe(()=>({anchor:[M,O].filter(Boolean).join(" ")}),[M,O]),L=y5(S,{overflowRef:s,onChange:o}),{getReferenceProps:E,getFloatingProps:_}=g5([L]),k=le(N=>{l(N),x.setFloating(N)});return c(_u.Provider,{value:r},c($i.Provider,{value:{setFloating:k,setReference:x.setReference,styles:C,getReferenceProps:E,getFloatingProps:_,slot:F}},e))}function E5(e){Ze(()=>{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 A5(e,t){var n,r,i;let o=Ra((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Ra((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Ra((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Ra(e,t,n=void 0){let r=ar(),i=le((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,d=>{let p=gh(l);{let h=p.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let v=!1;for(let[x,C]of p.entries()){let S=window.getComputedStyle(u).getPropertyValue(C);if(h[x]!==S){h[x]=S,v=!0;break}}if(!v)return;let b=Dd(l,u);f!==b&&(d(b),f=b)})}return r.dispose}]}return[n,null]}),o=fe(()=>i(e,t)[0],[e,t]),[s=o,a]=be();return Ze(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function gh(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,...gh(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 k5(e,t){let[n,r]=be(t);return!e&&n!==t&&r(t),e?n:t}let ia=st(null);ia.displayName="OpenClosedContext";var Ot=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ot||{});function Mo(){return Ve(ia)}function wh({value:e,children:t}){return K.createElement(ia.Provider,{value:e},t)}function N5({children:e}){return K.createElement(ia.Provider,{value:null},e)}function T5(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Gn=[];T5(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Gn[0]===t.target)return;let n=t.target;n=n.closest(Es),Gn.unshift(n??t.target),Gn=Gn.filter(r=>r!=null&&r.isConnected),Gn.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 $5(e){throw new Error("Unexpected object: "+e)}var wt=(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))(wt||{});function Fa(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:$5(e)}}function yh(e){let t=le(e),n=re(!1);Re(()=>(n.current=!1,()=>{n.current=!0,Xs(()=>{n.current&&t()})}),[t])}function M5(){let e=typeof document>"u";return"useSyncExternalStore"in as?(t=>t.useSyncExternalStore)(as)(()=>()=>{},()=>!1,()=>!e):!1}function Io(){let e=M5(),[t,n]=be(xr.isHandoffComplete);return t&&xr.isHandoffComplete===!1&&n(!1),Re(()=>{t!==!0&&n(!0)},[t]),Re(()=>xr.handoff(),[]),e?!1:t}let vh=st(!1);function I5(){return Ve(vh)}function Od(e){return K.createElement(vh.Provider,{value:e.force},e.children)}function D5(e){let t=I5(),n=Ve(_h),r=ki(e),[i,o]=be(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(xr.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 Re(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),Re(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let bh=ze,O5=ht(function(e,t){let n=e,r=re(null),i=$t(Ax(d=>{r.current=d}),t),o=ki(r),s=D5(r),[a]=be(()=>{var d;return xr.isServer?null:(d=o==null?void 0:o.createElement("div"))!=null?d:null}),l=Ve(gl),u=Io();Ze(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Ze(()=>{if(a&&l)return l.register(a)},[l,a]),yh(()=>{var d;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((d=s.parentElement)==null||d.removeChild(s)))});let f=_t();return u?!s||!a?null:Os(f({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:bh,name:"Portal"}),a):null});function R5(e,t){let n=$t(t),{enabled:r=!0,...i}=e,o=_t();return r?K.createElement(O5,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:bh,name:"Portal"})}let F5=ze,_h=st(null);function P5(e,t){let{target:n,...r}=e,i={ref:$t(t)},o=_t();return K.createElement(_h.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:F5,name:"Popover.Group"}))}let gl=st(null);function L5(){let e=Ve(gl),t=re([]),n=le(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=le(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=fe(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,fe(()=>function({children:o}){return K.createElement(gl.Provider,{value:i},o)},[i])]}let V5=ht(R5),xh=ht(P5),Ch=Object.assign(V5,{Group:xh});function H5(e,t=typeof document<"u"?document.defaultView:null,n){let r=Ai(e,"escape");Xm(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===gt.Escape&&n(i))})}function j5(){var e;let[t]=be(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=be((e=t==null?void 0:t.matches)!=null?e:!1);return Ze(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function B5({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=ki(n),i=le(()=>{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:le(o=>i().some(s=>s.contains(o)))}}let Sh=st(null);function Rd({children:e,node:t}){let[n,r]=be(null),i=Eh(t??n);return K.createElement(Sh.Provider,{value:i},e,i===null&&K.createElement(lo,{features:mi.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=Ei(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 Eh(e=null){var t;return(t=Ve(Sh))!=null?t:e}function xu(){let e=re(!1);return Ze(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Ki=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ki||{});function U5(){let e=re(0);return Zm(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Ah(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 W5="div";var gr=(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))(gr||{});function G5(e,t){let n=re(null),r=$t(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Io()||(a=0);let u=ki(n);Z5(a,{ownerDocument:u});let f=K5(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});X5(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:f});let d=U5(),p=le(C=>{let S=n.current;S&&(M=>M())(()=>{Lt(d.current,{[Ki.Forwards]:()=>{ri(S,cn.First,{skipElements:[C.relatedTarget,o]})},[Ki.Backwards]:()=>{ri(S,cn.Last,{skipElements:[C.relatedTarget,o]})}})})}),h=Ai(!!(a&2),"focus-trap#tab-lock"),m=ar(),v=re(!1),b={ref:r,onKeyDown(C){C.key=="Tab"&&(v.current=!0,m.requestAnimationFrame(()=>{v.current=!1}))},onBlur(C){if(!(a&4))return;let S=Ah(s);n.current instanceof HTMLElement&&S.add(n.current);let M=C.relatedTarget;M instanceof HTMLElement&&M.dataset.headlessuiFocusGuard!=="true"&&(kh(S,M)||(v.current?ri(n.current,Lt(d.current,{[Ki.Forwards]:()=>cn.Next,[Ki.Backwards]:()=>cn.Previous})|cn.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&Dn(C.target)))}},x=_t();return K.createElement(K.Fragment,null,h&&K.createElement(lo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:mi.Focusable}),x({ourProps:b,theirProps:l,defaultTag:W5,name:"FocusTrap"}),h&&K.createElement(lo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:mi.Focusable}))}let z5=ht(G5),q5=Object.assign(z5,{features:gr});function Y5(e=!0){let t=re(Gn.slice());return gu(([n],[r])=>{r===!0&&n===!1&&Xs(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Gn.slice())},[e,Gn,t]),le(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Z5(e,{ownerDocument:t}){let n=!!(e&8),r=Y5(n);gu(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Dn(r())},[n]),yh(()=>{n&&Dn(r())})}function K5(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=re(null),s=Ai(!!(e&1),"focus-trap#initial-focus"),a=xu();return gu(()=>{if(e===0)return;if(!s){i!=null&&i.current&&Dn(i.current);return}let l=n.current;l&&Xs(()=>{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)Dn(r.current);else{if(e&16){if(ri(l,cn.First|cn.AutoFocus)!==fl.Error)return}else if(ri(l,cn.First)!==fl.Error)return;if(i!=null&&i.current&&(Dn(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 X5(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=xu(),s=!!(e&4);Xm(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=Ah(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let f=a.target;f&&f instanceof HTMLElement?kh(l,f)?(i.current=f,Dn(f)):(a.preventDefault(),a.stopPropagation(),Dn(u)):Dn(i.current)},!0)}function kh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Nh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:$h)!==ze||K.Children.count(e.children)===1}let oa=st(null);oa.displayName="TransitionContext";var J5=(e=>(e.Visible="visible",e.Hidden="hidden",e))(J5||{});function Q5(){let e=Ve(oa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function eC(){let e=Ve(sa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let sa=st(null);sa.displayName="NestingContext";function aa(e){return"children"in e?aa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Th(e,t){let n=lr(e),r=re([]),i=xu(),o=ar(),s=le((h,m=Yn.Hidden)=>{let v=r.current.findIndex(({el:b})=>b===h);v!==-1&&(Lt(m,{[Yn.Unmount](){r.current.splice(v,1)},[Yn.Hidden](){r.current[v].state="hidden"}}),o.microTask(()=>{var b;!aa(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=le(h=>{let m=r.current.find(({el:v})=>v===h);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,Yn.Unmount)}),l=re([]),u=re(Promise.resolve()),f=re({enter:[],leave:[]}),d=le((h,m,v)=>{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(()=>v(m)):v(m)}),p=le((h,m,v)=>{Promise.all(f.current[m].splice(0).map(([b,x])=>x)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>v(m))});return fe(()=>({children:r,register:a,unregister:s,onStart:d,onStop:p,wait:u,chains:f}),[a,s,r,d,p,f,u])}let $h=ze,Mh=fi.RenderStrategy;function tC(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:f,enterTo:d,entered:p,leave:h,leaveFrom:m,leaveTo:v,...b}=e,[x,C]=be(null),S=re(null),M=Nh(e),O=$t(...M?[S,t,C]:t===null?[]:[t]),F=(n=b.unmount)==null||n?Yn.Unmount:Yn.Hidden,{show:L,appear:E,initial:_}=Q5(),[k,N]=be(L?"visible":"hidden"),I=eC(),{register:D,unregister:B}=I;Ze(()=>D(S),[D,S]),Ze(()=>{if(F===Yn.Hidden&&S.current){if(L&&k!=="visible"){N("visible");return}return Lt(k,{hidden:()=>B(S),visible:()=>D(S)})}},[k,S,D,B,L,F]);let pe=Io();Ze(()=>{if(M&&pe&&k==="visible"&&S.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[S,k,pe,M]);let Y=_&&!E,U=E&&L&&_,P=re(!1),W=Th(()=>{P.current||(N("hidden"),B(S))},I),j=le(Ee=>{P.current=!0;let te=Ee?"enter":"leave";W.onStart(S,te,_e=>{_e==="enter"?o==null||o():_e==="leave"&&(a==null||a())})}),de=le(Ee=>{let te=Ee?"enter":"leave";P.current=!1,W.onStop(S,te,_e=>{_e==="enter"?s==null||s():_e==="leave"&&(l==null||l())}),te==="leave"&&!aa(W)&&(N("hidden"),B(S))});Re(()=>{M&&i||(j(L),de(L))},[L,M,i]);let z=!(!i||!M||!pe||Y),[,R]=eh(z,x,L,{start:j,end:de}),ge=Un({ref:O,className:((r=cl(b.className,U&&u,U&&f,R.enter&&u,R.enter&&R.closed&&f,R.enter&&!R.closed&&d,R.leave&&h,R.leave&&!R.closed&&m,R.leave&&R.closed&&v,!R.transition&&L&&p))==null?void 0:r.trim())||void 0,...Qm(R)}),me=0;k==="visible"&&(me|=Ot.Open),k==="hidden"&&(me|=Ot.Closed),R.enter&&(me|=Ot.Opening),R.leave&&(me|=Ot.Closing);let we=_t();return K.createElement(sa.Provider,{value:W},K.createElement(wh,{value:me},we({ourProps:ge,theirProps:b,defaultTag:$h,features:Mh,visible:k==="visible",name:"Transition.Child"})))}function nC(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=re(null),a=Nh(e),l=$t(...a?[s,t]:t===null?[]:[t]);Io();let u=Mo();if(n===void 0&&u!==null&&(n=(u&Ot.Open)===Ot.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,d]=be(n?"visible":"hidden"),p=Th(()=>{n||d("hidden")}),[h,m]=be(!0),v=re([n]);Ze(()=>{h!==!1&&v.current[v.current.length-1]!==n&&(v.current.push(n),m(!1))},[v,n]);let b=fe(()=>({show:n,appear:r,initial:h}),[n,r,h]);Ze(()=>{n?d("visible"):!aa(p)&&s.current!==null&&d("hidden")},[n,p]);let x={unmount:i},C=le(()=>{var O;h&&m(!1),(O=e.beforeEnter)==null||O.call(e)}),S=le(()=>{var O;h&&m(!1),(O=e.beforeLeave)==null||O.call(e)}),M=_t();return K.createElement(sa.Provider,{value:p},K.createElement(oa.Provider,{value:b},M({ourProps:{...x,as:ze,children:K.createElement(Ih,{ref:l,...x,...o,beforeEnter:C,beforeLeave:S})},theirProps:{},defaultTag:ze,features:Mh,visible:f==="visible",name:"Transition"})))}function rC(e,t){let n=Ve(oa)!==null,r=Mo()!==null;return K.createElement(K.Fragment,null,!n&&r?K.createElement(wl,{ref:t,...e}):K.createElement(Ih,{ref:t,...e}))}let wl=ht(nC),Ih=ht(tC),Cu=ht(rC),iC=Object.assign(wl,{Child:Cu,Root:wl});var oC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(oC||{}),sC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(sC||{});let aC={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Su=st(null);Su.displayName="DialogContext";function la(e){let t=Ve(Su);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,la),n}return t}function lC(e,t){return Lt(t.type,aC,e,t)}let Fd=ht(function(e,t){let n=tn(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:f=!1,...d}=e,p=re(!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=Mo();i===void 0&&h!==null&&(i=(h&Ot.Open)===Ot.Open);let m=re(null),v=$t(m,t),b=ki(m),x=i?0:1,[C,S]=Or(lC,{titleId:null,descriptionId:null,panelRef:Is()}),M=le(()=>o(!1)),O=le(de=>S({type:0,id:de})),F=Io()?x===0:!1,[L,E]=L5(),_={get current(){var de;return(de=C.panelRef.current)!=null?de:m.current}},k=Eh(),{resolveContainers:N}=B5({mainTreeNode:k,portals:L,defaultContainers:[_]}),I=h!==null?(h&Ot.Closing)===Ot.Closing:!1;Um(u||I?!1:F,{allowed:le(()=>{var de,z;return[(z=(de=m.current)==null?void 0:de.closest("[data-headlessui-portal]"))!=null?z:null]}),disallowed:le(()=>{var de;return[(de=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?de:null]})}),Km(F,N,de=>{de.preventDefault(),M()}),H5(F,b==null?void 0:b.defaultView,de=>{de.preventDefault(),de.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),M()}),Jm(u||I?!1:F,b,N),Wm(F,m,M);let[D,B]=Nx(),pe=fe(()=>[{dialogState:x,close:M,setTitleId:O,unmount:f},C],[x,C,M,O,f]),Y=fe(()=>({open:x===0}),[x]),U={ref:v,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:x===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":D,unmount:f},P=!j5(),W=gr.None;F&&!u&&(W|=gr.RestoreFocus,W|=gr.TabLock,l&&(W|=gr.AutoFocus),P&&(W|=gr.InitialFocus));let j=_t();return K.createElement(N5,null,K.createElement(Od,{force:!0},K.createElement(Ch,null,K.createElement(Su.Provider,{value:pe},K.createElement(xh,{target:m},K.createElement(Od,{force:!1},K.createElement(B,{slot:Y},K.createElement(E,null,K.createElement(q5,{initialFocus:s,initialFocusFallback:m,containers:N,features:W},K.createElement(Vx,{value:M},j({ourProps:U,theirProps:d,slot:Y,defaultTag:uC,features:cC,visible:x===0,name:"Dialog"})))))))))))}),uC="div",cC=fi.RenderStrategy|fi.Static;function dC(e,t){let{transition:n=!1,open:r,...i}=e,o=Mo(),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(Rd,null,K.createElement(iC,{show:r,transition:n,unmount:i.unmount},K.createElement(Fd,{ref:t,...i}))):K.createElement(Rd,null,K.createElement(Fd,{ref:t,open:r,...i}))}let fC="div";function mC(e,t){let n=tn(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=la("Dialog.Panel"),u=$t(t,l.panelRef),f=fe(()=>({open:s===0}),[s]),d=le(b=>{b.stopPropagation()}),p={ref:u,id:r,onClick:d},h=i?Cu:ze,m=i?{unmount:a}:{},v=_t();return K.createElement(h,{...m},v({ourProps:p,theirProps:o,slot:f,defaultTag:fC,name:"Dialog.Panel"}))}let hC="div";function pC(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=la("Dialog.Backdrop"),s=fe(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?Cu:ze,u=n?{unmount:o}:{},f=_t();return K.createElement(l,{...u},f({ourProps:a,theirProps:r,slot:s,defaultTag:hC,name:"Dialog.Backdrop"}))}let gC="h2";function wC(e,t){let n=tn(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=la("Dialog.Title"),a=$t(t);Re(()=>(s(r),()=>s(null)),[r,s]);let l=fe(()=>({open:o===0}),[o]),u={ref:a,id:r};return _t()({ourProps:u,theirProps:i,slot:l,defaultTag:gC,name:"Dialog.Title"})}let yC=ht(dC),vC=ht(mC),bC=ht(pC),_C=ht(wC),Eu=Object.assign(yC,{Panel:vC,Title:_C,Description:Ix});function xC(e,t){let n=re({left:0,top:0});if(Ze(()=>{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 Ld(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 CC(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():Ld(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Ld(e).trim()}function SC(e){let t=re(""),n=re("");return le(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=CC(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var EC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(EC||{}),AC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(AC||{}),kC=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(kC||{}),NC=(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))(NC||{});function Pa(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=qm(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 TC={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===wt.Nothing)return{...a,activeOptionIndex:null};if(t.focus===wt.Specific)return{...a,activeOptionIndex:e.options.findIndex(f=>f.id===t.id)};if(t.focus===wt.Previous){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Fa(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=d.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===wt.Next){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Fa(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=d.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=Pa(e),u=Fa(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=Pa(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=Pa(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=st(null);Au.displayName="ListboxActionsContext";function ua(e){let t=Ve(Au);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ua),n}return t}let ca=st(null);ca.displayName="ListboxDataContext";function Do(e){let t=Ve(ca);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Do),n}return t}function $C(e,t){return Lt(t.type,TC,e,t)}let MC=ze;function IC(e,t){var n;let r=hu(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:f=!1,disabled:d=r||!1,horizontal:p=!1,multiple:h=!1,__demoMode:m=!1,...v}=e;const b=p?"horizontal":"vertical";let x=$t(t),C=px(o),[S=h?[]:void 0,M]=hx(i,l,C),[O,F]=Or($C,{dataRef:Is(),listboxState:m?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:m}),L=re({static:!1,hold:!1}),E=re(new Map),_=jx(u),k=Oe(Q=>Lt(N.mode,{1:()=>S.some(ie=>_(ie,Q)),0:()=>_(S,Q)}),[S]),N=fe(()=>({...O,value:S,disabled:d,invalid:f,mode:h?1:0,orientation:b,compare:_,isSelected:k,optionsPropsRef:L,listRef:E}),[S,d,f,h,O,E]);Ze(()=>{O.dataRef.current=N},[N]);let I=N.listboxState===0;Km(I,[N.buttonElement,N.optionsElement],(Q,ie)=>{var q;F({type:1}),zm(ie,pu.Loose)||(Q.preventDefault(),(q=N.buttonElement)==null||q.focus())});let D=fe(()=>({open:N.listboxState===0,disabled:d,invalid:f,value:S}),[N,d,S,f]),B=le(Q=>{let ie=N.options.find(q=>q.id===Q);ie&&de(ie.dataRef.current.value)}),pe=le(()=>{if(N.activeOptionIndex!==null){let{dataRef:Q,id:ie}=N.options[N.activeOptionIndex];de(Q.current.value),F({type:2,focus:wt.Specific,id:ie})}}),Y=le(()=>F({type:0})),U=le(()=>F({type:1})),P=ar(),W=le((Q,ie,q)=>{P.dispose(),P.microTask(()=>Q===wt.Specific?F({type:2,focus:wt.Specific,id:ie,trigger:q}):F({type:2,focus:Q,trigger:q}))}),j=le((Q,ie)=>(F({type:5,id:Q,dataRef:ie}),()=>F({type:6,id:Q}))),de=le(Q=>Lt(N.mode,{0(){return M==null?void 0:M(Q)},1(){let ie=N.value.slice(),q=ie.findIndex(Ce=>_(Ce,Q));return q===-1?ie.push(Q):ie.splice(q,1),M==null?void 0:M(ie)}})),z=le(Q=>F({type:3,value:Q})),R=le(()=>F({type:4})),ge=le(Q=>{F({type:7,element:Q})}),me=le(Q=>{F({type:8,element:Q})}),we=fe(()=>({onChange:de,registerOption:j,goToOption:W,closeListbox:U,openListbox:Y,selectActiveOption:pe,selectOption:B,search:z,clearSearch:R,setButtonElement:ge,setOptionsElement:me}),[]),[Ee,te]=Dx({inherit:!0}),_e={ref:x},xe=Oe(()=>{if(C!==void 0)return M==null?void 0:M(C)},[M,C]),De=_t();return K.createElement(te,{value:Ee,props:{htmlFor:(n=N.buttonElement)==null?void 0:n.id},slot:{open:N.listboxState===0,disabled:d}},K.createElement(S5,null,K.createElement(Au.Provider,{value:we},K.createElement(ca.Provider,{value:N},K.createElement(wh,{value:Lt(N.listboxState,{0:Ot.Open,1:Ot.Closed})},a!=null&&S!=null&&K.createElement(_x,{disabled:d,data:{[a]:S},form:s,onReset:xe}),De({ourProps:_e,theirProps:v,slot:D,defaultTag:MC,name:"Listbox"}))))))}let DC="button";function OC(e,t){var n;let r=Do("Listbox.Button"),i=ua("Listbox.Button"),o=tn(),s=Fm(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...f}=e,d=$t(t,b5(),i.setButtonElement),p=_5(),h=le(N=>{switch(N.key){case gt.Enter:gx(N.currentTarget);break;case gt.Space:case gt.ArrowDown:N.preventDefault(),qt(()=>i.openListbox()),r.value||i.goToOption(wt.First);break;case gt.ArrowUp:N.preventDefault(),qt(()=>i.openListbox()),r.value||i.goToOption(wt.Last);break}}),m=le(N=>{switch(N.key){case gt.Space:N.preventDefault();break}}),v=le(N=>{var I;if(Sx(N.currentTarget))return N.preventDefault();r.listboxState===0?(qt(()=>i.closeListbox()),(I=r.buttonElement)==null||I.focus({preventScroll:!0})):(N.preventDefault(),i.openListbox())}),b=le(N=>N.preventDefault()),x=Hm([a]),C=kx(),{isFocusVisible:S,focusProps:M}=nx({autoFocus:u}),{isHovered:O,hoverProps:F}=tx({isDisabled:l}),{pressed:L,pressProps:E}=lx({disabled:l}),_=fe(()=>({open:r.listboxState===0,active:L||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:O,focus:S,autofocus:u}),[r.listboxState,r.value,l,O,S,L,r.invalid,u]),k=Im(p(),{ref:d,id:a,type:t3(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:v},M,F,E);return _t()({ourProps:k,theirProps:f,slot:_,defaultTag:DC,name:"Listbox.Button"})}let Dh=st(!1),RC="div",FC=fi.RenderStrategy|fi.Static;function PC(e,t){var n,r;let i=tn(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...f}=e,d=v5(s),[p,h]=be(null);d&&(a=!0);let m=Do("Listbox.Options"),v=ua("Listbox.Options"),b=ki(m.optionsElement),x=Mo(),[C,S]=eh(u,p,x!==null?(x&Ot.Open)===Ot.Open:m.listboxState===0);Wm(C,m.buttonElement,v.closeListbox);let M=m.__demoMode?!1:l&&m.listboxState===0;Jm(M,b);let O=m.__demoMode?!1:l&&m.listboxState===0;Um(O,{allowed:Oe(()=>[m.buttonElement,m.optionsElement],[m.buttonElement,m.optionsElement])});let F=m.listboxState!==0,L=xC(F,m.buttonElement)?!1:C,E=C&&m.listboxState===1,_=k5(E,m.value),k=le(R=>m.compare(_,R)),N=fe(()=>{var R;if(d==null||!((R=d==null?void 0:d.to)!=null&&R.includes("selection")))return null;let ge=m.options.findIndex(me=>k(me.dataRef.current.value));return ge===-1&&(ge=0),ge},[d,m.options]),I=(()=>{if(d==null)return;if(N===null)return{...d,inner:void 0};let R=Array.from(m.listRef.current.values());return{...d,inner:{listRef:{current:R},index:N}}})(),[D,B]=C5(I),pe=x5(),Y=$t(t,d?D:null,v.setOptionsElement,h),U=ar();Re(()=>{var R;let ge=m.optionsElement;ge&&m.listboxState===0&&ge!==((R=Ei(ge))==null?void 0:R.activeElement)&&(ge==null||ge.focus({preventScroll:!0}))},[m.listboxState,m.optionsElement]);let P=le(R=>{var ge,me;switch(U.dispose(),R.key){case gt.Space:if(m.searchQuery!=="")return R.preventDefault(),R.stopPropagation(),v.search(R.key);case gt.Enter:if(R.preventDefault(),R.stopPropagation(),m.activeOptionIndex!==null){let{dataRef:we}=m.options[m.activeOptionIndex];v.onChange(we.current.value)}m.mode===0&&(qt(()=>v.closeListbox()),(ge=m.buttonElement)==null||ge.focus({preventScroll:!0}));break;case Lt(m.orientation,{vertical:gt.ArrowDown,horizontal:gt.ArrowRight}):return R.preventDefault(),R.stopPropagation(),v.goToOption(wt.Next);case Lt(m.orientation,{vertical:gt.ArrowUp,horizontal:gt.ArrowLeft}):return R.preventDefault(),R.stopPropagation(),v.goToOption(wt.Previous);case gt.Home:case gt.PageUp:return R.preventDefault(),R.stopPropagation(),v.goToOption(wt.First);case gt.End:case gt.PageDown:return R.preventDefault(),R.stopPropagation(),v.goToOption(wt.Last);case gt.Escape:R.preventDefault(),R.stopPropagation(),qt(()=>v.closeListbox()),(me=m.buttonElement)==null||me.focus({preventScroll:!0});return;case gt.Tab:R.preventDefault(),R.stopPropagation(),qt(()=>v.closeListbox()),Jx(m.buttonElement,R.shiftKey?cn.Previous:cn.Next);break;default:R.key.length===1&&(v.search(R.key),U.setTimeout(()=>v.clearSearch(),350));break}}),W=(n=m.buttonElement)==null?void 0:n.id,j=fe(()=>({open:m.listboxState===0}),[m.listboxState]),de=Im(d?pe():{},{id:o,ref:Y,"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":W,"aria-orientation":m.orientation,onKeyDown:P,role:"listbox",tabIndex:m.listboxState===0?0:void 0,style:{...f.style,...B,"--button-width":Ux(m.buttonElement,!0).width},...Qm(S)}),z=_t();return K.createElement(Ch,{enabled:a?e.static||C:!1},K.createElement(ca.Provider,{value:m.mode===1?m:{...m,isSelected:k}},z({ourProps:de,theirProps:f,slot:j,defaultTag:RC,features:FC,visible:L,name:"Listbox.Options"})))}let LC="div";function VC(e,t){let n=tn(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Ve(Dh)===!0,l=Do("Listbox.Option"),u=ua("Listbox.Option"),f=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,d=l.isSelected(o),p=re(null),h=SC(p),m=lr({disabled:i,value:o,domRef:p,get textValue(){return h()}}),v=$t(t,p,_=>{_?l.listRef.current.set(r,_):l.listRef.current.delete(r)});Ze(()=>{if(!l.__demoMode&&l.listboxState===0&&f&&l.activationTrigger!==0)return Hn().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]),Ze(()=>{if(!a)return u.registerOption(r,m)},[m,r,a]);let b=le(_=>{var k;if(i)return _.preventDefault();u.onChange(o),l.mode===0&&(qt(()=>u.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),x=le(()=>{if(i)return u.goToOption(wt.Nothing);u.goToOption(wt.Specific,r)}),C=a3(),S=le(_=>{C.update(_),!i&&(f||u.goToOption(wt.Specific,r,0))}),M=le(_=>{C.wasMoved(_)&&(i||f||u.goToOption(wt.Specific,r,0))}),O=le(_=>{C.wasMoved(_)&&(i||f&&u.goToOption(wt.Nothing))}),F=fe(()=>({active:f,focus:f,selected:d,disabled:i,selectedOption:d&&a}),[f,d,i,a]),L=a?{}:{id:r,ref:v,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:S,onMouseEnter:S,onPointerMove:M,onMouseMove:M,onPointerLeave:O,onMouseLeave:O},E=_t();return!d&&a?null:E({ourProps:L,theirProps:s,slot:F,defaultTag:LC,name:"Listbox.Option"})}let HC=ze;function jC(e,t){let{options:n,placeholder:r,...i}=e,o={ref:$t(t)},s=Do("ListboxSelectedOption"),a=fe(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=_t();return K.createElement(Dh.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:K.createElement(K.Fragment,null,r&&l?r:n)},slot:a,defaultTag:HC,name:"ListboxSelectedOption"}))}let BC=ht(IC),Oh=ht(OC),UC=Px,Rh=ht(PC),Fh=ht(VC),WC=ht(jC),GC=Object.assign(BC,{Button:Oh,Label:UC,Options:Rh,Option:Fh,SelectedOption:WC}),vt=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Mi(e){return c(Eu,sr(e,1))}class rr extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Ii(e){return c(Eu.Panel,sr(e,1))}class Ts extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function Ph(e){return c(Eu.Title,sr(e,1))}class Di extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function Oi(e){return c(bC,sr(e,1))}function Ri(e,t){let n;return c("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",y.Children.toArray(Array.from(n))])])))}function zC(e,t){let n,r,i,o,s;return Mi(g([new vt(3,[e]),new vt(4,[t]),new vt(5,[[Oi(ae(new Di(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Ii(ae(new rr(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),c("button",w(g([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[Ri(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(g([["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",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function da(e){return c("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function fa(e){return c("span",{className:"text-sm font-normal pt-2",children:e})}function fo(e,t){return c("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white hover:bg-gray-50",onClick:n=>{t()},type:"button",children:y.Children.toArray([e])})}function qC(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function Lh(){let e,t,n;return c("div",w(g([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[qC(20,20),c("div",w(g([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[c("div",w(g([["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",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function Vh(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function Hh(e){let t,n;return c("div",w(g([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[Vh(16,15),c("div",w(g([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[c("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function ma(e,t){let n;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(n))])])))}class oi extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function jh(e){return c(GC,sr(e,1))}class $s extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function Bh(e){return c(Oh,sr(e,1))}class Uh extends G{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function Wh(e,t){return c(Rh,sr(e,1),...t)}class pn extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function Gh(e){return c(Fh,sr(e,1))}function zh(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}class zi extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function qi(e,t,n,r,i,o,s,a,l){let u,f,d,p,h,m,v;const b=i.fields[0],x=Of(xt(C=>C[1].fields[0],T1(C=>Kf(C.fields[0],b),r)));return c("div",w(g([["key",Xe(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(f=[c("div",w(Z(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=Z(T(()=>H(A(c("div",{className:"text-sm font-medium leading-tight",children:ao(e)})),T(()=>A(t?c("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ae()))))),["children",y.Children.toArray(Array.from(C))]))}))))))],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[ma(16,12)],["children",y.Children.toArray(Array.from(d))])]))),c("div",w(g([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[jh(g([new oi(0,[x]),new oi(1,[C=>{Vn(S=>{s(S[0])},vi(Ls(S=>S[1].fields[0]===C?J(S[2],new An(0,[])):!1,b)))}]),new oi(2,[[c("div",w(g([["className","relative w-full"],(h=[Bh(Z(T(()=>{let C;return H(A(new $s(0,[`${C=t&&n,C&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 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 S;return A(new $s(1,[[c("span",w(Z(T(()=>{let M;const O=t&&n;return M=r!=null?[x,""]:O?["Select a field","text-red-900"]:["Select a field","text-gray-500"],H(A(["className",`${M[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>A(["children",M[0]])))})))),c("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(S=[zh(20,20)],["children",y.Children.toArray(Array.from(S))])])))]]))}))}))),Wh(Z(T(()=>A(new Uh(`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`)))),Z(T(()=>Us(C=>{const S=C[2],M=C[1].fields[0];return A(Gh(g([new pn(0,[fn(C[0].fields[0])]),new pn(1,[M]),new pn(2,[J(S,new An(1,[]))]),new pn(3,["relative select-none"]),new pn(4,[O=>[c("span",{className:"px-4 py-2 block truncate "+(S.tag===0?O.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:M})]])])))},b))))],["children",y.Children.toArray(Array.from(h))])])))]])]))],["children",y.Children.toArray(Array.from(p))])]))),c("div",w(g([(m="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",m]),(v=[c("button",w(Z(T(()=>H(A(["children","Clear"]),T(()=>H(a==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const C=a;if(C==null)return ft();{const S=C;return A(["onClick",M=>{S()}])}})))))))),c("button",w(Z(T(()=>H(A(["children","Preview"]),T(()=>H(l==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const C=l;if(C==null)return ft();{const S=C;return A(["onClick",M=>{S()}])}}))))))))],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(u))])])))}function qh(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function ku(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function Yh(e){let t,n,r;return c("div",w(g([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[c("span",w(g([["className","text-emerald-700"],(n=[ku(20,20)],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[c("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Nu(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function YC(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function ZC(e){return e.startsWith("04")&&e.length===10?`+614${e.slice(2,e.length)}`:e}function Zh(e){return ZC(YC(If(e," ","")))}function KC(e,t){let n,r,i,o,s,a,l;return c("div",w(g([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[c("div",w(g([(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=[c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[c("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${ao(e)}”`})],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[c("div",w(g([["className","self-stretch flex-col justify-center items-start flex"],(a=Zf((u,f)=>c("div",w(Z(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 d;return A((d=Z(T(()=>{const p=yi(f);return A(p?c("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):c("div",w(Z(T(()=>H(A(["className","grow shrink text-gray-700 text-sm font-medium leading-tight"]),T(()=>e.tag===3?A(["children",Zh(f)]):A(["children",f]))))))))})),["children",y.Children.toArray(Array.from(d))]))})))))),t),["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),c("div",w(g([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[c("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(n))])])))}function XC(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=P_(a,l);u=Pr(()=>Fr(()=>f,(S,M)=>L_(a,s,S,M),(S,M)=>{}),void 0,void 0);const d=u[0],p=u[1],h=y.useState(!1),m=h[1],v=y.useState(!1),b=v[0],x=S=>{if(R_(d)(S))return()=>{p(new cr(1,[S]))}},C=S=>{if(F_(d,S))return()=>{p(new cr(2,[S]))}};return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[zC(h[0],()=>{m(!1)}),da("Map fields"),fa("Match the fields from your CSV to the corresponding destination fields."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[fo("What is mapping and why is it important?",()=>{m(!0)})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=Z(T(()=>{let S;return H(A(c("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(S=Z(T(()=>H(l==null?A(Lh()):A(Ae()),T(()=>H(b&&d.Status.tag===0?A(Hh("Some required fields are incomplete. Fill in all required fields to continue.")):A(Ae()),T(()=>{let M,O,F,L,E,_,k,N;return A(c("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(M=[c("div",w(g([(O="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",O]),(F=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(L=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",w(Z(T(()=>H(A(["className",`${d.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 I;return A((I=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",y.Children.toArray(Array.from(I))]))}))))))],["children",y.Children.toArray(Array.from(L))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),c("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(_=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of ${d.NumberOfIncomingFields} used`})],["children",y.Children.toArray(Array.from(_))])])))],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(F))])]))),c("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(k=[c("div",w(ae((N=Z(T(()=>H(A(qi(new oe(0,[]),!0,b,d.FirstName.ColumnIndex,d.FirstName.IncomingFields,new zi(0,[]),I=>{let D;p((D=[new oe(0,[]),I],new cr(0,[D[0],D[1]])))},x(new oe(0,[])),C(new oe(0,[])))),T(()=>H(A(qi(new oe(1,[]),!0,b,d.LastName.ColumnIndex,d.LastName.IncomingFields,new zi(0,[]),I=>{let D;p((D=[new oe(1,[]),I],new cr(0,[D[0],D[1]])))},x(new oe(1,[])),C(new oe(1,[])))),T(()=>H(A(qi(new oe(2,[]),!0,b,d.Email.ColumnIndex,d.Email.IncomingFields,new zi(0,[]),I=>{let D;p((D=[new oe(2,[]),I],new cr(0,[D[0],D[1]])))},x(new oe(2,[])),C(new oe(2,[])))),T(()=>H(A(qi(new oe(3,[]),!1,b,d.MobilePhone.ColumnIndex,d.MobilePhone.IncomingFields,new zi(0,[]),I=>{let D;p((D=[new oe(3,[]),I],new cr(0,[D[0],D[1]])))},x(new oe(3,[])),C(new oe(3,[])))),T(()=>H(A(qi(new oe(4,[]),!1,b,d.EmploymentBasis.ColumnIndex,d.EmploymentBasis.IncomingFields,new zi(1,[]),I=>{let D;p((D=[new oe(4,[]),I],new cr(0,[D[0],D[1]])))},x(new oe(4,[])),C(new oe(4,[])))),T(()=>{let I,D,B,pe,Y,U;return H(d.NumberOfIncomingFieldsDiscarded===0?A(Ae()):A(c("div",w(g([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(I=[c("div",w(g([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(D=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(B=[qh(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(B))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(pe=[ma(16,12)],["children",y.Children.toArray(Array.from(pe))])]))),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(Y=[c("div",w(g([["className","w-[218px] pl-3 items-center inline-flex"],(U=[c("div",w(Z(T(()=>H(A(["className","text-gray-500 text-sm font-medium"]),T(()=>{const P=d.NumberOfIncomingFieldsDiscarded|0;return A(P===1?["children","Remaining 1 unused field"]:["children",`Remaining ${P} unused fields`])}))))))],["children",y.Children.toArray(Array.from(U))])])))],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(D))])])))],["children",y.Children.toArray(Array.from(I))])])))),T(()=>{let P;return A(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(P=Z(T(()=>H(d.NumberOfDestinationFieldsMapped===5?A(Yh("All destination fields have been mapped. You’re good to go.")):A(Ae()),T(()=>{let W,j,de,z,R,ge,me,we,Ee;return A(c("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(W=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(j=[c("div",w(g([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(de=[c("div",w(g([["className","grow shrink basis-0 text-right"],(z=[c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),c("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",y.Children.toArray(Array.from(z))])])))],["children",y.Children.toArray(Array.from(de))])]))),c("div",w(g([["className","justify-start items-center gap-2 flex"],(R=[c("button",w(g([(ge="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ge]),["onClick",te=>{i(d.Status)}],(me=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(me))])]))),c("button",w(g([(we="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",we]),["disabled",b&&d.Status.tag===0],["onClick",te=>{const _e=d.Status;_e.tag===0?v[1](!0):o([_e.fields[0],_e.fields[1]])}],(Ee=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Nu(13,8)],["children",y.Children.toArray(Array.from(Ee))])])))],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(W))])]))))})))),["children",y.Children.toArray(Array.from(P))])]))))}))})))))))))))),["children",y.Children.toArray(Array.from(N))]))))],["children",y.Children.toArray(Array.from(k))])])))],["children",y.Children.toArray(Array.from(M))])]))))})))))),["children",y.Children.toArray(Array.from(S))])])))),T(()=>{const M=d.Preview;return M==null?A(Ae()):A(KC(M[0],M[1]))}))})),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Wo extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class La extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let dr=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}},Go=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},JC=class extends Se{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 mo extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const zn=[void 0];function Kh(e,t,n){let r;const i=t.fields[0],o=zt(s=>s,ps($c(n)));return new JC(Ye(s=>[s,bi(s,o,{Equals:J,GetHashCode:us})?new mo(1,[]):new mo(0,[])],i),n,o.length,Cg(Bs(s=>{let a;return a=zt(l=>l,s),a.length!==0},$c(n))),gm(o,i,{Equals:J,GetHashCode:us}),(r=g(zt(s=>s,ps(Pe(s=>Ye(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),$e(r)?void 0:new E_(se(r),or(Me(r)))),e)}function QC(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>bi(Ll(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:ir}))}function e6(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=QC(e,o);return!Ar(J,s,Ae())&&s.length===0?zn:(r=!0,Ye(a=>a,s))};n=[ti([[new dt(0,[]),i(new dt(0,[]))],[new dt(1,[]),i(new dt(1,[]))],[new dt(2,[]),i(new dt(2,[]))],[new dt(3,[]),i(new dt(3,[]))]],{Compare:Ct}),r]}else{const r=t,i=ti(Ye(o=>[o[0],Ye(s=>s[1],W1(o[1],{Compare:Rl}))],y_(o=>o[0],ps([r.Tail,[r.Head]]),{Equals:J,GetHashCode:us})),{Compare:Ct});n=[ti([[new dt(0,[]),Je(yr(i,new dt(0,[])),zn)],[new dt(1,[]),Je(yr(i,new dt(1,[])),zn)],[new dt(2,[]),Je(yr(i,new dt(2,[])),zn)],[new dt(3,[]),Je(yr(i,new dt(3,[])),zn)]],{Compare:Ct}),!1]}return[Kh(n[1],e,n[0]),X()]}function Xh(e,t){const n=kr(e.Selections,t);let r;switch(!Ar(J,n,Ae())&&n.length===1&&he(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function Jh(e,t){let n;return e.DiscardedValues.length>0?(n=kr(e.Selections,t),!n.some(r=>r==null)):!1}function t6(e,t,n){const r=kr(e.Selections,t);return!Ar(J,r,Ae())&&r.length===1?!1:bi(n,r,{Equals:J,GetHashCode:Qt})}function n6(e,t,n,r){return!J(n,r)&&e.IncomingValues.some(i=>J(i[0],r)?J(i[1],new mo(0,[])):!1)?bi(n,kr(e.Selections,t),{Equals:J,GetHashCode:Qt}):!1}function r6(e,t,n){let r,i;const o=m=>Kh(n.Prefilled,e,m);let s,a,l,u,f,d,p,h;switch(t.tag){case 1:{Xh(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{t6(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],f=t.fields[1]):s=4;break}case 3:{n6(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,d=t.fields[0],p=t.fields[1],h=t.fields[2]):s=4;break}default:Jh(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(Vo(a,m=>xt(v=>Yf(v,zn),m),n.Selections)),X()];case 1:return[o(Vo(l,m=>xt(v=>zn,m),n.Selections)),X()];case 2:return[o(Vo(u,(r=(i=[f],m=>gm(i,m,{Equals:J,GetHashCode:Qt})),m=>xt(r,m)),n.Selections)),X()];case 3:return[o(Vo(d,m=>xt(v=>Ye(b=>J(b,p)?h:b,v),m),n.Selections)),X()];default:return[n,X()]}}function i6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function o6(e,t,n,r,i,o,s){let a,l,u,f,d,p;return c("div",w(g([["key",Xe(e)],["className","justify-start items-start gap-2 inline-flex"],(a=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[c("div",w(g([["className",St(" ",Z(T(()=>H(Ar(J,t,zn)?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=[c("div",{className:"text-sm font-medium leading-tight",children:wm(e)})],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(f=[ma(16,12)],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(g([["className","px-3 justify-start items-center gap-2 flex flex-col"],(d=[c("div",w(ae((p=Z(T(()=>Pe(h=>{let m,v,b;return c("div",w(g([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(m=[c("div",w(g([["className","justify-start items-end flex flex-col w-[206px]"],(v=Z(T(()=>H(A(jh(Z(T(()=>{const x=Of(xt(C=>C.fields[0],h));return H(A(new oi(0,[x])),T(()=>H(A(new oi(1,[C=>{Vn(S=>{s([h,S[0]])},vi(Ls(S=>S[0].fields[0]===C?J(S[1],new mo(0,[])):!1,n)))}])),T(()=>{let C,S;return A(new oi(2,[[c("div",w(g([["className","relative w-full"],(C=[Bh(g([new $s(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 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 $s(1,[[c("span",w(Z(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]])))})))),c("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(S=[zh(20,20)],["children",y.Children.toArray(Array.from(S))])])))]])])),Wh(ae(new Uh("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")),Z(T(()=>Us(M=>{const O=M[1],F=M[0].fields[0];return A(Gh(g([new pn(0,[F]),new pn(1,[F]),new pn(2,[J(O,new mo(1,[]))&&F!==x]),new pn(3,["relative select-none"]),new pn(4,[L=>[c("span",{className:St(" ",Z(T(()=>H(A("px-4 py-2 block truncate"),T(()=>{const E=L.active;let _;switch(L.selected?E?_=2:_=1:O.tag===1?_=0:E?_=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:F})]])])))},n))))],["children",y.Children.toArray(Array.from(C))])])))]]))}))))})))),T(()=>J(h,H1(t))?A(c("button",w(Z(T(()=>{let x;return H(A((x=[i6(14,14),c("span",{children:["Map additional value"]})],["children",y.Children.toArray(Array.from(x))])),T(()=>H(A(["className",St(" ",Z(T(()=>H(A("py-2 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 hover:text-gray-700"))))))]),T(()=>{const C=i;if(C==null)return ft();{const S=C;return A(["onClick",M=>{S()}])}}))))}))))):ft())))),["children",y.Children.toArray(Array.from(v))])]))),c("div",w(g([["className","text-gray-500 text-xs font-normal pl-1"],(b=Z(T(()=>{if(o!=null){const x=o;return A(c("button",{children:"Remove",className:"cursor-pointer underline py-2 hover:text-gray-700",onClick:C=>{x(h)}}))}else return A(c("button",w(Z(T(()=>H(A(["children","Clear"]),T(()=>H(r==null?A(["className","opacity-50 underline cursor-not-allowed mt-2"]):A(["className","cursor-pointer underline py-2 hover:text-gray-700"]),T(()=>{const x=r;if(x==null)return ft();{const C=x;return A(["onClick",S=>{C()}])}})))))))))})),["children",y.Children.toArray(Array.from(b))])])))],["children",y.Children.toArray(Array.from(m))])])))},t))),["children",y.Children.toArray(Array.from(p))]))))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(a))])])))}function s6(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=e6(s,a);l=Pr(()=>Fr(()=>u,(m,v)=>r6(s,m,v),(m,v)=>{}),void 0,void 0);const f=l[0],d=l[1],p=y.useState(!1),h=p[0];return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[da("Map values - Employment basis"),fa("Match the values from your CSV to the corresponding destination values."),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(n=[c("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=Z(T(()=>H(f.Prefilled?A(Lh()):A(Ae()),T(()=>H(h&&f.ValidatedMappings==null?A(Hh("Map at least one value to continue.")):A(Ae()),T(()=>{let m,v,b,x,C,S,M,O,F;return A(c("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(m=[c("div",w(g([(v="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",v]),(b=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(x=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",w(g([["className",St(" ",Z(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=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${f.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",y.Children.toArray(Array.from(C))])])))],["children",y.Children.toArray(Array.from(x))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(S=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),c("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(M=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${f.NumberOfIncomingValuesUsed} of ${f.IncomingValues.length} used`})],["children",y.Children.toArray(Array.from(M))])])))],["children",y.Children.toArray(Array.from(S))])])))],["children",y.Children.toArray(Array.from(b))])]))),c("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(O=[c("div",w(ae((F=Z(T(()=>H(Us(L=>{let E,_,k;const N=L[0];return A(o6(N,L[1],f.IncomingValues,(E=N,Xh(f,E)?()=>{d(new Go(1,[E]))}:void 0),(_=N,Jh(f,_)?()=>{d(new Go(0,[_]))}:void 0),(k=N,kr(f.Selections,k).length>1?I=>{let D;d((D=[k,I],new Go(2,[D[0],D[1]])))}:void 0),I=>{let D;d((D=[N,I[0],I[1]],new Go(3,[D[0],D[1],D[2]])))}))},Ty(f.Selections)),T(()=>{let L,E,_,k,N,I;return H(f.DiscardedValues.length===0?A(Ae()):A(c("div",w(g([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(L=[c("div",w(g([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(E=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[qh(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(_))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[ma(16,12)],["children",y.Children.toArray(Array.from(k))])]))),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(N=[c("div",w(g([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(I=Z(T(()=>H(A(c("div",w(Z(T(()=>H(A(["className","font-medium"]),T(()=>{const D=f.DiscardedValues.length|0;return A(D===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${D} unused fields:`])}))))))),T(()=>{let D;return A(c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(D=Ye(B=>c("li",{children:[B]}),ps(Fn(T(()=>H(A(Ye(B=>B.fields[0],f.DiscardedValues.slice(void 0,8))),T(()=>f.DiscardedValues.length>8?A(["... and 0 other values"]):ft())))))),["children",y.Children.toArray(Array.from(D))])]))))})))),["children",y.Children.toArray(Array.from(I))])])))],["children",y.Children.toArray(Array.from(N))])])))],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(L))])])))),T(()=>{let D;return A(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(D=Z(T(()=>H(f.DiscardedValues.length===0?A(Yh("All incoming values have been mapped.")):A(Ae()),T(()=>{let B,pe,Y,U,P,W,j;return A(c("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(B=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(pe=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(Y=[c("button",w(g([(U="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",U]),["onClick",de=>{i(f.ValidatedMappings)}],(P=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(P))])]))),c("button",w(g([(W="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",W]),["disabled",h&&f.ValidatedMappings==null],["onClick",de=>{const z=f.ValidatedMappings;z==null?p[1](!0):o(z)}],(j=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Nu(13,8)],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(B))])]))))})))),["children",y.Children.toArray(Array.from(D))])]))))}))})))),["children",y.Children.toArray(Array.from(F))]))))],["children",y.Children.toArray(Array.from(O))])])))],["children",y.Children.toArray(Array.from(m))])]))))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class a6 extends Se{constructor(t,n,r){super(),this.IncludesEmploymentInfo=t,this.InviteNow=n,this.Data=r}}class l6 extends Se{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.Errors=u}}class Vd extends Se{constructor(t,n){super(),this.Summary=t,this.Details=n}}function zo(e){if(!yi(e))return e}function Qh(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],A_(n[1])]:void 0;return g(Ye(i=>{let o,s,a,l,u,f,d,p,h,m,v,b,x,C,S,M,O;const F=i.fields[0];return ti(zt(L=>L,[(o=zo(he(t.FirstName.fields[0],F)),o==null?void 0:(s=o,[pr(new oe(0,[])),s])),(a=zo(he(t.LastName.fields[0],F)),a==null?void 0:(l=a,[pr(new oe(1,[])),l])),(u=zo(he(t.Email.fields[0],F)),u==null?void 0:(f=u,[pr(new oe(2,[])),f])),(d=(p=t.MobilePhone,p==null?void 0:(h=zo(he(p.fields[0],F)),h==null?void 0:Zh(h))),d==null?void 0:(m=d,[pr(new oe(3,[])),m])),(v=(b=r,b==null?void 0:(x=b,C=(S=he(x[0],F),M=Ae(),[ky(x[1],S,new bt(()=>M,L=>{M=L})),M]),C[0]?C[1]:void 0)),v==null?void 0:(O=v,[pr(new oe(4,[])),O]))]),{Compare:Rr})},e.fields[0]))}function u6(e,t,n){const r=pr(n);return[yr(e.Data,r),!zl(i=>i.PropName===r,t)]}function c6(e,t){const n=bm(t.PropName);if(n==null)return["Invalid or missing field",!1];{const r=n,i=ao(r).toLocaleLowerCase();if(yr(e.Data,pr(r))!=null){let s;switch(r.tag===2&&t.Message.startsWith("Duplicate")?s=0:s=1,s){case 0:return[`Duplicate ${i}`,!1];default:return[`Invalid ${i}`,!0]}}else return[`Missing ${i}`,!1]}}function Hd(e){const t=bm(e.PropName);if(t==null)return e.Message;{const n=t;let r;switch(n.tag===2&&e.Message.startsWith("Duplicate")?r=0:r=1,r){case 0:return`${ao(n)} exists in multiple rows`;default:return If(e.Message,e.Column,ao(n))}}}function d6(e,t,n,r){return ue.Delay(()=>ue.TryWith(ue.Delay(()=>{let i,o,s;return ue.ReturnFrom((i=new z0(r!=null,Gl((a,l)=>new au(a,l),(o=[t,n,r],Qh(o[0],o[1],o[2])))),s=e(i),ue.Bind(s,a=>{let l;const u=a;return l=u.tag===1?new $(1,[u.fields[0]]):new $(0,[Jn(f=>{let d,p,h,m,v;const b=Je((d=eg(C=>C.RowId===f.RowId,u.fields[0].Errors),d==null?void 0:d.FieldErrors),ot()),x=C=>u6(f,b,C);return new l6(f.RowId+1,x(new oe(0,[])),x(new oe(1,[])),x(new oe(2,[])),x(new oe(3,[])),(p=x(new oe(4,[])),[(h=(m=p[0],m==null?void 0:S_(m)),h==null?void 0:wm(h)),p[1]]),zl(C=>C.Message.startsWith("Duplicate Email"),b),!$e(Tn(C=>!C.Message.startsWith("Duplicate Email"),b)),$e(b)?void 0:$e(Me(b))?(v=c6(f,se(b)),new Vd(v[0],v[1]?ae(Hd(se(b))):void 0)):new Vd("Multiple invalid or missing fields",Jn(Hd,b)))},i.Data)]),ue.Return(l)})))}),i=>ue.Return(new $(1,[Xe(i)]))))}function f6(e,t,n,r,i){return ue.Delay(()=>ue.TryWith(ue.Delay(()=>{let o;return ue.Bind(e(new a6(r!=null,J(i,new kt(0,[])),Gl((s,a)=>new au(s,a),(o=[t,n,r],Qh(o[0],o[1],o[2]))))),s=>{let a;return ue.Return((a=s,a.tag===1?new $(1,[a.fields[0]]):new $(0,[a.fields[0].ImportId])))})}),o=>ue.Return(new $(1,[Xe(o)]))))}let Xi=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage"]}},qr=class extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validating","Reviewing"]}};class Yi extends Se{constructor(t,n,r,i,o,s,a,l,u,f,d,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=d|0,this.Page=p,this.PageNo=h|0}}function m6(e){return[new qr(0,[]),y0(t=>{v0(t)},e,void 0,t=>new Xi(0,[t]))]}function qo(e,t,n){const r=(e-1)*20|0,i=sg(r,e*20-1,n?Tn(o=>o.Errors!=null,t):t);if($e(i))return[0,0,ot()];{const o=i;return[r+1,r+un(o),o]}}function ep(e){return e.PageNo>1}function tp(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function h6(e,t){const n=Tn(r=>r.Errors!=null,e.Data);return bo(ae(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
|
|
50
|
-
`),
|
|
51
|
-
`;return t?`${o},${s},${a},${l},${u},${Je(i.EmploymentBasis[0],"")},${i.RowNumber}${f}`:`${o},${s},${a},${l},${u},${i.RowNumber}${f}`},n))}function p6(e,t,n){let r,i,o,s,a,l,u,f,d,p,h;switch(t.tag){case 1:{n.tag===1?(i=2,a=t.fields[0],l=n.fields[0]):(i=6,h=n);break}case 2:{n.tag===1?(r=n.fields[0],r.HasErrors&&r.ShowingOnlyRowsWithErrors!==t.fields[0]?(i=3,u=n.fields[0],f=t.fields[0]):(i=6,h=n)):(i=6,h=n);break}case 3:{n.tag===1&&tp(n.fields[0])?(i=4,d=n.fields[0]):(i=6,h=n);break}case 4:{n.tag===1&&ep(n.fields[0])?(i=5,p=n.fields[0]):(i=6,h=n);break}default:t.fields[0].tag===1?n.tag===0?(i=1,s=t.fields[0].fields[0]):(i=6,h=n):n.tag===0?(i=0,o=t.fields[0].fields[0]):(i=6,h=n)}switch(i){case 0:{let m;const v=[o,!1];return m=qo(1,v[0],v[1]),[new qr(1,[new Yi(o,new kt(1,[]),un(Tn(b=>b.HasDuplicateEmailError,o)),un(Tn(b=>b.HasErrorOtherThanDuplicateEmail,o)),un(Tn(b=>b.Errors!=null,o)),un(o),un(Tn(b=>b.Errors==null,o)),!1,zl(b=>b.Errors!=null,o),m[0],m[1],m[2],1)]),X()]}case 1:return[n,Jo(m=>{e(s)})];case 2:return[new qr(1,[new Yi(l.Data,a,l.DuplicateEmailCount,l.NumberOfRowsWithErrorsOtherThanDuplicateEmail,l.NumberOfInvalidRows,l.NumberOfRows,l.NumberOfValidRows,l.ShowingOnlyRowsWithErrors,l.HasErrors,l.RowFrom,l.RowTo,l.Page,l.PageNo)]),X()];case 3:{let m;const v=[u.Data,f];return m=qo(1,v[0],v[1]),[new qr(1,[new Yi(u.Data,u.InviteTiming,u.DuplicateEmailCount,u.NumberOfRowsWithErrorsOtherThanDuplicateEmail,u.NumberOfInvalidRows,u.NumberOfRows,u.NumberOfValidRows,f,u.HasErrors,m[0],m[1],m[2],1)]),X()]}case 4:{const m=d.PageNo+1|0;let v;const b=[d.Data,d.ShowingOnlyRowsWithErrors];return v=qo(m,b[0],b[1]),[new qr(1,[new Yi(d.Data,d.InviteTiming,d.DuplicateEmailCount,d.NumberOfRowsWithErrorsOtherThanDuplicateEmail,d.NumberOfInvalidRows,d.NumberOfRows,d.NumberOfValidRows,d.ShowingOnlyRowsWithErrors,d.HasErrors,v[0],v[1],v[2],m)]),X()]}case 5:{const m=p.PageNo-1|0;let v;const b=[p.Data,p.ShowingOnlyRowsWithErrors];return v=qo(m,b[0],b[1]),[new qr(1,[new Yi(p.Data,p.InviteTiming,p.DuplicateEmailCount,p.NumberOfRowsWithErrorsOtherThanDuplicateEmail,p.NumberOfInvalidRows,p.NumberOfRows,p.NumberOfValidRows,p.ShowingOnlyRowsWithErrors,p.HasErrors,v[0],v[1],v[2],m)]),X()]}default:return[h,X()]}}function np(e,t){let n,r,i;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(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"]]))),c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function rp(e,t,n){let r,i,o,s,a,l,u,f,d,p,h,m,v,b,x,C,S,M,O,F,L,E;return Mi(g([new vt(3,[t]),new vt(4,[n]),new vt(5,[[Oi(ae(new Di(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Ii(ae(new rr(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(i=[c("div",w(g([["className","flex flex-row justify-between"],(o=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),c("button",w(g([["onClick",_=>{n()}],["type","button"],["className","text-gray-600"],(s=[Ri(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","text-gray-600 text-sm pt-6"],(a=[c("span",{children:"Fields marked with "}),c("span",{className:"text-red-600",children:"*"}),c("span",w(ae((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",y.Children.toArray(Array.from(a))])]))),c("div",w(g([["className","grid grid-cols-2 mt-3"],(u=[c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(f=[c("span",{children:"First name "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(ae((d=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(d))])))),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[c("span",{children:"Last name "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(h))])]))),c("div",w(ae((m=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(v=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(m))])))),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(b=[c("span",{children:"Email "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(b))])]))),c("div",w(ae((x=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(C=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",y.Children.toArray(Array.from(C))])])))],["children",y.Children.toArray(Array.from(x))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),c("div",w(ae((S=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(M=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"+61432368712"})],["children",y.Children.toArray(Array.from(M))])])))],["children",y.Children.toArray(Array.from(S))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),c("div",w(ae((O=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(F=[c("span",{children:"One of the following options:"}),c("br",{}),c("ul",w(g([["className","italic list-disc px-3"],(L=[c("li",{children:"Full-time"}),c("li",{children:"Part-time"}),c("li",{children:"Labour hire"}),c("li",{children:"Casual"})],["children",y.Children.toArray(Array.from(L))])])))],["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(O))])))),c("a",w(g([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(E=[c("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),np(16,16)],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(i))])])))]])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}function g6(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m;return Mi(g([new vt(3,[e]),new vt(4,[t]),new vt(5,[[Oi(ae(new Di(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Ii(ae(new rr(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),c("button",w(g([["onClick",v=>{t()}],["type","button"],["className","text-gray-600"],(o=[Ri(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(g([["className","text-gray-500 text-sm font-normal pt-6"],(s=[c("p",w(ae((a=[c("span",{children:["Workplace benefits is a"]}),c("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.",c("span",{children:[l]}))],["children",y.Children.toArray(Array.from(a))])))),c("p",w(g([["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 ",c("span",{children:[f]})),c("span",{className:"font-semibold",children:" Flare App"}),c("span",{children:["."]})],["children",y.Children.toArray(Array.from(u))])]))),c("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),c("ul",w(g([["className","list-inside list-disc pt-3"],(d=[c("li",w(ae((p=[c("span",{className:"font-semibold",children:"Savings "}),c("span",{children:["on essentials like food, fuel, and more."]})],["children",y.Children.toArray(Array.from(p))])))),c("li",w(g([["className","pt-2"],(h=[c("span",{className:"font-semibold",children:"Exclusive offers "}),c("span",{children:["from leading brands and retailers."]})],["children",y.Children.toArray(Array.from(h))])]))),c("li",w(g([["className","pt-2"],(m=[c("span",{className:"font-semibold",children:"Tax savings "}),c("span",{children:["with salary packaging."]})],["children",y.Children.toArray(Array.from(m))])])))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}const w6=e=>c("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{id:"Group 67"},c("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)"}),c("g",{id:"Group",opacity:.95},c("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)"})),c("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)"}),c("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"}),c("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"}),c("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"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#161E37"}),c("stop",{offset:.11,stopColor:"#172243"}),c("stop",{offset:.31,stopColor:"#1B2E62"}),c("stop",{offset:.57,stopColor:"#214196"}),c("stop",{offset:.89,stopColor:"#2A5CDD"}),c("stop",{offset:1,stopColor:"#2E66F7"})),c("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{offset:.11,stopColor:"#FF876F"}),c("stop",{offset:.99,stopColor:"#A650FF"})),c("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#0095F2"}),c("stop",{offset:.29,stopColor:"#307CF6"}),c("stop",{offset:.61,stopColor:"#6163FB"}),c("stop",{offset:.86,stopColor:"#7F54FD"}),c("stop",{offset:1,stopColor:"#8B4FFF"})))),y6=e=>c("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:12,viewBox:"0 0 12 12",fill:"none",...e},c("path",{d:"M6.00033 0.666504C3.05966 0.666504 0.666992 3.05917 0.666992 5.99984C0.666992 8.9405 3.05966 11.3332 6.00033 11.3332C8.94099 11.3332 11.3337 8.9405 11.3337 5.99984C11.3337 3.05917 8.94099 0.666504 6.00033 0.666504ZM6.50033 8.54584C6.50033 8.82184 6.27633 9.04584 6.00033 9.04584C5.72433 9.04584 5.50033 8.82184 5.50033 8.54584V5.49984C5.50033 5.22384 5.72433 4.99984 6.00033 4.99984C6.27633 4.99984 6.50033 5.22384 6.50033 5.49984V8.54584ZM6.00033 4.49984C5.63233 4.49984 5.33366 4.2005 5.33366 3.83317C5.33366 3.46584 5.63233 3.1665 6.00033 3.1665C6.36833 3.1665 6.66699 3.46584 6.66699 3.83317C6.66699 4.2005 6.36833 4.49984 6.00033 4.49984Z",fill:"currentColor"})),v6=e=>c("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_4584_4202)"}),c("g",{clipPath:"url(#clip0_4584_4202)"},c("path",{d:"M9.24302 26.953L18.152 10.111C18.33 9.77467 18.5963 9.49321 18.9222 9.2969C19.2482 9.10059 19.6215 8.99686 20.002 8.99686C20.3825 8.99686 20.7559 9.10059 21.0818 9.2969C21.4078 9.49321 21.6741 9.77467 21.852 10.111L30.761 26.953C30.9282 27.2708 31.0103 27.6266 30.9991 27.9855C30.988 28.3445 30.8841 28.6944 30.6975 29.0013C30.5109 29.3081 30.2479 29.5614 29.9343 29.7364C29.6207 29.9115 29.2672 30.0023 28.908 30H11.092C10.7332 30.0016 10.3801 29.9103 10.0671 29.735C9.75404 29.5597 9.49169 29.3063 9.30555 28.9996C9.11942 28.6928 9.01583 28.3431 9.00488 27.9845C8.99392 27.6259 9.07596 27.2705 9.24302 26.953V26.953Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20 16V22",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20 27C20.8284 27 21.5 26.3284 21.5 25.5C21.5 24.6716 20.8284 24 20 24C19.1716 24 18.5 24.6716 18.5 25.5C18.5 26.3284 19.1716 27 20 27Z",fill:"#DC2626"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4584_4202",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#FECACA"}),c("stop",{offset:1,stopColor:"#FECACA",stopOpacity:0})),c("clipPath",{id:"clip0_4584_4202"},c("rect",{width:24,height:24,fill:"white",transform:"translate(8 8)"})))),b6=e=>c("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_3326_53774)"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.3272 22.6261C28.5428 23.1983 28.2016 23.8306 27.6205 24.025C26.6465 24.3503 25.3424 24.6628 23.7902 24.7151C23.7699 24.6508 23.7476 24.5864 23.7234 24.522C23.042 22.7136 21.7109 21.2192 20.0107 20.3308C20.9217 19.6032 22.0762 19.1683 23.3339 19.1683C25.6205 19.1683 27.5661 20.6061 28.3272 22.6261Z",fill:"#93C5FD"}),c("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",fill:"#93C5FD"}),c("path",{d:"M16.3892 19.1667C17.6165 19.1667 18.6114 18.1718 18.6114 16.9445C18.6114 15.7172 17.6165 14.7222 16.3892 14.7222C15.1619 14.7222 14.167 15.7172 14.167 16.9445C14.167 18.1718 15.1619 19.1667 16.3892 19.1667Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20.6771 26.8022C21.2583 26.6078 21.5994 25.9756 21.3838 25.4033C20.6227 23.3833 18.6771 21.9456 16.3905 21.9456C14.1038 21.9456 12.1583 23.3833 11.3971 25.4033C11.1816 25.9767 11.5227 26.6089 12.1038 26.8022C13.1727 27.1589 14.6383 27.5 16.3916 27.5C18.1449 27.5 19.6094 27.1589 20.6771 26.8022Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M24.1664 24.6967C25.553 24.6111 26.7264 24.3233 27.6208 24.0245C28.2019 23.83 28.543 23.1978 28.3275 22.6256C27.5664 20.6056 25.6208 19.1678 23.3341 19.1678C22.2486 19.1678 21.2397 19.4922 20.3975 20.0489",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("defs",null,c("linearGradient",{id:"paint0_linear_3326_53774",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#D6E2FC"}),c("stop",{offset:1,stopColor:"#D6E2FC",stopOpacity:0})))),_6=e=>c("svg",{width:96,height:28,viewBox:"0 0 96 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{clipPath:"url(#clip0_3030_30757)"},c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.40895 5.42706C5.79785 4.83985 8.86151 3.00302 11.0249 0.261313C11.1152 0.153807 11.235 0.0767261 11.3686 0.0401219C11.5021 0.00351777 11.6434 0.0090886 11.7738 0.056108C11.9043 0.103127 12.0179 0.189414 12.0999 0.303716C12.1819 0.418018 12.2285 0.555032 12.2335 0.696894L12.2335 11.4663C12.2313 11.588 12.1985 11.7071 12.1382 11.812C12.078 11.9168 11.9924 12.0039 11.8897 12.0648C11.787 12.1257 11.6708 12.1583 11.5522 12.1594C11.4336 12.1606 11.3168 12.1303 11.213 12.0714L2.17962 6.71732C2.06323 6.6422 1.97142 6.53301 1.91604 6.40381C1.86067 6.27462 1.84426 6.13136 1.86894 5.9925C1.89362 5.85364 1.95825 5.72556 2.05451 5.62478C2.15076 5.52399 2.27422 5.45513 2.40895 5.42706ZM2.40895 22.6054C5.79785 23.1926 8.86151 25.0295 11.0249 27.7712C11.1152 27.8787 11.235 27.9557 11.3686 27.9923C11.5021 28.029 11.6434 28.0234 11.7738 27.9764C11.9043 27.9293 12.0179 27.8431 12.0999 27.7288C12.1819 27.6145 12.2285 27.4774 12.2335 27.3356L12.2335 16.5756C12.2328 16.453 12.2012 16.3328 12.1416 16.2267C12.082 16.1205 11.9965 16.0321 11.8936 15.9701C11.7906 15.9081 11.6738 15.8747 11.5544 15.8731C11.4351 15.8715 11.3174 15.9018 11.213 15.961L2.17962 21.3151C2.06323 21.3903 1.97142 21.4995 1.91604 21.6287C1.86067 21.7578 1.84426 21.9011 1.86894 22.04C1.89362 22.1788 1.95825 22.3069 2.05451 22.4077C2.15076 22.5085 2.27422 22.5773 2.40895 22.6054ZM0.20511 8.8811C1.43425 12.1754 1.45137 15.8168 0.253269 19.1231C0.21046 19.2568 0.207545 19.4007 0.244898 19.5361C0.28225 19.6715 0.358167 19.7924 0.462907 19.8833C0.567647 19.9741 0.696433 20.0307 0.832742 20.0459C0.96905 20.0611 1.10666 20.0341 1.22793 19.9684L10.2567 14.6166C10.3578 14.5537 10.4414 14.465 10.4994 14.3592C10.5574 14.2535 10.5879 14.1341 10.5879 14.0127C10.5879 13.8913 10.5574 13.772 10.4994 13.6662C10.4414 13.5604 10.3578 13.4717 10.2567 13.4088L1.17518 8.02406C1.05302 7.95812 0.914374 7.93142 0.777244 7.94743C0.640114 7.96344 0.510844 8.02142 0.406231 8.11384C0.301618 8.20627 0.226497 8.32886 0.190631 8.46568C0.154764 8.60251 0.159809 8.74725 0.20511 8.8811ZM23.6634 22.6054C20.2745 23.1926 17.2108 25.0295 15.0474 27.7712C14.9571 27.8787 14.8374 27.9557 14.7038 27.9923C14.5702 28.029 14.4289 28.0234 14.2985 27.9764C14.168 27.9293 14.0544 27.8431 13.9724 27.7288C13.8904 27.6145 13.8439 27.4774 13.8388 27.3356L13.8388 16.5756C13.8397 16.4534 13.8714 16.3335 13.9309 16.2277C13.9904 16.1219 14.0756 16.0337 14.1781 15.9718C14.2807 15.9098 14.3972 15.8763 14.5162 15.8744C14.6352 15.8725 14.7527 15.9024 14.8571 15.961L23.8927 21.3152C24.0091 21.3903 24.1009 21.4995 24.1563 21.6287C24.2117 21.7579 24.2281 21.9011 24.2034 22.04C24.1787 22.1788 24.1141 22.3069 24.0178 22.4077C23.9216 22.5085 23.7981 22.5773 23.6634 22.6054ZM15.0474 0.261313C17.2108 3.00302 20.2745 4.83985 23.6634 5.42706C23.7981 5.45513 23.9216 5.52399 24.0178 5.62478C24.1141 5.72556 24.1787 5.85364 24.2034 5.9925C24.2281 6.13136 24.2117 6.27462 24.1563 6.40381C24.1009 6.53301 24.0091 6.6422 23.8927 6.71732L14.8571 12.0714C14.7533 12.1297 14.6367 12.1596 14.5185 12.1581C14.4002 12.1567 14.2844 12.124 14.182 12.0632C14.0797 12.0024 13.9943 11.9155 13.9342 11.8109C13.8741 11.7064 13.8412 11.5877 13.8388 11.4663L13.8388 0.696894C13.8439 0.555032 13.8904 0.418018 13.9724 0.303716C14.0544 0.189414 14.168 0.103127 14.2985 0.056108C14.4289 0.0090886 14.5702 0.00351777 14.7038 0.0401219C14.8374 0.0767261 14.9571 0.153807 15.0474 0.261313ZM25.8168 8.90935C24.6184 12.2158 24.6363 15.8576 25.8672 19.1514C25.913 19.2855 25.9182 19.4307 25.8823 19.5679C25.8464 19.7052 25.7711 19.8281 25.666 19.9207C25.561 20.0133 25.4312 20.0711 25.2936 20.0868C25.1561 20.1024 25.0171 20.0751 24.8949 20.0084L15.8111 14.6237C15.71 14.5607 15.6264 14.4721 15.5684 14.3663C15.5104 14.2605 15.4799 14.1412 15.4799 14.0198C15.4799 13.8984 15.5104 13.779 15.5684 13.6732C15.6264 13.5674 15.71 13.4788 15.8111 13.4158L24.8421 8.06409C24.9634 7.9984 25.101 7.97141 25.2373 7.98657C25.3736 8.00174 25.5024 8.05837 25.6072 8.14921C25.7119 8.24004 25.7878 8.36093 25.8252 8.49637C25.8625 8.63181 25.8596 8.77562 25.8168 8.90935Z",fill:"#2696EC"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2209 10.9851V23.8468H35.8118V10.9851H33.4648V7.92778H35.8118V6.51672C35.8118 4.91439 36.1765 3.76595 36.9061 3.0714C37.6356 2.37685 38.8454 2.02879 40.5355 2.02722H42.4442V4.82816H41.2857C40.5347 4.82816 40.0032 4.98495 39.6912 5.29851C39.3769 5.6207 39.2209 6.16396 39.2209 6.94474V7.93718H42.3891V10.9945L39.2209 10.9851ZM48.9092 2.03663L45.4679 2.03663V23.8421L48.9092 23.8421V2.03663ZM67.5974 23.8468V7.93718L64.2755 7.93718V10.1196C63.6573 9.3308 62.873 8.69564 61.9813 8.26172C61.0863 7.83165 60.1089 7.61228 59.1205 7.6197C58.0959 7.5972 57.0782 7.79484 56.1327 8.19987C55.1871 8.60491 54.3348 9.20838 53.6305 9.97145C52.1393 11.5597 51.3937 13.5195 51.3937 15.8508C51.3952 18.2324 52.1202 20.2032 53.5686 21.7632C55.017 23.3232 56.8362 24.1031 59.0264 24.1031C60.0369 24.1101 61.0362 23.886 61.9515 23.447C62.8575 23.009 63.6545 22.3657 64.2823 21.5656V23.8468H67.5974ZM55.138 17.7811C54.9016 17.1671 54.7876 16.5107 54.8028 15.8508C54.7876 15.1909 54.9016 14.5346 55.138 13.9206C55.3744 13.3066 55.7285 12.7475 56.1794 12.2762C56.6129 11.8155 57.1322 11.4489 57.7066 11.1979C58.281 10.947 58.8988 10.8169 59.5231 10.8153C60.1475 10.8138 60.7658 10.9409 61.3414 11.189C61.917 11.4371 62.4381 11.8012 62.8737 12.2597C63.3183 12.7374 63.6661 13.3008 63.8968 13.9172C64.1276 14.5337 64.2368 15.1909 64.2181 15.8508C64.2368 16.5108 64.1276 17.168 63.8968 17.7844C63.6661 18.4009 63.3183 18.9642 62.8737 19.442C62.4381 19.9005 61.917 20.2646 61.3414 20.5127C60.7658 20.7608 60.1475 20.8879 59.5231 20.8863C58.8988 20.8848 58.281 20.7547 57.7066 20.5038C57.1322 20.2528 56.6129 19.8861 56.1794 19.4255C55.7285 18.9542 55.3744 18.395 55.138 17.7811ZM74.317 14.254V23.8468H70.9079V7.93718L74.223 7.93718V9.54108C74.592 8.94917 75.0969 8.45902 75.6935 8.11357C76.2985 7.77921 76.977 7.60919 77.6642 7.6197C78.1147 7.61511 78.5633 7.68012 78.9948 7.81254C79.3586 7.91663 79.6949 8.10308 79.979 8.35815L78.2584 11.4366C78.0425 11.2918 77.8055 11.1831 77.5564 11.1144C77.3265 11.052 77.0899 11.0196 76.8521 11.018C76.4954 11.0017 76.1402 11.0733 75.8161 11.2268C75.4919 11.3802 75.2084 11.611 74.9892 11.8999C74.5411 12.4863 74.317 13.271 74.317 14.254ZM95.8271 16.467C95.8432 16.34 95.8432 16.1472 95.8432 15.8908C95.8355 13.4967 95.0815 11.5197 93.5811 9.95969C92.0807 8.3997 90.1835 7.6197 87.8893 7.6197C85.5676 7.61186 83.642 8.38872 82.1126 9.95029C80.5831 11.5119 79.8184 13.4897 79.8184 15.8838C79.8184 18.2982 80.5587 20.2698 82.0392 21.7984C83.5197 23.3271 85.4384 24.0914 87.7952 24.0914C89.5346 24.1334 91.2443 23.6242 92.691 22.6333C94.0578 21.6868 95.0674 20.2892 95.5518 18.6729H91.9546C91.5609 19.4036 90.9761 20.0071 90.266 20.4156C89.5283 20.8295 88.6981 21.0394 87.8572 21.0247C86.7294 21.0612 85.6315 20.65 84.7922 19.877C83.977 19.1229 83.4975 18.1038 83.3537 16.8198H95.7812C95.8037 16.7033 95.819 16.5855 95.8271 16.467ZM87.8324 10.6957C87.8338 10.6957 87.8351 10.6958 87.8365 10.6958H87.8274C87.829 10.6958 87.8307 10.6957 87.8324 10.6957ZM84.9413 11.7212C85.7535 11.0344 86.7798 10.6704 87.8324 10.6957C88.8902 10.6749 89.9201 11.0447 90.7341 11.7376C91.5425 12.4257 92.0583 13.409 92.1725 14.4798L83.3927 14.4798C83.5781 13.4028 84.1261 12.4266 84.9413 11.7212Z",fill:"#143057"})),c("defs",null,c("clipPath",{id:"clip0_3030_30757"},c("rect",{width:95.6667,height:28,fill:"white",transform:"translate(0.166992)"}))));function Oo(e,t){return y.createElement(e,w(t))}function x6(e){return Oo(w6,e)}function C6(e){return Oo(y6,e)}function S6(e){return Oo(v6,e)}function E6(e){return Oo(b6,e)}function A6(e){return Oo(_6,e)}function k6(e,t,n,r){let i,o,s,a,l,u,f,d,p,h,m;return Mi(g([new vt(3,[e]),new vt(4,[n]),new vt(5,[[Oi(ae(new Di(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(i=[c("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(o=[Ii(g([new rr(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new rr(2,[[c("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(s=[c("button",w(g([["type","button"],["onClick",v=>{n()}],["className","text-gray-600"],(a=[Ri(24,24)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),c("div",w(g([["className","sm:flex sm:items-start"],(l=[c("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(u=[E6([])],["children",y.Children.toArray(Array.from(u))])]))),c("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(f=[Ph(g([new Ts(2,["text-gray-900 text-lg font-bold"]),new Ts(3,[[`Import ${t} users`]])])),c("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(d=[c("p",{children:[`Are you sure you want to import ${t} users?`]})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(p=[c("button",w(g([["type","button"],["onClick",v=>{r()}],(h="inline-flex w-full justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-emerald-700 sm:ml-3 sm:w-auto",["className",h]),["children","Confirm import"]]))),c("button",w(g([["type","button"],["onClick",v=>{n()}],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",m]),["children","Cancel"]])))],["children",y.Children.toArray(Array.from(p))])])))]])]))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])])))]])]))}function N6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ae(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function T6(e){return`${jl(e,".")}.`}function jd(e){return jl(e,".")}function $6(e){let t;const n=e.children,r=e.text,i=y.useState(!1),o=i[1];return c("div",w(g([["className","relative inline-block"],["onMouseEnter",s=>{o(!0)}],["onMouseLeave",s=>{o(!1)}],(t=Z(T(()=>H(n,T(()=>{let s,a;return i[0]?A(c("div",w(g([(s="absolute top-0 left-full -translate-y-1/4 ml-1 text-left text-white text-xs leading-5 font-medium ring-1 ring-black ring-opacity-5 shadow-md rounded-md bg-gray-900 px-3 py-2 w-60 text-wrap",["className",s]),(a=Z(T(()=>{let l;return $e(r)?A(c("ul",w(g([["className","list-inside list-disc"],(l=Z(T(()=>Pe(u=>c("li",{children:[jd(u)]}),r))),["children",y.Children.toArray(Array.from(l))])])))):$e(Me(r))?A(c("p",{children:[T6(se(r))]})):A(c("ul",w(g([["className","list-inside list-disc"],(l=Z(T(()=>Pe(u=>c("li",{children:[jd(u)]}),r))),["children",y.Children.toArray(Array.from(l))])]))))})),["children",y.Children.toArray(Array.from(a))])])))):ft()})))),["children",y.Children.toArray(Array.from(t))])])))}function Ur(e,t){let n;return c("div",w(g([["className",St(" ",["animate-pulse w-full relative",e,t])],(n=[c("div",{className:St(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}function M6(){let e,t,n,r,i,o,s,a,l,u,f,d;return c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[c("div",w(g([["className","flex-col justify-start items-end gap-4 inline-flex"],(t=[c("div",w(g([["className","justify-start items-center gap-2 inline-flex"],(n=[c("input",{type:"checkbox",defaultChecked:!1,disabled:!0,className:"rounded-sm border border-gray-300 bg-white"}),c("span",{className:"text-gray-400 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[c("div",w(g([["className","w-[1030px]"],(i=Z(T(()=>{let p,h,m,v;return H(A(c("div",w(g([["className","bg-gray-100 flex"],(p=[c("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(h=[Ur("h-5","w-full")],["children",y.Children.toArray(Array.from(h))])]))),c("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(m=[Ur("h-5","w-full")],["children",y.Children.toArray(Array.from(m))])]))),c("div",w(g([["className","px-3 py-2.5 text-left flex-1"],(v=[Ur("h-5","w-full")],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(p))])])))),T(()=>Pe(b=>c("div",w(Z(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,S,M;return A((x=[c("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(C=[Ur("h-5","w-full")],["children",y.Children.toArray(Array.from(C))])]))),c("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(S=[Ur("h-5","w-full")],["children",y.Children.toArray(Array.from(S))])]))),c("div",w(g([["className","px-3 py-2.5 text-left flex-1"],(M=[Ur("h-5","w-full")],["children",y.Children.toArray(Array.from(M))])])))],["children",y.Children.toArray(Array.from(x))]))})))))),Z(tu(0,1,9)))))})),["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])]))),c("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(o=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(s=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(a=[c("button",w(g([(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=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(u))])]))),c("button",w(g([(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],(d=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(e))])])))}function I6(e){const t=Ye(r=>r,or(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const D6=(()=>{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 O6(e){let t,n,r;const i=e.onError,o=e.back,s=e.next,a=e.employmentBasis,l=e.baseColumnMappings,u=e.dataRows,f=e.apiCallAsync;let d;const p=m6(()=>d6(f,u,l,a));d=Pr(()=>Fr(()=>p,(O,F)=>p6(i,O,F),(O,F)=>{}),void 0,void 0);const h=d[1],m=y.useState(!1),v=m[1],b=y.useState(!1),x=b[1],C=y.useState(!1),S=C[0],M=C[1];return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[rp(D6,m[0],()=>{v(!1)}),g6(b[0],()=>{x(!1)}),da("Review"),fa("Preview your data and confirm that everything is mapped correctly."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[fo("What kind of data do I need?",()=>{v(!0)})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=[c("div",w(Z(T(()=>H(A(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),T(()=>{let O,F,L;const E=d[0];if(E.tag===1){const _=E.fields[0],k=B=>{h(new Xi(1,[B]))},N=B=>{h(new Xi(2,[B]))},I=tp(_)?B=>{h(new Xi(3,[]))}:void 0,D=ep(_)?B=>{h(new Xi(4,[]))}:void 0;return A((O=[c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(F=Z(T(()=>H(A(k6(S,_.NumberOfValidRows,()=>{S&&M(!1)},()=>{S&&s([new ym(Fn(Pe(B=>B[0],Bs(B=>B[1].Errors==null,Tg(u.fields[0],_.Data))))),_.InviteTiming])})),T(()=>{let B,pe,Y,U,P,W,j,de;return H(_.HasErrors?A(c("div",w(g([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex"],(B=[N6(20,20),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(pe=[c("div",w(g([["className","self-stretch text-amber-800 text-sm font-medium leading-tight"],(Y=[c("span",{children:[`We found some issues across ${_.NumberOfInvalidRows} rows in your CSV:`]})],["children",y.Children.toArray(Array.from(Y))])]))),c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],(U=Z(T(()=>{let z;return H(_.DuplicateEmailCount>0?A((z=g([c("span",{className:"font-medium",children:`${_.DuplicateEmailCount} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"duplicate email addresses"})]),c("li",{children:y.Children.toArray(Array.from(z))}))):ft(),T(()=>{let R;return _.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?A((R=g([c("span",{className:"font-medium",children:`${_.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"missing or incorrectly formatted data"})]),c("li",{children:y.Children.toArray(Array.from(R))}))):ft()}))})),["children",y.Children.toArray(Array.from(U))])]))),c("div",w(g([["className","px-2 py-1.5"],(P=[c("div",w(g([["className","text-amber-700 text-sm leading-tight"],(W=[c("span",{children:[`You can continue the import without these ${_.NumberOfInvalidRows} rows—we’ll automatically skip them. To import them later, download the error report, fix the issues, and re-upload your file as a new import.`]})],["children",y.Children.toArray(Array.from(W))])])))],["children",y.Children.toArray(Array.from(P))])]))),c("div",w(g([["className","px-2 py-1.5"],(j=[c("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error Report (.csv)",href:I6((de=[_,a!=null],h6(de[0],de[1]))),download:"import_users_error_rows"})],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(B))])])))):ft(),T(()=>{let z,R,ge,me,we,Ee,te,_e,xe,De,Q,ie,q,Ce;return H(A(c("div",w(g([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(z=[c("div",w(g([["className","justify-start items-center gap-2 inline-flex py-3 -my-3"],["onClick",ee=>{N(!_.ShowingOnlyRowsWithErrors)}],(R=[c("input",w(g([["type","checkbox"],["checked",_.ShowingOnlyRowsWithErrors],(ge="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",["className",ge]),["onKeyPress",ee=>{ee.preventDefault(),ee.key==="Enter"&&N(!_.ShowingOnlyRowsWithErrors)}]]))),c("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(R))])]))),c("div",w(g([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(me=[c("div",w(ae((we=[c("div",w(g([["className","w-full max-h-[470px] overflow-auto"],(Ee=[c("table",w(g([["className","w-full divide-y divide-gray-300"],(te=[c("thead",w(g([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(_e=[(xe=Z(T(()=>H(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),T(()=>H(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Error detail"})),T(()=>{let ee;return H(A(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(ee=[c("span",{children:["First name "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(ee))])])))),T(()=>{let ce;return H(A(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(ce=[c("span",{children:["Last name "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(ce))])])))),T(()=>{let Be;return H(A(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(Be=[c("span",{children:["Email "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(Be))])])))),T(()=>H(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Mobile Phone"})),T(()=>a!=null?A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Employment Basis"})):ft()))))}))}))})))))),c("tr",{children:y.Children.toArray(Array.from(xe))}))],["children",y.Children.toArray(Array.from(_e))])]))),c("tbody",w(g([["className","divide-y divide-gray-200"],(De=Z(T(()=>Pe(ee=>c("tr",w(Z(T(()=>H(A(["key",ee.RowNumber]),T(()=>{let ce;return H((ce=ee.RowNumber%2|0,ee.Errors==null?A(ce===1?["className","bg-white"]:["className","bg-gray-50"]):A(["className","bg-amber-50"])),T(()=>{let Be;return A((Be=Z(T(()=>H(A(c("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm text-gray-500",children:ee.RowNumber})),T(()=>H(A(c("td",w(Z(T(()=>H(A(["className","whitespace-nowrap px-3 py-2.5"]),T(()=>{let ye,Ne,Te;return ee.Errors!=null?A((ye=[c("div",w(g([(Ne="text-center text-amber-800 text-xs font-medium h-5 pl-2.5 pr-1.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",Ne]),(Te=Z(T(()=>H(A(c("span",{children:[V(ee.Errors).Summary]})),T(()=>{let Mt;const ut=V(ee.Errors).Details;return ut==null?ft():A(c("div",w(g([["className","pl-1 text-amber-700 items-center inline-flex"],(Mt=[c($6,{text:ut,children:[C6([])]})],["children",y.Children.toArray(Array.from(Mt))])]))))})))),["children",y.Children.toArray(Array.from(Te))])])))],["children",y.Children.toArray(Array.from(ye))])):ft()}))))))),T(()=>H(A(c("td",w(Z(T(()=>{let ye,Ne;const Te=ee.FirstName;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>H(A(c("td",w(Z(T(()=>{let ye,Ne;const Te=ee.LastName;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>H(A(c("td",w(Z(T(()=>{let ye,Ne;const Te=ee.Email;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>H(A(c("td",w(Z(T(()=>{let ye,Ne;const Te=ee.MobilePhone;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>a!=null?A(c("td",w(Z(T(()=>{let ye,Ne;const Te=ee.EmploymentBasis;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))):ft())))))))))))))),["children",y.Children.toArray(Array.from(Be))]))}))})))))),_.Page))),["children",y.Children.toArray(Array.from(De))])])))],["children",y.Children.toArray(Array.from(te))])])))],["children",y.Children.toArray(Array.from(Ee))])]))),c("div",w(g([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(Q=[c("div",w(g([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(ie=[(q=g([c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.RowFrom}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.RowTo}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.ShowingOnlyRowsWithErrors?_.NumberOfInvalidRows:_.NumberOfRows}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:y.Children.toArray(Array.from(q))})),c("div",w(g([["className","justify-start items-start gap-3 flex"],(Ce=[c("button",w(Z(T(()=>{let ee;return H((ee=D,ee==null?A(["disabled",!0]):A(["onClick",ee])),T(()=>{let ce;return H(A((ce="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ce])),T(()=>{let Be;return A((Be=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",y.Children.toArray(Array.from(Be))]))}))}))})))),c("button",w(Z(T(()=>{let ee;return H((ee=I,ee==null?A(["disabled",!0]):A(["onClick",ee])),T(()=>{let ce;return H(A((ce="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ce])),T(()=>{let Be;return A((Be=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",y.Children.toArray(Array.from(Be))]))}))}))}))))],["children",y.Children.toArray(Array.from(Ce))])])))],["children",y.Children.toArray(Array.from(ie))])])))],["children",y.Children.toArray(Array.from(Q))])])))],["children",y.Children.toArray(Array.from(we))]))))],["children",y.Children.toArray(Array.from(me))])])))],["children",y.Children.toArray(Array.from(z))])])))),T(()=>{let ee,ce,Be,ye,Ne,Te,Mt,ut,Kt,Ke,Ft,Vt,rn,Fi,xn;return H(_.NumberOfValidRows>0?A(c("div",w(g([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(ee=[x6([]),c("div",w(g([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(ce=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Be=[c("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${_.NumberOfValidRows} users to workplace benefits`})],["children",y.Children.toArray(Array.from(Be))])]))),fo("What is workplace benefits?",()=>{x(!0)}),c("div",w(ae((ye=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Ne=[c("div",w(g([["key",Xe(new kt(1,[]))],["className","relative flex items-start"],(Te=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",pt=>{k(new kt(1,[]))}],(Mt=[c("input",w(g([["id",Xe(new kt(1,[]))],["name","InviteTiming"],["type","radio"],(ut="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",ut]),["checked",J(_.InviteTiming,new kt(1,[]))],["onChange",pt=>{pt.target.checked,k(new kt(1,[]))}]])))],["children",y.Children.toArray(Array.from(Mt))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(Kt=[c("label",{for:Xe(new kt(1,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import now, Invite later"}),c("p",{id:`${Xe(new kt(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",y.Children.toArray(Array.from(Kt))])])))],["children",y.Children.toArray(Array.from(Te))])])))],["children",y.Children.toArray(Array.from(Ne))])]))),c("div",w(ae((Ke=[c("div",w(g([["key",Xe(new kt(0,[]))],["className","relative flex items-start"],(Ft=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",pt=>{k(new kt(0,[]))}],(Vt=[c("input",w(g([["id",Xe(new kt(0,[]))],["name","InviteTiming"],["type","radio"],(rn="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",rn]),["checked",J(_.InviteTiming,new kt(0,[]))],["onChange",pt=>{pt.target.checked,k(new kt(0,[]))}]])))],["children",y.Children.toArray(Array.from(Vt))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(Fi=[c("label",{for:Xe(new kt(0,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import and invite now"}),c("p",w(g([["id",`${Xe(new kt(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(xn="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",xn])])))],["children",y.Children.toArray(Array.from(Fi))])])))],["children",y.Children.toArray(Array.from(Ft))])])))],["children",y.Children.toArray(Array.from(Ke))]))))],["children",y.Children.toArray(Array.from(ye))]))))],["children",y.Children.toArray(Array.from(ce))])])))],["children",y.Children.toArray(Array.from(ee))])])))):ft(),T(()=>{let pt,jn,Pi,Tu,$u,Mu,Iu;return A(c("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(pt=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(jn=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(Pi=[c("button",w(g([(Tu="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",Tu]),["onClick",op=>{o()}],($u=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from($u))])]))),c("button",w(g([(Mu="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 hover:enabled:bg-emerald-700 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Mu]),["onClick",op=>{S||M(!0)}],["disabled",_.NumberOfValidRows===0],(Iu=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:`Import ${_.NumberOfValidRows} users`})],["children",y.Children.toArray(Array.from(Iu))])])))],["children",y.Children.toArray(Array.from(Pi))])])))],["children",y.Children.toArray(Array.from(jn))])])))],["children",y.Children.toArray(Array.from(pt))])]))))}))}))}))})))),["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(O))]))}else return A((L=[M6()],["children",y.Children.toArray(Array.from(L))]))}))))))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Sn extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class rs extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var is={exports:{}};/* @license
|
|
48
|
+
`))}else{let p=f.props,h=p==null?void 0:p.className,m=typeof h=="function"?(...x)=>_l(h(...x),l.className):_l(h,l.className),v=m?{className:m}:{},b=Vm(f.props,Un(Ha(l,["ref"])));for(let x in d)x in b&&delete d[x];return Gl(f,Object.assign({},b,d,u,{ref:i(Ex(f),u.ref)},v))}return c(o,Object.assign({},Ha(l,["ref"]),o!==ze&&u,o!==ze&&d),f)}function Cx(){let e=ie([]),t=Oe(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 Sx(...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 Vm(...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 Hm(...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 pt(e){var t;return Object.assign(Ul(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Un(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ha(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Ex(e){return K.version.split(".")[0]>="19"?e.props.ref:e.ref}function Ax(e,t,n){let[r,i]=be(n),o=e!==void 0,s=ie(o),a=ie(!1),l=ie(!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 kx(e){let[t]=be(e);return t}function jm(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))Um(n,Bm(t,r),i);return n}function Bm(e,t){return e?e+"["+t+"]":t}function Um(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())Um(e,Bm(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,""]):jm(n,t,e)}function Nx(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 Tx="span";var hi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(hi||{});function $x(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 xt()({ourProps:o,theirProps:i,slot:{},defaultTag:Tx,name:"Hidden"})}let co=pt($x),Mx=st(null);function Ix({children:e}){let t=Ve(Mx);if(!t)return K.createElement(K.Fragment,null,e);let{target:n}=t;return n?Ps(K.createElement(K.Fragment,null,e),n):null}function Dx({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=be(null),a=ur();return Re(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),K.createElement(Ix,null,K.createElement(Ox,{setForm:s,formId:t}),jm(e).map(([l,u])=>K.createElement(co,{features:hi.Hidden,...Un({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function Ox({setForm:e,formId:t}){return Re(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:K.createElement(co,{features:hi.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Rx=st(void 0);function Wm(){return Ve(Rx)}function Fx(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&&Px(n)?!1:r}function Px(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Gm=Symbol();function Lx(e,t=!0){return Object.assign(e,{[Gm]:t})}function Mt(...e){let t=ie(e);Re(()=>{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[Gm]))?void 0:n}let la=st(null);la.displayName="DescriptionContext";function zm(){let e=Ve(la);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,zm),t}return e}function Vx(){var e,t;return(t=(e=Ve(la))==null?void 0:e.value)!=null?t:void 0}function Hx(){let[e,t]=be([]);return[e.length>0?e.join(" "):void 0,fe(()=>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=fe(()=>({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(la.Provider,{value:i},n.children)},[t])]}let jx="p";function Bx(e,t){let n=nn(),r=Su(),{id:i=`headlessui-description-${n}`,...o}=e,s=zm(),a=Mt(t);Ke(()=>s.register(i),[i,s.register]);let l=r||!1,u=fe(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:i};return xt()({ourProps:f,theirProps:o,slot:u,defaultTag:jx,name:s.name||"Description"})}let Ux=pt(Bx),Wx=Object.assign(Ux,{});var wt=(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))(wt||{});let ua=st(null);ua.displayName="LabelContext";function qm(){let e=Ve(ua);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,qm),t}return e}function Ym(e){var t,n,r;let i=(n=(t=Ve(ua))==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 Gx({inherit:e=!1}={}){let t=Ym(),[n,r]=be([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,fe(()=>function(o){let s=ue(l=>(r(u=>[...u,l]),()=>r(u=>{let f=u.slice(),d=f.indexOf(l);return d!==-1&&f.splice(d,1),f}))),a=fe(()=>({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(ua.Provider,{value:a},o.children)},[r])]}let zx="label";function qx(e,t){var n;let r=nn(),i=qm(),o=Wm(),s=Su(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...f}=e,d=Mt(t);Ke(()=>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 S=C.getAttribute("disabled");if(S==="true"||S==="")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=fe(()=>({...i.slot,disabled:h}),[i.slot,h]),v={ref:d,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in f&&delete f.onClick),xt()({ourProps:v,theirProps:f,slot:m,defaultTag:l?zx:"div",name:i.name||"Label"})}let Yx=pt(qx),Zx=Object.assign(Yx,{}),Kx=st(()=>{});function Xx({value:e,children:t}){return K.createElement(Kx.Provider,{value:e},t)}function Jx(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 Qx(e=Jx){return Oe((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 e3(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function t3(e,t=!1){let[n,r]=Rr(()=>({}),{}),i=fe(()=>e3(e),[e,n]);return Ke(()=>{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 n3=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 Zm(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 Km(e){return Fs(e.subscribe,e.getSnapshot,e.getSnapshot)}let r3=new n3(()=>Zm(()=>[],{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 ki(e,t){let n=r3.get(t),r=nn(),i=Km(n);if(Ke(()=>{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 xl=new Map,oo=new Map;function Ed(e){var t;let n=(t=oo.get(e))!=null?t:0;return oo.set(e,n+1),n!==0?()=>Ad(e):(xl.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Ad(e))}function Ad(e){var t;let n=(t=oo.get(e))!=null?t:1;if(n===1?oo.delete(e):oo.set(e,n-1),n!==1)return;let r=xl.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,xl.delete(e))}function Xm(e,{allowed:t,disallowed:n}={}){let r=ki(e,"inert-others");Ke(()=>{var i,o;if(!r)return;let s=Hn();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(Ed(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=Ai(l);if(!u)continue;let f=l.parentElement;for(;f&&f!==u.body;){for(let d of f.children)a.some(p=>d.contains(p))||s.add(Ed(d));f=f.parentElement}}return s.dispose},[r,t,n])}function Jm(e,t,n){let r=cr(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});Re(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Hn();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 Ns=["[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(","),i3=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var cn=(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))(cn||{}),Cl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Cl||{}),o3=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(o3||{});function Qm(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ns)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function s3(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(i3)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Eu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Eu||{});function eh(e,t=0){var n;return e===((n=Ai(e))==null?void 0:n.body)?!1:Vt(t,{0(){return e.matches(Ns)},1(){let r=e;for(;r!==null;){if(r.matches(Ns))return!0;r=r.parentElement}return!1}})}var a3=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(a3||{});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 Dn(e){e==null||e.focus({preventScroll:!0})}let l3=["textarea","input"].join(",");function u3(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,l3))!=null?n:!1}function th(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 c3(e,t){return ii(Qm(),t,{relativeTo:e})}function ii(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?th(e):e:t&64?s3(e):Qm(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,d=s.length,p;do{if(f>=d||f+d<=0)return 0;let h=l+f;if(t&16)h=(h+d)%d;else{if(h<0)return 3;if(h>=d)return 1}p=s[h],p==null||p.focus(u),f+=a}while(p!==o.activeElement);return t&6&&u3(p)&&p.select(),2}function nh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function d3(){return/Android/gi.test(window.navigator.userAgent)}function f3(){return nh()||d3()}function zi(e,t,n,r){let i=cr(n);Re(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function rh(e,t,n,r){let i=cr(n);Re(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const kd=30;function ih(e,t,n){let r=ki(e,"outside-click"),i=cr(n),o=Oe(function(l,u){if(l.defaultPrevented)return;let f=u(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let d=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of d)if(p!==null&&(p.contains(f)||l.composed&&l.composedPath().includes(p)))return;return!eh(f,Eu.Loose)&&f.tabIndex!==-1&&l.preventDefault(),i.current(l,f)},[i,t]),s=ie(null);zi(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),zi(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),zi(r,"click",l=>{f3()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=ie({x:0,y:0});zi(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),zi(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=kd||Math.abs(u.y-a.current.y)>=kd))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),rh(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ni(...e){return fe(()=>Ai(...e),[...e])}function oh(e,t,n,r){let i=cr(n);Re(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function m3(e,t){return fe(()=>{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 h3(){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 p3(){return nh()?{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=Hn();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 g3(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function w3(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let xr=Zm(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Hn(),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:w3(n)},i=[p3(),h3(),g3()];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)}});xr.subscribe(()=>{let e=xr.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)&&xr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&xr.dispatch("TEARDOWN",n)}});function y3(e,t,n=()=>({containers:[]})){let r=Km(xr),i=t?r.get(t):void 0,o=i?i.count>0:!1;return Ke(()=>{if(!(!t||!e))return xr.dispatch("PUSH",t,n),()=>xr.dispatch("POP",t,n)},[e,t]),o}function sh(e,t,n=()=>[document.body]){let r=ki(e,"scroll-lock");y3(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Nd(e){return[e.screenX,e.screenY]}function v3(){let e=ie([-1,-1]);return{wasMoved(t){let n=Nd(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Nd(t)}}}function b3(e=0){let[t,n]=be(e),r=Oe(l=>n(l),[t]),i=Oe(l=>n(u=>u|l),[t]),o=Oe(l=>(t&l)===l,[t]),s=Oe(l=>n(u=>u&~l),[n]),a=Oe(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var _3={},Td,$d;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Td=process==null?void 0:_3)==null?void 0:Td.NODE_ENV)==="test"&&typeof(($d=Element==null?void 0:Element.prototype)==null?void 0:$d.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 x3=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(x3||{});function ah(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function lh(e,t,n,r){let[i,o]=be(n),{hasFlag:s,addFlag:a,removeFlag:l}=b3(e&&i?3:0),u=ie(!1),f=ie(!1),d=ur();return Ke(()=>{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),C3(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,d]),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 C3(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Hn();return E3(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(S3(e,r))})}),o.dispose}function S3(e,t){var n,r;let i=Hn();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 E3(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 Au(e,t){let n=ie([]),r=ue(e);Re(()=>{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 ca(){return typeof window<"u"}function Ti(e){return uh(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=(uh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function uh(e){return ca()?e instanceof Node||e instanceof Zt(e).Node:!1}function Dt(e){return ca()?e instanceof Element||e instanceof Zt(e).Element:!1}function yn(e){return ca()?e instanceof HTMLElement||e instanceof Zt(e).HTMLElement:!1}function Md(e){return!ca()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot}function Io(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function A3(e){return["table","td","th"].includes(Ti(e))}function da(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ku(e){const t=Nu(),n=Dt(e)?hn(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 k3(e){let t=rr(e);for(;yn(t)&&!pi(t);){if(ku(t))return t;if(da(t))return null;t=rr(t)}return null}function Nu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pi(e){return["html","body","#document"].includes(Ti(e))}function hn(e){return Zt(e).getComputedStyle(e)}function fa(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rr(e){if(Ti(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Md(e)&&e.host||_n(e);return Md(t)?t.host:t}function ch(e){const t=rr(e);return pi(t)?e.ownerDocument?e.ownerDocument.body:e.body:yn(t)&&Io(t)?t:ch(t)}function fo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ch(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Zt(i);if(o){const a=Sl(s);return t.concat(s,s.visualViewport||[],Io(i)?i:[],a&&n?fo(a):[])}return t.concat(i,fo(i,[],n))}function Sl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function N3(){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 Mr=Math.min,Tt=Math.max,mo=Math.round,zo=Math.floor,gn=e=>({x:e,y:e}),T3={left:"right",right:"left",bottom:"top",top:"bottom"},$3={start:"end",end:"start"};function Id(e,t,n){return Tt(e,Mr(t,n))}function $i(e,t){return typeof e=="function"?e(t):e}function ir(e){return e.split("-")[0]}function Do(e){return e.split("-")[1]}function dh(e){return e==="x"?"y":"x"}function fh(e){return e==="y"?"height":"width"}function Ir(e){return["top","bottom"].includes(ir(e))?"y":"x"}function mh(e){return dh(Ir(e))}function M3(e,t,n){n===void 0&&(n=!1);const r=Do(e),i=mh(e),o=fh(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Ts(s)),[s,Ts(s)]}function I3(e){const t=Ts(e);return[El(e),t,El(t)]}function El(e){return e.replace(/start|end/g,t=>$3[t])}function D3(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 O3(e,t,n,r){const i=Do(e);let o=D3(ir(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(El)))),o}function Ts(e){return e.replace(/left|right|bottom|top/g,t=>T3[t])}function R3(e){return{top:0,right:0,bottom:0,left:0,...e}}function F3(e){return typeof e!="number"?R3(e):{top:e,right:e,bottom:e,left:e}}function $s(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 Dd(e,t,n){let{reference:r,floating:i}=e;const o=Ir(t),s=mh(t),a=fh(s),l=ir(t),u=o==="y",f=r.x+r.width/2-i.width/2,d=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:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Do(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const P3=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:d}=Dd(u,r,l),p=r,h={},m=0;for(let v=0;v<a.length;v++){const{name:b,fn:x}=a[v],{x:C,y:S,data:$,reset:D}=await x({x:f,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,d=S??d,h={...h,[b]:{...h[b],...$}},D&&m<=50&&(m++,typeof D=="object"&&(D.placement&&(p=D.placement),D.rects&&(u=D.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:f,y:d}=Dd(u,p,l)),v=-1)}return{x:f,y:d,placement:p,strategy:i,middlewareData:h}};async function ma(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:d="floating",altBoundary:p=!1,padding:h=0}=$i(t,e),m=F3(h),b=a[p?d==="floating"?"reference":"floating":d],x=$s(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=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),$=await(o.isElement==null?void 0:o.isElement(S))?await(o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},D=$s(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:S,strategy:l}):C);return{top:(x.top-D.top+m.top)/$.y,bottom:(D.bottom-x.bottom+m.bottom)/$.y,left:(x.left-D.left+m.left)/$.x,right:(D.right-x.right+m.right)/$.x}}const L3=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:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...b}=$i(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=ir(i),C=Ir(a),S=ir(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),D=p||(S||!v?[Ts(a)]:I3(a)),F=m!=="none";!p&&F&&D.push(...O3(a,v,m,$));const L=[a,...D],E=await ma(t,b),_=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&_.push(E[x]),d){const B=M3(i,s,$);_.push(E[B[0]],E[B[1]])}if(k=[...k,{placement:i,overflows:_}],!_.every(B=>B<=0)){var N,I;const B=(((N=o.flip)==null?void 0:N.index)||0)+1,pe=L[B];if(pe)return{data:{index:B,overflows:k},reset:{placement:pe}};let Y=(I=k.filter(W=>W.overflows[0]<=0).sort((W,P)=>W.overflows[1]-P.overflows[1])[0])==null?void 0:I.placement;if(!Y)switch(h){case"bestFit":{var O;const W=(O=k.filter(P=>{if(F){const G=Ir(P.placement);return G===C||G==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(G=>G>0).reduce((G,j)=>G+j,0)]).sort((P,G)=>P[1]-G[1])[0])==null?void 0:O[0];W&&(Y=W);break}case"initialPlacement":Y=a;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};async function V3(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ir(n),a=Do(n),l=Ir(n)==="y",u=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,d=$i(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.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 H3=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 V3(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}}}}},j3=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}=$i(e,t),u={x:n,y:r},f=await ma(t,l),d=Ir(ir(i)),p=dh(d);let h=u[p],m=u[d];if(o){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=h+f[b],S=h-f[x];h=Id(C,h,S)}if(s){const b=d==="y"?"top":"left",x=d==="y"?"bottom":"right",C=m+f[b],S=m-f[x];m=Id(C,m,S)}const v=a.fn({...t,[p]:h,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:s}}}}}},B3=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}=$i(e,t),f=await ma(t,u),d=ir(i),p=Do(i),h=Ir(i)==="y",{width:m,height:v}=o.floating;let b,x;d==="top"||d==="bottom"?(b=d,x=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,b=p==="end"?"top":"bottom");const C=v-f.top-f.bottom,S=m-f.left-f.right,$=Mr(v-f[b],C),D=Mr(m-f[x],S),F=!t.middlewareData.shift;let L=$,E=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=C),F&&!p){const k=Tt(f.left,0),N=Tt(f.right,0),I=Tt(f.top,0),O=Tt(f.bottom,0);h?E=m-2*(k!==0||N!==0?k+N:Tt(f.left,f.right)):L=v-2*(I!==0||O!==0?I+O:Tt(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:L});const _=await s.getDimensions(a.floating);return m!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function hh(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=yn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=mo(n)!==o||mo(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Tu(e){return Dt(e)?e:e.contextElement}function oi(e){const t=Tu(e);if(!yn(t))return gn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=hh(t);let s=(o?mo(n.width):n.width)/r,a=(o?mo(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const U3=gn(0);function ph(e){const t=Zt(e);return!Nu()||!t.visualViewport?U3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function W3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Zt(e)?!1:t}function Dr(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?Dt(r)&&(s=oi(r)):s=oi(e));const a=W3(o,n,r)?ph(o):gn(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(o){const p=Zt(o),h=r&&Dt(r)?Zt(r):r;let m=p,v=Sl(m);for(;v&&r&&h!==m;){const b=oi(v),x=v.getBoundingClientRect(),C=hn(v),S=x.left+(v.clientLeft+parseFloat(C.paddingLeft))*b.x,$=x.top+(v.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,d*=b.y,l+=S,u+=$,m=Zt(v),v=Sl(m)}}return $s({width:f,height:d,x:l,y:u})}function $u(e,t){const n=fa(e).scrollLeft;return t?t.left+n:Dr(_n(e)).left+n}function gh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:$u(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function G3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=_n(r),a=t?da(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=gn(1);const f=gn(0),d=yn(r);if((d||!d&&!o)&&((Ti(r)!=="body"||Io(s))&&(l=fa(r)),yn(r))){const h=Dr(r);u=oi(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!d&&!o?gh(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 z3(e){return Array.from(e.getClientRects())}function q3(e){const t=_n(e),n=fa(e),r=e.ownerDocument.body,i=Tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+$u(e);const a=-n.scrollTop;return hn(r).direction==="rtl"&&(s+=Tt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Y3(e,t){const n=Zt(e),r=_n(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=Nu();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Z3(e,t){const n=Dr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=yn(e)?oi(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 Od(e,t,n){let r;if(t==="viewport")r=Y3(e,n);else if(t==="document")r=q3(_n(e));else if(Dt(t))r=Z3(t,n);else{const i=ph(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return $s(r)}function wh(e,t){const n=rr(e);return n===t||!Dt(n)||pi(n)?!1:hn(n).position==="fixed"||wh(n,t)}function K3(e,t){const n=t.get(e);if(n)return n;let r=fo(e,[],!1).filter(a=>Dt(a)&&Ti(a)!=="body"),i=null;const o=hn(e).position==="fixed";let s=o?rr(e):e;for(;Dt(s)&&!pi(s);){const a=hn(s),l=ku(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Io(s)&&!l&&wh(e,s))?r=r.filter(f=>f!==s):i=a,s=rr(s)}return t.set(e,r),r}function X3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?da(t)?[]:K3(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const d=Od(t,f,i);return u.top=Tt(d.top,u.top),u.right=Mr(d.right,u.right),u.bottom=Mr(d.bottom,u.bottom),u.left=Tt(d.left,u.left),u},Od(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function J3(e){const{width:t,height:n}=hh(e);return{width:t,height:n}}function Q3(e,t,n){const r=yn(t),i=_n(t),o=n==="fixed",s=Dr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!o)if((Ti(t)!=="body"||Io(i))&&(a=fa(t)),r){const p=Dr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=$u(i));const u=i&&!r&&!o?gh(i,a):gn(0),f=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function ja(e){return hn(e).position==="static"}function Rd(e,t){if(!yn(e)||hn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _n(e)===n&&(n=n.ownerDocument.body),n}function yh(e,t){const n=Zt(e);if(da(e))return n;if(!yn(e)){let i=rr(e);for(;i&&!pi(i);){if(Dt(i)&&!ja(i))return i;i=rr(i)}return n}let r=Rd(e,t);for(;r&&A3(r)&&ja(r);)r=Rd(r,t);return r&&pi(r)&&ja(r)&&!ku(r)?n:r||k3(e)||n}const e5=async function(e){const t=this.getOffsetParent||yh,n=this.getDimensions,r=await n(e.floating);return{reference:Q3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function t5(e){return hn(e).direction==="rtl"}const n5={convertOffsetParentRelativeRectToViewportRelativeRect:G3,getDocumentElement:_n,getClippingRect:X3,getOffsetParent:yh,getElementRects:e5,getClientRects:z3,getDimensions:J3,getScale:oi,isElement:Dt,isRTL:t5};function vh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function r5(e,t){let n=null,r;const i=_n(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:d,width:p,height:h}=u;if(a||t(),!p||!h)return;const m=zo(d),v=zo(i.clientWidth-(f+p)),b=zo(i.clientHeight-(d+h)),x=zo(f),S={rootMargin:-m+"px "+-v+"px "+-b+"px "+-x+"px",threshold:Tt(0,Mr(1,l))||1};let $=!0;function D(F){const L=F[0].intersectionRatio;if(L!==l){if(!$)return s();L?s(!1,L):r=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!vh(u,e.getBoundingClientRect())&&s(),$=!1}try{n=new IntersectionObserver(D,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(D,S)}n.observe(e)}return s(!0),o}function i5(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?fo(u):[],...fo(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const d=u&&a?r5(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 S;(S=h)==null||S.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m,v=l?Dr(e):null;l&&b();function b(){const x=Dr(e);v&&!vh(v,x)&&n(),v=x,m=requestAnimationFrame(b)}return n(),()=>{var x;f.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),d==null||d(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Ba=ma,o5=H3,s5=j3,a5=L3,l5=B3,u5=(e,t,n)=>{const r=new Map,i={platform:n5,...n},o={...i.platform,_c:r};return P3(e,t,{...i,platform:o})};var os=typeof document<"u"?vn:Re;function Ms(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(!Ms(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)&&!Ms(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function bh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fd(e,t){const n=bh(e);return Math.round(t*n)/n}function Ua(e){const t=ie(e);return os(()=>{t.current=e}),t}function c5(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,d]=be({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=be(r);Ms(p,r)||h(r);const[m,v]=be(null),[b,x]=be(null),C=Oe(P=>{P!==F.current&&(F.current=P,v(P))},[]),S=Oe(P=>{P!==L.current&&(L.current=P,x(P))},[]),$=o||m,D=s||b,F=ie(null),L=ie(null),E=ie(f),_=l!=null,k=Ua(l),N=Ua(i),I=Ua(u),O=Oe(()=>{if(!F.current||!L.current)return;const P={placement:t,strategy:n,middleware:p};N.current&&(P.platform=N.current),u5(F.current,L.current,P).then(G=>{const j={...G,isPositioned:I.current!==!1};B.current&&!Ms(E.current,j)&&(E.current=j,Yt(()=>{d(j)}))})},[p,t,n,N,I]);os(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const B=ie(!1);os(()=>(B.current=!0,()=>{B.current=!1}),[]),os(()=>{if($&&(F.current=$),D&&(L.current=D),$&&D){if(k.current)return k.current($,D,O);O()}},[$,D,O,k,_]);const pe=fe(()=>({reference:F,floating:L,setReference:C,setFloating:S}),[C,S]),Y=fe(()=>({reference:$,floating:D}),[$,D]),W=fe(()=>{const P={position:n,left:0,top:0};if(!Y.floating)return P;const G=Fd(Y.floating,f.x),j=Fd(Y.floating,f.y);return a?{...P,transform:"translate("+G+"px, "+j+"px)",...bh(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:j}},[n,a,Y.floating,f.x,f.y]);return fe(()=>({...f,update:O,refs:pe,elements:Y,floatingStyles:W}),[f,O,pe,Y,W])}const _h=(e,t)=>({...o5(e),options:[e,t]}),d5=(e,t)=>({...s5(e),options:[e,t]}),f5=(e,t)=>({...a5(e),options:[e,t]}),m5=(e,t)=>({...l5(e),options:[e,t]}),xh={...cs},h5=xh.useInsertionEffect,p5=h5||(e=>e());function Ch(e){const t=ie(()=>{});return p5(()=>{t.current=e}),Oe(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 Al=typeof document<"u"?vn:Re;let Pd=!1,g5=0;const Ld=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+g5++;function w5(){const[e,t]=be(()=>Pd?Ld():void 0);return Al(()=>{e==null&&t(Ld())},[]),Re(()=>{Pd=!0},[]),e}const y5=xh.useId,v5=y5||w5;function b5(){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 _5=st(null),x5=st(null),C5=()=>{var e;return((e=Ve(_5))==null?void 0:e.id)||null},S5=()=>Ve(x5),E5="data-floating-ui-focusable";function A5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=v5(),o=ie({}),[s]=be(()=>b5()),a=C5()!=null,[l,u]=be(r.reference),f=Ch((h,m,v)=>{o.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:v,nested:a}),n==null||n(h,m,v)}),d=fe(()=>({setPositionReference:u}),[]),p=fe(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return fe(()=>({dataRef:o,open:t,onOpenChange:f,elements:p,events:s,floatingId:i,refs:d}),[t,f,p,s,i,d])}function k5(e){e===void 0&&(e={});const{nodeId:t}=e,n=A5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=be(null),[a,l]=be(null),f=(i==null?void 0:i.domReference)||o,d=ie(null),p=S5();Al(()=>{f&&(d.current=f)},[f]);const h=c5({...e,elements:{...i,...a&&{reference:a}}}),m=Oe(S=>{const $=Dt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;l($),h.refs.setReference($)},[h.refs]),v=Oe(S=>{(Dt(S)||S===null)&&(d.current=S,s(S)),(Dt(h.refs.reference.current)||h.refs.reference.current===null||S!==null&&!Dt(S))&&h.refs.setReference(S)},[h.refs]),b=fe(()=>({...h.refs,setReference:v,setPositionReference:m,domReference:d}),[h.refs,v,m]),x=fe(()=>({...h.elements,domReference:f}),[h.elements,f]),C=fe(()=>({...h,...r,refs:b,elements:x,nodeId:t}),[h,b,x,t,r]);return Al(()=>{r.dataRef.current.floatingContext=C;const S=p==null?void 0:p.nodesRef.current.find($=>$.id===t);S&&(S.context=C)}),fe(()=>({...h,context:C,refs:b,elements:x}),[h,b,x,C])}const Vd="active",Hd="selected";function Wa(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Vd]:s,[Hd]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[E5]:""},...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&&[Vd,Hd].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var d;(d=r.get(u))==null||d.push(f),s[u]=function(){for(var p,h=arguments.length,m=new Array(h),v=0;v<h;v++)m[v]=arguments[v];return(p=r.get(u))==null?void 0:p.map(b=>b(...m)).find(b=>b!==void 0)}}}else s[u]=f}),s),{})}}function N5(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=Oe(a=>Wa(a,e,"reference"),t),o=Oe(a=>Wa(a,e,"floating"),n),s=Oe(a=>Wa(a,e,"item"),r);return fe(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function jd(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const T5=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}=$i(e,t),{rects:d,elements:{floating:p}}=t,h=n.current[s],m=(u==null?void 0:u.current)||p,v=p.clientTop||m.clientTop,b=p.clientTop!==0,x=m.clientTop!==0,C=p===m;if(!h)return{};const S={...t,...await _h(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-o).fn(t)},$=await Ba(jd(S,m.scrollHeight+v+p.clientTop),f),D=await Ba(S,{...f,elementContext:"reference"}),F=Tt(0,$.top),L=S.y+F,k=(m.scrollHeight>m.clientHeight?N=>N:mo)(Tt(0,m.scrollHeight+(b&&C||x?v*2:0)-F-Tt(0,$.bottom)));if(m.style.maxHeight=k+"px",m.scrollTop=F,i){const N=m.offsetHeight<h.offsetHeight*Mr(a,n.current.length)-1||D.top>=-l||D.bottom>=-l;Yt(()=>i(N))}return r&&(r.current=await Ba(jd({...S,y:L},m.offsetHeight+v+p.clientTop),f)),{y:L}}});function $5(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=Ch(a),u=ie(!1),f=ie(null),d=ie(null);Re(()=>{if(!i)return;function h(v){if(v.ctrlKey||!m||o.current==null)return;const b=v.deltaY,x=o.current.top>=-.5,C=o.current.bottom>=-.5,S=m.scrollHeight-m.clientHeight,$=b<0?-1:1,D=b<0?"max":"min";m.scrollHeight<=m.clientHeight||(!x&&b>0||!C&&b<0?(v.preventDefault(),Yt(()=>{l(F=>F+Math[D](b,S*$))})):/firefox/i.test(N3())&&(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&&(d.current={...o.current})}),()=>{f.current=null,d.current=null,m.removeEventListener("wheel",h)}},[i,n,r.floating,o,s,l]);const p=fe(()=>({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)&&Yt(()=>l(v=>v+m))}requestAnimationFrame(()=>{f.current=h.scrollTop})}}}),[r.floating,l,o,s]);return fe(()=>i?{floating:p}:{},[i,p])}let Mi=st({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Mi.displayName="FloatingContext";let Mu=st(null);Mu.displayName="PlacementContext";function M5(e){return fe(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function I5(){return Ve(Mi).setReference}function D5(){return Ve(Mi).getReferenceProps}function O5(){let{getFloatingProps:e,slot:t}=Ve(Mi);return Oe((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function R5(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ve(Mu),n=fe(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);Ke(()=>{t==null||t(n??null)},[t,n]);let r=Ve(Mi);return fe(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Bd=4;function F5({children:e,enabled:t=!0}){let[n,r]=be(null),[i,o]=be(0),s=ie(null),[a,l]=be(null);P5(a);let u=t&&n!==null&&a!==null,{to:f="bottom",gap:d=0,offset:p=0,padding:h=0,inner:m}=L5(n,a),[v,b="center"]=f.split(" ");Ke(()=>{u&&o(0)},[u]);let{refs:x,floatingStyles:C,context:S}=k5({open:u,placement:v==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${v}`:`${v}-${b}`,strategy:"absolute",transform:!1,middleware:[_h({mainAxis:v==="selection"?0:d,crossAxis:p}),d5({padding:h}),v!=="selection"&&f5({padding:h}),v==="selection"&&m?T5({...m,padding:h,overflowRef:s,offset:i,minItemsVisible:Bd,referenceOverflowThreshold:h,onFallbackChange(N){var I,O;if(!N)return;let B=S.elements.floating;if(!B)return;let pe=parseFloat(getComputedStyle(B).scrollPaddingBottom)||0,Y=Math.min(Bd,B.childElementCount),W=0,P=0;for(let G of(O=(I=S.elements.floating)==null?void 0:I.childNodes)!=null?O:[])if(G instanceof HTMLElement){let j=G.offsetTop,de=j+G.clientHeight+pe,z=B.scrollTop,R=z+B.clientHeight;if(j>=z&&de<=R)Y--;else{P=Math.max(0,Math.min(de,R)-Math.max(j,z)),W=G.clientHeight;break}}Y>=1&&o(G=>{let j=W*Y-P+pe;return G>=j?G:j})}}):null,m5({padding:h,apply({availableWidth:N,availableHeight:I,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${I}px)`})}})].filter(Boolean),whileElementsMounted:i5}),[$=v,D=b]=S.placement.split("-");v==="selection"&&($="selection");let F=fe(()=>({anchor:[$,D].filter(Boolean).join(" ")}),[$,D]),L=$5(S,{overflowRef:s,onChange:o}),{getReferenceProps:E,getFloatingProps:_}=N5([L]),k=ue(N=>{l(N),x.setFloating(N)});return c(Mu.Provider,{value:r},c(Mi.Provider,{value:{setFloating:k,setReference:x.setReference,styles:C,getReferenceProps:E,getFloatingProps:_,slot:F}},e))}function P5(e){Ke(()=>{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 L5(e,t){var n,r,i;let o=Ga((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Ga((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Ga((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Ga(e,t,n=void 0){let r=ur(),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=Ud(l,u);return[f,d=>{let p=Sh(l);{let h=p.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let v=!1;for(let[x,C]of p.entries()){let S=window.getComputedStyle(u).getPropertyValue(C);if(h[x]!==S){h[x]=S,v=!0;break}}if(!v)return;let b=Ud(l,u);f!==b&&(d(b),f=b)})}return r.dispose}]}return[n,null]}),o=fe(()=>i(e,t)[0],[e,t]),[s=o,a]=be();return Ke(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function Sh(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,...Sh(i)]:[r]}return[]}function Ud(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 V5(e,t){let[n,r]=be(t);return!e&&n!==t&&r(t),e?n:t}let ha=st(null);ha.displayName="OpenClosedContext";var Ot=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ot||{});function Oo(){return Ve(ha)}function Eh({value:e,children:t}){return K.createElement(ha.Provider,{value:e},t)}function H5({children:e}){return K.createElement(ha.Provider,{value:null},e)}function j5(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Gn=[];j5(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Gn[0]===t.target)return;let n=t.target;n=n.closest(Ns),Gn.unshift(n??t.target),Gn=Gn.filter(r=>r!=null&&r.isConnected),Gn.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 B5(e){throw new Error("Unexpected object: "+e)}var yt=(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))(yt||{});function za(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:B5(e)}}function Ah(e){let t=ue(e),n=ie(!1);Re(()=>(n.current=!1,()=>{n.current=!0,aa(()=>{n.current&&t()})}),[t])}function U5(){let e=typeof document>"u";return"useSyncExternalStore"in cs?(t=>t.useSyncExternalStore)(cs)(()=>()=>{},()=>!1,()=>!e):!1}function Ro(){let e=U5(),[t,n]=be(Sr.isHandoffComplete);return t&&Sr.isHandoffComplete===!1&&n(!1),Re(()=>{t!==!0&&n(!0)},[t]),Re(()=>Sr.handoff(),[]),e?!1:t}let kh=st(!1);function W5(){return Ve(kh)}function Wd(e){return K.createElement(kh.Provider,{value:e.force},e.children)}function G5(e){let t=W5(),n=Ve(Th),r=Ni(e),[i,o]=be(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(Sr.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 Re(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),Re(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let Nh=ze,z5=pt(function(e,t){let n=e,r=ie(null),i=Mt(Lx(d=>{r.current=d}),t),o=Ni(r),s=G5(r),[a]=be(()=>{var d;return Sr.isServer?null:(d=o==null?void 0:o.createElement("div"))!=null?d:null}),l=Ve(kl),u=Ro();Ke(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Ke(()=>{if(a&&l)return l.register(a)},[l,a]),Ah(()=>{var d;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((d=s.parentElement)==null||d.removeChild(s)))});let f=xt();return u?!s||!a?null:Ps(f({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Nh,name:"Portal"}),a):null});function q5(e,t){let n=Mt(t),{enabled:r=!0,...i}=e,o=xt();return r?K.createElement(z5,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Nh,name:"Portal"})}let Y5=ze,Th=st(null);function Z5(e,t){let{target:n,...r}=e,i={ref:Mt(t)},o=xt();return K.createElement(Th.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Y5,name:"Popover.Group"}))}let kl=st(null);function K5(){let e=Ve(kl),t=ie([]),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=fe(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,fe(()=>function({children:o}){return K.createElement(kl.Provider,{value:i},o)},[i])]}let X5=pt(q5),$h=pt(Z5),Mh=Object.assign(X5,{Group:$h});function J5(e,t=typeof document<"u"?document.defaultView:null,n){let r=ki(e,"escape");oh(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===wt.Escape&&n(i))})}function Q5(){var e;let[t]=be(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=be((e=t==null?void 0:t.matches)!=null?e:!1);return Ke(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function eC({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Ni(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 Ih=st(null);function Gd({children:e,node:t}){let[n,r]=be(null),i=Dh(t??n);return K.createElement(Ih.Provider,{value:i},e,i===null&&K.createElement(co,{features:hi.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=Ai(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 Dh(e=null){var t;return(t=Ve(Ih))!=null?t:e}function Iu(){let e=ie(!1);return Ke(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Qi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Qi||{});function tC(){let e=ie(0);return rh(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Oh(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 nC="div";var yr=(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))(yr||{});function rC(e,t){let n=ie(null),r=Mt(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Ro()||(a=0);let u=Ni(n);aC(a,{ownerDocument:u});let f=lC(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});uC(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:f});let d=tC(),p=ue(C=>{let S=n.current;S&&($=>$())(()=>{Vt(d.current,{[Qi.Forwards]:()=>{ii(S,cn.First,{skipElements:[C.relatedTarget,o]})},[Qi.Backwards]:()=>{ii(S,cn.Last,{skipElements:[C.relatedTarget,o]})}})})}),h=ki(!!(a&2),"focus-trap#tab-lock"),m=ur(),v=ie(!1),b={ref:r,onKeyDown(C){C.key=="Tab"&&(v.current=!0,m.requestAnimationFrame(()=>{v.current=!1}))},onBlur(C){if(!(a&4))return;let S=Oh(s);n.current instanceof HTMLElement&&S.add(n.current);let $=C.relatedTarget;$ instanceof HTMLElement&&$.dataset.headlessuiFocusGuard!=="true"&&(Rh(S,$)||(v.current?ii(n.current,Vt(d.current,{[Qi.Forwards]:()=>cn.Next,[Qi.Backwards]:()=>cn.Previous})|cn.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&Dn(C.target)))}},x=xt();return K.createElement(K.Fragment,null,h&&K.createElement(co,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:hi.Focusable}),x({ourProps:b,theirProps:l,defaultTag:nC,name:"FocusTrap"}),h&&K.createElement(co,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:hi.Focusable}))}let iC=pt(rC),oC=Object.assign(iC,{features:yr});function sC(e=!0){let t=ie(Gn.slice());return Au(([n],[r])=>{r===!0&&n===!1&&aa(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Gn.slice())},[e,Gn,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function aC(e,{ownerDocument:t}){let n=!!(e&8),r=sC(n);Au(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Dn(r())},[n]),Ah(()=>{n&&Dn(r())})}function lC(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=ie(null),s=ki(!!(e&1),"focus-trap#initial-focus"),a=Iu();return Au(()=>{if(e===0)return;if(!s){i!=null&&i.current&&Dn(i.current);return}let l=n.current;l&&aa(()=>{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)Dn(r.current);else{if(e&16){if(ii(l,cn.First|cn.AutoFocus)!==Cl.Error)return}else if(ii(l,cn.First)!==Cl.Error)return;if(i!=null&&i.current&&(Dn(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 uC(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=Iu(),s=!!(e&4);oh(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=Oh(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let f=a.target;f&&f instanceof HTMLElement?Rh(l,f)?(i.current=f,Dn(f)):(a.preventDefault(),a.stopPropagation(),Dn(u)):Dn(i.current)},!0)}function Rh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Fh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:Lh)!==ze||K.Children.count(e.children)===1}let pa=st(null);pa.displayName="TransitionContext";var cC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(cC||{});function dC(){let e=Ve(pa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function fC(){let e=Ve(ga);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ga=st(null);ga.displayName="NestingContext";function wa(e){return"children"in e?wa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Ph(e,t){let n=cr(e),r=ie([]),i=Iu(),o=ur(),s=ue((h,m=Yn.Hidden)=>{let v=r.current.findIndex(({el:b})=>b===h);v!==-1&&(Vt(m,{[Yn.Unmount](){r.current.splice(v,1)},[Yn.Hidden](){r.current[v].state="hidden"}}),o.microTask(()=>{var b;!wa(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=ue(h=>{let m=r.current.find(({el:v})=>v===h);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,Yn.Unmount)}),l=ie([]),u=ie(Promise.resolve()),f=ie({enter:[],leave:[]}),d=ue((h,m,v)=>{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(()=>v(m)):v(m)}),p=ue((h,m,v)=>{Promise.all(f.current[m].splice(0).map(([b,x])=>x)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>v(m))});return fe(()=>({children:r,register:a,unregister:s,onStart:d,onStop:p,wait:u,chains:f}),[a,s,r,d,p,f,u])}let Lh=ze,Vh=mi.RenderStrategy;function mC(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:f,enterTo:d,entered:p,leave:h,leaveFrom:m,leaveTo:v,...b}=e,[x,C]=be(null),S=ie(null),$=Fh(e),D=Mt(...$?[S,t,C]:t===null?[]:[t]),F=(n=b.unmount)==null||n?Yn.Unmount:Yn.Hidden,{show:L,appear:E,initial:_}=dC(),[k,N]=be(L?"visible":"hidden"),I=fC(),{register:O,unregister:B}=I;Ke(()=>O(S),[O,S]),Ke(()=>{if(F===Yn.Hidden&&S.current){if(L&&k!=="visible"){N("visible");return}return Vt(k,{hidden:()=>B(S),visible:()=>O(S)})}},[k,S,O,B,L,F]);let pe=Ro();Ke(()=>{if($&&pe&&k==="visible"&&S.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[S,k,pe,$]);let Y=_&&!E,W=E&&L&&_,P=ie(!1),G=Ph(()=>{P.current||(N("hidden"),B(S))},I),j=ue(Ee=>{P.current=!0;let ne=Ee?"enter":"leave";G.onStart(S,ne,xe=>{xe==="enter"?o==null||o():xe==="leave"&&(a==null||a())})}),de=ue(Ee=>{let ne=Ee?"enter":"leave";P.current=!1,G.onStop(S,ne,xe=>{xe==="enter"?s==null||s():xe==="leave"&&(l==null||l())}),ne==="leave"&&!wa(G)&&(N("hidden"),B(S))});Re(()=>{$&&i||(j(L),de(L))},[L,$,i]);let z=!(!i||!$||!pe||Y),[,R]=lh(z,x,L,{start:j,end:de}),ge=Un({ref:D,className:((r=_l(b.className,W&&u,W&&f,R.enter&&u,R.enter&&R.closed&&f,R.enter&&!R.closed&&d,R.leave&&h,R.leave&&!R.closed&&m,R.leave&&R.closed&&v,!R.transition&&L&&p))==null?void 0:r.trim())||void 0,...ah(R)}),me=0;k==="visible"&&(me|=Ot.Open),k==="hidden"&&(me|=Ot.Closed),R.enter&&(me|=Ot.Opening),R.leave&&(me|=Ot.Closing);let we=xt();return K.createElement(ga.Provider,{value:G},K.createElement(Eh,{value:me},we({ourProps:ge,theirProps:b,defaultTag:Lh,features:Vh,visible:k==="visible",name:"Transition.Child"})))}function hC(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=ie(null),a=Fh(e),l=Mt(...a?[s,t]:t===null?[]:[t]);Ro();let u=Oo();if(n===void 0&&u!==null&&(n=(u&Ot.Open)===Ot.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,d]=be(n?"visible":"hidden"),p=Ph(()=>{n||d("hidden")}),[h,m]=be(!0),v=ie([n]);Ke(()=>{h!==!1&&v.current[v.current.length-1]!==n&&(v.current.push(n),m(!1))},[v,n]);let b=fe(()=>({show:n,appear:r,initial:h}),[n,r,h]);Ke(()=>{n?d("visible"):!wa(p)&&s.current!==null&&d("hidden")},[n,p]);let x={unmount:i},C=ue(()=>{var D;h&&m(!1),(D=e.beforeEnter)==null||D.call(e)}),S=ue(()=>{var D;h&&m(!1),(D=e.beforeLeave)==null||D.call(e)}),$=xt();return K.createElement(ga.Provider,{value:p},K.createElement(pa.Provider,{value:b},$({ourProps:{...x,as:ze,children:K.createElement(Hh,{ref:l,...x,...o,beforeEnter:C,beforeLeave:S})},theirProps:{},defaultTag:ze,features:Vh,visible:f==="visible",name:"Transition"})))}function pC(e,t){let n=Ve(pa)!==null,r=Oo()!==null;return K.createElement(K.Fragment,null,!n&&r?K.createElement(Nl,{ref:t,...e}):K.createElement(Hh,{ref:t,...e}))}let Nl=pt(hC),Hh=pt(mC),Du=pt(pC),gC=Object.assign(Nl,{Child:Du,Root:Nl});var wC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(wC||{}),yC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(yC||{});let vC={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Ou=st(null);Ou.displayName="DialogContext";function ya(e){let t=Ve(Ou);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ya),n}return t}function bC(e,t){return Vt(t.type,vC,e,t)}let zd=pt(function(e,t){let n=nn(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:f=!1,...d}=e,p=ie(!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=Oo();i===void 0&&h!==null&&(i=(h&Ot.Open)===Ot.Open);let m=ie(null),v=Mt(m,t),b=Ni(m),x=i?0:1,[C,S]=Rr(bC,{titleId:null,descriptionId:null,panelRef:Rs()}),$=ue(()=>o(!1)),D=ue(de=>S({type:0,id:de})),F=Ro()?x===0:!1,[L,E]=K5(),_={get current(){var de;return(de=C.panelRef.current)!=null?de:m.current}},k=Dh(),{resolveContainers:N}=eC({mainTreeNode:k,portals:L,defaultContainers:[_]}),I=h!==null?(h&Ot.Closing)===Ot.Closing:!1;Xm(u||I?!1:F,{allowed:ue(()=>{var de,z;return[(z=(de=m.current)==null?void 0:de.closest("[data-headlessui-portal]"))!=null?z:null]}),disallowed:ue(()=>{var de;return[(de=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?de:null]})}),ih(F,N,de=>{de.preventDefault(),$()}),J5(F,b==null?void 0:b.defaultView,de=>{de.preventDefault(),de.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),sh(u||I?!1:F,b,N),Jm(F,m,$);let[O,B]=Hx(),pe=fe(()=>[{dialogState:x,close:$,setTitleId:D,unmount:f},C],[x,C,$,D,f]),Y=fe(()=>({open:x===0}),[x]),W={ref:v,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=!Q5(),G=yr.None;F&&!u&&(G|=yr.RestoreFocus,G|=yr.TabLock,l&&(G|=yr.AutoFocus),P&&(G|=yr.InitialFocus));let j=xt();return K.createElement(H5,null,K.createElement(Wd,{force:!0},K.createElement(Mh,null,K.createElement(Ou.Provider,{value:pe},K.createElement($h,{target:m},K.createElement(Wd,{force:!1},K.createElement(B,{slot:Y},K.createElement(E,null,K.createElement(oC,{initialFocus:s,initialFocusFallback:m,containers:N,features:G},K.createElement(Xx,{value:$},j({ourProps:W,theirProps:d,slot:Y,defaultTag:_C,features:xC,visible:x===0,name:"Dialog"})))))))))))}),_C="div",xC=mi.RenderStrategy|mi.Static;function CC(e,t){let{transition:n=!1,open:r,...i}=e,o=Oo(),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(Gd,null,K.createElement(gC,{show:r,transition:n,unmount:i.unmount},K.createElement(zd,{ref:t,...i}))):K.createElement(Gd,null,K.createElement(zd,{ref:t,open:r,...i}))}let SC="div";function EC(e,t){let n=nn(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=ya("Dialog.Panel"),u=Mt(t,l.panelRef),f=fe(()=>({open:s===0}),[s]),d=ue(b=>{b.stopPropagation()}),p={ref:u,id:r,onClick:d},h=i?Du:ze,m=i?{unmount:a}:{},v=xt();return K.createElement(h,{...m},v({ourProps:p,theirProps:o,slot:f,defaultTag:SC,name:"Dialog.Panel"}))}let AC="div";function kC(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=ya("Dialog.Backdrop"),s=fe(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?Du:ze,u=n?{unmount:o}:{},f=xt();return K.createElement(l,{...u},f({ourProps:a,theirProps:r,slot:s,defaultTag:AC,name:"Dialog.Backdrop"}))}let NC="h2";function TC(e,t){let n=nn(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=ya("Dialog.Title"),a=Mt(t);Re(()=>(s(r),()=>s(null)),[r,s]);let l=fe(()=>({open:o===0}),[o]),u={ref:a,id:r};return xt()({ourProps:u,theirProps:i,slot:l,defaultTag:NC,name:"Dialog.Title"})}let $C=pt(CC),MC=pt(EC),IC=pt(kC),DC=pt(TC),Ru=Object.assign($C,{Panel:MC,Title:DC,Description:Wx});function OC(e,t){let n=ie({left:0,top:0});if(Ke(()=>{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 qd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Yd(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 qd.test(s)&&(s=s.replace(qd,"")),s}function RC(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():Yd(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Yd(e).trim()}function FC(e){let t=ie(""),n=ie("");return ue(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=RC(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var PC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(PC||{}),LC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(LC||{}),VC=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(VC||{}),HC=(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))(HC||{});function qa(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=th(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 jC={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===yt.Nothing)return{...a,activeOptionIndex:null};if(t.focus===yt.Specific)return{...a,activeOptionIndex:e.options.findIndex(f=>f.id===t.id)};if(t.focus===yt.Previous){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=za(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=d.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===yt.Next){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=za(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=d.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=qa(e),u=za(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=qa(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=qa(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}},Fu=st(null);Fu.displayName="ListboxActionsContext";function va(e){let t=Ve(Fu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,va),n}return t}let ba=st(null);ba.displayName="ListboxDataContext";function Fo(e){let t=Ve(ba);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Fo),n}return t}function BC(e,t){return Vt(t.type,jC,e,t)}let UC=ze;function WC(e,t){var n;let r=Su(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:f=!1,disabled:d=r||!1,horizontal:p=!1,multiple:h=!1,__demoMode:m=!1,...v}=e;const b=p?"horizontal":"vertical";let x=Mt(t),C=kx(o),[S=h?[]:void 0,$]=Ax(i,l,C),[D,F]=Rr(BC,{dataRef:Rs(),listboxState:m?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:m}),L=ie({static:!1,hold:!1}),E=ie(new Map),_=Qx(u),k=Oe(ee=>Vt(N.mode,{1:()=>S.some(oe=>_(oe,ee)),0:()=>_(S,ee)}),[S]),N=fe(()=>({...D,value:S,disabled:d,invalid:f,mode:h?1:0,orientation:b,compare:_,isSelected:k,optionsPropsRef:L,listRef:E}),[S,d,f,h,D,E]);Ke(()=>{D.dataRef.current=N},[N]);let I=N.listboxState===0;ih(I,[N.buttonElement,N.optionsElement],(ee,oe)=>{var q;F({type:1}),eh(oe,Eu.Loose)||(ee.preventDefault(),(q=N.buttonElement)==null||q.focus())});let O=fe(()=>({open:N.listboxState===0,disabled:d,invalid:f,value:S}),[N,d,S,f]),B=ue(ee=>{let oe=N.options.find(q=>q.id===ee);oe&&de(oe.dataRef.current.value)}),pe=ue(()=>{if(N.activeOptionIndex!==null){let{dataRef:ee,id:oe}=N.options[N.activeOptionIndex];de(ee.current.value),F({type:2,focus:yt.Specific,id:oe})}}),Y=ue(()=>F({type:0})),W=ue(()=>F({type:1})),P=ur(),G=ue((ee,oe,q)=>{P.dispose(),P.microTask(()=>ee===yt.Specific?F({type:2,focus:yt.Specific,id:oe,trigger:q}):F({type:2,focus:ee,trigger:q}))}),j=ue((ee,oe)=>(F({type:5,id:ee,dataRef:oe}),()=>F({type:6,id:ee}))),de=ue(ee=>Vt(N.mode,{0(){return $==null?void 0:$(ee)},1(){let oe=N.value.slice(),q=oe.findIndex(Se=>_(Se,ee));return q===-1?oe.push(ee):oe.splice(q,1),$==null?void 0:$(oe)}})),z=ue(ee=>F({type:3,value:ee})),R=ue(()=>F({type:4})),ge=ue(ee=>{F({type:7,element:ee})}),me=ue(ee=>{F({type:8,element:ee})}),we=fe(()=>({onChange:de,registerOption:j,goToOption:G,closeListbox:W,openListbox:Y,selectActiveOption:pe,selectOption:B,search:z,clearSearch:R,setButtonElement:ge,setOptionsElement:me}),[]),[Ee,ne]=Gx({inherit:!0}),xe={ref:x},Ce=Oe(()=>{if(C!==void 0)return $==null?void 0:$(C)},[$,C]),De=xt();return K.createElement(ne,{value:Ee,props:{htmlFor:(n=N.buttonElement)==null?void 0:n.id},slot:{open:N.listboxState===0,disabled:d}},K.createElement(F5,null,K.createElement(Fu.Provider,{value:we},K.createElement(ba.Provider,{value:N},K.createElement(Eh,{value:Vt(N.listboxState,{0:Ot.Open,1:Ot.Closed})},a!=null&&S!=null&&K.createElement(Dx,{disabled:d,data:{[a]:S},form:s,onReset:Ce}),De({ourProps:xe,theirProps:v,slot:O,defaultTag:UC,name:"Listbox"}))))))}let GC="button";function zC(e,t){var n;let r=Fo("Listbox.Button"),i=va("Listbox.Button"),o=nn(),s=Wm(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...f}=e,d=Mt(t,I5(),i.setButtonElement),p=D5(),h=ue(N=>{switch(N.key){case wt.Enter:Nx(N.currentTarget);break;case wt.Space:case wt.ArrowDown:N.preventDefault(),Yt(()=>i.openListbox()),r.value||i.goToOption(yt.First);break;case wt.ArrowUp:N.preventDefault(),Yt(()=>i.openListbox()),r.value||i.goToOption(yt.Last);break}}),m=ue(N=>{switch(N.key){case wt.Space:N.preventDefault();break}}),v=ue(N=>{var I;if(Fx(N.currentTarget))return N.preventDefault();r.listboxState===0?(Yt(()=>i.closeListbox()),(I=r.buttonElement)==null||I.focus({preventScroll:!0})):(N.preventDefault(),i.openListbox())}),b=ue(N=>N.preventDefault()),x=Ym([a]),C=Vx(),{isFocusVisible:S,focusProps:$}=hx({autoFocus:u}),{isHovered:D,hoverProps:F}=mx({isDisabled:l}),{pressed:L,pressProps:E}=bx({disabled:l}),_=fe(()=>({open:r.listboxState===0,active:L||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:D,focus:S,autofocus:u}),[r.listboxState,r.value,l,D,S,L,r.invalid,u]),k=Hm(p(),{ref:d,id:a,type:m3(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:v},$,F,E);return xt()({ourProps:k,theirProps:f,slot:_,defaultTag:GC,name:"Listbox.Button"})}let jh=st(!1),qC="div",YC=mi.RenderStrategy|mi.Static;function ZC(e,t){var n,r;let i=nn(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...f}=e,d=M5(s),[p,h]=be(null);d&&(a=!0);let m=Fo("Listbox.Options"),v=va("Listbox.Options"),b=Ni(m.optionsElement),x=Oo(),[C,S]=lh(u,p,x!==null?(x&Ot.Open)===Ot.Open:m.listboxState===0);Jm(C,m.buttonElement,v.closeListbox);let $=m.__demoMode?!1:l&&m.listboxState===0;sh($,b);let D=m.__demoMode?!1:l&&m.listboxState===0;Xm(D,{allowed:Oe(()=>[m.buttonElement,m.optionsElement],[m.buttonElement,m.optionsElement])});let F=m.listboxState!==0,L=OC(F,m.buttonElement)?!1:C,E=C&&m.listboxState===1,_=V5(E,m.value),k=ue(R=>m.compare(_,R)),N=fe(()=>{var R;if(d==null||!((R=d==null?void 0:d.to)!=null&&R.includes("selection")))return null;let ge=m.options.findIndex(me=>k(me.dataRef.current.value));return ge===-1&&(ge=0),ge},[d,m.options]),I=(()=>{if(d==null)return;if(N===null)return{...d,inner:void 0};let R=Array.from(m.listRef.current.values());return{...d,inner:{listRef:{current:R},index:N}}})(),[O,B]=R5(I),pe=O5(),Y=Mt(t,d?O:null,v.setOptionsElement,h),W=ur();Re(()=>{var R;let ge=m.optionsElement;ge&&m.listboxState===0&&ge!==((R=Ai(ge))==null?void 0:R.activeElement)&&(ge==null||ge.focus({preventScroll:!0}))},[m.listboxState,m.optionsElement]);let P=ue(R=>{var ge,me;switch(W.dispose(),R.key){case wt.Space:if(m.searchQuery!=="")return R.preventDefault(),R.stopPropagation(),v.search(R.key);case wt.Enter:if(R.preventDefault(),R.stopPropagation(),m.activeOptionIndex!==null){let{dataRef:we}=m.options[m.activeOptionIndex];v.onChange(we.current.value)}m.mode===0&&(Yt(()=>v.closeListbox()),(ge=m.buttonElement)==null||ge.focus({preventScroll:!0}));break;case Vt(m.orientation,{vertical:wt.ArrowDown,horizontal:wt.ArrowRight}):return R.preventDefault(),R.stopPropagation(),v.goToOption(yt.Next);case Vt(m.orientation,{vertical:wt.ArrowUp,horizontal:wt.ArrowLeft}):return R.preventDefault(),R.stopPropagation(),v.goToOption(yt.Previous);case wt.Home:case wt.PageUp:return R.preventDefault(),R.stopPropagation(),v.goToOption(yt.First);case wt.End:case wt.PageDown:return R.preventDefault(),R.stopPropagation(),v.goToOption(yt.Last);case wt.Escape:R.preventDefault(),R.stopPropagation(),Yt(()=>v.closeListbox()),(me=m.buttonElement)==null||me.focus({preventScroll:!0});return;case wt.Tab:R.preventDefault(),R.stopPropagation(),Yt(()=>v.closeListbox()),c3(m.buttonElement,R.shiftKey?cn.Previous:cn.Next);break;default:R.key.length===1&&(v.search(R.key),W.setTimeout(()=>v.clearSearch(),350));break}}),G=(n=m.buttonElement)==null?void 0:n.id,j=fe(()=>({open:m.listboxState===0}),[m.listboxState]),de=Hm(d?pe():{},{id:o,ref:Y,"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":G,"aria-orientation":m.orientation,onKeyDown:P,role:"listbox",tabIndex:m.listboxState===0?0:void 0,style:{...f.style,...B,"--button-width":t3(m.buttonElement,!0).width},...ah(S)}),z=xt();return K.createElement(Mh,{enabled:a?e.static||C:!1},K.createElement(ba.Provider,{value:m.mode===1?m:{...m,isSelected:k}},z({ourProps:de,theirProps:f,slot:j,defaultTag:qC,features:YC,visible:L,name:"Listbox.Options"})))}let KC="div";function XC(e,t){let n=nn(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Ve(jh)===!0,l=Fo("Listbox.Option"),u=va("Listbox.Option"),f=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,d=l.isSelected(o),p=ie(null),h=FC(p),m=cr({disabled:i,value:o,domRef:p,get textValue(){return h()}}),v=Mt(t,p,_=>{_?l.listRef.current.set(r,_):l.listRef.current.delete(r)});Ke(()=>{if(!l.__demoMode&&l.listboxState===0&&f&&l.activationTrigger!==0)return Hn().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]),Ke(()=>{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&&(Yt(()=>u.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),x=ue(()=>{if(i)return u.goToOption(yt.Nothing);u.goToOption(yt.Specific,r)}),C=v3(),S=ue(_=>{C.update(_),!i&&(f||u.goToOption(yt.Specific,r,0))}),$=ue(_=>{C.wasMoved(_)&&(i||f||u.goToOption(yt.Specific,r,0))}),D=ue(_=>{C.wasMoved(_)&&(i||f&&u.goToOption(yt.Nothing))}),F=fe(()=>({active:f,focus:f,selected:d,disabled:i,selectedOption:d&&a}),[f,d,i,a]),L=a?{}:{id:r,ref:v,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:S,onMouseEnter:S,onPointerMove:$,onMouseMove:$,onPointerLeave:D,onMouseLeave:D},E=xt();return!d&&a?null:E({ourProps:L,theirProps:s,slot:F,defaultTag:KC,name:"Listbox.Option"})}let JC=ze;function QC(e,t){let{options:n,placeholder:r,...i}=e,o={ref:Mt(t)},s=Fo("ListboxSelectedOption"),a=fe(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=xt();return K.createElement(jh.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:K.createElement(K.Fragment,null,r&&l?r:n)},slot:a,defaultTag:JC,name:"ListboxSelectedOption"}))}let e6=pt(WC),Bh=pt(zC),t6=Zx,Uh=pt(ZC),Wh=pt(XC),n6=pt(QC),r6=Object.assign(e6,{Button:Bh,Label:t6,Options:Uh,Option:Wh,SelectedOption:n6}),bt=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Ii(e){return c(Ru,lr(e,1))}class or extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Di(e){return c(Ru.Panel,lr(e,1))}class Is extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function Gh(e){return c(Ru.Title,lr(e,1))}class Oi extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function Ri(e){return c(IC,lr(e,1))}function Fi(e,t){let n;return c("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",y.Children.toArray(Array.from(n))])])))}function i6(e,t){let n,r,i,o,s;return Ii(g([new bt(3,[e]),new bt(4,[t]),new bt(5,[[Ri(le(new Oi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Di(le(new or(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),c("button",w(g([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[Fi(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(g([["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",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function _a(e){return c("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function xa(e){return c("span",{className:"text-sm font-normal pt-2",children:e})}function ho(e,t){return c("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white hover:bg-gray-50",onClick:n=>{t()},type:"button",children:y.Children.toArray([e])})}function o6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function zh(){let e,t,n;return c("div",w(g([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[o6(20,20),c("div",w(g([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[c("div",w(g([["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",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function qh(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function Yh(e){let t,n;return c("div",w(g([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[qh(16,15),c("div",w(g([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[c("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Ca(e,t){let n;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(n))])])))}class si extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function Zh(e){return c(r6,lr(e,1))}class Ds extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function Kh(e){return c(Bh,lr(e,1))}class Xh extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function Jh(e,t){return c(Uh,lr(e,1),...t)}class pn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function Qh(e){return c(Wh,lr(e,1))}function ep(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}class qi extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function Yi(e,t,n,r,i,o,s,a,l){let u,f,d,p,h,m,v;const b=i.fields[0],x=Wf(Ct(C=>C[1].fields[0],P1(C=>o0(C.fields[0],b),r)));return c("div",w(g([["key",Je(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(f=[c("div",w(Z(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=Z(T(()=>H(A(c("div",{className:"text-sm font-medium leading-tight",children:uo(e)})),T(()=>A(t?c("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ae()))))),["children",y.Children.toArray(Array.from(C))]))}))))))],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[Ca(16,12)],["children",y.Children.toArray(Array.from(d))])]))),c("div",w(g([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[Zh(g([new si(0,[x]),new si(1,[C=>{Vn(S=>{s(S[0])},bi(Bs(S=>S[1].fields[0]===C?Q(S[2],new An(0,[])):!1,b)))}]),new si(2,[[c("div",w(g([["className","relative w-full"],(h=[Kh(Z(T(()=>{let C;return H(A(new Ds(0,[`${C=t&&n,C&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 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 S;return A(new Ds(1,[[c("span",w(Z(T(()=>{let $;const D=t&&n;return $=r!=null?[x,""]:D?["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]])))})))),c("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(S=[ep(20,20)],["children",y.Children.toArray(Array.from(S))])])))]]))}))}))),Jh(Z(T(()=>A(new Xh(`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`)))),Z(T(()=>qs(C=>{const S=C[2],$=C[1].fields[0];return A(Qh(g([new pn(0,[fn(C[0].fields[0])]),new pn(1,[$]),new pn(2,[Q(S,new An(1,[]))]),new pn(3,["relative select-none"]),new pn(4,[D=>[c("span",{className:"px-4 py-2 block truncate "+(S.tag===0?D.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:$})]])])))},b))))],["children",y.Children.toArray(Array.from(h))])])))]])]))],["children",y.Children.toArray(Array.from(p))])]))),c("div",w(g([(m="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",m]),(v=[c("button",w(Z(T(()=>H(A(["children","Clear"]),T(()=>H(a==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const C=a;if(C==null)return ft();{const S=C;return A(["onClick",$=>{S()}])}})))))))),c("button",w(Z(T(()=>H(A(["children","Preview"]),T(()=>H(l==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const C=l;if(C==null)return ft();{const S=C;return A(["onClick",$=>{S()}])}}))))))))],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(u))])])))}function tp(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function Pu(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function np(e){let t,n,r;return c("div",w(g([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[c("span",w(g([["className","text-emerald-700"],(n=[Pu(20,20)],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[c("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Lu(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function s6(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function a6(e){return e.startsWith("04")&&e.length===10?`+614${e.slice(2,e.length)}`:e}function rp(e){return a6(s6(Bf(e," ","")))}function l6(e,t){let n,r,i,o,s,a,l;return c("div",w(g([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[c("div",w(g([(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=[c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[c("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${uo(e)}”`})],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[c("div",w(g([["className","self-stretch flex-col justify-center items-start flex"],(a=i0((u,f)=>c("div",w(Z(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 d;return A((d=Z(T(()=>{const p=vi(f);return A(p?c("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):c("div",w(Z(T(()=>H(A(["className","grow shrink text-gray-700 text-sm font-medium leading-tight"]),T(()=>e.tag===3?A(["children",rp(f)]):A(["children",f]))))))))})),["children",y.Children.toArray(Array.from(d))]))})))))),t),["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),c("div",w(g([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[c("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(n))])])))}function u6(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=Z_(a,l);u=Lr(()=>Pr(()=>f,(S,$)=>K_(a,s,S,$),(S,$)=>{}),void 0,void 0);const d=u[0],p=u[1],h=y.useState(!1),m=h[1],v=y.useState(!1),b=v[0],x=S=>{if(q_(d)(S))return()=>{p(new fr(1,[S]))}},C=S=>{if(Y_(d,S))return()=>{p(new fr(2,[S]))}};return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[i6(h[0],()=>{m(!1)}),_a("Map fields"),xa("Match the fields from your CSV to the corresponding destination fields."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[ho("What is mapping and why is it important?",()=>{m(!0)})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=Z(T(()=>{let S;return H(A(c("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(S=Z(T(()=>H(l==null?A(zh()):A(Ae()),T(()=>H(b&&d.Status.tag===0?A(Yh("Some required fields are incomplete. Fill in all required fields to continue.")):A(Ae()),T(()=>{let $,D,F,L,E,_,k,N;return A(c("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],($=[c("div",w(g([(D="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",D]),(F=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(L=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",w(Z(T(()=>H(A(["className",`${d.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 I;return A((I=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",y.Children.toArray(Array.from(I))]))}))))))],["children",y.Children.toArray(Array.from(L))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),c("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(_=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of ${d.NumberOfIncomingFields} used`})],["children",y.Children.toArray(Array.from(_))])])))],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(F))])]))),c("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(k=[c("div",w(le((N=Z(T(()=>H(A(Yi(new se(0,[]),!0,b,d.FirstName.ColumnIndex,d.FirstName.IncomingFields,new qi(0,[]),I=>{let O;p((O=[new se(0,[]),I],new fr(0,[O[0],O[1]])))},x(new se(0,[])),C(new se(0,[])))),T(()=>H(A(Yi(new se(1,[]),!0,b,d.LastName.ColumnIndex,d.LastName.IncomingFields,new qi(0,[]),I=>{let O;p((O=[new se(1,[]),I],new fr(0,[O[0],O[1]])))},x(new se(1,[])),C(new se(1,[])))),T(()=>H(A(Yi(new se(2,[]),!0,b,d.Email.ColumnIndex,d.Email.IncomingFields,new qi(0,[]),I=>{let O;p((O=[new se(2,[]),I],new fr(0,[O[0],O[1]])))},x(new se(2,[])),C(new se(2,[])))),T(()=>H(A(Yi(new se(3,[]),!1,b,d.MobilePhone.ColumnIndex,d.MobilePhone.IncomingFields,new qi(0,[]),I=>{let O;p((O=[new se(3,[]),I],new fr(0,[O[0],O[1]])))},x(new se(3,[])),C(new se(3,[])))),T(()=>H(A(Yi(new se(4,[]),!1,b,d.EmploymentBasis.ColumnIndex,d.EmploymentBasis.IncomingFields,new qi(1,[]),I=>{let O;p((O=[new se(4,[]),I],new fr(0,[O[0],O[1]])))},x(new se(4,[])),C(new se(4,[])))),T(()=>{let I,O,B,pe,Y,W;return H(d.NumberOfIncomingFieldsDiscarded===0?A(Ae()):A(c("div",w(g([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(I=[c("div",w(g([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(O=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(B=[tp(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(B))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(pe=[Ca(16,12)],["children",y.Children.toArray(Array.from(pe))])]))),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(Y=[c("div",w(g([["className","w-[218px] pl-3 items-center inline-flex"],(W=[c("div",w(Z(T(()=>H(A(["className","text-gray-500 text-sm font-medium"]),T(()=>{const P=d.NumberOfIncomingFieldsDiscarded|0;return A(P===1?["children","Remaining 1 unused field"]:["children",`Remaining ${P} unused fields`])}))))))],["children",y.Children.toArray(Array.from(W))])])))],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(O))])])))],["children",y.Children.toArray(Array.from(I))])])))),T(()=>{let P;return A(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(P=Z(T(()=>H(d.NumberOfDestinationFieldsMapped===5?A(np("All destination fields have been mapped. You’re good to go.")):A(Ae()),T(()=>{let G,j,de,z,R,ge,me,we,Ee;return A(c("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(G=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(j=[c("div",w(g([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(de=[c("div",w(g([["className","grow shrink basis-0 text-right"],(z=[c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),c("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",y.Children.toArray(Array.from(z))])])))],["children",y.Children.toArray(Array.from(de))])]))),c("div",w(g([["className","justify-start items-center gap-2 flex"],(R=[c("button",w(g([(ge="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ge]),["onClick",ne=>{i(d.Status)}],(me=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(me))])]))),c("button",w(g([(we="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",we]),["disabled",b&&d.Status.tag===0],["onClick",ne=>{const xe=d.Status;xe.tag===0?v[1](!0):o([xe.fields[0],xe.fields[1]])}],(Ee=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Lu(13,8)],["children",y.Children.toArray(Array.from(Ee))])])))],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(G))])]))))})))),["children",y.Children.toArray(Array.from(P))])]))))}))})))))))))))),["children",y.Children.toArray(Array.from(N))]))))],["children",y.Children.toArray(Array.from(k))])])))],["children",y.Children.toArray(Array.from($))])]))))})))))),["children",y.Children.toArray(Array.from(S))])])))),T(()=>{const $=d.Preview;return $==null?A(Ae()):A(l6($[0],$[1]))}))})),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class qo extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Ya extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let mr=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}},Yo=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},c6=class extends _e{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 po extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const zn=[void 0];function ip(e,t,n){let r;const i=t.fields[0],o=qt(s=>s,ys(Hc(n)));return new c6(Ze(s=>[s,_i(s,o,{Equals:Q,GetHashCode:fs})?new po(1,[]):new po(0,[])],i),n,o.length,$g(zs(s=>{let a;return a=qt(l=>l,s),a.length!==0},Hc(n))),Sm(o,i,{Equals:Q,GetHashCode:fs}),(r=g(qt(s=>s,ys(Pe(s=>Ze(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),$e(r)?void 0:new P_(ae(r),ar(Me(r)))),e)}function d6(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>_i(Zl(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:sr}))}function f6(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=d6(e,o);return!kr(Q,s,Ae())&&s.length===0?zn:(r=!0,Ze(a=>a,s))};n=[ni([[new dt(0,[]),i(new dt(0,[]))],[new dt(1,[]),i(new dt(1,[]))],[new dt(2,[]),i(new dt(2,[]))],[new dt(3,[]),i(new dt(3,[]))]],{Compare:St}),r]}else{const r=t,i=ni(Ze(o=>[o[0],Ze(s=>s[1],X1(o[1],{Compare:zl}))],$_(o=>o[0],ys([r.Tail,[r.Head]]),{Equals:Q,GetHashCode:fs})),{Compare:St});n=[ni([[new dt(0,[]),Qe(br(i,new dt(0,[])),zn)],[new dt(1,[]),Qe(br(i,new dt(1,[])),zn)],[new dt(2,[]),Qe(br(i,new dt(2,[])),zn)],[new dt(3,[]),Qe(br(i,new dt(3,[])),zn)]],{Compare:St}),!1]}return[ip(n[1],e,n[0]),X()]}function op(e,t){const n=Nr(e.Selections,t);let r;switch(!kr(Q,n,Ae())&&n.length===1&&he(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function sp(e,t){let n;return e.DiscardedValues.length>0?(n=Nr(e.Selections,t),!n.some(r=>r==null)):!1}function m6(e,t,n){const r=Nr(e.Selections,t);return!kr(Q,r,Ae())&&r.length===1?!1:_i(n,r,{Equals:Q,GetHashCode:en})}function h6(e,t,n,r){return!Q(n,r)&&e.IncomingValues.some(i=>Q(i[0],r)?Q(i[1],new po(0,[])):!1)?_i(n,Nr(e.Selections,t),{Equals:Q,GetHashCode:en}):!1}function p6(e,t,n){let r,i;const o=m=>ip(n.Prefilled,e,m);let s,a,l,u,f,d,p,h;switch(t.tag){case 1:{op(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{m6(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],f=t.fields[1]):s=4;break}case 3:{h6(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,d=t.fields[0],p=t.fields[1],h=t.fields[2]):s=4;break}default:sp(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(Bo(a,m=>Ct(v=>r0(v,zn),m),n.Selections)),X()];case 1:return[o(Bo(l,m=>Ct(v=>zn,m),n.Selections)),X()];case 2:return[o(Bo(u,(r=(i=[f],m=>Sm(i,m,{Equals:Q,GetHashCode:en})),m=>Ct(r,m)),n.Selections)),X()];case 3:return[o(Bo(d,m=>Ct(v=>Ze(b=>Q(b,p)?h:b,v),m),n.Selections)),X()];default:return[n,X()]}}function g6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function w6(e,t,n,r,i,o,s){let a,l,u,f,d,p;return c("div",w(g([["key",Je(e)],["className","justify-start items-start gap-2 inline-flex"],(a=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[c("div",w(g([["className",Et(" ",Z(T(()=>H(kr(Q,t,zn)?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=[c("div",{className:"text-sm font-medium leading-tight",children:Em(e)})],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(f=[Ca(16,12)],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(g([["className","px-3 justify-start items-center gap-2 flex flex-col"],(d=[c("div",w(le((p=Z(T(()=>Pe(h=>{let m,v,b;return c("div",w(g([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(m=[c("div",w(g([["className","justify-start items-end flex flex-col w-[206px]"],(v=Z(T(()=>H(A(Zh(Z(T(()=>{const x=Wf(Ct(C=>C.fields[0],h));return H(A(new si(0,[x])),T(()=>H(A(new si(1,[C=>{Vn(S=>{s([h,S[0]])},bi(Bs(S=>S[0].fields[0]===C?Q(S[1],new po(0,[])):!1,n)))}])),T(()=>{let C,S;return A(new si(2,[[c("div",w(g([["className","relative w-full"],(C=[Kh(g([new Ds(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 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 Ds(1,[[c("span",w(Z(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]])))})))),c("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(S=[ep(20,20)],["children",y.Children.toArray(Array.from(S))])])))]])])),Jh(le(new Xh("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")),Z(T(()=>qs($=>{const D=$[1],F=$[0].fields[0];return A(Qh(g([new pn(0,[F]),new pn(1,[F]),new pn(2,[Q(D,new po(1,[]))&&F!==x]),new pn(3,["relative select-none"]),new pn(4,[L=>[c("span",{className:Et(" ",Z(T(()=>H(A("px-4 py-2 block truncate"),T(()=>{const E=L.active;let _;switch(L.selected?E?_=2:_=1:D.tag===1?_=0:E?_=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:F})]])])))},n))))],["children",y.Children.toArray(Array.from(C))])])))]]))}))))})))),T(()=>Q(h,q1(t))?A(c("button",w(Z(T(()=>{let x;return H(A((x=[g6(14,14),c("span",{children:["Map additional value"]})],["children",y.Children.toArray(Array.from(x))])),T(()=>H(A(["className",Et(" ",Z(T(()=>H(A("py-2 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 hover:text-gray-700"))))))]),T(()=>{const C=i;if(C==null)return ft();{const S=C;return A(["onClick",$=>{S()}])}}))))}))))):ft())))),["children",y.Children.toArray(Array.from(v))])]))),c("div",w(g([["className","text-gray-500 text-xs font-normal pl-1"],(b=Z(T(()=>{if(o!=null){const x=o;return A(c("button",{children:"Remove",className:"cursor-pointer underline py-2 hover:text-gray-700",onClick:C=>{x(h)}}))}else return A(c("button",w(Z(T(()=>H(A(["children","Clear"]),T(()=>H(r==null?A(["className","opacity-50 underline cursor-not-allowed mt-2"]):A(["className","cursor-pointer underline py-2 hover:text-gray-700"]),T(()=>{const x=r;if(x==null)return ft();{const C=x;return A(["onClick",S=>{C()}])}})))))))))})),["children",y.Children.toArray(Array.from(b))])])))],["children",y.Children.toArray(Array.from(m))])])))},t))),["children",y.Children.toArray(Array.from(p))]))))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(a))])])))}function y6(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=f6(s,a);l=Lr(()=>Pr(()=>u,(m,v)=>p6(s,m,v),(m,v)=>{}),void 0,void 0);const f=l[0],d=l[1],p=y.useState(!1),h=p[0];return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[_a("Map values - Employment basis"),xa("Match the values from your CSV to the corresponding destination values."),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(n=[c("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=Z(T(()=>H(f.Prefilled?A(zh()):A(Ae()),T(()=>H(h&&f.ValidatedMappings==null?A(Yh("Map at least one value to continue.")):A(Ae()),T(()=>{let m,v,b,x,C,S,$,D,F;return A(c("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(m=[c("div",w(g([(v="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",v]),(b=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(x=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",w(g([["className",Et(" ",Z(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=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${f.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",y.Children.toArray(Array.from(C))])])))],["children",y.Children.toArray(Array.from(x))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(S=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),c("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],($=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${f.NumberOfIncomingValuesUsed} of ${f.IncomingValues.length} used`})],["children",y.Children.toArray(Array.from($))])])))],["children",y.Children.toArray(Array.from(S))])])))],["children",y.Children.toArray(Array.from(b))])]))),c("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(D=[c("div",w(le((F=Z(T(()=>H(qs(L=>{let E,_,k;const N=L[0];return A(w6(N,L[1],f.IncomingValues,(E=N,op(f,E)?()=>{d(new Yo(1,[E]))}:void 0),(_=N,sp(f,_)?()=>{d(new Yo(0,[_]))}:void 0),(k=N,Nr(f.Selections,k).length>1?I=>{let O;d((O=[k,I],new Yo(2,[O[0],O[1]])))}:void 0),I=>{let O;d((O=[N,I[0],I[1]],new Yo(3,[O[0],O[1],O[2]])))}))},Fy(f.Selections)),T(()=>{let L,E,_,k,N,I;return H(f.DiscardedValues.length===0?A(Ae()):A(c("div",w(g([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(L=[c("div",w(g([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(E=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[tp(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(_))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[Ca(16,12)],["children",y.Children.toArray(Array.from(k))])]))),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(N=[c("div",w(g([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(I=Z(T(()=>H(A(c("div",w(Z(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(c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(O=Ze(B=>c("li",{children:[B]}),ys(Fn(T(()=>H(A(Ze(B=>B.fields[0],f.DiscardedValues.slice(void 0,8))),T(()=>f.DiscardedValues.length>8?A(["... and 0 other values"]):ft())))))),["children",y.Children.toArray(Array.from(O))])]))))})))),["children",y.Children.toArray(Array.from(I))])])))],["children",y.Children.toArray(Array.from(N))])])))],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(L))])])))),T(()=>{let O;return A(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(O=Z(T(()=>H(f.DiscardedValues.length===0?A(np("All incoming values have been mapped.")):A(Ae()),T(()=>{let B,pe,Y,W,P,G,j;return A(c("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(B=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(pe=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(Y=[c("button",w(g([(W="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",W]),["onClick",de=>{i(f.ValidatedMappings)}],(P=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(P))])]))),c("button",w(g([(G="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",G]),["disabled",h&&f.ValidatedMappings==null],["onClick",de=>{const z=f.ValidatedMappings;z==null?p[1](!0):o(z)}],(j=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Lu(13,8)],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(B))])]))))})))),["children",y.Children.toArray(Array.from(O))])]))))}))})))),["children",y.Children.toArray(Array.from(F))]))))],["children",y.Children.toArray(Array.from(D))])])))],["children",y.Children.toArray(Array.from(m))])]))))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class v6 extends _e{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.Errors=u}}class Zd extends _e{constructor(t,n){super(),this.Summary=t,this.Details=n}}function Zo(e){if(!vi(e))return e}function ap(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],L_(n[1])]:void 0;return g(Ze(i=>{let o,s,a,l,u,f,d,p,h,m,v,b,x,C,S,$,D;const F=i.fields[0];return ni(qt(L=>L,[(o=Zo(he(t.FirstName.fields[0],F)),o==null?void 0:(s=o,[wr(new se(0,[])),s])),(a=Zo(he(t.LastName.fields[0],F)),a==null?void 0:(l=a,[wr(new se(1,[])),l])),(u=Zo(he(t.Email.fields[0],F)),u==null?void 0:(f=u,[wr(new se(2,[])),f])),(d=(p=t.MobilePhone,p==null?void 0:(h=Zo(he(p.fields[0],F)),h==null?void 0:rp(h))),d==null?void 0:(m=d,[wr(new se(3,[])),m])),(v=(b=r,b==null?void 0:(x=b,C=(S=he(x[0],F),$=Ae(),[Oy(x[1],S,new _t(()=>$,L=>{$=L})),$]),C[0]?C[1]:void 0)),v==null?void 0:(D=v,[wr(new se(4,[])),D]))]),{Compare:Fr})},e.fields[0]))}function b6(e,t,n){const r=wr(n);return[br(e.Data,r),!ru(i=>i.PropName===r,t)]}function _6(e,t){const n=Nm(t.PropName);if(n==null)return["Invalid or missing field",!1];{const r=n,i=uo(r).toLocaleLowerCase();if(br(e.Data,wr(r))!=null){let s;switch(r.tag===2&&t.Message.startsWith("Duplicate")?s=0:s=1,s){case 0:return[`Duplicate ${i}`,!1];default:return[`Invalid ${i}`,!0]}}else return[`Missing ${i}`,!1]}}function Kd(e){const t=Nm(e.PropName);if(t==null)return e.Message;{const n=t;let r;switch(n.tag===2&&e.Message.startsWith("Duplicate")?r=0:r=1,r){case 0:return`${uo(n)} exists in multiple rows`;default:return Bf(e.Message,e.Column,uo(n))}}}function x6(e,t,n,r){return J.Delay(()=>J.TryWith(J.Delay(()=>{let i,o,s;return J.ReturnFrom((i=new tm(r!=null,nu((a,l)=>new wu(a+2,l),(o=[t,n,r],ap(o[0],o[1],o[2])))),s=e(i),J.Bind(s,a=>{let l;const u=a;return l=u.tag===1?new M(1,[u.fields[0]]):new M(0,[Qn(f=>{let d,p,h,m,v;const b=Qe((d=ag(C=>C.RowId===f.RowId,u.fields[0].Errors),d==null?void 0:d.FieldErrors),ot()),x=C=>b6(f,b,C);return new v6(f.RowId-2+1,x(new se(0,[])),x(new se(1,[])),x(new se(2,[])),x(new se(3,[])),(p=x(new se(4,[])),[(h=(m=p[0],m==null?void 0:F_(m)),h==null?void 0:Em(h)),p[1]]),ru(C=>C.Message.startsWith("Duplicate Email"),b),!$e(Tn(C=>!C.Message.startsWith("Duplicate Email"),b)),$e(b)?void 0:$e(Me(b))?(v=_6(f,ae(b)),new Zd(v[0],v[1]?le(Kd(ae(b))):void 0)):new Zd("Multiple invalid or missing fields",Qn(Kd,b)))},i.Data)]),J.Return(l)})))}),i=>J.Return(new M(1,[Je(i)]))))}function C6(e,t,n,r,i){return J.Delay(()=>J.TryWith(J.Delay(()=>{let o;return J.Bind(e(new nm(r!=null,Q(i,new Nt(0,[])),nu((s,a)=>new wu(s+2,a),(o=[t,n,r],ap(o[0],o[1],o[2]))))),s=>{let a;return J.Return((a=s,a.tag===1?new M(1,[a.fields[0]]):new M(0,[a.fields[0].ImportId])))})}),o=>J.Return(new M(1,[Je(o)]))))}let eo=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage"]}},Yr=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validating","Reviewing"]}};class Zi extends _e{constructor(t,n,r,i,o,s,a,l,u,f,d,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=d|0,this.Page=p,this.PageNo=h|0}}function S6(e){return[new Yr(0,[]),N0(t=>{T0(t)},e,void 0,t=>new eo(0,[t]))]}function Ko(e,t,n){const r=(e-1)*20|0,i=mg(r,e*20-1,n?Tn(o=>o.Errors!=null,t):t);if($e(i))return[0,0,ot()];{const o=i;return[r+1,r+un(o),o]}}function lp(e){return e.PageNo>1}function up(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function E6(e,t){const n=Tn(r=>r.Errors!=null,e.Data);return xo(le(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
|
|
50
|
+
`),nu((r,i)=>{const o=Qe(Ct(d=>d.Summary,i.Errors),""),s=Qe(i.FirstName[0],""),a=Qe(i.LastName[0],""),l=Qe(i.Email[0],""),u=Qe(i.MobilePhone[0],""),f=r===un(n)-1?"":`
|
|
51
|
+
`;return t?`${o},${s},${a},${l},${u},${Qe(i.EmploymentBasis[0],"")},${i.RowNumber}${f}`:`${o},${s},${a},${l},${u},${i.RowNumber}${f}`},n))}function A6(e,t,n){let r,i,o,s,a,l,u,f,d,p,h;switch(t.tag){case 1:{n.tag===1?(i=2,a=t.fields[0],l=n.fields[0]):(i=6,h=n);break}case 2:{n.tag===1?(r=n.fields[0],r.HasErrors&&r.ShowingOnlyRowsWithErrors!==t.fields[0]?(i=3,u=n.fields[0],f=t.fields[0]):(i=6,h=n)):(i=6,h=n);break}case 3:{n.tag===1&&up(n.fields[0])?(i=4,d=n.fields[0]):(i=6,h=n);break}case 4:{n.tag===1&&lp(n.fields[0])?(i=5,p=n.fields[0]):(i=6,h=n);break}default:t.fields[0].tag===1?n.tag===0?(i=1,s=t.fields[0].fields[0]):(i=6,h=n):n.tag===0?(i=0,o=t.fields[0].fields[0]):(i=6,h=n)}switch(i){case 0:{let m;const v=[o,!1];return m=Ko(1,v[0],v[1]),[new Yr(1,[new Zi(o,new Nt(1,[]),un(Tn(b=>b.HasDuplicateEmailError,o)),un(Tn(b=>b.HasErrorOtherThanDuplicateEmail,o)),un(Tn(b=>b.Errors!=null,o)),un(o),un(Tn(b=>b.Errors==null,o)),!1,ru(b=>b.Errors!=null,o),m[0],m[1],m[2],1)]),X()]}case 1:return[n,ts(m=>{e(s)})];case 2:return[new Yr(1,[new Zi(l.Data,a,l.DuplicateEmailCount,l.NumberOfRowsWithErrorsOtherThanDuplicateEmail,l.NumberOfInvalidRows,l.NumberOfRows,l.NumberOfValidRows,l.ShowingOnlyRowsWithErrors,l.HasErrors,l.RowFrom,l.RowTo,l.Page,l.PageNo)]),X()];case 3:{let m;const v=[u.Data,f];return m=Ko(1,v[0],v[1]),[new Yr(1,[new Zi(u.Data,u.InviteTiming,u.DuplicateEmailCount,u.NumberOfRowsWithErrorsOtherThanDuplicateEmail,u.NumberOfInvalidRows,u.NumberOfRows,u.NumberOfValidRows,f,u.HasErrors,m[0],m[1],m[2],1)]),X()]}case 4:{const m=d.PageNo+1|0;let v;const b=[d.Data,d.ShowingOnlyRowsWithErrors];return v=Ko(m,b[0],b[1]),[new Yr(1,[new Zi(d.Data,d.InviteTiming,d.DuplicateEmailCount,d.NumberOfRowsWithErrorsOtherThanDuplicateEmail,d.NumberOfInvalidRows,d.NumberOfRows,d.NumberOfValidRows,d.ShowingOnlyRowsWithErrors,d.HasErrors,v[0],v[1],v[2],m)]),X()]}case 5:{const m=p.PageNo-1|0;let v;const b=[p.Data,p.ShowingOnlyRowsWithErrors];return v=Ko(m,b[0],b[1]),[new Yr(1,[new Zi(p.Data,p.InviteTiming,p.DuplicateEmailCount,p.NumberOfRowsWithErrorsOtherThanDuplicateEmail,p.NumberOfInvalidRows,p.NumberOfRows,p.NumberOfValidRows,p.ShowingOnlyRowsWithErrors,p.HasErrors,v[0],v[1],v[2],m)]),X()]}default:return[h,X()]}}function cp(e,t){let n,r,i;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(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"]]))),c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function dp(e,t,n){let r,i,o,s,a,l,u,f,d,p,h,m,v,b,x,C,S,$,D,F,L,E;return Ii(g([new bt(3,[t]),new bt(4,[n]),new bt(5,[[Ri(le(new Oi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Di(le(new or(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(i=[c("div",w(g([["className","flex flex-row justify-between"],(o=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),c("button",w(g([["onClick",_=>{n()}],["type","button"],["className","text-gray-600"],(s=[Fi(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","text-gray-600 text-sm pt-6"],(a=[c("span",{children:"Fields marked with "}),c("span",{className:"text-red-600",children:"*"}),c("span",w(le((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",y.Children.toArray(Array.from(a))])]))),c("div",w(g([["className","grid grid-cols-2 mt-3"],(u=[c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(f=[c("span",{children:"First name "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(le((d=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(d))])))),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[c("span",{children:"Last name "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(h))])]))),c("div",w(le((m=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(v=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(m))])))),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(b=[c("span",{children:"Email "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(b))])]))),c("div",w(le((x=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(C=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",y.Children.toArray(Array.from(C))])])))],["children",y.Children.toArray(Array.from(x))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),c("div",w(le((S=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],($=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"+61432368712"})],["children",y.Children.toArray(Array.from($))])])))],["children",y.Children.toArray(Array.from(S))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),c("div",w(le((D=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(F=[c("span",{children:"One of the following options:"}),c("br",{}),c("ul",w(g([["className","italic list-disc px-3"],(L=[c("li",{children:"Full-time"}),c("li",{children:"Part-time"}),c("li",{children:"Labour hire"}),c("li",{children:"Casual"})],["children",y.Children.toArray(Array.from(L))])])))],["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(D))])))),c("a",w(g([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(E=[c("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),cp(16,16)],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(i))])])))]])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}function k6(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m;return Ii(g([new bt(3,[e]),new bt(4,[t]),new bt(5,[[Ri(le(new Oi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Di(le(new or(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),c("button",w(g([["onClick",v=>{t()}],["type","button"],["className","text-gray-600"],(o=[Fi(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(g([["className","text-gray-500 text-sm font-normal pt-6"],(s=[c("p",w(le((a=[c("span",{children:["Workplace benefits is a"]}),c("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.",c("span",{children:[l]}))],["children",y.Children.toArray(Array.from(a))])))),c("p",w(g([["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 ",c("span",{children:[f]})),c("span",{className:"font-semibold",children:" Flare App"}),c("span",{children:["."]})],["children",y.Children.toArray(Array.from(u))])]))),c("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),c("ul",w(g([["className","list-inside list-disc pt-3"],(d=[c("li",w(le((p=[c("span",{className:"font-semibold",children:"Savings "}),c("span",{children:["on essentials like food, fuel, and more."]})],["children",y.Children.toArray(Array.from(p))])))),c("li",w(g([["className","pt-2"],(h=[c("span",{className:"font-semibold",children:"Exclusive offers "}),c("span",{children:["from leading brands and retailers."]})],["children",y.Children.toArray(Array.from(h))])]))),c("li",w(g([["className","pt-2"],(m=[c("span",{className:"font-semibold",children:"Tax savings "}),c("span",{children:["with salary packaging."]})],["children",y.Children.toArray(Array.from(m))])])))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}const N6=e=>c("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{id:"Group 67"},c("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)"}),c("g",{id:"Group",opacity:.95},c("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)"})),c("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)"}),c("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"}),c("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"}),c("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"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#161E37"}),c("stop",{offset:.11,stopColor:"#172243"}),c("stop",{offset:.31,stopColor:"#1B2E62"}),c("stop",{offset:.57,stopColor:"#214196"}),c("stop",{offset:.89,stopColor:"#2A5CDD"}),c("stop",{offset:1,stopColor:"#2E66F7"})),c("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{offset:.11,stopColor:"#FF876F"}),c("stop",{offset:.99,stopColor:"#A650FF"})),c("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#0095F2"}),c("stop",{offset:.29,stopColor:"#307CF6"}),c("stop",{offset:.61,stopColor:"#6163FB"}),c("stop",{offset:.86,stopColor:"#7F54FD"}),c("stop",{offset:1,stopColor:"#8B4FFF"})))),T6=e=>c("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:12,viewBox:"0 0 12 12",fill:"none",...e},c("path",{d:"M6.00033 0.666504C3.05966 0.666504 0.666992 3.05917 0.666992 5.99984C0.666992 8.9405 3.05966 11.3332 6.00033 11.3332C8.94099 11.3332 11.3337 8.9405 11.3337 5.99984C11.3337 3.05917 8.94099 0.666504 6.00033 0.666504ZM6.50033 8.54584C6.50033 8.82184 6.27633 9.04584 6.00033 9.04584C5.72433 9.04584 5.50033 8.82184 5.50033 8.54584V5.49984C5.50033 5.22384 5.72433 4.99984 6.00033 4.99984C6.27633 4.99984 6.50033 5.22384 6.50033 5.49984V8.54584ZM6.00033 4.49984C5.63233 4.49984 5.33366 4.2005 5.33366 3.83317C5.33366 3.46584 5.63233 3.1665 6.00033 3.1665C6.36833 3.1665 6.66699 3.46584 6.66699 3.83317C6.66699 4.2005 6.36833 4.49984 6.00033 4.49984Z",fill:"currentColor"})),$6=e=>c("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_4584_4202)"}),c("g",{clipPath:"url(#clip0_4584_4202)"},c("path",{d:"M9.24302 26.953L18.152 10.111C18.33 9.77467 18.5963 9.49321 18.9222 9.2969C19.2482 9.10059 19.6215 8.99686 20.002 8.99686C20.3825 8.99686 20.7559 9.10059 21.0818 9.2969C21.4078 9.49321 21.6741 9.77467 21.852 10.111L30.761 26.953C30.9282 27.2708 31.0103 27.6266 30.9991 27.9855C30.988 28.3445 30.8841 28.6944 30.6975 29.0013C30.5109 29.3081 30.2479 29.5614 29.9343 29.7364C29.6207 29.9115 29.2672 30.0023 28.908 30H11.092C10.7332 30.0016 10.3801 29.9103 10.0671 29.735C9.75404 29.5597 9.49169 29.3063 9.30555 28.9996C9.11942 28.6928 9.01583 28.3431 9.00488 27.9845C8.99392 27.6259 9.07596 27.2705 9.24302 26.953V26.953Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20 16V22",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20 27C20.8284 27 21.5 26.3284 21.5 25.5C21.5 24.6716 20.8284 24 20 24C19.1716 24 18.5 24.6716 18.5 25.5C18.5 26.3284 19.1716 27 20 27Z",fill:"#DC2626"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4584_4202",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#FECACA"}),c("stop",{offset:1,stopColor:"#FECACA",stopOpacity:0})),c("clipPath",{id:"clip0_4584_4202"},c("rect",{width:24,height:24,fill:"white",transform:"translate(8 8)"})))),M6=e=>c("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_3326_53774)"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.3272 22.6261C28.5428 23.1983 28.2016 23.8306 27.6205 24.025C26.6465 24.3503 25.3424 24.6628 23.7902 24.7151C23.7699 24.6508 23.7476 24.5864 23.7234 24.522C23.042 22.7136 21.7109 21.2192 20.0107 20.3308C20.9217 19.6032 22.0762 19.1683 23.3339 19.1683C25.6205 19.1683 27.5661 20.6061 28.3272 22.6261Z",fill:"#93C5FD"}),c("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",fill:"#93C5FD"}),c("path",{d:"M16.3892 19.1667C17.6165 19.1667 18.6114 18.1718 18.6114 16.9445C18.6114 15.7172 17.6165 14.7222 16.3892 14.7222C15.1619 14.7222 14.167 15.7172 14.167 16.9445C14.167 18.1718 15.1619 19.1667 16.3892 19.1667Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20.6771 26.8022C21.2583 26.6078 21.5994 25.9756 21.3838 25.4033C20.6227 23.3833 18.6771 21.9456 16.3905 21.9456C14.1038 21.9456 12.1583 23.3833 11.3971 25.4033C11.1816 25.9767 11.5227 26.6089 12.1038 26.8022C13.1727 27.1589 14.6383 27.5 16.3916 27.5C18.1449 27.5 19.6094 27.1589 20.6771 26.8022Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M24.1664 24.6967C25.553 24.6111 26.7264 24.3233 27.6208 24.0245C28.2019 23.83 28.543 23.1978 28.3275 22.6256C27.5664 20.6056 25.6208 19.1678 23.3341 19.1678C22.2486 19.1678 21.2397 19.4922 20.3975 20.0489",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("defs",null,c("linearGradient",{id:"paint0_linear_3326_53774",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#D6E2FC"}),c("stop",{offset:1,stopColor:"#D6E2FC",stopOpacity:0})))),I6=e=>c("svg",{width:96,height:28,viewBox:"0 0 96 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{clipPath:"url(#clip0_3030_30757)"},c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.40895 5.42706C5.79785 4.83985 8.86151 3.00302 11.0249 0.261313C11.1152 0.153807 11.235 0.0767261 11.3686 0.0401219C11.5021 0.00351777 11.6434 0.0090886 11.7738 0.056108C11.9043 0.103127 12.0179 0.189414 12.0999 0.303716C12.1819 0.418018 12.2285 0.555032 12.2335 0.696894L12.2335 11.4663C12.2313 11.588 12.1985 11.7071 12.1382 11.812C12.078 11.9168 11.9924 12.0039 11.8897 12.0648C11.787 12.1257 11.6708 12.1583 11.5522 12.1594C11.4336 12.1606 11.3168 12.1303 11.213 12.0714L2.17962 6.71732C2.06323 6.6422 1.97142 6.53301 1.91604 6.40381C1.86067 6.27462 1.84426 6.13136 1.86894 5.9925C1.89362 5.85364 1.95825 5.72556 2.05451 5.62478C2.15076 5.52399 2.27422 5.45513 2.40895 5.42706ZM2.40895 22.6054C5.79785 23.1926 8.86151 25.0295 11.0249 27.7712C11.1152 27.8787 11.235 27.9557 11.3686 27.9923C11.5021 28.029 11.6434 28.0234 11.7738 27.9764C11.9043 27.9293 12.0179 27.8431 12.0999 27.7288C12.1819 27.6145 12.2285 27.4774 12.2335 27.3356L12.2335 16.5756C12.2328 16.453 12.2012 16.3328 12.1416 16.2267C12.082 16.1205 11.9965 16.0321 11.8936 15.9701C11.7906 15.9081 11.6738 15.8747 11.5544 15.8731C11.4351 15.8715 11.3174 15.9018 11.213 15.961L2.17962 21.3151C2.06323 21.3903 1.97142 21.4995 1.91604 21.6287C1.86067 21.7578 1.84426 21.9011 1.86894 22.04C1.89362 22.1788 1.95825 22.3069 2.05451 22.4077C2.15076 22.5085 2.27422 22.5773 2.40895 22.6054ZM0.20511 8.8811C1.43425 12.1754 1.45137 15.8168 0.253269 19.1231C0.21046 19.2568 0.207545 19.4007 0.244898 19.5361C0.28225 19.6715 0.358167 19.7924 0.462907 19.8833C0.567647 19.9741 0.696433 20.0307 0.832742 20.0459C0.96905 20.0611 1.10666 20.0341 1.22793 19.9684L10.2567 14.6166C10.3578 14.5537 10.4414 14.465 10.4994 14.3592C10.5574 14.2535 10.5879 14.1341 10.5879 14.0127C10.5879 13.8913 10.5574 13.772 10.4994 13.6662C10.4414 13.5604 10.3578 13.4717 10.2567 13.4088L1.17518 8.02406C1.05302 7.95812 0.914374 7.93142 0.777244 7.94743C0.640114 7.96344 0.510844 8.02142 0.406231 8.11384C0.301618 8.20627 0.226497 8.32886 0.190631 8.46568C0.154764 8.60251 0.159809 8.74725 0.20511 8.8811ZM23.6634 22.6054C20.2745 23.1926 17.2108 25.0295 15.0474 27.7712C14.9571 27.8787 14.8374 27.9557 14.7038 27.9923C14.5702 28.029 14.4289 28.0234 14.2985 27.9764C14.168 27.9293 14.0544 27.8431 13.9724 27.7288C13.8904 27.6145 13.8439 27.4774 13.8388 27.3356L13.8388 16.5756C13.8397 16.4534 13.8714 16.3335 13.9309 16.2277C13.9904 16.1219 14.0756 16.0337 14.1781 15.9718C14.2807 15.9098 14.3972 15.8763 14.5162 15.8744C14.6352 15.8725 14.7527 15.9024 14.8571 15.961L23.8927 21.3152C24.0091 21.3903 24.1009 21.4995 24.1563 21.6287C24.2117 21.7579 24.2281 21.9011 24.2034 22.04C24.1787 22.1788 24.1141 22.3069 24.0178 22.4077C23.9216 22.5085 23.7981 22.5773 23.6634 22.6054ZM15.0474 0.261313C17.2108 3.00302 20.2745 4.83985 23.6634 5.42706C23.7981 5.45513 23.9216 5.52399 24.0178 5.62478C24.1141 5.72556 24.1787 5.85364 24.2034 5.9925C24.2281 6.13136 24.2117 6.27462 24.1563 6.40381C24.1009 6.53301 24.0091 6.6422 23.8927 6.71732L14.8571 12.0714C14.7533 12.1297 14.6367 12.1596 14.5185 12.1581C14.4002 12.1567 14.2844 12.124 14.182 12.0632C14.0797 12.0024 13.9943 11.9155 13.9342 11.8109C13.8741 11.7064 13.8412 11.5877 13.8388 11.4663L13.8388 0.696894C13.8439 0.555032 13.8904 0.418018 13.9724 0.303716C14.0544 0.189414 14.168 0.103127 14.2985 0.056108C14.4289 0.0090886 14.5702 0.00351777 14.7038 0.0401219C14.8374 0.0767261 14.9571 0.153807 15.0474 0.261313ZM25.8168 8.90935C24.6184 12.2158 24.6363 15.8576 25.8672 19.1514C25.913 19.2855 25.9182 19.4307 25.8823 19.5679C25.8464 19.7052 25.7711 19.8281 25.666 19.9207C25.561 20.0133 25.4312 20.0711 25.2936 20.0868C25.1561 20.1024 25.0171 20.0751 24.8949 20.0084L15.8111 14.6237C15.71 14.5607 15.6264 14.4721 15.5684 14.3663C15.5104 14.2605 15.4799 14.1412 15.4799 14.0198C15.4799 13.8984 15.5104 13.779 15.5684 13.6732C15.6264 13.5674 15.71 13.4788 15.8111 13.4158L24.8421 8.06409C24.9634 7.9984 25.101 7.97141 25.2373 7.98657C25.3736 8.00174 25.5024 8.05837 25.6072 8.14921C25.7119 8.24004 25.7878 8.36093 25.8252 8.49637C25.8625 8.63181 25.8596 8.77562 25.8168 8.90935Z",fill:"#2696EC"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2209 10.9851V23.8468H35.8118V10.9851H33.4648V7.92778H35.8118V6.51672C35.8118 4.91439 36.1765 3.76595 36.9061 3.0714C37.6356 2.37685 38.8454 2.02879 40.5355 2.02722H42.4442V4.82816H41.2857C40.5347 4.82816 40.0032 4.98495 39.6912 5.29851C39.3769 5.6207 39.2209 6.16396 39.2209 6.94474V7.93718H42.3891V10.9945L39.2209 10.9851ZM48.9092 2.03663L45.4679 2.03663V23.8421L48.9092 23.8421V2.03663ZM67.5974 23.8468V7.93718L64.2755 7.93718V10.1196C63.6573 9.3308 62.873 8.69564 61.9813 8.26172C61.0863 7.83165 60.1089 7.61228 59.1205 7.6197C58.0959 7.5972 57.0782 7.79484 56.1327 8.19987C55.1871 8.60491 54.3348 9.20838 53.6305 9.97145C52.1393 11.5597 51.3937 13.5195 51.3937 15.8508C51.3952 18.2324 52.1202 20.2032 53.5686 21.7632C55.017 23.3232 56.8362 24.1031 59.0264 24.1031C60.0369 24.1101 61.0362 23.886 61.9515 23.447C62.8575 23.009 63.6545 22.3657 64.2823 21.5656V23.8468H67.5974ZM55.138 17.7811C54.9016 17.1671 54.7876 16.5107 54.8028 15.8508C54.7876 15.1909 54.9016 14.5346 55.138 13.9206C55.3744 13.3066 55.7285 12.7475 56.1794 12.2762C56.6129 11.8155 57.1322 11.4489 57.7066 11.1979C58.281 10.947 58.8988 10.8169 59.5231 10.8153C60.1475 10.8138 60.7658 10.9409 61.3414 11.189C61.917 11.4371 62.4381 11.8012 62.8737 12.2597C63.3183 12.7374 63.6661 13.3008 63.8968 13.9172C64.1276 14.5337 64.2368 15.1909 64.2181 15.8508C64.2368 16.5108 64.1276 17.168 63.8968 17.7844C63.6661 18.4009 63.3183 18.9642 62.8737 19.442C62.4381 19.9005 61.917 20.2646 61.3414 20.5127C60.7658 20.7608 60.1475 20.8879 59.5231 20.8863C58.8988 20.8848 58.281 20.7547 57.7066 20.5038C57.1322 20.2528 56.6129 19.8861 56.1794 19.4255C55.7285 18.9542 55.3744 18.395 55.138 17.7811ZM74.317 14.254V23.8468H70.9079V7.93718L74.223 7.93718V9.54108C74.592 8.94917 75.0969 8.45902 75.6935 8.11357C76.2985 7.77921 76.977 7.60919 77.6642 7.6197C78.1147 7.61511 78.5633 7.68012 78.9948 7.81254C79.3586 7.91663 79.6949 8.10308 79.979 8.35815L78.2584 11.4366C78.0425 11.2918 77.8055 11.1831 77.5564 11.1144C77.3265 11.052 77.0899 11.0196 76.8521 11.018C76.4954 11.0017 76.1402 11.0733 75.8161 11.2268C75.4919 11.3802 75.2084 11.611 74.9892 11.8999C74.5411 12.4863 74.317 13.271 74.317 14.254ZM95.8271 16.467C95.8432 16.34 95.8432 16.1472 95.8432 15.8908C95.8355 13.4967 95.0815 11.5197 93.5811 9.95969C92.0807 8.3997 90.1835 7.6197 87.8893 7.6197C85.5676 7.61186 83.642 8.38872 82.1126 9.95029C80.5831 11.5119 79.8184 13.4897 79.8184 15.8838C79.8184 18.2982 80.5587 20.2698 82.0392 21.7984C83.5197 23.3271 85.4384 24.0914 87.7952 24.0914C89.5346 24.1334 91.2443 23.6242 92.691 22.6333C94.0578 21.6868 95.0674 20.2892 95.5518 18.6729H91.9546C91.5609 19.4036 90.9761 20.0071 90.266 20.4156C89.5283 20.8295 88.6981 21.0394 87.8572 21.0247C86.7294 21.0612 85.6315 20.65 84.7922 19.877C83.977 19.1229 83.4975 18.1038 83.3537 16.8198H95.7812C95.8037 16.7033 95.819 16.5855 95.8271 16.467ZM87.8324 10.6957C87.8338 10.6957 87.8351 10.6958 87.8365 10.6958H87.8274C87.829 10.6958 87.8307 10.6957 87.8324 10.6957ZM84.9413 11.7212C85.7535 11.0344 86.7798 10.6704 87.8324 10.6957C88.8902 10.6749 89.9201 11.0447 90.7341 11.7376C91.5425 12.4257 92.0583 13.409 92.1725 14.4798L83.3927 14.4798C83.5781 13.4028 84.1261 12.4266 84.9413 11.7212Z",fill:"#143057"})),c("defs",null,c("clipPath",{id:"clip0_3030_30757"},c("rect",{width:95.6667,height:28,fill:"white",transform:"translate(0.166992)"}))));function Po(e,t){return y.createElement(e,w(t))}function D6(e){return Po(N6,e)}function O6(e){return Po(T6,e)}function R6(e){return Po($6,e)}function F6(e){return Po(M6,e)}function P6(e){return Po(I6,e)}function L6(e,t,n,r){let i,o,s,a,l,u,f,d,p,h,m;return Ii(g([new bt(3,[e]),new bt(4,[n]),new bt(5,[[Ri(le(new Oi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(i=[c("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(o=[Di(g([new or(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new or(2,[[c("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(s=[c("button",w(g([["type","button"],["onClick",v=>{n()}],["className","text-gray-600"],(a=[Fi(24,24)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),c("div",w(g([["className","sm:flex sm:items-start"],(l=[c("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(u=[F6([])],["children",y.Children.toArray(Array.from(u))])]))),c("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(f=[Gh(g([new Is(2,["text-gray-900 text-lg font-bold"]),new Is(3,[[`Import ${t} users`]])])),c("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(d=[c("p",{children:[`Are you sure you want to import ${t} users?`]})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(p=[c("button",w(g([["type","button"],["onClick",v=>{r()}],(h="inline-flex w-full justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-emerald-700 sm:ml-3 sm:w-auto",["className",h]),["children","Confirm import"]]))),c("button",w(g([["type","button"],["onClick",v=>{n()}],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",m]),["children","Cancel"]])))],["children",y.Children.toArray(Array.from(p))])])))]])]))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])])))]])]))}function V6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function H6(e){return`${Jl(e,".")}.`}function Xd(e){return Jl(e,".")}function j6(e){let t;const n=e.children,r=e.text,i=y.useState(!1),o=i[1];return c("div",w(g([["className","relative inline-block"],["onMouseEnter",s=>{o(!0)}],["onMouseLeave",s=>{o(!1)}],(t=Z(T(()=>H(n,T(()=>{let s,a;return i[0]?A(c("div",w(g([(s="absolute top-0 left-full -translate-y-1/4 ml-1 text-left text-white text-xs leading-5 font-medium ring-1 ring-black ring-opacity-5 shadow-md rounded-md bg-gray-900 px-3 py-2 w-60 text-wrap",["className",s]),(a=Z(T(()=>{let l;return $e(r)?A(c("ul",w(g([["className","list-inside list-disc"],(l=Z(T(()=>Pe(u=>c("li",{children:[Xd(u)]}),r))),["children",y.Children.toArray(Array.from(l))])])))):$e(Me(r))?A(c("p",{children:[H6(ae(r))]})):A(c("ul",w(g([["className","list-inside list-disc"],(l=Z(T(()=>Pe(u=>c("li",{children:[Xd(u)]}),r))),["children",y.Children.toArray(Array.from(l))])]))))})),["children",y.Children.toArray(Array.from(a))])])))):ft()})))),["children",y.Children.toArray(Array.from(t))])])))}function Wr(e,t){let n;return c("div",w(g([["className",Et(" ",["animate-pulse w-full relative",e,t])],(n=[c("div",{className:Et(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}function B6(){let e,t,n,r,i,o,s,a,l,u,f,d;return c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[c("div",w(g([["className","flex-col justify-start items-end gap-4 inline-flex"],(t=[c("div",w(g([["className","justify-start items-center gap-2 inline-flex"],(n=[c("input",{type:"checkbox",defaultChecked:!1,disabled:!0,className:"rounded-sm border border-gray-300 bg-white"}),c("span",{className:"text-gray-400 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[c("div",w(g([["className","w-[1030px]"],(i=Z(T(()=>{let p,h,m,v;return H(A(c("div",w(g([["className","bg-gray-100 flex"],(p=[c("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(h=[Wr("h-5","w-full")],["children",y.Children.toArray(Array.from(h))])]))),c("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(m=[Wr("h-5","w-full")],["children",y.Children.toArray(Array.from(m))])]))),c("div",w(g([["className","px-3 py-2.5 text-left flex-1"],(v=[Wr("h-5","w-full")],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(p))])])))),T(()=>Pe(b=>c("div",w(Z(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,S,$;return A((x=[c("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(C=[Wr("h-5","w-full")],["children",y.Children.toArray(Array.from(C))])]))),c("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(S=[Wr("h-5","w-full")],["children",y.Children.toArray(Array.from(S))])]))),c("div",w(g([["className","px-3 py-2.5 text-left flex-1"],($=[Wr("h-5","w-full")],["children",y.Children.toArray(Array.from($))])])))],["children",y.Children.toArray(Array.from(x))]))})))))),Z(du(0,1,9)))))})),["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])]))),c("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(o=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(s=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(a=[c("button",w(g([(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=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(u))])]))),c("button",w(g([(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],(d=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(e))])])))}function U6(e){const t=Ze(r=>r,ar(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const W6=(()=>{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 G6(e){let t,n,r;const i=e.onError,o=e.back,s=e.next,a=e.employmentBasis,l=e.baseColumnMappings,u=e.dataRows,f=e.apiCallAsync;let d;const p=S6(()=>x6(f,u,l,a));d=Lr(()=>Pr(()=>p,(D,F)=>A6(i,D,F),(D,F)=>{}),void 0,void 0);const h=d[1],m=y.useState(!1),v=m[1],b=y.useState(!1),x=b[1],C=y.useState(!1),S=C[0],$=C[1];return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[dp(W6,m[0],()=>{v(!1)}),k6(b[0],()=>{x(!1)}),_a("Review"),xa("Preview your data and confirm that everything is mapped correctly."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[ho("What kind of data do I need?",()=>{v(!0)})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=[c("div",w(Z(T(()=>H(A(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),T(()=>{let D,F,L;const E=d[0];if(E.tag===1){const _=E.fields[0],k=B=>{h(new eo(1,[B]))},N=B=>{h(new eo(2,[B]))},I=up(_)?B=>{h(new eo(3,[]))}:void 0,O=lp(_)?B=>{h(new eo(4,[]))}:void 0;return A((D=[c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(F=Z(T(()=>H(A(L6(S,_.NumberOfValidRows,()=>{S&&$(!1)},()=>{S&&s([new Am(Fn(Pe(B=>B[0],zs(B=>B[1].Errors==null,Fg(u.fields[0],_.Data))))),_.InviteTiming])})),T(()=>{let B,pe,Y,W,P,G,j,de;return H(_.HasErrors?A(c("div",w(g([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex"],(B=[V6(20,20),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(pe=[c("div",w(g([["className","self-stretch text-amber-800 text-sm font-medium leading-tight"],(Y=[c("span",{children:[`We found some issues across ${_.NumberOfInvalidRows} rows in your CSV:`]})],["children",y.Children.toArray(Array.from(Y))])]))),c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],(W=Z(T(()=>{let z;return H(_.DuplicateEmailCount>0?A((z=g([c("span",{className:"font-medium",children:`${_.DuplicateEmailCount} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"duplicate email addresses"})]),c("li",{children:y.Children.toArray(Array.from(z))}))):ft(),T(()=>{let R;return _.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?A((R=g([c("span",{className:"font-medium",children:`${_.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"missing or incorrectly formatted data"})]),c("li",{children:y.Children.toArray(Array.from(R))}))):ft()}))})),["children",y.Children.toArray(Array.from(W))])]))),c("div",w(g([["className","px-2 py-1.5"],(P=[c("div",w(g([["className","text-amber-700 text-sm leading-tight"],(G=[c("span",{children:[`You can continue the import without these ${_.NumberOfInvalidRows} rows—we’ll automatically skip them. To import them later, download the error report, fix the issues, and re-upload your file as a new import.`]})],["children",y.Children.toArray(Array.from(G))])])))],["children",y.Children.toArray(Array.from(P))])]))),c("div",w(g([["className","px-2 py-1.5"],(j=[c("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error Report (.csv)",href:U6((de=[_,a!=null],E6(de[0],de[1]))),download:"import_users_error_rows"})],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(B))])])))):ft(),T(()=>{let z,R,ge,me,we,Ee,ne,xe,Ce,De,ee,oe,q,Se;return H(A(c("div",w(g([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(z=[c("div",w(g([["className","justify-start items-center gap-2 inline-flex py-3 -my-3"],["onClick",te=>{N(!_.ShowingOnlyRowsWithErrors)}],(R=[c("input",w(g([["type","checkbox"],["checked",_.ShowingOnlyRowsWithErrors],(ge="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",["className",ge]),["onKeyPress",te=>{te.preventDefault(),te.key==="Enter"&&N(!_.ShowingOnlyRowsWithErrors)}]]))),c("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(R))])]))),c("div",w(g([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(me=[c("div",w(le((we=[c("div",w(g([["className","w-full max-h-[470px] overflow-auto"],(Ee=[c("table",w(g([["className","w-full divide-y divide-gray-300"],(ne=[c("thead",w(g([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(xe=[(Ce=Z(T(()=>H(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),T(()=>H(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Error detail"})),T(()=>{let te;return H(A(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(te=[c("span",{children:["First name "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(te))])])))),T(()=>{let ce;return H(A(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(ce=[c("span",{children:["Last name "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(ce))])])))),T(()=>{let Be;return H(A(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(Be=[c("span",{children:["Email "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(Be))])])))),T(()=>H(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Mobile Phone"})),T(()=>a!=null?A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Employment Basis"})):ft()))))}))}))})))))),c("tr",{children:y.Children.toArray(Array.from(Ce))}))],["children",y.Children.toArray(Array.from(xe))])]))),c("tbody",w(g([["className","divide-y divide-gray-200"],(De=Z(T(()=>Pe(te=>c("tr",w(Z(T(()=>H(A(["key",te.RowNumber]),T(()=>{let ce;return H((ce=te.RowNumber%2|0,te.Errors==null?A(ce===1?["className","bg-white"]:["className","bg-gray-50"]):A(["className","bg-amber-50"])),T(()=>{let Be;return A((Be=Z(T(()=>H(A(c("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm text-gray-500",children:te.RowNumber})),T(()=>H(A(c("td",w(Z(T(()=>H(A(["className","whitespace-nowrap px-3 py-2.5"]),T(()=>{let ye,Ne,Te;return te.Errors!=null?A((ye=[c("div",w(g([(Ne="text-center text-amber-800 text-xs font-medium h-5 pl-2.5 pr-1.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",Ne]),(Te=Z(T(()=>H(A(c("span",{children:[V(te.Errors).Summary]})),T(()=>{let It;const ut=V(te.Errors).Details;return ut==null?ft():A(c("div",w(g([["className","pl-1 text-amber-700 items-center inline-flex"],(It=[c(j6,{text:ut,children:[O6([])]})],["children",y.Children.toArray(Array.from(It))])]))))})))),["children",y.Children.toArray(Array.from(Te))])])))],["children",y.Children.toArray(Array.from(ye))])):ft()}))))))),T(()=>H(A(c("td",w(Z(T(()=>{let ye,Ne;const Te=te.FirstName;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>H(A(c("td",w(Z(T(()=>{let ye,Ne;const Te=te.LastName;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>H(A(c("td",w(Z(T(()=>{let ye,Ne;const Te=te.Email;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>H(A(c("td",w(Z(T(()=>{let ye,Ne;const Te=te.MobilePhone;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>a!=null?A(c("td",w(Z(T(()=>{let ye,Ne;const Te=te.EmploymentBasis;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))):ft())))))))))))))),["children",y.Children.toArray(Array.from(Be))]))}))})))))),_.Page))),["children",y.Children.toArray(Array.from(De))])])))],["children",y.Children.toArray(Array.from(ne))])])))],["children",y.Children.toArray(Array.from(Ee))])]))),c("div",w(g([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(ee=[c("div",w(g([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(oe=[(q=g([c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.RowFrom}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.RowTo}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.ShowingOnlyRowsWithErrors?_.NumberOfInvalidRows:_.NumberOfRows}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:y.Children.toArray(Array.from(q))})),c("div",w(g([["className","justify-start items-start gap-3 flex"],(Se=[c("button",w(Z(T(()=>{let te;return H((te=O,te==null?A(["disabled",!0]):A(["onClick",te])),T(()=>{let ce;return H(A((ce="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ce])),T(()=>{let Be;return A((Be=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",y.Children.toArray(Array.from(Be))]))}))}))})))),c("button",w(Z(T(()=>{let te;return H((te=I,te==null?A(["disabled",!0]):A(["onClick",te])),T(()=>{let ce;return H(A((ce="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ce])),T(()=>{let Be;return A((Be=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",y.Children.toArray(Array.from(Be))]))}))}))}))))],["children",y.Children.toArray(Array.from(Se))])])))],["children",y.Children.toArray(Array.from(oe))])])))],["children",y.Children.toArray(Array.from(ee))])])))],["children",y.Children.toArray(Array.from(we))]))))],["children",y.Children.toArray(Array.from(me))])])))],["children",y.Children.toArray(Array.from(z))])])))),T(()=>{let te,ce,Be,ye,Ne,Te,It,ut,Xt,Xe,Pt,Ht,rn,Pi,xn;return H(_.NumberOfValidRows>0?A(c("div",w(g([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(te=[D6([]),c("div",w(g([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(ce=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Be=[c("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${_.NumberOfValidRows} users to workplace benefits`})],["children",y.Children.toArray(Array.from(Be))])]))),ho("What is workplace benefits?",()=>{x(!0)}),c("div",w(le((ye=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Ne=[c("div",w(g([["key",Je(new Nt(1,[]))],["className","relative flex items-start"],(Te=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",gt=>{k(new Nt(1,[]))}],(It=[c("input",w(g([["id",Je(new Nt(1,[]))],["name","InviteTiming"],["type","radio"],(ut="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",ut]),["checked",Q(_.InviteTiming,new Nt(1,[]))],["onChange",gt=>{gt.target.checked,k(new Nt(1,[]))}]])))],["children",y.Children.toArray(Array.from(It))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(Xt=[c("label",{for:Je(new Nt(1,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import now, Invite later"}),c("p",{id:`${Je(new Nt(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",y.Children.toArray(Array.from(Xt))])])))],["children",y.Children.toArray(Array.from(Te))])])))],["children",y.Children.toArray(Array.from(Ne))])]))),c("div",w(le((Xe=[c("div",w(g([["key",Je(new Nt(0,[]))],["className","relative flex items-start"],(Pt=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",gt=>{k(new Nt(0,[]))}],(Ht=[c("input",w(g([["id",Je(new Nt(0,[]))],["name","InviteTiming"],["type","radio"],(rn="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",rn]),["checked",Q(_.InviteTiming,new Nt(0,[]))],["onChange",gt=>{gt.target.checked,k(new Nt(0,[]))}]])))],["children",y.Children.toArray(Array.from(Ht))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(Pi=[c("label",{for:Je(new Nt(0,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import and invite now"}),c("p",w(g([["id",`${Je(new Nt(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(xn="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",xn])])))],["children",y.Children.toArray(Array.from(Pi))])])))],["children",y.Children.toArray(Array.from(Pt))])])))],["children",y.Children.toArray(Array.from(Xe))]))))],["children",y.Children.toArray(Array.from(ye))]))))],["children",y.Children.toArray(Array.from(ce))])])))],["children",y.Children.toArray(Array.from(te))])])))):ft(),T(()=>{let gt,jn,Li,Vu,Hu,ju,Bu;return A(c("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(gt=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(jn=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(Li=[c("button",w(g([(Vu="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",Vu]),["onClick",mp=>{o()}],(Hu=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(Hu))])]))),c("button",w(g([(ju="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 hover:enabled:bg-emerald-700 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",ju]),["onClick",mp=>{S||$(!0)}],["disabled",_.NumberOfValidRows===0],(Bu=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:`Import ${_.NumberOfValidRows} users`})],["children",y.Children.toArray(Array.from(Bu))])])))],["children",y.Children.toArray(Array.from(Li))])])))],["children",y.Children.toArray(Array.from(jn))])])))],["children",y.Children.toArray(Array.from(gt))])]))))}))}))}))})))),["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(D))]))}else return A((L=[B6()],["children",y.Children.toArray(Array.from(L))]))}))))))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Sn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class ss extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var as={exports:{}};/* @license
|
|
52
52
|
Papa Parse
|
|
53
53
|
v5.5.1
|
|
54
54
|
https://github.com/mholt/PapaParse
|
|
55
55
|
License: MIT
|
|
56
|
-
*/var
|
|
57
|
-
`),
|
|
58
|
-
`;for(var
|
|
59
|
-
`&&
|
|
60
|
-
`:"\r"}}function b(E){return E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(E){var _=(E=E||{}).delimiter,k=E.newline,N=E.comments,I=E.step,
|
|
56
|
+
*/var z6=as.exports,Jd;function q6(){return Jd||(Jd=1,function(e,t){((n,r)=>{e.exports=r()})(z6,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(E){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=D(_);k.chunkSize=parseInt(k.chunkSize),_.step||_.chunk||(k.chunkSize=null),this._handle=new v(k),(this._handle.streamer=this)._config=k}).call(this,E),this.parseChunk=function(_,k){var N=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<N){let O=this._config.newline;O||(I=this._config.quoteChar||'"',O=this._handle.guessLineEndings(_,I)),_=[..._.split(O).slice(N)].join(O)}this.isFirstChunk&&L(this._config.beforeFirstChunk)&&(I=this._config.beforeFirstChunk(_))!==void 0&&(_=I),this.isFirstChunk=!1,this._halted=!1;var N=this._partialLine+_,I=(this._partialLine="",this._handle.parse(N,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(_=I.meta.cursor,N=(this._finished||(this._partialLine=N.substring(_-this._baseIndex),this._baseIndex=_),I&&I.data&&(this._rowCount+=I.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)r.postMessage({results:I,workerId:u.WORKER_ID,finished:N});else if(L(this._config.chunk)&&!k){if(this._config.chunk(I,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=I=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(I.data),this._completeResults.errors=this._completeResults.errors.concat(I.errors),this._completeResults.meta=I.meta),this._completed||!N||!L(this._config.complete)||I&&I.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),N||I&&I.meta.paused||this._nextChunk(),I}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 d(E){var _;(E=E||{}).chunkSize||(E.chunkSize=u.RemoteChunkSize),f.call(this,E),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 I;this._config.chunkSize&&(I=this._start+this._config.chunkSize-1,_.setRequestHeader("Range","bytes="+this._start+"-"+I));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(E){(E=E||{}).chunkSize||(E.chunkSize=u.LocalChunkSize),f.call(this,E);var _,k,N=typeof FileReader<"u";this.stream=function(I){this._input=I,k=I.slice||I.webkitSlice||I.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 I=this._input,O=(this._config.chunkSize&&(O=Math.min(this._start+this._config.chunkSize,this._input.size),I=k.call(I,this._start,O)),_.readAsText(I,this._config.encoding));N||this._chunkLoaded({target:{result:O}})},this._chunkLoaded=function(I){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(I.target.result)},this._chunkError=function(){this._sendError(_.error)}}function h(E){var _;f.call(this,E=E||{}),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(E){f.call(this,E=E||{});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(I){this._input=I,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(I){try{_.push(typeof I=="string"?I:I.toString(this._config.encoding)),k&&(k=!1,this._checkIsFinished(),this.parseChunk(_.shift()))}catch(O){this._streamError(O)}},this),this._streamError=F(function(I){this._streamCleanUp(),this._sendError(I)},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 v(E){var _,k,N,I,O=Math.pow(2,53),B=-O,pe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Y=/^((\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,G=0,j=!1,de=!1,z=[],R={data:[],errors:[],meta:{}};function ge(ne){return E.skipEmptyLines==="greedy"?ne.join("").trim()==="":ne.length===1&&ne[0].length===0}function me(){if(R&&N&&(Ee("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),N=!1),E.skipEmptyLines&&(R.data=R.data.filter(function(ee){return!ge(ee)})),we()){let ee=function(oe,q){L(E.transformHeader)&&(oe=E.transformHeader(oe,q)),z.push(oe)};var De=ee;if(R)if(Array.isArray(R.data[0])){for(var ne=0;we()&&ne<R.data.length;ne++)R.data[ne].forEach(ee);R.data.splice(0,1)}else R.data.forEach(ee)}function xe(ee,oe){for(var q=E.header?{}:[],Se=0;Se<ee.length;Se++){var te=Se,ce=ee[Se],ce=((Be,ye)=>(Ne=>(E.dynamicTypingFunction&&E.dynamicTyping[Ne]===void 0&&(E.dynamicTyping[Ne]=E.dynamicTypingFunction(Ne)),(E.dynamicTyping[Ne]||E.dynamicTyping)===!0))(Be)?ye==="true"||ye==="TRUE"||ye!=="false"&&ye!=="FALSE"&&((Ne=>{if(pe.test(Ne)&&(Ne=parseFloat(Ne),B<Ne&&Ne<O))return 1})(ye)?parseFloat(ye):Y.test(ye)?new Date(ye):ye===""?null:ye):ye)(te=E.header?Se>=z.length?"__parsed_extra":z[Se]:te,ce=E.transform?E.transform(ce,te):ce);te==="__parsed_extra"?(q[te]=q[te]||[],q[te].push(ce)):q[te]=ce}return E.header&&(Se>z.length?Ee("FieldMismatch","TooManyFields","Too many fields: expected "+z.length+" fields but parsed "+Se,G+oe):Se<z.length&&Ee("FieldMismatch","TooFewFields","Too few fields: expected "+z.length+" fields but parsed "+Se,G+oe)),q}var Ce;R&&(E.header||E.dynamicTyping||E.transform)&&(Ce=1,!R.data.length||Array.isArray(R.data[0])?(R.data=R.data.map(xe),Ce=R.data.length):R.data=xe(R.data,0),E.header&&R.meta&&(R.meta.fields=z),G+=Ce)}function we(){return E.header&&z.length===0}function Ee(ne,xe,Ce,De){ne={type:ne,code:xe,message:Ce},De!==void 0&&(ne.row=De),R.errors.push(ne)}L(E.step)&&(I=E.step,E.step=function(ne){R=ne,we()?me():(me(),R.data.length!==0&&(P+=ne.data.length,E.preview&&P>E.preview?k.abort():(R.data=R.data[0],I(R,W))))}),this.parse=function(ne,xe,Ce){var De=E.quoteChar||'"',De=(E.newline||(E.newline=this.guessLineEndings(ne,De)),N=!1,E.delimiter?L(E.delimiter)&&(E.delimiter=E.delimiter(ne),R.meta.delimiter=E.delimiter):((De=((ee,oe,q,Se,te)=>{var ce,Be,ye,Ne;te=te||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var Te=0;Te<te.length;Te++){for(var It,ut=te[Te],Xt=0,Xe=0,Pt=0,Ht=(ye=void 0,new x({comments:Se,delimiter:ut,newline:oe,preview:10}).parse(ee)),rn=0;rn<Ht.data.length;rn++)q&&ge(Ht.data[rn])?Pt++:(It=Ht.data[rn].length,Xe+=It,ye===void 0?ye=It:0<It&&(Xt+=Math.abs(It-ye),ye=It));0<Ht.data.length&&(Xe/=Ht.data.length-Pt),(Be===void 0||Xt<=Be)&&(Ne===void 0||Ne<Xe)&&1.99<Xe&&(Be=Xt,ce=ut,Ne=Xe)}return{successful:!!(E.delimiter=ce),bestDelimiter:ce}})(ne,E.newline,E.skipEmptyLines,E.comments,E.delimitersToGuess)).successful?E.delimiter=De.bestDelimiter:(N=!0,E.delimiter=u.DefaultDelimiter),R.meta.delimiter=E.delimiter),D(E));return E.preview&&E.header&&De.preview++,_=ne,k=new x(De),R=k.parse(_,xe,Ce),me(),j?{meta:{paused:!0}}:R||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,k.abort(),_=L(E.chunk)?"":_.substring(k.getCharIndex())},this.resume=function(){W.streamer._halted?(j=!1,W.streamer.parseChunk(_,!0)):setTimeout(W.resume,3)},this.aborted=function(){return de},this.abort=function(){de=!0,k.abort(),R.meta.aborted=!0,L(E.complete)&&E.complete(R),_=""},this.guessLineEndings=function(ee,De){ee=ee.substring(0,1048576);var De=new RegExp(b(De)+"([^]*?)"+b(De),"gm"),Ce=(ee=ee.replace(De,"")).split("\r"),De=ee.split(`
|
|
57
|
+
`),ee=1<De.length&&De[0].length<Ce[0].length;if(Ce.length===1||ee)return`
|
|
58
|
+
`;for(var oe=0,q=0;q<Ce.length;q++)Ce[q][0]===`
|
|
59
|
+
`&&oe++;return oe>=Ce.length/2?`\r
|
|
60
|
+
`:"\r"}}function b(E){return E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(E){var _=(E=E||{}).delimiter,k=E.newline,N=E.comments,I=E.step,O=E.preview,B=E.fastMode,pe=null,Y=E.quoteChar==null?'"':E.quoteChar,W=Y;if(E.escapeChar!==void 0&&(W=E.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,
|
|
64
|
-
`,B='"',pe=B+B,Y=!1,
|
|
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=v,u.NetworkStreamer=d,u.FileStreamer=p,u.StringStreamer=h,u.ReadableStreamStreamer=m,r.jQuery&&((i=r.jQuery).fn.parse=function(E){var _=E.config||{},k=[];return this.each(function(
|
|
63
|
+
`);var P=0,G=!1;this.parse=function(j,de,z){if(typeof j!="string")throw new Error("Input must be a string");var R=j.length,ge=_.length,me=k.length,we=N.length,Ee=L(I),ne=[],xe=[],Ce=[],De=P=0;if(!j)return ut();if(B||B!==!1&&j.indexOf(Y)===-1){for(var ee=j.split(k),oe=0;oe<ee.length;oe++){if(Ce=ee[oe],P+=Ce.length,oe!==ee.length-1)P+=k.length;else if(z)return ut();if(!N||Ce.substring(0,we)!==N){if(Ee){if(ne=[],ye(Ce.split(_)),Xt(),G)return ut()}else ye(Ce.split(_));if(O&&O<=oe)return ne=ne.slice(0,O),ut(!0)}}return ut()}for(var q=j.indexOf(_,P),Se=j.indexOf(k,P),te=new RegExp(b(W)+b(Y),"g"),ce=j.indexOf(Y,P);;)if(j[P]===Y)for(ce=P,P++;;){if((ce=j.indexOf(Y,ce+1))===-1)return z||xe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ne.length,index:P}),Te();if(ce===R-1)return Te(j.substring(P,ce).replace(te,Y));if(Y===W&&j[ce+1]===W)ce++;else if(Y===W||ce===0||j[ce-1]!==W){q!==-1&&q<ce+1&&(q=j.indexOf(_,ce+1));var Be=Ne((Se=Se!==-1&&Se<ce+1?j.indexOf(k,ce+1):Se)===-1?q:Math.min(q,Se));if(j.substr(ce+1+Be,ge)===_){Ce.push(j.substring(P,ce).replace(te,Y)),j[P=ce+1+Be+ge]!==Y&&(ce=j.indexOf(Y,P)),q=j.indexOf(_,P),Se=j.indexOf(k,P);break}if(Be=Ne(Se),j.substring(ce+1+Be,ce+1+Be+me)===k){if(Ce.push(j.substring(P,ce).replace(te,Y)),It(ce+1+Be+me),q=j.indexOf(_,P),ce=j.indexOf(Y,P),Ee&&(Xt(),G))return ut();if(O&&ne.length>=O)return ut(!0);break}xe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ne.length,index:P}),ce++}}else if(N&&Ce.length===0&&j.substring(P,P+we)===N){if(Se===-1)return ut();P=Se+me,Se=j.indexOf(k,P),q=j.indexOf(_,P)}else if(q!==-1&&(q<Se||Se===-1))Ce.push(j.substring(P,q)),P=q+ge,q=j.indexOf(_,P);else{if(Se===-1)break;if(Ce.push(j.substring(P,Se)),It(Se+me),Ee&&(Xt(),G))return ut();if(O&&ne.length>=O)return ut(!0)}return Te();function ye(Xe){ne.push(Xe),De=P}function Ne(Xe){var Pt=0;return Pt=Xe!==-1&&(Xe=j.substring(ce+1,Xe))&&Xe.trim()===""?Xe.length:Pt}function Te(Xe){return z||(Xe===void 0&&(Xe=j.substring(P)),Ce.push(Xe),P=R,ye(Ce),Ee&&Xt()),ut()}function It(Xe){P=Xe,ye(Ce),Ce=[],Se=j.indexOf(k,P)}function ut(Xe){if(E.header&&!de&&ne.length){var Pt=ne[0],Ht={},rn=new Set(Pt);let Pi=!1;for(let xn=0;xn<Pt.length;xn++){let gt=Pt[xn];if(Ht[gt=L(E.transformHeader)?E.transformHeader(gt,xn):gt]){let jn,Li=Ht[gt];for(;jn=gt+"_"+Li,Li++,rn.has(jn););rn.add(jn),Pt[xn]=jn,Ht[gt]++,Pi=!0,(pe=pe===null?{}:pe)[jn]=gt}else Ht[gt]=1,Pt[xn]=gt;rn.add(gt)}Pi&&console.warn("Duplicate headers found and renamed.")}return{data:ne,errors:xe,meta:{delimiter:_,linebreak:k,aborted:G,truncated:!!Xe,cursor:De+(de||0),renamedHeaders:pe}}}function Xt(){I(ut()),ne=[],xe=[]}},this.abort=function(){G=!0},this.getCharIndex=function(){return P}}function C(E){var _=E.data,k=a[_.workerId],N=!1;if(_.error)k.userError(_.error,_.file);else if(_.results&&_.results.data){var I={abort:function(){N=!0,S(_.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(L(k.userStep)){for(var O=0;O<_.results.data.length&&(k.userStep({data:_.results.data[O],errors:_.results.errors,meta:_.results.meta},I),!N);O++);delete _.results}else L(k.userChunk)&&(k.userChunk(_.results,I,_.file),delete _.results)}_.finished&&!N&&S(_.workerId,_.results)}function S(E,_){var k=a[E];L(k.userComplete)&&k.userComplete(_),k.terminate(),delete a[E]}function $(){throw new Error("Not implemented.")}function D(E){if(typeof E!="object"||E===null)return E;var _,k=Array.isArray(E)?[]:{};for(_ in E)k[_]=D(E[_]);return k}function F(E,_){return function(){E.apply(_,arguments)}}function L(E){return typeof E=="function"}return u.parse=function(E,_){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 E=="string"?(E=(N=>N.charCodeAt(0)!==65279?N:N.slice(1))(E),k=new(_.download?d:h)(_)):E.readable===!0&&L(E.read)&&L(E.on)?k=new m(_):(r.File&&E instanceof File||E instanceof Object)&&(k=new p(_)),k.stream(E);(k=(()=>{var N;return!!u.WORKERS_SUPPORTED&&(N=(()=>{var I=r.URL||r.webkitURL||null,O=n.toString();return u.BLOB_URL||(u.BLOB_URL=I.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:E,config:_,workerId:k.id})},u.unparse=function(E,_){var k=!1,N=!0,I=",",O=`\r
|
|
64
|
+
`,B='"',pe=B+B,Y=!1,W=null,P=!1,G=((()=>{if(typeof _=="object"){if(typeof _.delimiter!="string"||u.BAD_DELIMITERS.filter(function(z){return _.delimiter.indexOf(z)!==-1}).length||(I=_.delimiter),typeof _.quotes!="boolean"&&typeof _.quotes!="function"&&!Array.isArray(_.quotes)||(k=_.quotes),typeof _.skipEmptyLines!="boolean"&&typeof _.skipEmptyLines!="string"||(Y=_.skipEmptyLines),typeof _.newline=="string"&&(O=_.newline),typeof _.quoteChar=="string"&&(B=_.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&&(pe=_.escapeChar+B),_.escapeFormulae instanceof RegExp?P=_.escapeFormulae:typeof _.escapeFormulae=="boolean"&&_.escapeFormulae&&(P=/^[=+\-@\t\r].*$/)}})(),new RegExp(b(B),"g"));if(typeof E=="string"&&(E=JSON.parse(E)),Array.isArray(E)){if(!E.length||Array.isArray(E[0]))return j(null,E,Y);if(typeof E[0]=="object")return j(W||Object.keys(E[0]),E,Y)}else if(typeof E=="object")return typeof E.data=="string"&&(E.data=JSON.parse(E.data)),Array.isArray(E.data)&&(E.fields||(E.fields=E.meta&&E.meta.fields||W),E.fields||(E.fields=Array.isArray(E.data[0])?E.fields:typeof E.data[0]=="object"?Object.keys(E.data[0]):[]),Array.isArray(E.data[0])||typeof E.data[0]=="object"||(E.data=[E.data])),j(E.fields||[],E.data||[],Y);throw new Error("Unable to serialize unrecognized input");function j(z,R,ge){var me="",we=(typeof z=="string"&&(z=JSON.parse(z)),typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(z)&&0<z.length),Ee=!Array.isArray(R[0]);if(we&&N){for(var ne=0;ne<z.length;ne++)0<ne&&(me+=I),me+=de(z[ne],ne);0<R.length&&(me+=O)}for(var xe=0;xe<R.length;xe++){var Ce=(we?z:R[xe]).length,De=!1,ee=we?Object.keys(R[xe]).length===0:R[xe].length===0;if(ge&&!we&&(De=ge==="greedy"?R[xe].join("").trim()==="":R[xe].length===1&&R[xe][0].length===0),ge==="greedy"&&we){for(var oe=[],q=0;q<Ce;q++){var Se=Ee?z[q]:q;oe.push(R[xe][Se])}De=oe.join("").trim()===""}if(!De){for(var te=0;te<Ce;te++){0<te&&!ee&&(me+=I);var ce=we&&Ee?z[te]:te;me+=de(R[xe][ce],te)}xe<R.length-1&&(!ge||0<Ce&&!ee)&&(me+=O)}}return me}function de(z,R){var ge,me;return z==null?"":z.constructor===Date?JSON.stringify(z).slice(1,25):(me=!1,P&&typeof z=="string"&&P.test(z)&&(z="'"+z,me=!0),ge=z.toString().replace(G,pe),(me=me||k===!0||typeof k=="function"&&k(z,R)||Array.isArray(k)&&k[R]||((we,Ee)=>{for(var ne=0;ne<Ee.length;ne++)if(-1<we.indexOf(Ee[ne]))return!0;return!1})(ge,u.BAD_DELIMITERS)||-1<ge.indexOf(I)||ge.charAt(0)===" "||ge.charAt(ge.length-1)===" ")?B+ge+B:ge)}},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=v,u.NetworkStreamer=d,u.FileStreamer=p,u.StringStreamer=h,u.ReadableStreamStreamer=m,r.jQuery&&((i=r.jQuery).fn.parse=function(E){var _=E.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 B=0;B<this.files.length;B++)k.push({file:this.files[B],inputElem:this,instanceConfig:i.extend({},_)})}),N(),this;function N(){if(k.length===0)L(E.complete)&&E.complete();else{var O,B,pe,Y,W=k[0];if(L(E.before)){var P=E.before(W.file,W.inputElem);if(typeof P=="object"){if(P.action==="abort")return O="AbortError",B=W.file,pe=W.inputElem,Y=P.reason,void(L(E.error)&&E.error({name:O},B,pe,Y));if(P.action==="skip")return void I();typeof P.config=="object"&&(W.instanceConfig=i.extend(W.instanceConfig,P.config))}else if(P==="skip")return void I()}var G=W.instanceConfig.complete;W.instanceConfig.complete=function(j){L(G)&&G(j,W.file,W.inputElem),I()},u.parse(W.file,W.instanceConfig)}}function I(){k.splice(0,1),N()}}),s&&(r.onmessage=function(E){E=E.data,u.WORKER_ID===void 0&&E&&(u.WORKER_ID=E.workerId),typeof E.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(E.input,E.config),finished:!0}):(r.File&&E.input instanceof File||E.input instanceof Object)&&(E=u.parse(E.input,E.config))&&r.postMessage({workerId:u.WORKER_ID,results:E,finished:!0})}),(d.prototype=Object.create(f.prototype)).constructor=d,(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})}(as)),as.exports}var Y6=q6();const Z6=e=>e.filter(n=>!vi(n)).length===0;function K6(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,d,p,h,m,v,b,x,C;e((a=o.errors,!kr(Q,a,Ae())&&a.length===0?(l=(u=o.data,u.filter(S=>!Z6(S))),f=l.length>1?new M(0,[void 0]):new M(1,[new Sn(2,[])]),f.tag===1?new M(1,[f.fields[0]]):(d=l.length<=5001?new M(0,[void 0]):new M(1,[new Sn(3,[])]),d.tag===1?new M(1,[d.fields[0]]):(p=vc(l),h=p.length|0,m=p.some(vi)?new M(1,[new Sn(4,[])]):new M(0,[void 0]),m.tag===1?new M(1,[m.fields[0]]):(v=(b=Cm(Ze(S=>S.trim().toLocaleLowerCase(),p),{Equals:(S,$)=>S===$,GetHashCode:sr}),b.length===h?new M(0,[void 0]):new M(1,[new Sn(5,[])])),v.tag===1?new M(1,[v.fields[0]]):(x=(C=l.filter(S=>S.length!==h),C.length===0?new M(0,[void 0]):new M(1,[new Sn(6,[])])),x.tag===1?new M(1,[x.fields[0]]):new M(0,[new U_(new km(t.name),i0((S,$)=>[new M_(S),new H_($.trim())],vc(l)),new Am(Ze(S=>new j_(Ze($=>$.trim(),S)),Q1(l))),t.size)])))))):new M(1,[new Sn(7,[he(0,o.errors).message])])))},i.error=(o,s)=>{e(new M(1,[new Sn(7,[o])]))},i.worker=!0,Y6.parse(t,i)}else e(new M(1,[new Sn(1,[])]));else e(new M(1,[new Sn(0,[])]))}let vr=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function X6(e){return e==null?[new vr(0,[void 0]),X()]:[new vr(2,[e]),X()]}function J6(e,t,n){let r,i,o,s,a;switch(t.tag){case 1:{n.tag===1?r=4:r=5;break}case 2:{n.tag===2?r=6:r=7;break}default:if(t.fields[0].tag===1)t.fields[0].fields[0].tag===1?n.tag===1?(r=2,a=t.fields[0].fields[0].fields[0]):r=3:n.tag===1?(r=1,s=t.fields[0].fields[0].fields[0]):r=3;else switch(n.tag){case 0:{r=0,i=t.fields[0].fields[0][0],o=t.fields[0].fields[0][1];break}case 2:{r=0,i=t.fields[0].fields[0][0],o=t.fields[0].fields[0][1];break}default:r=3}}switch(r){case 0:return[new vr(1,[i]),ts(o)];case 1:return[new vr(2,[s]),ts(l=>{e(!0)})];case 2:return[new vr(0,[a]),X()];case 3:return[n,X()];case 4:return[new vr(0,[void 0]),X()];case 5:return[n,X()];case 6:return[new vr(0,[void 0]),ts(l=>{e(!1)})];default:return[n,X()]}}function Q6(e,t){let n,r,i,o,s,a,l;return Ii(g([new bt(3,[e]),new bt(4,[t]),new bt(5,[[Ri(le(new Oi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Di(le(new or(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),c("button",w(g([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(o=[Fi(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),c("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),c("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),c("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),c("div",w(g([["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])]))),c("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),c("div",w(g([["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
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])]))),c("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),c("div",w(g([["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",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function U6(e,t){let n,r,i;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(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"]]))),c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function W6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(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"]]))),c("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",y.Children.toArray(Array.from(n))])])))}function G6(e,t){zs(ue.Delay(()=>ue.Bind(eu(1e3),()=>(V6(n=>{t(new rs(0,[new qs(1,[n])]))},e),ue.Zero()))))}const Va=(()=>{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 z6(e){let t,n,r,i,o,s,a,l;const u=e.markDirty,f=e.cancel,d=e.next,p=e.existingCsvFile;let h;const m=H6(p);h=Pr(()=>Fr(()=>m,(k,N)=>j6(u,k,N),(k,N)=>{}),void 0,void 0);const v=h[0],b=h[1],x=k=>{b(new rs(0,[new qs(0,[[new vm(k.name),N=>{G6(k,N)}]])]))},C=y.useState(!1),S=C[1],M=y.useState(!1),O=M[1],F=y.useState(!1),L=F[1],E=y.useRef(void 0),_=v.tag===2;return c("div",w(g([["className","bg-gray-50 h-full"],(t=[c("div",w(g([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[rp(Va,C[0],()=>{S(!1)}),B6(F[0],()=>{L(!1)}),da("Upload CSV"),fa("Download and use our template, or upload your own CSV to get started."),c("a",w(g([["className","flex flex-row items-end gap-1"],["href",Va],["download","import_users"],(r=[c("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),np(16,16)],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(i=[fo("What kind of data do I need?",()=>{S(!0)}),fo("Frequently asked questions",()=>{L(!0)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(Z(T(()=>H(M[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 k;return A((k=Z(T(()=>{let N,I,D,B,pe,Y,U,P,W,j,de,z,R,ge;switch(v.tag){case 2:{let me;const we=v.fields[0].SizeInBytes/1024/1024;return me=we<.01?.01:we,A(c("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(N=[c("div",w(g([["className","justify-start items-start gap-2 flex"],(I=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:v.fields[0].Name.fields[0]}),c("span",w(g([["className","text-emerald-700"],(D=[ku(20,20)],["children",y.Children.toArray(Array.from(D))])])))],["children",y.Children.toArray(Array.from(I))])]))),c("div",w(g([["className","justify-start items-start gap-3 flex"],(B=[c("div",{className:"text-center text-gray-500 text-sm font-medium",children:(pe=Vl("{0:F2}",me),Cr(Rn("%sMB"))(pe))}),c("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",Ee=>{b(new rs(2,[]))}],(Y=[c("div",{className:"text-center text-sm font-medium",children:"Remove"}),c("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(U=[rl(10,10)],["children",y.Children.toArray(Array.from(U))])])))],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(B))])])))],["children",y.Children.toArray(Array.from(N))])]))))}case 1:return A(c("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(P=[c("div",w(g([["className","justify-start items-start gap-2 flex"],(W=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:v.fields[0].fields[0]}),c("span",w(g([["className","animate-spin"],(j=[U6(20,20)],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(W))])]))),c("div",w(g([["className","justify-start items-start gap-2 flex"],(de=[c("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",me=>{b(new rs(1,[]))}],(z=[c("div",{className:"text-center text-sm font-medium",children:"Cancel"}),c("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(R=[rl(10,10)],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(z))])])))],["children",y.Children.toArray(Array.from(de))])])))],["children",y.Children.toArray(Array.from(P))])]))));default:{const me=we=>{we.preventDefault(),we.stopPropagation()};return A(c("div",w(g([["className","flex flex-col items-center p-4"],["onDragEnter",we=>{me(we),O(!0)}],["onDragLeave",we=>{me(we),O(!1)}],["onDragOver",we=>{me(we),O(!0)}],["onDrop",we=>{let Ee;me(we),O(!1),x((Ee=we,Ee.dataTransfer).files.item(0))}],(ge=Z(T(()=>{let we,Ee,te,_e,xe,De;return H((we=v.fields[0],we==null?A(Ae()):(Ee=we,A(c("div",w(g([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(te=[c("div",w(g([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(_e=[Vh(16,15)],["children",y.Children.toArray(Array.from(_e))])]))),c("div",w(g([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(xe=[c("div",w(g([["className","self-stretch text-red-800 text-sm font-normal"],(De=Z(T(()=>{let Q;const ie=ee=>c("span",{className:"font-medium",children:ee}),q=ee=>c("span",{children:[ee]}),Ce=c("a",{className:"underline",children:"sample CSV",href:Va,download:"import_users"});return A((Q=Ee.tag===1?g([ie("File is too large (over 10MB). "),q("Upload a "),ie("smaller file"),q(".")]):Ee.tag===2?g([ie("File is empty. "),q("Ensure your file contains data before uploading.")]):Ee.tag===3?g([ie("Too many rows (5000+). "),q("Upload a "),ie("file with fewer rows"),q(".")]):Ee.tag===4?g([ie("Invalid CSV: Missing header field(s). "),q("Try using our "),Ce,q(".")]):Ee.tag===5?g([ie("Invalid CSV: Duplicate header fields. "),q("Try using our "),Ce,q(".")]):Ee.tag===6?g([ie("Invalid CSV: Rows have different lengths. "),q("Check for missing or extra columns.")]):Ee.tag===7?g([ie("Invalid CSV format. "),q("Try using our "),Ce,q(".")]):g([ie("Unsupported file type. "),q("Upload a "),ie(".csv file"),q(".")]),c("p",{children:y.Children.toArray(Array.from(Q))})))})),["children",y.Children.toArray(Array.from(De))])])))],["children",y.Children.toArray(Array.from(xe))])])))],["children",y.Children.toArray(Array.from(te))])])))))),T(()=>{let Q;return H(A(c("div",w(g([["className","pt-2"],(Q=[W6(20,21)],["children",y.Children.toArray(Array.from(Q))])])))),T(()=>H(A(c("input",{type:"file",onChange:ie=>{const q=ie.target.files;q!=null&&q.length>0&&x(q.item(0))},className:"hidden",ref:E})),T(()=>H(A(c("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),T(()=>H(A(c("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white hover:bg-gray-50",onClick:ie=>{Vn(q=>{q.click()},vi(E.current))},type:"button",children:y.Children.toArray(["Choose file"])})),T(()=>A(c("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",y.Children.toArray(Array.from(ge))])]))))}}})),["children",y.Children.toArray(Array.from(k))]))})))))),c("div",w(g([["className","flex flex-row justify-end gap-3"],(o=[c("button",w(g([(s="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",k=>{f()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]]))),c("button",w(g([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 hover:enabled:bg-primary-700 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",k=>{v.tag===2&&d(v.fields[0])}],["type","button"],["disabled",!_],(l=["Map fields",Nu(13,8)],["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class jt extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Pt extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function q6(){return[new Pt(0,[new jt(0,[void 0])]),X()]}function Y6(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m,v,b,x,C,S,M,O,F,L,E,_,k,N,I,D,B,pe,Y,U,P,W,j,de,z;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],I=t.fields[0].fields[0][0],D=t.fields[0].fields[0][2],B=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,de=t.fields[0].fields[0][0],z=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,U=e.fields[0].fields[0].fields[0],P=t.fields[0].fields[0][0],W=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,pe=e.fields[0].fields[0].fields[0],Y=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],E=t.fields[0].fields[0][0],_=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,O=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],d=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],v=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,t.fields[0].fields[0][0],x=t.fields[0].fields[0][1],C=t.fields[0].fields[0][2],S=e.fields[0].fields[1],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 Pt(0,[new jt(1,[[r,new Cn(0,[void 0])]])]),X()];case 1:return J(i,o)?[new Pt(0,[new jt(1,[[o,s]])]),X()]:[new Pt(0,[new jt(1,[[i,new Cn(0,[void 0])]])]),X()];case 2:return[t,X()];case 3:return[new Pt(0,[new jt(3,[[l,a,void 0]])]),X()];case 4:return[new Pt(0,[new jt(2,[[f,u,d,p.tag===1&&p.fields[0].tag===1&&J(d,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),X()];case 5:return[t,X()];case 6:return[new Pt(0,[new jt(3,[[m,h,[v,b]]])]),X()];case 7:return[t,X()];case 8:return[new Pt(1,[[M,x,C,S]]),X()];case 9:return[t,X()];case 10:return[new Pt(0,[new jt(1,[[F,new Cn(1,[new Br(0,[O])])]])]),X()];case 11:return[new Pt(0,[new jt(2,[[E,L,_,k]])]),X()];case 12:return[t,X()];case 13:return[new Pt(0,[new jt(1,[[I,new Cn(1,[new Br(1,[N,D,B])])]])]),X()];case 14:return[t,X()];case 15:return[new Pt(0,[new jt(0,[[Y,new Cn(1,[new Br(0,[pe])])]])]),X()];case 16:return[new Pt(0,[new jt(0,[[P,j.tag===1?j.fields[0].tag===1?J(U,j.fields[0].fields[0])&&J(W,j.fields[0].fields[1])?j:new Cn(1,[new Br(1,[U,W,void 0])]):new Cn(1,[new Br(1,[U,W,void 0])]):new Cn(1,[new Br(1,[U,W,void 0])])]])]),X()];case 17:return[new Pt(0,[new jt(0,[[de,new Cn(0,[z])]])]),X()];default:return[t,X()]}}function Z6(e,t,n){let r,i,o,s,a,l,u,f,d,p,h;return Mi(g([new vt(3,[e]),new vt(4,[t]),new vt(5,[[Oi(ae(new Di(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(r=[c("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(i=[Ii(g([new rr(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new rr(2,[[c("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(o=[c("button",w(g([["type","button"],["onClick",m=>{t()}],["className","text-gray-600"],(s=[Ri(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","sm:flex sm:items-start"],(a=[c("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(l=[S6([])],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(u=[Ph(g([new Ts(2,["text-gray-900 text-lg font-bold"]),new Ts(3,[["Cancel import"]])])),c("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(f=[c("p",{children:["You’re about to cancel your import. All changes will be discarded."]}),c("br",{}),c("p",{children:["Are you sure you want to cancel and exit?"]})],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(a))])]))),c("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(d=[c("button",w(g([["type","button"],["onClick",m=>{n()}],(p="inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-red-500 sm:ml-3 sm:w-auto",["className",p]),["children","Cancel import and exit"]]))),c("button",w(g([["type","button"],["onClick",m=>{t()}],(h="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",h]),["children","Continue import"]])))],["children",y.Children.toArray(Array.from(d))])])))]])]))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}class Ha extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function K6(e,t){let n;const r=yw();return n=y.useRef(r),fm(()=>du(()=>{vw(n.current)})),mm(i=>{bw(n.current)||zs(ue.Delay(()=>ue.TryWith(ue.Delay(()=>(t(new Ha(1,[])),ue.Bind(e(i),o=>(t(new Ha(2,[o])),ue.Zero())))),o=>(t(new Ha(3,[o])),ue.Zero()))),n.current)})}function X6(e,t,n,r,i,o,s){let a,l,u,f,d,p,h;return dm((a=[()=>f6(e,t,n,r,i),m=>{let v,b,x,C;switch(m.tag){case 1:case 0:{v=3;break}case 3:{v=2,C=m.fields[0];break}default:m.fields[0].tag===1?(v=1,x=m.fields[0].fields[0]):(v=0,b=m.fields[0].fields[0])}switch(v){case 0:{o(b);break}case 1:{s(x);break}case 2:{s(Xe(C));break}}}],K6(a[0],a[1]))),c("div",w(g([["className","fixed inset-0 z-100 w-screen overflow-y-auto bg-white"],(l=[c("div",w(g([["className","flex-col w-full h-full justify-center items-center gap-2.5 inline-flex overflow-hidden"],(u=[c("div",w(g([["className","self-stretch h-[118px] flex-col justify-center items-center gap-8 flex"],(f=[c("div",w(g([["className","relative"],(d=[A6([])],["children",y.Children.toArray(Array.from(d))])]))),c("div",w(g([["className","flex-col justify-start items-center gap-6 flex"],(p=[c("div",w(g([["className","w-[140px] h-1.5 relative bg-blue-100 rounded-[5px] overflow-hidden"],(h=[c("div",{style:{animation:"progressBar 2s linear infinite"},className:"h-1.5 top-0 absolute bg-gradient-to-r from-[#a650ff] to-[#0095f2] rounded-[5px]"})],["children",y.Children.toArray(Array.from(h))])])))],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(l))])])))}function J6(e,t){zs(ue.Delay(()=>ue.Bind(eu(5e3),()=>(window.alert(lt(`Hello from the background process! Import Id ${t}.`)),ue.Zero()))))}class At extends G{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class Yo extends Se{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function Ud(){hm(g(["admin","app","users"]))}function ip(e){hm(g(["admin","app","oops"]))}function Q6(e){switch(e.tag){case 1:return new Yo(new At(0,[]),new At(1,[]),new At(2,[]),new At(2,[]));case 2:return new Yo(new At(0,[]),new At(0,[]),new At(1,[]),new At(2,[]));case 3:return new Yo(new At(0,[]),new At(0,[]),new At(0,[]),new At(1,[]));default:return new Yo(new At(1,[]),new At(2,[]),new At(2,[]),new At(2,[]))}}function e4(e,t,n,r,i){switch(i.tag){case 1:{const o=i.fields[0],s=o[1].tag===1?o[1].fields[0].tag===1?[md(o[1].fields[0].fields[0],o[1].fields[0].fields[1]),o[0].HeaderRow,o[0].DataRows]:[md(o[1].fields[0].fields[0],void 0),o[0].HeaderRow,o[0].DataRows]:[o[1].fields[0],o[0].HeaderRow,o[0].DataRows];return c(XC,{existingMappings:Zi(s[0]),headerRow:s[1],dataRows:s[2],next:a=>{let l;n(new dr(0,[(l=a,new Wo(1,[l[0],l[1]]))]))},back:a=>{n(new dr(1,[new La(2,[a])]))}})}case 2:{const o=$_(i.fields[0][0].DataRows,i.fields[0][2]);return c(s6,{existingMappings:Zi(i.fields[0][3]),employmentBasisColumn:o,next:s=>{n(new dr(0,[new Wo(2,[s])]))},back:s=>{n(new dr(1,[new La(1,[s])]))}})}case 3:return c(O6,{apiCallAsync:e,dataRows:i.fields[0][0].DataRows,baseColumnMappings:i.fields[0][1],employmentBasis:Zi(i.fields[0][2]),next:o=>{let s;n(new dr(0,[(s=o,new Wo(3,[s[0],s[1]]))]))},back:()=>{n(new dr(1,[new La(0,[])]))},onError:o=>{ip()}});default:{const o=xt(s=>s[0],i.fields[0]);return c(z6,{existingCsvFile:Zi(o),next:s=>{n(new dr(0,[new Wo(0,[s])]))},cancel:t,markDirty:r})}}}function Zo(e,t){let n,r,i;switch(t.tag){case 1:return c("div",w(g([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[c("span",{children:e})],["children",y.Children.toArray(Array.from(n))])])));case 2:return c("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[c("span",{children:e})],["children",y.Children.toArray(Array.from(r))])])));default:return c("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[ku(20,20),c("span",{children:e})],["children",y.Children.toArray(Array.from(i))])])))}}function t4(e){let t,n,r,i,o;const s=q6();o=Pr(()=>Fr(()=>s,Y6,(x,C)=>{}),void 0,void 0);const a=o[0],l=y.useState(!1),u=l[0],f=l[1],d=y.useState(!1),p=d[0],h=y.useCallback(x=>{x.preventDefault(),x.returnValue=!0},[]),m=()=>{window.removeEventListener("beforeunload",h)};cm(()=>(p?window.addEventListener("beforeunload",h):m(),{Dispose(){m()}}),[p]);let v;if(a.tag===0){const x=a.fields[0],C=()=>{u||f(!0)},S=Q6(x),M=e4(O=>j2(e.backendUrl,O),C,o[1],d[1],x);v=c("div",w(g([["className","flex flex-col h-full"],(t=[Z6(u,()=>{u&&f(!1)},()=>{u&&(m(),Ud())}),c("div",w(g([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[c("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),c("button",w(g([(r="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",O=>{C()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]])))],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[Zo("1. Upload CSV",S.UploadingCsv),c("hr",{className:"w-16 pt-1.5"}),Zo("2. Map fields",S.MappingColumns),c("hr",{className:"w-16 pt-1.5"}),Zo("3. Map values",S.MappingEmploymentBasis),c("hr",{className:"w-16 pt-1.5"}),Zo("4. Review",S.Reviewing)],["children",y.Children.toArray(Array.from(i))])]))),M],["children",y.Children.toArray(Array.from(t))])])))}else v=X6(x=>B2(e.backendUrl),a.fields[0][0],a.fields[0][1],a.fields[0][2],a.fields[0][3],x=>{m(),J6(e.backendUrl,x),Ud()},x=>{m(),ip()});const b=[c("style",{children:[Fl]}),v];return c(ze,{},...b)}function n4(){Sl(e=>c(t4,e),"apollo-import-workspace-wizard")}Sl(e=>c(ag,e),"apollo-import-workspace-app");o_();n4();
|
|
67
|
+
If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function e4(e,t){let n,r,i;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(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"]]))),c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function t4(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(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"]]))),c("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",y.Children.toArray(Array.from(n))])])))}function n4(e,t){Ks(J.Delay(()=>J.Bind(k0(1e3),()=>(K6(n=>{t(new ss(0,[new Xs(1,[n])]))},e),J.Zero()))))}const Za=(()=>{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 r4(e){let t,n,r,i,o,s,a,l;const u=e.markDirty,f=e.cancel,d=e.next,p=e.existingCsvFile;let h;const m=X6(p);h=Lr(()=>Pr(()=>m,(k,N)=>J6(u,k,N),(k,N)=>{}),void 0,void 0);const v=h[0],b=h[1],x=k=>{b(new ss(0,[new Xs(0,[[new km(k.name),N=>{n4(k,N)}]])]))},C=y.useState(!1),S=C[1],$=y.useState(!1),D=$[1],F=y.useState(!1),L=F[1],E=y.useRef(void 0),_=v.tag===2;return c("div",w(g([["className","bg-gray-50 h-full"],(t=[c("div",w(g([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[dp(Za,C[0],()=>{S(!1)}),Q6(F[0],()=>{L(!1)}),_a("Upload CSV"),xa("Download and use our template, or upload your own CSV to get started."),c("a",w(g([["className","flex flex-row items-end gap-1"],["href",Za],["download","import_users"],(r=[c("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),cp(16,16)],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(i=[ho("What kind of data do I need?",()=>{S(!0)}),ho("Frequently asked questions",()=>{L(!0)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(Z(T(()=>H($[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 k;return A((k=Z(T(()=>{let N,I,O,B,pe,Y,W,P,G,j,de,z,R,ge;switch(v.tag){case 2:{let me;const we=v.fields[0].SizeInBytes/1024/1024;return me=we<.01?.01:we,A(c("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(N=[c("div",w(g([["className","justify-start items-start gap-2 flex"],(I=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:v.fields[0].Name.fields[0]}),c("span",w(g([["className","text-emerald-700"],(O=[Pu(20,20)],["children",y.Children.toArray(Array.from(O))])])))],["children",y.Children.toArray(Array.from(I))])]))),c("div",w(g([["className","justify-start items-start gap-3 flex"],(B=[c("div",{className:"text-center text-gray-500 text-sm font-medium",children:(pe=Kl("{0:F2}",me),Er(Rn("%sMB"))(pe))}),c("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",Ee=>{b(new ss(2,[]))}],(Y=[c("div",{className:"text-center text-sm font-medium",children:"Remove"}),c("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(W=[hl(10,10)],["children",y.Children.toArray(Array.from(W))])])))],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(B))])])))],["children",y.Children.toArray(Array.from(N))])]))))}case 1:return A(c("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(P=[c("div",w(g([["className","justify-start items-start gap-2 flex"],(G=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:v.fields[0].fields[0]}),c("span",w(g([["className","animate-spin"],(j=[e4(20,20)],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(G))])]))),c("div",w(g([["className","justify-start items-start gap-2 flex"],(de=[c("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",me=>{b(new ss(1,[]))}],(z=[c("div",{className:"text-center text-sm font-medium",children:"Cancel"}),c("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(R=[hl(10,10)],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(z))])])))],["children",y.Children.toArray(Array.from(de))])])))],["children",y.Children.toArray(Array.from(P))])]))));default:{const me=we=>{we.preventDefault(),we.stopPropagation()};return A(c("div",w(g([["className","flex flex-col items-center p-4"],["onDragEnter",we=>{me(we),D(!0)}],["onDragLeave",we=>{me(we),D(!1)}],["onDragOver",we=>{me(we),D(!0)}],["onDrop",we=>{let Ee;me(we),D(!1),x((Ee=we,Ee.dataTransfer).files.item(0))}],(ge=Z(T(()=>{let we,Ee,ne,xe,Ce,De;return H((we=v.fields[0],we==null?A(Ae()):(Ee=we,A(c("div",w(g([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(ne=[c("div",w(g([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(xe=[qh(16,15)],["children",y.Children.toArray(Array.from(xe))])]))),c("div",w(g([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(Ce=[c("div",w(g([["className","self-stretch text-red-800 text-sm font-normal"],(De=Z(T(()=>{let ee;const oe=te=>c("span",{className:"font-medium",children:te}),q=te=>c("span",{children:[te]}),Se=c("a",{className:"underline",children:"sample CSV",href:Za,download:"import_users"});return A((ee=Ee.tag===1?g([oe("File is too large (over 10MB). "),q("Upload a "),oe("smaller file"),q(".")]):Ee.tag===2?g([oe("File is empty. "),q("Ensure your file contains data before uploading.")]):Ee.tag===3?g([oe("Too many rows (5000+). "),q("Upload a "),oe("file with fewer rows"),q(".")]):Ee.tag===4?g([oe("Invalid CSV: Missing header field(s). "),q("Try using our "),Se,q(".")]):Ee.tag===5?g([oe("Invalid CSV: Duplicate header fields. "),q("Try using our "),Se,q(".")]):Ee.tag===6?g([oe("Invalid CSV: Rows have different lengths. "),q("Check for missing or extra columns.")]):Ee.tag===7?g([oe("Invalid CSV format. "),q("Try using our "),Se,q(".")]):g([oe("Unsupported file type. "),q("Upload a "),oe(".csv file"),q(".")]),c("p",{children:y.Children.toArray(Array.from(ee))})))})),["children",y.Children.toArray(Array.from(De))])])))],["children",y.Children.toArray(Array.from(Ce))])])))],["children",y.Children.toArray(Array.from(ne))])])))))),T(()=>{let ee;return H(A(c("div",w(g([["className","pt-2"],(ee=[t4(20,21)],["children",y.Children.toArray(Array.from(ee))])])))),T(()=>H(A(c("input",{type:"file",onChange:oe=>{const q=oe.target.files;q!=null&&q.length>0&&x(q.item(0))},className:"hidden",ref:E})),T(()=>H(A(c("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),T(()=>H(A(c("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white hover:bg-gray-50",onClick:oe=>{Vn(q=>{q.click()},bi(E.current))},type:"button",children:y.Children.toArray(["Choose file"])})),T(()=>A(c("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",y.Children.toArray(Array.from(ge))])]))))}}})),["children",y.Children.toArray(Array.from(k))]))})))))),c("div",w(g([["className","flex flex-row justify-end gap-3"],(o=[c("button",w(g([(s="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",k=>{f()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]]))),c("button",w(g([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 hover:enabled:bg-primary-700 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",k=>{v.tag===2&&d(v.fields[0])}],["type","button"],["disabled",!_],(l=["Map fields",Lu(13,8)],["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Bt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Lt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function i4(){return[new Lt(0,[new Bt(0,[void 0])]),X()]}function o4(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m,v,b,x,C,S,$,D,F,L,E,_,k,N,I,O,B,pe,Y,W,P,G,j,de,z;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],I=t.fields[0].fields[0][0],O=t.fields[0].fields[0][2],B=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,de=t.fields[0].fields[0][0],z=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],G=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,pe=e.fields[0].fields[0].fields[0],Y=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],E=t.fields[0].fields[0][0],_=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,D=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],d=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],v=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,t.fields[0].fields[0][0],x=t.fields[0].fields[0][1],C=t.fields[0].fields[0][2],S=e.fields[0].fields[1],$=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 Lt(0,[new Bt(1,[[r,new Cn(0,[void 0])]])]),X()];case 1:return Q(i,o)?[new Lt(0,[new Bt(1,[[o,s]])]),X()]:[new Lt(0,[new Bt(1,[[i,new Cn(0,[void 0])]])]),X()];case 2:return[t,X()];case 3:return[new Lt(0,[new Bt(3,[[l,a,void 0]])]),X()];case 4:return[new Lt(0,[new Bt(2,[[f,u,d,p.tag===1&&p.fields[0].tag===1&&Q(d,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),X()];case 5:return[t,X()];case 6:return[new Lt(0,[new Bt(3,[[m,h,[v,b]]])]),X()];case 7:return[t,X()];case 8:return[new Lt(1,[[$,x,C,S]]),X()];case 9:return[t,X()];case 10:return[new Lt(0,[new Bt(1,[[F,new Cn(1,[new Ur(0,[D])])]])]),X()];case 11:return[new Lt(0,[new Bt(2,[[E,L,_,k]])]),X()];case 12:return[t,X()];case 13:return[new Lt(0,[new Bt(1,[[I,new Cn(1,[new Ur(1,[N,O,B])])]])]),X()];case 14:return[t,X()];case 15:return[new Lt(0,[new Bt(0,[[Y,new Cn(1,[new Ur(0,[pe])])]])]),X()];case 16:return[new Lt(0,[new Bt(0,[[P,j.tag===1?j.fields[0].tag===1?Q(W,j.fields[0].fields[0])&&Q(G,j.fields[0].fields[1])?j:new Cn(1,[new Ur(1,[W,G,void 0])]):new Cn(1,[new Ur(1,[W,G,void 0])]):new Cn(1,[new Ur(1,[W,G,void 0])])]])]),X()];case 17:return[new Lt(0,[new Bt(0,[[de,new Cn(0,[z])]])]),X()];default:return[t,X()]}}function s4(e,t,n){let r,i,o,s,a,l,u,f,d,p,h;return Ii(g([new bt(3,[e]),new bt(4,[t]),new bt(5,[[Ri(le(new Oi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(r=[c("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(i=[Di(g([new or(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new or(2,[[c("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(o=[c("button",w(g([["type","button"],["onClick",m=>{t()}],["className","text-gray-600"],(s=[Fi(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","sm:flex sm:items-start"],(a=[c("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(l=[R6([])],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(u=[Gh(g([new Is(2,["text-gray-900 text-lg font-bold"]),new Is(3,[["Cancel import"]])])),c("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(f=[c("p",{children:["You’re about to cancel your import. All changes will be discarded."]}),c("br",{}),c("p",{children:["Are you sure you want to cancel and exit?"]})],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(a))])]))),c("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(d=[c("button",w(g([["type","button"],["onClick",m=>{n()}],(p="inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-red-500 sm:ml-3 sm:w-auto",["className",p]),["children","Cancel import and exit"]]))),c("button",w(g([["type","button"],["onClick",m=>{t()}],(h="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",h]),["children","Continue import"]])))],["children",y.Children.toArray(Array.from(d))])])))]])]))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}class Ka extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function a4(e,t){let n;const r=Ew();return n=y.useRef(r),bm(()=>_u(()=>{Aw(n.current)})),_m(i=>{kw(n.current)||Ks(J.Delay(()=>J.TryWith(J.Delay(()=>(t(new Ka(1,[])),J.Bind(e(i),o=>(t(new Ka(2,[o])),J.Zero())))),o=>(t(new Ka(3,[o])),J.Zero()))),n.current)})}function l4(e,t,n,r,i,o,s){let a,l,u,f,d,p,h;return vm((a=[()=>C6(e,t,n,r,i),m=>{let v,b,x,C;switch(m.tag){case 1:case 0:{v=3;break}case 3:{v=2,C=m.fields[0];break}default:m.fields[0].tag===1?(v=1,x=m.fields[0].fields[0]):(v=0,b=m.fields[0].fields[0])}switch(v){case 0:{o(b);break}case 1:{s(x);break}case 2:{s(Je(C));break}}}],a4(a[0],a[1]))),c("div",w(g([["className","fixed inset-0 z-100 w-screen overflow-y-auto bg-white"],(l=[c("div",w(g([["className","flex-col w-full h-full justify-center items-center gap-2.5 inline-flex overflow-hidden"],(u=[c("div",w(g([["className","self-stretch h-[118px] flex-col justify-center items-center gap-8 flex"],(f=[c("div",w(g([["className","relative"],(d=[P6([])],["children",y.Children.toArray(Array.from(d))])]))),c("div",w(g([["className","flex-col justify-start items-center gap-6 flex"],(p=[c("div",w(g([["className","w-[140px] h-1.5 relative bg-blue-100 rounded-[5px] overflow-hidden"],(h=[c("div",{style:{animation:"progressBar 2s linear infinite"},className:"h-1.5 top-0 absolute bg-gradient-to-r from-[#a650ff] to-[#0095f2] rounded-[5px]"})],["children",y.Children.toArray(Array.from(h))])])))],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(l))])])))}class Ki extends _e{constructor(t,n,r){super(),this.Type=t,this.Title=n,this.Message=r}}class Xi extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","Failure"]}}const u4=3e4;function c4(e,t,n,r,i){const o=()=>J.Delay(()=>J.Bind(k0(u4),()=>J.Bind(t(n),s=>{let a,l;const u=s;return u.tag!==1&&(u.fields[0].tag!==1||(u.fields[0].fields[0].tag===1?(e(new Ki(new Xi(1,[]),"We found a duplicate user",`"${he(i.fields[0],he(u.fields[0].fields[0].fields[0]-2,r.fields[0]).fields[0])}" already exists in our system. This user was skipped during the import.`)),!1):u.fields[0].fields[0].tag===2?(a=u.fields[0].fields[0].fields[0].DuplicateEmailCount>0,l=u.fields[0].fields[0].fields[0].OtherFailuresCount>0,e(a?l?new Ki(new Xi(1,[]),"We found multiple import errors","One or more of the rows experienced errors during import. These rows were skipped during the import."):new Ki(new Xi(1,[]),`We found ${u.fields[0].fields[0].fields[0].DuplicateEmailCount} duplicate users`,"One or more of the users you’re trying to add already exist in our system. These users were skipped during the import."):new Ki(new Xi(1,[]),"We found multiple import errors","One or more of the rows experienced errors during import. These rows were skipped during the import.")),!1):(e(new Ki(new Xi(0,[]),`Successfully added ${u.fields[0].fields[0].fields[0]} users`,"If you don’t see any new users, try refreshing this page.")),!1)))?J.Bind(o(),()=>J.Return(void 0)):J.Zero()})));Ks(o())}class kt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class Xo extends _e{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function Qd(){xm(g(["admin","app","users"]))}function fp(e){xm(g(["admin","app","oops"]))}function d4(e){switch(e.tag){case 1:return new Xo(new kt(0,[]),new kt(1,[]),new kt(2,[]),new kt(2,[]));case 2:return new Xo(new kt(0,[]),new kt(0,[]),new kt(1,[]),new kt(2,[]));case 3:return new Xo(new kt(0,[]),new kt(0,[]),new kt(0,[]),new kt(1,[]));default:return new Xo(new kt(1,[]),new kt(2,[]),new kt(2,[]),new kt(2,[]))}}function f4(e,t,n,r,i){switch(i.tag){case 1:{const o=i.fields[0],s=o[1].tag===1?o[1].fields[0].tag===1?[Cd(o[1].fields[0].fields[0],o[1].fields[0].fields[1]),o[0].HeaderRow,o[0].DataRows]:[Cd(o[1].fields[0].fields[0],void 0),o[0].HeaderRow,o[0].DataRows]:[o[1].fields[0],o[0].HeaderRow,o[0].DataRows];return c(u6,{existingMappings:Ji(s[0]),headerRow:s[1],dataRows:s[2],next:a=>{let l;n(new mr(0,[(l=a,new qo(1,[l[0],l[1]]))]))},back:a=>{n(new mr(1,[new Ya(2,[a])]))}})}case 2:{const o=B_(i.fields[0][0].DataRows,i.fields[0][2]);return c(y6,{existingMappings:Ji(i.fields[0][3]),employmentBasisColumn:o,next:s=>{n(new mr(0,[new qo(2,[s])]))},back:s=>{n(new mr(1,[new Ya(1,[s])]))}})}case 3:return c(G6,{apiCallAsync:e,dataRows:i.fields[0][0].DataRows,baseColumnMappings:i.fields[0][1],employmentBasis:Ji(i.fields[0][2]),next:o=>{let s;n(new mr(0,[(s=o,new qo(3,[s[0],s[1]]))]))},back:()=>{n(new mr(1,[new Ya(0,[])]))},onError:o=>{fp()}});default:{const o=Ct(s=>s[0],i.fields[0]);return c(r4,{existingCsvFile:Ji(o),next:s=>{n(new mr(0,[new qo(0,[s])]))},cancel:t,markDirty:r})}}}function Jo(e,t){let n,r,i;switch(t.tag){case 1:return c("div",w(g([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[c("span",{children:e})],["children",y.Children.toArray(Array.from(n))])])));case 2:return c("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[c("span",{children:e})],["children",y.Children.toArray(Array.from(r))])])));default:return c("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[Pu(20,20),c("span",{children:e})],["children",y.Children.toArray(Array.from(i))])])))}}function m4(e,t){const n={detail:t,bubbles:!0};return new CustomEvent(e,n)}function h4(e){let t;t=m4("show-toast",{message:lt(e.Message),title:e.Title,toastType:e.Type.tag===1?"failure":"success"}),document.dispatchEvent(t)}function p4(e){let t,n,r,i,o;const s=i4();o=Lr(()=>Pr(()=>s,o4,(x,C)=>{}),void 0,void 0);const a=o[0],l=y.useState(!1),u=l[0],f=l[1],d=y.useState(!1),p=d[0],h=y.useCallback(x=>{x.preventDefault(),x.returnValue=!0},[]),m=()=>{window.removeEventListener("beforeunload",h)};ym(()=>(p?window.addEventListener("beforeunload",h):m(),{Dispose(){m()}}),[p]);let v;if(a.tag===0){const x=a.fields[0],C=()=>{u||f(!0)},S=d4(x),$=f4(D=>J2(e.backendUrl,D),C,o[1],d[1],x);v=c("div",w(g([["className","flex flex-col h-full"],(t=[s4(u,()=>{u&&f(!1)},()=>{u&&(m(),Qd())}),c("div",w(g([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[c("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),c("button",w(g([(r="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",D=>{C()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]])))],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[Jo("1. Upload CSV",S.UploadingCsv),c("hr",{className:"w-16 pt-1.5"}),Jo("2. Map fields",S.MappingColumns),c("hr",{className:"w-16 pt-1.5"}),Jo("3. Map values",S.MappingEmploymentBasis),c("hr",{className:"w-16 pt-1.5"}),Jo("4. Review",S.Reviewing)],["children",y.Children.toArray(Array.from(i))])]))),$],["children",y.Children.toArray(Array.from(t))])])))}else{const x=a.fields[0][0],C=a.fields[0][1];v=l4(S=>Q2(e.backendUrl,S),x,C,a.fields[0][2],a.fields[0][3],S=>{m();const $=[S,x,C.Email];c4(D=>{h4(D)},D=>ev(e.backendUrl,D),$[0],$[1],$[2]),Qd()},S=>{m(),fp()})}const b=[c("style",{children:[ql]}),v];return c(ze,{},...b)}function g4(){Rl(e=>c(p4,e),"apollo-import-workspace-wizard")}Rl(e=>c(hg,e),"apollo-import-workspace-app");w_();g4();
|