@flarehr/superhero-salpac-profile-admin 1.0.623 → 1.0.624
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
|
|
1
|
-
var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__publicField=(e,t,r)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,r),__accessCheck=(e,t,r)=>t.has(e)||__typeError("Cannot "+r),__privateGet=(e,t,r)=>(__accessCheck(e,t,"read from private field"),r?r.call(e):t.get(e)),__privateAdd=(e,t,r)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),__privateSet=(e,t,r,n)=>(__accessCheck(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),__privateMethod=(e,t,r)=>(__accessCheck(e,t,"access private method"),r),__privateWrapper=(e,t,r,n)=>({set _(n){__privateSet(e,t,n,r)},get _(){return __privateGet(e,t,n)}});!function(){"use strict";var e,t,r,n,i,a,o,s,l,c,u,d,p,h,f,_,v,m,g,y,w,b,k,x,S,C,A,G,O,P,R,M,E,T,L,W,F,I,D,U,$,N,H,q,z,j,B,Q,K,V,X,Y,Z,J,ee,te,re,ne,ie,ae,oe,se,le,ce,ue,de,pe,he,fe,_e,ve,me,ge,ye,we,be,ke={},xe=[],Se=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ce=Array.isArray;function Ae(e,t){for(var r in t)e[r]=t[r];return e}function Ge(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Oe(e,t,r){var n,i,a,o={};for(a in t)"key"==a?n=t[a]:"ref"==a?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?de.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]);return Pe(e,o,n,i,null)}function Pe(e,t,r,n,i){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++he:i,__i:-1,__u:0};return null==i&&null!=pe.vnode&&pe.vnode(a),a}function Re(){return{current:null}}function Me(e){return e.children}function Ee(e,t){this.props=e,this.context=t}function Te(e,t){if(null==t)return e.__?Te(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?Te(e):null}function Le(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return Le(e)}}function We(e){(!e.__d&&(e.__d=!0)&&fe.push(e)&&!Fe.__r++||_e!==pe.debounceRendering)&&((_e=pe.debounceRendering)||ve)(Fe)}function Fe(){var e,t,r,n,i,a,o,s;for(fe.sort(me);e=fe.shift();)e.__d&&(t=fe.length,n=void 0,a=(i=(r=e).__v).__e,o=[],s=[],r.__P&&((n=Ae({},i)).__v=i.__v+1,pe.vnode&&pe.vnode(n),ze(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[a]:null,o,null==a?Te(i):a,!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,je(o,n,s),n.__e!=a&&Le(n)),fe.length>t&&fe.sort(me));Fe.__r=0}function Ie(e,t,r,n,i,a,o,s,l,c,u){var d,p,h,f,_,v=n&&n.__k||xe,m=t.length;for(r.__d=l,function(e,t,r){var n,i,a,o,s,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],n=0;n<l;n++)null!=(i=t[n])&&"boolean"!=typeof i&&"function"!=typeof i?(o=n+d,(i=e.__k[n]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Pe(null,i,null,null,null):Ce(i)?Pe(Me,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Pe(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,-1!==(s=i.__i=$e(i,r,o,u))&&(u--,(a=r[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==o&&(s==o-1?d--:s==o+1?d++:(s>o?d--:d++,i.__u|=65536))):i=e.__k[n]=null;if(u)for(n=0;n<c;n++)null!=(a=r[n])&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Te(a)),Qe(a,a))}(r,t,v),l=r.__d,d=0;d<m;d++)null!=(h=r.__k[d])&&(p=-1===h.__i?ke:v[h.__i]||ke,h.__i=d,ze(e,h,p,i,a,o,s,l,c,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Be(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==_&&null!=f&&(_=f),65536&h.__u||p.__k===h.__k?l=De(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=_}function De(e,t,r){var n,i;if("function"==typeof e.type){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=De(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Te(e)),r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ue(e,t){return t=t||[],null==e||"boolean"==typeof e||(Ce(e)?e.some((function(e){Ue(e,t)})):t.push(e)),t}function $e(e,t,r,n){var i=e.key,a=e.type,o=r-1,s=r+1,l=t[r];if(null===l||l&&i==l.key&&a===l.type&&!(131072&l.__u))return r;if(n>(null==l||131072&l.__u?0:1))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&i==l.key&&a===l.type)return o;o--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&a===l.type)return s;s++}}return-1}function Ne(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||Se.test(t)?r:r+"px"}function He(e,t,r,n,i){var a;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Ne(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Ne(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=ge,e.addEventListener(t,a?we:ye,a)):e.removeEventListener(t,a?we:ye,a);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(o){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function qe(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=ge++;else if(t.t<r.u)return;return r(pe.event?pe.event(t):t)}}}function ze(e,t,r,n,i,a,o,s,l,c){var u,d,p,h,f,_,v,m,g,y,w,b,k,x,S,C,A=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),a=[s=t.__e=r.__e]),(u=pe.__b)&&u(t);e:if("function"==typeof A)try{if(m=t.props,g="prototype"in A&&A.prototype.render,y=(u=A.contextType)&&n[u.__c],w=u?y?y.props.value:u.__:n,r.__c?v=(d=t.__c=r.__c).__=d.__E:(g?t.__c=d=new A(m,w):(t.__c=d=new Ee(m,w),d.constructor=A,d.render=Ke),y&&y.sub(d),d.props=m,d.state||(d.state={}),d.context=w,d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),g&&null==d.__s&&(d.__s=d.state),g&&null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Ae({},d.__s)),Ae(d.__s,A.getDerivedStateFromProps(m,d.__s))),h=d.props,f=d.state,d.__v=t,p)g&&null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),g&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(g&&null==A.getDerivedStateFromProps&&m!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(m,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(m,d.__s,w)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=m,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(m,d.__s,w),g&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,_)}))}if(d.context=w,d.props=m,d.__P=e,d.__e=!1,k=pe.__r,x=0,g){for(d.state=d.__s,d.__d=!1,k&&k(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,k&&k(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++x<25);d.state=d.__s,null!=d.getChildContext&&(n=Ae(Ae({},n),d.getChildContext())),g&&!p&&null!=d.getSnapshotBeforeUpdate&&(_=d.getSnapshotBeforeUpdate(h,f)),Ie(e,Ce(C=null!=u&&u.type===Me&&null==u.key?u.props.children:u)?C:[C],t,r,n,i,a,o,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),v&&(d.__E=d.__=null)}catch(G){if(t.__v=null,l||null!=a){for(t.__u|=l?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else t.__e=r.__e,t.__k=r.__k;pe.__e(G,t,r)}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,a,o,s,l){var c,u,d,p,h,f,_,v=r.props,m=t.props,g=t.type;if("svg"===g?i="http://www.w3.org/2000/svg":"math"===g?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(c=0;c<a.length;c++)if((h=a[c])&&"setAttribute"in h==!!g&&(g?h.localName===g:3===h.nodeType)){e=h,a[c]=null;break}if(null==e){if(null===g)return document.createTextNode(m);e=document.createElementNS(i,g,m.is&&m),s&&(pe.__m&&pe.__m(t,a),s=!1),a=null}if(null===g)v===m||s&&e.data===m||(e.data=m);else{if(a=a&&de.call(e.childNodes),v=r.props||ke,!s&&null!=a)for(v={},c=0;c<e.attributes.length;c++)v[(h=e.attributes[c]).name]=h.value;for(c in v)if(h=v[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=h;else if(!(c in m)){if("value"==c&&"defaultValue"in m||"checked"==c&&"defaultChecked"in m)continue;He(e,c,null,h,i)}for(c in m)h=m[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?_=h:s&&"function"!=typeof h||v[c]===h||He(e,c,h,v[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Ie(e,Ce(p)?p:[p],t,r,n,"foreignObject"===g?"http://www.w3.org/1999/xhtml":i,a,o,a?a[0]:r.__k&&Te(r,0),s,l),null!=a)for(c=a.length;c--;)Ge(a[c]);s||(c="value","progress"===g&&null==f?e.removeAttribute("value"):void 0!==f&&(f!==e[c]||"progress"===g&&!f||"option"===g&&f!==v[c])&&He(e,c,f,v[c],i),c="checked",void 0!==_&&_!==e[c]&&He(e,c,_,v[c],i))}return e}(r.__e,t,r,n,i,a,o,l,c);(u=pe.diffed)&&u(t)}function je(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)Be(r[n],r[++n],r[++n]);pe.__c&&pe.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(r){pe.__e(r,t.__v)}}))}function Be(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(i){pe.__e(i,r)}}function Qe(e,t,r){var n,i;if(pe.unmount&&pe.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Be(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){pe.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Qe(n[i],t,r||"function"!=typeof e.type);r||Ge(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ke(e,t,r){return this.constructor(e,r)}function Ve(e,t,r){var n,i,a,o;pe.__&&pe.__(e,t),i=(n="function"==typeof r)?null:r&&r.__k||t.__k,a=[],o=[],ze(t,e=(!n&&r||t).__k=Oe(Me,null,[e]),i||ke,ke,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?de.call(t.childNodes):null,a,!n&&r?r:i?i.__e:t.firstChild,n,o),je(a,e,o)}function Xe(e,t){Ve(e,t,Xe)}function Ye(e,t,r){var n,i,a,o,s=Ae({},e.props);for(a in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)"key"==a?n=t[a]:"ref"==a?i=t[a]:s[a]=void 0===t[a]&&void 0!==o?o[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?de.call(arguments,2):r),Pe(e.type,s,n||e.key,i||e.ref,null)}function Ze(e,t){var r={__c:t="__cC"+be++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.forEach((function(e){e.__e=!0,We(e)}))},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}function Je(){return(Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}de=xe.slice,pe={__e:function(e,t,r,n){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(s){e=s}throw e}},he=0,Ee.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ae({},this.state),"function"==typeof e&&(e=e(Ae({},r),this.props)),e&&Ae(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),We(this))},Ee.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),We(this))},Ee.prototype.render=Me,fe=[],ve="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,me=function(e,t){return e.__v.__b-t.__v.__b},Fe.__r=0,ge=0,ye=qe(!1),we=qe(!0),be=0;var et=["context","children"];function tt(e){return this.getChildContext=function(){return e.context},Ye(e.children,function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(i[r]=e[r]);return i}(e,et))}function rt(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Oe(tt,Je({},this._props,{context:e.detail.context}),function e(t,r){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var n=[],i={},a=0,o=t.attributes,s=t.childNodes;for(a=o.length;a--;)"slot"!==o[a].name&&(i[o[a].name]=o[a].value,i[nt(o[a].name)]=o[a].value);for(a=s.length;a--;){var l=e(s[a],null),c=s[a].slot;c?i[c]=Oe(ot,{name:c},l):n[a]=l}var u=r?Oe(ot,null,n):n;return Oe(r||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Xe:Ve)(this._vdom,this._root)}function nt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function it(e,t,r){if(this._vdom){var n={};n[e]=r=null==r?void 0:r,n[nt(e)]=r,this._vdom=Ye(this._vdom,n),Ve(this._vdom,this._root)}}function at(){Ve(this._vdom=null,this._root)}function ot(e,t){var r=this;return Oe("slot",Je({},e,{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}var st,lt,ct,ut,dt=0,pt=[],ht=pe,ft=ht.__b,_t=ht.__r,vt=ht.diffed,mt=ht.__c,gt=ht.unmount,yt=ht.__;function wt(e,t){ht.__h&&ht.__h(lt,e,dt||t),dt=0;var r=lt.__H||(lt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function bt(e){return dt=1,kt(Dt,e)}function kt(e,t,r){var n=wt(st++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Dt(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=lt,!lt.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!a||a.call(this,e,t,r);var o=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&n.__c.props===e)&&(!a||a.call(this,e,t,r))};lt.u=!0;var a=lt.shouldComponentUpdate,o=lt.componentWillUpdate;lt.componentWillUpdate=function(e,t,r){if(this.__e){var n=a;a=void 0,i(e,t,r),a=n}o&&o.call(this,e,t,r)},lt.shouldComponentUpdate=i}return n.__N||n.__}function xt(e,t){var r=wt(st++,3);!ht.__s&&It(r.__H,t)&&(r.__=e,r.i=t,lt.__H.__h.push(r))}function St(e,t){var r=wt(st++,4);!ht.__s&&It(r.__H,t)&&(r.__=e,r.i=t,lt.__h.push(r))}function Ct(e){return dt=5,Gt((function(){return{current:e}}),[])}function At(e,t,r){dt=6,St((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==r?r:r.concat(e))}function Gt(e,t){var r=wt(st++,7);return It(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ot(e,t){return dt=8,Gt((function(){return e}),t)}function Pt(e){var t=lt.context[e.__c],r=wt(st++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(lt)),t.props.value):e.__}function Rt(e,t){ht.useDebugValue&&ht.useDebugValue(t?t(e):e)}function Mt(){var e=wt(st++,11);if(!e.__){for(var t=lt.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function Et(){for(var e;e=pt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wt),e.__H.__h.forEach(Ft),e.__H.__h=[]}catch(t){e.__H.__h=[],ht.__e(t,e.__v)}}ht.__b=function(e){lt=null,ft&&ft(e)},ht.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yt&&yt(e,t)},ht.__r=function(e){_t&&_t(e),st=0;var t=(lt=e.__c).__H;t&&(ct===lt?(t.__h=[],lt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Wt),t.__h.forEach(Ft),t.__h=[],st=0)),ct=lt},ht.diffed=function(e){vt&&vt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pt.push(t)&&ut===ht.requestAnimationFrame||((ut=ht.requestAnimationFrame)||Lt)(Et)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),ct=lt=null},ht.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Wt),e.__h=e.__h.filter((function(e){return!e.__||Ft(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ht.__e(r,e.__v)}})),mt&&mt(e,t)},ht.unmount=function(e){gt&>(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{Wt(e)}catch(r){t=r}})),r.__H=void 0,t&&ht.__e(t,r.__v))};var Tt="function"==typeof requestAnimationFrame;function Lt(e){var t,r=function(){clearTimeout(n),Tt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Tt&&(t=requestAnimationFrame(r))}function Wt(e){var t=lt,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),lt=t}function Ft(e){var t=lt;e.__c=e.__(),lt=t}function It(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function Dt(e,t){return"function"==typeof t?t(e):t}class Ut extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,Ut.prototype)}get response(){return this._response}}const $t=async(e,t,r,n,i)=>{const a=await fetch(e,{method:r,body:n?JSON.stringify(n):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.623",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!a.ok)throw new Ut(`[API Error] Status: ${a.statusText}`,a);return i?{}:await a.json()};let Nt;const Ht="/salary-packaging/admin/v1.0",qt=e=>async()=>{const t=new URL(`${e.backend.url}${Ht}/accounts/${e.account.accountId}/auth`);return $t(t,e.backend.accessToken,"GET")},zt=e=>async t=>{const r=new URL(`${e.backend.url}${Ht}/accounts/${e.account.accountId}/profile-search?search=${t}`);return $t(r,e.backend.accessToken,"GET")},jt=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const r=new Date;r.setUTCDate((new Date).getUTCDate()+2);const n=new URL(`${e.backend.url}${Ht}/ingest/clients`);return $t(n,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]},!0)},Bt=e=>async()=>{const t=new URL(`${e.backend.url}${Ht}/accounts/${e.account.accountId}/profiles`);return $t(t,e.backend.accessToken,"GET")},Qt=()=>{const e=Pt(Nt);return{checkProfileSearchAuthorization:qt(e),searchProfilesForAccount:zt(e),ingestClient:jt(e),linkedProfilesForAccount:Bt(e)}};class Kt extends Error{}function Vt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(r){return atob(t)}}Kt.prototype.name="InvalidTokenError";class Xt{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new Kt("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Kt(`Invalid token specified: missing part #${r+1}`);let i;try{i=Vt(n)}catch(a){throw new Kt(`Invalid token specified: invalid base64 for part #${r+1} (${a.message})`)}try{return JSON.parse(i)}catch(a){throw new Kt(`Invalid token specified: invalid json for part #${r+1} (${a.message})`)}}(e):{roles:[]};return new Xt(t.roles)}}function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yt.apply(null,arguments)}function Zt(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function Jt(e,t){this.props=e,this.context=t}function er(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:Zt(this.props,e)}function n(t){return this.shouldComponentUpdate=r,Oe(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Jt.prototype=new Ee).isPureReactComponent=!0,Jt.prototype.shouldComponentUpdate=function(e,t){return Zt(this.props,e)||Zt(this.state,t)};var tr=pe.__b;pe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),tr&&tr(e)};var rr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function nr(e){function t(t){if(!("ref"in t))return e(t,null);var r=t.ref;delete t.ref;var n=e(t,r);return t.ref=r,n}return t.$$typeof=rr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ir=function(e,t){return null==e?null:Ue(Ue(e).map(t))},ar={map:ir,forEach:ir,count:function(e){return e?Ue(e).length:0},only:function(e){var t=Ue(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ue},or=pe.__e;pe.__e=function(e,t,r,n){if(e.then)for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t);or(e,t,r,n)};var sr=pe.unmount;function lr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var r in t)e[r]=t[r];return e}({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return lr(e,t,r)}))),e}function cr(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return cr(e,t,r)})),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function ur(){this.__u=0,this.t=null,this.__b=null}function dr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function pr(e){var t,r,n;function i(i){if(t||(t=e()).then((function(e){r=e.default||e}),(function(e){n=e})),n)throw n;if(!r)throw t;return Oe(r,i)}return i.displayName="Lazy",i.__f=!0,i}function hr(){this.u=null,this.o=null}pe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),sr&&sr(e)},(ur.prototype=new Ee).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var i=dr(n.__v),a=!1,o=function(){a||(a=!0,r.__R=null,i?i(s):s())};r.__R=o;var s=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=cr(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.t.pop();)t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(o,o)},ur.prototype.componentWillUnmount=function(){this.t=[]},ur.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=lr(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Oe(Me,null,e.fallback);return i&&(i.__u&=-33),[Oe(Me,null,t.__a?null:e.children),i]};var fr=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function _r(e){return this.getChildContext=function(){return e.context},e.children}function vr(e){var t=this,r=e.i;t.componentWillUnmount=function(){Ve(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,r){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Ve(Oe(_r,{context:t.context},e.__v),t.l)}function mr(e,t){var r=Oe(vr,{__v:e,i:t});return r.containerInfo=t,r}(hr.prototype=new Ee).__a=function(e){var t=this,r=dr(t.__v),n=t.o.get(e);return n[0]++,function(i){var a=function(){t.props.revealOrder?(n.push(i),fr(t,e,n)):i()};r?r(a):a()}},hr.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ue(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},hr.prototype.componentDidUpdate=hr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){fr(e,r,t)}))};var gr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,yr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,wr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,br=/[A-Z0-9]/g,kr="undefined"!=typeof document,xr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Sr(e,t,r){return null==t.__k&&(t.textContent=""),Ve(e,t),"function"==typeof r&&r(),e?e.__c:null}function Cr(e,t,r){return Xe(e,t),"function"==typeof r&&r(),e?e.__c:null}Ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Ee.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ar=pe.event;function Gr(){}function Or(){return this.cancelBubble}function Pr(){return this.defaultPrevented}pe.event=function(e){return Ar&&(e=Ar(e)),e.persist=Gr,e.isPropagationStopped=Or,e.isDefaultPrevented=Pr,e.nativeEvent=e};var Rr,Mr={enumerable:!1,configurable:!0,get:function(){return this.class}},Er=pe.vnode;pe.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},i=-1===r.indexOf("-");for(var a in t){var o=t[a];if(!("value"===a&&"defaultValue"in t&&null==o||kr&&"children"===a&&"noscript"===r||"class"===a||"className"===a)){var s=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===o?o="":"translate"===s&&"no"===o?o=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?a="ondblclick":"onchange"!==s||"input"!==r&&"textarea"!==r||xr(t.type)?"onfocus"===s?a="onfocusin":"onblur"===s?a="onfocusout":wr.test(a)&&(a=s):s=a="oninput":i&&yr.test(a)?a=a.replace(br,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===s&&n[a=s]&&(a="oninputCapture"),n[a]=o}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=Ue(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==r&&null!=n.defaultValue&&(n.value=Ue(t.children).forEach((function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",Mr)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=gr,Er&&Er(e)};var Tr=pe.__r;pe.__r=function(e){Tr&&Tr(e),Rr=e.__c};var Lr=pe.diffed;pe.diffed=function(e){Lr&&Lr(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),Rr=null};var Wr={ReactCurrentDispatcher:{current:{readContext:function(e){return Rr.__n[e.__c].props.value},useCallback:Ot,useContext:Pt,useDebugValue:Rt,useDeferredValue:Qr,useEffect:xt,useId:Mt,useImperativeHandle:At,useInsertionEffect:Vr,useLayoutEffect:St,useMemo:Gt,useReducer:kt,useRef:Ct,useState:bt,useSyncExternalStore:Yr,useTransition:Kr}}};function Fr(e){return Oe.bind(null,e)}function Ir(e){return!!e&&e.$$typeof===gr}function Dr(e){return Ir(e)&&e.type===Me}function Ur(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function $r(e){return Ir(e)?Ye.apply(null,arguments):e}function Nr(e){return!!e.__k&&(Ve(null,e),!0)}function Hr(e){return e&&(e.base||1===e.nodeType&&e)||null}var qr=function(e,t){return e(t)},zr=function(e,t){return e(t)},jr=Me;function Br(e){e()}function Qr(e){return e}function Kr(){return[!1,Br]}var Vr=St,Xr=Ir;function Yr(e,t){var r=t(),n=bt({h:{__:r,v:t}}),i=n[0].h,a=n[1];return St((function(){i.__=r,i.v=t,Zr(i)&&a({h:i})}),[e,r,t]),xt((function(){return Zr(i)&&a({h:i}),e((function(){Zr(i)&&a({h:i})}))}),[e]),r}function Zr(e){var t,r,n=e.v,i=e.__;try{var a=n();return!((t=i)===(r=a)&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(o){return!0}}var Jr={useState:bt,useId:Mt,useReducer:kt,useEffect:xt,useLayoutEffect:St,useInsertionEffect:Vr,useTransition:Kr,useDeferredValue:Qr,useSyncExternalStore:Yr,startTransition:Br,useRef:Ct,useImperativeHandle:At,useMemo:Gt,useCallback:Ot,useContext:Pt,useDebugValue:Rt,version:"18.3.1",Children:ar,render:Sr,hydrate:Cr,unmountComponentAtNode:Nr,createPortal:mr,createElement:Oe,createContext:Ze,createFactory:Fr,cloneElement:$r,createRef:Re,Fragment:Me,isValidElement:Ir,isElement:Xr,isFragment:Dr,isMemo:Ur,findDOMNode:Hr,Component:Ee,PureComponent:Jt,memo:er,forwardRef:nr,flushSync:zr,unstable_batchedUpdates:qr,StrictMode:jr,Suspense:ur,SuspenseList:hr,lazy:pr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wr};const en=Object.freeze(Object.defineProperty({__proto__:null,Children:ar,Component:Ee,Fragment:Me,PureComponent:Jt,StrictMode:jr,Suspense:ur,SuspenseList:hr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wr,cloneElement:$r,createContext:Ze,createElement:Oe,createFactory:Fr,createPortal:mr,createRef:Re,default:Jr,findDOMNode:Hr,flushSync:zr,forwardRef:nr,hydrate:Cr,isElement:Xr,isFragment:Dr,isMemo:Ur,isValidElement:Ir,lazy:pr,memo:er,render:Sr,startTransition:Br,unmountComponentAtNode:Nr,unstable_batchedUpdates:qr,useCallback:Ot,useContext:Pt,useDebugValue:Rt,useDeferredValue:Qr,useEffect:xt,useErrorBoundary:function(e){var t=wt(st++,10),r=bt();return t.__=e,lt.componentDidCatch||(lt.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:Mt,useImperativeHandle:At,useInsertionEffect:Vr,useLayoutEffect:St,useMemo:Gt,useReducer:kt,useRef:Ct,useState:bt,useSyncExternalStore:Yr,useTransition:Kr,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));function tn(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var rn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nn=tn((function(e){return rn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var an=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),on="-ms-",sn="-moz-",ln="-webkit-",cn="comm",un="rule",dn="decl",pn="@keyframes",hn=Math.abs,fn=String.fromCharCode,_n=Object.assign;function vn(e){return e.trim()}function mn(e,t,r){return e.replace(t,r)}function gn(e,t){return e.indexOf(t)}function yn(e,t){return 0|e.charCodeAt(t)}function wn(e,t,r){return e.slice(t,r)}function bn(e){return e.length}function kn(e){return e.length}function xn(e,t){return t.push(e),e}var Sn=1,Cn=1,An=0,Gn=0,On=0,Pn="";function Rn(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Sn,column:Cn,length:o,return:""}}function Mn(e,t){return _n(Rn("",null,null,"",null,null,0),e,{length:-e.length},t)}function En(){return On=Gn<An?yn(Pn,Gn++):0,Cn++,10===On&&(Cn=1,Sn++),On}function Tn(){return yn(Pn,Gn)}function Ln(){return Gn}function Wn(e,t){return wn(Pn,e,t)}function Fn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function In(e){return Sn=Cn=1,An=bn(Pn=e),Gn=0,[]}function Dn(e){return Pn="",e}function Un(e){return vn(Wn(Gn-1,Hn(91===e?e+2:40===e?e+1:e)))}function $n(e){for(;(On=Tn())&&On<33;)En();return Fn(e)>2||Fn(On)>3?"":" "}function Nn(e,t){for(;--t&&En()&&!(On<48||On>102||On>57&&On<65||On>70&&On<97););return Wn(e,Ln()+(t<6&&32==Tn()&&32==En()))}function Hn(e){for(;En();)switch(On){case e:return Gn;case 34:case 39:34!==e&&39!==e&&Hn(On);break;case 40:41===e&&Hn(e);break;case 92:En()}return Gn}function qn(e,t){for(;En()&&e+On!==57&&(e+On!==84||47!==Tn()););return"/*"+Wn(t,Gn-1)+"*"+fn(47===e?e:En())}function zn(e){for(;!Fn(Tn());)En();return Wn(e,Gn)}function jn(e){return Dn(Bn("",null,null,null,[""],e=In(e),0,[0],e))}function Bn(e,t,r,n,i,a,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,f=0,_=1,v=1,m=1,g=0,y="",w=i,b=a,k=n,x=y;v;)switch(f=g,g=En()){case 40:if(108!=f&&58==yn(x,d-1)){-1!=gn(x+=mn(Un(g),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:x+=Un(g);break;case 9:case 10:case 13:case 32:x+=$n(f);break;case 92:x+=Nn(Ln()-1,7);continue;case 47:switch(Tn()){case 42:case 47:xn(Kn(qn(En(),Ln()),t,r),l);break;default:x+="/"}break;case 123*_:s[c++]=bn(x)*m;case 125*_:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:-1==m&&(x=mn(x,/\f/g,"")),h>0&&bn(x)-d&&xn(h>32?Vn(x+";",n,r,d-1):Vn(mn(x," ","")+";",n,r,d-2),l);break;case 59:x+=";";default:if(xn(k=Qn(x,t,r,c,u,i,s,y,w=[],b=[],d),a),123===g)if(0===u)Bn(x,t,k,k,w,a,d,s,b);else switch(99===p&&110===yn(x,3)?100:p){case 100:case 108:case 109:case 115:Bn(e,k,k,n&&xn(Qn(e,k,k,0,0,i,s,y,i,w=[],d),b),i,b,d,s,n?w:b);break;default:Bn(x,k,k,k,[""],b,0,s,b)}}c=u=h=0,_=m=1,y=x="",d=o;break;case 58:d=1+bn(x),h=f;default:if(_<1)if(123==g)--_;else if(125==g&&0==_++&&125==(On=Gn>0?yn(Pn,--Gn):0,Cn--,10===On&&(Cn=1,Sn--),On))continue;switch(x+=fn(g),g*_){case 38:m=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(bn(x)-1)*m,m=1;break;case 64:45===Tn()&&(x+=Un(En())),p=Tn(),u=d=bn(y=x+=zn(Ln())),g++;break;case 45:45===f&&2==bn(x)&&(_=0)}}return a}function Qn(e,t,r,n,i,a,o,s,l,c,u){for(var d=i-1,p=0===i?a:[""],h=kn(p),f=0,_=0,v=0;f<n;++f)for(var m=0,g=wn(e,d+1,d=hn(_=o[f])),y=e;m<h;++m)(y=vn(_>0?p[m]+" "+g:mn(g,/&\f/g,p[m])))&&(l[v++]=y);return Rn(e,t,r,0===i?un:s,l,c,u)}function Kn(e,t,r){return Rn(e,t,r,cn,fn(On),wn(e,2,-2),0)}function Vn(e,t,r,n){return Rn(e,t,r,dn,wn(e,0,n),wn(e,n+1,-1),n)}function Xn(e,t){for(var r="",n=kn(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Yn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case dn:return e.return=e.return||e.value;case cn:return"";case pn:return e.return=e.value+"{"+Xn(e.children,n)+"}";case un:e.value=e.props.join(",")}return bn(r=Xn(e.children,n))?e.return=e.value+"{"+r+"}":""}var Zn=function(e,t,r){for(var n=0,i=0;n=i,i=Tn(),38===n&&12===i&&(t[r]=1),!Fn(i);)En();return Wn(e,Gn)},Jn=function(e,t){return Dn(function(e,t){var r=-1,n=44;do{switch(Fn(n)){case 0:38===n&&12===Tn()&&(t[r]=1),e[r]+=Zn(Gn-1,t,r);break;case 2:e[r]+=Un(n);break;case 4:if(44===n){e[++r]=58===Tn()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=fn(n)}}while(n=En());return e}(In(e),t))},ei=new WeakMap,ti=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ei.get(r))&&!n){ei.set(e,!0);for(var i=[],a=Jn(t,i),o=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[c]):o[c]+" "+a[s]}}},ri=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ni(e,t){switch(function(e,t){return 45^yn(e,0)?(((t<<2^yn(e,0))<<2^yn(e,1))<<2^yn(e,2))<<2^yn(e,3):0}(e,t)){case 5103:return ln+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ln+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ln+e+sn+e+on+e+e;case 6828:case 4268:return ln+e+on+e+e;case 6165:return ln+e+on+"flex-"+e+e;case 5187:return ln+e+mn(e,/(\w+).+(:[^]+)/,ln+"box-$1$2"+on+"flex-$1$2")+e;case 5443:return ln+e+on+"flex-item-"+mn(e,/flex-|-self/,"")+e;case 4675:return ln+e+on+"flex-line-pack"+mn(e,/align-content|flex-|-self/,"")+e;case 5548:return ln+e+on+mn(e,"shrink","negative")+e;case 5292:return ln+e+on+mn(e,"basis","preferred-size")+e;case 6060:return ln+"box-"+mn(e,"-grow","")+ln+e+on+mn(e,"grow","positive")+e;case 4554:return ln+mn(e,/([^-])(transform)/g,"$1"+ln+"$2")+e;case 6187:return mn(mn(mn(e,/(zoom-|grab)/,ln+"$1"),/(image-set)/,ln+"$1"),e,"")+e;case 5495:case 3959:return mn(e,/(image-set\([^]*)/,ln+"$1$`$1");case 4968:return mn(mn(e,/(.+:)(flex-)?(.*)/,ln+"box-pack:$3"+on+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ln+e+e;case 4095:case 3583:case 4068:case 2532:return mn(e,/(.+)-inline(.+)/,ln+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(bn(e)-1-t>6)switch(yn(e,t+1)){case 109:if(45!==yn(e,t+4))break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+ln+"$2-$3$1"+sn+(108==yn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~gn(e,"stretch")?ni(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==yn(e,t+1))break;case 6444:switch(yn(e,bn(e)-3-(~gn(e,"!important")&&10))){case 107:return mn(e,":",":"+ln)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ln+(45===yn(e,14)?"inline-":"")+"box$3$1"+ln+"$2$3$1"+on+"$2box$3")+e}break;case 5936:switch(yn(e,t+11)){case 114:return ln+e+on+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ln+e+on+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ln+e+on+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ln+e+on+e+e}return e}var ii=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case dn:e.return=ni(e.value,e.length);break;case pn:return Xn([Mn(e,{value:mn(e.value,"@","@"+ln)})],n);case un:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xn([Mn(e,{props:[mn(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Xn([Mn(e,{props:[mn(t,/:(plac\w+)/,":"+ln+"input-$1")]}),Mn(e,{props:[mn(t,/:(plac\w+)/,":-moz-$1")]}),Mn(e,{props:[mn(t,/:(plac\w+)/,on+"input-$1")]})],n)}return""}))}}],ai=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,i,a=e.stylisPlugins||ii,o={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)o[t[r]]=!0;s.push(e)}));var l,c,u,d,p=[Yn,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[ti,ri].concat(a,p),u=kn(c),function(e,t,r,n){for(var i="",a=0;a<u;a++)i+=c[a](e,t,r,n)||"";return i});i=function(e,t,r,n){l=r,Xn(jn(e?e+"{"+t.styles+"}":t.styles),h),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new an({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return f.sheet.hydrate(s),f},oi={exports:{}},si={},li="function"==typeof Symbol&&Symbol.for,ci=li?Symbol.for("react.element"):60103,ui=li?Symbol.for("react.portal"):60106,di=li?Symbol.for("react.fragment"):60107,pi=li?Symbol.for("react.strict_mode"):60108,hi=li?Symbol.for("react.profiler"):60114,fi=li?Symbol.for("react.provider"):60109,_i=li?Symbol.for("react.context"):60110,vi=li?Symbol.for("react.async_mode"):60111,mi=li?Symbol.for("react.concurrent_mode"):60111,gi=li?Symbol.for("react.forward_ref"):60112,yi=li?Symbol.for("react.suspense"):60113,wi=li?Symbol.for("react.suspense_list"):60120,bi=li?Symbol.for("react.memo"):60115,ki=li?Symbol.for("react.lazy"):60116,xi=li?Symbol.for("react.block"):60121,Si=li?Symbol.for("react.fundamental"):60117,Ci=li?Symbol.for("react.responder"):60118,Ai=li?Symbol.for("react.scope"):60119;function Gi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ci:switch(e=e.type){case vi:case mi:case di:case hi:case pi:case yi:return e;default:switch(e=e&&e.$$typeof){case _i:case gi:case ki:case bi:case fi:return e;default:return t}}case ui:return t}}}function Oi(e){return Gi(e)===mi}si.AsyncMode=vi,si.ConcurrentMode=mi,si.ContextConsumer=_i,si.ContextProvider=fi,si.Element=ci,si.ForwardRef=gi,si.Fragment=di,si.Lazy=ki,si.Memo=bi,si.Portal=ui,si.Profiler=hi,si.StrictMode=pi,si.Suspense=yi,si.isAsyncMode=function(e){return Oi(e)||Gi(e)===vi},si.isConcurrentMode=Oi,si.isContextConsumer=function(e){return Gi(e)===_i},si.isContextProvider=function(e){return Gi(e)===fi},si.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ci},si.isForwardRef=function(e){return Gi(e)===gi},si.isFragment=function(e){return Gi(e)===di},si.isLazy=function(e){return Gi(e)===ki},si.isMemo=function(e){return Gi(e)===bi},si.isPortal=function(e){return Gi(e)===ui},si.isProfiler=function(e){return Gi(e)===hi},si.isStrictMode=function(e){return Gi(e)===pi},si.isSuspense=function(e){return Gi(e)===yi},si.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===di||e===mi||e===hi||e===pi||e===yi||e===wi||"object"==typeof e&&null!==e&&(e.$$typeof===ki||e.$$typeof===bi||e.$$typeof===fi||e.$$typeof===_i||e.$$typeof===gi||e.$$typeof===Si||e.$$typeof===Ci||e.$$typeof===Ai||e.$$typeof===xi)},si.typeOf=Gi,oi.exports=si;var Pi=oi.exports,Ri={};Ri[Pi.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ri[Pi.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Mi(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var Ei=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Ti=function(e,t,r){Ei(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var Li={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wi=/[A-Z]|^ms/g,Fi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ii=function(e){return 45===e.charCodeAt(1)},Di=function(e){return null!=e&&"boolean"!=typeof e},Ui=tn((function(e){return Ii(e)?e:e.replace(Wi,"-$&").toLowerCase()})),$i=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Fi,(function(e,t,r){return Hi={name:t,styles:r,next:Hi},t}))}return 1===Li[e]||Ii(e)||"number"!=typeof t||0===t?t:t+"px"};function Ni(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return Hi={name:i.name,styles:i.styles,next:Hi},i.name;var a=r;if(void 0!==a.styles){var o=a.next;if(void 0!==o)for(;void 0!==o;)Hi={name:o.name,styles:o.styles,next:Hi},o=o.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Ni(e,t,r[i])+";";else for(var a in r){var o=r[a];if("object"!=typeof o){var s=o;null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":Di(s)&&(n+=Ui(a)+":"+$i(a,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=Ni(e,t,o);switch(a){case"animation":case"animationName":n+=Ui(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<o.length;c++)Di(o[c])&&(n+=Ui(a)+":"+$i(a,o[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=Hi,l=r(e);return Hi=s,Ni(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Hi,qi=/label:\s*([^\s;{]+)\s*(;|$)/g;function zi(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";Hi=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,i+=Ni(r,t,a)):i+=a[0];for(var o=1;o<e.length;o++){if(i+=Ni(r,t,e[o]),n)i+=a[o]}qi.lastIndex=0;for(var s,l="";null!==(s=qi.exec(i));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Hi}}var ji=!!en.useInsertionEffect&&en.useInsertionEffect,Bi=ji||function(e){return e()},Qi=ji||St,Ki=Ze("undefined"!=typeof HTMLElement?ai({key:"css"}):null),Vi=Ki.Provider,Xi=function(e){return nr((function(t,r){var n=Pt(Ki);return e(t,n,r)}))},Yi=Ze({}),Zi={}.hasOwnProperty,Ji="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ea=function(e,t){var r={};for(var n in t)Zi.call(t,n)&&(r[n]=t[n]);return r[Ji]=e,r},ta=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ei(t,r,n),Bi((function(){return Ti(t,r,n)})),null},ra=Xi((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[Ji],a=[n],o="";"string"==typeof e.className?o=Mi(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var s=zi(a,void 0,Pt(Yi));o+=t.key+"-"+s.name;var l={};for(var c in e)Zi.call(e,c)&&"css"!==c&&c!==Ji&&(l[c]=e[c]);return l.className=o,r&&(l.ref=r),Oe(Me,null,Oe(ta,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Oe(i,l))})),na=Xi((function(e,t){var r=zi([e.styles],void 0,Pt(Yi)),n=Ct();return Qi((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==o&&(a=!0,o.setAttribute("data-emotion",e),i.hydrate([o])),n.current=[i,a],function(){i.flush()}}),[t]),Qi((function(){var e=n.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Ti(t,r.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",r,i,!1)}}),[t,r.name]),null}));function ia(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return zi(t)}var aa=nn,oa=function(e){return"theme"!==e},sa=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?aa:oa},la=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},ca=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ei(t,r,n),Bi((function(){return Ti(t,r,n)})),null},ua=function e(t,r){var n,i,a=t.__emotion_real===t,o=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var s=la(t,r,a),l=s||sa(o),c=!l("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],u[0][h])}var f=Xi((function(e,t,r){var n=c&&e.as||o,a="",u=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=Pt(Yi)}"string"==typeof e.className?a=Mi(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var f=zi(d.concat(u),t.registered,p);a+=t.key+"-"+f.name,void 0!==i&&(a+=" "+i);var _=c&&void 0===s?sa(n):l,v={};for(var m in e)c&&"as"===m||_(m)&&(v[m]=e[m]);return v.className=a,r&&(v.ref=r),Oe(Me,null,Oe(ca,{cache:t,serialized:f,isStringTag:"string"==typeof n}),Oe(n,v))}));return f.displayName=void 0!==n?n:"Styled("+("string"==typeof o?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=d,f.__emotion_forwardProp=s,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,n){return e(t,Yt({},r,n,{shouldForwardProp:la(f,n,!0)})).apply(void 0,d)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){ua[e]=ua(e)}));const da=ua.button({marginLeft:"0.75rem",display:"inline-flex",justifyContent:"center",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"transparent","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(67 56 202 / var(--tw-bg-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px"},":disabled":{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))"}}),pa=ua.div({height:"1.25rem",width:"1.25rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--fl-color-primary-600)",borderLeftColor:"transparent",borderTopColor:"transparent"});var ha=0;function fa(e,t,r,n,i,a){t||(t={});var o,s,l=t;"ref"in t&&(o=t.ref,delete t.ref);var c={type:e,props:l,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ha,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof e&&(o=e.defaultProps))for(s in o)void 0===l[s]&&(l[s]=o[s]);return pe.vnode&&pe.vnode(c),c}var _a=Me;function va(e,t,r){return Zi.call(t,"css")?fa(ra,ea(e,t),r):fa(e,t,r)}function ma(e,t,r){return Zi.call(t,"css")?fa(ra,ea(e,t),r):fa(e,t,r)}const ga=e=>{const[t,r]=bt(!1);((e,t)=>{const r=Ct();xt((()=>{r.current=e}),[e]),xt((()=>{if(t){const e=setInterval(((...e)=>{var t;return null==(t=null==r?void 0:r.current)?void 0:t.call(r,...e)}),t);return()=>clearInterval(e)}}),[t])})((async()=>{await e.onCheck()&&r(!1)}),t?e.checkInterval:void 0),xt((()=>{if(t){const n=setTimeout((()=>{t&&e.onTimeout(),r(!1)}),e.timeout);return()=>clearTimeout(n)}}));return va(da,{onClick:async()=>{r(!0),await e.onClick()||r(!1)},disabled:t,children:t?ma(_a,{children:[va(pa,{}),va("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):va(_a,{children:e.text})})},ya=ua.a({cursor:"pointer",whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isCurrentTab:e})=>e?{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700")),wa=({tabs:e,currentTabId:t,onChange:r})=>{const n=Gt((()=>e.find((e=>e.id==t))),[e,t]);return ma("div",{children:[ma("div",{css:{"@media (min-width: 640px)":{display:"none"}},children:[va("label",{htmlFor:"tabs",css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Select a tab"}),va("select",{id:"tabs",name:"tabs",defaultValue:null==n?void 0:n.id,onChange:e=>r(e.currentTarget.value),css:{display:"block",width:"100%",borderRadius:"0.375rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",fontSize:"1rem",lineHeight:"1.5rem",":focus":{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:e.map((e=>va("option",{value:e.id,children:e.displayName},e.id)))})]}),va("div",{css:{display:"none","@media (min-width: 640px)":{display:"block"}},children:va("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:va("nav",{"aria-label":"Tabs",css:{marginBottom:"-1px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"}},children:e.map((e=>{return va(ya,{onClick:(t=e.id,()=>{r(t)}),"aria-current":e.id==(null==n?void 0:n.id)?"page":void 0,isCurrentTab:e.id==(null==n?void 0:n.id),children:e.displayName},e.id);var t}))})})})]})};function ba({title:e,titleId:t,...r},n){return Oe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?Oe("title",{id:t},e):null,Oe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const ka=nr(ba);function xa({title:e,titleId:t,...r},n){return Oe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?Oe("title",{id:t},e):null,Oe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Sa=nr(xa),Ca=ua.td`
|
1
|
+
var __defProp=Object.defineProperty,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__publicField=(e,t,r)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,r);!function(){"use strict";var e,t,r,n,o,i,a,c,s,l,u,d={},p=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function _(e,t){for(var r in t)e[r]=t[r];return e}function m(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function g(t,r,n){var o,i,a,c={};for(a in r)"key"==a?o=r[a]:"ref"==a?i=r[a]:c[a]=r[a];if(arguments.length>2&&(c.children=arguments.length>3?e.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===c[a]&&(c[a]=t.defaultProps[a]);return v(t,c,o,i,null)}function v(e,n,o,i,a){var c={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(c),c}function w(){return{current:null}}function y(e){return e.children}function b(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?k(e):null}function x(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return x(e)}}function C(e){(!e.__d&&(e.__d=!0)&&n.push(e)&&!S.__r++||o!==t.debounceRendering)&&((o=t.debounceRendering)||i)(S)}function S(){var e,r,o,i,c,s,l,u;for(n.sort(a);e=n.shift();)e.__d&&(r=n.length,i=void 0,s=(c=(o=e).__v).__e,l=[],u=[],o.__P&&((i=_({},c)).__v=c.__v+1,t.vnode&&t.vnode(i),O(o.__P,i,c,o.__n,o.__P.namespaceURI,32&c.__u?[s]:null,l,null==s?k(c):s,!!(32&c.__u),u),i.__v=c.__v,i.__.__k[i.__i]=i,N(l,i,u),i.__e!=s&&x(i)),n.length>r&&n.sort(a));S.__r=0}function T(e,t,r,n,o,i,a,c,s,l,u){var f,_,m,g,w,b=n&&n.__k||p,x=t.length;for(r.__d=s,function(e,t,r){var n,o,i,a,c,s=t.length,l=r.length,u=l,d=0;for(e.__k=[],n=0;n<s;n++)null!=(o=t[n])&&"boolean"!=typeof o&&"function"!=typeof o?(a=n+d,(o=e.__k[n]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?v(null,o,null,null,null):h(o)?v(y,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?v(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,-1!==(c=o.__i=A(o,r,a,u))&&(u--,(i=r[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&d--,"function"!=typeof o.type&&(o.__u|=65536)):c!==a&&(c==a-1?d--:c==a+1?d++:(c>a?d--:d++,o.__u|=65536))):o=e.__k[n]=null;if(u)for(n=0;n<l;n++)null!=(i=r[n])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=k(i)),z(i,i))}(r,t,b),s=r.__d,f=0;f<x;f++)null!=(m=r.__k[f])&&(_=-1===m.__i?d:b[m.__i]||d,m.__i=f,O(e,m,_,o,i,a,c,s,l,u),g=m.__e,m.ref&&_.ref!=m.ref&&(_.ref&&I(_.ref,null,m),u.push(m.ref,m.__c||g,m)),null==w&&null!=g&&(w=g),65536&m.__u||_.__k===m.__k?s=E(m,s,e):"function"==typeof m.type&&void 0!==m.__d?s=m.__d:g&&(s=g.nextSibling),m.__d=void 0,m.__u&=-196609);r.__d=s,r.__e=w}function E(e,t,r){var n,o;if("function"==typeof e.type){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=E(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=k(e)),r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function P(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some((function(e){P(e,t)})):t.push(e)),t}function A(e,t,r,n){var o=e.key,i=e.type,a=r-1,c=r+1,s=t[r];if(null===s||s&&o==s.key&&i===s.type&&!(131072&s.__u))return r;if(n>(null==s||131072&s.__u?0:1))for(;a>=0||c<t.length;){if(a>=0){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&i===s.type)return a;a--}if(c<t.length){if((s=t[c])&&!(131072&s.__u)&&o==s.key&&i===s.type)return c;c++}}return-1}function R(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||f.test(t)?r:r+"px"}function L(e,t,r,n,o){var i;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||R(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||R(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=c,e.addEventListener(t,i?l:s,i)):e.removeEventListener(t,i?l:s,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(a){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function $(e){return function(r){if(this.l){var n=this.l[r.type+e];if(null==r.t)r.t=c++;else if(r.t<n.u)return;return n(t.event?t.event(r):r)}}}function O(r,n,o,i,a,c,s,l,u,p){var f,g,v,w,x,C,S,E,P,A,R,$,O,N,I,z,M=n.type;if(void 0!==n.constructor)return null;128&o.__u&&(u=!!(32&o.__u),c=[l=n.__e=o.__e]),(f=t.__b)&&f(n);e:if("function"==typeof M)try{if(E=n.props,P="prototype"in M&&M.prototype.render,A=(f=M.contextType)&&i[f.__c],R=f?A?A.props.value:f.__:i,o.__c?S=(g=n.__c=o.__c).__=g.__E:(P?n.__c=g=new M(E,R):(n.__c=g=new b(E,R),g.constructor=M,g.render=H),A&&A.sub(g),g.props=E,g.state||(g.state={}),g.context=R,g.__n=i,v=g.__d=!0,g.__h=[],g._sb=[]),P&&null==g.__s&&(g.__s=g.state),P&&null!=M.getDerivedStateFromProps&&(g.__s==g.state&&(g.__s=_({},g.__s)),_(g.__s,M.getDerivedStateFromProps(E,g.__s))),w=g.props,x=g.state,g.__v=n,v)P&&null==M.getDerivedStateFromProps&&null!=g.componentWillMount&&g.componentWillMount(),P&&null!=g.componentDidMount&&g.__h.push(g.componentDidMount);else{if(P&&null==M.getDerivedStateFromProps&&E!==w&&null!=g.componentWillReceiveProps&&g.componentWillReceiveProps(E,R),!g.__e&&(null!=g.shouldComponentUpdate&&!1===g.shouldComponentUpdate(E,g.__s,R)||n.__v===o.__v)){for(n.__v!==o.__v&&(g.props=E,g.state=g.__s,g.__d=!1),n.__e=o.__e,n.__k=o.__k,n.__k.some((function(e){e&&(e.__=n)})),$=0;$<g._sb.length;$++)g.__h.push(g._sb[$]);g._sb=[],g.__h.length&&s.push(g);break e}null!=g.componentWillUpdate&&g.componentWillUpdate(E,g.__s,R),P&&null!=g.componentDidUpdate&&g.__h.push((function(){g.componentDidUpdate(w,x,C)}))}if(g.context=R,g.props=E,g.__P=r,g.__e=!1,O=t.__r,N=0,P){for(g.state=g.__s,g.__d=!1,O&&O(n),f=g.render(g.props,g.state,g.context),I=0;I<g._sb.length;I++)g.__h.push(g._sb[I]);g._sb=[]}else do{g.__d=!1,O&&O(n),f=g.render(g.props,g.state,g.context),g.state=g.__s}while(g.__d&&++N<25);g.state=g.__s,null!=g.getChildContext&&(i=_(_({},i),g.getChildContext())),P&&!v&&null!=g.getSnapshotBeforeUpdate&&(C=g.getSnapshotBeforeUpdate(w,x)),T(r,h(z=null!=f&&f.type===y&&null==f.key?f.props.children:f)?z:[z],n,o,i,a,c,s,l,u,p),g.base=n.__e,n.__u&=-161,g.__h.length&&s.push(g),S&&(g.__E=g.__=null)}catch(W){if(n.__v=null,u||null!=c){for(n.__u|=u?160:128;l&&8===l.nodeType&&l.nextSibling;)l=l.nextSibling;c[c.indexOf(l)]=null,n.__e=l}else n.__e=o.__e,n.__k=o.__k;t.__e(W,n,o)}else null==c&&n.__v===o.__v?(n.__k=o.__k,n.__e=o.__e):n.__e=function(r,n,o,i,a,c,s,l,u){var p,f,_,g,v,w,y,b=o.props,x=n.props,C=n.type;if("svg"===C?a="http://www.w3.org/2000/svg":"math"===C?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=c)for(p=0;p<c.length;p++)if((v=c[p])&&"setAttribute"in v==!!C&&(C?v.localName===C:3===v.nodeType)){r=v,c[p]=null;break}if(null==r){if(null===C)return document.createTextNode(x);r=document.createElementNS(a,C,x.is&&x),l&&(t.__m&&t.__m(n,c),l=!1),c=null}if(null===C)b===x||l&&r.data===x||(r.data=x);else{if(c=c&&e.call(r.childNodes),b=o.props||d,!l&&null!=c)for(b={},p=0;p<r.attributes.length;p++)b[(v=r.attributes[p]).name]=v.value;for(p in b)if(v=b[p],"children"==p);else if("dangerouslySetInnerHTML"==p)_=v;else if(!(p in x)){if("value"==p&&"defaultValue"in x||"checked"==p&&"defaultChecked"in x)continue;L(r,p,null,v,a)}for(p in x)v=x[p],"children"==p?g=v:"dangerouslySetInnerHTML"==p?f=v:"value"==p?w=v:"checked"==p?y=v:l&&"function"!=typeof v||b[p]===v||L(r,p,v,b[p],a);if(f)l||_&&(f.__html===_.__html||f.__html===r.innerHTML)||(r.innerHTML=f.__html),n.__k=[];else if(_&&(r.innerHTML=""),T(r,h(g)?g:[g],n,o,i,"foreignObject"===C?"http://www.w3.org/1999/xhtml":a,c,s,c?c[0]:o.__k&&k(o,0),l,u),null!=c)for(p=c.length;p--;)m(c[p]);l||(p="value","progress"===C&&null==w?r.removeAttribute("value"):void 0!==w&&(w!==r[p]||"progress"===C&&!w||"option"===C&&w!==b[p])&&L(r,p,w,b[p],a),p="checked",void 0!==y&&y!==r[p]&&L(r,p,y,b[p],a))}return r}(o.__e,n,o,i,a,c,s,u,p);(f=t.diffed)&&f(n)}function N(e,r,n){r.__d=void 0;for(var o=0;o<n.length;o++)I(n[o],n[++o],n[++o]);t.__c&&t.__c(r,e),e.some((function(r){try{e=r.__h,r.__h=[],e.some((function(e){e.call(r)}))}catch(n){t.__e(n,r.__v)}}))}function I(e,r,n){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==r||(e.__u=e(r))}else e.current=r}catch(i){t.__e(i,n)}}function z(e,r,n){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||I(o,null,r)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){t.__e(a,r)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&z(o[i],r,n||"function"!=typeof e.type);n||m(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function H(e,t,r){return this.constructor(e,r)}function M(r,n,o){var i,a,c,s;t.__&&t.__(r,n),a=(i="function"==typeof o)?null:o&&o.__k||n.__k,c=[],s=[],O(n,r=(!i&&o||n).__k=g(y,null,[r]),a||d,d,n.namespaceURI,!i&&o?[o]:a?null:n.firstChild?e.call(n.childNodes):null,c,!i&&o?o:a?a.__e:n.firstChild,i,s),N(c,r,s)}function W(e,t){M(e,t,W)}function U(t,r,n){var o,i,a,c,s=_({},t.props);for(a in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),r)"key"==a?o=r[a]:"ref"==a?i=r[a]:s[a]=void 0===r[a]&&void 0!==c?c[a]:r[a];return arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):n),v(t.type,s,o||t.key,i||t.ref,null)}function B(e,t){var r={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.forEach((function(e){e.__e=!0,C(e)}))},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}e=p.slice,t={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},r=0,b.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},r),this.props)),e&&_(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},b.prototype.render=y,n=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,c=0,s=$(!1),l=$(!0),u=0;var F=["context","children"];function j(e){return this.getChildContext=function(){return e.context},U(e.children,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}(e,F))}function V(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=g(j,D({},this._props,{context:e.detail.context}),function e(t,r){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var n=[],o={},i=0,a=t.attributes,c=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[q(a[i].name)]=a[i].value);for(i=c.length;i--;){var s=e(c[i],null),l=c[i].slot;l?o[l]=g(Y,{name:l},s):n[i]=s}var u=r?g(Y,null,n):n;return g(r||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?W:M)(this._vdom,this._root)}function q(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function G(e,t,r){if(this._vdom){var n={};n[e]=r=null==r?void 0:r,n[q(e)]=r,this._vdom=U(this._vdom,n),M(this._vdom,this._root)}}function X(){M(this._vdom=null,this._root)}function Y(e,t){var r=this;return g("slot",D({},e,{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}var Z,K,J,Q,ee=0,te=[],re=t,ne=re.__b,oe=re.__r,ie=re.diffed,ae=re.__c,ce=re.unmount,se=re.__;function le(e,t){re.__h&&re.__h(K,e,ee||t),ee=0;var r=K.__H||(K.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ue(e){return ee=1,de(Ee,e)}function de(e,t,r){var n=le(Z++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ee(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=K,!K.u)){var o=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,r);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&n.__c.props===e)&&(!i||i.call(this,e,t,r))};K.u=!0;var i=K.shouldComponentUpdate,a=K.componentWillUpdate;K.componentWillUpdate=function(e,t,r){if(this.__e){var n=i;i=void 0,o(e,t,r),i=n}a&&a.call(this,e,t,r)},K.shouldComponentUpdate=o}return n.__N||n.__}function pe(e,t){var r=le(Z++,3);!re.__s&&Te(r.__H,t)&&(r.__=e,r.i=t,K.__H.__h.push(r))}function fe(e,t){var r=le(Z++,4);!re.__s&&Te(r.__H,t)&&(r.__=e,r.i=t,K.__h.push(r))}function he(e){return ee=5,me((function(){return{current:e}}),[])}function _e(e,t,r){ee=6,fe((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==r?r:r.concat(e))}function me(e,t){var r=le(Z++,7);return Te(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ge(e,t){return ee=8,me((function(){return e}),t)}function ve(e){var t=K.context[e.__c],r=le(Z++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(K)),t.props.value):e.__}function we(e,t){re.useDebugValue&&re.useDebugValue(t?t(e):e)}function ye(){var e=le(Z++,11);if(!e.__){for(var t=K.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function be(){for(var e;e=te.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ce),e.__H.__h.forEach(Se),e.__H.__h=[]}catch(t){e.__H.__h=[],re.__e(t,e.__v)}}re.__b=function(e){K=null,ne&&ne(e)},re.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),se&&se(e,t)},re.__r=function(e){oe&&oe(e),Z=0;var t=(K=e.__c).__H;t&&(J===K?(t.__h=[],K.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Ce),t.__h.forEach(Se),t.__h=[],Z=0)),J=K},re.diffed=function(e){ie&&ie(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==te.push(t)&&Q===re.requestAnimationFrame||((Q=re.requestAnimationFrame)||xe)(be)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),J=K=null},re.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ce),e.__h=e.__h.filter((function(e){return!e.__||Se(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],re.__e(r,e.__v)}})),ae&&ae(e,t)},re.unmount=function(e){ce&&ce(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{Ce(e)}catch(r){t=r}})),r.__H=void 0,t&&re.__e(t,r.__v))};var ke="function"==typeof requestAnimationFrame;function xe(e){var t,r=function(){clearTimeout(n),ke&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);ke&&(t=requestAnimationFrame(r))}function Ce(e){var t=K,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),K=t}function Se(e){var t=K;e.__c=e.__(),K=t}function Te(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function Ee(e,t){return"function"==typeof t?t(e):t}class Pe extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,Pe.prototype)}get response(){return this._response}}const Ae=(e,t)=>(r,n,o,i)=>(async(e,t,r,n,o)=>{const i=await fetch(e,{method:t,body:n?JSON.stringify(n):void 0,headers:{authorization:`Bearer ${r}`,"content-type":"application/json"},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!i.ok)throw new Pe(`[API] Fetch error: ${i.statusText}. Url: ${t} ${e}`,i);return o?{}:await i.json()})(new URL(`${e}/salary-packaging/admin/v1.0${r}`),n,t,o,i),Re=async(e,t)=>await e(`/accounts/${t}/auth`,"GET");class Le extends Error{}function $e(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(r){return atob(t)}}Le.prototype.name="InvalidTokenError";class Oe{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new Le("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Le(`Invalid token specified: missing part #${r+1}`);let o;try{o=$e(n)}catch(i){throw new Le(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new Le(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}(e):{roles:[]};return new Oe(t.roles)}}function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ne.apply(null,arguments)}function Ie(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function ze(e,t){this.props=e,this.context=t}function He(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:Ie(this.props,e)}function n(t){return this.shouldComponentUpdate=r,g(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ze.prototype=new b).isPureReactComponent=!0,ze.prototype.shouldComponentUpdate=function(e,t){return Ie(this.props,e)||Ie(this.state,t)};var Me=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Me&&Me(e)};var We="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ue(e){function t(t){if(!("ref"in t))return e(t,null);var r=t.ref;delete t.ref;var n=e(t,r);return t.ref=r,n}return t.$$typeof=We,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Be=function(e,t){return null==e?null:P(P(e).map(t))},De={map:Be,forEach:Be,count:function(e){return e?P(e).length:0},only:function(e){var t=P(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:P},Fe=t.__e;t.__e=function(e,t,r,n){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t);Fe(e,t,r,n)};var je=t.unmount;function Ve(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var r in t)e[r]=t[r];return e}({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ve(e,t,r)}))),e}function qe(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return qe(e,t,r)})),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Ge(){this.__u=0,this.t=null,this.__b=null}function Xe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ye(e){var t,r,n;function o(o){if(t||(t=e()).then((function(e){r=e.default||e}),(function(e){n=e})),n)throw n;if(!r)throw t;return g(r,o)}return o.displayName="Lazy",o.__f=!0,o}function Ze(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),je&&je(e)},(Ge.prototype=new b).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var o=Xe(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(c):c())};r.__R=a;var c=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=qe(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.t.pop();)t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Ge.prototype.componentWillUnmount=function(){this.t=[]},Ge.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ve(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&g(y,null,e.fallback);return o&&(o.__u&=-33),[g(y,null,t.__a?null:e.children),o]};var Ke=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function Je(e){return this.getChildContext=function(){return e.context},e.children}function Qe(e){var t=this,r=e.i;t.componentWillUnmount=function(){M(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,r){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),M(g(Je,{context:t.context},e.__v),t.l)}function et(e,t){var r=g(Qe,{__v:e,i:t});return r.containerInfo=t,r}(Ze.prototype=new b).__a=function(e){var t=this,r=Xe(t.__v),n=t.o.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),Ke(t,e,n)):o()};r?r(i):i()}},Ze.prototype.render=function(e){this.u=null,this.o=new Map;var t=P(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){Ke(e,r,t)}))};var tt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,nt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ot=/[A-Z0-9]/g,it="undefined"!=typeof document,at=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ct(e,t,r){return null==t.__k&&(t.textContent=""),M(e,t),"function"==typeof r&&r(),e?e.__c:null}function st(e,t,r){return W(e,t),"function"==typeof r&&r(),e?e.__c:null}b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(b.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var lt=t.event;function ut(){}function dt(){return this.cancelBubble}function pt(){return this.defaultPrevented}t.event=function(e){return lt&&(e=lt(e)),e.persist=ut,e.isPropagationStopped=dt,e.isDefaultPrevented=pt,e.nativeEvent=e};var ft,ht={enumerable:!1,configurable:!0,get:function(){return this.class}},_t=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},o=-1===r.indexOf("-");for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||it&&"children"===i&&"noscript"===r||"class"===i||"className"===i)){var c=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===c&&"no"===a?a=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?i="ondblclick":"onchange"!==c||"input"!==r&&"textarea"!==r||at(t.type)?"onfocus"===c?i="onfocusin":"onblur"===c?i="onfocusout":nt.test(i)&&(i=c):c=i="oninput":o&&rt.test(i)?i=i.replace(ot,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===c&&n[i=c]&&(i="oninputCapture"),n[i]=a}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=P(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==r&&null!=n.defaultValue&&(n.value=P(t.children).forEach((function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",ht)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=tt,_t&&_t(e)};var mt=t.__r;t.__r=function(e){mt&&mt(e),ft=e.__c};var gt=t.diffed;t.diffed=function(e){gt&>(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),ft=null};var vt={ReactCurrentDispatcher:{current:{readContext:function(e){return ft.__n[e.__c].props.value},useCallback:ge,useContext:ve,useDebugValue:we,useDeferredValue:Rt,useEffect:pe,useId:ye,useImperativeHandle:_e,useInsertionEffect:$t,useLayoutEffect:fe,useMemo:me,useReducer:de,useRef:he,useState:ue,useSyncExternalStore:Nt,useTransition:Lt}}};function wt(e){return g.bind(null,e)}function yt(e){return!!e&&e.$$typeof===tt}function bt(e){return yt(e)&&e.type===y}function kt(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function xt(e){return yt(e)?U.apply(null,arguments):e}function Ct(e){return!!e.__k&&(M(null,e),!0)}function St(e){return e&&(e.base||1===e.nodeType&&e)||null}var Tt=function(e,t){return e(t)},Et=function(e,t){return e(t)},Pt=y;function At(e){e()}function Rt(e){return e}function Lt(){return[!1,At]}var $t=fe,Ot=yt;function Nt(e,t){var r=t(),n=ue({h:{__:r,v:t}}),o=n[0].h,i=n[1];return fe((function(){o.__=r,o.v=t,It(o)&&i({h:o})}),[e,r,t]),pe((function(){return It(o)&&i({h:o}),e((function(){It(o)&&i({h:o})}))}),[e]),r}function It(e){var t,r,n=e.v,o=e.__;try{var i=n();return!((t=o)===(r=i)&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(a){return!0}}var zt={useState:ue,useId:ye,useReducer:de,useEffect:pe,useLayoutEffect:fe,useInsertionEffect:$t,useTransition:Lt,useDeferredValue:Rt,useSyncExternalStore:Nt,startTransition:At,useRef:he,useImperativeHandle:_e,useMemo:me,useCallback:ge,useContext:ve,useDebugValue:we,version:"18.3.1",Children:De,render:ct,hydrate:st,unmountComponentAtNode:Ct,createPortal:et,createElement:g,createContext:B,createFactory:wt,cloneElement:xt,createRef:w,Fragment:y,isValidElement:yt,isElement:Ot,isFragment:bt,isMemo:kt,findDOMNode:St,Component:b,PureComponent:ze,memo:He,forwardRef:Ue,flushSync:Et,unstable_batchedUpdates:Tt,StrictMode:Pt,Suspense:Ge,SuspenseList:Ze,lazy:Ye,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:vt};const Ht=Object.freeze(Object.defineProperty({__proto__:null,Children:De,Component:b,Fragment:y,PureComponent:ze,StrictMode:Pt,Suspense:Ge,SuspenseList:Ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:vt,cloneElement:xt,createContext:B,createElement:g,createFactory:wt,createPortal:et,createRef:w,default:zt,findDOMNode:St,flushSync:Et,forwardRef:Ue,hydrate:st,isElement:Ot,isFragment:bt,isMemo:kt,isValidElement:yt,lazy:Ye,memo:He,render:ct,startTransition:At,unmountComponentAtNode:Ct,unstable_batchedUpdates:Tt,useCallback:ge,useContext:ve,useDebugValue:we,useDeferredValue:Rt,useEffect:pe,useErrorBoundary:function(e){var t=le(Z++,10),r=ue();return t.__=e,K.componentDidCatch||(K.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:ye,useImperativeHandle:_e,useInsertionEffect:$t,useLayoutEffect:fe,useMemo:me,useReducer:de,useRef:he,useState:ue,useSyncExternalStore:Nt,useTransition:Lt,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));function Mt(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Wt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ut=Mt((function(e){return Wt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Bt=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Dt="-ms-",Ft="-moz-",jt="-webkit-",Vt="comm",qt="rule",Gt="decl",Xt="@keyframes",Yt=Math.abs,Zt=String.fromCharCode,Kt=Object.assign;function Jt(e){return e.trim()}function Qt(e,t,r){return e.replace(t,r)}function er(e,t){return e.indexOf(t)}function tr(e,t){return 0|e.charCodeAt(t)}function rr(e,t,r){return e.slice(t,r)}function nr(e){return e.length}function or(e){return e.length}function ir(e,t){return t.push(e),e}var ar=1,cr=1,sr=0,lr=0,ur=0,dr="";function pr(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ar,column:cr,length:a,return:""}}function fr(e,t){return Kt(pr("",null,null,"",null,null,0),e,{length:-e.length},t)}function hr(){return ur=lr<sr?tr(dr,lr++):0,cr++,10===ur&&(cr=1,ar++),ur}function _r(){return tr(dr,lr)}function mr(){return lr}function gr(e,t){return rr(dr,e,t)}function vr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wr(e){return ar=cr=1,sr=nr(dr=e),lr=0,[]}function yr(e){return dr="",e}function br(e){return Jt(gr(lr-1,Cr(91===e?e+2:40===e?e+1:e)))}function kr(e){for(;(ur=_r())&&ur<33;)hr();return vr(e)>2||vr(ur)>3?"":" "}function xr(e,t){for(;--t&&hr()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return gr(e,mr()+(t<6&&32==_r()&&32==hr()))}function Cr(e){for(;hr();)switch(ur){case e:return lr;case 34:case 39:34!==e&&39!==e&&Cr(ur);break;case 40:41===e&&Cr(e);break;case 92:hr()}return lr}function Sr(e,t){for(;hr()&&e+ur!==57&&(e+ur!==84||47!==_r()););return"/*"+gr(t,lr-1)+"*"+Zt(47===e?e:hr())}function Tr(e){for(;!vr(_r());)hr();return gr(e,lr)}function Er(e){return yr(Pr("",null,null,null,[""],e=wr(e),0,[0],e))}function Pr(e,t,r,n,o,i,a,c,s){for(var l=0,u=0,d=a,p=0,f=0,h=0,_=1,m=1,g=1,v=0,w="",y=o,b=i,k=n,x=w;m;)switch(h=v,v=hr()){case 40:if(108!=h&&58==tr(x,d-1)){-1!=er(x+=Qt(br(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:x+=br(v);break;case 9:case 10:case 13:case 32:x+=kr(h);break;case 92:x+=xr(mr()-1,7);continue;case 47:switch(_r()){case 42:case 47:ir(Rr(Sr(hr(),mr()),t,r),s);break;default:x+="/"}break;case 123*_:c[l++]=nr(x)*g;case 125*_:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==g&&(x=Qt(x,/\f/g,"")),f>0&&nr(x)-d&&ir(f>32?Lr(x+";",n,r,d-1):Lr(Qt(x," ","")+";",n,r,d-2),s);break;case 59:x+=";";default:if(ir(k=Ar(x,t,r,l,u,o,c,w,y=[],b=[],d),i),123===v)if(0===u)Pr(x,t,k,k,y,i,d,c,b);else switch(99===p&&110===tr(x,3)?100:p){case 100:case 108:case 109:case 115:Pr(e,k,k,n&&ir(Ar(e,k,k,0,0,o,c,w,o,y=[],d),b),o,b,d,c,n?y:b);break;default:Pr(x,k,k,k,[""],b,0,c,b)}}l=u=f=0,_=g=1,w=x="",d=a;break;case 58:d=1+nr(x),f=h;default:if(_<1)if(123==v)--_;else if(125==v&&0==_++&&125==(ur=lr>0?tr(dr,--lr):0,cr--,10===ur&&(cr=1,ar--),ur))continue;switch(x+=Zt(v),v*_){case 38:g=u>0?1:(x+="\f",-1);break;case 44:c[l++]=(nr(x)-1)*g,g=1;break;case 64:45===_r()&&(x+=br(hr())),p=_r(),u=d=nr(w=x+=Tr(mr())),v++;break;case 45:45===h&&2==nr(x)&&(_=0)}}return i}function Ar(e,t,r,n,o,i,a,c,s,l,u){for(var d=o-1,p=0===o?i:[""],f=or(p),h=0,_=0,m=0;h<n;++h)for(var g=0,v=rr(e,d+1,d=Yt(_=a[h])),w=e;g<f;++g)(w=Jt(_>0?p[g]+" "+v:Qt(v,/&\f/g,p[g])))&&(s[m++]=w);return pr(e,t,r,0===o?qt:c,s,l,u)}function Rr(e,t,r){return pr(e,t,r,Vt,Zt(ur),rr(e,2,-2),0)}function Lr(e,t,r,n){return pr(e,t,r,Gt,rr(e,0,n),rr(e,n+1,-1),n)}function $r(e,t){for(var r="",n=or(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Or(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Gt:return e.return=e.return||e.value;case Vt:return"";case Xt:return e.return=e.value+"{"+$r(e.children,n)+"}";case qt:e.value=e.props.join(",")}return nr(r=$r(e.children,n))?e.return=e.value+"{"+r+"}":""}var Nr=function(e,t,r){for(var n=0,o=0;n=o,o=_r(),38===n&&12===o&&(t[r]=1),!vr(o);)hr();return gr(e,lr)},Ir=function(e,t){return yr(function(e,t){var r=-1,n=44;do{switch(vr(n)){case 0:38===n&&12===_r()&&(t[r]=1),e[r]+=Nr(lr-1,t,r);break;case 2:e[r]+=br(n);break;case 4:if(44===n){e[++r]=58===_r()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Zt(n)}}while(n=hr());return e}(wr(e),t))},zr=new WeakMap,Hr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||zr.get(r))&&!n){zr.set(e,!0);for(var o=[],i=Ir(t,o),a=r.props,c=0,s=0;c<i.length;c++)for(var l=0;l<a.length;l++,s++)e.props[s]=o[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},Mr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Wr(e,t){switch(function(e,t){return 45^tr(e,0)?(((t<<2^tr(e,0))<<2^tr(e,1))<<2^tr(e,2))<<2^tr(e,3):0}(e,t)){case 5103:return jt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return jt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return jt+e+Ft+e+Dt+e+e;case 6828:case 4268:return jt+e+Dt+e+e;case 6165:return jt+e+Dt+"flex-"+e+e;case 5187:return jt+e+Qt(e,/(\w+).+(:[^]+)/,jt+"box-$1$2"+Dt+"flex-$1$2")+e;case 5443:return jt+e+Dt+"flex-item-"+Qt(e,/flex-|-self/,"")+e;case 4675:return jt+e+Dt+"flex-line-pack"+Qt(e,/align-content|flex-|-self/,"")+e;case 5548:return jt+e+Dt+Qt(e,"shrink","negative")+e;case 5292:return jt+e+Dt+Qt(e,"basis","preferred-size")+e;case 6060:return jt+"box-"+Qt(e,"-grow","")+jt+e+Dt+Qt(e,"grow","positive")+e;case 4554:return jt+Qt(e,/([^-])(transform)/g,"$1"+jt+"$2")+e;case 6187:return Qt(Qt(Qt(e,/(zoom-|grab)/,jt+"$1"),/(image-set)/,jt+"$1"),e,"")+e;case 5495:case 3959:return Qt(e,/(image-set\([^]*)/,jt+"$1$`$1");case 4968:return Qt(Qt(e,/(.+:)(flex-)?(.*)/,jt+"box-pack:$3"+Dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+jt+e+e;case 4095:case 3583:case 4068:case 2532:return Qt(e,/(.+)-inline(.+)/,jt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nr(e)-1-t>6)switch(tr(e,t+1)){case 109:if(45!==tr(e,t+4))break;case 102:return Qt(e,/(.+:)(.+)-([^]+)/,"$1"+jt+"$2-$3$1"+Ft+(108==tr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~er(e,"stretch")?Wr(Qt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==tr(e,t+1))break;case 6444:switch(tr(e,nr(e)-3-(~er(e,"!important")&&10))){case 107:return Qt(e,":",":"+jt)+e;case 101:return Qt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+jt+(45===tr(e,14)?"inline-":"")+"box$3$1"+jt+"$2$3$1"+Dt+"$2box$3")+e}break;case 5936:switch(tr(e,t+11)){case 114:return jt+e+Dt+Qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return jt+e+Dt+Qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return jt+e+Dt+Qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return jt+e+Dt+e+e}return e}var Ur=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Gt:e.return=Wr(e.value,e.length);break;case Xt:return $r([fr(e,{value:Qt(e.value,"@","@"+jt)})],n);case qt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $r([fr(e,{props:[Qt(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return $r([fr(e,{props:[Qt(t,/:(plac\w+)/,":"+jt+"input-$1")]}),fr(e,{props:[Qt(t,/:(plac\w+)/,":-moz-$1")]}),fr(e,{props:[Qt(t,/:(plac\w+)/,Dt+"input-$1")]})],n)}return""}))}}],Br=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,i=e.stylisPlugins||Ur,a={},c=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;c.push(e)}));var s,l,u,d,p=[Or,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(l=[Hr,Mr].concat(i,p),u=or(l),function(e,t,r,n){for(var o="",i=0;i<u;i++)o+=l[i](e,t,r,n)||"";return o});o=function(e,t,r,n){s=r,$r(Er(e?e+"{"+t.styles+"}":t.styles),f),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Bt({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(c),h},Dr={exports:{}},Fr={},jr="function"==typeof Symbol&&Symbol.for,Vr=jr?Symbol.for("react.element"):60103,qr=jr?Symbol.for("react.portal"):60106,Gr=jr?Symbol.for("react.fragment"):60107,Xr=jr?Symbol.for("react.strict_mode"):60108,Yr=jr?Symbol.for("react.profiler"):60114,Zr=jr?Symbol.for("react.provider"):60109,Kr=jr?Symbol.for("react.context"):60110,Jr=jr?Symbol.for("react.async_mode"):60111,Qr=jr?Symbol.for("react.concurrent_mode"):60111,en=jr?Symbol.for("react.forward_ref"):60112,tn=jr?Symbol.for("react.suspense"):60113,rn=jr?Symbol.for("react.suspense_list"):60120,nn=jr?Symbol.for("react.memo"):60115,on=jr?Symbol.for("react.lazy"):60116,an=jr?Symbol.for("react.block"):60121,cn=jr?Symbol.for("react.fundamental"):60117,sn=jr?Symbol.for("react.responder"):60118,ln=jr?Symbol.for("react.scope"):60119;function un(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Vr:switch(e=e.type){case Jr:case Qr:case Gr:case Yr:case Xr:case tn:return e;default:switch(e=e&&e.$$typeof){case Kr:case en:case on:case nn:case Zr:return e;default:return t}}case qr:return t}}}function dn(e){return un(e)===Qr}Fr.AsyncMode=Jr,Fr.ConcurrentMode=Qr,Fr.ContextConsumer=Kr,Fr.ContextProvider=Zr,Fr.Element=Vr,Fr.ForwardRef=en,Fr.Fragment=Gr,Fr.Lazy=on,Fr.Memo=nn,Fr.Portal=qr,Fr.Profiler=Yr,Fr.StrictMode=Xr,Fr.Suspense=tn,Fr.isAsyncMode=function(e){return dn(e)||un(e)===Jr},Fr.isConcurrentMode=dn,Fr.isContextConsumer=function(e){return un(e)===Kr},Fr.isContextProvider=function(e){return un(e)===Zr},Fr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Vr},Fr.isForwardRef=function(e){return un(e)===en},Fr.isFragment=function(e){return un(e)===Gr},Fr.isLazy=function(e){return un(e)===on},Fr.isMemo=function(e){return un(e)===nn},Fr.isPortal=function(e){return un(e)===qr},Fr.isProfiler=function(e){return un(e)===Yr},Fr.isStrictMode=function(e){return un(e)===Xr},Fr.isSuspense=function(e){return un(e)===tn},Fr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Gr||e===Qr||e===Yr||e===Xr||e===tn||e===rn||"object"==typeof e&&null!==e&&(e.$$typeof===on||e.$$typeof===nn||e.$$typeof===Zr||e.$$typeof===Kr||e.$$typeof===en||e.$$typeof===cn||e.$$typeof===sn||e.$$typeof===ln||e.$$typeof===an)},Fr.typeOf=un,Dr.exports=Fr;var pn=Dr.exports,fn={};fn[pn.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fn[pn.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function hn(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var _n=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},mn=function(e,t,r){_n(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var gn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vn=/[A-Z]|^ms/g,wn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yn=function(e){return 45===e.charCodeAt(1)},bn=function(e){return null!=e&&"boolean"!=typeof e},kn=Mt((function(e){return yn(e)?e:e.replace(vn,"-$&").toLowerCase()})),xn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(wn,(function(e,t,r){return Sn={name:t,styles:r,next:Sn},t}))}return 1===gn[e]||yn(e)||"number"!=typeof t||0===t?t:t+"px"};function Cn(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return Sn={name:o.name,styles:o.styles,next:Sn},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Sn={name:a.name,styles:a.styles,next:Sn},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Cn(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var c=a;null!=t&&void 0!==t[c]?n+=i+"{"+t[c]+"}":bn(c)&&(n+=kn(i)+":"+xn(i,c)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Cn(e,t,a);switch(i){case"animation":case"animationName":n+=kn(i)+":"+s+";";break;default:n+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)bn(a[l])&&(n+=kn(i)+":"+xn(i,a[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var c=Sn,s=r(e);return Sn=c,Cn(e,t,s)}}var l=r;if(null==t)return l;var u=t[l];return void 0!==u?u:l}var Sn,Tn=/label:\s*([^\s;{]+)\s*(;|$)/g;function En(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Sn=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=Cn(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Cn(r,t,e[a]),n)o+=i[a]}Tn.lastIndex=0;for(var c,s="";null!==(c=Tn.exec(o));)s+="-"+c[1];var l=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+s;return{name:l,styles:o,next:Sn}}var Pn=!!Ht.useInsertionEffect&&Ht.useInsertionEffect,An=Pn||function(e){return e()},Rn=Pn||fe,Ln=B("undefined"!=typeof HTMLElement?Br({key:"css"}):null),$n=Ln.Provider,On=function(e){return Ue((function(t,r){var n=ve(Ln);return e(t,n,r)}))},Nn=B({}),In={}.hasOwnProperty,zn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Hn=function(e,t){var r={};for(var n in t)In.call(t,n)&&(r[n]=t[n]);return r[zn]=e,r},Mn=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _n(t,r,n),An((function(){return mn(t,r,n)})),null},Wn=On((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[zn],i=[n],a="";"string"==typeof e.className?a=hn(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var c=En(i,void 0,ve(Nn));a+=t.key+"-"+c.name;var s={};for(var l in e)In.call(e,l)&&"css"!==l&&l!==zn&&(s[l]=e[l]);return s.className=a,r&&(s.ref=r),g(y,null,g(Mn,{cache:t,serialized:c,isStringTag:"string"==typeof o}),g(o,s))})),Un=On((function(e,t){var r=En([e.styles],void 0,ve(Nn)),n=he();return Rn((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),n.current=[o,i],function(){o.flush()}}),[t]),Rn((function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&mn(t,r.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",r,o,!1)}}),[t,r.name]),null}));function Bn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return En(t)}var Dn=Ut,Fn=function(e){return"theme"!==e},jn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Dn:Fn},Vn=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},qn=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _n(t,r,n),An((function(){return mn(t,r,n)})),null},Gn=function e(t,r){var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var c=Vn(t,r,i),s=c||jn(a),l=!s("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=On((function(e,t,r){var n=l&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=ve(Nn)}"string"==typeof e.className?i=hn(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=En(d.concat(u),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var _=l&&void 0===c?jn(n):s,m={};for(var v in e)l&&"as"===v||_(v)&&(m[v]=e[v]);return m.className=i,r&&(m.ref=r),g(y,null,g(qn,{cache:t,serialized:h,isStringTag:"string"==typeof n}),g(n,m))}));return h.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=c,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,n){return e(t,Ne({},r,n,{shouldForwardProp:Vn(h,n,!0)})).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Gn[e]=Gn(e)}));const Xn=Gn.button({marginLeft:"0.75rem",display:"inline-flex",justifyContent:"center",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"transparent","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(67 56 202 / var(--tw-bg-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px"},":disabled":{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))"}}),Yn=Gn.div({height:"1.25rem",width:"1.25rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--fl-color-primary-600)",borderLeftColor:"transparent",borderTopColor:"transparent"});var Zn=0;function Kn(e,r,n,o,i,a){r||(r={});var c,s,l=r;"ref"in r&&(c=r.ref,delete r.ref);var u={type:e,props:l,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Zn,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof e&&(c=e.defaultProps))for(s in c)void 0===l[s]&&(l[s]=c[s]);return t.vnode&&t.vnode(u),u}var Jn=y;function Qn(e,t,r){return In.call(t,"css")?Kn(Wn,Hn(e,t),r):Kn(e,t,r)}function eo(e,t,r){return In.call(t,"css")?Kn(Wn,Hn(e,t),r):Kn(e,t,r)}const to=e=>{const[t,r]=ue(!1);((e,t)=>{const r=he();pe((()=>{r.current=e}),[e]),pe((()=>{if(t){const e=setInterval(((...e)=>{var t;return null==(t=null==r?void 0:r.current)?void 0:t.call(r,...e)}),t);return()=>clearInterval(e)}}),[t])})((async()=>{await e.onCheck()&&r(!1)}),t?e.checkInterval:void 0),pe((()=>{if(t){const n=setTimeout((()=>{t&&e.onTimeout(),r(!1)}),e.timeout);return()=>clearTimeout(n)}}));return Qn(Xn,{onClick:async()=>{r(!0),await e.onClick()||r(!1)},disabled:t,children:t?eo(Jn,{children:[Qn(Yn,{}),Qn("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):Qn(Jn,{children:e.text})})},ro=Gn.a({cursor:"pointer",whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isCurrentTab:e})=>e?{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700")),no=({tabs:e,currentTabId:t,onChange:r})=>{const n=me((()=>e.find((e=>e.id==t))),[e,t]);return eo("div",{children:[eo("div",{css:{"@media (min-width: 640px)":{display:"none"}},children:[Qn("label",{htmlFor:"tabs",css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Select a tab"}),Qn("select",{id:"tabs",name:"tabs",defaultValue:null==n?void 0:n.id,onChange:e=>r(e.currentTarget.value),css:{display:"block",width:"100%",borderRadius:"0.375rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",fontSize:"1rem",lineHeight:"1.5rem",":focus":{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:e.map((e=>Qn("option",{value:e.id,children:e.displayName},e.id)))})]}),Qn("div",{css:{display:"none","@media (min-width: 640px)":{display:"block"}},children:Qn("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:Qn("nav",{"aria-label":"Tabs",css:{marginBottom:"-1px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"}},children:e.map((e=>{return Qn(ro,{onClick:(t=e.id,()=>{r(t)}),"aria-current":e.id==(null==n?void 0:n.id)?"page":void 0,isCurrentTab:e.id==(null==n?void 0:n.id),children:e.displayName},e.id);var t}))})})})]})};let oo;const io=async e=>{if(!(e instanceof Pe))return"Unexpected error occurred";try{return(await e.response.json()).message||`${e.response.status} error occurred`}catch{return`${e.response.status} error occurred`}};function ao({title:e,titleId:t,...r},n){return g("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?g("title",{id:t},e):null,g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const co=Ue(ao);function so({title:e,titleId:t,...r},n){return g("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?g("title",{id:t},e):null,g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const lo=Ue(so),uo=Gn.td`
|
2
2
|
${{whiteSpace:"nowrap",paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:"1rem",paddingRight:"0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
|
3
|
-
`,
|
3
|
+
`,po=Gn.td`
|
4
4
|
${{whiteSpace:"nowrap",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}}
|
5
|
-
`,
|
5
|
+
`,fo=Gn.span({display:"inline-flex",alignItems:"center",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},(e=>e.className)),ho=e=>{const t=new Date(e.value);return eo(uo,{children:[t.toLocaleDateString(),Qn("br",{}),t.toLocaleTimeString()]})},_o=e=>e.url?Qn(po,{children:eo(fo,{as:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(240 253 244 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(21 128 61 / var(--tw-text-opacity))","--tw-ring-color":"rgb(22 163 74 / 0.2)"},children:[Qn("span",{css:{lineHeight:"1.25rem"},children:"Linked"}),Qn(co,{css:{marginTop:"auto",marginBottom:"auto",marginLeft:"0.25rem",height:"0.75rem",width:"0.75rem"}})]})}):Qn(po,{children:Qn(fo,{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(185 28 28 / var(--tw-text-opacity))","--tw-ring-color":"rgb(220 38 38 / 0.2)"},children:"Unlinked"})}),mo=e=>Qn(po,{children:Qn("button",{as:"button",onClick:()=>e.onClick(e.id),css:{display:"inline-flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingLeft:"0.25rem",paddingRight:"0.25rem"},children:e.children})}),go=e=>Qn(uo,{children:Qn("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((e=>Qn("li",{children:e},e)))})}),vo=(e,t,r)=>{var n;switch(null==r?void 0:r.kind){case"status":return Qn(po,{children:Qn(fo,{className:null==(n=r.styleOverrides)?void 0:n[t],children:t})});case"date":return Qn(ho,{value:t});case"link":return Qn(_o,{url:t});case"button":return Qn(mo,{id:e,value:t,onClick:r.onClick,children:r.children});case"list":return Qn(go,{value:t});default:return Qn(uo,{children:t})}};function wo({title:e,titleId:t,...r},n){return g("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?g("title",{id:t},e):null,g("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 0 1 .75.75v10.638l3.96-4.158a.75.75 0 1 1 1.08 1.04l-5.25 5.5a.75.75 0 0 1-1.08 0l-5.25-5.5a.75.75 0 1 1 1.08-1.04l3.96 4.158V3.75A.75.75 0 0 1 10 3Z",clipRule:"evenodd"}))}const yo=Ue(wo);function bo({title:e,titleId:t,...r},n){return g("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?g("title",{id:t},e):null,g("path",{fillRule:"evenodd",d:"M10 17a.75.75 0 0 1-.75-.75V5.612L5.29 9.77a.75.75 0 0 1-1.08-1.04l5.25-5.5a.75.75 0 0 1 1.08 0l5.25 5.5a.75.75 0 1 1-1.08 1.04l-3.96-4.158V16.25A.75.75 0 0 1 10 17Z",clipRule:"evenodd"}))}const ko=Ue(bo),xo=Gn.button({marginRight:"1rem",display:"inline-flex",alignItems:"center",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},(e=>e.className),(({isActive:e})=>e&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(229 231 235 / var(--tw-bg-opacity))"})),Co=Gn.input`
|
6
6
|
${()=>({display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},":disabled":{"--tw-bg-opacity":"1",backgroundColor:"rgb(229 231 235 / var(--tw-bg-opacity))"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}})}
|
7
7
|
|
8
8
|
${({prefix:e})=>e?{paddingLeft:"2.5rem"}:{paddingLeft:"0.75rem"}}
|
9
9
|
|
10
10
|
${({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}
|
11
|
-
`;function Ua({title:e,titleId:t,...r},n){return Oe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?Oe("title",{id:t},e):null,Oe("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const $a=nr(Ua),Na=nr((({label:e,id:t,type:r,icon:n,placeholder:i,setPlaceholderOnFocus:a,value:o,className:s,onChange:l,onBlur:c,onEnter:u,error:d,helperText:p,disabled:h,remove:f},_)=>ma("div",{className:s,children:[e&&va("label",{htmlFor:t,css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),ma("div",{css:{position:"relative",marginTop:"0.5rem"},children:[n&&va("span",{css:{position:"absolute",marginLeft:"0.5rem",marginTop:"0.5rem"},children:n}),ma("div",{css:{marginTop:"0.5rem",display:"flex",alignItems:"center"},children:[va(Da,{type:r,value:o,name:t,id:t,placeholder:i,onChange:e=>{const t=e;t.target instanceof HTMLInputElement&&l(t.target.value.trim())},onBlur:e=>{const t=e;t.target instanceof HTMLInputElement&&c&&c(t.target.value.trim())},onFocus:()=>{i&&a&&!(null==o?void 0:o.trim())&&l(i)},onKeyDown:e=>{"Enter"===e.key&&u&&u()},hasError:!!d,ref:_,disabled:h,prefix:!!n}),f&&ma("button",{type:"button",children:[va($a,{css:{marginLeft:"0.5rem",height:"1.25rem",width:"1.25rem"},onClick:()=>f()})," "]})]})]}),d&&va("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:d}),p&&va("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:p})]}))),Ha="asc",qa="desc",za=e=>{var t,r;const[n,i]=bt(""),[a,o]=bt([]),[s,l]=bt(e.columns[0]),[c,u]=bt(Ha),d=Gt((()=>s?[...e.data].sort(((e,t)=>{const r=s.sort?s.sort(e[s.field],t[s.field]):e[s.field].localeCompare(t[s.field]);return c===qa?-1*r:r})):e.data),[e.data,s,c]),p=Gt((()=>{const t=a.reduce(((e,t)=>e.filter(t.filterFunction)),d);return n&&!e.searchButton?t.filter((e=>e.id.toLowerCase().includes(n.toLowerCase()))):t}),[d,n,a,e.searchButton]),h=Gt((()=>e.columns.filter((e=>e.filters&&e.filters.length>0)).length>0),[e.columns]),f=()=>{e.searchButton&&e.searchButton.onClick(n)},_=(e,t)=>{const r={name:e.name,filterFunction:r=>e.predicate(r[t.field])},n=a.filter((e=>e.name!==r.name));return()=>n.length<a.length?o([...n]):o([...n,r])};return va(_a,{children:ma("div",{css:{paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[ma("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[ma("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[va("h1",{css:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e.title}),e.subtitle&&va("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:e.subtitle}),ma("div",{css:{marginTop:"0.5rem",display:"inline-flex"},children:[va(Na,{css:{marginTop:"auto",marginBottom:"auto",maxWidth:"20rem"},label:null==(t=e.searchButton)?void 0:t.text,icon:va(Sa,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"}}),id:"search",type:"text",error:null==(r=e.searchButton)?void 0:r.error,onChange:e=>i(e),onEnter:f}),e.searchButton&&va("div",{css:{marginLeft:"1rem",marginTop:"0.5rem"},children:va("button",{type:"button",onClick:f,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.searchButton.text})})]})]}),e.addButton&&va("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:va("button",{type:"button",onClick:e.addButton.onClick,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.addButton.text})})]}),va("div",{css:{marginTop:"2rem",display:"flow-root"},children:va("div",{css:{marginLeft:"-1rem",marginRight:"-1rem",marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}},children:va("div",{css:{display:"inline-block",minWidth:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:va("div",{css:{overflow:"hidden","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:ma("table",{css:{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-divide-opacity))"}},children:[h&&va("thead",{children:va("tr",{children:ma("td",{css:{padding:"1rem"},colspan:e.columns.length,children:[va(Ia,{onClick:()=>o([]),isActive:0==a.length,children:"All"}),e.columns.map((e=>{var t;return null==(t=e.filters)?void 0:t.map((t=>va(Ia,{onClick:_(t,e),isActive:!!a.find((e=>e.name===t.name)),children:t.name},t.name)))}))]})})}),va("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:va("tr",{children:e.columns.map((e=>va("th",{scope:"col",css:{paddingTop:"0.875rem",paddingBottom:"0.875rem",paddingLeft:"1rem",paddingRight:"0.75rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:ma("button",{disabled:!e.isSortable,onClick:()=>(e=>{s===e?u(c===Ha?qa:Ha):(l(e),u(Ha))})(e),css:{display:"inline-flex"},children:[va("span",{children:e.name}),ma("span",{css:{marginLeft:"0.5rem"},children:[s===e&&c===Ha&&va(La,{css:{height:"1.25rem",width:"1.25rem"}}),s===e&&c===qa&&va(Fa,{css:{height:"1.25rem",width:"1.25rem"}}),s!==e&&va("svg",{css:{height:"1.25rem",width:"1.25rem"}})]})]})},e.field)))})}),va("tbody",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:p.map(((t,r)=>va("tr",{children:e.columns.map(((e,n)=>va(Me,{children:Ea(t.id,t[e.field],e.type)},`${t[e.field]}-${r}-${n}`)))},`${t[e.columns[0].field]}-${r}`)))})]})})})})})]})})},ja=[{name:"Profile Id",field:"id",isSortable:!0},{name:"Name",field:"name",isSortable:!0},{name:"Email",field:"email",isSortable:!0},{name:"External Id",field:"externalId",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEId",isSortable:!0}];var Ba=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qa="undefined"==typeof window||"Deno"in globalThis;function Ka(){}function Va(e){return"number"==typeof e&&e>=0&&e!==1/0}function Xa(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ya(e,t){return"function"==typeof e?e(t):e}function Za(e,t){return"function"==typeof e?e(t):e}function Ja(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o)if(n){if(t.queryHash!==to(o,t.options))return!1}else if(!no(t.queryKey,o))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(a&&!a(t)))}function eo(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(ro(t.options.mutationKey)!==ro(a))return!1}else if(!no(t.options.mutationKey,a))return!1}return(!n||t.state.status===n)&&!(i&&!i(t))}function to(e,t){return((null==t?void 0:t.queryKeyHashFn)||ro)(e)}function ro(e){return JSON.stringify(e,((e,t)=>so(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function no(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!no(e[r],t[r]))))}function io(e,t){if(e===t)return e;const r=oo(e)&&oo(t);if(r||so(e)&&so(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{};let l=0;for(let c=0;c<o;c++){const i=r?c:a[c];(!r&&n.includes(i)||r)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=io(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===o&&l===i?e:s}return t}function ao(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function oo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function so(e){if(!lo(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!lo(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function lo(e){return"[object Object]"===Object.prototype.toString.call(e)}function co(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?io(e,t):t}function uo(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function po(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var ho=Symbol();function fo(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==ho?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var _o=new(n=class extends Ba{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,r),__privateSet(this,r,(e=>{if(!Qa&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,r))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var n;__privateSet(this,r,e),null==(n=__privateGet(this,t))||n.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,r=new WeakMap,n),vo=new(s=class extends Ba{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,a),__privateAdd(this,o),__privateSet(this,o,(e=>{if(!Qa&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}))}onSubscribe(){__privateGet(this,a)||this.setEventListener(__privateGet(this,o))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,a))||e.call(this),__privateSet(this,a,void 0))}setEventListener(e){var t;__privateSet(this,o,e),null==(t=__privateGet(this,a))||t.call(this),__privateSet(this,a,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,a=new WeakMap,o=new WeakMap,s);function mo(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch((()=>{})),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function go(e){return Math.min(1e3*2**e,3e4)}function yo(e){return"online"!==(e??"online")||vo.isOnline()}var wo=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function bo(e){return e instanceof wo}function ko(e){let t,r=!1,n=0,i=!1;const a=mo(),o=()=>_o.isFocused()&&("always"===e.networkMode||vo.isOnline())&&e.canRun(),s=()=>yo(e.networkMode)&&e.canRun(),l=r=>{var n;i||(i=!0,null==(n=e.onSuccess)||n.call(e,r),null==t||t(),a.resolve(r))},c=r=>{var n;i||(i=!0,null==(n=e.onError)||n.call(e,r),null==t||t(),a.reject(r))},u=()=>new Promise((r=>{var n;t=e=>{(i||o())&&r(e)},null==(n=e.onPause)||n.call(e)})).then((()=>{var r;t=void 0,i||null==(r=e.onContinue)||r.call(e)})),d=()=>{if(i)return;let t;const a=0===n?e.initialPromise:void 0;try{t=a??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var a;if(i)return;const s=e.retry??(Qa?0:3),l=e.retryDelay??go,p="function"==typeof l?l(n,t):l,h=!0===s||"number"==typeof s&&n<s||"function"==typeof s&&s(n,t);var f;!r&&h?(n++,null==(a=e.onFail)||a.call(e,n,t),(f=p,new Promise((e=>{setTimeout(e,f)}))).then((()=>o()?void 0:u())).then((()=>{r?c(t):d()}))):c(t)}))};return{promise:a,cancel:t=>{var r;i||(c(new wo(t)),null==(r=e.abort)||r.call(e))},continue:()=>(null==t||t(),a),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),a)}}var xo=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=e=>setTimeout(e,0);const a=n=>{t?e.push(n):i((()=>{r(n)}))};return{batch:a=>{let o;t++;try{o=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))})()}return o},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}(),So=(c=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Va(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qa?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,c),Co=(g=class extends So{constructor(e){super(),__privateAdd(this,v),__privateAdd(this,u),__privateAdd(this,d),__privateAdd(this,p),__privateAdd(this,h),__privateAdd(this,f),__privateAdd(this,_),__privateSet(this,_,!1),__privateSet(this,f,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,p,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??__privateGet(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,h))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,f),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,p).remove(this)}setData(e,t){const r=co(this.state.data,e,this.options);return __privateMethod(this,v,m).call(this,{data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){__privateMethod(this,v,m).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,r;const n=null==(t=__privateGet(this,h))?void 0:t.promise;return null==(r=__privateGet(this,h))||r.cancel(e),n?n.then(Ka).catch(Ka):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,u))}isActive(){return this.observers.some((e=>!1!==Za(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ho||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Xa(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,h)&&(__privateGet(this,_)?__privateGet(this,h).cancel({revert:!0}):__privateGet(this,h).cancelRetry()),this.scheduleGc()),__privateGet(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,v,m).call(this,{type:"invalidate"})}fetch(e,t){var r,n,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,h))return __privateGet(this,h).continueRetry(),__privateGet(this,h).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const a=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(__privateSet(this,_,!0),a.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=fo(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return o(r),__privateSet(this,_,!1),this.options.persister?this.options.persister(e,r,this):e(r)}};o(s),null==(r=this.options.behavior)||r.onFetch(s,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(n=s.fetchOptions)?void 0:n.meta)||__privateMethod(this,v,m).call(this,{type:"fetch",meta:null==(i=s.fetchOptions)?void 0:i.meta});const l=e=>{var t,r,n,i;bo(e)&&e.silent||__privateMethod(this,v,m).call(this,{type:"error",error:e}),bo(e)||(null==(r=(t=__privateGet(this,p).config).onError)||r.call(t,e,this),null==(i=(n=__privateGet(this,p).config).onSettled)||i.call(n,this.state.data,e,this)),this.scheduleGc()};return __privateSet(this,h,ko({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:a.abort.bind(a),onSuccess:e=>{var t,r,n,i;if(void 0!==e){try{this.setData(e)}catch(a){return void l(a)}null==(r=(t=__privateGet(this,p).config).onSuccess)||r.call(t,e,this),null==(i=(n=__privateGet(this,p).config).onSettled)||i.call(n,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,v,m).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,v,m).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,v,m).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),__privateGet(this,h).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,_=new WeakMap,v=new WeakSet,m=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Ao(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return bo(r)&&r.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),xo.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,p).notify({query:this,type:"updated",action:e})}))},g);function Ao(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yo(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Go=(w=class extends Ba{constructor(e={}){super(),__privateAdd(this,y),this.config=e,__privateSet(this,y,new Map)}build(e,t,r){const n=t.queryKey,i=t.queryHash??to(n,t);let a=this.get(i);return a||(a=new Co({cache:this,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(a)),a}add(e){__privateGet(this,y).has(e.queryHash)||(__privateGet(this,y).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,y).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,y).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){xo.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,y).get(e)}getAll(){return[...__privateGet(this,y).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Ja(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Ja(e,t))):t}notify(e){xo.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){xo.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){xo.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},y=new WeakMap,w),Oo=(A=class extends So{constructor(e){super(),__privateAdd(this,S),__privateAdd(this,b),__privateAdd(this,k),__privateAdd(this,x),this.mutationId=e.mutationId,__privateSet(this,k,e.mutationCache),__privateSet(this,b,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){__privateGet(this,b).includes(e)||(__privateGet(this,b).push(e),this.clearGcTimeout(),__privateGet(this,k).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,b,__privateGet(this,b).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,k).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,k).remove(this))}continue(){var e;return(null==(e=__privateGet(this,x))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,r,n,i,a,o,s,l,c,u,d,p,h,f,_,v,m,g,y,w;__privateSet(this,x,ko({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,S,C).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,S,C).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,S,C).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,k).canRun(this)}));const b="pending"===this.state.status,A=!__privateGet(this,x).canStart();try{if(!b){__privateMethod(this,S,C).call(this,{type:"pending",variables:e,isPaused:A}),await(null==(r=(t=__privateGet(this,k).config).onMutate)?void 0:r.call(t,e,this));const a=await(null==(i=(n=this.options).onMutate)?void 0:i.call(n,e));a!==this.state.context&&__privateMethod(this,S,C).call(this,{type:"pending",context:a,variables:e,isPaused:A})}const h=await __privateGet(this,x).start();return await(null==(o=(a=__privateGet(this,k).config).onSuccess)?void 0:o.call(a,h,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,h,e,this.state.context)),await(null==(u=(c=__privateGet(this,k).config).onSettled)?void 0:u.call(c,h,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,h,null,e,this.state.context)),__privateMethod(this,S,C).call(this,{type:"success",data:h}),h}catch(G){try{throw await(null==(f=(h=__privateGet(this,k).config).onError)?void 0:f.call(h,G,e,this.state.context,this)),await(null==(v=(_=this.options).onError)?void 0:v.call(_,G,e,this.state.context)),await(null==(g=(m=__privateGet(this,k).config).onSettled)?void 0:g.call(m,void 0,G,this.state.variables,this.state.context,this)),await(null==(w=(y=this.options).onSettled)?void 0:w.call(y,void 0,G,e,this.state.context)),G}finally{__privateMethod(this,S,C).call(this,{type:"error",error:G})}}finally{__privateGet(this,k).runNext(this)}}},b=new WeakMap,k=new WeakMap,x=new WeakMap,S=new WeakSet,C=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),xo.batch((()=>{__privateGet(this,b).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,k).notify({mutation:this,type:"updated",action:e})}))},A);var Po=(P=class extends Ba{constructor(e={}){super(),__privateAdd(this,G),__privateAdd(this,O),this.config=e,__privateSet(this,G,new Map),__privateSet(this,O,Date.now())}build(e,t,r){const n=new Oo({mutationCache:this,mutationId:++__privateWrapper(this,O)._,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){const t=Ro(e),r=__privateGet(this,G).get(t)??[];r.push(e),__privateGet(this,G).set(t,r),this.notify({type:"added",mutation:e})}remove(e){var t;const r=Ro(e);if(__privateGet(this,G).has(r)){const n=null==(t=__privateGet(this,G).get(r))?void 0:t.filter((t=>t!==e));n&&(0===n.length?__privateGet(this,G).delete(r):__privateGet(this,G).set(r,n))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const r=null==(t=__privateGet(this,G).get(Ro(e)))?void 0:t.find((e=>"pending"===e.state.status));return!r||r===e}runNext(e){var t;const r=null==(t=__privateGet(this,G).get(Ro(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==r?void 0:r.continue())??Promise.resolve()}clear(){xo.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,G).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>eo(t,e)))}findAll(e={}){return this.getAll().filter((t=>eo(e,t)))}notify(e){xo.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return xo.batch((()=>Promise.all(e.map((e=>e.continue().catch(Ka))))))}},G=new WeakMap,O=new WeakMap,P);function Ro(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function Mo(e){return{onFetch:(t,r)=>{var n,i,a,o,s;const l=t.options,c=null==(a=null==(i=null==(n=t.fetchOptions)?void 0:n.meta)?void 0:i.fetchMore)?void 0:a.direction,u=(null==(o=t.state.data)?void 0:o.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const f=async()=>{let r=!1;const n=fo(t.options,t.fetchOptions),i=async(e,i,a)=>{if(r)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const o={queryKey:t.queryKey,pageParam:i,direction:a?"backward":"forward",meta:t.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",(()=>{r=!0})),t.signal)});const l=await n(o),{maxPages:c}=t.options,u=a?po:uo;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,i,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},r=(e?To:Eo)(l,t);p=await i(t,r,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:Eo(l,p);if(h>0&&null==e)break;p=await i(p,e),h++}while(h<t)}return p};t.options.persister?t.fetchFn=()=>{var e,n;return null==(n=(e=t.options).persister)?void 0:n.call(e,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=f}}}function Eo(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function To(e,{pages:t,pageParams:r}){var n;return t.length>0?null==(n=e.getPreviousPageParam)?void 0:n.call(e,t[0],t,r[0],r):void 0}var Lo=(D=class{constructor(e={}){__privateAdd(this,R),__privateAdd(this,M),__privateAdd(this,E),__privateAdd(this,T),__privateAdd(this,L),__privateAdd(this,W),__privateAdd(this,F),__privateAdd(this,I),__privateSet(this,R,e.queryCache||new Go),__privateSet(this,M,e.mutationCache||new Po),__privateSet(this,E,e.defaultOptions||{}),__privateSet(this,T,new Map),__privateSet(this,L,new Map),__privateSet(this,W,0)}mount(){__privateWrapper(this,W)._++,1===__privateGet(this,W)&&(__privateSet(this,F,_o.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onFocus())}))),__privateSet(this,I,vo.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,W)._--,0===__privateGet(this,W)&&(null==(e=__privateGet(this,F))||e.call(this),__privateSet(this,F,void 0),null==(t=__privateGet(this,I))||t.call(this),__privateSet(this,I,void 0))}isFetching(e){return __privateGet(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,M).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(r.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=__privateGet(this,R).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(Ya(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,R).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,R).get(n.queryHash),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==i?void 0:i.state.data);if(void 0!==a)return __privateGet(this,R).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return xo.batch((()=>__privateGet(this,R).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(r.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,R);xo.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=__privateGet(this,R),n={type:"active",...e};return xo.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=xo.batch((()=>__privateGet(this,R).findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(Ka).catch(Ka)}invalidateQueries(e={},t={}){return xo.batch((()=>{if(__privateGet(this,R).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)}))}refetchQueries(e={},t){const r={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},n=xo.batch((()=>__privateGet(this,R).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Ka)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(Ka)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=__privateGet(this,R).build(this,t);return r.isStaleByTime(Ya(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ka).catch(Ka)}fetchInfiniteQuery(e){return e.behavior=Mo(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ka).catch(Ka)}ensureInfiniteQueryData(e){return e.behavior=Mo(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return vo.isOnline()?__privateGet(this,M).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,R)}getMutationCache(){return __privateGet(this,M)}getDefaultOptions(){return __privateGet(this,E)}setDefaultOptions(e){__privateSet(this,E,e)}setQueryDefaults(e,t){__privateGet(this,T).set(ro(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,T).values()];let r={};return t.forEach((t=>{no(e,t.queryKey)&&(r={...r,...t.defaultOptions})})),r}setMutationDefaults(e,t){__privateGet(this,L).set(ro(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,L).values()];let r={};return t.forEach((t=>{no(e,t.mutationKey)&&(r={...r,...t.defaultOptions})})),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,E).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=to(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===ho&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,E).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,R).clear(),__privateGet(this,M).clear()}},R=new WeakMap,M=new WeakMap,E=new WeakMap,T=new WeakMap,L=new WeakMap,W=new WeakMap,F=new WeakMap,I=new WeakMap,D),Wo=(ue=class extends Ba{constructor(e,t){super(),__privateAdd(this,ee),__privateAdd(this,U),__privateAdd(this,$),__privateAdd(this,N),__privateAdd(this,H),__privateAdd(this,q),__privateAdd(this,z),__privateAdd(this,j),__privateAdd(this,B),__privateAdd(this,Q),__privateAdd(this,K),__privateAdd(this,V),__privateAdd(this,X),__privateAdd(this,Y),__privateAdd(this,Z),__privateAdd(this,J,new Set),this.options=t,__privateSet(this,U,e),__privateSet(this,B,null),__privateSet(this,j,mo()),this.options.experimental_prefetchInRender||__privateGet(this,j).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,$).addObserver(this),Fo(__privateGet(this,$),this.options)?__privateMethod(this,ee,te).call(this):this.updateResult(),__privateMethod(this,ee,ae).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Io(__privateGet(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Io(__privateGet(this,$),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,ee,oe).call(this),__privateMethod(this,ee,se).call(this),__privateGet(this,$).removeObserver(this)}setOptions(e,t){const r=this.options,n=__privateGet(this,$);if(this.options=__privateGet(this,U).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Za(this.options.enabled,__privateGet(this,$)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,ee,le).call(this),__privateGet(this,$).setOptions(this.options),r._defaulted&&!ao(this.options,r)&&__privateGet(this,U).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,$),observer:this});const i=this.hasListeners();i&&Do(__privateGet(this,$),n,this.options,r)&&__privateMethod(this,ee,te).call(this),this.updateResult(t),!i||__privateGet(this,$)===n&&Za(this.options.enabled,__privateGet(this,$))===Za(r.enabled,__privateGet(this,$))&&Ya(this.options.staleTime,__privateGet(this,$))===Ya(r.staleTime,__privateGet(this,$))||__privateMethod(this,ee,re).call(this);const a=__privateMethod(this,ee,ne).call(this);!i||__privateGet(this,$)===n&&Za(this.options.enabled,__privateGet(this,$))===Za(r.enabled,__privateGet(this,$))&&a===__privateGet(this,Z)||__privateMethod(this,ee,ie).call(this,a)}getOptimisticResult(e){const t=__privateGet(this,U).getQueryCache().build(__privateGet(this,U),e),r=this.createResult(t,e);return function(e,t){if(!ao(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(__privateSet(this,H,r),__privateSet(this,z,this.options),__privateSet(this,q,__privateGet(this,$).state)),r}getCurrentResult(){return __privateGet(this,H)}trackResult(e,t){const r={};return Object.keys(e).forEach((n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),null==t||t(n),e[n])})})),r}trackProp(e){__privateGet(this,J).add(e)}getCurrentQuery(){return __privateGet(this,$)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,U).defaultQueryOptions(e),r=__privateGet(this,U).getQueryCache().build(__privateGet(this,U),t);return r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return __privateMethod(this,ee,te).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,H))))}createResult(e,t){var r;const n=__privateGet(this,$),i=this.options,a=__privateGet(this,H),o=__privateGet(this,q),s=__privateGet(this,z),l=e!==n?e.state:__privateGet(this,N),{state:c}=e;let u,d={...c},p=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&Fo(e,t),o=r&&Do(e,n,t,i);(a||o)&&(d={...d,...Ao(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:f,status:_}=d;if(t.select&&void 0!==d.data)if(a&&d.data===(null==o?void 0:o.data)&&t.select===__privateGet(this,Q))u=__privateGet(this,K);else try{__privateSet(this,Q,t.select),u=t.select(d.data),u=co(null==a?void 0:a.data,u,t),__privateSet(this,K,u),__privateSet(this,B,null)}catch(k){__privateSet(this,B,k)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===_){let e;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(r=__privateGet(this,V))?void 0:r.state.data,__privateGet(this,V)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,B,null)}catch(k){__privateSet(this,B,k)}void 0!==e&&(_="success",u=co(null==a?void 0:a.data,e,t),p=!0)}__privateGet(this,B)&&(h=__privateGet(this,B),u=__privateGet(this,K),f=Date.now(),_="error");const v="fetching"===d.fetchStatus,m="pending"===_,g="error"===_,y=m&&v,w=void 0!==u,b={status:_,fetchStatus:d.fetchStatus,isPending:m,isSuccess:"success"===_,isError:g,isInitialLoading:y,isLoading:y,data:u,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!m,isLoadingError:g&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:g&&w,isStale:Uo(e,t),refetch:this.refetch,promise:__privateGet(this,j)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},r=()=>{const e=__privateSet(this,j,b.promise=mo());t(e)},i=__privateGet(this,j);switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":"error"!==b.status&&b.data===i.value||r();break;case"rejected":"error"===b.status&&b.error===i.reason||r()}}return b}updateResult(e){const t=__privateGet(this,H),r=this.createResult(__privateGet(this,$),this.options);if(__privateSet(this,q,__privateGet(this,$).state),__privateSet(this,z,this.options),void 0!==__privateGet(this,q).data&&__privateSet(this,V,__privateGet(this,$)),ao(r,t))return;__privateSet(this,H,r);const n={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!__privateGet(this,J).size)return!0;const n=new Set(r??__privateGet(this,J));return this.options.throwOnError&&n.add("error"),Object.keys(__privateGet(this,H)).some((e=>{const r=e;return __privateGet(this,H)[r]!==t[r]&&n.has(r)}))})()&&(n.listeners=!0),__privateMethod(this,ee,ce).call(this,{...n,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,ee,ae).call(this)}},U=new WeakMap,$=new WeakMap,N=new WeakMap,H=new WeakMap,q=new WeakMap,z=new WeakMap,j=new WeakMap,B=new WeakMap,Q=new WeakMap,K=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,J=new WeakMap,ee=new WeakSet,te=function(e){__privateMethod(this,ee,le).call(this);let t=__privateGet(this,$).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Ka)),t},re=function(){__privateMethod(this,ee,oe).call(this);const e=Ya(this.options.staleTime,__privateGet(this,$));if(Qa||__privateGet(this,H).isStale||!Va(e))return;const t=Xa(__privateGet(this,H).dataUpdatedAt,e);__privateSet(this,X,setTimeout((()=>{__privateGet(this,H).isStale||this.updateResult()}),t+1))},ne=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,$)):this.options.refetchInterval)??!1},ie=function(e){__privateMethod(this,ee,se).call(this),__privateSet(this,Z,e),!Qa&&!1!==Za(this.options.enabled,__privateGet(this,$))&&Va(__privateGet(this,Z))&&0!==__privateGet(this,Z)&&__privateSet(this,Y,setInterval((()=>{(this.options.refetchIntervalInBackground||_o.isFocused())&&__privateMethod(this,ee,te).call(this)}),__privateGet(this,Z)))},ae=function(){__privateMethod(this,ee,re).call(this),__privateMethod(this,ee,ie).call(this,__privateMethod(this,ee,ne).call(this))},oe=function(){__privateGet(this,X)&&(clearTimeout(__privateGet(this,X)),__privateSet(this,X,void 0))},se=function(){__privateGet(this,Y)&&(clearInterval(__privateGet(this,Y)),__privateSet(this,Y,void 0))},le=function(){const e=__privateGet(this,U).getQueryCache().build(__privateGet(this,U),this.options);if(e===__privateGet(this,$))return;const t=__privateGet(this,$);__privateSet(this,$,e),__privateSet(this,N,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},ce=function(e){xo.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,H))})),__privateGet(this,U).getQueryCache().notify({query:__privateGet(this,$),type:"observerResultsUpdated"})}))},ue);function Fo(e,t){return function(e,t){return!1!==Za(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Io(e,t,t.refetchOnMount)}function Io(e,t,r){if(!1!==Za(t.enabled,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Uo(e,t)}return!1}function Do(e,t,r,n){return(e!==t||!1===Za(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Uo(e,r)}function Uo(e,t){return!1!==Za(t.enabled,e)&&e.isStaleByTime(Ya(t.staleTime,e))}var $o=Ze(void 0),No=({client:e,children:t})=>(xt((()=>(e.mount(),()=>{e.unmount()})),[e]),fa($o.Provider,{value:e,children:t})),Ho=Ze(!1);Ho.Provider;var qo=Ze(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function zo(){}var jo=(e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()}));function Bo(e,t,r){var n,i,a,o,s;const l=(()=>{const e=Pt($o);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e})(),c=Pt(Ho),u=Pt(qo),d=l.defaultQueryOptions(e);null==(i=null==(n=l.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||i.call(n,d),d._optimisticResults=c?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(d),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(d,u),(e=>{xt((()=>{e.clearReset()}),[e])})(u);const p=!l.getQueryCache().get(d.queryHash),[h]=bt((()=>new t(l,d))),f=h.getOptimisticResult(d);if(Yr(Ot((e=>{const t=c?zo:h.subscribe(xo.batchCalls(e));return h.updateResult(),t}),[h,c]),(()=>h.getCurrentResult())),xt((()=>{h.setOptions(d,{listeners:!1})}),[d,h]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(d,f))throw jo(d,h,u);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>{return e.isError&&!t.isReset()&&!e.isFetching&&n&&(i=r,a=[e.error,n],"function"==typeof i?i(...a):!!i);var i,a})({result:f,errorResetBoundary:u,throwOnError:d.throwOnError,query:l.getQueryCache().get(d.queryHash)}))throw f.error;if(null==(o=null==(a=l.getDefaultOptions().queries)?void 0:a._experimental_afterQuery)||o.call(a,d,f),d.experimental_prefetchInRender&&!Qa&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,c)){const e=p?jo(d,h,u):null==(s=l.getQueryCache().get(d.queryHash))?void 0:s.promise;null==e||e.catch(zo).finally((()=>{h.updateResult()}))}return d.notifyOnChangeProps?f:h.trackResult(f)}const Qo=async e=>{if(!(e instanceof Ut))return"Unexpected error occurred";try{return(await e.response.json()).message||`${e.response.status} error occurred`}catch{return`${e.response.status} error occurred`}},Ko=()=>{const[e,t]=bt(""),[r,n]=bt(""),{searchProfilesForAccount:i}=Qt(),{data:a,refetch:o,error:s,isError:l}=Bo({queryKey:["searchProfilesForAccount"],queryFn:()=>i(e),enabled:!1,retry:!1},Wo);xt((()=>{e&&o()}),[e]),xt((()=>{l?(async()=>{n(await Qo(s))})():n("")}),[l]);return va(za,{columns:ja,data:a||[],title:"Profile Search",subtitle:"Search for a profile using name or email",searchButton:{onClick:e=>{t(e)},text:"Search",error:r}})},Vo=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],Xo=e=>{switch(e){case"search":return va(Ko,{});case"linkedProfiles":return va("div",{children:"Coming soon..."})}},Yo=()=>{const[e,t]=bt("search");return ma(_a,{children:[va(wa,{tabs:Vo,currentTabId:e,onChange:t}),va("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:Xo(e)})]})},Zo=e=>{const[t,r]=bt(),[n,i]=bt({status:"NotLinked",message:"Access Denied"}),[a]=bt(Xt.create(e.accessToken)),[o,s]=bt("Loading");var l;l={backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}},Nt=Ze({...l,backend:{...l.backend,url:l.backend.url.replace(/\/?$/,"")}});const{checkProfileSearchAuthorization:c,ingestClient:u}=Qt();xt((()=>{(async()=>{if(a.isAuthorized&&e.backendUrl&&e.accessToken&&e.accountId)try{const e=await c();i(e),s("Linked"===e.status?"Main":"Unlinked")}catch(t){r(await Qo(t)),s("Error")}})()}),[e.accessToken,e.accountId,e.backendUrl,a]),xt((()=>{a&&!a.isAuthorized&&(r("Access Denied"),s("Error"))}),[a]);const d=async()=>{try{return await u(),!0}catch(e){return r(await Qo(e)),s("Error"),!1}},p=async()=>{try{const e=await c();return"Linked"===e.status?(i(e),s("Main"),!0):(n.status!==e.status||n.message!==e.message)&&(i(e),!0)}catch{return!1}},h=()=>{r("Client sync took too long. Please confirm you have updated Catch-E correctly, refresh the page and try again. "),s("Error")};switch(o){case"Loading":return va("h1",{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Loading..."});case"Main":return va(Yo,{});case"Error":return va("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:t});case"Unlinked":return ma("div",{children:[va("h1",{css:{marginBottom:"1rem",marginLeft:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:n.message}),va(ga,{onClick:d,onCheck:p,onTimeout:h,checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})}},Jo=ia({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),es=()=>ma(Me,{children:[va(na,{styles:ia`
|
11
|
+
`;function So({title:e,titleId:t,...r},n){return g("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?g("title",{id:t},e):null,g("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const To=Ue(So),Eo=Ue((({label:e,id:t,type:r,icon:n,placeholder:o,setPlaceholderOnFocus:i,value:a,className:c,onChange:s,onBlur:l,onEnter:u,error:d,helperText:p,disabled:f,remove:h},_)=>eo("div",{className:c,children:[e&&Qn("label",{htmlFor:t,css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),eo("div",{css:{position:"relative",marginTop:"0.5rem"},children:[n&&Qn("span",{css:{position:"absolute",marginLeft:"0.5rem",marginTop:"0.5rem"},children:n}),eo("div",{css:{marginTop:"0.5rem",display:"flex",alignItems:"center"},children:[Qn(Co,{type:r,value:a,name:t,id:t,placeholder:o,onChange:e=>{const t=e;t.target instanceof HTMLInputElement&&s(t.target.value.trim())},onBlur:e=>{const t=e;t.target instanceof HTMLInputElement&&l&&l(t.target.value.trim())},onFocus:()=>{o&&i&&!(null==a?void 0:a.trim())&&s(o)},onKeyDown:e=>{"Enter"===e.key&&u&&u()},hasError:!!d,ref:_,disabled:f,prefix:!!n}),h&&eo("button",{type:"button",children:[Qn(To,{css:{marginLeft:"0.5rem",height:"1.25rem",width:"1.25rem"},onClick:()=>h()})," "]})]})]}),d&&Qn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:d}),p&&Qn("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:p})]}))),Po="asc",Ao="desc",Ro=e=>{var t,r;const[n,o]=ue(""),[i,a]=ue([]),[c,s]=ue(e.columns[0]),[l,u]=ue(Po),d=me((()=>c?[...e.data].sort(((e,t)=>{const r=c.sort?c.sort(e[c.field],t[c.field]):e[c.field].localeCompare(t[c.field]);return l===Ao?-1*r:r})):e.data),[e.data,c,l]),p=me((()=>{const t=i.reduce(((e,t)=>e.filter(t.filterFunction)),d);return n&&!e.searchButton?t.filter((e=>e.id.toLowerCase().includes(n.toLowerCase()))):t}),[d,n,i,e.searchButton]),f=me((()=>e.columns.filter((e=>e.filters&&e.filters.length>0)).length>0),[e.columns]),h=()=>{e.searchButton&&e.searchButton.onClick(n)},_=(e,t)=>{const r={name:e.name,filterFunction:r=>e.predicate(r[t.field])},n=i.filter((e=>e.name!==r.name));return()=>n.length<i.length?a([...n]):a([...n,r])};return Qn(Jn,{children:eo("div",{css:{paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[eo("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[eo("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[Qn("h1",{css:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e.title}),e.subtitle&&Qn("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:e.subtitle}),eo("div",{css:{marginTop:"0.5rem",display:"inline-flex"},children:[Qn(Eo,{css:{marginTop:"auto",marginBottom:"auto",maxWidth:"20rem"},label:null==(t=e.searchButton)?void 0:t.text,icon:Qn(lo,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"}}),id:"search",type:"text",error:null==(r=e.searchButton)?void 0:r.error,onChange:e=>o(e),onEnter:h}),e.searchButton&&Qn("div",{css:{marginLeft:"1rem",marginTop:"0.5rem"},children:Qn("button",{type:"button",onClick:h,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.searchButton.text})})]})]}),e.addButton&&Qn("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:Qn("button",{type:"button",onClick:e.addButton.onClick,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.addButton.text})})]}),Qn("div",{css:{marginTop:"2rem",display:"flow-root"},children:Qn("div",{css:{marginLeft:"-1rem",marginRight:"-1rem",marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}},children:Qn("div",{css:{display:"inline-block",minWidth:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:Qn("div",{css:{overflow:"hidden","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:eo("table",{css:{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-divide-opacity))"}},children:[f&&Qn("thead",{children:Qn("tr",{children:eo("td",{css:{padding:"1rem"},colspan:e.columns.length,children:[Qn(xo,{onClick:()=>a([]),isActive:0==i.length,children:"All"}),e.columns.map((e=>{var t;return null==(t=e.filters)?void 0:t.map((t=>Qn(xo,{onClick:_(t,e),isActive:!!i.find((e=>e.name===t.name)),children:t.name},t.name)))}))]})})}),Qn("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:Qn("tr",{children:e.columns.map((e=>Qn("th",{scope:"col",css:{paddingTop:"0.875rem",paddingBottom:"0.875rem",paddingLeft:"1rem",paddingRight:"0.75rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:eo("button",{disabled:!e.isSortable,onClick:()=>(e=>{c===e?u(l===Po?Ao:Po):(s(e),u(Po))})(e),css:{display:"inline-flex"},children:[Qn("span",{children:e.name}),eo("span",{css:{marginLeft:"0.5rem"},children:[c===e&&l===Po&&Qn(yo,{css:{height:"1.25rem",width:"1.25rem"}}),c===e&&l===Ao&&Qn(ko,{css:{height:"1.25rem",width:"1.25rem"}}),c!==e&&Qn("svg",{css:{height:"1.25rem",width:"1.25rem"}})]})]})},e.field)))})}),Qn("tbody",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:p.map(((t,r)=>Qn("tr",{children:e.columns.map(((e,n)=>Qn(y,{children:vo(t.id,t[e.field],e.type)},`${t[e.field]}-${r}-${n}`)))},`${t[e.columns[0].field]}-${r}`)))})]})})})})})]})})},Lo=[{name:"Profile Id",field:"id",isSortable:!0},{name:"Name",field:"name",isSortable:!0},{name:"Email",field:"email",isSortable:!0},{name:"External Id",field:"externalId",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEId",isSortable:!0}],$o=()=>{const[e,t]=ue([]),[r,n]=ue(),o=ve(oo);return Qn(Ro,{columns:Lo,data:e,title:"Profile Search",subtitle:"Search for a profile using name or email",searchButton:{onClick:async e=>{try{n(void 0);const r=Ae(o.backend.url,o.backend.accessToken),i=await(async(e,t,r)=>await e(`/accounts/${t}/profile-search?search=${r}`,"GET"))(r,o.account.accountId,e);t(i)}catch(r){n(await io(r))}},text:"Search",error:r}})},Oo=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],No=e=>{switch(e){case"search":return Qn($o,{});case"linkedProfiles":return Qn("div",{children:"Coming soon..."})}},Io=()=>{const[e,t]=ue("search");return eo(Jn,{children:[Qn(no,{tabs:Oo,currentTabId:e,onChange:t}),Qn("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:No(e)})]})},zo=e=>{const[t,r]=ue(),[n,o]=ue({status:"NotLinked",message:"Access Denied"}),[i]=ue(Oe.create(e.accessToken)),[a,c]=ue("Loading");var s;s={backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}},oo=B({...s,backend:{...s.backend,url:s.backend.url.replace(/\/?$/,"")}}),pe((()=>{(async()=>{if(i.isAuthorized&&e.backendUrl&&e.accessToken&&e.accountId)try{const t=Ae(e.backendUrl,e.accessToken),r=await Re(t,e.accountId);o(r),c("Linked"===r.status?"Main":"Unlinked")}catch(t){r(await io(t)),c("Error")}})()}),[e.accessToken,e.accountId,e.backendUrl,i]),pe((()=>{i&&!i.isAuthorized&&(r("Access Denied"),c("Error"))}),[i]);const l=async()=>{try{const t=Ae(e.backendUrl,e.accessToken);return await(async e=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const r=new Date;r.setUTCDate((new Date).getUTCDate()+2),await e("/ingest/clients","POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]},!0)})(t),!0}catch(t){return r(await io(t)),c("Error"),!1}},u=async()=>{try{const t=Ae(e.backendUrl,e.accessToken),r=await Re(t,e.accountId);return"Linked"===r.status?(o(r),c("Main"),!0):(n.status!==r.status||n.message!==r.message)&&(o(r),!0)}catch{return!1}},d=()=>{r("Client sync took too long. Please confirm you have updated Catch-E correctly, refresh the page and try again. "),c("Error")};switch(a){case"Loading":return Qn("h1",{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Loading..."});case"Main":return Qn(Io,{});case"Error":return Qn("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:t});case"Unlinked":return eo("div",{children:[Qn("h1",{css:{marginBottom:"1rem",marginLeft:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:n.message}),Qn(to,{onClick:l,onCheck:u,onTimeout:d,checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})}},Ho=Bn({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),Mo=()=>eo(y,{children:[Qn(Un,{styles:Bn`
|
12
12
|
${{"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"#e5e7eb","--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"::before, ::after":{"--tw-content":"''"},"html, :host":{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:"4",fontFamily:'Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontFeatureSettings:" normal",fontVariationSettings:" normal",WebkitTapHighlightColor:"transparent"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontFeatureSettings:" normal",fontVariationSettings:" normal",fontSize:"1em"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button, input, optgroup, select, textarea":{fontFamily:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",fontSize:"100%",fontWeight:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",margin:"0",padding:"0"},"button, select":{textTransform:"none"},"button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button, ::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol, ul, menu":{listStyle:"none",margin:"0",padding:"0"},dialog:{padding:"0"},textarea:{resize:"vertical"},"input::placeholder, textarea::placeholder":{opacity:"1",color:"#9ca3af"},'button, [role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},"img, video":{maxWidth:"100%",height:"auto"},'[hidden]:where(:not([hidden="until-found"]))':{display:"none"},"::backdrop":{"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select":{appearance:"none",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px",borderRadius:"0px",paddingTop:"0.5rem",paddingRight:"0.75rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 0 #0000"},"[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)",borderColor:"#2563eb"},"input::placeholder,textarea::placeholder":{color:"#6b7280",opacity:"1"},"::-webkit-datetime-edit-fields-wrapper":{padding:"0"},"::-webkit-date-and-time-value":{minHeight:"1.5em",textAlign:"inherit"},"::-webkit-datetime-edit":{display:"inline-flex"},"::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field":{paddingTop:"0",paddingBottom:"0"},select:{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\")",backgroundPosition:"right 0.5rem center",backgroundRepeat:"no-repeat",backgroundSize:"1.5em 1.5em",paddingRight:"2.5rem",printColorAdjust:"exact"},'[multiple],[size]:where(select:not([size="1"]))':{backgroundImage:"initial",backgroundPosition:"initial",backgroundRepeat:"unset",backgroundSize:"initial",paddingRight:"0.75rem",printColorAdjust:"unset"},"[type='checkbox'],[type='radio']":{appearance:"none",padding:"0",printColorAdjust:"exact",display:"inline-block",verticalAlign:"middle",backgroundOrigin:"border-box",userSelect:"none",flexShrink:"0",height:"1rem",width:"1rem",color:"#2563eb",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px","--tw-shadow":"0 0 #0000"},"[type='checkbox']":{borderRadius:"0px"},"[type='radio']":{borderRadius:"100%"},"[type='checkbox']:focus,[type='radio']:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"},"[type='checkbox']:checked,[type='radio']:checked":{borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e\")"},"@media (forced-colors: active)":{"[type='checkbox']:checked":{appearance:"auto"},"[type='radio']:checked":{appearance:"auto"},"[type='checkbox']:indeterminate":{appearance:"auto"}},"[type='radio']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e\")"},"[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='checkbox']:indeterminate":{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e\")",borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='file']":{background:"unset",borderColor:"inherit",borderWidth:"0",borderRadius:"0",padding:"0",fontSize:"unset",lineHeight:"inherit"},"[type='file']:focus":{outline:"1px auto -webkit-focus-ring-color"}}}
|
13
|
-
`}),
|
13
|
+
`}),Qn(Un,{styles:Ho})]});!function(e,t,r,n){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=n&&n.shadow?t.attachShadow({mode:n.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=V,o.prototype.attributeChangedCallback=G,o.prototype.disconnectedCallback=X,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var r=typeof t;null!=t&&"string"!==r&&"boolean"!==r&&"number"!==r||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const t=he(null),{EmotionProvider:r}=((e,t)=>{const[r,n]=ue();return pe((()=>{const r=e=>{t&&t.current?e():requestAnimationFrame((()=>r(e)))};r((()=>{n(Br({container:t.current,key:e}))}))}),[e,t]),{EmotionProvider:({children:e})=>r?Qn($n,{value:r,children:e}):Qn(Jn,{})}})("superhero-salpac-profile-admin",t);return eo(Jn,{children:[Qn("head",{ref:t}),eo(r,{children:[Qn(Mo,{}),Qn("body",{children:Qn(zo,{backendUrl:e.backendUrl||"",accessToken:e.accessToken||"",accountId:e.accountId||""})})]})]})}),"superhero-salpac-profile-admin",["backend-url","access-token","account-id"],{shadow:!0})}();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flarehr/superhero-salpac-profile-admin",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.624",
|
4
4
|
"description": "Flare Superhero Profile Admin",
|
5
5
|
"license": "MIT",
|
6
6
|
"files": [
|
@@ -19,8 +19,8 @@
|
|
19
19
|
"preview": "npm run build && vite preview",
|
20
20
|
"test": "jest",
|
21
21
|
"analyze": "npx vite-bundle-visualizer",
|
22
|
-
"lint": "eslint src/**/*.{ts,tsx}",
|
23
|
-
"lint:fix": "eslint src/**/*.{ts,tsx} --fix",
|
22
|
+
"lint": "eslint src/**/*.{js,jsx,ts,tsx}",
|
23
|
+
"lint:fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix",
|
24
24
|
"prepare": "husky"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
@@ -30,7 +30,6 @@
|
|
30
30
|
"@emotion/styled": "^11.13.0",
|
31
31
|
"@headlessui/react": "^2.2.0",
|
32
32
|
"@heroicons/react": "^2.1.5",
|
33
|
-
"@tanstack/react-query": "^5.60.5",
|
34
33
|
"jwt-decode": "^4.0.0",
|
35
34
|
"preact": "^10.24.3",
|
36
35
|
"preact-custom-element": "^4.3.0"
|