@flarehr/superhero-salpac-profile-admin 1.0.590 → 1.0.591

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1 @@
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,_=Array.isArray;function h(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 y(){return{current:null}}function w(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 S(e){(!e.__d&&(e.__d=!0)&&n.push(e)&&!C.__r++||o!==t.debounceRendering)&&((o=t.debounceRendering)||i)(C)}function C(){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=h({},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,L(l,i,u),i.__e!=s&&x(i)),n.length>r&&n.sort(a));C.__r=0}function T(e,t,r,n,o,i,a,c,s,l,u){var f,h,m,g,y,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):_(o)?v(w,{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])&&(h=-1===m.__i?d:b[m.__i]||d,m.__i=f,O(e,m,h,o,i,a,c,s,l,u),g=m.__e,m.ref&&h.ref!=m.ref&&(h.ref&&I(h.ref,null,m),u.push(m.ref,m.__c||g,m)),null==y&&null!=g&&(y=g),65536&m.__u||h.__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=y}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||(_(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 N(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,y,x,S,C,E,P,A,R,$,O,L,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?C=(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=h({},g.__s)),h(g.__s,M.getDerivedStateFromProps(E,g.__s))),y=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!==y&&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(y,x,S)}))}if(g.context=R,g.props=E,g.__P=r,g.__e=!1,O=t.__r,L=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&&++L<25);g.state=g.__s,null!=g.getChildContext&&(i=h(h({},i),g.getChildContext())),P&&!v&&null!=g.getSnapshotBeforeUpdate&&(S=g.getSnapshotBeforeUpdate(y,x)),T(r,_(z=null!=f&&f.type===w&&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),C&&(g.__E=g.__=null)}catch(U){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(U,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,h,g,v,y,w,b=o.props,x=n.props,S=n.type;if("svg"===S?a="http://www.w3.org/2000/svg":"math"===S?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==!!S&&(S?v.localName===S:3===v.nodeType)){r=v,c[p]=null;break}if(null==r){if(null===S)return document.createTextNode(x);r=document.createElementNS(a,S,x.is&&x),l&&(t.__m&&t.__m(n,c),l=!1),c=null}if(null===S)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)h=v;else if(!(p in x)){if("value"==p&&"defaultValue"in x||"checked"==p&&"defaultChecked"in x)continue;N(r,p,null,v,a)}for(p in x)v=x[p],"children"==p?g=v:"dangerouslySetInnerHTML"==p?f=v:"value"==p?y=v:"checked"==p?w=v:l&&"function"!=typeof v||b[p]===v||N(r,p,v,b[p],a);if(f)l||h&&(f.__html===h.__html||f.__html===r.innerHTML)||(r.innerHTML=f.__html),n.__k=[];else if(h&&(r.innerHTML=""),T(r,_(g)?g:[g],n,o,i,"foreignObject"===S?"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"===S&&null==y?r.removeAttribute("value"):void 0!==y&&(y!==r[p]||"progress"===S&&!y||"option"===S&&y!==b[p])&&N(r,p,y,b[p],a),p="checked",void 0!==w&&w!==r[p]&&N(r,p,w,b[p],a))}return r}(o.__e,n,o,i,a,c,s,u,p);(f=t.diffed)&&f(n)}function L(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(w,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),L(c,r,s)}function U(e,t){M(e,t,U)}function W(t,r,n){var o,i,a,c,s=h({},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 D(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,S(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 F(){return(F=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=h({},this.state),"function"==typeof e&&(e=e(h({},r),this.props)),e&&h(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),S(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},b.prototype.render=w,n=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},C.__r=0,c=0,s=$(!1),l=$(!0),u=0;var j=["context","children"];function B(e){return this.getChildContext=function(){return e.context},W(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,j))}function V(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=g(B,F({},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(X,{name:l},s):n[i]=s}var u=r?g(X,null,n):n;return g(r||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?U: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=W(this._vdom,n),M(this._vdom,this._root)}}function Y(){M(this._vdom=null,this._root)}function X(e,t){var r=this;return g("slot",F({},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,J,K,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(J,e,ee||t),ee=0;var r=J.__H||(J.__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=J,!J.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))};J.u=!0;var i=J.shouldComponentUpdate,a=J.componentWillUpdate;J.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)},J.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,J.__H.__h.push(r))}function fe(e,t){var r=le(Z++,4);!re.__s&&Te(r.__H,t)&&(r.__=e,r.i=t,J.__h.push(r))}function _e(e){return ee=5,me((function(){return{current:e}}),[])}function he(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=J.context[e.__c],r=le(Z++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(J)),t.props.value):e.__}function ye(e,t){re.useDebugValue&&re.useDebugValue(t?t(e):e)}function we(){var e=le(Z++,11);if(!e.__){for(var t=J.__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(Se),e.__H.__h.forEach(Ce),e.__H.__h=[]}catch(t){e.__H.__h=[],re.__e(t,e.__v)}}re.__b=function(e){J=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=(J=e.__c).__H;t&&(K===J?(t.__h=[],J.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Se),t.__h.forEach(Ce),t.__h=[],Z=0)),K=J},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}))),K=J=null},re.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Se),e.__h=e.__h.filter((function(e){return!e.__||Ce(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{Se(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 Se(e){var t=J,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),J=t}function Ce(e){var t=J;e.__c=e.__(),J=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 Ne 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)}}Ne.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=function(e,t){if("string"!=typeof e)throw new Ne("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 Ne(`Invalid token specified: missing part #${r+1}`);let o;try{o=$e(n)}catch(i){throw new Ne(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new Ne(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}(e);return new Oe(t.roles||[])}}function Le(){return Le=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},Le.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 Ue="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function We(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=Ue,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var De=function(e,t){return null==e?null:P(P(e).map(t))},Fe={map:De,forEach:De,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},je=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);je(e,t,r,n)};var Be=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 Ye(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Xe(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),Be&&Be(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=Ye(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(w,null,e.fallback);return o&&(o.__u&=-33),[g(w,null,t.__a?null:e.children),o]};var Je=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 Ke(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(Ke,{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=Ye(t.__v),n=t.o.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),Je(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){Je(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 U(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,_t={enumerable:!1,configurable:!0,get:function(){return this.class}},ht=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",_t)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=tt,ht&&ht(e)};var mt=t.__r;t.__r=function(e){mt&&mt(e),ft=e.__c};var gt=t.diffed;t.diffed=function(e){gt&&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:ye,useDeferredValue:Rt,useEffect:pe,useId:we,useImperativeHandle:he,useInsertionEffect:$t,useLayoutEffect:fe,useMemo:me,useReducer:de,useRef:_e,useState:ue,useSyncExternalStore:Lt,useTransition:Nt}}};function yt(e){return g.bind(null,e)}function wt(e){return!!e&&e.$$typeof===tt}function bt(e){return wt(e)&&e.type===w}function kt(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function xt(e){return wt(e)?W.apply(null,arguments):e}function St(e){return!!e.__k&&(M(null,e),!0)}function Ct(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=w;function At(e){e()}function Rt(e){return e}function Nt(){return[!1,At]}var $t=fe,Ot=wt;function Lt(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:we,useReducer:de,useEffect:pe,useLayoutEffect:fe,useInsertionEffect:$t,useTransition:Nt,useDeferredValue:Rt,useSyncExternalStore:Lt,startTransition:At,useRef:_e,useImperativeHandle:he,useMemo:me,useCallback:ge,useContext:ve,useDebugValue:ye,version:"18.3.1",Children:Fe,render:ct,hydrate:st,unmountComponentAtNode:St,createPortal:et,createElement:g,createContext:D,createFactory:yt,cloneElement:xt,createRef:y,Fragment:w,isValidElement:wt,isElement:Ot,isFragment:bt,isMemo:kt,findDOMNode:Ct,Component:b,PureComponent:ze,memo:He,forwardRef:We,flushSync:Et,unstable_batchedUpdates:Tt,StrictMode:Pt,Suspense:Ge,SuspenseList:Ze,lazy:Xe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:vt};const Ht=Object.freeze(Object.defineProperty({__proto__:null,Children:Fe,Component:b,Fragment:w,PureComponent:ze,StrictMode:Pt,Suspense:Ge,SuspenseList:Ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:vt,cloneElement:xt,createContext:D,createElement:g,createFactory:yt,createPortal:et,createRef:y,default:zt,findDOMNode:Ct,flushSync:Et,forwardRef:We,hydrate:st,isElement:Ot,isFragment:bt,isMemo:kt,isValidElement:wt,lazy:Xe,memo:He,render:ct,startTransition:At,unmountComponentAtNode:St,unstable_batchedUpdates:Tt,useCallback:ge,useContext:ve,useDebugValue:ye,useDeferredValue:Rt,useEffect:pe,useErrorBoundary:function(e){var t=le(Z++,10),r=ue();return t.__=e,J.componentDidCatch||(J.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:we,useImperativeHandle:he,useInsertionEffect:$t,useLayoutEffect:fe,useMemo:me,useReducer:de,useRef:_e,useState:ue,useSyncExternalStore:Lt,useTransition:Nt,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 Ut=/^((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)-.*))$/,Wt=Mt((function(e){return Ut.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Dt=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}(),Ft="-ms-",jt="-moz-",Bt="-webkit-",Vt="comm",qt="rule",Gt="decl",Yt="@keyframes",Xt=Math.abs,Zt=String.fromCharCode,Jt=Object.assign;function Kt(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 Jt(pr("",null,null,"",null,null,0),e,{length:-e.length},t)}function _r(){return ur=lr<sr?tr(dr,lr++):0,cr++,10===ur&&(cr=1,ar++),ur}function hr(){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 yr(e){return ar=cr=1,sr=nr(dr=e),lr=0,[]}function wr(e){return dr="",e}function br(e){return Kt(gr(lr-1,Sr(91===e?e+2:40===e?e+1:e)))}function kr(e){for(;(ur=hr())&&ur<33;)_r();return vr(e)>2||vr(ur)>3?"":" "}function xr(e,t){for(;--t&&_r()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return gr(e,mr()+(t<6&&32==hr()&&32==_r()))}function Sr(e){for(;_r();)switch(ur){case e:return lr;case 34:case 39:34!==e&&39!==e&&Sr(ur);break;case 40:41===e&&Sr(e);break;case 92:_r()}return lr}function Cr(e,t){for(;_r()&&e+ur!==57&&(e+ur!==84||47!==hr()););return"/*"+gr(t,lr-1)+"*"+Zt(47===e?e:_r())}function Tr(e){for(;!vr(hr());)_r();return gr(e,lr)}function Er(e){return wr(Pr("",null,null,null,[""],e=yr(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,_=0,h=1,m=1,g=1,v=0,y="",w=o,b=i,k=n,x=y;m;)switch(_=v,v=_r()){case 40:if(108!=_&&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(_);break;case 92:x+=xr(mr()-1,7);continue;case 47:switch(hr()){case 42:case 47:ir(Rr(Cr(_r(),mr()),t,r),s);break;default:x+="/"}break;case 123*h:c[l++]=nr(x)*g;case 125*h: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?Nr(x+";",n,r,d-1):Nr(Qt(x," ","")+";",n,r,d-2),s);break;case 59:x+=";";default:if(ir(k=Ar(x,t,r,l,u,o,c,y,w=[],b=[],d),i),123===v)if(0===u)Pr(x,t,k,k,w,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,y,o,w=[],d),b),o,b,d,c,n?w:b);break;default:Pr(x,k,k,k,[""],b,0,c,b)}}l=u=f=0,h=g=1,y=x="",d=a;break;case 58:d=1+nr(x),f=_;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(ur=lr>0?tr(dr,--lr):0,cr--,10===ur&&(cr=1,ar--),ur))continue;switch(x+=Zt(v),v*h){case 38:g=u>0?1:(x+="\f",-1);break;case 44:c[l++]=(nr(x)-1)*g,g=1;break;case 64:45===hr()&&(x+=br(_r())),p=hr(),u=d=nr(y=x+=Tr(mr())),v++;break;case 45:45===_&&2==nr(x)&&(h=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),_=0,h=0,m=0;_<n;++_)for(var g=0,v=rr(e,d+1,d=Xt(h=a[_])),y=e;g<f;++g)(y=Kt(h>0?p[g]+" "+v:Qt(v,/&\f/g,p[g])))&&(s[m++]=y);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 Nr(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 Yt: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 Lr=function(e,t,r){for(var n=0,o=0;n=o,o=hr(),38===n&&12===o&&(t[r]=1),!vr(o);)_r();return gr(e,lr)},Ir=function(e,t){return wr(function(e,t){var r=-1,n=44;do{switch(vr(n)){case 0:38===n&&12===hr()&&(t[r]=1),e[r]+=Lr(lr-1,t,r);break;case 2:e[r]+=br(n);break;case 4:if(44===n){e[++r]=58===hr()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Zt(n)}}while(n=_r());return e}(yr(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 Ur(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 Bt+"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 Bt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Bt+e+jt+e+Ft+e+e;case 6828:case 4268:return Bt+e+Ft+e+e;case 6165:return Bt+e+Ft+"flex-"+e+e;case 5187:return Bt+e+Qt(e,/(\w+).+(:[^]+)/,Bt+"box-$1$2"+Ft+"flex-$1$2")+e;case 5443:return Bt+e+Ft+"flex-item-"+Qt(e,/flex-|-self/,"")+e;case 4675:return Bt+e+Ft+"flex-line-pack"+Qt(e,/align-content|flex-|-self/,"")+e;case 5548:return Bt+e+Ft+Qt(e,"shrink","negative")+e;case 5292:return Bt+e+Ft+Qt(e,"basis","preferred-size")+e;case 6060:return Bt+"box-"+Qt(e,"-grow","")+Bt+e+Ft+Qt(e,"grow","positive")+e;case 4554:return Bt+Qt(e,/([^-])(transform)/g,"$1"+Bt+"$2")+e;case 6187:return Qt(Qt(Qt(e,/(zoom-|grab)/,Bt+"$1"),/(image-set)/,Bt+"$1"),e,"")+e;case 5495:case 3959:return Qt(e,/(image-set\([^]*)/,Bt+"$1$`$1");case 4968:return Qt(Qt(e,/(.+:)(flex-)?(.*)/,Bt+"box-pack:$3"+Ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Bt+e+e;case 4095:case 3583:case 4068:case 2532:return Qt(e,/(.+)-inline(.+)/,Bt+"$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"+Bt+"$2-$3$1"+jt+(108==tr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~er(e,"stretch")?Ur(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,":",":"+Bt)+e;case 101:return Qt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Bt+(45===tr(e,14)?"inline-":"")+"box$3$1"+Bt+"$2$3$1"+Ft+"$2box$3")+e}break;case 5936:switch(tr(e,t+11)){case 114:return Bt+e+Ft+Qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Bt+e+Ft+Qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Bt+e+Ft+Qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Bt+e+Ft+e+e}return e}var Wr=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Gt:e.return=Ur(e.value,e.length);break;case Yt:return $r([fr(e,{value:Qt(e.value,"@","@"+Bt)})],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+)/,":"+Bt+"input-$1")]}),fr(e,{props:[Qt(t,/:(plac\w+)/,":-moz-$1")]}),fr(e,{props:[Qt(t,/:(plac\w+)/,Ft+"input-$1")]})],n)}return""}))}}],Dr=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||Wr,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&&(_.inserted[t.name]=!0)};var _={key:t,sheet:new Dt({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 _.sheet.hydrate(c),_},Fr={exports:{}},jr={},Br="function"==typeof Symbol&&Symbol.for,Vr=Br?Symbol.for("react.element"):60103,qr=Br?Symbol.for("react.portal"):60106,Gr=Br?Symbol.for("react.fragment"):60107,Yr=Br?Symbol.for("react.strict_mode"):60108,Xr=Br?Symbol.for("react.profiler"):60114,Zr=Br?Symbol.for("react.provider"):60109,Jr=Br?Symbol.for("react.context"):60110,Kr=Br?Symbol.for("react.async_mode"):60111,Qr=Br?Symbol.for("react.concurrent_mode"):60111,en=Br?Symbol.for("react.forward_ref"):60112,tn=Br?Symbol.for("react.suspense"):60113,rn=Br?Symbol.for("react.suspense_list"):60120,nn=Br?Symbol.for("react.memo"):60115,on=Br?Symbol.for("react.lazy"):60116,an=Br?Symbol.for("react.block"):60121,cn=Br?Symbol.for("react.fundamental"):60117,sn=Br?Symbol.for("react.responder"):60118,ln=Br?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 Kr:case Qr:case Gr:case Xr:case Yr:case tn:return e;default:switch(e=e&&e.$$typeof){case Jr:case en:case on:case nn:case Zr:return e;default:return t}}case qr:return t}}}function dn(e){return un(e)===Qr}jr.AsyncMode=Kr,jr.ConcurrentMode=Qr,jr.ContextConsumer=Jr,jr.ContextProvider=Zr,jr.Element=Vr,jr.ForwardRef=en,jr.Fragment=Gr,jr.Lazy=on,jr.Memo=nn,jr.Portal=qr,jr.Profiler=Xr,jr.StrictMode=Yr,jr.Suspense=tn,jr.isAsyncMode=function(e){return dn(e)||un(e)===Kr},jr.isConcurrentMode=dn,jr.isContextConsumer=function(e){return un(e)===Jr},jr.isContextProvider=function(e){return un(e)===Zr},jr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Vr},jr.isForwardRef=function(e){return un(e)===en},jr.isFragment=function(e){return un(e)===Gr},jr.isLazy=function(e){return un(e)===on},jr.isMemo=function(e){return un(e)===nn},jr.isPortal=function(e){return un(e)===qr},jr.isProfiler=function(e){return un(e)===Xr},jr.isStrictMode=function(e){return un(e)===Yr},jr.isSuspense=function(e){return un(e)===tn},jr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Gr||e===Qr||e===Xr||e===Yr||e===tn||e===rn||"object"==typeof e&&null!==e&&(e.$$typeof===on||e.$$typeof===nn||e.$$typeof===Zr||e.$$typeof===Jr||e.$$typeof===en||e.$$typeof===cn||e.$$typeof===sn||e.$$typeof===ln||e.$$typeof===an)},jr.typeOf=un,Fr.exports=jr;var pn=Fr.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 _n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var hn=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){hn(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,yn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wn=function(e){return 45===e.charCodeAt(1)},bn=function(e){return null!=e&&"boolean"!=typeof e},kn=Mt((function(e){return wn(e)?e:e.replace(vn,"-$&").toLowerCase()})),xn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(yn,(function(e,t,r){return Cn={name:t,styles:r,next:Cn},t}))}return 1===gn[e]||wn(e)||"number"!=typeof t||0===t?t:t+"px"};function Sn(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 Cn={name:o.name,styles:o.styles,next:Cn},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Cn={name:a.name,styles:a.styles,next:Cn},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+=Sn(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=Sn(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=Cn,s=r(e);return Cn=c,Sn(e,t,s)}}var l=r;if(null==t)return l;var u=t[l];return void 0!==u?u:l}var Cn,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="";Cn=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=Sn(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Sn(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:Cn}}var Pn=!!Ht.useInsertionEffect&&Ht.useInsertionEffect,An=Pn||function(e){return e()},Rn=Pn||fe,Nn=D("undefined"!=typeof HTMLElement?Dr({key:"css"}):null),$n=Nn.Provider,On=function(e){return We((function(t,r){var n=ve(Nn);return e(t,n,r)}))},Ln=D({}),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 hn(t,r,n),An((function(){return mn(t,r,n)})),null},Un=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=_n(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var c=En(i,void 0,ve(Ln));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(w,null,g(Mn,{cache:t,serialized:c,isStringTag:"string"==typeof o}),g(o,s))})),Wn=On((function(e,t){var r=En([e.styles],void 0,ve(Ln)),n=_e();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 Dn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return En(t)}var Fn=Wt,jn=function(e){return"theme"!==e},Bn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Fn:jn},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 hn(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||Bn(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 _=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(Ln)}"string"==typeof e.className?i=_n(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var _=En(d.concat(u),t.registered,p);i+=t.key+"-"+_.name,void 0!==o&&(i+=" "+o);var h=l&&void 0===c?Bn(n):s,m={};for(var v in e)l&&"as"===v||h(v)&&(m[v]=e[v]);return m.className=i,r&&(m.ref=r),g(w,null,g(qn,{cache:t,serialized:_,isStringTag:"string"==typeof n}),g(n,m))}));return _.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=a,_.__emotion_styles=d,_.__emotion_forwardProp=c,Object.defineProperty(_,"toString",{value:function(){return"."+o}}),_.withComponent=function(t,n){return e(t,Le({},r,n,{shouldForwardProp:Vn(_,n,!0)})).apply(void 0,d)},_}}.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 Yn=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))"}}),Xn=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 Jn(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 Kn=w;function Qn(e,t,r){return In.call(t,"css")?Jn(Un,Hn(e,t),r):Jn(e,t,r)}function eo(e,t,r){return In.call(t,"css")?Jn(Un,Hn(e,t),r):Jn(e,t,r)}const to=e=>{const[t,r]=ue(!1);((e,t)=>{const r=_e();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(Yn,{onClick:async()=>{r(!0),await e.onClick()||r(!1)},disabled:t,children:t?eo(Kn,{children:[Qn(Xn,{}),Qn("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):Qn(Kn,{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}))})})})]})},oo=e=>{const[t,r]=ue("");return eo("div",{css:{display:"flex",flexDirection:"row",gap:"1rem","@media (min-width: 640px)":{marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginRight:"0px"}},children:[eo("div",{css:{maxWidth:"28rem",flexGrow:"1"},children:[Qn("label",{for:"search",css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:"Search"}),Qn("div",{css:{marginTop:"0.25rem"},children:Qn("input",{css:{display:"block",width:"100%",borderRadius:"0.375rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",padding:"0.5rem","--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)",":focus":{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--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"}},name:"search",id:"search",placeholder:"First Name, Middle Name, Last Name or Email Id.",type:"text",value:t,onChange:e=>{return t=e.currentTarget.value,void r(t);var t},required:!0})})]}),Qn("div",{css:{paddingTop:"1.5rem"},children:Qn("div",{css:{display:"flex",justifyContent:"flex-end"},children:Qn(Yn,{type:"search",onClick:()=>e.onSearch(t),children:"Search"})})}),Qn("div",{css:{maxWidth:"28rem",flexGrow:"1"},children:e.error&&Qn("h3",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:e.error})})]})},io=e=>Qn("div",{css:{marginTop:"1rem",display:"flex",flexDirection:"column"},children:Qn("div",{css:{marginTop:"-0.5rem",marginBottom:"-0.5rem","@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",borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))","--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, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},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(229 231 235 / var(--tw-divide-opacity))"}},children:[Qn("thead",{children:eo("tr",{children:[Qn("th",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"0.75rem",paddingBottom:"0.75rem",textAlign:"left",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",textTransform:"uppercase",letterSpacing:"0.05em","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Profile Id"}),Qn("th",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"0.75rem",paddingBottom:"0.75rem",textAlign:"left",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",textTransform:"uppercase",letterSpacing:"0.05em","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Name"}),Qn("th",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"0.75rem",paddingBottom:"0.75rem",textAlign:"left",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",textTransform:"uppercase",letterSpacing:"0.05em","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Email"}),Qn("th",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",textAlign:"left",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",textTransform:"uppercase",letterSpacing:"0.05em","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"External Id"}),Qn("th",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"left",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",textTransform:"uppercase",letterSpacing:"0.05em","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Catch E Id"})]})}),Qn("tbody",{children:e.profiles.map(((e,t)=>eo("tr",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:[Qn("td",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem"},children:e.id}),Qn("td",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem"},children:e.name}),Qn("td",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem"},children:e.email}),Qn("td",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem"},children:e.externalId}),Qn("td",{css:{whiteSpace:"nowrap",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem"},children:e.catchEId})]},t)))})]})})})})});let ao;const co=e=>ao=D({...e,backend:{...e.backend,url:e.backend.url.replace(/\/?$/,"")}}),so=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`}},lo=()=>{const[e,t]=ue([]),[r,n]=ue(),o=ve(ao);return eo("div",{children:[Qn(oo,{onSearch: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}/profiles/search?search=${r}`,"GET"))(r,o.account.accountId,e);t(i)}catch(r){n(await so(r))}}}),Qn("div",{children:Qn("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:r})}),Qn(io,{profiles:e})]})},uo=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],po=e=>{switch(e){case"search":return Qn(lo,{});case"linkedProfiles":return Qn("div",{children:"Coming soon..."})}},fo=()=>{const[e,t]=ue("search");return eo(Kn,{children:[Qn(no,{tabs:uo,currentTabId:e,onChange:t}),Qn("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:po(e)})]})},_o=e=>{const[t,r]=ue(),[n,o]=ue({status:"NotLinked",message:"Access Denied"}),[i]=ue(Oe.create(e.accessToken)),[a,c]=ue("Loading");co({backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}}),co({backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}}),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 so(t)),c("Error")}})()}),[e.accessToken,e.accountId,e.backendUrl,i]),pe((()=>{i&&!i.isAuthorized&&(r("Access Denied"),c("Error"))}),[i]);const s=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 so(t)),c("Error"),!1}},l=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}},u=()=>{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(fo,{});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:s,onCheck:l,onTimeout:u,checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})}},ho=Dn({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(w,{children:[Qn(Wn,{styles:Dn`
2
- ${{"*, ::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"}}}
3
- `}),Qn(Wn,{styles:ho})]});!function(e,t,r){function n(){var t=Reflect.construct(HTMLElement,[],n);return t._vdomComponent=e,t._root=t,t}(n.prototype=Object.create(HTMLElement.prototype)).constructor=n,n.prototype.connectedCallback=V,n.prototype.attributeChangedCallback=G,n.prototype.disconnectedCallback=Y,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),n.observedAttributes=r,r.forEach((function(e){Object.defineProperty(n.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,n)}((e=>{const t=_e(null),{EmotionProvider:r}=((e,t)=>{const[r,n]=ue();return pe((()=>{if(t&&t.current){const r=t=>{document.getElementsByTagName(e).length>0?t():requestAnimationFrame((()=>r(t)))};r((()=>{n(Dr({container:t.current,key:e}))}))}}),[e,t]),{EmotionProvider:({children:e})=>r?Qn($n,{value:r,children:e}):Qn(Kn,{})}})("superhero-salpac-profile-admin",t);return eo(Kn,{children:[Qn("head",{ref:t}),eo(r,{children:[Qn(mo,{}),Qn("body",{children:Qn(_o,{...e})})]})]})}),"superhero-salpac-profile-admin",["backend-url","access-token"])}();
1
+ (()=>{"use strict";var e,n,t,r,o,i,c,a,l={},u=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _(e,n){for(var t in n)e[t]=n[t];return e}function f(e){var n=e.parentNode;n&&n.removeChild(e)}function p(n,t,r){var o,i,c,a={};for(c in t)"key"==c?o=t[c]:"ref"==c?i=t[c]:a[c]=t[c];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof n&&null!=n.defaultProps)for(c in n.defaultProps)void 0===a[c]&&(a[c]=n.defaultProps[c]);return d(n,a,o,i,null)}function d(e,r,o,i,c){var a={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==c?++t:c};return null==c&&null!=n.vnode&&n.vnode(a),a}function h(e){return e.children}function v(e,n){this.props=e,this.context=n}function y(e,n){if(null==n)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?y(e):null}function b(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return b(e)}}function m(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!g.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||i)(g)}function g(){var e,n,t,o,i,a,l,u;for(r.sort(c);e=r.shift();)e.__d&&(n=r.length,o=void 0,i=void 0,l=(a=(t=e).__v).__e,(u=t.__P)&&(o=[],(i=_({},a)).__v=a.__v+1,E(u,a,i,t.__n,void 0!==u.ownerSVGElement,null!=a.__h?[l]:null,o,null==l?y(a):l,a.__h),U(o,a),a.__e!=l&&b(a)),r.length>n&&r.sort(c));g.__r=0}function w(e,n,t,r,o,i,c,a,s,_){var f,p,v,b,m,g,w,x=r&&r.__k||u,S=x.length;for(t.__k=[],f=0;f<n.length;f++)if(null!=(b=t.__k[f]=null==(b=n[f])||"boolean"==typeof b||"function"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?d(null,b,null,null,b):Array.isArray(b)?d(h,{children:b},null,null,null):b.__b>0?d(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)){if(b.__=t,b.__b=t.__b+1,null===(v=x[f])||v&&b.key==v.key&&b.type===v.type)x[f]=void 0;else for(p=0;p<S;p++){if((v=x[p])&&b.key==v.key&&b.type===v.type){x[p]=void 0;break}v=null}E(e,b,v=v||l,o,i,c,a,s,_),m=b.__e,(p=b.ref)&&v.ref!=p&&(w||(w=[]),v.ref&&w.push(v.ref,null,b),w.push(p,b.__c||m,b)),null!=m?(null==g&&(g=m),"function"==typeof b.type&&b.__k===v.__k?b.__d=s=k(b,s,e):s=C(e,b,v,x,m,s),"function"==typeof t.type&&(t.__d=s)):s&&v.__e==s&&s.parentNode!=e&&(s=y(v))}for(t.__e=g,f=S;f--;)null!=x[f]&&("function"==typeof t.type&&null!=x[f].__e&&x[f].__e==t.__d&&(t.__d=O(r).nextSibling),I(x[f],x[f]));if(w)for(f=0;f<w.length;f++)j(w[f],w[++f],w[++f])}function k(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?k(r,n,t):C(t,r,r,o,r.__e,n));return n}function x(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(e,n)})):n.push(e)),n}function C(e,n,t,r,o,i){var c,a,l;if(void 0!==n.__d)c=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),c=null;else{for(a=i,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==o)break e;e.insertBefore(o,i),c=i}return void 0!==c?c:o.nextSibling}function O(e){var n,t,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(n=e.__k.length-1;n>=0;n--)if((t=e.__k[n])&&(r=O(t)))return r;return null}function S(e,n,t){"-"===n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":"number"!=typeof t||s.test(n)?t:t+"px"}function P(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||S(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||S(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?T:N,i):e.removeEventListener(n,i?T:N,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==n&&"height"!==n&&"href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&"-"!==n[4]?e.removeAttribute(n):e.setAttribute(n,t))}}function N(e){return this.l[e.type+!1](n.event?n.event(e):e)}function T(e){return this.l[e.type+!0](n.event?n.event(e):e)}function E(e,t,r,o,i,c,a,l,u){var s,f,p,d,y,b,m,g,k,x,C,O,S,P,N,T=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(u=r.__h,l=t.__e=r.__e,t.__h=null,c=[l]),(s=n.__b)&&s(t);try{e:if("function"==typeof T){if(g=t.props,k=(s=T.contextType)&&o[s.__c],x=s?k?k.props.value:s.__:o,r.__c?m=(f=t.__c=r.__c).__=f.__E:("prototype"in T&&T.prototype.render?t.__c=f=new T(g,x):(t.__c=f=new v(g,x),f.constructor=T,f.render=H),k&&k.sub(f),f.props=g,f.state||(f.state={}),f.context=x,f.__n=o,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=T.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=_({},f.__s)),_(f.__s,T.getDerivedStateFromProps(g,f.__s))),d=f.props,y=f.state,f.__v=t,p)null==T.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==T.getDerivedStateFromProps&&g!==d&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(g,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(g,f.__s,x)||t.__v===r.__v){for(t.__v!==r.__v&&(f.props=g,f.state=f.__s,f.__d=!1),f.__e=!1,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),C=0;C<f._sb.length;C++)f.__h.push(f._sb[C]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(g,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(d,y,b)}))}if(f.context=x,f.props=g,f.__P=e,O=n.__r,S=0,"prototype"in T&&T.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(t),s=f.render(f.props,f.state,f.context),P=0;P<f._sb.length;P++)f.__h.push(f._sb[P]);f._sb=[]}else do{f.__d=!1,O&&O(t),s=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++S<25);f.state=f.__s,null!=f.getChildContext&&(o=_(_({},o),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(b=f.getSnapshotBeforeUpdate(d,y)),N=null!=s&&s.type===h&&null==s.key?s.props.children:s,w(e,Array.isArray(N)?N:[N],t,r,o,i,c,a,l,u),f.base=t.__e,t.__h=null,f.__h.length&&a.push(f),m&&(f.__E=f.__=null),f.__e=!1}else null==c&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=A(r.__e,t,r,o,i,c,a,u);(s=n.diffed)&&s(t)}catch(e){t.__v=null,(u||null!=c)&&(t.__e=l,t.__h=!!u,c[c.indexOf(l)]=null),n.__e(e,t,r)}}function U(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function A(n,t,r,o,i,c,a,u){var s,_,p,d=r.props,h=t.props,v=t.type,b=0;if("svg"===v&&(i=!0),null!=c)for(;b<c.length;b++)if((s=c[b])&&"setAttribute"in s==!!v&&(v?s.localName===v:3===s.nodeType)){n=s,c[b]=null;break}if(null==n){if(null===v)return document.createTextNode(h);n=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,h.is&&h),c=null,u=!1}if(null===v)d===h||u&&n.data===h||(n.data=h);else{if(c=c&&e.call(n.childNodes),_=(d=r.props||l).dangerouslySetInnerHTML,p=h.dangerouslySetInnerHTML,!u){if(null!=c)for(d={},b=0;b<n.attributes.length;b++)d[n.attributes[b].name]=n.attributes[b].value;(p||_)&&(p&&(_&&p.__html==_.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||P(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||P(e,i,n[i],t[i],r)}(n,h,d,i,u),p)t.__k=[];else if(b=t.props.children,w(n,Array.isArray(b)?b:[b],t,r,o,i&&"foreignObject"!==v,c,a,c?c[0]:r.__k&&y(r,0),u),null!=c)for(b=c.length;b--;)null!=c[b]&&f(c[b]);u||("value"in h&&void 0!==(b=h.value)&&(b!==n.value||"progress"===v&&!b||"option"===v&&b!==d.value)&&P(n,"value",b,d.value,!1),"checked"in h&&void 0!==(b=h.checked)&&b!==n.checked&&P(n,"checked",b,d.checked,!1))}return n}function j(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function I(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||j(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&I(o[i],t,r||"function"!=typeof e.type);r||null==e.__e||f(e.__e),e.__=e.__e=e.__d=void 0}function H(e,n,t){return this.constructor(e,t)}function D(t,r,o){var i,c,a;n.__&&n.__(t,r),c=(i="function"==typeof o)?null:o&&o.__k||r.__k,a=[],E(r,t=(!i&&o||r).__k=p(h,null,[t]),c||l,l,void 0!==r.ownerSVGElement,!i&&o?[o]:c?null:r.firstChild?e.call(r.childNodes):null,a,!i&&o?o:c?c.__e:r.firstChild,i),U(a,t)}function L(e,n){D(e,n,L)}function M(n,t,r){var o,i,c,a=_({},n.props);for(c in t)"key"==c?o=t[c]:"ref"==c?i=t[c]:a[c]=t[c];return arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),d(n.type,a,o||n.key,i||n.ref,null)}function W(){return(W=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function V(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return M(n,t)}function F(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(V,W({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,c=n.attributes,a=n.childNodes;for(i=c.length;i--;)"slot"!==c[i].name&&(o[c[i].name]=c[i].value,o[R(c[i].name)]=c[i].value);for(i=a.length;i--;){var l=e(a[i],null),u=a[i].slot;u?o[u]=p(B,{name:u},l):r[i]=l}var s=t?p(B,null,r):r;return p(t||n.nodeName.toLowerCase(),o,s)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?L:D)(this._vdom,this._root)}function R(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function G(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[R(e)]=t,this._vdom=M(this._vdom,r),D(this._vdom,this._root)}}function z(){D(this._vdom=null,this._root)}function B(e,n){var t=this;return p("slot",W({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}e=u.slice,n={__e:function(e,n,t,r){for(var o,i,c;n=n.__;)if((o=n.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),c=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),c=o.__d),c)return o.__E=o}catch(n){e=n}throw e}},t=0,v.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},t),this.props)),e&&_(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),m(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),m(this))},v.prototype.render=h,r=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,n){return e.__v.__b-n.__v.__b},g.__r=0,a=0;var $=0;function q(e,t,r,o,i,c){var a,l,u={};for(l in t)"ref"==l?a=t[l]:u[l]=t[l];var s={type:e,props:u,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--$,__source:i,__self:c};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===u[l]&&(u[l]=a[l]);return n.vnode&&n.vnode(s),s}var J,Z,K,Q,X=0,Y=[],ee=[],ne=n.__b,te=n.__r,re=n.diffed,oe=n.__c,ie=n.unmount;function ce(e,t){n.__h&&n.__h(Z,e,X||t),X=0;var r=Z.__H||(Z.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:ee}),r.__[e]}function ae(e){return X=1,function(e,n,t){var r=ce(J++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):ve(void 0,n),function(e){var n=r.__N?r.__N[0]:r.__[0],t=r.t(n,e);n!==t&&(r.__N=[t,r.__[1]],r.__c.setState({}))}],r.__c=Z,!Z.u)){var o=function(e,n,t){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,n,t);var c=!1;return o.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(c=!0)}})),!(!c&&r.__c.props===e)&&(!i||i.call(this,e,n,t))};Z.u=!0;var i=Z.shouldComponentUpdate,c=Z.componentWillUpdate;Z.componentWillUpdate=function(e,n,t){if(this.__e){var r=i;i=void 0,o(e,n,t),i=r}c&&c.call(this,e,n,t)},Z.shouldComponentUpdate=o}return r.__N||r.__}(ve,e)}function le(e,t){var r=ce(J++,3);!n.__s&&he(r.__H,t)&&(r.__=e,r.i=t,Z.__H.__h.push(r))}function ue(e,n){var t=ce(J++,7);return he(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function se(){for(var e;e=Y.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pe),e.__H.__h.forEach(de),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}}n.__b=function(e){Z=null,ne&&ne(e)},n.__r=function(e){te&&te(e),J=0;var n=(Z=e.__c).__H;n&&(K===Z?(n.__h=[],Z.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ee,e.__N=e.i=void 0}))):(n.__h.forEach(pe),n.__h.forEach(de),n.__h=[])),K=Z},n.diffed=function(e){re&&re(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Y.push(t)&&Q===n.requestAnimationFrame||((Q=n.requestAnimationFrame)||fe)(se)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ee&&(e.__=e.__V),e.i=void 0,e.__V=ee}))),K=Z=null},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(pe),e.__h=e.__h.filter((function(e){return!e.__||de(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(r,e.__v)}})),oe&&oe(e,t)},n.unmount=function(e){ie&&ie(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{pe(e)}catch(e){t=e}})),r.__H=void 0,t&&n.__e(t,r.__v))};var _e="function"==typeof requestAnimationFrame;function fe(e){var n,t=function(){clearTimeout(r),_e&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);_e&&(n=requestAnimationFrame(t))}function pe(e){var n=Z,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),Z=n}function de(e){var n=Z;e.__c=e.__(),Z=n}function he(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function ve(e,n){return"function"==typeof n?n(e):n}var ye,be=(ye=function(e,n){return ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},ye(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}ye(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),me=function(e){function n(t,r){var o=e.call(this,t)||this;return o._response=r,Object.setPrototypeOf(o,n.prototype),o}return be(n,e),Object.defineProperty(n.prototype,"response",{get:function(){return this._response},enumerable:!1,configurable:!0}),n}(Error),ge=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function c(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((r=r.apply(e,n||[])).next())}))},we=function(e,n){var t,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=n.call(e,c)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},ke=function(e,n){return function(t,r,o,i){return function(e,n,t,r,o){return function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function c(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((r=r.apply(e,n||[])).next())}))}(void 0,void 0,void 0,(function(){var i,c;return function(e,n){var t,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=n.call(e,c)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(a){switch(a.label){case 0:return[4,fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{authorization:"Bearer ".concat(t),"content-type":"application/json"},signal:(null===AbortSignal||void 0===AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)})];case 1:if(!(i=a.sent()).ok)throw new me("[API] Fetch error: ".concat(i.statusText,". Url: ").concat(n," ").concat(e),i);return o?(c={},[3,4]):[3,2];case 2:return[4,i.json()];case 3:c=a.sent(),a.label=4;case 4:return[2,c]}}))}))}(new URL("".concat(e).concat("/salary-packaging/admin/v1.0").concat(t)),r,n,o,i)}},xe=function(e,n){return ge(void 0,void 0,void 0,(function(){return we(this,(function(t){switch(t.label){case 0:return[4,e("/accounts/".concat(n,"/auth"),"GET")];case 1:return[2,t.sent()]}}))}))},Ce=function(e,n,t){return ge(void 0,void 0,void 0,(function(){return we(this,(function(r){switch(r.label){case 0:return[4,e("/accounts/".concat(n,"/profiles/search?search=").concat(t),"GET")];case 1:return[2,r.sent()]}}))}))},Oe=function(e){return ge(void 0,void 0,void 0,(function(){var n,t;return we(this,(function(r){switch(r.label){case 0:return(n=new Date).setUTCDate((new Date).getUTCDate()-2),(t=new Date).setUTCDate((new Date).getUTCDate()+2),[4,e("/ingest/clients","POST",{startDate:n.toISOString().split("T")[0],endDate:t.toISOString().split("T")[0]},!0)];case 1:return r.sent(),[2]}}))}))};function Se(e){this.message=e}Se.prototype=new Error,Se.prototype.name="InvalidCharacterError";var Pe="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new Se("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,r,o=0,i=0,c="";r=n.charAt(i++);~r&&(t=o%4?64*t+r:r,o++%4)?c+=String.fromCharCode(255&t>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return c};function Ne(e){this.message=e}Ne.prototype=new Error,Ne.prototype.name="InvalidTokenError";var Te=function(){function e(e){this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}return e.create=function(n){return new e(function(e,n){if("string"!=typeof e)throw new Ne("Invalid token specified");var t=!0===(n=n||{}).header?0:1;try{return JSON.parse(function(e){var n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Pe(e).replace(/(.)/g,(function(e,n){var t=n.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(n)}catch(e){return Pe(n)}}(e.split(".")[t]))}catch(e){throw new Ne("Invalid token specified: "+e.message)}}(n).roles||[])},e}(),Ee=function(){return Ee=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Ee.apply(this,arguments)};const Ue=function(e){return q("button",Ee({},e,{className:"ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 disabled:bg-gray-500 disabled:cursor-not-allowed hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{children:e.children}))};var Ae=function(){return Ae=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Ae.apply(this,arguments)};const je=function(){return q("svg",Ae({className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},{children:[q("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),q("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}))};function Ie(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function He(e){this.props=e}(He.prototype=new v).isPureReactComponent=!0,He.prototype.shouldComponentUpdate=function(e,n){return Ie(this.props,e)||Ie(this.state,n)};var De=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),De&&De(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var Le=n.__e;n.__e=function(e,n,t,r){if(e.then)for(var o,i=n;i=i.__;)if((o=i.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n);Le(e,n,t,r)};var Me=n.unmount;function We(e,n,t){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,n){for(var t in n)e[t]=n[t];return e}({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return We(e,n,t)}))),e}function Ve(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ve(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function Fe(){this.__u=0,this.t=null,this.__b=null}function Re(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function Ge(){this.u=null,this.o=null}n.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),Me&&Me(e)},(Fe.prototype=new v).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=Re(r.__v),i=!1,c=function(){i||(i=!0,t.__R=null,o?o(a):a())};t.__R=c;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ve(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(c,c)},Fe.prototype.componentWillUnmount=function(){this.t=[]},Fe.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=We(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&p(h,null,e.fallback);return o&&(o.__h=null),[p(h,null,n.__a?null:e.children),o]};var ze=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};(Ge.prototype=new v).__a=function(e){var n=this,t=Re(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),ze(n,e,r)):o()};t?t(i):i()}},Ge.prototype.render=function(e){this.u=null,this.o=new Map;var n=x(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},Ge.prototype.componentDidUpdate=Ge.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){ze(e,t,n)}))};var Be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,$e=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,qe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Je=/[A-Z0-9]/g,Ze="undefined"!=typeof document,Ke=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};v.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(v.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Qe=n.event;function Xe(){}function Ye(){return this.cancelBubble}function en(){return this.defaultPrevented}n.event=function(e){return Qe&&(e=Qe(e)),e.persist=Xe,e.isPropagationStopped=Ye,e.isDefaultPrevented=en,e.nativeEvent=e};var nn={enumerable:!1,configurable:!0,get:function(){return this.class}},tn=n.vnode;n.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,r={};for(var o in n){var i=n[o];if(!("value"===o&&"defaultValue"in n&&null==i||Ze&&"children"===o&&"noscript"===t||"class"===o||"className"===o)){var c=o.toLowerCase();"defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===c?o="ondblclick":"onchange"!==c||"input"!==t&&"textarea"!==t||Ke(n.type)?"onfocus"===c?o="onfocusin":"onblur"===c?o="onfocusout":qe.test(o)?o=c:-1===t.indexOf("-")&&$e.test(o)?o=o.replace(Je,"-$&").toLowerCase():null===i&&(i=void 0):c=o="oninput","oninput"===c&&r[o=c]&&(o="oninputCapture"),r[o]=i}}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=x(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=x(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",nn)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),e.props=r}(e),e.$$typeof=Be,tn&&tn(e)};var rn=n.__r;n.__r=function(e){rn&&rn(e),e.__c};var on=n.diffed;n.diffed=function(e){on&&on(e);var n=e.props,t=e.__e;null!=t&&"textarea"===e.type&&"value"in n&&n.value!==t.value&&(t.value=null==n.value?"":n.value)};const cn=function(e,n){var t=function(e){return X=5,ue((function(){return{current:e}}),[])}();le((function(){t.current=e}),[e]),le((function(){if(n){var e=setInterval((function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.call.apply(e,function(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}([t],n,!1))}),n);return function(){return clearInterval(e)}}}),[n])};var an=function(){return an=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},an.apply(this,arguments)},ln=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function c(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((r=r.apply(e,n||[])).next())}))},un=function(e,n){var t,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=n.call(e,c)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}};const sn=function(e){var n=ae(!1),t=n[0],r=n[1];return cn((function(){return ln(void 0,void 0,void 0,(function(){return un(this,(function(n){switch(n.label){case 0:return[4,e.onCheck()];case 1:return n.sent()&&r(!1),[2]}}))}))}),t?e.checkInterval:void 0),le((function(){if(t){var n=setTimeout((function(){t&&e.onTimeout(),r(!1)}),e.timeout);return function(){return clearTimeout(n)}}})),q(Ue,an({onClick:function(){return ln(void 0,void 0,void 0,(function(){return un(this,(function(n){switch(n.label){case 0:return r(!0),[4,e.onClick()];case 1:return n.sent()||r(!1),[2]}}))}))},disabled:t},{children:q(h,t?{children:[q(je,{}),q("span",{children:e.processingText})]}:{children:e.text})}))};var _n=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")},fn=function(){return fn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},fn.apply(this,arguments)};const pn=function(e){var n=e.tabs,t=e.currentTabId,r=e.onChange,o=ue((function(){return n.find((function(e){return e.id==t}))}),[n,t]);return q("div",{children:[q("div",fn({className:"sm:hidden"},{children:[q("label",fn({htmlFor:"tabs",className:"sr-only"},{children:"Select a tab"})),q("select",fn({id:"tabs",name:"tabs",defaultValue:null==o?void 0:o.id,onChange:function(e){return r(e.currentTarget.value)},className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"},{children:n.map((function(e){return q("option",{children:e.displayName},e.id)}))}))]})),q("div",fn({className:"hidden sm:block"},{children:q("div",fn({className:"border-b border-gray-200"},{children:q("nav",fn({"aria-label":"Tabs",className:"-mb-px flex space-x-8"},{children:n.map((function(e){return q("a",fn({onClick:(n=e.id,function(){r(n)}),"aria-current":e.id==(null==o?void 0:o.id)?"page":void 0,className:_n(e.id==(null==o?void 0:o.id)?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","whitespace-nowrap border-b-2 px-1 py-4 text-sm font-medium cursor-pointer")},{children:e.displayName}),e.id);var n}))}))}))}))]})};var dn=function(){return dn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},dn.apply(this,arguments)},hn=function(e){var n=ae(""),t=n[0],r=n[1];return q("div",dn({class:"flex flex-row gap-4 sm:-mr-6 lg:mr-0"},{children:[q("div",dn({className:"flex-grow max-w-md"},{children:[q("label",dn({for:"search",class:"block text-sm font-medium text-gray-700"},{children:"Search"})),q("div",dn({className:"mt-1"},{children:q("input",{class:"p-2 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",name:"search",id:"search",placeholder:"First Name, Middle Name, Last Name or Email Id.",type:"text",value:t,onChange:function(e){return function(e){r(e)}(e.currentTarget.value)},required:!0})}))]})),q("div",dn({className:"pt-6"},{children:q("div",dn({className:"flex justify-end"},{children:q(Ue,dn({type:"search",onClick:function(){return e.onSearch(t)}},{children:"Search"}))}))})),q("div",dn({className:"flex-grow max-w-md"},{children:e.error&&q("h3",dn({className:"text-red-500"},{children:e.error}))}))]}))},vn=function(){return vn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},vn.apply(this,arguments)};const yn=function(e){return q("div",vn({class:"flex flex-col mt-4"},{children:q("div",vn({class:"-my-2 sm:-mx-6 lg:-mx-8"},{children:q("div",vn({class:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"},{children:q("div",vn({class:"shadow overflow-hidden border-b border-gray-200"},{children:q("table",vn({class:"min-w-full divide-y divide-gray-200"},{children:[q("thead",{children:q("tr",{children:[q("th",vn({class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider whitespace-nowrap"},{children:"Profile Id"})),q("th",vn({class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider whitespace-nowrap"},{children:"Name"})),q("th",vn({class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider whitespace-nowrap"},{children:"Email"})),q("th",vn({class:"px-6 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider whitespace-nowrap"},{children:"External Id"})),q("th",vn({class:"px-6 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider whitespace-nowrap"},{children:"Catch E Id"}))]})}),q("tbody",{children:e.profiles.map((function(e,n){var t="px-6 py-4 whitespace-nowrap text-sm";return q("tr",vn({class:n%2==0?"bg-white":"bg-gray-50"},{children:[q("td",vn({class:t},{children:e.id})),q("td",vn({class:t},{children:e.name})),q("td",vn({class:t},{children:e.email})),q("td",vn({class:t},{children:e.externalId})),q("td",vn({class:t},{children:e.catchEId}))]}),n)}))})]}))}))}))}))}))};var bn,mn=function(){return mn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},mn.apply(this,arguments)},gn=function(e){return bn=function(e,n){var t={__c:n="__cC"+a++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some((function(e){e.__e=!0,m(e)}))},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}(mn(mn({},e),{backend:mn(mn({},e.backend),{url:e.backend.url.replace(/\/?$/,"")})}))},wn=function(e){return function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function c(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((r=r.apply(e,n||[])).next())}))}(void 0,void 0,void 0,(function(){return function(e,n){var t,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=n.call(e,c)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:if(!(e instanceof me))return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.response.json()];case 2:return[2,n.sent().message||"".concat(e.response.status," error occurred")];case 3:return n.sent(),[2,"".concat(e.response.status," error occurred")];case 4:return[3,6];case 5:return[2,"Unexpected error occurred"];case 6:return[2]}}))}))},kn=function(){return kn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},kn.apply(this,arguments)};const xn=function(){var e=ae([]),n=e[0],t=e[1],r=ae(),o=r[0],i=r[1],c=function(e){var n=Z.context[e.__c],t=ce(J++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(Z)),n.props.value):e.__}(bn);return q("div",{children:[q(hn,{onSearch:function(e){return function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function c(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((r=r.apply(e,n||[])).next())}))}(void 0,void 0,void 0,(function(){var n,r,o,a;return function(e,n){var t,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=n.call(e,c)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,4]),i(void 0),n=ke(c.backend.url,c.backend.accessToken),[4,Ce(n,c.account.accountId,e)];case 1:return r=l.sent(),t(r),[3,4];case 2:return o=l.sent(),a=i,[4,wn(o)];case 3:return a.apply(void 0,[l.sent()]),[3,4];case 4:return[2]}}))}))}}),q("div",{children:q("h1",kn({className:"text-red-500"},{children:o}))}),q(yn,{profiles:n})]})};var Cn=function(){return Cn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Cn.apply(this,arguments)},On=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],Sn=function(e){switch(e){case"search":return q(xn,{});case"linkedProfiles":return q("div",{children:"Coming soon..."})}};const Pn=function(){var e=ae("search"),n=e[0],t=e[1];return q(h,{children:[q(pn,{tabs:On,currentTabId:n,onChange:t}),q("div",Cn({className:"ml-4 mt-4"},{children:Sn(n)}))]})};var Nn=function(){return Nn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Nn.apply(this,arguments)},Tn=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function c(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(c,a)}l((r=r.apply(e,n||[])).next())}))},En=function(e,n){var t,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(l){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(t=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=n.call(e,c)}catch(e){a=[6,e],r=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}};!function(e,n,t){function r(){var n=Reflect.construct(HTMLElement,[],r);return n._vdomComponent=e,n._root=n,n}(r.prototype=Object.create(HTMLElement.prototype)).constructor=r,r.prototype.connectedCallback=F,r.prototype.attributeChangedCallback=G,r.prototype.disconnectedCallback=z,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),r.observedAttributes=t,t.forEach((function(e){Object.defineProperty(r.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define("superhero-salpac-profile-admin",r)}((function(e){var n=ae(),t=n[0],r=n[1],o=ae({status:"NotLinked",message:"Access Denied"}),i=o[0],c=o[1],a=ae(Te.create(e.accessToken))[0],l=ae("Loading"),u=l[0],s=l[1];switch(gn({backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}}),gn({backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}}),le((function(){Tn(void 0,void 0,void 0,(function(){var n,t,o,i;return En(this,(function(l){switch(l.label){case 0:if(!(a.isAuthorized&&e.backendUrl&&e.accessToken&&e.accountId))return[3,5];l.label=1;case 1:return l.trys.push([1,3,,5]),n=ke(e.backendUrl,e.accessToken),[4,xe(n,e.accountId)];case 2:return t=l.sent(),c(t),"Linked"===t.status?s("Main"):s("Unlinked"),[3,5];case 3:return o=l.sent(),i=r,[4,wn(o)];case 4:return i.apply(void 0,[l.sent()]),s("Error"),[3,5];case 5:return[2]}}))}))}),[e.accessToken,e.accountId,e.backendUrl,a]),le((function(){a&&!a.isAuthorized&&(r("Access Denied"),s("Error"))}),[a]),u){case"Loading":return q("h1",Nn({className:"text-gray-500"},{children:"Loading..."}));case"Main":return q(Pn,{});case"Error":return q("h1",Nn({className:"text-red-500"},{children:t}));case"Unlinked":return q("div",{children:[q("h1",Nn({className:"text-red-500 mb-4 ml-4"},{children:i.message})),q(sn,{onClick:function(){return Tn(void 0,void 0,void 0,(function(){var n,t,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,4]),n=ke(e.backendUrl,e.accessToken),[4,Oe(n)];case 1:return i.sent(),[2,!0];case 2:return t=i.sent(),o=r,[4,wn(t)];case 3:return o.apply(void 0,[i.sent()]),s("Error"),[2,!1];case 4:return[2]}}))}))},onCheck:function(){return Tn(void 0,void 0,void 0,(function(){var n,t;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),n=ke(e.backendUrl,e.accessToken),[4,xe(n,e.accountId)];case 1:return"Linked"===(t=r.sent()).status?(c(t),s("Main"),[2,!0]):i.status!==t.status||i.message!==t.message?(c(t),[2,!0]):[2,!1];case 2:return r.sent(),[2,!1];case 3:return[2]}}))}))},onTimeout:function(){r("Client sync took too long. Please confirm you have updated Catch-E correctly, refresh the page and try again. "),s("Error")},checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})}}),0,["backend-url","access-token"])})();
package/package.json CHANGED
@@ -1,65 +1,59 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-salpac-profile-admin",
3
- "version": "1.0.590",
3
+ "version": "1.0.591",
4
4
  "description": "Flare Superhero Profile Admin",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist/"
8
8
  ],
9
- "type": "module",
10
- "babelMacros": {
11
- "twin": {
12
- "preset": "emotion",
13
- "includeClassNames": true
14
- }
15
- },
16
9
  "scripts": {
17
- "dev": "vite",
18
- "build": "tsc && vite build",
19
- "preview": "npm run build && vite preview",
10
+ "start": "webpack serve --mode development",
11
+ "build": "webpack --mode production --node-env production",
20
12
  "test": "jest",
21
- "analyze": "npx vite-bundle-visualizer",
22
13
  "lint": "eslint src/**/*.{js,jsx,ts,tsx}",
23
- "lint:fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix",
24
- "prepare": "husky"
14
+ "lint:fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix"
25
15
  },
26
16
  "dependencies": {
27
- "@emotion/cache": "^11.13.1",
28
- "@emotion/css": "^11.13.4",
29
- "@emotion/react": "^11.13.3",
30
- "@emotion/styled": "^11.13.0",
31
- "@headlessui/react": "^2.2.0",
32
- "@heroicons/react": "^2.1.5",
33
- "jwt-decode": "^4.0.0",
34
- "preact": "^10.24.3",
35
- "preact-custom-element": "^4.3.0"
17
+ "@headlessui/react": "^1.7.14",
18
+ "@heroicons/react": "^2.0.10",
19
+ "jwt-decode": "^3.1.2",
20
+ "preact": "^10.10.1",
21
+ "preact-custom-element": "^4.2.1"
36
22
  },
37
23
  "devDependencies": {
38
- "@preact/preset-vite": "^2.9.1",
39
- "@tailwindcss/forms": "^0.5.9",
40
- "@testing-library/jest-dom": "^6.6.2",
24
+ "@babel/core": "^7.24.7",
25
+ "@babel/plugin-transform-react-jsx": "^7.24.7",
26
+ "@babel/plugin-transform-runtime": "^7.24.7",
27
+ "@babel/preset-env": "^7.24.7",
28
+ "@babel/preset-typescript": "^7.24.7",
29
+ "@svgr/webpack": "^6.3.1",
30
+ "@tailwindcss/forms": "^0.5.2",
31
+ "@testing-library/jest-dom": "^6.4.6",
41
32
  "@testing-library/preact": "^3.2.4",
42
- "@types/jest": "^29.5.14",
43
- "@types/preact-custom-element": "^4.0.4",
44
- "@typescript-eslint/eslint-plugin": "^8.12.2",
45
- "@typescript-eslint/parser": "^8.12.2",
46
- "babel-plugin-macros": "^3.1.0",
47
- "babel-plugin-twin": "^1.1.0",
48
- "eslint": "^8.57.0",
49
- "eslint-config-preact": "^1.5.0",
50
- "eslint-config-prettier": "^9.1.0",
51
- "eslint-plugin-jest": "^28.8.3",
52
- "eslint-plugin-prettier": "^5.2.1",
53
- "husky": "^9.1.6",
33
+ "@types/jest": "^29.5.12",
34
+ "@types/preact-custom-element": "^4.0.1",
35
+ "@typescript-eslint/eslint-plugin": "^5.33.0",
36
+ "@typescript-eslint/parser": "^5.33.0",
37
+ "autoprefixer": "^10.4.19",
38
+ "css-loader": "^6.7.1",
39
+ "cssnano": "^5.1.12",
40
+ "eslint": "^8.21.0",
41
+ "eslint-config-preact": "^1.3.0",
42
+ "eslint-config-prettier": "^8.5.0",
43
+ "eslint-plugin-prettier": "^4.2.1",
44
+ "html-webpack-plugin": "^5.5.0",
54
45
  "jest": "^29.7.0",
55
46
  "jest-environment-jsdom": "^29.7.0",
56
47
  "jest-preset-preact": "^4.1.1",
57
- "prettier": "^3.3.3",
58
- "tailwindcss": "^3.4.14",
59
- "terser": "^5.32.0",
60
- "ts-jest": "^29.2.5",
61
- "twin.macro": "^3.4.1",
62
- "typescript": "^5.6.2",
63
- "vite": "^5.4.3"
48
+ "postcss": "^8.4.39",
49
+ "postcss-loader": "^7.0.1",
50
+ "prettier": "^2.7.1",
51
+ "tailwindcss": "^3.4.4",
52
+ "ts-loader": "^9.3.1",
53
+ "ts-node": "^10.9.2",
54
+ "typescript": "^4.7.4",
55
+ "webpack": "^5.74.0",
56
+ "webpack-cli": "^4.10.0",
57
+ "webpack-dev-server": "^4.9.3"
64
58
  }
65
59
  }
package/dist/index.html DELETED
@@ -1,22 +0,0 @@
1
- <!-- This file is used for dev only. Does not get included in built files. -->
2
- <!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="utf-8" />
6
- <title>Superhero: Salpac Profile Admin</title>
7
- <style>
8
- body {
9
- margin: 0;
10
- }
11
- </style>
12
- <script type="module" crossorigin src="/superhero-salpac-profile-admin.js"></script>
13
- </head>
14
- <body>
15
- <superhero-salpac-profile-admin
16
- account-Id="CE55C2BD-E257-4B2C-9E91-2D52E10FEC24
17
- "
18
- backend-url="http://localhost:5173"
19
- access-token="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjNQYUs0RWZ5Qk5RdTNDdGpZc2EzWW1oUTVFMCJ9.eyJhdWQiOiJjZTI3Y2E4Ny0xNDA1LTQwZWUtYjNkNy0xNmRhZDFhNDBiMjMiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vMmRkMTVkZjItNzM0Yy00MWM1LWFlZGEtNGYxMGI0MmVjMTlkL3YyLjAiLCJpYXQiOjE3MzAzNDY0ODEsIm5iZiI6MTczMDM0NjQ4MSwiZXhwIjoxNzMwMzUwOTQzLCJhaW8iOiJBWFFBaS84WUFBQUFUaitsMW1ZanNkcE1RY1JnRi9aYzd2Mmo0ZUlMM3pYMkczWmJSNlZzSzhEME13YmJPd3gzYUdkWXA3cDZuUURVZHR4UXVHc2dtWno0SytZRzdIb2Z0T1h5SmxoTmV6clA3czBZclRCbFhEWnR3OFkvM044cHZQQmNvbVdzWk8yTWNEZFloN0RGdi9jbnNobnhCRHZHcUE9PSIsImF6cCI6ImNlMjdjYTg3LTE0MDUtNDBlZS1iM2Q3LTE2ZGFkMWE0MGIyMyIsImF6cGFjciI6IjAiLCJlbWFpbCI6ImdhdmluLmthdHpAZmxhcmVoci5jb20iLCJuYW1lIjoiR2F2aW4gS2F0eiIsIm9pZCI6IjM4NDhlMWFmLTU1NGItNGYyNS04ZTk1LWIyN2FiZDdhZWRlOCIsInByZWZlcnJlZF91c2VybmFtZSI6ImdhdmluLmthdHpAZmxhcmVoci5jb20iLCJyaCI6IjEuQVVJQThsM1JMVXh6eFVHdTJrOFF0QzdCbllmS0o4NEZGTzVBczljVzJ0R2tDeVBxQU05Q0FBLiIsInJvbGVzIjpbIkJlbmVmaXRzQXBwLkFjY2VzcyIsIlNhbGFyeVBhY2thZ2luZy5GaW5vcHMiLCJTYWxhcnlQYWNrYWdpbmcuQWNjZXNzIiwiQmVuZWZpdHNBcHAuRWRpdCIsIkJlbmVmaXRzUGxhbi5FZGl0Q29uZmlnIiwiQmVuZWZpdHNPbmJvYXJkaW5nLkFjY2VzcyIsIkJlbmVmaXRzT25ib2FyZGluZy5FZGl0Q29uZmlnIiwiQmVuZWZpdHNQbGFuLkFjY2VzcyIsIlN1cGVyaGVyby5Mb2dpbiIsIlByb21vdGVkQmVuZWZpdHMuQWNjZXNzIl0sInNjcCI6Ii5lODVlNWU2Yi1mMWZmLTRjMWItOTY4Yi1jNTllODI1NTUzY2UiLCJzdWIiOiJ0cXlyMVBSQ3owSkRiOEdfTzFud1Q4dzBsUTdBcG15Z3QtalBIZWFZQnVJIiwidGlkIjoiMmRkMTVkZjItNzM0Yy00MWM1LWFlZGEtNGYxMGI0MmVjMTlkIiwidXRpIjoiWHRHY25lYWZJMEtEUEJVRUpoWVpBQSIsInZlciI6IjIuMCJ9.HSDWA6OEL3PM_tLLy60NpewJNpoV86jV33osfW9DfTgsW381tD4JCy0hTEUtgwfQtj-onSNXnv7dsCULZ4pUYYjvtPhGe82zh5Yy2FSxYIiHDFINIbZU4gOmBrGJYrQM706KYRlGtxlh0BRBImLuk8dv9h--2CFMnEtKoa44FSU7dTBXmvB2xm9EF7AkU6dddH6rFanXEAdlziXJv6azfEHgcVDSSEpmOkLYZ4IsDQV1V9RAyKE8rKSFzuQQzF7_W0ci3331TE94V6nDrNygfzhT9Ccm0C3W31Cv0XA7EjXs5XOeyFxBTi1-YfsKqSM0xno76Y11HlGCVTgq3_WEtg">
20
- </superhero-salpac-profile-admin>
21
- </body>
22
- </html>