@flarehr/superhero-salpac-profile-admin 1.0.782 → 1.0.783

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__publicField=(e,t,r)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,r),__accessCheck=(e,t,r)=>t.has(e)||__typeError("Cannot "+r),__privateGet=(e,t,r)=>(__accessCheck(e,t,"read from private field"),r?r.call(e):t.get(e)),__privateAdd=(e,t,r)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),__privateSet=(e,t,r,n)=>(__accessCheck(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),__privateMethod=(e,t,r)=>(__accessCheck(e,t,"access private method"),r),__privateWrapper=(e,t,r,n)=>({set _(n){__privateSet(e,t,n,r)},get _(){return __privateGet(e,t,n)}});!function(){"use strict";var e,t,r,n,i,o,a,s,l,c,u,d,p,h,f,v,m,g,y,_,w,b,x,k,S,E,C,T,P,R,A,O,L,M,F,I,D,G,N,$,H,W,U,j,B,z,q,K,V,Q,Y,X,J,Z,ee,te,re,ne,ie,oe,ae,se,le,ce,ue,de,pe,he,fe,ve,me,ge,ye,_e,we,be,xe,ke,Se,Ee,Ce,Te,Pe,Re,Ae={},Oe=[],Le=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function Fe(e,t){for(var r in t)e[r]=t[r];return e}function Ie(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function De(e,t,r){var n,i,o,a={};for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?_e.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return Ge(e,a,n,i,null)}function Ge(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++be:i,__i:-1,__u:0};return null==i&&null!=we.vnode&&we.vnode(o),o}function Ne(){return{current:null}}function $e(e){return e.children}function He(e,t){this.props=e,this.context=t}function We(e,t){if(null==t)return e.__?We(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?We(e):null}function Ue(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 Ue(e)}}function je(e){(!e.__d&&(e.__d=!0)&&xe.push(e)&&!Be.__r++||ke!==we.debounceRendering)&&((ke=we.debounceRendering)||Se)(Be)}function Be(){var e,t,r,n,i,o,a,s;for(xe.sort(Ee);e=xe.shift();)e.__d&&(t=xe.length,n=void 0,o=(i=(r=e).__v).__e,a=[],s=[],r.__P&&((n=Fe({},i)).__v=i.__v+1,we.vnode&&we.vnode(n),Je(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?We(i):o,!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,Ze(a,n,s),n.__e!=o&&Ue(n)),xe.length>t&&xe.sort(Ee));Be.__r=0}function ze(e,t,r,n,i,o,a,s,l,c,u){var d,p,h,f,v,m=n&&n.__k||Oe,g=t.length;for(r.__d=l,function(e,t,r){var n,i,o,a,s,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],n=0;n<l;n++)null!=(i=t[n])&&"boolean"!=typeof i&&"function"!=typeof i?(a=n+d,(i=e.__k[n]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Ge(null,i,null,null,null):Me(i)?Ge($e,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Ge(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,-1!==(s=i.__i=Ve(i,r,a,u))&&(u--,(o=r[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s==a-1?d--:s==a+1?d++:(s>a?d--:d++,i.__u|=65536))):i=e.__k[n]=null;if(u)for(n=0;n<c;n++)null!=(o=r[n])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=We(o)),tt(o,o))}(r,t,m),l=r.__d,d=0;d<g;d++)null!=(h=r.__k[d])&&(p=-1===h.__i?Ae:m[h.__i]||Ae,h.__i=d,Je(e,h,p,i,o,a,s,l,c,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&et(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==v&&null!=f&&(v=f),65536&h.__u||p.__k===h.__k?l=qe(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=v}function qe(e,t,r){var n,i;if("function"==typeof e.type){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=qe(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=We(e)),r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ke(e,t){return t=t||[],null==e||"boolean"==typeof e||(Me(e)?e.some((function(e){Ke(e,t)})):t.push(e)),t}function Ve(e,t,r,n){var i=e.key,o=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return r;if(n>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function Qe(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||Le.test(t)?r:r+"px"}function Ye(e,t,r,n,i){var o;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||Qe(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Qe(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=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+o]=r,r?n?r.u=n.u:(r.u=Ce,e.addEventListener(t,o?Pe:Te,o)):e.removeEventListener(t,o?Pe:Te,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(a){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function Xe(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=Ce++;else if(t.t<r.u)return;return r(we.event?we.event(t):t)}}}function Je(e,t,r,n,i,o,a,s,l,c){var u,d,p,h,f,v,m,g,y,_,w,b,x,k,S,E,C=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(u=we.__b)&&u(t);e:if("function"==typeof C)try{if(g=t.props,y="prototype"in C&&C.prototype.render,_=(u=C.contextType)&&n[u.__c],w=u?_?_.props.value:u.__:n,r.__c?m=(d=t.__c=r.__c).__=d.__E:(y?t.__c=d=new C(g,w):(t.__c=d=new He(g,w),d.constructor=C,d.render=rt),_&&_.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Fe({},d.__s)),Fe(d.__s,C.getDerivedStateFromProps(g,d.__s))),h=d.props,f=d.state,d.__v=t,p)y&&null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==C.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,w),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,v)}))}if(d.context=w,d.props=g,d.__P=e,d.__e=!1,x=we.__r,k=0,y){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(n=Fe(Fe({},n),d.getChildContext())),y&&!p&&null!=d.getSnapshotBeforeUpdate&&(v=d.getSnapshotBeforeUpdate(h,f)),ze(e,Me(E=null!=u&&u.type===$e&&null==u.key?u.props.children:u)?E:[E],t,r,n,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||null!=o){for(t.__u|=l?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else t.__e=r.__e,t.__k=r.__k;we.__e(T,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,o,a,s,l){var c,u,d,p,h,f,v,m=r.props,g=t.props,y=t.type;if("svg"===y?i="http://www.w3.org/2000/svg":"math"===y?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(c=0;c<o.length;c++)if((h=o[c])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){e=h,o[c]=null;break}if(null==e){if(null===y)return document.createTextNode(g);e=document.createElementNS(i,y,g.is&&g),s&&(we.__m&&we.__m(t,o),s=!1),o=null}if(null===y)m===g||s&&e.data===g||(e.data=g);else{if(o=o&&_e.call(e.childNodes),m=r.props||Ae,!s&&null!=o)for(m={},c=0;c<e.attributes.length;c++)m[(h=e.attributes[c]).name]=h.value;for(c in m)if(h=m[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=h;else if(!(c in g)){if("value"==c&&"defaultValue"in g||"checked"==c&&"defaultChecked"in g)continue;Ye(e,c,null,h,i)}for(c in g)h=g[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?v=h:s&&"function"!=typeof h||m[c]===h||Ye(e,c,h,m[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),ze(e,Me(p)?p:[p],t,r,n,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&We(r,0),s,l),null!=o)for(c=o.length;c--;)Ie(o[c]);s||(c="value","progress"===y&&null==f?e.removeAttribute("value"):void 0!==f&&(f!==e[c]||"progress"===y&&!f||"option"===y&&f!==m[c])&&Ye(e,c,f,m[c],i),c="checked",void 0!==v&&v!==e[c]&&Ye(e,c,v,m[c],i))}return e}(r.__e,t,r,n,i,o,a,l,c);(u=we.diffed)&&u(t)}function Ze(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)et(r[n],r[++n],r[++n]);we.__c&&we.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(r){we.__e(r,t.__v)}}))}function et(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(i){we.__e(i,r)}}function tt(e,t,r){var n,i;if(we.unmount&&we.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||et(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){we.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&tt(n[i],t,r||"function"!=typeof e.type);r||Ie(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function rt(e,t,r){return this.constructor(e,r)}function nt(e,t,r){var n,i,o,a;we.__&&we.__(e,t),i=(n="function"==typeof r)?null:r&&r.__k||t.__k,o=[],a=[],Je(t,e=(!n&&r||t).__k=De($e,null,[e]),i||Ae,Ae,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?_e.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Ze(o,e,a)}function it(e,t){nt(e,t,it)}function ot(e,t,r){var n,i,o,a,s=Fe({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==o?n=t[o]:"ref"==o?i=t[o]:s[o]=void 0===t[o]&&void 0!==a?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?_e.call(arguments,2):r),Ge(e.type,s,n||e.key,i||e.ref,null)}function at(e,t){var r={__c:t="__cC"+Re++,__: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,je(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 st(){return(st=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=Oe.slice,we={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},be=0,He.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Fe({},this.state),"function"==typeof e&&(e=e(Fe({},r),this.props)),e&&Fe(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),je(this))},He.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),je(this))},He.prototype.render=$e,xe=[],Se="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ee=function(e,t){return e.__v.__b-t.__v.__b},Be.__r=0,Ce=0,Te=Xe(!1),Pe=Xe(!0),Re=0;var lt=["context","children"];function ct(e){return this.getChildContext=function(){return e.context},ot(e.children,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(e,lt))}function ut(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=De(ct,st({},this._props,{context:e.detail.context}),function e(t,r){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var n=[],i={},o=0,a=t.attributes,s=t.childNodes;for(o=a.length;o--;)"slot"!==a[o].name&&(i[a[o].name]=a[o].value,i[dt(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=De(ft,{name:c},l):n[o]=l}var u=r?De(ft,null,n):n;return De(r||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?it:nt)(this._vdom,this._root)}function dt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function pt(e,t,r){if(this._vdom){var n={};n[e]=r=null==r?void 0:r,n[dt(e)]=r,this._vdom=ot(this._vdom,n),nt(this._vdom,this._root)}}function ht(){nt(this._vdom=null,this._root)}function ft(e,t){var r=this;return De("slot",st({},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 vt,mt,gt,yt,_t=0,wt=[],bt=we,xt=bt.__b,kt=bt.__r,St=bt.diffed,Et=bt.__c,Ct=bt.unmount,Tt=bt.__;function Pt(e,t){bt.__h&&bt.__h(mt,e,_t||t),_t=0;var r=mt.__H||(mt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Rt(e){return _t=1,At(qt,e)}function At(e,t,r){var n=Pt(vt++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):qt(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=mt,!mt.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,r);var a=!1;return i.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)&&(!o||o.call(this,e,t,r))};mt.u=!0;var o=mt.shouldComponentUpdate,a=mt.componentWillUpdate;mt.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,i(e,t,r),o=n}a&&a.call(this,e,t,r)},mt.shouldComponentUpdate=i}return n.__N||n.__}function Ot(e,t){var r=Pt(vt++,3);!bt.__s&&zt(r.__H,t)&&(r.__=e,r.i=t,mt.__H.__h.push(r))}function Lt(e,t){var r=Pt(vt++,4);!bt.__s&&zt(r.__H,t)&&(r.__=e,r.i=t,mt.__h.push(r))}function Mt(e){return _t=5,It((function(){return{current:e}}),[])}function Ft(e,t,r){_t=6,Lt((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 It(e,t){var r=Pt(vt++,7);return zt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Dt(e,t){return _t=8,It((function(){return e}),t)}function Gt(e){var t=mt.context[e.__c],r=Pt(vt++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(mt)),t.props.value):e.__}function Nt(e,t){bt.useDebugValue&&bt.useDebugValue(t?t(e):e)}function $t(){var e=Pt(vt++,11);if(!e.__){for(var t=mt.__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 Ht(){for(var e;e=wt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jt),e.__H.__h.forEach(Bt),e.__H.__h=[]}catch(gu){e.__H.__h=[],bt.__e(gu,e.__v)}}bt.__b=function(e){mt=null,xt&&xt(e)},bt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Tt&&Tt(e,t)},bt.__r=function(e){kt&&kt(e),vt=0;var t=(mt=e.__c).__H;t&&(gt===mt?(t.__h=[],mt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(jt),t.__h.forEach(Bt),t.__h=[],vt=0)),gt=mt},bt.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==wt.push(t)&&yt===bt.requestAnimationFrame||((yt=bt.requestAnimationFrame)||Ut)(Ht)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),gt=mt=null},bt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(jt),e.__h=e.__h.filter((function(e){return!e.__||Bt(e)}))}catch(Zc){t.some((function(e){e.__h&&(e.__h=[])})),t=[],bt.__e(Zc,e.__v)}})),Et&&Et(e,t)},bt.unmount=function(e){Ct&&Ct(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{jt(e)}catch(r){t=r}})),r.__H=void 0,t&&bt.__e(t,r.__v))};var Wt="function"==typeof requestAnimationFrame;function Ut(e){var t,r=function(){clearTimeout(n),Wt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Wt&&(t=requestAnimationFrame(r))}function jt(e){var t=mt,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),mt=t}function Bt(e){var t=mt;e.__c=e.__(),mt=t}function zt(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function qt(e,t){return"function"==typeof t?t(e):t}class Kt extends Error{}function Vt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(r){return atob(t)}}Kt.prototype.name="InvalidTokenError";class Qt{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new Kt("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Kt(`Invalid token specified: missing part #${r+1}`);let i;try{i=Vt(n)}catch(Mc){throw new Kt(`Invalid token specified: invalid base64 for part #${r+1} (${Mc.message})`)}try{return JSON.parse(i)}catch(Mc){throw new Kt(`Invalid token specified: invalid json for part #${r+1} (${Mc.message})`)}}(e):{roles:[]};return new Qt(t.roles)}}var Yt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xt="undefined"==typeof window||"Deno"in globalThis;function Jt(){}function Zt(e){return"number"==typeof e&&e>=0&&e!==1/0}function er(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tr(e,t){return"function"==typeof e?e(t):e}function rr(e,t){return"function"==typeof e?e(t):e}function nr(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==or(a,t.options))return!1}else if(!sr(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function ir(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(ar(t.options.mutationKey)!==ar(o))return!1}else if(!sr(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&!(i&&!i(t))}function or(e,t){return((null==t?void 0:t.queryKeyHashFn)||ar)(e)}function ar(e){return JSON.stringify(e,((e,t)=>dr(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function sr(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!sr(e[r],t[r]))))}function lr(e,t){if(e===t)return e;const r=ur(e)&&ur(t);if(r||dr(e)&&dr(t)){const n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),a=o.length,s=r?[]:{};let l=0;for(let c=0;c<a;c++){const i=r?c:o[c];(!r&&n.includes(i)||r)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=lr(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function cr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function ur(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dr(e){if(!pr(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!pr(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function pr(e){return"[object Object]"===Object.prototype.toString.call(e)}function hr(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?lr(e,t):t}function fr(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function vr(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var mr=Symbol();function gr(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==mr?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var yr=new(n=class extends Yt{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,r),__privateSet(this,r,(e=>{if(!Xt&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,r))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var n;__privateSet(this,r,e),null==(n=__privateGet(this,t))||n.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,r=new WeakMap,n),_r=new(s=class extends Yt{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,a),__privateSet(this,a,(e=>{if(!Xt&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}))}onSubscribe(){__privateGet(this,o)||this.setEventListener(__privateGet(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,void 0))}setEventListener(e){var t;__privateSet(this,a,e),null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,a=new WeakMap,s);function wr(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch((()=>{})),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function br(e){return Math.min(1e3*2**e,3e4)}function xr(e){return"online"!==(e??"online")||_r.isOnline()}var kr=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function Sr(e){return e instanceof kr}function Er(e){let t,r=!1,n=0,i=!1;const o=wr(),a=()=>yr.isFocused()&&("always"===e.networkMode||_r.isOnline())&&e.canRun(),s=()=>xr(e.networkMode)&&e.canRun(),l=r=>{var n;i||(i=!0,null==(n=e.onSuccess)||n.call(e,r),null==t||t(),o.resolve(r))},c=r=>{var n;i||(i=!0,null==(n=e.onError)||n.call(e,r),null==t||t(),o.reject(r))},u=()=>new Promise((r=>{var n;t=e=>{(i||a())&&r(e)},null==(n=e.onPause)||n.call(e)})).then((()=>{var r;t=void 0,i||null==(r=e.onContinue)||r.call(e)})),d=()=>{if(i)return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var o;if(i)return;const s=e.retry??(Xt?0:3),l=e.retryDelay??br,p="function"==typeof l?l(n,t):l,h=!0===s||"number"==typeof s&&n<s||"function"==typeof s&&s(n,t);var f;!r&&h?(n++,null==(o=e.onFail)||o.call(e,n,t),(f=p,new Promise((e=>{setTimeout(e,f)}))).then((()=>a()?void 0:u())).then((()=>{r?c(t):d()}))):c(t)}))};return{promise:o,cancel:t=>{var r;i||(c(new kr(t)),null==(r=e.abort)||r.call(e))},continue:()=>(null==t||t(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var Cr=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=e=>setTimeout(e,0);const o=n=>{t?e.push(n):i((()=>{r(n)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}(),Tr=(c=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zt(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xt?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,c),Pr=(y=class extends Tr{constructor(e){super(),__privateAdd(this,m),__privateAdd(this,u),__privateAdd(this,d),__privateAdd(this,p),__privateAdd(this,h),__privateAdd(this,f),__privateAdd(this,v),__privateSet(this,v,!1),__privateSet(this,f,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,p,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??__privateGet(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,h))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,f),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,p).remove(this)}setData(e,t){const r=hr(this.state.data,e,this.options);return __privateMethod(this,m,g).call(this,{data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){__privateMethod(this,m,g).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,r;const n=null==(t=__privateGet(this,h))?void 0:t.promise;return null==(r=__privateGet(this,h))||r.cancel(e),n?n.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,u))}isActive(){return this.observers.some((e=>!1!==rr(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!er(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,h)&&(__privateGet(this,v)?__privateGet(this,h).cancel({revert:!0}):__privateGet(this,h).cancelRetry()),this.scheduleGc()),__privateGet(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,m,g).call(this,{type:"invalidate"})}fetch(e,t){var r,n,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,h))return __privateGet(this,h).continueRetry(),__privateGet(this,h).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(__privateSet(this,v,!0),o.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=gr(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return a(r),__privateSet(this,v,!1),this.options.persister?this.options.persister(e,r,this):e(r)}};a(s),null==(r=this.options.behavior)||r.onFetch(s,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(n=s.fetchOptions)?void 0:n.meta)||__privateMethod(this,m,g).call(this,{type:"fetch",meta:null==(i=s.fetchOptions)?void 0:i.meta});const l=e=>{var t,r,n,i;Sr(e)&&e.silent||__privateMethod(this,m,g).call(this,{type:"error",error:e}),Sr(e)||(null==(r=(t=__privateGet(this,p).config).onError)||r.call(t,e,this),null==(i=(n=__privateGet(this,p).config).onSettled)||i.call(n,this.state.data,e,this)),this.scheduleGc()};return __privateSet(this,h,Er({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,r,n,i;if(void 0!==e){try{this.setData(e)}catch(o){return void l(o)}null==(r=(t=__privateGet(this,p).config).onSuccess)||r.call(t,e,this),null==(i=(n=__privateGet(this,p).config).onSettled)||i.call(n,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,m,g).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,m,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,m,g).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),__privateGet(this,h).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,m=new WeakSet,g=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Rr(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Sr(r)&&r.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Cr.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,p).notify({query:this,type:"updated",action:e})}))},y);function Rr(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xr(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Ar=(w=class extends Yt{constructor(e={}){super(),__privateAdd(this,_),this.config=e,__privateSet(this,_,new Map)}build(e,t,r){const n=t.queryKey,i=t.queryHash??or(n,t);let o=this.get(i);return o||(o=new Pr({cache:this,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){__privateGet(this,_).has(e.queryHash)||(__privateGet(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,_).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Cr.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,_).get(e)}getAll(){return[...__privateGet(this,_).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>nr(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>nr(e,t))):t}notify(e){Cr.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Cr.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Cr.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},_=new WeakMap,w),Or=(C=class extends Tr{constructor(e){super(),__privateAdd(this,S),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,k),this.mutationId=e.mutationId,__privateSet(this,x,e.mutationCache),__privateSet(this,b,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){__privateGet(this,b).includes(e)||(__privateGet(this,b).push(e),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,b,__privateGet(this,b).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var e;return(null==(e=__privateGet(this,k))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,r,n,i,o,a,s,l,c,u,d,p,h,f,v,m,g,y,_,w;__privateSet(this,k,Er({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,S,E).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,S,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,S,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const b="pending"===this.state.status,C=!__privateGet(this,k).canStart();try{if(!b){__privateMethod(this,S,E).call(this,{type:"pending",variables:e,isPaused:C}),await(null==(r=(t=__privateGet(this,x).config).onMutate)?void 0:r.call(t,e,this));const o=await(null==(i=(n=this.options).onMutate)?void 0:i.call(n,e));o!==this.state.context&&__privateMethod(this,S,E).call(this,{type:"pending",context:o,variables:e,isPaused:C})}const h=await __privateGet(this,k).start();return await(null==(a=(o=__privateGet(this,x).config).onSuccess)?void 0:a.call(o,h,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,h,e,this.state.context)),await(null==(u=(c=__privateGet(this,x).config).onSettled)?void 0:u.call(c,h,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,h,null,e,this.state.context)),__privateMethod(this,S,E).call(this,{type:"success",data:h}),h}catch(T){try{throw await(null==(f=(h=__privateGet(this,x).config).onError)?void 0:f.call(h,T,e,this.state.context,this)),await(null==(m=(v=this.options).onError)?void 0:m.call(v,T,e,this.state.context)),await(null==(y=(g=__privateGet(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(w=(_=this.options).onSettled)?void 0:w.call(_,void 0,T,e,this.state.context)),T}finally{__privateMethod(this,S,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},b=new WeakMap,x=new WeakMap,k=new WeakMap,S=new WeakSet,E=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Cr.batch((()=>{__privateGet(this,b).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:e})}))},C);var Lr=(R=class extends Yt{constructor(e={}){super(),__privateAdd(this,T),__privateAdd(this,P),this.config=e,__privateSet(this,T,new Map),__privateSet(this,P,Date.now())}build(e,t,r){const n=new Or({mutationCache:this,mutationId:++__privateWrapper(this,P)._,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){const t=Mr(e),r=__privateGet(this,T).get(t)??[];r.push(e),__privateGet(this,T).set(t,r),this.notify({type:"added",mutation:e})}remove(e){var t;const r=Mr(e);if(__privateGet(this,T).has(r)){const n=null==(t=__privateGet(this,T).get(r))?void 0:t.filter((t=>t!==e));n&&(0===n.length?__privateGet(this,T).delete(r):__privateGet(this,T).set(r,n))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const r=null==(t=__privateGet(this,T).get(Mr(e)))?void 0:t.find((e=>"pending"===e.state.status));return!r||r===e}runNext(e){var t;const r=null==(t=__privateGet(this,T).get(Mr(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==r?void 0:r.continue())??Promise.resolve()}clear(){Cr.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>ir(t,e)))}findAll(e={}){return this.getAll().filter((t=>ir(e,t)))}notify(e){Cr.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Cr.batch((()=>Promise.all(e.map((e=>e.continue().catch(Jt))))))}},T=new WeakMap,P=new WeakMap,R);function Mr(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function Fr(e){return{onFetch:(t,r)=>{var n,i,o,a,s;const l=t.options,c=null==(o=null==(i=null==(n=t.fetchOptions)?void 0:n.meta)?void 0:i.fetchMore)?void 0:o.direction,u=(null==(a=t.state.data)?void 0:a.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const f=async()=>{let r=!1;const n=gr(t.options,t.fetchOptions),i=async(e,i,o)=>{if(r)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const a={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};var s;s=a,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",(()=>{r=!0})),t.signal)});const l=await n(a),{maxPages:c}=t.options,u=o?vr:fr;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,i,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},r=(e?Dr:Ir)(l,t);p=await i(t,r,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:Ir(l,p);if(h>0&&null==e)break;p=await i(p,e),h++}while(h<t)}return p};t.options.persister?t.fetchFn=()=>{var e,n;return null==(n=(e=t.options).persister)?void 0:n.call(e,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=f}}}function Ir(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Dr(e,{pages:t,pageParams:r}){var n;return t.length>0?null==(n=e.getPreviousPageParam)?void 0:n.call(e,t[0],t,r[0],r):void 0}var Gr=(N=class{constructor(e={}){__privateAdd(this,A),__privateAdd(this,O),__privateAdd(this,L),__privateAdd(this,M),__privateAdd(this,F),__privateAdd(this,I),__privateAdd(this,D),__privateAdd(this,G),__privateSet(this,A,e.queryCache||new Ar),__privateSet(this,O,e.mutationCache||new Lr),__privateSet(this,L,e.defaultOptions||{}),__privateSet(this,M,new Map),__privateSet(this,F,new Map),__privateSet(this,I,0)}mount(){__privateWrapper(this,I)._++,1===__privateGet(this,I)&&(__privateSet(this,D,yr.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onFocus())}))),__privateSet(this,G,_r.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,I)._--,0===__privateGet(this,I)&&(null==(e=__privateGet(this,D))||e.call(this),__privateSet(this,D,void 0),null==(t=__privateGet(this,G))||t.call(this),__privateSet(this,G,void 0))}isFetching(e){return __privateGet(this,A).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).get(r.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=__privateGet(this,A).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(tr(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,A).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,A).get(n.queryHash),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==i?void 0:i.state.data);if(void 0!==o)return __privateGet(this,A).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Cr.batch((()=>__privateGet(this,A).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).get(r.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,A);Cr.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=__privateGet(this,A),n={type:"active",...e};return Cr.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Cr.batch((()=>__privateGet(this,A).findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(Jt).catch(Jt)}invalidateQueries(e={},t={}){return Cr.batch((()=>{if(__privateGet(this,A).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)}))}refetchQueries(e={},t){const r={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},n=Cr.batch((()=>__privateGet(this,A).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Jt)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(Jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=__privateGet(this,A).build(this,t);return r.isStaleByTime(tr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jt).catch(Jt)}fetchInfiniteQuery(e){return e.behavior=Fr(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jt).catch(Jt)}ensureInfiniteQueryData(e){return e.behavior=Fr(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _r.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,A)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,L)}setDefaultOptions(e){__privateSet(this,L,e)}setQueryDefaults(e,t){__privateGet(this,M).set(ar(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,M).values()];let r={};return t.forEach((t=>{sr(e,t.queryKey)&&(r={...r,...t.defaultOptions})})),r}setMutationDefaults(e,t){__privateGet(this,F).set(ar(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,F).values()];let r={};return t.forEach((t=>{sr(e,t.mutationKey)&&(r={...r,...t.defaultOptions})})),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,L).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=or(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===mr&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,L).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,A).clear(),__privateGet(this,O).clear()}},A=new WeakMap,O=new WeakMap,L=new WeakMap,M=new WeakMap,F=new WeakMap,I=new WeakMap,D=new WeakMap,G=new WeakMap,N),Nr=(ue=class extends Yt{constructor(e,t){super(),__privateAdd(this,ee),__privateAdd(this,$),__privateAdd(this,H),__privateAdd(this,W),__privateAdd(this,U),__privateAdd(this,j),__privateAdd(this,B),__privateAdd(this,z),__privateAdd(this,q),__privateAdd(this,K),__privateAdd(this,V),__privateAdd(this,Q),__privateAdd(this,Y),__privateAdd(this,X),__privateAdd(this,J),__privateAdd(this,Z,new Set),this.options=t,__privateSet(this,$,e),__privateSet(this,q,null),__privateSet(this,z,wr()),this.options.experimental_prefetchInRender||__privateGet(this,z).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,H).addObserver(this),$r(__privateGet(this,H),this.options)?__privateMethod(this,ee,te).call(this):this.updateResult(),__privateMethod(this,ee,oe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hr(__privateGet(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hr(__privateGet(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,ee,ae).call(this),__privateMethod(this,ee,se).call(this),__privateGet(this,H).removeObserver(this)}setOptions(e,t){const r=this.options,n=__privateGet(this,H);if(this.options=__privateGet(this,$).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof rr(this.options.enabled,__privateGet(this,H)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,ee,le).call(this),__privateGet(this,H).setOptions(this.options),r._defaulted&&!cr(this.options,r)&&__privateGet(this,$).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,H),observer:this});const i=this.hasListeners();i&&Wr(__privateGet(this,H),n,this.options,r)&&__privateMethod(this,ee,te).call(this),this.updateResult(t),!i||__privateGet(this,H)===n&&rr(this.options.enabled,__privateGet(this,H))===rr(r.enabled,__privateGet(this,H))&&tr(this.options.staleTime,__privateGet(this,H))===tr(r.staleTime,__privateGet(this,H))||__privateMethod(this,ee,re).call(this);const o=__privateMethod(this,ee,ne).call(this);!i||__privateGet(this,H)===n&&rr(this.options.enabled,__privateGet(this,H))===rr(r.enabled,__privateGet(this,H))&&o===__privateGet(this,J)||__privateMethod(this,ee,ie).call(this,o)}getOptimisticResult(e){const t=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),e),r=this.createResult(t,e);return function(e,t){if(!cr(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(__privateSet(this,U,r),__privateSet(this,B,this.options),__privateSet(this,j,__privateGet(this,H).state)),r}getCurrentResult(){return __privateGet(this,U)}trackResult(e,t){const r={};return Object.keys(e).forEach((n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),null==t||t(n),e[n])})})),r}trackProp(e){__privateGet(this,Z).add(e)}getCurrentQuery(){return __privateGet(this,H)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,$).defaultQueryOptions(e),r=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),t);return r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return __privateMethod(this,ee,te).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,U))))}createResult(e,t){var r;const n=__privateGet(this,H),i=this.options,o=__privateGet(this,U),a=__privateGet(this,j),s=__privateGet(this,B),l=e!==n?e.state:__privateGet(this,W),{state:c}=e;let u,d={...c},p=!1;if(t._optimisticResults){const r=this.hasListeners(),o=!r&&$r(e,t),a=r&&Wr(e,n,t,i);(o||a)&&(d={...d,...Rr(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:f,status:v}=d;if(t.select&&void 0!==d.data)if(o&&d.data===(null==a?void 0:a.data)&&t.select===__privateGet(this,K))u=__privateGet(this,V);else try{__privateSet(this,K,t.select),u=t.select(d.data),u=hr(null==o?void 0:o.data,u,t),__privateSet(this,V,u),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===v){let e;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(r=__privateGet(this,Q))?void 0:r.state.data,__privateGet(this,Q)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}void 0!==e&&(v="success",u=hr(null==o?void 0:o.data,e,t),p=!0)}__privateGet(this,q)&&(h=__privateGet(this,q),u=__privateGet(this,V),f=Date.now(),v="error");const m="fetching"===d.fetchStatus,g="pending"===v,y="error"===v,_=g&&m,w=void 0!==u,b={status:v,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===v,isError:y,isInitialLoading:_,isLoading:_,data:u,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:y&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:y&&w,isStale:Ur(e,t),refetch:this.refetch,promise:__privateGet(this,z)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},r=()=>{const e=__privateSet(this,z,b.promise=wr());t(e)},i=__privateGet(this,z);switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":"error"!==b.status&&b.data===i.value||r();break;case"rejected":"error"===b.status&&b.error===i.reason||r()}}return b}updateResult(e){const t=__privateGet(this,U),r=this.createResult(__privateGet(this,H),this.options);if(__privateSet(this,j,__privateGet(this,H).state),__privateSet(this,B,this.options),void 0!==__privateGet(this,j).data&&__privateSet(this,Q,__privateGet(this,H)),cr(r,t))return;__privateSet(this,U,r);const n={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!__privateGet(this,Z).size)return!0;const n=new Set(r??__privateGet(this,Z));return this.options.throwOnError&&n.add("error"),Object.keys(__privateGet(this,U)).some((e=>{const r=e;return __privateGet(this,U)[r]!==t[r]&&n.has(r)}))})()&&(n.listeners=!0),__privateMethod(this,ee,ce).call(this,{...n,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,ee,oe).call(this)}},$=new WeakMap,H=new WeakMap,W=new WeakMap,U=new WeakMap,j=new WeakMap,B=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,V=new WeakMap,Q=new WeakMap,Y=new WeakMap,X=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakSet,te=function(e){__privateMethod(this,ee,le).call(this);let t=__privateGet(this,H).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Jt)),t},re=function(){__privateMethod(this,ee,ae).call(this);const e=tr(this.options.staleTime,__privateGet(this,H));if(Xt||__privateGet(this,U).isStale||!Zt(e))return;const t=er(__privateGet(this,U).dataUpdatedAt,e);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,U).isStale||this.updateResult()}),t+1))},ne=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,H)):this.options.refetchInterval)??!1},ie=function(e){__privateMethod(this,ee,se).call(this),__privateSet(this,J,e),!Xt&&!1!==rr(this.options.enabled,__privateGet(this,H))&&Zt(__privateGet(this,J))&&0!==__privateGet(this,J)&&__privateSet(this,X,setInterval((()=>{(this.options.refetchIntervalInBackground||yr.isFocused())&&__privateMethod(this,ee,te).call(this)}),__privateGet(this,J)))},oe=function(){__privateMethod(this,ee,re).call(this),__privateMethod(this,ee,ie).call(this,__privateMethod(this,ee,ne).call(this))},ae=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},se=function(){__privateGet(this,X)&&(clearInterval(__privateGet(this,X)),__privateSet(this,X,void 0))},le=function(){const e=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),this.options);if(e===__privateGet(this,H))return;const t=__privateGet(this,H);__privateSet(this,H,e),__privateSet(this,W,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},ce=function(e){Cr.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,U))})),__privateGet(this,$).getQueryCache().notify({query:__privateGet(this,H),type:"observerResultsUpdated"})}))},ue);function $r(e,t){return function(e,t){return!1!==rr(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Hr(e,t,t.refetchOnMount)}function Hr(e,t,r){if(!1!==rr(t.enabled,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Ur(e,t)}return!1}function Wr(e,t,r,n){return(e!==t||!1===rr(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Ur(e,r)}function Ur(e,t){return!1!==rr(t.enabled,e)&&e.isStaleByTime(tr(t.staleTime,e))}var jr=(ye=class extends Yt{constructor(e,t){super(),__privateAdd(this,ve),__privateAdd(this,de),__privateAdd(this,pe),__privateAdd(this,he),__privateAdd(this,fe),__privateSet(this,de,e),this.setOptions(t),this.bindMethods(),__privateMethod(this,ve,me).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const r=this.options;this.options=__privateGet(this,de).defaultMutationOptions(e),cr(this.options,r)||__privateGet(this,de).getMutationCache().notify({type:"observerOptionsUpdated",mutation:__privateGet(this,he),observer:this}),(null==r?void 0:r.mutationKey)&&this.options.mutationKey&&ar(r.mutationKey)!==ar(this.options.mutationKey)?this.reset():"pending"===(null==(t=__privateGet(this,he))?void 0:t.state.status)&&__privateGet(this,he).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=__privateGet(this,he))||e.removeObserver(this)}onMutationUpdate(e){__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this,e)}getCurrentResult(){return __privateGet(this,pe)}reset(){var e;null==(e=__privateGet(this,he))||e.removeObserver(this),__privateSet(this,he,void 0),__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this)}mutate(e,t){var r;return __privateSet(this,fe,t),null==(r=__privateGet(this,he))||r.removeObserver(this),__privateSet(this,he,__privateGet(this,de).getMutationCache().build(__privateGet(this,de),this.options)),__privateGet(this,he).addObserver(this),__privateGet(this,he).execute(e)}},de=new WeakMap,pe=new WeakMap,he=new WeakMap,fe=new WeakMap,ve=new WeakSet,me=function(){var e;const t=(null==(e=__privateGet(this,he))?void 0:e.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};__privateSet(this,pe,{...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset})},ge=function(e){Cr.batch((()=>{var t,r,n,i,o,a,s,l;if(__privateGet(this,fe)&&this.hasListeners()){const c=__privateGet(this,pe).variables,u=__privateGet(this,pe).context;"success"===(null==e?void 0:e.type)?(null==(r=(t=__privateGet(this,fe)).onSuccess)||r.call(t,e.data,c,u),null==(i=(n=__privateGet(this,fe)).onSettled)||i.call(n,e.data,null,c,u)):"error"===(null==e?void 0:e.type)&&(null==(a=(o=__privateGet(this,fe)).onError)||a.call(o,e.error,c,u),null==(l=(s=__privateGet(this,fe)).onSettled)||l.call(s,void 0,e.error,c,u))}this.listeners.forEach((e=>{e(__privateGet(this,pe))}))}))},ye);function Br(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 zr(e,t){this.props=e,this.context=t}function qr(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:Br(this.props,e)}function n(t){return this.shouldComponentUpdate=r,De(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(zr.prototype=new He).isPureReactComponent=!0,zr.prototype.shouldComponentUpdate=function(e,t){return Br(this.props,e)||Br(this.state,t)};var Kr=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kr&&Kr(e)};var Vr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Qr(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=Vr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Yr=function(e,t){return null==e?null:Ke(Ke(e).map(t))},Xr={map:Yr,forEach:Yr,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ke},Jr=we.__e;we.__e=function(e,t,r,n){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t);Jr(e,t,r,n)};var Zr=we.unmount;function en(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 en(e,t,r)}))),e}function tn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return tn(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 rn(){this.__u=0,this.t=null,this.__b=null}function nn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function on(e){var t,r,n;function i(i){if(t||(t=e()).then((function(e){r=e.default||e}),(function(e){n=e})),n)throw n;if(!r)throw t;return De(r,i)}return i.displayName="Lazy",i.__f=!0,i}function an(){this.u=null,this.o=null}we.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Zr&&Zr(e)},(rn.prototype=new He).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var i=nn(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=tn(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)},rn.prototype.componentWillUnmount=function(){this.t=[]},rn.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]=en(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&De($e,null,e.fallback);return i&&(i.__u&=-33),[De($e,null,t.__a?null:e.children),i]};var sn=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 ln(e){return this.getChildContext=function(){return e.context},e.children}function cn(e){var t=this,r=e.i;t.componentWillUnmount=function(){nt(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)}}),nt(De(ln,{context:t.context},e.__v),t.l)}function un(e,t){var r=De(cn,{__v:e,i:t});return r.containerInfo=t,r}(an.prototype=new He).__a=function(e){var t=this,r=nn(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),sn(t,e,n)):i()};r?r(o):o()}},an.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ke(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},an.prototype.componentDidUpdate=an.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){sn(e,r,t)}))};var dn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pn=/^(?: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]/,hn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fn=/[A-Z0-9]/g,vn="undefined"!=typeof document,mn=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function gn(e,t,r){return null==t.__k&&(t.textContent=""),nt(e,t),"function"==typeof r&&r(),e?e.__c:null}function yn(e,t,r){return it(e,t),"function"==typeof r&&r(),e?e.__c:null}He.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(He.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var _n=we.event;function wn(){}function bn(){return this.cancelBubble}function xn(){return this.defaultPrevented}we.event=function(e){return _n&&(e=_n(e)),e.persist=wn,e.isPropagationStopped=bn,e.isDefaultPrevented=xn,e.nativeEvent=e};var kn,Sn={enumerable:!1,configurable:!0,get:function(){return this.class}},En=we.vnode;we.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},i=-1===r.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||vn&&"children"===o&&"noscript"===r||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==r&&"textarea"!==r||mn(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":hn.test(o)&&(o=s):s=o="oninput":i&&pn.test(o)?o=o.replace(fn,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&n[o=s]&&(o="oninputCapture"),n[o]=a}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=Ke(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==r&&null!=n.defaultValue&&(n.value=Ke(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",Sn)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=dn,En&&En(e)};var Cn=we.__r;we.__r=function(e){Cn&&Cn(e),kn=e.__c};var Tn=we.diffed;we.diffed=function(e){Tn&&Tn(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),kn=null};var Pn={ReactCurrentDispatcher:{current:{readContext:function(e){return kn.__n[e.__c].props.value},useCallback:Dt,useContext:Gt,useDebugValue:Nt,useDeferredValue:Hn,useEffect:Ot,useId:$t,useImperativeHandle:Ft,useInsertionEffect:Un,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Rt,useSyncExternalStore:Bn,useTransition:Wn}}};function Rn(e){return De.bind(null,e)}function An(e){return!!e&&e.$$typeof===dn}function On(e){return An(e)&&e.type===$e}function Ln(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Mn(e){return An(e)?ot.apply(null,arguments):e}function Fn(e){return!!e.__k&&(nt(null,e),!0)}function In(e){return e&&(e.base||1===e.nodeType&&e)||null}var Dn=function(e,t){return e(t)},Gn=function(e,t){return e(t)},Nn=$e;function $n(e){e()}function Hn(e){return e}function Wn(){return[!1,$n]}var Un=Lt,jn=An;function Bn(e,t){var r=t(),n=Rt({h:{__:r,v:t}}),i=n[0].h,o=n[1];return Lt((function(){i.__=r,i.v=t,zn(i)&&o({h:i})}),[e,r,t]),Ot((function(){return zn(i)&&o({h:i}),e((function(){zn(i)&&o({h:i})}))}),[e]),r}function zn(e){var t,r,n=e.v,i=e.__;try{var o=n();return!((t=i)===(r=o)&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(a){return!0}}var qn={useState:Rt,useId:$t,useReducer:At,useEffect:Ot,useLayoutEffect:Lt,useInsertionEffect:Un,useTransition:Wn,useDeferredValue:Hn,useSyncExternalStore:Bn,startTransition:$n,useRef:Mt,useImperativeHandle:Ft,useMemo:It,useCallback:Dt,useContext:Gt,useDebugValue:Nt,version:"18.3.1",Children:Xr,render:gn,hydrate:yn,unmountComponentAtNode:Fn,createPortal:un,createElement:De,createContext:at,createFactory:Rn,cloneElement:Mn,createRef:Ne,Fragment:$e,isValidElement:An,isElement:jn,isFragment:On,isMemo:Ln,findDOMNode:In,Component:He,PureComponent:zr,memo:qr,forwardRef:Qr,flushSync:Gn,unstable_batchedUpdates:Dn,StrictMode:Nn,Suspense:rn,SuspenseList:an,lazy:on,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pn};const Kn=Object.freeze(Object.defineProperty({__proto__:null,Children:Xr,Component:He,Fragment:$e,PureComponent:zr,StrictMode:Nn,Suspense:rn,SuspenseList:an,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pn,cloneElement:Mn,createContext:at,createElement:De,createFactory:Rn,createPortal:un,createRef:Ne,default:qn,findDOMNode:In,flushSync:Gn,forwardRef:Qr,hydrate:yn,isElement:jn,isFragment:On,isMemo:Ln,isValidElement:An,lazy:on,memo:qr,render:gn,startTransition:$n,unmountComponentAtNode:Fn,unstable_batchedUpdates:Dn,useCallback:Dt,useContext:Gt,useDebugValue:Nt,useDeferredValue:Hn,useEffect:Ot,useErrorBoundary:function(e){var t=Pt(vt++,10),r=Rt();return t.__=e,mt.componentDidCatch||(mt.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:$t,useImperativeHandle:Ft,useInsertionEffect:Un,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Rt,useSyncExternalStore:Bn,useTransition:Wn,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));var Vn=0;function Qn(e,t,r,n,i,o){t||(t={});var a,s,l=t;"ref"in t&&(a=t.ref,delete t.ref);var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Vn,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return we.vnode&&we.vnode(c),c}var Yn=at(void 0),Xn=e=>{const t=Gt(Yn);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Jn=({client:e,children:t})=>(Ot((()=>(e.mount(),()=>{e.unmount()})),[e]),Qn(Yn.Provider,{value:e,children:t})),Zn=at(!1);Zn.Provider;var ei=at(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function ti(e,t){return"function"==typeof e?e(...t):!!e}function ri(){}var ni=(e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()}));function ii(e,t,r){var n,i,o,a,s;const l=Xn(),c=Gt(Zn),u=Gt(ei),d=l.defaultQueryOptions(e);null==(i=null==(n=l.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||i.call(n,d),d._optimisticResults=c?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(d),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(d,u),(e=>{Ot((()=>{e.clearReset()}),[e])})(u);const p=!l.getQueryCache().get(d.queryHash),[h]=Rt((()=>new t(l,d))),f=h.getOptimisticResult(d);if(Bn(Dt((e=>{const t=c?ri:h.subscribe(Cr.batchCalls(e));return h.updateResult(),t}),[h,c]),(()=>h.getCurrentResult())),Ot((()=>{h.setOptions(d,{listeners:!1})}),[d,h]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(d,f))throw ni(d,h,u);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&ti(r,[e.error,n]))({result:f,errorResetBoundary:u,throwOnError:d.throwOnError,query:l.getQueryCache().get(d.queryHash)}))throw f.error;if(null==(a=null==(o=l.getDefaultOptions().queries)?void 0:o._experimental_afterQuery)||a.call(o,d,f),d.experimental_prefetchInRender&&!Xt&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,c)){const e=p?ni(d,h,u):null==(s=l.getQueryCache().get(d.queryHash))?void 0:s.promise;null==e||e.catch(ri).finally((()=>{h.updateResult()}))}return d.notifyOnChangeProps?f:h.trackResult(f)}function oi(e,t){return ii(e,Nr)}const ai=at({account:{accountId:""},backend:{url:"",accessToken:""}});class si extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,si.prototype)}get response(){return this._response}}const li=async(e,t,r,n)=>{const i=await fetch(e,{method:r,body:n?JSON.stringify(n):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.782",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!i.ok)throw new si(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},ci=async(e,t,r,n)=>{const i=await li(e,t,r,n);return await i.json()},ui=e=>{const t=Gt(ai);return It((()=>e(t)),[e,t])};let di;const pi=()=>{if(di)return di;return di=new Gr({defaultOptions:{queries:{retry:(e,t)=>{var r;return t instanceof si&&![401,403].includes((null==(r=t.response)?void 0:r.status)||0)}}}}),di},hi="linkedAccount",fi="linkedProfilesForAccount",vi="salaryPackagedItem",mi="checkProfileSearchAuthorization",gi="payrollAdvice",yi="invoices",_i="/salary-packaging/admin/v1.0",wi=e=>async()=>{const t=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/auth`);return ci(t,e.backend.accessToken,"GET")},bi=e=>async t=>{const r=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profile-search?search=${t}`);return ci(r,e.backend.accessToken,"GET")},xi=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const r=new Date;r.setUTCDate((new Date).getUTCDate()+2);const n=new URL(`${e.backend.url}${_i}/ingest/clients`);await li(n,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]})},ki=e=>async()=>{const t=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}`);return ci(t,e.backend.accessToken,"GET")},Si=e=>async()=>{const t=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profiles`);return ci(t,e.backend.accessToken,"GET")},Ei=e=>async t=>{const r=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profiles/${t}/unlink`);await li(r,e.backend.accessToken,"POST")},Ci=e=>async(t,r)=>{const n=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profiles/${t}/items/${r}`);return ci(n,e.backend.accessToken,"GET")},Ti=e=>async t=>{const r=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`);return ci(r,e.backend.accessToken,"GET")},Pi=e=>async()=>{const t=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/invoices`);return ci(t,e.backend.accessToken,"GET")},Ri=()=>({checkProfileSearchAuthorization:ui(wi),searchProfilesForAccount:ui(bi),ingestClient:ui(xi),linkedAccount:ui(ki),linkedProfilesForAccount:ui(Si),unlinkProfile:ui(Ei),salaryPackagedItem:ui(Ci),payrollAdvice:ui(Ti),invoices:ui(Pi)});var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.parse=function(e,t){const r=new Di,n=e.length;if(n<2)return r;const i=(null==t?void 0:t.decode)||$i;let o=0;do{const t=e.indexOf("=",o);if(-1===t)break;const a=e.indexOf(";",o),s=-1===a?n:a;if(t>s){o=e.lastIndexOf(";",t-1)+1;continue}const l=Gi(e,o,t),c=Ni(e,t,l),u=e.slice(l,c);if(void 0===r[u]){let n=Gi(e,t+1,s),o=Ni(e,s,n);const a=i(e.slice(n,o));r[u]=a}o=s+1}while(o<n);return r},Ai.serialize=function(e,t,r){const n=(null==r?void 0:r.encode)||encodeURIComponent;if(!Oi.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=n(t);if(!Li.test(i))throw new TypeError(`argument val is invalid: ${t}`);let o=e+"="+i;if(!r)return o;if(void 0!==r.maxAge){if(!Number.isInteger(r.maxAge))throw new TypeError(`option maxAge is invalid: ${r.maxAge}`);o+="; Max-Age="+r.maxAge}if(r.domain){if(!Mi.test(r.domain))throw new TypeError(`option domain is invalid: ${r.domain}`);o+="; Domain="+r.domain}if(r.path){if(!Fi.test(r.path))throw new TypeError(`option path is invalid: ${r.path}`);o+="; Path="+r.path}if(r.expires){if(!function(e){return"[object Date]"===Ii.call(e)}
1
+ var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__publicField=(e,t,r)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,r),__accessCheck=(e,t,r)=>t.has(e)||__typeError("Cannot "+r),__privateGet=(e,t,r)=>(__accessCheck(e,t,"read from private field"),r?r.call(e):t.get(e)),__privateAdd=(e,t,r)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),__privateSet=(e,t,r,n)=>(__accessCheck(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),__privateMethod=(e,t,r)=>(__accessCheck(e,t,"access private method"),r),__privateWrapper=(e,t,r,n)=>({set _(n){__privateSet(e,t,n,r)},get _(){return __privateGet(e,t,n)}});!function(){"use strict";var e,t,r,n,i,o,a,s,l,c,u,d,p,h,f,v,m,g,y,_,w,b,x,k,S,E,C,T,P,R,A,O,L,M,F,I,D,G,N,$,H,W,U,j,B,z,q,K,V,Q,Y,X,J,Z,ee,te,re,ne,ie,oe,ae,se,le,ce,ue,de,pe,he,fe,ve,me,ge,ye,_e,we,be,xe,ke,Se,Ee,Ce,Te,Pe,Re,Ae={},Oe=[],Le=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function Fe(e,t){for(var r in t)e[r]=t[r];return e}function Ie(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function De(e,t,r){var n,i,o,a={};for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?_e.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return Ge(e,a,n,i,null)}function Ge(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++be:i,__i:-1,__u:0};return null==i&&null!=we.vnode&&we.vnode(o),o}function Ne(){return{current:null}}function $e(e){return e.children}function He(e,t){this.props=e,this.context=t}function We(e,t){if(null==t)return e.__?We(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?We(e):null}function Ue(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 Ue(e)}}function je(e){(!e.__d&&(e.__d=!0)&&xe.push(e)&&!Be.__r++||ke!==we.debounceRendering)&&((ke=we.debounceRendering)||Se)(Be)}function Be(){var e,t,r,n,i,o,a,s;for(xe.sort(Ee);e=xe.shift();)e.__d&&(t=xe.length,n=void 0,o=(i=(r=e).__v).__e,a=[],s=[],r.__P&&((n=Fe({},i)).__v=i.__v+1,we.vnode&&we.vnode(n),Je(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?We(i):o,!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,Ze(a,n,s),n.__e!=o&&Ue(n)),xe.length>t&&xe.sort(Ee));Be.__r=0}function ze(e,t,r,n,i,o,a,s,l,c,u){var d,p,h,f,v,m=n&&n.__k||Oe,g=t.length;for(r.__d=l,function(e,t,r){var n,i,o,a,s,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],n=0;n<l;n++)null!=(i=t[n])&&"boolean"!=typeof i&&"function"!=typeof i?(a=n+d,(i=e.__k[n]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Ge(null,i,null,null,null):Me(i)?Ge($e,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Ge(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,-1!==(s=i.__i=Ve(i,r,a,u))&&(u--,(o=r[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s==a-1?d--:s==a+1?d++:(s>a?d--:d++,i.__u|=65536))):i=e.__k[n]=null;if(u)for(n=0;n<c;n++)null!=(o=r[n])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=We(o)),tt(o,o))}(r,t,m),l=r.__d,d=0;d<g;d++)null!=(h=r.__k[d])&&(p=-1===h.__i?Ae:m[h.__i]||Ae,h.__i=d,Je(e,h,p,i,o,a,s,l,c,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&et(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==v&&null!=f&&(v=f),65536&h.__u||p.__k===h.__k?l=qe(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=v}function qe(e,t,r){var n,i;if("function"==typeof e.type){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=qe(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=We(e)),r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ke(e,t){return t=t||[],null==e||"boolean"==typeof e||(Me(e)?e.some((function(e){Ke(e,t)})):t.push(e)),t}function Ve(e,t,r,n){var i=e.key,o=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return r;if(n>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function Qe(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||Le.test(t)?r:r+"px"}function Ye(e,t,r,n,i){var o;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||Qe(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Qe(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=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+o]=r,r?n?r.u=n.u:(r.u=Ce,e.addEventListener(t,o?Pe:Te,o)):e.removeEventListener(t,o?Pe:Te,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(a){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function Xe(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=Ce++;else if(t.t<r.u)return;return r(we.event?we.event(t):t)}}}function Je(e,t,r,n,i,o,a,s,l,c){var u,d,p,h,f,v,m,g,y,_,w,b,x,k,S,E,C=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(u=we.__b)&&u(t);e:if("function"==typeof C)try{if(g=t.props,y="prototype"in C&&C.prototype.render,_=(u=C.contextType)&&n[u.__c],w=u?_?_.props.value:u.__:n,r.__c?m=(d=t.__c=r.__c).__=d.__E:(y?t.__c=d=new C(g,w):(t.__c=d=new He(g,w),d.constructor=C,d.render=rt),_&&_.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Fe({},d.__s)),Fe(d.__s,C.getDerivedStateFromProps(g,d.__s))),h=d.props,f=d.state,d.__v=t,p)y&&null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==C.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,w),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,v)}))}if(d.context=w,d.props=g,d.__P=e,d.__e=!1,x=we.__r,k=0,y){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(n=Fe(Fe({},n),d.getChildContext())),y&&!p&&null!=d.getSnapshotBeforeUpdate&&(v=d.getSnapshotBeforeUpdate(h,f)),ze(e,Me(E=null!=u&&u.type===$e&&null==u.key?u.props.children:u)?E:[E],t,r,n,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||null!=o){for(t.__u|=l?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else t.__e=r.__e,t.__k=r.__k;we.__e(T,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,o,a,s,l){var c,u,d,p,h,f,v,m=r.props,g=t.props,y=t.type;if("svg"===y?i="http://www.w3.org/2000/svg":"math"===y?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(c=0;c<o.length;c++)if((h=o[c])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){e=h,o[c]=null;break}if(null==e){if(null===y)return document.createTextNode(g);e=document.createElementNS(i,y,g.is&&g),s&&(we.__m&&we.__m(t,o),s=!1),o=null}if(null===y)m===g||s&&e.data===g||(e.data=g);else{if(o=o&&_e.call(e.childNodes),m=r.props||Ae,!s&&null!=o)for(m={},c=0;c<e.attributes.length;c++)m[(h=e.attributes[c]).name]=h.value;for(c in m)if(h=m[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=h;else if(!(c in g)){if("value"==c&&"defaultValue"in g||"checked"==c&&"defaultChecked"in g)continue;Ye(e,c,null,h,i)}for(c in g)h=g[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?v=h:s&&"function"!=typeof h||m[c]===h||Ye(e,c,h,m[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),ze(e,Me(p)?p:[p],t,r,n,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&We(r,0),s,l),null!=o)for(c=o.length;c--;)Ie(o[c]);s||(c="value","progress"===y&&null==f?e.removeAttribute("value"):void 0!==f&&(f!==e[c]||"progress"===y&&!f||"option"===y&&f!==m[c])&&Ye(e,c,f,m[c],i),c="checked",void 0!==v&&v!==e[c]&&Ye(e,c,v,m[c],i))}return e}(r.__e,t,r,n,i,o,a,l,c);(u=we.diffed)&&u(t)}function Ze(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)et(r[n],r[++n],r[++n]);we.__c&&we.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(r){we.__e(r,t.__v)}}))}function et(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(i){we.__e(i,r)}}function tt(e,t,r){var n,i;if(we.unmount&&we.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||et(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){we.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&tt(n[i],t,r||"function"!=typeof e.type);r||Ie(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function rt(e,t,r){return this.constructor(e,r)}function nt(e,t,r){var n,i,o,a;we.__&&we.__(e,t),i=(n="function"==typeof r)?null:r&&r.__k||t.__k,o=[],a=[],Je(t,e=(!n&&r||t).__k=De($e,null,[e]),i||Ae,Ae,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?_e.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Ze(o,e,a)}function it(e,t){nt(e,t,it)}function ot(e,t,r){var n,i,o,a,s=Fe({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==o?n=t[o]:"ref"==o?i=t[o]:s[o]=void 0===t[o]&&void 0!==a?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?_e.call(arguments,2):r),Ge(e.type,s,n||e.key,i||e.ref,null)}function at(e,t){var r={__c:t="__cC"+Re++,__: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,je(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 st(){return(st=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=Oe.slice,we={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},be=0,He.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Fe({},this.state),"function"==typeof e&&(e=e(Fe({},r),this.props)),e&&Fe(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),je(this))},He.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),je(this))},He.prototype.render=$e,xe=[],Se="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ee=function(e,t){return e.__v.__b-t.__v.__b},Be.__r=0,Ce=0,Te=Xe(!1),Pe=Xe(!0),Re=0;var lt=["context","children"];function ct(e){return this.getChildContext=function(){return e.context},ot(e.children,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(e,lt))}function ut(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=De(ct,st({},this._props,{context:e.detail.context}),function e(t,r){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var n=[],i={},o=0,a=t.attributes,s=t.childNodes;for(o=a.length;o--;)"slot"!==a[o].name&&(i[a[o].name]=a[o].value,i[dt(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=De(ft,{name:c},l):n[o]=l}var u=r?De(ft,null,n):n;return De(r||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?it:nt)(this._vdom,this._root)}function dt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function pt(e,t,r){if(this._vdom){var n={};n[e]=r=null==r?void 0:r,n[dt(e)]=r,this._vdom=ot(this._vdom,n),nt(this._vdom,this._root)}}function ht(){nt(this._vdom=null,this._root)}function ft(e,t){var r=this;return De("slot",st({},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 vt,mt,gt,yt,_t=0,wt=[],bt=we,xt=bt.__b,kt=bt.__r,St=bt.diffed,Et=bt.__c,Ct=bt.unmount,Tt=bt.__;function Pt(e,t){bt.__h&&bt.__h(mt,e,_t||t),_t=0;var r=mt.__H||(mt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Rt(e){return _t=1,At(qt,e)}function At(e,t,r){var n=Pt(vt++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):qt(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=mt,!mt.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,r);var a=!1;return i.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)&&(!o||o.call(this,e,t,r))};mt.u=!0;var o=mt.shouldComponentUpdate,a=mt.componentWillUpdate;mt.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,i(e,t,r),o=n}a&&a.call(this,e,t,r)},mt.shouldComponentUpdate=i}return n.__N||n.__}function Ot(e,t){var r=Pt(vt++,3);!bt.__s&&zt(r.__H,t)&&(r.__=e,r.i=t,mt.__H.__h.push(r))}function Lt(e,t){var r=Pt(vt++,4);!bt.__s&&zt(r.__H,t)&&(r.__=e,r.i=t,mt.__h.push(r))}function Mt(e){return _t=5,It((function(){return{current:e}}),[])}function Ft(e,t,r){_t=6,Lt((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 It(e,t){var r=Pt(vt++,7);return zt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Dt(e,t){return _t=8,It((function(){return e}),t)}function Gt(e){var t=mt.context[e.__c],r=Pt(vt++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(mt)),t.props.value):e.__}function Nt(e,t){bt.useDebugValue&&bt.useDebugValue(t?t(e):e)}function $t(){var e=Pt(vt++,11);if(!e.__){for(var t=mt.__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 Ht(){for(var e;e=wt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jt),e.__H.__h.forEach(Bt),e.__H.__h=[]}catch(gu){e.__H.__h=[],bt.__e(gu,e.__v)}}bt.__b=function(e){mt=null,xt&&xt(e)},bt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Tt&&Tt(e,t)},bt.__r=function(e){kt&&kt(e),vt=0;var t=(mt=e.__c).__H;t&&(gt===mt?(t.__h=[],mt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(jt),t.__h.forEach(Bt),t.__h=[],vt=0)),gt=mt},bt.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==wt.push(t)&&yt===bt.requestAnimationFrame||((yt=bt.requestAnimationFrame)||Ut)(Ht)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),gt=mt=null},bt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(jt),e.__h=e.__h.filter((function(e){return!e.__||Bt(e)}))}catch(Zc){t.some((function(e){e.__h&&(e.__h=[])})),t=[],bt.__e(Zc,e.__v)}})),Et&&Et(e,t)},bt.unmount=function(e){Ct&&Ct(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{jt(e)}catch(r){t=r}})),r.__H=void 0,t&&bt.__e(t,r.__v))};var Wt="function"==typeof requestAnimationFrame;function Ut(e){var t,r=function(){clearTimeout(n),Wt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Wt&&(t=requestAnimationFrame(r))}function jt(e){var t=mt,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),mt=t}function Bt(e){var t=mt;e.__c=e.__(),mt=t}function zt(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function qt(e,t){return"function"==typeof t?t(e):t}class Kt extends Error{}function Vt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(r){return atob(t)}}Kt.prototype.name="InvalidTokenError";class Qt{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new Kt("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Kt(`Invalid token specified: missing part #${r+1}`);let i;try{i=Vt(n)}catch(Mc){throw new Kt(`Invalid token specified: invalid base64 for part #${r+1} (${Mc.message})`)}try{return JSON.parse(i)}catch(Mc){throw new Kt(`Invalid token specified: invalid json for part #${r+1} (${Mc.message})`)}}(e):{roles:[]};return new Qt(t.roles)}}var Yt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xt="undefined"==typeof window||"Deno"in globalThis;function Jt(){}function Zt(e){return"number"==typeof e&&e>=0&&e!==1/0}function er(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tr(e,t){return"function"==typeof e?e(t):e}function rr(e,t){return"function"==typeof e?e(t):e}function nr(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==or(a,t.options))return!1}else if(!sr(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function ir(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(ar(t.options.mutationKey)!==ar(o))return!1}else if(!sr(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&!(i&&!i(t))}function or(e,t){return((null==t?void 0:t.queryKeyHashFn)||ar)(e)}function ar(e){return JSON.stringify(e,((e,t)=>dr(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function sr(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!sr(e[r],t[r]))))}function lr(e,t){if(e===t)return e;const r=ur(e)&&ur(t);if(r||dr(e)&&dr(t)){const n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),a=o.length,s=r?[]:{};let l=0;for(let c=0;c<a;c++){const i=r?c:o[c];(!r&&n.includes(i)||r)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=lr(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function cr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function ur(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dr(e){if(!pr(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!pr(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function pr(e){return"[object Object]"===Object.prototype.toString.call(e)}function hr(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?lr(e,t):t}function fr(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function vr(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var mr=Symbol();function gr(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==mr?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var yr=new(n=class extends Yt{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,r),__privateSet(this,r,(e=>{if(!Xt&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,r))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var n;__privateSet(this,r,e),null==(n=__privateGet(this,t))||n.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,r=new WeakMap,n),_r=new(s=class extends Yt{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,a),__privateSet(this,a,(e=>{if(!Xt&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}))}onSubscribe(){__privateGet(this,o)||this.setEventListener(__privateGet(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,void 0))}setEventListener(e){var t;__privateSet(this,a,e),null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,a=new WeakMap,s);function wr(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch((()=>{})),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function br(e){return Math.min(1e3*2**e,3e4)}function xr(e){return"online"!==(e??"online")||_r.isOnline()}var kr=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function Sr(e){return e instanceof kr}function Er(e){let t,r=!1,n=0,i=!1;const o=wr(),a=()=>yr.isFocused()&&("always"===e.networkMode||_r.isOnline())&&e.canRun(),s=()=>xr(e.networkMode)&&e.canRun(),l=r=>{var n;i||(i=!0,null==(n=e.onSuccess)||n.call(e,r),null==t||t(),o.resolve(r))},c=r=>{var n;i||(i=!0,null==(n=e.onError)||n.call(e,r),null==t||t(),o.reject(r))},u=()=>new Promise((r=>{var n;t=e=>{(i||a())&&r(e)},null==(n=e.onPause)||n.call(e)})).then((()=>{var r;t=void 0,i||null==(r=e.onContinue)||r.call(e)})),d=()=>{if(i)return;let t;const o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var o;if(i)return;const s=e.retry??(Xt?0:3),l=e.retryDelay??br,p="function"==typeof l?l(n,t):l,h=!0===s||"number"==typeof s&&n<s||"function"==typeof s&&s(n,t);var f;!r&&h?(n++,null==(o=e.onFail)||o.call(e,n,t),(f=p,new Promise((e=>{setTimeout(e,f)}))).then((()=>a()?void 0:u())).then((()=>{r?c(t):d()}))):c(t)}))};return{promise:o,cancel:t=>{var r;i||(c(new kr(t)),null==(r=e.abort)||r.call(e))},continue:()=>(null==t||t(),o),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var Cr=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=e=>setTimeout(e,0);const o=n=>{t?e.push(n):i((()=>{r(n)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}(),Tr=(c=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zt(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xt?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,c),Pr=(y=class extends Tr{constructor(e){super(),__privateAdd(this,m),__privateAdd(this,u),__privateAdd(this,d),__privateAdd(this,p),__privateAdd(this,h),__privateAdd(this,f),__privateAdd(this,v),__privateSet(this,v,!1),__privateSet(this,f,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,p,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??__privateGet(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,h))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,f),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,p).remove(this)}setData(e,t){const r=hr(this.state.data,e,this.options);return __privateMethod(this,m,g).call(this,{data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){__privateMethod(this,m,g).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,r;const n=null==(t=__privateGet(this,h))?void 0:t.promise;return null==(r=__privateGet(this,h))||r.cancel(e),n?n.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,u))}isActive(){return this.observers.some((e=>!1!==rr(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!er(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,h)&&(__privateGet(this,v)?__privateGet(this,h).cancel({revert:!0}):__privateGet(this,h).cancelRetry()),this.scheduleGc()),__privateGet(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,m,g).call(this,{type:"invalidate"})}fetch(e,t){var r,n,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,h))return __privateGet(this,h).continueRetry(),__privateGet(this,h).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(__privateSet(this,v,!0),o.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=gr(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return a(r),__privateSet(this,v,!1),this.options.persister?this.options.persister(e,r,this):e(r)}};a(s),null==(r=this.options.behavior)||r.onFetch(s,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(n=s.fetchOptions)?void 0:n.meta)||__privateMethod(this,m,g).call(this,{type:"fetch",meta:null==(i=s.fetchOptions)?void 0:i.meta});const l=e=>{var t,r,n,i;Sr(e)&&e.silent||__privateMethod(this,m,g).call(this,{type:"error",error:e}),Sr(e)||(null==(r=(t=__privateGet(this,p).config).onError)||r.call(t,e,this),null==(i=(n=__privateGet(this,p).config).onSettled)||i.call(n,this.state.data,e,this)),this.scheduleGc()};return __privateSet(this,h,Er({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,r,n,i;if(void 0!==e){try{this.setData(e)}catch(o){return void l(o)}null==(r=(t=__privateGet(this,p).config).onSuccess)||r.call(t,e,this),null==(i=(n=__privateGet(this,p).config).onSettled)||i.call(n,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,m,g).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,m,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,m,g).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),__privateGet(this,h).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,m=new WeakSet,g=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Rr(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Sr(r)&&r.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Cr.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,p).notify({query:this,type:"updated",action:e})}))},y);function Rr(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xr(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Ar=(w=class extends Yt{constructor(e={}){super(),__privateAdd(this,_),this.config=e,__privateSet(this,_,new Map)}build(e,t,r){const n=t.queryKey,i=t.queryHash??or(n,t);let o=this.get(i);return o||(o=new Pr({cache:this,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){__privateGet(this,_).has(e.queryHash)||(__privateGet(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,_).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Cr.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,_).get(e)}getAll(){return[...__privateGet(this,_).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>nr(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>nr(e,t))):t}notify(e){Cr.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Cr.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Cr.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},_=new WeakMap,w),Or=(C=class extends Tr{constructor(e){super(),__privateAdd(this,S),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,k),this.mutationId=e.mutationId,__privateSet(this,x,e.mutationCache),__privateSet(this,b,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){__privateGet(this,b).includes(e)||(__privateGet(this,b).push(e),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,b,__privateGet(this,b).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var e;return(null==(e=__privateGet(this,k))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,r,n,i,o,a,s,l,c,u,d,p,h,f,v,m,g,y,_,w;__privateSet(this,k,Er({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,S,E).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,S,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,S,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const b="pending"===this.state.status,C=!__privateGet(this,k).canStart();try{if(!b){__privateMethod(this,S,E).call(this,{type:"pending",variables:e,isPaused:C}),await(null==(r=(t=__privateGet(this,x).config).onMutate)?void 0:r.call(t,e,this));const o=await(null==(i=(n=this.options).onMutate)?void 0:i.call(n,e));o!==this.state.context&&__privateMethod(this,S,E).call(this,{type:"pending",context:o,variables:e,isPaused:C})}const h=await __privateGet(this,k).start();return await(null==(a=(o=__privateGet(this,x).config).onSuccess)?void 0:a.call(o,h,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,h,e,this.state.context)),await(null==(u=(c=__privateGet(this,x).config).onSettled)?void 0:u.call(c,h,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,h,null,e,this.state.context)),__privateMethod(this,S,E).call(this,{type:"success",data:h}),h}catch(T){try{throw await(null==(f=(h=__privateGet(this,x).config).onError)?void 0:f.call(h,T,e,this.state.context,this)),await(null==(m=(v=this.options).onError)?void 0:m.call(v,T,e,this.state.context)),await(null==(y=(g=__privateGet(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(w=(_=this.options).onSettled)?void 0:w.call(_,void 0,T,e,this.state.context)),T}finally{__privateMethod(this,S,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},b=new WeakMap,x=new WeakMap,k=new WeakMap,S=new WeakSet,E=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Cr.batch((()=>{__privateGet(this,b).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:e})}))},C);var Lr=(R=class extends Yt{constructor(e={}){super(),__privateAdd(this,T),__privateAdd(this,P),this.config=e,__privateSet(this,T,new Map),__privateSet(this,P,Date.now())}build(e,t,r){const n=new Or({mutationCache:this,mutationId:++__privateWrapper(this,P)._,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){const t=Mr(e),r=__privateGet(this,T).get(t)??[];r.push(e),__privateGet(this,T).set(t,r),this.notify({type:"added",mutation:e})}remove(e){var t;const r=Mr(e);if(__privateGet(this,T).has(r)){const n=null==(t=__privateGet(this,T).get(r))?void 0:t.filter((t=>t!==e));n&&(0===n.length?__privateGet(this,T).delete(r):__privateGet(this,T).set(r,n))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const r=null==(t=__privateGet(this,T).get(Mr(e)))?void 0:t.find((e=>"pending"===e.state.status));return!r||r===e}runNext(e){var t;const r=null==(t=__privateGet(this,T).get(Mr(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==r?void 0:r.continue())??Promise.resolve()}clear(){Cr.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>ir(t,e)))}findAll(e={}){return this.getAll().filter((t=>ir(e,t)))}notify(e){Cr.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Cr.batch((()=>Promise.all(e.map((e=>e.continue().catch(Jt))))))}},T=new WeakMap,P=new WeakMap,R);function Mr(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function Fr(e){return{onFetch:(t,r)=>{var n,i,o,a,s;const l=t.options,c=null==(o=null==(i=null==(n=t.fetchOptions)?void 0:n.meta)?void 0:i.fetchMore)?void 0:o.direction,u=(null==(a=t.state.data)?void 0:a.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const f=async()=>{let r=!1;const n=gr(t.options,t.fetchOptions),i=async(e,i,o)=>{if(r)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const a={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};var s;s=a,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",(()=>{r=!0})),t.signal)});const l=await n(a),{maxPages:c}=t.options,u=o?vr:fr;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,i,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},r=(e?Dr:Ir)(l,t);p=await i(t,r,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:Ir(l,p);if(h>0&&null==e)break;p=await i(p,e),h++}while(h<t)}return p};t.options.persister?t.fetchFn=()=>{var e,n;return null==(n=(e=t.options).persister)?void 0:n.call(e,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=f}}}function Ir(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Dr(e,{pages:t,pageParams:r}){var n;return t.length>0?null==(n=e.getPreviousPageParam)?void 0:n.call(e,t[0],t,r[0],r):void 0}var Gr=(N=class{constructor(e={}){__privateAdd(this,A),__privateAdd(this,O),__privateAdd(this,L),__privateAdd(this,M),__privateAdd(this,F),__privateAdd(this,I),__privateAdd(this,D),__privateAdd(this,G),__privateSet(this,A,e.queryCache||new Ar),__privateSet(this,O,e.mutationCache||new Lr),__privateSet(this,L,e.defaultOptions||{}),__privateSet(this,M,new Map),__privateSet(this,F,new Map),__privateSet(this,I,0)}mount(){__privateWrapper(this,I)._++,1===__privateGet(this,I)&&(__privateSet(this,D,yr.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onFocus())}))),__privateSet(this,G,_r.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,I)._--,0===__privateGet(this,I)&&(null==(e=__privateGet(this,D))||e.call(this),__privateSet(this,D,void 0),null==(t=__privateGet(this,G))||t.call(this),__privateSet(this,G,void 0))}isFetching(e){return __privateGet(this,A).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).get(r.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=__privateGet(this,A).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(tr(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,A).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,A).get(n.queryHash),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==i?void 0:i.state.data);if(void 0!==o)return __privateGet(this,A).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Cr.batch((()=>__privateGet(this,A).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).get(r.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,A);Cr.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=__privateGet(this,A),n={type:"active",...e};return Cr.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Cr.batch((()=>__privateGet(this,A).findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(Jt).catch(Jt)}invalidateQueries(e={},t={}){return Cr.batch((()=>{if(__privateGet(this,A).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)}))}refetchQueries(e={},t){const r={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},n=Cr.batch((()=>__privateGet(this,A).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(Jt)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(Jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=__privateGet(this,A).build(this,t);return r.isStaleByTime(tr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jt).catch(Jt)}fetchInfiniteQuery(e){return e.behavior=Fr(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jt).catch(Jt)}ensureInfiniteQueryData(e){return e.behavior=Fr(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _r.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,A)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,L)}setDefaultOptions(e){__privateSet(this,L,e)}setQueryDefaults(e,t){__privateGet(this,M).set(ar(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,M).values()];let r={};return t.forEach((t=>{sr(e,t.queryKey)&&(r={...r,...t.defaultOptions})})),r}setMutationDefaults(e,t){__privateGet(this,F).set(ar(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,F).values()];let r={};return t.forEach((t=>{sr(e,t.mutationKey)&&(r={...r,...t.defaultOptions})})),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,L).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=or(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===mr&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,L).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,A).clear(),__privateGet(this,O).clear()}},A=new WeakMap,O=new WeakMap,L=new WeakMap,M=new WeakMap,F=new WeakMap,I=new WeakMap,D=new WeakMap,G=new WeakMap,N),Nr=(ue=class extends Yt{constructor(e,t){super(),__privateAdd(this,ee),__privateAdd(this,$),__privateAdd(this,H),__privateAdd(this,W),__privateAdd(this,U),__privateAdd(this,j),__privateAdd(this,B),__privateAdd(this,z),__privateAdd(this,q),__privateAdd(this,K),__privateAdd(this,V),__privateAdd(this,Q),__privateAdd(this,Y),__privateAdd(this,X),__privateAdd(this,J),__privateAdd(this,Z,new Set),this.options=t,__privateSet(this,$,e),__privateSet(this,q,null),__privateSet(this,z,wr()),this.options.experimental_prefetchInRender||__privateGet(this,z).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,H).addObserver(this),$r(__privateGet(this,H),this.options)?__privateMethod(this,ee,te).call(this):this.updateResult(),__privateMethod(this,ee,oe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hr(__privateGet(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hr(__privateGet(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,ee,ae).call(this),__privateMethod(this,ee,se).call(this),__privateGet(this,H).removeObserver(this)}setOptions(e,t){const r=this.options,n=__privateGet(this,H);if(this.options=__privateGet(this,$).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof rr(this.options.enabled,__privateGet(this,H)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,ee,le).call(this),__privateGet(this,H).setOptions(this.options),r._defaulted&&!cr(this.options,r)&&__privateGet(this,$).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,H),observer:this});const i=this.hasListeners();i&&Wr(__privateGet(this,H),n,this.options,r)&&__privateMethod(this,ee,te).call(this),this.updateResult(t),!i||__privateGet(this,H)===n&&rr(this.options.enabled,__privateGet(this,H))===rr(r.enabled,__privateGet(this,H))&&tr(this.options.staleTime,__privateGet(this,H))===tr(r.staleTime,__privateGet(this,H))||__privateMethod(this,ee,re).call(this);const o=__privateMethod(this,ee,ne).call(this);!i||__privateGet(this,H)===n&&rr(this.options.enabled,__privateGet(this,H))===rr(r.enabled,__privateGet(this,H))&&o===__privateGet(this,J)||__privateMethod(this,ee,ie).call(this,o)}getOptimisticResult(e){const t=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),e),r=this.createResult(t,e);return function(e,t){if(!cr(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(__privateSet(this,U,r),__privateSet(this,B,this.options),__privateSet(this,j,__privateGet(this,H).state)),r}getCurrentResult(){return __privateGet(this,U)}trackResult(e,t){const r={};return Object.keys(e).forEach((n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),null==t||t(n),e[n])})})),r}trackProp(e){__privateGet(this,Z).add(e)}getCurrentQuery(){return __privateGet(this,H)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,$).defaultQueryOptions(e),r=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),t);return r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return __privateMethod(this,ee,te).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,U))))}createResult(e,t){var r;const n=__privateGet(this,H),i=this.options,o=__privateGet(this,U),a=__privateGet(this,j),s=__privateGet(this,B),l=e!==n?e.state:__privateGet(this,W),{state:c}=e;let u,d={...c},p=!1;if(t._optimisticResults){const r=this.hasListeners(),o=!r&&$r(e,t),a=r&&Wr(e,n,t,i);(o||a)&&(d={...d,...Rr(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:f,status:v}=d;if(t.select&&void 0!==d.data)if(o&&d.data===(null==a?void 0:a.data)&&t.select===__privateGet(this,K))u=__privateGet(this,V);else try{__privateSet(this,K,t.select),u=t.select(d.data),u=hr(null==o?void 0:o.data,u,t),__privateSet(this,V,u),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===v){let e;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(r=__privateGet(this,Q))?void 0:r.state.data,__privateGet(this,Q)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}void 0!==e&&(v="success",u=hr(null==o?void 0:o.data,e,t),p=!0)}__privateGet(this,q)&&(h=__privateGet(this,q),u=__privateGet(this,V),f=Date.now(),v="error");const m="fetching"===d.fetchStatus,g="pending"===v,y="error"===v,_=g&&m,w=void 0!==u,b={status:v,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===v,isError:y,isInitialLoading:_,isLoading:_,data:u,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:y&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:y&&w,isStale:Ur(e,t),refetch:this.refetch,promise:__privateGet(this,z)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},r=()=>{const e=__privateSet(this,z,b.promise=wr());t(e)},i=__privateGet(this,z);switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":"error"!==b.status&&b.data===i.value||r();break;case"rejected":"error"===b.status&&b.error===i.reason||r()}}return b}updateResult(e){const t=__privateGet(this,U),r=this.createResult(__privateGet(this,H),this.options);if(__privateSet(this,j,__privateGet(this,H).state),__privateSet(this,B,this.options),void 0!==__privateGet(this,j).data&&__privateSet(this,Q,__privateGet(this,H)),cr(r,t))return;__privateSet(this,U,r);const n={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!__privateGet(this,Z).size)return!0;const n=new Set(r??__privateGet(this,Z));return this.options.throwOnError&&n.add("error"),Object.keys(__privateGet(this,U)).some((e=>{const r=e;return __privateGet(this,U)[r]!==t[r]&&n.has(r)}))})()&&(n.listeners=!0),__privateMethod(this,ee,ce).call(this,{...n,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,ee,oe).call(this)}},$=new WeakMap,H=new WeakMap,W=new WeakMap,U=new WeakMap,j=new WeakMap,B=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,V=new WeakMap,Q=new WeakMap,Y=new WeakMap,X=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakSet,te=function(e){__privateMethod(this,ee,le).call(this);let t=__privateGet(this,H).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Jt)),t},re=function(){__privateMethod(this,ee,ae).call(this);const e=tr(this.options.staleTime,__privateGet(this,H));if(Xt||__privateGet(this,U).isStale||!Zt(e))return;const t=er(__privateGet(this,U).dataUpdatedAt,e);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,U).isStale||this.updateResult()}),t+1))},ne=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,H)):this.options.refetchInterval)??!1},ie=function(e){__privateMethod(this,ee,se).call(this),__privateSet(this,J,e),!Xt&&!1!==rr(this.options.enabled,__privateGet(this,H))&&Zt(__privateGet(this,J))&&0!==__privateGet(this,J)&&__privateSet(this,X,setInterval((()=>{(this.options.refetchIntervalInBackground||yr.isFocused())&&__privateMethod(this,ee,te).call(this)}),__privateGet(this,J)))},oe=function(){__privateMethod(this,ee,re).call(this),__privateMethod(this,ee,ie).call(this,__privateMethod(this,ee,ne).call(this))},ae=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},se=function(){__privateGet(this,X)&&(clearInterval(__privateGet(this,X)),__privateSet(this,X,void 0))},le=function(){const e=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),this.options);if(e===__privateGet(this,H))return;const t=__privateGet(this,H);__privateSet(this,H,e),__privateSet(this,W,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},ce=function(e){Cr.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,U))})),__privateGet(this,$).getQueryCache().notify({query:__privateGet(this,H),type:"observerResultsUpdated"})}))},ue);function $r(e,t){return function(e,t){return!1!==rr(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Hr(e,t,t.refetchOnMount)}function Hr(e,t,r){if(!1!==rr(t.enabled,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Ur(e,t)}return!1}function Wr(e,t,r,n){return(e!==t||!1===rr(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Ur(e,r)}function Ur(e,t){return!1!==rr(t.enabled,e)&&e.isStaleByTime(tr(t.staleTime,e))}var jr=(ye=class extends Yt{constructor(e,t){super(),__privateAdd(this,ve),__privateAdd(this,de),__privateAdd(this,pe),__privateAdd(this,he),__privateAdd(this,fe),__privateSet(this,de,e),this.setOptions(t),this.bindMethods(),__privateMethod(this,ve,me).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const r=this.options;this.options=__privateGet(this,de).defaultMutationOptions(e),cr(this.options,r)||__privateGet(this,de).getMutationCache().notify({type:"observerOptionsUpdated",mutation:__privateGet(this,he),observer:this}),(null==r?void 0:r.mutationKey)&&this.options.mutationKey&&ar(r.mutationKey)!==ar(this.options.mutationKey)?this.reset():"pending"===(null==(t=__privateGet(this,he))?void 0:t.state.status)&&__privateGet(this,he).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=__privateGet(this,he))||e.removeObserver(this)}onMutationUpdate(e){__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this,e)}getCurrentResult(){return __privateGet(this,pe)}reset(){var e;null==(e=__privateGet(this,he))||e.removeObserver(this),__privateSet(this,he,void 0),__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this)}mutate(e,t){var r;return __privateSet(this,fe,t),null==(r=__privateGet(this,he))||r.removeObserver(this),__privateSet(this,he,__privateGet(this,de).getMutationCache().build(__privateGet(this,de),this.options)),__privateGet(this,he).addObserver(this),__privateGet(this,he).execute(e)}},de=new WeakMap,pe=new WeakMap,he=new WeakMap,fe=new WeakMap,ve=new WeakSet,me=function(){var e;const t=(null==(e=__privateGet(this,he))?void 0:e.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};__privateSet(this,pe,{...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset})},ge=function(e){Cr.batch((()=>{var t,r,n,i,o,a,s,l;if(__privateGet(this,fe)&&this.hasListeners()){const c=__privateGet(this,pe).variables,u=__privateGet(this,pe).context;"success"===(null==e?void 0:e.type)?(null==(r=(t=__privateGet(this,fe)).onSuccess)||r.call(t,e.data,c,u),null==(i=(n=__privateGet(this,fe)).onSettled)||i.call(n,e.data,null,c,u)):"error"===(null==e?void 0:e.type)&&(null==(a=(o=__privateGet(this,fe)).onError)||a.call(o,e.error,c,u),null==(l=(s=__privateGet(this,fe)).onSettled)||l.call(s,void 0,e.error,c,u))}this.listeners.forEach((e=>{e(__privateGet(this,pe))}))}))},ye);function Br(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 zr(e,t){this.props=e,this.context=t}function qr(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:Br(this.props,e)}function n(t){return this.shouldComponentUpdate=r,De(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(zr.prototype=new He).isPureReactComponent=!0,zr.prototype.shouldComponentUpdate=function(e,t){return Br(this.props,e)||Br(this.state,t)};var Kr=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kr&&Kr(e)};var Vr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Qr(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=Vr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Yr=function(e,t){return null==e?null:Ke(Ke(e).map(t))},Xr={map:Yr,forEach:Yr,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ke},Jr=we.__e;we.__e=function(e,t,r,n){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t);Jr(e,t,r,n)};var Zr=we.unmount;function en(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 en(e,t,r)}))),e}function tn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return tn(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 rn(){this.__u=0,this.t=null,this.__b=null}function nn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function on(e){var t,r,n;function i(i){if(t||(t=e()).then((function(e){r=e.default||e}),(function(e){n=e})),n)throw n;if(!r)throw t;return De(r,i)}return i.displayName="Lazy",i.__f=!0,i}function an(){this.u=null,this.o=null}we.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Zr&&Zr(e)},(rn.prototype=new He).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var i=nn(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=tn(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)},rn.prototype.componentWillUnmount=function(){this.t=[]},rn.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]=en(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&De($e,null,e.fallback);return i&&(i.__u&=-33),[De($e,null,t.__a?null:e.children),i]};var sn=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 ln(e){return this.getChildContext=function(){return e.context},e.children}function cn(e){var t=this,r=e.i;t.componentWillUnmount=function(){nt(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)}}),nt(De(ln,{context:t.context},e.__v),t.l)}function un(e,t){var r=De(cn,{__v:e,i:t});return r.containerInfo=t,r}(an.prototype=new He).__a=function(e){var t=this,r=nn(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),sn(t,e,n)):i()};r?r(o):o()}},an.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ke(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},an.prototype.componentDidUpdate=an.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){sn(e,r,t)}))};var dn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pn=/^(?: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]/,hn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fn=/[A-Z0-9]/g,vn="undefined"!=typeof document,mn=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function gn(e,t,r){return null==t.__k&&(t.textContent=""),nt(e,t),"function"==typeof r&&r(),e?e.__c:null}function yn(e,t,r){return it(e,t),"function"==typeof r&&r(),e?e.__c:null}He.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(He.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var _n=we.event;function wn(){}function bn(){return this.cancelBubble}function xn(){return this.defaultPrevented}we.event=function(e){return _n&&(e=_n(e)),e.persist=wn,e.isPropagationStopped=bn,e.isDefaultPrevented=xn,e.nativeEvent=e};var kn,Sn={enumerable:!1,configurable:!0,get:function(){return this.class}},En=we.vnode;we.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},i=-1===r.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||vn&&"children"===o&&"noscript"===r||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==r&&"textarea"!==r||mn(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":hn.test(o)&&(o=s):s=o="oninput":i&&pn.test(o)?o=o.replace(fn,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&n[o=s]&&(o="oninputCapture"),n[o]=a}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=Ke(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==r&&null!=n.defaultValue&&(n.value=Ke(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",Sn)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=dn,En&&En(e)};var Cn=we.__r;we.__r=function(e){Cn&&Cn(e),kn=e.__c};var Tn=we.diffed;we.diffed=function(e){Tn&&Tn(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),kn=null};var Pn={ReactCurrentDispatcher:{current:{readContext:function(e){return kn.__n[e.__c].props.value},useCallback:Dt,useContext:Gt,useDebugValue:Nt,useDeferredValue:Hn,useEffect:Ot,useId:$t,useImperativeHandle:Ft,useInsertionEffect:Un,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Rt,useSyncExternalStore:Bn,useTransition:Wn}}};function Rn(e){return De.bind(null,e)}function An(e){return!!e&&e.$$typeof===dn}function On(e){return An(e)&&e.type===$e}function Ln(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Mn(e){return An(e)?ot.apply(null,arguments):e}function Fn(e){return!!e.__k&&(nt(null,e),!0)}function In(e){return e&&(e.base||1===e.nodeType&&e)||null}var Dn=function(e,t){return e(t)},Gn=function(e,t){return e(t)},Nn=$e;function $n(e){e()}function Hn(e){return e}function Wn(){return[!1,$n]}var Un=Lt,jn=An;function Bn(e,t){var r=t(),n=Rt({h:{__:r,v:t}}),i=n[0].h,o=n[1];return Lt((function(){i.__=r,i.v=t,zn(i)&&o({h:i})}),[e,r,t]),Ot((function(){return zn(i)&&o({h:i}),e((function(){zn(i)&&o({h:i})}))}),[e]),r}function zn(e){var t,r,n=e.v,i=e.__;try{var o=n();return!((t=i)===(r=o)&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(a){return!0}}var qn={useState:Rt,useId:$t,useReducer:At,useEffect:Ot,useLayoutEffect:Lt,useInsertionEffect:Un,useTransition:Wn,useDeferredValue:Hn,useSyncExternalStore:Bn,startTransition:$n,useRef:Mt,useImperativeHandle:Ft,useMemo:It,useCallback:Dt,useContext:Gt,useDebugValue:Nt,version:"18.3.1",Children:Xr,render:gn,hydrate:yn,unmountComponentAtNode:Fn,createPortal:un,createElement:De,createContext:at,createFactory:Rn,cloneElement:Mn,createRef:Ne,Fragment:$e,isValidElement:An,isElement:jn,isFragment:On,isMemo:Ln,findDOMNode:In,Component:He,PureComponent:zr,memo:qr,forwardRef:Qr,flushSync:Gn,unstable_batchedUpdates:Dn,StrictMode:Nn,Suspense:rn,SuspenseList:an,lazy:on,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pn};const Kn=Object.freeze(Object.defineProperty({__proto__:null,Children:Xr,Component:He,Fragment:$e,PureComponent:zr,StrictMode:Nn,Suspense:rn,SuspenseList:an,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pn,cloneElement:Mn,createContext:at,createElement:De,createFactory:Rn,createPortal:un,createRef:Ne,default:qn,findDOMNode:In,flushSync:Gn,forwardRef:Qr,hydrate:yn,isElement:jn,isFragment:On,isMemo:Ln,isValidElement:An,lazy:on,memo:qr,render:gn,startTransition:$n,unmountComponentAtNode:Fn,unstable_batchedUpdates:Dn,useCallback:Dt,useContext:Gt,useDebugValue:Nt,useDeferredValue:Hn,useEffect:Ot,useErrorBoundary:function(e){var t=Pt(vt++,10),r=Rt();return t.__=e,mt.componentDidCatch||(mt.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:$t,useImperativeHandle:Ft,useInsertionEffect:Un,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Rt,useSyncExternalStore:Bn,useTransition:Wn,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));var Vn=0;function Qn(e,t,r,n,i,o){t||(t={});var a,s,l=t;"ref"in t&&(a=t.ref,delete t.ref);var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Vn,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return we.vnode&&we.vnode(c),c}var Yn=at(void 0),Xn=e=>{const t=Gt(Yn);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Jn=({client:e,children:t})=>(Ot((()=>(e.mount(),()=>{e.unmount()})),[e]),Qn(Yn.Provider,{value:e,children:t})),Zn=at(!1);Zn.Provider;var ei=at(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function ti(e,t){return"function"==typeof e?e(...t):!!e}function ri(){}var ni=(e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()}));function ii(e,t,r){var n,i,o,a,s;const l=Xn(),c=Gt(Zn),u=Gt(ei),d=l.defaultQueryOptions(e);null==(i=null==(n=l.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||i.call(n,d),d._optimisticResults=c?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(d),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(d,u),(e=>{Ot((()=>{e.clearReset()}),[e])})(u);const p=!l.getQueryCache().get(d.queryHash),[h]=Rt((()=>new t(l,d))),f=h.getOptimisticResult(d);if(Bn(Dt((e=>{const t=c?ri:h.subscribe(Cr.batchCalls(e));return h.updateResult(),t}),[h,c]),(()=>h.getCurrentResult())),Ot((()=>{h.setOptions(d,{listeners:!1})}),[d,h]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(d,f))throw ni(d,h,u);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&ti(r,[e.error,n]))({result:f,errorResetBoundary:u,throwOnError:d.throwOnError,query:l.getQueryCache().get(d.queryHash)}))throw f.error;if(null==(a=null==(o=l.getDefaultOptions().queries)?void 0:o._experimental_afterQuery)||a.call(o,d,f),d.experimental_prefetchInRender&&!Xt&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,c)){const e=p?ni(d,h,u):null==(s=l.getQueryCache().get(d.queryHash))?void 0:s.promise;null==e||e.catch(ri).finally((()=>{h.updateResult()}))}return d.notifyOnChangeProps?f:h.trackResult(f)}function oi(e,t){return ii(e,Nr)}const ai=at({account:{accountId:""},backend:{url:"",accessToken:""}});class si extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,si.prototype)}get response(){return this._response}}const li=async(e,t,r,n)=>{const i=await fetch(e,{method:r,body:n?JSON.stringify(n):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.783",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!i.ok)throw new si(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},ci=async(e,t,r,n)=>{const i=await li(e,t,r,n);return await i.json()},ui=e=>{const t=Gt(ai);return It((()=>e(t)),[e,t])};let di;const pi=()=>{if(di)return di;return di=new Gr({defaultOptions:{queries:{retry:(e,t)=>{var r;return t instanceof si&&![401,403].includes((null==(r=t.response)?void 0:r.status)||0)}}}}),di},hi="linkedAccount",fi="linkedProfilesForAccount",vi="salaryPackagedItem",mi="checkProfileSearchAuthorization",gi="payrollAdvice",yi="invoices",_i="/salary-packaging/admin/v1.0",wi=e=>async()=>{const t=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/auth`);return ci(t,e.backend.accessToken,"GET")},bi=e=>async t=>{const r=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profile-search?search=${t}`);return ci(r,e.backend.accessToken,"GET")},xi=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const r=new Date;r.setUTCDate((new Date).getUTCDate()+2);const n=new URL(`${e.backend.url}${_i}/ingest/clients`);await li(n,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]})},ki=e=>async()=>{const t=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}`);return ci(t,e.backend.accessToken,"GET")},Si=e=>async()=>{const t=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profiles`);return ci(t,e.backend.accessToken,"GET")},Ei=e=>async t=>{const r=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profiles/${t}/unlink`);await li(r,e.backend.accessToken,"POST")},Ci=e=>async(t,r)=>{const n=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profiles/${t}/items/${r}`);return ci(n,e.backend.accessToken,"GET")},Ti=e=>async t=>{const r=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`);return ci(r,e.backend.accessToken,"GET")},Pi=e=>async()=>{const t=new URL(`${e.backend.url}${_i}/accounts/${e.account.accountId}/invoices`);return ci(t,e.backend.accessToken,"GET")},Ri=()=>({checkProfileSearchAuthorization:ui(wi),searchProfilesForAccount:ui(bi),ingestClient:ui(xi),linkedAccount:ui(ki),linkedProfilesForAccount:ui(Si),unlinkProfile:ui(Ei),salaryPackagedItem:ui(Ci),payrollAdvice:ui(Ti),invoices:ui(Pi)});var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.parse=function(e,t){const r=new Di,n=e.length;if(n<2)return r;const i=(null==t?void 0:t.decode)||$i;let o=0;do{const t=e.indexOf("=",o);if(-1===t)break;const a=e.indexOf(";",o),s=-1===a?n:a;if(t>s){o=e.lastIndexOf(";",t-1)+1;continue}const l=Gi(e,o,t),c=Ni(e,t,l),u=e.slice(l,c);if(void 0===r[u]){let n=Gi(e,t+1,s),o=Ni(e,s,n);const a=i(e.slice(n,o));r[u]=a}o=s+1}while(o<n);return r},Ai.serialize=function(e,t,r){const n=(null==r?void 0:r.encode)||encodeURIComponent;if(!Oi.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=n(t);if(!Li.test(i))throw new TypeError(`argument val is invalid: ${t}`);let o=e+"="+i;if(!r)return o;if(void 0!==r.maxAge){if(!Number.isInteger(r.maxAge))throw new TypeError(`option maxAge is invalid: ${r.maxAge}`);o+="; Max-Age="+r.maxAge}if(r.domain){if(!Mi.test(r.domain))throw new TypeError(`option domain is invalid: ${r.domain}`);o+="; Domain="+r.domain}if(r.path){if(!Fi.test(r.path))throw new TypeError(`option path is invalid: ${r.path}`);o+="; Path="+r.path}if(r.expires){if(!function(e){return"[object Date]"===Ii.call(e)}
2
2
  /**
3
3
  * react-router v7.1.1
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-salpac-profile-admin",
3
- "version": "1.0.782",
3
+ "version": "1.0.783",
4
4
  "description": "Flare Superhero Profile Admin",
5
5
  "license": "MIT",
6
6
  "files": [