@flarehr/apollo-import-workspace-app 0.1.434 → 0.1.436

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.
@@ -28,7 +28,7 @@ If you can't use one of these types, please pass an extra decoder.
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var Tu;function tw(){if(Tu)return fs;Tu=1;var e=ew;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(c,p){var h=p(),f=r({inst:{value:h,getSnapshot:p}}),g=f[0].inst,w=f[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&w({inst:g})},[c,h,p]),o(function(){return l(g)&&w({inst:g}),c(function(){l(g)&&w({inst:g})})},[c]),s(h),h}function l(c){var p=c.getSnapshot;c=c.value;try{var h=p();return!n(c,h)}catch{return!0}}function u(c,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return fs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,fs}var Au;function nw(){return Au||(Au=1,ds.exports=tw()),ds.exports}var rw=nw();class ow{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=Z1(o)(this.arg);let l=a[0],u=a[1];s=[[l,d=>{const c=this.finalDispatch;c==null?i.push(d):c(d)},!1,i],u],this.state=s[0],this.cmd=s[1],this.subscribe=d=>{let c=!1;const p=Os(this.state[0]);return Q1(this.arg,Y1((h,f)=>{const g=this.state;this.finalDispatch=f,this.state=[h,g[1],!0,i],h!==g[0]&&d()},K1((h,f)=>{const g=this.cmd;return this.cmd=J(),[this.state[0],g]},(h,f,g)=>h(f)(this.state[0]),Ds(h=>h),Ds(h=>h),Ge(h=>h),h=>[f=>h[0](f)?!0:p&&c,f=>{const g=f;Os(g)?Fe(g):h[1](f)}],o))),()=>{c=!0}}}}function $u(e,t,n){return new ow(e,t,n)}function iw(e){return e.state}function sw(e){return e.subscribe}function aw(e,t,n){return pe(e.arg,t)?!pe(e.dependencies,n):!0}function $o(e,t,n){const r=ae(()=>$u(e,t,n)),o=r[0];aw(o,t,n)&&r[1]($u(e,t,n));const i=rw.useSyncExternalStore(sw(o),()=>iw(o)),s=i[2],a=i[3],l=i[1];return Se(()=>{if(s&&a.length>0){let u=He(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const d=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{Fe(u)}Am(a)}},[s,a]),[i[0],l]}class Vs extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function lw(e){return e.tag===1?new Vs(0,[]):new Vs(1,[])}function uw(e,t,n){return e.tag===1?j0(t,n,{Compare:wt}):H0(t,n,{Compare:wt})}class zn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Qo=class extends Te{constructor(t){super(),this.View=t}},Jo=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Jd=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function cw(){return[new Qo(new Jo(0,[])),ye(e=>{e(new Jd(new zn(0,[void 0])))})]}function dw(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Qo(new Jo(2,[t.fields[0].fields[0].fields[0]])),J()]:[new Qo(new Jo(1,[t.fields[0].fields[0].fields[0]])),J()]:[new Qo(new Jo(0,[])),j1(r=>{B1(r)},e,void 0,r=>new Jd(new zn(1,[r])))]}class fw extends Te{constructor(t){super(),this.UserActivities=t}}class Nu extends Te{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function hw(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Nr(vn(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function mw(e){return Di(v(Sa(vn(t=>new Nu(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),ko(t=>new Nu(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function pw(e){return new fw(Nr(vn(mw,e),Je()))}class Mu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class gw extends Te{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class No extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class ww extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class yw extends Te{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class ef extends Te{constructor(t,n){super(),this.Column=t,this.Direction=n}}class vw extends z{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class wi extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class bw extends Te{constructor(t,n,r,o,i){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=o|0,this.PageSize=i|0}}function _w(e){return e.tag===1?tf(e.fields[0].Data):of()}function xw(e){return e.tag===1?Br(e.fields[0].Data):new wi(1,[])}function Cw(e){const t=Ba(of(),e);return new No([af(gd(e),20),t])}function Mo(e){return e.fields[0][1]}function tf(e){return rf(Mo(e))}function Sw(e){return Va(Mo(e))}function Br(e){return e.fields[0][0]}function Ew(e){const t=Br(e);if(t.tag===0){const n=t.fields[0],r=B0(n.FirstRowIndex,Sw(e));return V0(Rw(n),r)}else return Je()}function nf(e,t){const n=Ba(tf(e),t);return new No([Fw(Br(e),gd(Va(n))),n])}function kw(e){return new No([Br(e),$w(Mo(e))])}function Tw(e){return new No([Ow(Br(e)),Mo(e)])}function Aw(e){return new No([Iw(Br(e)),Mo(e)])}function Ba(e,t){return new ww([e,uw(e.Direction,n=>n.Timestamp,t)])}function Va(e){return e.fields[0][1]}function rf(e){return e.fields[0][0]}function $w(e){return Ba(Nw(rf(e)),Va(e))}function of(){return new ef(new vw,new Vs(0,[]))}function Nw(e){return new ef(e.Column,lw(e.Direction))}function sf(e,t){return~~(e/t)+(e%t===0?0:1)}function ji(e,t,n){if(e<=0)return new wi(1,[]);{const r=Vl(n,sf(e,t))|0,o=(r-1)*t|0;return new wi(0,[new bw(r,o,Vl(o+t-1,e-1),e,t)])}}function af(e,t){return ji(e,t,1)}function Mw(e){if(e.tag===0){const t=e.fields[0];return sf(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function lf(e){return e.tag===0?e.fields[0].CurrentPage<Mw(e):!1}function uf(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Iw(e){const t=uf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return ji(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Ow(e){const t=lf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return ji(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Fw(e,t){return t<=0?new wi(1,[]):e.tag===0?ji(t,20,e.fields[0].CurrentPage):af(t,20)}function Dw(e){return e.FirstRowIndex+1}function Pw(e){return e.LastRowIndex+1}function Rw(e){return e.LastRowIndex-e.FirstRowIndex+1}let Nn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class Vr extends Te{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class Ua extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Lw(e){if(e.tag===1)return cf(e.fields[0])}function Hw(e){return e.tag===0}function jw(e){return e.tag===1?new Mu(1,[qw(e.fields[0])]):new Mu(0,[])}function cf(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Bw(e){return cf(e)!=null}function Vw(e,t){return new Nn(1,[new Vr(e.ImportHistory,new Ua(1,[t]),nf(e.PaginatedList,wd(n=>hw(n.User,t),e.ImportHistory.UserActivities)))])}function Uw(e){return new Nn(1,[new Vr(e.ImportHistory,new Ua(0,[]),nf(e.PaginatedList,e.ImportHistory.UserActivities))])}function Ww(e){return new Nn(1,[new Vr(e.ImportHistory,e.View,kw(e.PaginatedList))])}function Gw(e){return new Nn(1,[new Vr(e.ImportHistory,e.View,Tw(e.PaginatedList))])}function zw(e){return new Nn(1,[new Vr(e.ImportHistory,e.View,Aw(e.PaginatedList))])}function qw(e){return new gw(e.PaginatedList,Bw(e))}let Sr=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Yw(e){let t;return[e.tag===1?new Nn(0,[]):(t=e.fields[0],new Nn(1,[new Vr(t,new Ua(0,[]),Cw(t.UserActivities))])),J()]}function df(e,t){return e.tag===1?t(e.fields[0]):[new Nn(0,[]),J()]}function Zw(e,t){return df(e,n=>[t(n),J()])}function Kw(e,t){const n=r=>Zw(t,r);switch(e.tag){case 1:return n(Uw);case 2:return n(Ww);case 3:return n(Gw);case 4:return n(zw);default:{const r=e.fields[0];return df(t,o=>xa(r)?[t,ye(i=>{i(new Sr(1,[]))})]:[Vw(o,r),J()])}}}function Xw(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([(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",E.Children.toArray(Array.from(n))])])))}function Qw(){let e,t,n;return m("div",C(v([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[m("div",C(v([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[m("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),m("div",C(v([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Xw(24,24)],["children",E.Children.toArray(Array.from(n))])]))),m("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",E.Children.toArray(Array.from(t))])])))],["children",E.Children.toArray(Array.from(e))])])))}function Jw(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([["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",E.Children.toArray(Array.from(n))])])))}function Us(e,t){let n,r;return m("svg",C(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([(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",E.Children.toArray(Array.from(n))])])))}class Iu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function ey(e){let t,n;const r=Nr(e.Value,"");return m("div",C(v([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[m("div",C(v([["className",Xt(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=Pe(V(()=>{let o;return we(H(m("div",C(v([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(o=[Jw(20,20)],["children",E.Children.toArray(Array.from(o))])])))),V(()=>{let i;return we(H(m("input",C(v([(i="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",i]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new Iu(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),V(()=>{let s;return xa(r)?H(Ke()):H(m("div",C(v([["onClick",a=>{e.ActionHandler(new Iu(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Us(10,10)],["children",E.Children.toArray(Array.from(s))])]))))}))}))})),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}function ty(e){let t,n;const r=e.height,o=e.width;return m("svg",C(v([["fill","none"],["height",r],["width",o],["viewBox","0 0 "+o+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=ye(m("path",C(v([(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",E.Children.toArray(Array.from(t))])])))}function ny(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return m("div",C(v([["className",Xt(" ",Pe(V(()=>we(H("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),V(()=>r.tag===1?H("rotate-180"):H(""))))))],["onClick",o=>{n(void 0)}],(t=[m(ty,{width:10,height:7})],["children",E.Children.toArray(Array.from(t))])])))}function ry(e){const t=e.toggleSortDirection,n=e.props;return m(ny,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function oy(e){let t,n,r,o;const i=m(ry,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return m("div",C(v([["className","flex-none grid grid-cols-7"],(t=[m("div",C(v([["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=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),i],["children",E.Children.toArray(Array.from(n))])]))),m("div",C(v([["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=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",E.Children.toArray(Array.from(r))])]))),m("div",C(v([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(o=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",E.Children.toArray(Array.from(o))])])))],["children",E.Children.toArray(Array.from(t))])])))}function yi(e){"@babel/helpers - typeof";return yi=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},yi(e)}function Jn(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 ht(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function en(e){ht(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||yi(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 iy(e,t){ht(2,arguments);var n=en(e).getTime(),r=Jn(t);return new Date(n+r)}var sy={};function Bi(){return sy}function ay(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 ly(e){return ht(1,arguments),e instanceof Date||yi(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function uy(e){if(ht(1,arguments),!ly(e)&&typeof e!="number")return!1;var t=en(e);return!isNaN(Number(t))}function cy(e,t){ht(2,arguments);var n=Jn(t);return iy(e,-n)}var dy=864e5;function fy(e){ht(1,arguments);var t=en(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/dy)+1}function vi(e){ht(1,arguments);var t=1,n=en(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function ff(e){ht(1,arguments);var t=en(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=vi(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=vi(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function hy(e){ht(1,arguments);var t=ff(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=vi(n);return r}var my=6048e5;function py(e){ht(1,arguments);var t=en(e),n=vi(t).getTime()-hy(t).getTime();return Math.round(n/my)+1}function bi(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=Bi(),c=Jn((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=en(e),h=p.getUTCDay(),f=(h<c?7:0)+h-c;return p.setUTCDate(p.getUTCDate()-f),p.setUTCHours(0,0,0,0),p}function hf(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=en(e),c=d.getUTCFullYear(),p=Bi(),h=Jn((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o: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 f=new Date(0);f.setUTCFullYear(c+1,0,h),f.setUTCHours(0,0,0,0);var g=bi(f,t),w=new Date(0);w.setUTCFullYear(c,0,h),w.setUTCHours(0,0,0,0);var x=bi(w,t);return d.getTime()>=g.getTime()?c+1:d.getTime()>=x.getTime()?c:c-1}function gy(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=Bi(),c=Jn((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=hf(e,t),h=new Date(0);h.setUTCFullYear(p,0,c),h.setUTCHours(0,0,0,0);var f=bi(h,t);return f}var wy=6048e5;function yy(e,t){ht(1,arguments);var n=en(e),r=bi(n,t).getTime()-gy(n,t).getTime();return Math.round(r/wy)+1}function ke(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Sn={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return ke(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):ke(r+1,2)},d:function(t,n){return ke(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 ke(t.getUTCHours()%12||12,n.length)},H:function(t,n){return ke(t.getUTCHours(),n.length)},m:function(t,n){return ke(t.getUTCMinutes(),n.length)},s:function(t,n){return ke(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return ke(i,n.length)}},hr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vy={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return Sn.y(t,n)},Y:function(t,n,r,o){var i=hf(t,o),s=i>0?i:1-i;if(n==="YY"){var a=s%100;return ke(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):ke(s,n.length)},R:function(t,n){var r=ff(t);return ke(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return ke(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return ke(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return ke(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return Sn.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return ke(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=yy(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):ke(i,n.length)},I:function(t,n,r){var o=py(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):ke(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Sn.d(t,n)},D:function(t,n,r){var o=fy(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):ke(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":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"})}},e:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return ke(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});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"})}},c:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return ke(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return ke(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=hr.noon:o===0?i=hr.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=hr.evening:o>=12?i=hr.afternoon:o>=4?i=hr.morning:i=hr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Sn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Sn.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):ke(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):ke(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Sn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Sn.s(t,n)},S:function(t,n){return Sn.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Fu(s);case"XXXX":case"XX":return Hn(s);case"XXXXX":case"XXX":default:return Hn(s,":")}},x:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return Fu(s);case"xxxx":case"xx":return Hn(s);case"xxxxx":case"xxx":default:return Hn(s,":")}},O:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ou(s,":");case"OOOO":default:return"GMT"+Hn(s,":")}},z:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ou(s,":");case"zzzz":default:return"GMT"+Hn(s,":")}},t:function(t,n,r,o){var i=o._originalDate||t,s=Math.floor(i.getTime()/1e3);return ke(s,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,s=i.getTime();return ke(s,n.length)}};function Ou(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var s=t;return n+String(o)+s+ke(i,2)}function Fu(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ke(Math.abs(e)/60,2)}return Hn(e,t)}function Hn(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=ke(Math.floor(o/60),2),s=ke(o%60,2);return r+i+n+s}var Du=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"})}},mf=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"})}},by=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Du(t,n);var s;switch(o){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}}",Du(o,n)).replace("{{time}}",mf(i,n))},_y={p:mf,P:by},xy=["D","DD"],Cy=["YY","YYYY"];function Sy(e){return xy.indexOf(e)!==-1}function Ey(e){return Cy.indexOf(e)!==-1}function Pu(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 ky={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"}},Ty=function(t,n,r){var o,i=ky[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function hs(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 Ay={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$y={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ny={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},My={date:hs({formats:Ay,defaultWidth:"full"}),time:hs({formats:$y,defaultWidth:"full"}),dateTime:hs({formats:Ny,defaultWidth:"full"})},Iy={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Oy=function(t,n,r,o){return Iy[t]};function Qr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}var Fy={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Dy={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Py={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"]},Ry={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"]},Ly={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"}},Hy={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"}},jy=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},By={ordinalNumber:jy,era:Qr({values:Fy,defaultWidth:"wide"}),quarter:Qr({values:Dy,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Qr({values:Py,defaultWidth:"wide"}),day:Qr({values:Ry,defaultWidth:"wide"}),dayPeriod:Qr({values:Ly,defaultWidth:"wide",formattingValues:Hy,defaultFormattingWidth:"wide"})};function Jr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Uy(a,function(c){return c.test(s)}):Vy(a,function(c){return c.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(s.length);return{value:u,rest:d}}}function Vy(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Uy(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Wy(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 o=r[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(o.length);return{value:s,rest:a}}}var Gy=/^(\d+)(th|st|nd|rd)?/i,zy=/\d+/i,qy={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},Yy={any:[/^b/i,/^(a|c)/i]},Zy={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ky={any:[/1/i,/2/i,/3/i,/4/i]},Xy={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},Qy={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]},Jy={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},ev={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]},tv={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},nv={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}},rv={ordinalNumber:Wy({matchPattern:Gy,parsePattern:zy,valueCallback:function(t){return parseInt(t,10)}}),era:Jr({matchPatterns:qy,defaultMatchWidth:"wide",parsePatterns:Yy,defaultParseWidth:"any"}),quarter:Jr({matchPatterns:Zy,defaultMatchWidth:"wide",parsePatterns:Ky,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Jr({matchPatterns:Xy,defaultMatchWidth:"wide",parsePatterns:Qy,defaultParseWidth:"any"}),day:Jr({matchPatterns:Jy,defaultMatchWidth:"wide",parsePatterns:ev,defaultParseWidth:"any"}),dayPeriod:Jr({matchPatterns:tv,defaultMatchWidth:"any",parsePatterns:nv,defaultParseWidth:"any"})},ov={code:"en-US",formatDistance:Ty,formatLong:My,formatRelative:Oy,localize:By,match:rv,options:{weekStartsOn:0,firstWeekContainsDate:1}},iv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,av=/^'([^]*?)'?$/,lv=/''/g,uv=/[a-zA-Z]/;function pf(e,t,n){var r,o,i,s,a,l,u,d,c,p,h,f,g,w;ht(2,arguments);var x=String(t),_=Bi(),S=(r=(o=void 0)!==null&&o!==void 0?o:_.locale)!==null&&r!==void 0?r:ov,$=Jn((i=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:_.firstWeekContainsDate)!==null&&s!==void 0?s:(u=_.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=Jn((c=(p=(h=(f=void 0)!==null&&f!==void 0?f:void 0)!==null&&h!==void 0?h:_.weekStartsOn)!==null&&p!==void 0?p:(g=_.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(F>=0&&F<=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 P=en(e);if(!uy(P))throw new RangeError("Invalid time value");var D=ay(P),b=cy(P,D),y={firstWeekContainsDate:$,weekStartsOn:F,locale:S,_originalDate:P},k=x.match(sv).map(function(T){var N=T[0];if(N==="p"||N==="P"){var O=_y[N];return O(T,S.formatLong)}return T}).join("").match(iv).map(function(T){if(T==="''")return"'";var N=T[0];if(N==="'")return cv(T);var O=vy[N];if(O)return Ey(T)&&Pu(T,t,String(e)),Sy(T)&&Pu(T,t,String(e)),O(b,T,S.localize,y);if(N.match(uv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return T}).join("");return k}function cv(e){var t=e.match(av);return t?t[1].replace(lv,"'"):e}function dv(e){return pf(e,"d MMM, yyyy")}function fv(e){return pf(e,"h:mm a")}function hv(e){let t,n,r,o,i,s,a;return m("div",C(v([["className","grid grid-cols-7"],(t=[m("div",C(v([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[m("div",C(v([["className"," flex flex-col justify-center items-start"],(r=[m("div",C(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:dv(e.Timestamp)})],["children",E.Children.toArray(Array.from(o))])]))),m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:fv(e.Timestamp)})],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])]))),m("div",C(v([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(i=[m("div",C(v([["className","justify-center items-start flex flex-col"],(s=Pe(V(()=>{let l;return we(H(m("div",C(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",E.Children.toArray(Array.from(l))])])))),V(()=>{const u=e.User.Email;return u==null?H(Ke()):H(m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(i))])]))),m("div",C(v([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",E.Children.toArray(Array.from(a))])])))],["children",E.Children.toArray(Array.from(t))])])))}function mv(e){const t=ko(n=>m(hv,n),e.Data);return m("div",{className:"grow shrink basis-0 self-stretch flex flex-col justify-start items-stretch",children:E.Children.toArray(Array.from(t))})}function pv(e){let t,n,r,o,i;const s=e.height,a=e.width;return m("svg",C(v([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=v([m("path",C(v([(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)"]]))),m("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",C(v([(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"]]))),(o=ye(m("linearGradient",C(v([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(i=v([m("stop",{offset:0,stopColor:"#FFD84D"}),m("stop",{offset:1,stopColor:"#FF876F"})]),["children",E.Children.toArray(Array.from(i))])])))),m("defs",{children:E.Children.toArray(Array.from(o))}))]),["children",E.Children.toArray(Array.from(t))])])))}function gv(){let e;return m("div",C(v([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[m(pv,{width:120,height:120})],["children",E.Children.toArray(Array.from(e))])])))}function wv(){let e,t,n,r;return m("div",C(v([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[m(gv,null),m("div",C(v([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[m("div",C(v([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[m("div",C(v([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[m("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),m("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",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))],["children",E.Children.toArray(Array.from(e))])])))}function yv(e){return{Data:Ew(e.Data)}}function vv(e){let t,n;const r=e.props,o=r.tag===1?m(mv,yv(r.fields[0])):m(wv,null);return m("div",C(v([["className","relative h-full grow"],(t=[m("div",C(v([(n="absolute top-0 bottom-0 left-0 right-0 overflow-y-auto grow shrink basis-0 self-stretch flex flex-col justify-start items-stretch",["className",n]),["style",{scrollbarWidth:"none"}],["children",E.Children.toArray([o])]])))],["children",E.Children.toArray(Array.from(t))])])))}class Ru extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function bv(e){let t,n;const r=e.pageChangedHandler,o=e.pagingInfo;return m("div",C(v([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[m("div",{className:"self-stretch h-px bg-gray-200"}),m("div",C(v([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=Pe(V(()=>{let i,s,a;return we((i=o,i.tag===1?H(m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=i.fields[0],H((a=v([m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(Dw(s))}),m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(Pw(s))}),m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(s.TotalRecordsNumber)}),m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),m("div",{children:E.Children.toArray(Array.from(a))}))))),V(()=>{let l,u,d;return H(m("div",C(v([["className","justify-start items-start gap-3 flex"],(l=[m("button",C(v([["type","button"],(u="py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",u]),["children","Previous"],["onClick",c=>{r(new Ru(0,[]))}],["disabled",!uf(o)]]))),m("button",C(v([["type","button"],(d="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",d]),["children","Next"],["onClick",c=>{r(new Ru(1,[]))}],["disabled",!lf(o)]])))],["children",E.Children.toArray(Array.from(l))])]))))}))})),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class Ws extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function _v(e,t){e(t.tag===0?new Ws(2,[]):new Ws(1,[]))}function xv(e){let t,n;const r=e.actionHandler,o=e.props;return m("div",C(v([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[m(oy,new yw(_w(o),()=>{r(new Ws(0,[]))})),m(vv,{props:o}),m(bv,{pagingInfo:xw(o),pageChangedHandler:i=>{_v(r,i)}})],["children",E.Children.toArray(Array.from(n))])])))}function Cv(e,t){t.tag===0?e(new Sr(0,[t.fields[0]])):e(new Sr(1,[]))}function Sv(e,t){switch(t.tag){case 2:{e(new Sr(4,[]));break}case 0:{e(new Sr(2,[]));break}default:e(new Sr(3,[]))}}function Lu(e){let t,n;const r=e.importHistory;let o;const i=Yw(r);o=$o(()=>Ao(()=>i,Kw,(d,c)=>{}),void 0,void 0);const s=o[0],a=o[1];let l;const u=Lw(s);return l={ActionHandler:d=>{Cv(a,d)},Disabled:Hw(s),Value:Rs(u)},m("div",C(v([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[m(Qw,null),m("div",C(v([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[m(ey,l),m(xv,{props:jw(s),actionHandler:d=>{Sv(a,d)}})],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class Hu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function Ev(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return m("div",C(v([["className",Xt(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[m("div",{className:Xt(" ",["w-full h-4 relative rounded",r[1]])})],["children",E.Children.toArray(Array.from(n))])])))}function ju(e){const t=ko(n=>Ev(e,n),v(["col-span-1","col-span-2","col-span-4"]));return m("div",{className:"grid grid-cols-7",children:E.Children.toArray(Array.from(t))})}function kv(){let e,t;return m("div",C(v([(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=Di(ye(ju(new Hu(0,[]))),ko(n=>ju(new Hu(1,[])),Pe(Qd(1,1,5)))),["children",E.Children.toArray(Array.from(t))])])))}function Tv(e){const t=_1(e.backendUrl);let n;const r=$o(()=>Ao(cw,(i,s)=>dw(()=>x1(t),i),(i,s)=>{}),void 0,[])[0].View;n=r.tag===2?m(Lu,{importHistory:new A(1,[void 0])}):r.tag===1?m(Lu,{importHistory:new A(0,[pw(r.fields[0])])}):m(kv,null);const o=[m("style",{children:[ba]}),n];return m(Oe,{},...o)}function Av(){ua(e=>m(Tv,e),"apollo-import-workspace-past-history")}function $v(e,t){return V(()=>{const n=new yg([],t);return _p(r=>eg(r,n),e)})}function gf(e,t){return Ed($v(e,t))}class Nv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class Mv extends Te{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}class Iv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class co extends Te{constructor(t,n,r,o,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o,this.EmploymentBasis=i}}new co(void 0,void 0,void 0,void 0,void 0);function Bu(e,t){return new co(e.FirstName,e.LastName,e.Email,e.MobilePhone,vn(n=>n.fields[0],t))}class Ov extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class Fv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class mr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class rn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class Dv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class Pv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Rv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function Lv(e,t){let n;return new Fv(Gt(r=>new Ov(r),N0(r=>r,gf((n=Gt(r=>ze(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!Ca(r))),{Equals:(r,o)=>r===o,GetHashCode:sr}),{Compare:Mi})))}class wf extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class Hv extends Te{constructor(t,n,r,o){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=o|0}}class Uo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}function jv(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([["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",E.Children.toArray(Array.from(n))])])))}function yf(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([(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",E.Children.toArray(Array.from(n))])])))}function Wa(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([(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",E.Children.toArray(Array.from(n))])])))}class fe extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function vf(e){switch(e.tag){case 1:return"Last name";case 2:return"Email";case 3:return"Mobile phone";case 4:return"Employment basis";default:return"First name"}}let Rn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class eo extends Te{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class Bv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class ln extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let gr=class extends Te{constructor(t,n,r,o,i,s,a,l,u,d){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o,this.EmploymentBasis=i,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=u|0,this.Status=d}};function Vv(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 vn(r=>r[0],Aa(r=>fd(td(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(o,i)=>o===i,GetHashCode:sr}),e))}function Uv(e,t){return new Bv(Gt(n=>{const r=n[0];return[r,n[1],fd(r,t,{Equals:pe,GetHashCode:Sm})?new ln(1,[]):new ln(0,[])]},e))}function bf(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 wr(e,t){return an(n=>n,Gt(n=>hd(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,11)))}function Ga(e,t,n,r,o,i,s){let a,l,u;const d=f=>Uv(e,f);let c;c=an(f=>f,[n,r,o,i,s]).length;const h=n!=null?r!=null?o!=null?(a=o,l=n,u=r,new Uo(1,[new Mv(l,u,a,i),vn(f=>new Iv(f),s)])):new Uo(0,[new co(n,r,o,i,s)]):new Uo(0,[new co(n,r,o,i,s)]):new Uo(0,[new co(n,r,o,i,s)]);return new gr(new eo(n,d(an(f=>f,[r,o,i,s]))),new eo(r,d(an(f=>f,[n,o,i,s]))),new eo(o,d(an(f=>f,[n,r,i,s]))),new eo(i,d(an(f=>f,[n,r,o,s]))),new eo(s,d(an(f=>f,[n,r,o,i]))),t,e.length,c,e.length-c,h)}function to(e,t,n,r,o){let i,s,a;const l=[r,o];return a=bf(n,l[0],l[1]),Ga(e,(i=n.Preview,i!=null&&pe(i[0],r)?(s=i[0],[s,wr(o,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function no(e,t,n){let r,o;const i=[n,void 0];return o=bf(t,i[0],i[1]),Ga(e,(r=t.Preview,r!=null&&pe(r[0],n)?(r[0],void 0):t.Preview),o[0],o[1],o[2],o[3],o[4])}function _f(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 Wv=e=>t=>_f(e,t);function Gv(e,t){const n=_f(e,t),r=e.Preview;let o;switch(n?r==null?o=2:pe(r[0],t)?(o=1,r[0]):o=2:o=0,o){case 0:return!1;case 1:return!1;default:return!0}}function zv(e,t){let n,r,o,i,s,a,l,u,d;const c=p=>Vv(e,p);return[(n=t==null?(r=c(new fe(0,[])),o=c(new fe(1,[])),i=c(new fe(2,[])),s=c(new fe(3,[])),a=c(new fe(4,[])),l=an(p=>p,[r,o,i,s,a]),u=p=>{let h,f;switch(p!=null?(h=p,l.filter(g=>pe(g,h)).length>1?f=0:f=1):f=1,f){case 0:return;default:return p}},[u(r),u(o),u(i),u(s),u(a)]):(d=t,[d.FirstName,d.LastName,d.Email,d.MobilePhone,d.EmploymentBasis]),Ga(e,void 0,n[0],n[1],n[2],n[3],n[4])),J()]}function qv(e,t,n,r){let o,i,s,a,l,u,d,c,p,h,f,g,w,x,_,S,$,F,P,D,b;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?f=6:f=15;break}case 2:{r.Email.ColumnIndex!=null?f=7:f=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?f=8:f=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?f=9:f=15;break}default:r.FirstName.ColumnIndex!=null?f=5:f=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(f=11,F=r.LastName.ColumnIndex):f=15;break}case 2:{r.Email.ColumnIndex!=null?(f=12,P=r.Email.ColumnIndex):f=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(f=13,D=r.MobilePhone.ColumnIndex):f=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(f=14,b=r.EmploymentBasis.ColumnIndex):f=15;break}default:r.FirstName.ColumnIndex!=null?(f=10,$=r.FirstName.ColumnIndex):f=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!pe(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(y=>pe(u,y[0])?pe(y[2],new ln(0,[])):!1)?(f=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],w=n.fields[1]):f=15;break}case 2:{d=n.fields[1],!pe(r.Email.ColumnIndex,d)&&r.Email.IncomingFields.fields[0].some(y=>pe(d,y[0])?pe(y[2],new ln(0,[])):!1)?(f=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):f=15;break}case 3:{c=n.fields[1],!pe(r.MobilePhone.ColumnIndex,c)&&r.MobilePhone.IncomingFields.fields[0].some(y=>pe(c,y[0])?pe(y[2],new ln(0,[])):!1)?(f=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],_=n.fields[1]):f=15;break}case 4:{p=n.fields[1],!pe(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(y=>pe(p,y[0])?pe(y[2],new ln(0,[])):!1)?(f=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],S=n.fields[1]):f=15;break}default:h=n.fields[1],!pe(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(y=>pe(h,y[0])?pe(y[2],new ln(0,[])):!1)?(f=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],g=n.fields[1]):f=15}}switch(f){case 0:return[(o=[new fe(0,[]),g],to(e,t,r,o[0],o[1])),J()];case 1:return[(i=[new fe(1,[]),w],to(e,t,r,i[0],i[1])),J()];case 2:return[(s=[new fe(2,[]),x],to(e,t,r,s[0],s[1])),J()];case 3:return[(a=[new fe(3,[]),_],to(e,t,r,a[0],a[1])),J()];case 4:return[(l=[new fe(4,[]),S],to(e,t,r,l[0],l[1])),J()];case 5:return[no(e,r,new fe(0,[])),J()];case 6:return[no(e,r,new fe(1,[])),J()];case 7:return[no(e,r,new fe(2,[])),J()];case 8:return[no(e,r,new fe(3,[])),J()];case 9:return[no(e,r,new fe(4,[])),J()];case 10:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(0,[]),wr($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 11:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(1,[]),wr(F,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 12:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(2,[]),wr(P,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 13:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(3,[]),wr(D,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 14:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(4,[]),wr(b,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];default:return[r,J()]}}const xf=typeof document<"u"?B.useLayoutEffect:()=>{};function Yv(e){const t=K(null);return xf(()=>{t.current=e},[e]),be((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Io=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},qn=e=>e&&"window"in e&&e.window===e?e:Io(e).defaultView||window;function Zv(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 Kv(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 Cf(e){let t=null;return()=>(t==null&&(t=e()),t)}const Xv=Cf(function(){return Kv(/^Mac/i)}),Qv=Cf(function(){return Zv(/Android/i)});function Jv(e){return e.mozInputSource===0&&e.isTrusted?!0:Qv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class eb{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 Sf(e){let t=K({isFocused:!1,observer:null});xf(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Yv(r=>{e==null||e(r)});return be(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new eb("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function tb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=be(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=Sf(i),a=be(l=>{const u=Io(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Oo=null,Gs=new Set,fo=new Map,er=!1,zs=!1;const nb={Tab:!0,Escape:!0};function za(e,t){for(let n of Gs)n(e,t)}function rb(e){return!(e.metaKey||!Xv()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function _i(e){er=!0,rb(e)&&(Oo="keyboard",za("keyboard",e))}function $t(e){Oo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(er=!0,za("pointer",e))}function Ef(e){Jv(e)&&(er=!0,Oo="virtual")}function kf(e){e.target===window||e.target===document||(!er&&!zs&&(Oo="virtual",za("virtual",e)),er=!1,zs=!1)}function Tf(){er=!1,zs=!0}function qs(e){if(typeof window>"u"||fo.get(qn(e)))return;const t=qn(e),n=Io(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){er=!0,r.apply(this,arguments)},n.addEventListener("keydown",_i,!0),n.addEventListener("keyup",_i,!0),n.addEventListener("click",Ef,!0),t.addEventListener("focus",kf,!0),t.addEventListener("blur",Tf,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",$t,!0),n.addEventListener("pointermove",$t,!0),n.addEventListener("pointerup",$t,!0)):(n.addEventListener("mousedown",$t,!0),n.addEventListener("mousemove",$t,!0),n.addEventListener("mouseup",$t,!0)),t.addEventListener("beforeunload",()=>{Af(e)},{once:!0}),fo.set(t,{focus:r})}const Af=(e,t)=>{const n=qn(e),r=Io(e);t&&r.removeEventListener("DOMContentLoaded",t),fo.has(n)&&(n.HTMLElement.prototype.focus=fo.get(n).focus,r.removeEventListener("keydown",_i,!0),r.removeEventListener("keyup",_i,!0),r.removeEventListener("click",Ef,!0),n.removeEventListener("focus",kf,!0),n.removeEventListener("blur",Tf,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",$t,!0),r.removeEventListener("pointermove",$t,!0),r.removeEventListener("pointerup",$t,!0)):(r.removeEventListener("mousedown",$t,!0),r.removeEventListener("mousemove",$t,!0),r.removeEventListener("mouseup",$t,!0)),fo.delete(n))};function ob(e){const t=Io(e);let n;return t.readyState!=="loading"?qs(e):(n=()=>{qs(e)},t.addEventListener("DOMContentLoaded",n)),()=>Af(e,n)}typeof document<"u"&&ob();function $f(){return Oo!=="pointer"}const ib=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sb(e,t,n){var r;const o=typeof window<"u"?qn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?qn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?qn(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?qn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!ib.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!nb[n.key])}function ab(e,t,n){qs(),Se(()=>{let r=(o,i)=>{sb(!!(n!=null&&n.isTextInput),o,i)&&e($f())};return Gs.add(r),()=>{Gs.delete(r)}},t)}function lb(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=K({isFocusWithin:!1}),s=be(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=Sf(s),l=be(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let xi=!1,ms=0;function Ys(){xi=!0,setTimeout(()=>{xi=!1},50)}function Vu(e){e.pointerType==="touch"&&Ys()}function ub(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Vu):document.addEventListener("touchend",Ys),ms++,()=>{ms--,!(ms>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Vu):document.removeEventListener("touchend",Ys))}}function cb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=ae(!1),a=K({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Se(ub,[]);let{hoverProps:l,triggerHoverEnd:u}=te(()=>{let d=(h,f)=>{if(a.pointerType=f,o||f==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let g=h.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:f}),n&&n(!0),s(!0)},c=(h,f)=>{if(a.pointerType="",a.target=null,f==="touch"||!a.isHovered)return;a.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:f}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{xi&&h.pointerType==="mouse"||d(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&c(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!xi&&d(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&c(h,"mouse")}),{hoverProps:p,triggerHoverEnd:c}},[t,n,r,o,a]);return Se(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function db(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=K({isFocused:!1,isFocusVisible:t||$f()}),[i,s]=ae(!1),[a,l]=ae(()=>o.current.isFocused&&o.current.isFocusVisible),u=be(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=be(h=>{o.current.isFocused=h,s(h),u()},[u]);ab(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=tb({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=lb({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:a,focusProps:r?p:c}}var fb=Object.defineProperty,hb=(e,t,n)=>t in e?fb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ps=(e,t,n)=>(hb(e,typeof t!="symbol"?t+"":t,n),n);let mb=class{constructor(){ps(this,"current",this.detect()),ps(this,"handoffState","pending"),ps(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"}},Kn=new mb;function Ur(e){return Kn.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Vi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _n(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},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 Vi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=_n();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 o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function On(){let[e]=ae(_n);return Se(()=>()=>e.dispose(),[e]),e}let Re=(e,t)=>{Kn.isServer?Se(e,t):yn(e,t)};function Fn(e){let t=K(e);return Re(()=>{t.current=e},[e]),t}let ee=function(e){let t=Fn(e);return B.useCallback((...n)=>t.current(...n),[t])};function pb(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 gb(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function wb({disabled:e=!1}={}){let t=K(null),[n,r]=ae(!1),o=On(),i=ee(()=>{t.current=null,r(!1),o.dispose()}),s=ee(a=>{if(o.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=Ur(a.currentTarget);o.addEventListener(l,"pointerup",i,!1),o.addEventListener(l,"pointermove",u=>{if(t.current){let d=pb(u);r(gb(d,t.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:i,onClick:i}}}let yb=Ve(void 0);function qa(){return Ee(yb)}function Zs(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function gt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,gt),r}var Or=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Or||{}),Tn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Tn||{});function et(){let e=bb();return be(t=>vb({mergeRefs:e,...t}),[e])}function vb({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??_b;let l=Nf(t,e);if(i)return Wo(l,n,r,s,a);let u=o??0;if(u&2){let{static:d=!1,...c}=l;if(d)return Wo(c,n,r,s,a)}if(u&1){let{unmount:d=!0,...c}=l;return gt(d?0:1,{0(){return null},1(){return Wo({...c,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Wo(l,n,r,s,a)}function Wo(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=gs(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let p=!1,h=[];for(let[f,g]of Object.entries(t))typeof g=="boolean"&&(p=!0),g===!0&&h.push(f.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(p){c["data-headlessui-state"]=h.join(" ");for(let f of h)c[`data-${f}`]=""}}if(i===Oe&&(Object.keys(En(l)).length>0||Object.keys(En(c)).length>0))if(!Pr(d)||Array.isArray(d)&&d.length>1){if(Object.keys(En(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(En(l)).concat(Object.keys(En(c))).map(p=>` - ${p}`).join(`
31
+ */var Tu;function tw(){if(Tu)return fs;Tu=1;var e=ew;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(c,p){var h=p(),f=r({inst:{value:h,getSnapshot:p}}),g=f[0].inst,w=f[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&w({inst:g})},[c,h,p]),o(function(){return l(g)&&w({inst:g}),c(function(){l(g)&&w({inst:g})})},[c]),s(h),h}function l(c){var p=c.getSnapshot;c=c.value;try{var h=p();return!n(c,h)}catch{return!0}}function u(c,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return fs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,fs}var Au;function nw(){return Au||(Au=1,ds.exports=tw()),ds.exports}var rw=nw();class ow{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=Z1(o)(this.arg);let l=a[0],u=a[1];s=[[l,d=>{const c=this.finalDispatch;c==null?i.push(d):c(d)},!1,i],u],this.state=s[0],this.cmd=s[1],this.subscribe=d=>{let c=!1;const p=Os(this.state[0]);return Q1(this.arg,Y1((h,f)=>{const g=this.state;this.finalDispatch=f,this.state=[h,g[1],!0,i],h!==g[0]&&d()},K1((h,f)=>{const g=this.cmd;return this.cmd=J(),[this.state[0],g]},(h,f,g)=>h(f)(this.state[0]),Ds(h=>h),Ds(h=>h),Ge(h=>h),h=>[f=>h[0](f)?!0:p&&c,f=>{const g=f;Os(g)?Fe(g):h[1](f)}],o))),()=>{c=!0}}}}function $u(e,t,n){return new ow(e,t,n)}function iw(e){return e.state}function sw(e){return e.subscribe}function aw(e,t,n){return pe(e.arg,t)?!pe(e.dependencies,n):!0}function $o(e,t,n){const r=ae(()=>$u(e,t,n)),o=r[0];aw(o,t,n)&&r[1]($u(e,t,n));const i=rw.useSyncExternalStore(sw(o),()=>iw(o)),s=i[2],a=i[3],l=i[1];return Se(()=>{if(s&&a.length>0){let u=He(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const d=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{Fe(u)}Am(a)}},[s,a]),[i[0],l]}class Vs extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function lw(e){return e.tag===1?new Vs(0,[]):new Vs(1,[])}function uw(e,t,n){return e.tag===1?j0(t,n,{Compare:wt}):H0(t,n,{Compare:wt})}class zn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Qo=class extends Te{constructor(t){super(),this.View=t}},Jo=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Jd=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function cw(){return[new Qo(new Jo(0,[])),ye(e=>{e(new Jd(new zn(0,[void 0])))})]}function dw(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Qo(new Jo(2,[t.fields[0].fields[0].fields[0]])),J()]:[new Qo(new Jo(1,[t.fields[0].fields[0].fields[0]])),J()]:[new Qo(new Jo(0,[])),j1(r=>{B1(r)},e,void 0,r=>new Jd(new zn(1,[r])))]}class fw extends Te{constructor(t){super(),this.UserActivities=t}}class Nu extends Te{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function hw(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Nr(vn(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function mw(e){return Di(v(Sa(vn(t=>new Nu(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),ko(t=>new Nu(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function pw(e){return new fw(Nr(vn(mw,e),Je()))}class Mu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class gw extends Te{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class No extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class ww extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class yw extends Te{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class ef extends Te{constructor(t,n){super(),this.Column=t,this.Direction=n}}class vw extends z{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class wi extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class bw extends Te{constructor(t,n,r,o,i){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=o|0,this.PageSize=i|0}}function _w(e){return e.tag===1?tf(e.fields[0].Data):of()}function xw(e){return e.tag===1?Br(e.fields[0].Data):new wi(1,[])}function Cw(e){const t=Ba(of(),e);return new No([af(gd(e),20),t])}function Mo(e){return e.fields[0][1]}function tf(e){return rf(Mo(e))}function Sw(e){return Va(Mo(e))}function Br(e){return e.fields[0][0]}function Ew(e){const t=Br(e);if(t.tag===0){const n=t.fields[0],r=B0(n.FirstRowIndex,Sw(e));return V0(Rw(n),r)}else return Je()}function nf(e,t){const n=Ba(tf(e),t);return new No([Fw(Br(e),gd(Va(n))),n])}function kw(e){return new No([Br(e),$w(Mo(e))])}function Tw(e){return new No([Ow(Br(e)),Mo(e)])}function Aw(e){return new No([Iw(Br(e)),Mo(e)])}function Ba(e,t){return new ww([e,uw(e.Direction,n=>n.Timestamp,t)])}function Va(e){return e.fields[0][1]}function rf(e){return e.fields[0][0]}function $w(e){return Ba(Nw(rf(e)),Va(e))}function of(){return new ef(new vw,new Vs(0,[]))}function Nw(e){return new ef(e.Column,lw(e.Direction))}function sf(e,t){return~~(e/t)+(e%t===0?0:1)}function ji(e,t,n){if(e<=0)return new wi(1,[]);{const r=Vl(n,sf(e,t))|0,o=(r-1)*t|0;return new wi(0,[new bw(r,o,Vl(o+t-1,e-1),e,t)])}}function af(e,t){return ji(e,t,1)}function Mw(e){if(e.tag===0){const t=e.fields[0];return sf(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function lf(e){return e.tag===0?e.fields[0].CurrentPage<Mw(e):!1}function uf(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Iw(e){const t=uf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return ji(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Ow(e){const t=lf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return ji(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Fw(e,t){return t<=0?new wi(1,[]):e.tag===0?ji(t,20,e.fields[0].CurrentPage):af(t,20)}function Dw(e){return e.FirstRowIndex+1}function Pw(e){return e.LastRowIndex+1}function Rw(e){return e.LastRowIndex-e.FirstRowIndex+1}let Nn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class Vr extends Te{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class Ua extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Lw(e){if(e.tag===1)return cf(e.fields[0])}function Hw(e){return e.tag===0}function jw(e){return e.tag===1?new Mu(1,[qw(e.fields[0])]):new Mu(0,[])}function cf(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Bw(e){return cf(e)!=null}function Vw(e,t){return new Nn(1,[new Vr(e.ImportHistory,new Ua(1,[t]),nf(e.PaginatedList,wd(n=>hw(n.User,t),e.ImportHistory.UserActivities)))])}function Uw(e){return new Nn(1,[new Vr(e.ImportHistory,new Ua(0,[]),nf(e.PaginatedList,e.ImportHistory.UserActivities))])}function Ww(e){return new Nn(1,[new Vr(e.ImportHistory,e.View,kw(e.PaginatedList))])}function Gw(e){return new Nn(1,[new Vr(e.ImportHistory,e.View,Tw(e.PaginatedList))])}function zw(e){return new Nn(1,[new Vr(e.ImportHistory,e.View,Aw(e.PaginatedList))])}function qw(e){return new gw(e.PaginatedList,Bw(e))}let Sr=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Yw(e){let t;return[e.tag===1?new Nn(0,[]):(t=e.fields[0],new Nn(1,[new Vr(t,new Ua(0,[]),Cw(t.UserActivities))])),J()]}function df(e,t){return e.tag===1?t(e.fields[0]):[new Nn(0,[]),J()]}function Zw(e,t){return df(e,n=>[t(n),J()])}function Kw(e,t){const n=r=>Zw(t,r);switch(e.tag){case 1:return n(Uw);case 2:return n(Ww);case 3:return n(Gw);case 4:return n(zw);default:{const r=e.fields[0];return df(t,o=>xa(r)?[t,ye(i=>{i(new Sr(1,[]))})]:[Vw(o,r),J()])}}}function Xw(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([(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",E.Children.toArray(Array.from(n))])])))}function Qw(){let e,t,n;return m("div",C(v([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[m("div",C(v([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[m("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),m("div",C(v([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Xw(24,24)],["children",E.Children.toArray(Array.from(n))])]))),m("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",E.Children.toArray(Array.from(t))])])))],["children",E.Children.toArray(Array.from(e))])])))}function Jw(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([["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",E.Children.toArray(Array.from(n))])])))}function Us(e,t){let n,r;return m("svg",C(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([(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",E.Children.toArray(Array.from(n))])])))}class Iu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function ey(e){let t,n;const r=Nr(e.Value,"");return m("div",C(v([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[m("div",C(v([["className",Xt(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=Pe(V(()=>{let o;return we(H(m("div",C(v([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(o=[Jw(20,20)],["children",E.Children.toArray(Array.from(o))])])))),V(()=>{let i;return we(H(m("input",C(v([(i="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",i]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new Iu(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),V(()=>{let s;return xa(r)?H(Ke()):H(m("div",C(v([["onClick",a=>{e.ActionHandler(new Iu(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Us(10,10)],["children",E.Children.toArray(Array.from(s))])]))))}))}))})),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}function ty(e){let t,n;const r=e.height,o=e.width;return m("svg",C(v([["fill","none"],["height",r],["width",o],["viewBox","0 0 "+o+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=ye(m("path",C(v([(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",E.Children.toArray(Array.from(t))])])))}function ny(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return m("div",C(v([["className",Xt(" ",Pe(V(()=>we(H("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),V(()=>r.tag===1?H("rotate-180"):H(""))))))],["onClick",o=>{n(void 0)}],(t=[m(ty,{width:10,height:7})],["children",E.Children.toArray(Array.from(t))])])))}function ry(e){const t=e.toggleSortDirection,n=e.props;return m(ny,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function oy(e){let t,n,r,o;const i=m(ry,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return m("div",C(v([["className","flex-none grid grid-cols-7"],(t=[m("div",C(v([["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=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),i],["children",E.Children.toArray(Array.from(n))])]))),m("div",C(v([["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=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",E.Children.toArray(Array.from(r))])]))),m("div",C(v([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(o=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",E.Children.toArray(Array.from(o))])])))],["children",E.Children.toArray(Array.from(t))])])))}function yi(e){"@babel/helpers - typeof";return yi=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},yi(e)}function Jn(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 ht(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function en(e){ht(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||yi(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 iy(e,t){ht(2,arguments);var n=en(e).getTime(),r=Jn(t);return new Date(n+r)}var sy={};function Bi(){return sy}function ay(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 ly(e){return ht(1,arguments),e instanceof Date||yi(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function uy(e){if(ht(1,arguments),!ly(e)&&typeof e!="number")return!1;var t=en(e);return!isNaN(Number(t))}function cy(e,t){ht(2,arguments);var n=Jn(t);return iy(e,-n)}var dy=864e5;function fy(e){ht(1,arguments);var t=en(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/dy)+1}function vi(e){ht(1,arguments);var t=1,n=en(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function ff(e){ht(1,arguments);var t=en(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=vi(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=vi(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function hy(e){ht(1,arguments);var t=ff(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=vi(n);return r}var my=6048e5;function py(e){ht(1,arguments);var t=en(e),n=vi(t).getTime()-hy(t).getTime();return Math.round(n/my)+1}function bi(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=Bi(),c=Jn((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=en(e),h=p.getUTCDay(),f=(h<c?7:0)+h-c;return p.setUTCDate(p.getUTCDate()-f),p.setUTCHours(0,0,0,0),p}function hf(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=en(e),c=d.getUTCFullYear(),p=Bi(),h=Jn((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o: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 f=new Date(0);f.setUTCFullYear(c+1,0,h),f.setUTCHours(0,0,0,0);var g=bi(f,t),w=new Date(0);w.setUTCFullYear(c,0,h),w.setUTCHours(0,0,0,0);var x=bi(w,t);return d.getTime()>=g.getTime()?c+1:d.getTime()>=x.getTime()?c:c-1}function gy(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=Bi(),c=Jn((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=hf(e,t),h=new Date(0);h.setUTCFullYear(p,0,c),h.setUTCHours(0,0,0,0);var f=bi(h,t);return f}var wy=6048e5;function yy(e,t){ht(1,arguments);var n=en(e),r=bi(n,t).getTime()-gy(n,t).getTime();return Math.round(r/wy)+1}function ke(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Sn={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return ke(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):ke(r+1,2)},d:function(t,n){return ke(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 ke(t.getUTCHours()%12||12,n.length)},H:function(t,n){return ke(t.getUTCHours(),n.length)},m:function(t,n){return ke(t.getUTCMinutes(),n.length)},s:function(t,n){return ke(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return ke(i,n.length)}},hr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vy={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return Sn.y(t,n)},Y:function(t,n,r,o){var i=hf(t,o),s=i>0?i:1-i;if(n==="YY"){var a=s%100;return ke(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):ke(s,n.length)},R:function(t,n){var r=ff(t);return ke(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return ke(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return ke(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return ke(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return Sn.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return ke(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=yy(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):ke(i,n.length)},I:function(t,n,r){var o=py(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):ke(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Sn.d(t,n)},D:function(t,n,r){var o=fy(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):ke(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":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"})}},e:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return ke(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});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"})}},c:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return ke(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return ke(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=hr.noon:o===0?i=hr.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=hr.evening:o>=12?i=hr.afternoon:o>=4?i=hr.morning:i=hr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Sn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Sn.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):ke(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):ke(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Sn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Sn.s(t,n)},S:function(t,n){return Sn.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Fu(s);case"XXXX":case"XX":return Hn(s);case"XXXXX":case"XXX":default:return Hn(s,":")}},x:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return Fu(s);case"xxxx":case"xx":return Hn(s);case"xxxxx":case"xxx":default:return Hn(s,":")}},O:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ou(s,":");case"OOOO":default:return"GMT"+Hn(s,":")}},z:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ou(s,":");case"zzzz":default:return"GMT"+Hn(s,":")}},t:function(t,n,r,o){var i=o._originalDate||t,s=Math.floor(i.getTime()/1e3);return ke(s,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,s=i.getTime();return ke(s,n.length)}};function Ou(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var s=t;return n+String(o)+s+ke(i,2)}function Fu(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ke(Math.abs(e)/60,2)}return Hn(e,t)}function Hn(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=ke(Math.floor(o/60),2),s=ke(o%60,2);return r+i+n+s}var Du=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"})}},mf=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"})}},by=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Du(t,n);var s;switch(o){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}}",Du(o,n)).replace("{{time}}",mf(i,n))},_y={p:mf,P:by},xy=["D","DD"],Cy=["YY","YYYY"];function Sy(e){return xy.indexOf(e)!==-1}function Ey(e){return Cy.indexOf(e)!==-1}function Pu(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 ky={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"}},Ty=function(t,n,r){var o,i=ky[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function hs(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 Ay={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$y={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ny={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},My={date:hs({formats:Ay,defaultWidth:"full"}),time:hs({formats:$y,defaultWidth:"full"}),dateTime:hs({formats:Ny,defaultWidth:"full"})},Iy={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Oy=function(t,n,r,o){return Iy[t]};function Qr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}var Fy={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Dy={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Py={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"]},Ry={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"]},Ly={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"}},Hy={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"}},jy=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},By={ordinalNumber:jy,era:Qr({values:Fy,defaultWidth:"wide"}),quarter:Qr({values:Dy,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Qr({values:Py,defaultWidth:"wide"}),day:Qr({values:Ry,defaultWidth:"wide"}),dayPeriod:Qr({values:Ly,defaultWidth:"wide",formattingValues:Hy,defaultFormattingWidth:"wide"})};function Jr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Uy(a,function(c){return c.test(s)}):Vy(a,function(c){return c.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(s.length);return{value:u,rest:d}}}function Vy(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Uy(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Wy(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 o=r[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(o.length);return{value:s,rest:a}}}var Gy=/^(\d+)(th|st|nd|rd)?/i,zy=/\d+/i,qy={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},Yy={any:[/^b/i,/^(a|c)/i]},Zy={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ky={any:[/1/i,/2/i,/3/i,/4/i]},Xy={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},Qy={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]},Jy={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},ev={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]},tv={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},nv={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}},rv={ordinalNumber:Wy({matchPattern:Gy,parsePattern:zy,valueCallback:function(t){return parseInt(t,10)}}),era:Jr({matchPatterns:qy,defaultMatchWidth:"wide",parsePatterns:Yy,defaultParseWidth:"any"}),quarter:Jr({matchPatterns:Zy,defaultMatchWidth:"wide",parsePatterns:Ky,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Jr({matchPatterns:Xy,defaultMatchWidth:"wide",parsePatterns:Qy,defaultParseWidth:"any"}),day:Jr({matchPatterns:Jy,defaultMatchWidth:"wide",parsePatterns:ev,defaultParseWidth:"any"}),dayPeriod:Jr({matchPatterns:tv,defaultMatchWidth:"any",parsePatterns:nv,defaultParseWidth:"any"})},ov={code:"en-US",formatDistance:Ty,formatLong:My,formatRelative:Oy,localize:By,match:rv,options:{weekStartsOn:0,firstWeekContainsDate:1}},iv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,av=/^'([^]*?)'?$/,lv=/''/g,uv=/[a-zA-Z]/;function pf(e,t,n){var r,o,i,s,a,l,u,d,c,p,h,f,g,w;ht(2,arguments);var x=String(t),_=Bi(),S=(r=(o=void 0)!==null&&o!==void 0?o:_.locale)!==null&&r!==void 0?r:ov,$=Jn((i=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:_.firstWeekContainsDate)!==null&&s!==void 0?s:(u=_.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=Jn((c=(p=(h=(f=void 0)!==null&&f!==void 0?f:void 0)!==null&&h!==void 0?h:_.weekStartsOn)!==null&&p!==void 0?p:(g=_.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(F>=0&&F<=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 P=en(e);if(!uy(P))throw new RangeError("Invalid time value");var D=ay(P),b=cy(P,D),y={firstWeekContainsDate:$,weekStartsOn:F,locale:S,_originalDate:P},k=x.match(sv).map(function(T){var N=T[0];if(N==="p"||N==="P"){var O=_y[N];return O(T,S.formatLong)}return T}).join("").match(iv).map(function(T){if(T==="''")return"'";var N=T[0];if(N==="'")return cv(T);var O=vy[N];if(O)return Ey(T)&&Pu(T,t,String(e)),Sy(T)&&Pu(T,t,String(e)),O(b,T,S.localize,y);if(N.match(uv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return T}).join("");return k}function cv(e){var t=e.match(av);return t?t[1].replace(lv,"'"):e}function dv(e){return pf(e,"d MMM, yyyy")}function fv(e){return pf(e,"h:mm a")}function hv(e){let t,n,r,o,i,s,a;return m("div",C(v([["className","grid grid-cols-7"],(t=[m("div",C(v([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[m("div",C(v([["className"," flex flex-col justify-center items-start"],(r=[m("div",C(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:dv(e.Timestamp)})],["children",E.Children.toArray(Array.from(o))])]))),m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:fv(e.Timestamp)})],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])]))),m("div",C(v([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(i=[m("div",C(v([["className","justify-center items-start flex flex-col"],(s=Pe(V(()=>{let l;return we(H(m("div",C(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",E.Children.toArray(Array.from(l))])])))),V(()=>{const u=e.User.Email;return u==null?H(Ke()):H(m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(i))])]))),m("div",C(v([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",E.Children.toArray(Array.from(a))])])))],["children",E.Children.toArray(Array.from(t))])])))}function mv(e){const t=ko(n=>m(hv,n),e.Data);return m("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:E.Children.toArray(Array.from(t))})}function pv(e){let t,n,r,o,i;const s=e.height,a=e.width;return m("svg",C(v([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=v([m("path",C(v([(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)"]]))),m("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",C(v([(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"]]))),(o=ye(m("linearGradient",C(v([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(i=v([m("stop",{offset:0,stopColor:"#FFD84D"}),m("stop",{offset:1,stopColor:"#FF876F"})]),["children",E.Children.toArray(Array.from(i))])])))),m("defs",{children:E.Children.toArray(Array.from(o))}))]),["children",E.Children.toArray(Array.from(t))])])))}function gv(){let e;return m("div",C(v([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[m(pv,{width:120,height:120})],["children",E.Children.toArray(Array.from(e))])])))}function wv(){let e,t,n,r;return m("div",C(v([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[m(gv,null),m("div",C(v([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[m("div",C(v([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[m("div",C(v([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[m("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),m("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",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))],["children",E.Children.toArray(Array.from(e))])])))}function yv(e){return{Data:Ew(e.Data)}}function vv(e){let t,n;const r=e.props,o=r.tag===1?m(mv,yv(r.fields[0])):m(wv,null);return m("div",C(v([["className","relative h-full grow"],(t=[m("div",C(v([(n="absolute top-0 bottom-0 left-0 right-0 overflow-y-auto self-stretch flex flex-col justify-start items-stretch",["className",n]),["style",{scrollbarWidth:"none"}],["children",E.Children.toArray([o])]])))],["children",E.Children.toArray(Array.from(t))])])))}class Ru extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function bv(e){let t,n;const r=e.pageChangedHandler,o=e.pagingInfo;return m("div",C(v([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[m("div",{className:"self-stretch h-px bg-gray-200"}),m("div",C(v([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=Pe(V(()=>{let i,s,a;return we((i=o,i.tag===1?H(m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=i.fields[0],H((a=v([m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(Dw(s))}),m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(Pw(s))}),m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(s.TotalRecordsNumber)}),m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),m("div",{children:E.Children.toArray(Array.from(a))}))))),V(()=>{let l,u,d;return H(m("div",C(v([["className","justify-start items-start gap-3 flex"],(l=[m("button",C(v([["type","button"],(u="py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",u]),["children","Previous"],["onClick",c=>{r(new Ru(0,[]))}],["disabled",!uf(o)]]))),m("button",C(v([["type","button"],(d="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",d]),["children","Next"],["onClick",c=>{r(new Ru(1,[]))}],["disabled",!lf(o)]])))],["children",E.Children.toArray(Array.from(l))])]))))}))})),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class Ws extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function _v(e,t){e(t.tag===0?new Ws(2,[]):new Ws(1,[]))}function xv(e){let t,n;const r=e.actionHandler,o=e.props;return m("div",C(v([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[m(oy,new yw(_w(o),()=>{r(new Ws(0,[]))})),m(vv,{props:o}),m(bv,{pagingInfo:xw(o),pageChangedHandler:i=>{_v(r,i)}})],["children",E.Children.toArray(Array.from(n))])])))}function Cv(e,t){t.tag===0?e(new Sr(0,[t.fields[0]])):e(new Sr(1,[]))}function Sv(e,t){switch(t.tag){case 2:{e(new Sr(4,[]));break}case 0:{e(new Sr(2,[]));break}default:e(new Sr(3,[]))}}function Lu(e){let t,n;const r=e.importHistory;let o;const i=Yw(r);o=$o(()=>Ao(()=>i,Kw,(d,c)=>{}),void 0,void 0);const s=o[0],a=o[1];let l;const u=Lw(s);return l={ActionHandler:d=>{Cv(a,d)},Disabled:Hw(s),Value:Rs(u)},m("div",C(v([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[m(Qw,null),m("div",C(v([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[m(ey,l),m(xv,{props:jw(s),actionHandler:d=>{Sv(a,d)}})],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class Hu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function Ev(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return m("div",C(v([["className",Xt(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[m("div",{className:Xt(" ",["w-full h-4 relative rounded",r[1]])})],["children",E.Children.toArray(Array.from(n))])])))}function ju(e){const t=ko(n=>Ev(e,n),v(["col-span-1","col-span-2","col-span-4"]));return m("div",{className:"grid grid-cols-7",children:E.Children.toArray(Array.from(t))})}function kv(){let e,t;return m("div",C(v([(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=Di(ye(ju(new Hu(0,[]))),ko(n=>ju(new Hu(1,[])),Pe(Qd(1,1,5)))),["children",E.Children.toArray(Array.from(t))])])))}function Tv(e){const t=_1(e.backendUrl);let n;const r=$o(()=>Ao(cw,(i,s)=>dw(()=>x1(t),i),(i,s)=>{}),void 0,[])[0].View;n=r.tag===2?m(Lu,{importHistory:new A(1,[void 0])}):r.tag===1?m(Lu,{importHistory:new A(0,[pw(r.fields[0])])}):m(kv,null);const o=[m("style",{children:[ba]}),n];return m(Oe,{},...o)}function Av(){ua(e=>m(Tv,e),"apollo-import-workspace-past-history")}function $v(e,t){return V(()=>{const n=new yg([],t);return _p(r=>eg(r,n),e)})}function gf(e,t){return Ed($v(e,t))}class Nv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class Mv extends Te{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}class Iv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class co extends Te{constructor(t,n,r,o,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o,this.EmploymentBasis=i}}new co(void 0,void 0,void 0,void 0,void 0);function Bu(e,t){return new co(e.FirstName,e.LastName,e.Email,e.MobilePhone,vn(n=>n.fields[0],t))}class Ov extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class Fv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class mr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class rn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class Dv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class Pv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Rv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function Lv(e,t){let n;return new Fv(Gt(r=>new Ov(r),N0(r=>r,gf((n=Gt(r=>ze(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!Ca(r))),{Equals:(r,o)=>r===o,GetHashCode:sr}),{Compare:Mi})))}class wf extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class Hv extends Te{constructor(t,n,r,o){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=o|0}}class Uo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}function jv(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([["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",E.Children.toArray(Array.from(n))])])))}function yf(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([(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",E.Children.toArray(Array.from(n))])])))}function Wa(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([(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",E.Children.toArray(Array.from(n))])])))}class fe extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function vf(e){switch(e.tag){case 1:return"Last name";case 2:return"Email";case 3:return"Mobile phone";case 4:return"Employment basis";default:return"First name"}}let Rn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class eo extends Te{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class Bv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class ln extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let gr=class extends Te{constructor(t,n,r,o,i,s,a,l,u,d){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o,this.EmploymentBasis=i,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=u|0,this.Status=d}};function Vv(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 vn(r=>r[0],Aa(r=>fd(td(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(o,i)=>o===i,GetHashCode:sr}),e))}function Uv(e,t){return new Bv(Gt(n=>{const r=n[0];return[r,n[1],fd(r,t,{Equals:pe,GetHashCode:Sm})?new ln(1,[]):new ln(0,[])]},e))}function bf(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 wr(e,t){return an(n=>n,Gt(n=>hd(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,11)))}function Ga(e,t,n,r,o,i,s){let a,l,u;const d=f=>Uv(e,f);let c;c=an(f=>f,[n,r,o,i,s]).length;const h=n!=null?r!=null?o!=null?(a=o,l=n,u=r,new Uo(1,[new Mv(l,u,a,i),vn(f=>new Iv(f),s)])):new Uo(0,[new co(n,r,o,i,s)]):new Uo(0,[new co(n,r,o,i,s)]):new Uo(0,[new co(n,r,o,i,s)]);return new gr(new eo(n,d(an(f=>f,[r,o,i,s]))),new eo(r,d(an(f=>f,[n,o,i,s]))),new eo(o,d(an(f=>f,[n,r,i,s]))),new eo(i,d(an(f=>f,[n,r,o,s]))),new eo(s,d(an(f=>f,[n,r,o,i]))),t,e.length,c,e.length-c,h)}function to(e,t,n,r,o){let i,s,a;const l=[r,o];return a=bf(n,l[0],l[1]),Ga(e,(i=n.Preview,i!=null&&pe(i[0],r)?(s=i[0],[s,wr(o,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function no(e,t,n){let r,o;const i=[n,void 0];return o=bf(t,i[0],i[1]),Ga(e,(r=t.Preview,r!=null&&pe(r[0],n)?(r[0],void 0):t.Preview),o[0],o[1],o[2],o[3],o[4])}function _f(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 Wv=e=>t=>_f(e,t);function Gv(e,t){const n=_f(e,t),r=e.Preview;let o;switch(n?r==null?o=2:pe(r[0],t)?(o=1,r[0]):o=2:o=0,o){case 0:return!1;case 1:return!1;default:return!0}}function zv(e,t){let n,r,o,i,s,a,l,u,d;const c=p=>Vv(e,p);return[(n=t==null?(r=c(new fe(0,[])),o=c(new fe(1,[])),i=c(new fe(2,[])),s=c(new fe(3,[])),a=c(new fe(4,[])),l=an(p=>p,[r,o,i,s,a]),u=p=>{let h,f;switch(p!=null?(h=p,l.filter(g=>pe(g,h)).length>1?f=0:f=1):f=1,f){case 0:return;default:return p}},[u(r),u(o),u(i),u(s),u(a)]):(d=t,[d.FirstName,d.LastName,d.Email,d.MobilePhone,d.EmploymentBasis]),Ga(e,void 0,n[0],n[1],n[2],n[3],n[4])),J()]}function qv(e,t,n,r){let o,i,s,a,l,u,d,c,p,h,f,g,w,x,_,S,$,F,P,D,b;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?f=6:f=15;break}case 2:{r.Email.ColumnIndex!=null?f=7:f=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?f=8:f=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?f=9:f=15;break}default:r.FirstName.ColumnIndex!=null?f=5:f=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(f=11,F=r.LastName.ColumnIndex):f=15;break}case 2:{r.Email.ColumnIndex!=null?(f=12,P=r.Email.ColumnIndex):f=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(f=13,D=r.MobilePhone.ColumnIndex):f=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(f=14,b=r.EmploymentBasis.ColumnIndex):f=15;break}default:r.FirstName.ColumnIndex!=null?(f=10,$=r.FirstName.ColumnIndex):f=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!pe(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(y=>pe(u,y[0])?pe(y[2],new ln(0,[])):!1)?(f=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],w=n.fields[1]):f=15;break}case 2:{d=n.fields[1],!pe(r.Email.ColumnIndex,d)&&r.Email.IncomingFields.fields[0].some(y=>pe(d,y[0])?pe(y[2],new ln(0,[])):!1)?(f=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):f=15;break}case 3:{c=n.fields[1],!pe(r.MobilePhone.ColumnIndex,c)&&r.MobilePhone.IncomingFields.fields[0].some(y=>pe(c,y[0])?pe(y[2],new ln(0,[])):!1)?(f=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],_=n.fields[1]):f=15;break}case 4:{p=n.fields[1],!pe(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(y=>pe(p,y[0])?pe(y[2],new ln(0,[])):!1)?(f=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],S=n.fields[1]):f=15;break}default:h=n.fields[1],!pe(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(y=>pe(h,y[0])?pe(y[2],new ln(0,[])):!1)?(f=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],g=n.fields[1]):f=15}}switch(f){case 0:return[(o=[new fe(0,[]),g],to(e,t,r,o[0],o[1])),J()];case 1:return[(i=[new fe(1,[]),w],to(e,t,r,i[0],i[1])),J()];case 2:return[(s=[new fe(2,[]),x],to(e,t,r,s[0],s[1])),J()];case 3:return[(a=[new fe(3,[]),_],to(e,t,r,a[0],a[1])),J()];case 4:return[(l=[new fe(4,[]),S],to(e,t,r,l[0],l[1])),J()];case 5:return[no(e,r,new fe(0,[])),J()];case 6:return[no(e,r,new fe(1,[])),J()];case 7:return[no(e,r,new fe(2,[])),J()];case 8:return[no(e,r,new fe(3,[])),J()];case 9:return[no(e,r,new fe(4,[])),J()];case 10:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(0,[]),wr($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 11:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(1,[]),wr(F,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 12:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(2,[]),wr(P,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 13:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(3,[]),wr(D,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 14:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(4,[]),wr(b,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];default:return[r,J()]}}const xf=typeof document<"u"?B.useLayoutEffect:()=>{};function Yv(e){const t=K(null);return xf(()=>{t.current=e},[e]),be((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Io=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},qn=e=>e&&"window"in e&&e.window===e?e:Io(e).defaultView||window;function Zv(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 Kv(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 Cf(e){let t=null;return()=>(t==null&&(t=e()),t)}const Xv=Cf(function(){return Kv(/^Mac/i)}),Qv=Cf(function(){return Zv(/Android/i)});function Jv(e){return e.mozInputSource===0&&e.isTrusted?!0:Qv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class eb{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 Sf(e){let t=K({isFocused:!1,observer:null});xf(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Yv(r=>{e==null||e(r)});return be(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new eb("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function tb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=be(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=Sf(i),a=be(l=>{const u=Io(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Oo=null,Gs=new Set,fo=new Map,er=!1,zs=!1;const nb={Tab:!0,Escape:!0};function za(e,t){for(let n of Gs)n(e,t)}function rb(e){return!(e.metaKey||!Xv()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function _i(e){er=!0,rb(e)&&(Oo="keyboard",za("keyboard",e))}function $t(e){Oo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(er=!0,za("pointer",e))}function Ef(e){Jv(e)&&(er=!0,Oo="virtual")}function kf(e){e.target===window||e.target===document||(!er&&!zs&&(Oo="virtual",za("virtual",e)),er=!1,zs=!1)}function Tf(){er=!1,zs=!0}function qs(e){if(typeof window>"u"||fo.get(qn(e)))return;const t=qn(e),n=Io(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){er=!0,r.apply(this,arguments)},n.addEventListener("keydown",_i,!0),n.addEventListener("keyup",_i,!0),n.addEventListener("click",Ef,!0),t.addEventListener("focus",kf,!0),t.addEventListener("blur",Tf,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",$t,!0),n.addEventListener("pointermove",$t,!0),n.addEventListener("pointerup",$t,!0)):(n.addEventListener("mousedown",$t,!0),n.addEventListener("mousemove",$t,!0),n.addEventListener("mouseup",$t,!0)),t.addEventListener("beforeunload",()=>{Af(e)},{once:!0}),fo.set(t,{focus:r})}const Af=(e,t)=>{const n=qn(e),r=Io(e);t&&r.removeEventListener("DOMContentLoaded",t),fo.has(n)&&(n.HTMLElement.prototype.focus=fo.get(n).focus,r.removeEventListener("keydown",_i,!0),r.removeEventListener("keyup",_i,!0),r.removeEventListener("click",Ef,!0),n.removeEventListener("focus",kf,!0),n.removeEventListener("blur",Tf,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",$t,!0),r.removeEventListener("pointermove",$t,!0),r.removeEventListener("pointerup",$t,!0)):(r.removeEventListener("mousedown",$t,!0),r.removeEventListener("mousemove",$t,!0),r.removeEventListener("mouseup",$t,!0)),fo.delete(n))};function ob(e){const t=Io(e);let n;return t.readyState!=="loading"?qs(e):(n=()=>{qs(e)},t.addEventListener("DOMContentLoaded",n)),()=>Af(e,n)}typeof document<"u"&&ob();function $f(){return Oo!=="pointer"}const ib=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sb(e,t,n){var r;const o=typeof window<"u"?qn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?qn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?qn(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?qn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!ib.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!nb[n.key])}function ab(e,t,n){qs(),Se(()=>{let r=(o,i)=>{sb(!!(n!=null&&n.isTextInput),o,i)&&e($f())};return Gs.add(r),()=>{Gs.delete(r)}},t)}function lb(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=K({isFocusWithin:!1}),s=be(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=Sf(s),l=be(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let xi=!1,ms=0;function Ys(){xi=!0,setTimeout(()=>{xi=!1},50)}function Vu(e){e.pointerType==="touch"&&Ys()}function ub(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Vu):document.addEventListener("touchend",Ys),ms++,()=>{ms--,!(ms>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Vu):document.removeEventListener("touchend",Ys))}}function cb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=ae(!1),a=K({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Se(ub,[]);let{hoverProps:l,triggerHoverEnd:u}=te(()=>{let d=(h,f)=>{if(a.pointerType=f,o||f==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let g=h.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:f}),n&&n(!0),s(!0)},c=(h,f)=>{if(a.pointerType="",a.target=null,f==="touch"||!a.isHovered)return;a.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:f}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{xi&&h.pointerType==="mouse"||d(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&c(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!xi&&d(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&c(h,"mouse")}),{hoverProps:p,triggerHoverEnd:c}},[t,n,r,o,a]);return Se(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function db(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=K({isFocused:!1,isFocusVisible:t||$f()}),[i,s]=ae(!1),[a,l]=ae(()=>o.current.isFocused&&o.current.isFocusVisible),u=be(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=be(h=>{o.current.isFocused=h,s(h),u()},[u]);ab(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=tb({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=lb({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:a,focusProps:r?p:c}}var fb=Object.defineProperty,hb=(e,t,n)=>t in e?fb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ps=(e,t,n)=>(hb(e,typeof t!="symbol"?t+"":t,n),n);let mb=class{constructor(){ps(this,"current",this.detect()),ps(this,"handoffState","pending"),ps(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"}},Kn=new mb;function Ur(e){return Kn.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Vi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _n(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},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 Vi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=_n();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 o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function On(){let[e]=ae(_n);return Se(()=>()=>e.dispose(),[e]),e}let Re=(e,t)=>{Kn.isServer?Se(e,t):yn(e,t)};function Fn(e){let t=K(e);return Re(()=>{t.current=e},[e]),t}let ee=function(e){let t=Fn(e);return B.useCallback((...n)=>t.current(...n),[t])};function pb(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 gb(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function wb({disabled:e=!1}={}){let t=K(null),[n,r]=ae(!1),o=On(),i=ee(()=>{t.current=null,r(!1),o.dispose()}),s=ee(a=>{if(o.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=Ur(a.currentTarget);o.addEventListener(l,"pointerup",i,!1),o.addEventListener(l,"pointermove",u=>{if(t.current){let d=pb(u);r(gb(d,t.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:i,onClick:i}}}let yb=Ve(void 0);function qa(){return Ee(yb)}function Zs(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function gt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,gt),r}var Or=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Or||{}),Tn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Tn||{});function et(){let e=bb();return be(t=>vb({mergeRefs:e,...t}),[e])}function vb({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??_b;let l=Nf(t,e);if(i)return Wo(l,n,r,s,a);let u=o??0;if(u&2){let{static:d=!1,...c}=l;if(d)return Wo(c,n,r,s,a)}if(u&1){let{unmount:d=!0,...c}=l;return gt(d?0:1,{0(){return null},1(){return Wo({...c,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Wo(l,n,r,s,a)}function Wo(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=gs(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let p=!1,h=[];for(let[f,g]of Object.entries(t))typeof g=="boolean"&&(p=!0),g===!0&&h.push(f.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(p){c["data-headlessui-state"]=h.join(" ");for(let f of h)c[`data-${f}`]=""}}if(i===Oe&&(Object.keys(En(l)).length>0||Object.keys(En(c)).length>0))if(!Pr(d)||Array.isArray(d)&&d.length>1){if(Object.keys(En(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(En(l)).concat(Object.keys(En(c))).map(p=>` - ${p}`).join(`
32
32
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
33
33
  `)].join(`
34
34
  `))}else{let p=d.props,h=p==null?void 0:p.className,f=typeof h=="function"?(...x)=>Zs(h(...x),l.className):Zs(h,l.className),g=f?{className:f}:{},w=Nf(d.props,En(gs(l,["ref"])));for(let x in c)x in w&&delete c[x];return va(d,Object.assign({},w,c,u,{ref:o(xb(d),u.ref)},g))}return m(i,Object.assign({},gs(l,["ref"]),i!==Oe&&u,i!==Oe&&c),d)}function bb(){let e=K([]),t=be(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 _b(...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 Nf(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function Mf(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let s of i)s==null||s(...o)}});return t}function qe(e){var t;return Object.assign(wa(e),{displayName:(t=e.displayName)!=null?t:e.name})}function En(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function gs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function xb(e){return B.version.split(".")[0]>="19"?e.props.ref:e.ref}function Cb(e,t,n){let[r,o]=ae(n),i=e!==void 0,s=K(i),a=K(!1),l=K(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,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.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,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.")),[i?e:r,ee(u=>(i||o(u),t==null?void 0:t(u)))]}function Sb(e){let[t]=ae(e);return t}function If(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Ff(n,Of(t,r),o);return n}function Of(e,t){return e?e+"["+t+"]":t}function Ff(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Ff(e,Of(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):If(n,t,e)}function Eb(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}let kb="span";var Fr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Fr||{});function Tb(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return et()({ourProps:i,theirProps:o,slot:{},defaultTag:kb,name:"Hidden"})}let wo=qe(Tb),Ab=Ve(null);function $b({children:e}){let t=Ee(Ab);if(!t)return B.createElement(B.Fragment,null,e);let{target:n}=t;return n?Ni(B.createElement(B.Fragment,null,e),n):null}function Nb({data:e,form:t,disabled:n,onReset:r,overrides:o}){let[i,s]=ae(null),a=On();return Se(()=>{if(r&&i)return a.addEventListener(i,"reset",r)},[i,t,r]),B.createElement($b,null,B.createElement(Mb,{setForm:s,formId:t}),If(e).map(([l,u])=>B.createElement(wo,{features:Fr.Hidden,...En({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...o})})))}function Mb({setForm:e,formId:t}){return Se(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:B.createElement(wo,{features:Fr.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Ib=Ve(void 0);function Df(){return Ee(Ib)}function Ob(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&&Fb(n)?!1:r}function Fb(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Pf=Symbol();function Db(e,t=!0){return Object.assign(e,{[Pf]:t})}function it(...e){let t=K(e);Se(()=>{t.current=e},[e]);let n=ee(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Pf]))?void 0:n}let Ui=Ve(null);Ui.displayName="DescriptionContext";function Rf(){let e=Ee(Ui);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,Rf),t}return e}function Pb(){var e,t;return(t=(e=Ee(Ui))==null?void 0:e.value)!=null?t:void 0}function Rb(){let[e,t]=ae([]);return[e.length>0?e.join(" "):void 0,te(()=>function(n){let r=ee(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=te(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return B.createElement(Ui.Provider,{value:o},n.children)},[t])]}let Lb="p";function Hb(e,t){let n=Ft(),r=qa(),{id:o=`headlessui-description-${n}`,...i}=e,s=Rf(),a=it(t);Re(()=>s.register(o),[o,s.register]);let l=r||!1,u=te(()=>({...s.slot,disabled:l}),[s.slot,l]),d={ref:a,...s.props,id:o};return et()({ourProps:d,theirProps:i,slot:u,defaultTag:Lb,name:s.name||"Description"})}let jb=qe(Hb),Bb=Object.assign(jb,{});var Ye=(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))(Ye||{});let Wi=Ve(null);Wi.displayName="LabelContext";function Lf(){let e=Ee(Wi);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,Lf),t}return e}function Hf(e){var t,n,r;let o=(n=(t=Ee(Wi))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function Vb({inherit:e=!1}={}){let t=Hf(),[n,r]=ae([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,te(()=>function(i){let s=ee(l=>(r(u=>[...u,l]),()=>r(u=>{let d=u.slice(),c=d.indexOf(l);return c!==-1&&d.splice(c,1),d}))),a=te(()=>({register:s,slot:i.slot,name:i.name,props:i.props,value:i.value}),[s,i.slot,i.name,i.props,i.value]);return B.createElement(Wi.Provider,{value:a},i.children)},[r])]}let Ub="label";function Wb(e,t){var n;let r=Ft(),o=Lf(),i=Df(),s=qa(),{id:a=`headlessui-label-${r}`,htmlFor:l=i??((n=o.props)==null?void 0:n.htmlFor),passive:u=!1,...d}=e,c=it(t);Re(()=>o.register(a),[a,o.register]);let p=ee(w=>{let x=w.currentTarget;if(x instanceof HTMLLabelElement&&w.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(w),x instanceof HTMLLabelElement){let _=document.getElementById(x.htmlFor);if(_){let S=_.getAttribute("disabled");if(S==="true"||S==="")return;let $=_.getAttribute("aria-disabled");if($==="true"||$==="")return;(_ instanceof HTMLInputElement&&(_.type==="radio"||_.type==="checkbox")||_.role==="radio"||_.role==="checkbox"||_.role==="switch")&&_.click(),_.focus({preventScroll:!0})}}}),h=s||!1,f=te(()=>({...o.slot,disabled:h}),[o.slot,h]),g={ref:c,...o.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),et()({ourProps:g,theirProps:d,slot:f,defaultTag:l?Ub:"div",name:o.name||"Label"})}let Gb=qe(Wb),zb=Object.assign(Gb,{}),qb=Ve(()=>{});function Yb({value:e,children:t}){return B.createElement(qb.Provider,{value:e},t)}function Zb(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 Kb(e=Zb){return be((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 Xb(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Qb(e,t=!1){let[n,r]=ir(()=>({}),{}),o=te(()=>Xb(e),[e,n]);return Re(()=>{if(!e)return;let i=new ResizeObserver(r);return i.observe(e),()=>{i.disconnect()}},[e]),t?{width:`${o.width}px`,height:`${o.height}px`}:o}let Jb=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 jf(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function Bf(e){return $i(e.subscribe,e.getSnapshot,e.getSnapshot)}let e_=new Jb(()=>jf(()=>[],{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 Wr(e,t){let n=e_.get(t),r=Ft(),o=Bf(n);if(Re(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let i=o.indexOf(r),s=o.length;return i===-1&&(i=s,s+=1),i===s-1}let Ks=new Map,ho=new Map;function Uu(e){var t;let n=(t=ho.get(e))!=null?t:0;return ho.set(e,n+1),n!==0?()=>Wu(e):(Ks.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Wu(e))}function Wu(e){var t;let n=(t=ho.get(e))!=null?t:1;if(n===1?ho.delete(e):ho.set(e,n-1),n!==1)return;let r=Ks.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Ks.delete(e))}function Vf(e,{allowed:t,disallowed:n}={}){let r=Wr(e,"inert-others");Re(()=>{var o,i;if(!r)return;let s=_n();for(let l of(o=n==null?void 0:n())!=null?o:[])l&&s.add(Uu(l));let a=(i=t==null?void 0:t())!=null?i:[];for(let l of a){if(!l)continue;let u=Ur(l);if(!u)continue;let d=l.parentElement;for(;d&&d!==u.body;){for(let c of d.children)a.some(p=>c.contains(p))||s.add(Uu(c));d=d.parentElement}}return s.dispose},[r,t,n])}function Uf(e,t,n){let r=Fn(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});Se(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let i=_n();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}return()=>i.dispose()},[t,r,e])}let Ci=["[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(","),t_=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Vt=(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))(Vt||{}),Xs=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Xs||{}),n_=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(n_||{});function Wf(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ci)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function r_(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(t_)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ya=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ya||{});function Gf(e,t=0){var n;return e===((n=Ur(e))==null?void 0:n.body)?!1:gt(t,{0(){return e.matches(Ci)},1(){let r=e;for(;r!==null;){if(r.matches(Ci))return!0;r=r.parentElement}return!1}})}var o_=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(o_||{});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 hn(e){e==null||e.focus({preventScroll:!0})}let i_=["textarea","input"].join(",");function s_(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,i_))!=null?n:!1}function zf(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function a_(e,t){return Er(Wf(),t,{relativeTo:e})}function Er(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?zf(e):e:t&64?r_(e):Wf(e);o.length>0&&s.length>1&&(s=s.filter(h=>!o.some(f=>f!=null&&"current"in f?(f==null?void 0:f.current)===h:f===h))),r=r??i.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}:{},d=0,c=s.length,p;do{if(d>=c||d+c<=0)return 0;let h=l+d;if(t&16)h=(h+c)%c;else{if(h<0)return 3;if(h>=c)return 1}p=s[h],p==null||p.focus(u),d+=a}while(p!==i.activeElement);return t&6&&s_(p)&&p.select(),2}function qf(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function l_(){return/Android/gi.test(window.navigator.userAgent)}function u_(){return qf()||l_()}function ro(e,t,n,r){let o=Fn(n);Se(()=>{if(!e)return;function i(s){o.current(s)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function Yf(e,t,n,r){let o=Fn(n);Se(()=>{if(!e)return;function i(s){o.current(s)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const Gu=30;function Zf(e,t,n){let r=Wr(e,"outside-click"),o=Fn(n),i=be(function(l,u){if(l.defaultPrevented)return;let d=u(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let c=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of c)if(p!==null&&(p.contains(d)||l.composed&&l.composedPath().includes(p)))return;return!Gf(d,Ya.Loose)&&d.tabIndex!==-1&&l.preventDefault(),o.current(l,d)},[o,t]),s=K(null);ro(r,"pointerdown",l=>{var u,d;s.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),ro(r,"mousedown",l=>{var u,d;s.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),ro(r,"click",l=>{u_()||s.current&&(i(l,()=>s.current),s.current=null)},!0);let a=K({x:0,y:0});ro(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),ro(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Gu||Math.abs(u.y-a.current.y)>=Gu))return i(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Yf(r,"blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Gr(...e){return te(()=>Ur(...e),[...e])}function Kf(e,t,n,r){let o=Fn(n);Se(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function c_(e,t){return te(()=>{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 d_(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function f_(){return qf()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=_n();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o: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),d=e.querySelector(u);d&&!r(d)&&(s=d)}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;i!==l&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function h_(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function m_(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Yn=jf(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:_n(),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:m_(n)},o=[f_(),d_(),h_()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Yn.subscribe(()=>{let e=Yn.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",o=n.count!==0;(o&&!r||!o&&r)&&Yn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Yn.dispatch("TEARDOWN",n)}});function p_(e,t,n=()=>({containers:[]})){let r=Bf(Yn),o=t?r.get(t):void 0,i=o?o.count>0:!1;return Re(()=>{if(!(!t||!e))return Yn.dispatch("PUSH",t,n),()=>Yn.dispatch("POP",t,n)},[e,t]),i}function Xf(e,t,n=()=>[document.body]){let r=Wr(e,"scroll-lock");p_(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function zu(e){return[e.screenX,e.screenY]}function g_(){let e=K([-1,-1]);return{wasMoved(t){let n=zu(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=zu(t)}}}function w_(e=0){let[t,n]=ae(e),r=be(l=>n(l),[t]),o=be(l=>n(u=>u|l),[t]),i=be(l=>(t&l)===l,[t]),s=be(l=>n(u=>u&~l),[n]),a=be(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}var y_={},qu,Yu;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((qu=process==null?void 0:y_)==null?void 0:qu.NODE_ENV)==="test"&&typeof((Yu=Element==null?void 0:Element.prototype)==null?void 0:Yu.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(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-import-workspace-app",
3
- "version": "0.1.434",
3
+ "version": "0.1.436",
4
4
  "description": "Apollo Import Workspace App",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",