@flarehr/superhero-salpac-profile-admin 1.0.1213 → 1.0.1214
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
|
-
!function(){var e,t,n,r,i,o,a,s,l,c,u,d=Object.create,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,m=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{let n={};for(var r in e)f(n,r,{get:e[r],enumerable:!0});return t||f(n,Symbol.toStringTag,{value:"Module"}),n},w=(e,t,n)=>(n=null!=e?d(m(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=h(t),a=0,s=o.length;a<s;a++)i=o[a],g.call(e,i)||i===n||f(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=p(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)),b={},_=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,k=Array.isArray;function S(e,t){for(var n in t)e[n]=t[n];return e}function E(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function C(t,n,r){var i,o,a,s={};for(a in n)"key"==a?i=n[a]:"ref"==a?o=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return T(t,s,i,o,null)}function T(e,r,i,o,a){var s={type:e,props:r,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++n:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(s),s}function R(){return{current:null}}function P(e){return e.children}function O(e,t){this.props=e,this.context=t}function L(e,t){if(null==t)return e.__?L(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?L(e):null}function A(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return A(e)}}function I(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!F.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||o)(F)}function F(){var e,n,i,o,s,l,c,u;for(r.sort(a);e=r.shift();)e.__d&&(n=r.length,o=void 0,l=(s=(i=e).__v).__e,c=[],u=[],i.__P&&((o=S({},s)).__v=s.__v+1,t.vnode&&t.vnode(o),U(i.__P,o,s,i.__n,i.__P.namespaceURI,32&s.__u?[l]:null,c,null==l?L(s):l,!!(32&s.__u),u),o.__v=s.__v,o.__.__k[o.__i]=o,q(c,o,u),o.__e!=l&&A(o)),r.length>n&&r.sort(a));F.__r=0}function D(e,t,n,r,i,o,a,s,l,c,u){var d,f,p,h,m,g=r&&r.__k||_,v=t.length;for(n.__d=l,function(e,t,n){var r,i,o,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(i=t[r])&&"boolean"!=typeof i&&"function"!=typeof i?(a=r+d,(i=e.__k[r]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?T(null,i,null,null,null):k(i)?T(P,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?T(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=$(i,n,a,u))&&(u--,(o=n[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[r]=null;if(u)for(r=0;r<c;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=L(o)),z(o,o))}(n,t,g),l=n.__d,d=0;d<v;d++)null!=(p=n.__k[d])&&(f=-1===p.__i?b:g[p.__i]||b,p.__i=d,U(e,p,f,i,o,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&B(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),65536&p.__u||f.__k===p.__k?l=M(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function M(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=M(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=L(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(k(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function $(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(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 H(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||x.test(t)?n:n+"px"}function j(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||H(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||H(e.style,t,n[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]=n,n?r?n.u=r.u:(n.u=s,e.addEventListener(t,o?c:l,o)):e.removeEventListener(t,o?c:l,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==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function W(e){return function(n){if(this.l){var r=this.l[n.type+e];if(null==n.t)n.t=s++;else if(n.t<r.u)return;return r(t.event?t.event(n):n)}}}function U(n,r,i,o,a,s,l,c,u,d){var f,p,h,m,g,v,y,w,_,x,C,T,R,A,I,F,M=r.type;if(void 0!==r.constructor)return null;128&i.__u&&(u=!!(32&i.__u),s=[c=r.__e=i.__e]),(f=t.__b)&&f(r);e:if("function"==typeof M)try{if(w=r.props,_="prototype"in M&&M.prototype.render,x=(f=M.contextType)&&o[f.__c],C=f?x?x.props.value:f.__:o,i.__c?y=(p=r.__c=i.__c).__=p.__E:(_?r.__c=p=new M(w,C):(r.__c=p=new O(w,C),p.constructor=M,p.render=Q),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=C,p.__n=o,h=p.__d=!0,p.__h=[],p._sb=[]),_&&null==p.__s&&(p.__s=p.state),_&&null!=M.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=S({},p.__s)),S(p.__s,M.getDerivedStateFromProps(w,p.__s))),m=p.props,g=p.state,p.__v=r,h)_&&null==M.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),_&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(_&&null==M.getDerivedStateFromProps&&w!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,C),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,C)||r.__v===i.__v)){for(r.__v!==i.__v&&(p.props=w,p.state=p.__s,p.__d=!1),r.__e=i.__e,r.__k=i.__k,r.__k.some((function(e){e&&(e.__=r)})),T=0;T<p._sb.length;T++)p.__h.push(p._sb[T]);p._sb=[],p.__h.length&&l.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,C),_&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(m,g,v)}))}if(p.context=C,p.props=w,p.__P=n,p.__e=!1,R=t.__r,A=0,_){for(p.state=p.__s,p.__d=!1,R&&R(r),f=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[]}else do{p.__d=!1,R&&R(r),f=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(o=S(S({},o),p.getChildContext())),_&&!h&&null!=p.getSnapshotBeforeUpdate&&(v=p.getSnapshotBeforeUpdate(m,g)),D(n,k(F=null!=f&&f.type===P&&null==f.key?f.props.children:f)?F:[F],r,i,o,a,s,l,c,u,d),p.base=r.__e,r.__u&=-161,p.__h.length&&l.push(p),y&&(p.__E=p.__=null)}catch(n){if(r.__v=null,u||null!=s){for(r.__u|=u?160:128;c&&8===c.nodeType&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,r.__e=c}else r.__e=i.__e,r.__k=i.__k;t.__e(n,r,i)}else null==s&&r.__v===i.__v?(r.__k=i.__k,r.__e=i.__e):r.__e=function(n,r,i,o,a,s,l,c,u){var d,f,p,h,m,g,v,y=i.props,w=r.props,_=r.type;if("svg"===_?a="http://www.w3.org/2000/svg":"math"===_?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(d=0;d<s.length;d++)if((m=s[d])&&"setAttribute"in m==!!_&&(_?m.localName===_:3===m.nodeType)){n=m,s[d]=null;break}if(null==n){if(null===_)return document.createTextNode(w);n=document.createElementNS(a,_,w.is&&w),c&&(t.__m&&t.__m(r,s),c=!1),s=null}if(null===_)y===w||c&&n.data===w||(n.data=w);else{if(s=s&&e.call(n.childNodes),y=i.props||b,!c&&null!=s)for(y={},d=0;d<n.attributes.length;d++)y[(m=n.attributes[d]).name]=m.value;for(d in y)if(m=y[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=m;else if(!(d in w)){if("value"==d&&"defaultValue"in w||"checked"==d&&"defaultChecked"in w)continue;j(n,d,null,m,a)}for(d in w)m=w[d],"children"==d?h=m:"dangerouslySetInnerHTML"==d?f=m:"value"==d?g=m:"checked"==d?v=m:c&&"function"!=typeof m||y[d]===m||j(n,d,m,y[d],a);if(f)c||p&&(f.__html===p.__html||f.__html===n.innerHTML)||(n.innerHTML=f.__html),r.__k=[];else if(p&&(n.innerHTML=""),D(n,k(h)?h:[h],r,i,o,"foreignObject"===_?"http://www.w3.org/1999/xhtml":a,s,l,s?s[0]:i.__k&&L(i,0),c,u),null!=s)for(d=s.length;d--;)E(s[d]);c||(d="value","progress"===_&&null==g?n.removeAttribute("value"):void 0!==g&&(g!==n[d]||"progress"===_&&!g||"option"===_&&g!==y[d])&&j(n,d,g,y[d],a),d="checked",void 0!==v&&v!==n[d]&&j(n,d,v,y[d],a))}return n}(i.__e,r,i,o,a,s,l,u,d);(f=t.diffed)&&f(r)}function q(e,n,r){n.__d=void 0;for(var i=0;i<r.length;i++)B(r[i],r[++i],r[++i]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function B(e,n,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,r)}}function z(e,n,r){var i,o;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||B(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,n)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&z(i[o],n,r||"function"!=typeof e.type);r||E(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Q(e,t,n){return this.constructor(e,n)}function K(n,r,i){var o,a,s,l;t.__&&t.__(n,r),a=(o="function"==typeof i)?null:i&&i.__k||r.__k,s=[],l=[],U(r,n=(!o&&i||r).__k=C(P,null,[n]),a||b,b,r.namespaceURI,!o&&i?[i]:a?null:r.firstChild?e.call(r.childNodes):null,s,!o&&i?i:a?a.__e:r.firstChild,o,l),q(s,n,l)}function V(e,t){K(e,t,V)}function G(t,n,r){var i,o,a,s,l=S({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),n)"key"==a?i=n[a]:"ref"==a?o=n[a]:l[a]=void 0===n[a]&&void 0!==s?s[a]:n[a];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),T(t.type,l,i||t.key,o||t.ref,null)}function Y(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,I(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}e=_.slice,t={__e:function(e,t,n,r){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,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},n=0,O.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state);"function"==typeof e&&(e=e(S({},n),this.props)),e&&S(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),I(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),I(this))},O.prototype.render=P,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},F.__r=0,s=0,l=W(!1),c=W(!0),u=0;var J=["context","children"];function Z(e){return this.getChildContext=function(){return e.context},G(e.children,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,J))}function ee(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=C(Z,X({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],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[te(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=C(ie,{name:c},l):r[o]=l}var u=n?C(ie,null,r):r;return C(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:K)(this._vdom,this._root)}function te(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function ne(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[te(e)]=n,this._vdom=G(this._vdom,r),K(this._vdom,this._root)}}function re(){K(this._vdom=null,this._root)}function ie(e,t){var n=this;return C("slot",X({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var oe,ae,se,le,ce=0,ue=[],de=t,fe=de.__b,pe=de.__r,he=de.diffed,me=de.__c,ge=de.unmount,ve=de.__;function ye(e,t){de.__h&&de.__h(ae,e,ce||t),ce=0;var n=ae.__H||(ae.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function we(e){return ce=1,be(Ne,e)}function be(e,t,n){var r=ye(oe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ne(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=ae,!ae.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);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&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};ae.u=!0;var o=ae.shouldComponentUpdate,a=ae.componentWillUpdate;ae.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},ae.shouldComponentUpdate=i}return r.__N||r.__}function _e(e,t){var n=ye(oe++,3);!de.__s&&Me(n.__H,t)&&(n.__=e,n.i=t,ae.__H.__h.push(n))}function xe(e,t){var n=ye(oe++,4);!de.__s&&Me(n.__H,t)&&(n.__=e,n.i=t,ae.__h.push(n))}function ke(e){return ce=5,Ee((function(){return{current:e}}),[])}function Se(e,t,n){ce=6,xe((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function Ee(e,t){var n=ye(oe++,7);return Me(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ce(e,t){return ce=8,Ee((function(){return e}),t)}function Te(e){var t=ae.context[e.__c],n=ye(oe++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(ae)),t.props.value):e.__}function Re(e,t){de.useDebugValue&&de.useDebugValue(t?t(e):e)}function Pe(e){var t=ye(oe++,10),n=we();return t.__=e,ae.componentDidCatch||(ae.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Oe(){var e=ye(oe++,11);if(!e.__){for(var t=ae.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Le(){for(var e;e=ue.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Fe),e.__H.__h.forEach(De),e.__H.__h=[]}catch(Ec){e.__H.__h=[],de.__e(Ec,e.__v)}}de.__b=function(e){ae=null,fe&&fe(e)},de.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ve&&ve(e,t)},de.__r=function(e){pe&&pe(e),oe=0;var t=(ae=e.__c).__H;t&&(se===ae?(t.__h=[],ae.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Fe),t.__h.forEach(De),t.__h=[],oe=0)),se=ae},de.diffed=function(e){he&&he(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ue.push(t)&&le===de.requestAnimationFrame||((le=de.requestAnimationFrame)||Ie)(Le)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),se=ae=null},de.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Fe),e.__h=e.__h.filter((function(e){return!e.__||De(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],de.__e(n,e.__v)}})),me&&me(e,t)},de.unmount=function(e){ge&&ge(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Fe(e)}catch(e){t=e}})),n.__H=void 0,t&&de.__e(t,n.__v))};var Ae="function"==typeof requestAnimationFrame;function Ie(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function Fe(e){var t=ae,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ae=t}function De(e){var t=ae;e.__c=e.__(),ae=t}function Me(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ne(e,t){return"function"==typeof t?t(e):t}var $e=class extends Error{};function He(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 n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}$e.prototype.name="InvalidTokenError";var je=class e{roles;isAuthorized;constructor(e){this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(t){return new e((t?function(e,t){if("string"!=typeof e)throw new $e("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new $e(`Invalid token specified: missing part #${n+1}`);let i;try{i=He(r)}catch(Sd){throw new $e(`Invalid token specified: invalid base64 for part #${n+1} (${Sd.message})`)}try{return JSON.parse(i)}catch(Sd){throw new $e(`Invalid token specified: invalid json for part #${n+1} (${Sd.message})`)}}(t):{roles:[]}).roles)}},We=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(){}},Ue="undefined"==typeof window||"Deno"in globalThis;function qe(){}function Be(e){return"number"==typeof e&&e>=0&&e!==1/0}function ze(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qe(e,t){return"function"==typeof e?e(t):e}function Ke(e,t){return"function"==typeof e?e(t):e}function Ve(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==Ye(a,t.options))return!1}else if(!Je(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Ge(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Xe(t.options.mutationKey)!==Xe(o))return!1}else if(!Je(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function Ye(e,t){return(t?.queryKeyHashFn||Xe)(e)}function Xe(e){return JSON.stringify(e,((e,t)=>nt(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Je(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Je(e[n],t[n]))))}function Ze(e,t){if(e===t)return e;const n=tt(e)&&tt(t);if(n||nt(e)&&nt(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const i=n?c:o[c];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=Ze(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function et(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function tt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nt(e){if(!rt(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!rt(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function rt(e){return"[object Object]"===Object.prototype.toString.call(e)}function it(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Ze(e,t):t}function ot(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function at(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var st=Symbol();function lt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==st?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var ct=new class extends We{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ue&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},ut=new class extends We{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ue&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#r}};function dt(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function ft(e){return Math.min(1e3*2**e,3e4)}function pt(e){return"online"!==(e??"online")||ut.isOnline()}var ht=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function mt(e){return e instanceof ht}function gt(e){let t,n=!1,r=0,i=!1;const o=dt(),a=()=>ct.isFocused()&&("always"===e.networkMode||ut.isOnline())&&e.canRun(),s=()=>pt(e.networkMode)&&e.canRun(),l=n=>{i||(i=!0,e.onSuccess?.(n),t?.(),o.resolve(n))},c=n=>{i||(i=!0,e.onError?.(n),t?.(),o.reject(n))},u=()=>new Promise((n=>{t=e=>{(i||a())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,i||e.onContinue?.()})),d=()=>{if(i)return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{if(i)return;const o=e.retry??(Ue?0:3),s=e.retryDelay??ft,l="function"==typeof s?s(r,t):s,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);!n&&f?(r++,e.onFail?.(r,t),function(e){return new Promise((t=>{setTimeout(t,e)}))}(l).then((()=>a()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:o,cancel:t=>{i||(c(new ht(t)),e.abort?.())},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var vt=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),yt=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Be(this.gcTime)&&(this.#i=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ue?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},wt=class extends yt{#o;#a;#s;#l;#c;#u;constructor(e){super(),this.#u=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){const n=it(this.state.data,e,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(qe).catch(qe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some((e=>!1!==Ke(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===st||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||!ze(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find((e=>e.shouldFetchOnWindowFocus()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find((e=>e.shouldFetchOnReconnect()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.#l&&(this.#u?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#u=!0,n.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=lt(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return r(n),this.#u=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};r(i),this.options.behavior?.onFetch(i,this),this.#a=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const o=e=>{mt(e)&&e.silent||this.#d({type:"error",error:e}),mt(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#l=gt({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void o(t)}this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else o(new Error(`${this.queryHash} data is undefined`))},onError:o,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(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,...bt(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 n=e.error;return mt(n)&&n.revert&&this.#a?{...this.#a,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),vt.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#s.notify({query:this,type:"updated",action:e})}))}};function bt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var _t=class extends We{constructor(e={}){super(),this.config=e,this.#f=new Map}#f;build(e,t,n){const r=t.queryKey,i=t.queryHash??Ye(r,t);let o=this.get(i);return o||(o=new wt({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#f.has(e.queryHash)||(this.#f.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#f.get(e.queryHash);t&&(e.destroy(),t===e&&this.#f.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){vt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#f.get(e)}getAll(){return[...this.#f.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Ve(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Ve(e,t))):t}notify(e){vt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){vt.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){vt.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},xt=class extends yt{#p;#h;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#h=e.mutationCache,this.#p=[],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){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#h.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter((t=>t!==e)),this.scheduleGc(),this.#h.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#h.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=gt({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#h.canRun(this)});const t="pending"===this.state.status,n=!this.#l.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:n}),await(this.#h.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:n})}const r=await this.#l.start();return await(this.#h.config.onSuccess?.(r,e,this.state.context,this)),await(this.options.onSuccess?.(r,e,this.state.context)),await(this.#h.config.onSettled?.(r,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(r,null,e,this.state.context)),this.#d({type:"success",data:r}),r}catch(r){try{throw await(this.#h.config.onError?.(r,e,this.state.context,this)),await(this.options.onError?.(r,e,this.state.context)),await(this.#h.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,r,e,this.state.context)),r}finally{this.#d({type:"error",error:r})}}finally{this.#h.runNext(this)}}#d(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),vt.batch((()=>{this.#p.forEach((t=>{t.onMutationUpdate(e)})),this.#h.notify({mutation:this,type:"updated",action:e})}))}};var kt=class extends We{constructor(e={}){super(),this.config=e,this.#m=new Map,this.#g=Date.now()}#m;#g;build(e,t,n){const r=new xt({mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=St(e),n=this.#m.get(t)??[];n.push(e),this.#m.set(t,n),this.notify({type:"added",mutation:e})}remove(e){const t=St(e);if(this.#m.has(t)){const n=this.#m.get(t)?.filter((t=>t!==e));n&&(0===n.length?this.#m.delete(t):this.#m.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){const t=this.#m.get(St(e))?.find((e=>"pending"===e.state.status));return!t||t===e}runNext(e){return(this.#m.get(St(e))?.find((t=>t!==e&&t.state.isPaused)))?.continue()??Promise.resolve()}clear(){vt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...this.#m.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Ge(t,e)))}findAll(e={}){return this.getAll().filter((t=>Ge(e,t)))}notify(e){vt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return vt.batch((()=>Promise.all(e.map((e=>e.continue().catch(qe))))))}};function St(e){return e.options.scope?.id??String(e.mutationId)}function Et(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let n=!1;const c=lt(t.options,t.fetchOptions),u=async(e,r,i)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const o={queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};var a;a=o,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const s=await c(o),{maxPages:l}=t.options,u=i?at:ot;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,r,l)}};if(i&&o.length){const e="backward"===i,t=e?Tt:Ct,n={pages:o,pageParams:a};s=await u(n,t(r,n),e)}else{const t=e??o.length;do{const e=0===l?a[0]??r.initialPageParam:Ct(r,s);if(l>0&&null==e)break;s=await u(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function Ct(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Tt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Rt=class{#v;#h;#c;#y;#w;#b;#_;#x;constructor(e={}){this.#v=e.queryCache||new _t,this.#h=e.mutationCache||new kt,this.#c=e.defaultOptions||{},this.#y=new Map,this.#w=new Map,this.#b=0}mount(){this.#b++,1===this.#b&&(this.#_=ct.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#v.onFocus())})),this.#x=ut.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#v.onOnline())})))}unmount(){this.#b--,0===this.#b&&(this.#_?.(),this.#_=void 0,this.#x?.(),this.#x=void 0)}isFetching(e){return this.#v.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#h.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#v.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=this.#v.build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Qe(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#v.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#v.get(r.queryHash)?.state.data,o=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==o)return this.#v.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return vt.batch((()=>this.#v.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#v.get(t.queryHash)?.state}removeQueries(e){const t=this.#v;vt.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#v,r={type:"active",...e};return vt.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=vt.batch((()=>this.#v.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(qe).catch(qe)}invalidateQueries(e={},t={}){return vt.batch((()=>{if(this.#v.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=vt.batch((()=>this.#v.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(qe)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(qe)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#v.build(this,t);return n.isStaleByTime(Qe(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qe).catch(qe)}fetchInfiniteQuery(e){return e.behavior=Et(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qe).catch(qe)}ensureInfiniteQueryData(e){return e.behavior=Et(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ut.isOnline()?this.#h.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#v}getMutationCache(){return this.#h}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#y.set(Xe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#y.values()];let n={};return t.forEach((t=>{Je(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){this.#w.set(Xe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#w.values()];let n={};return t.forEach((t=>{Je(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ye(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===st&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#v.clear(),this.#h.clear()}},Pt=class extends We{constructor(e,t){super(),this.options=t,this.#k=e,this.#S=null,this.#E=dt(),this.options.experimental_prefetchInRender||this.#E.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#k;#C=void 0;#T=void 0;#R=void 0;#P;#O;#E;#S;#L;#A;#I;#F;#D;#M;#N=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#C.addObserver(this),Ot(this.#C,this.options)?this.#$():this.updateResult(),this.#H())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lt(this.#C,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lt(this.#C,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#j(),this.#W(),this.#C.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.#C;if(this.options=this.#k.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Ke(this.options.enabled,this.#C))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#U(),this.#C.setOptions(this.options),n._defaulted&&!et(this.options,n)&&this.#k.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#C,observer:this});const i=this.hasListeners();i&&At(this.#C,r,this.options,n)&&this.#$(),this.updateResult(t),!i||this.#C===r&&Ke(this.options.enabled,this.#C)===Ke(n.enabled,this.#C)&&Qe(this.options.staleTime,this.#C)===Qe(n.staleTime,this.#C)||this.#q();const o=this.#B();!i||this.#C===r&&Ke(this.options.enabled,this.#C)===Ke(n.enabled,this.#C)&&o===this.#M||this.#z(o)}getOptimisticResult(e){const t=this.#k.getQueryCache().build(this.#k,e),n=this.createResult(t,e);var r;return r=n,et(this.getCurrentResult(),r)||(this.#R=n,this.#O=this.options,this.#P=this.#C.state),n}getCurrentResult(){return this.#R}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})})),n}trackProp(e){this.#N.add(e)}getCurrentQuery(){return this.#C}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#k.defaultQueryOptions(e),n=this.#k.getQueryCache().build(this.#k,t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#$({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#R)))}#$(e){this.#U();let t=this.#C.fetch(this.options,e);return e?.throwOnError||(t=t.catch(qe)),t}#q(){this.#j();const e=Qe(this.options.staleTime,this.#C);if(Ue||this.#R.isStale||!Be(e))return;const t=ze(this.#R.dataUpdatedAt,e)+1;this.#F=setTimeout((()=>{this.#R.isStale||this.updateResult()}),t)}#B(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#C):this.options.refetchInterval)??!1}#z(e){this.#W(),this.#M=e,!Ue&&!1!==Ke(this.options.enabled,this.#C)&&Be(this.#M)&&0!==this.#M&&(this.#D=setInterval((()=>{(this.options.refetchIntervalInBackground||ct.isFocused())&&this.#$()}),this.#M))}#H(){this.#q(),this.#z(this.#B())}#j(){this.#F&&(clearTimeout(this.#F),this.#F=void 0)}#W(){this.#D&&(clearInterval(this.#D),this.#D=void 0)}createResult(e,t){const n=this.#C,r=this.options,i=this.#R,o=this.#P,a=this.#O,s=e!==n?e.state:this.#T,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Ot(e,t),a=i&&At(e,n,t,r);(o||a)&&(u={...u,...bt(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=u;if(t.select&&void 0!==u.data)if(i&&u.data===o?.data&&t.select===this.#L)c=this.#A;else try{this.#L=t.select,c=t.select(u.data),c=it(i?.data,c,t),this.#A=c,this.#S=null}catch(_){this.#S=_}else c=u.data;if(void 0!==t.placeholderData&&void 0===c&&"pending"===h){let e;if(i?.isPlaceholderData&&t.placeholderData===a?.placeholderData)e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#I?.state.data,this.#I):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#S=null}catch(_){this.#S=_}void 0!==e&&(h="success",c=it(i?.data,e,t),d=!0)}this.#S&&(f=this.#S,c=this.#A,p=Date.now(),h="error");const m="fetching"===u.fetchStatus,g="pending"===h,v="error"===h,y=g&&m,w=void 0!==c,b={status:h,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===h,isError:v,isInitialLoading:y,isLoading:y,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:v&&!w,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:v&&w,isStale:It(e,t),refetch:this.refetch,promise:this.#E};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},r=()=>{t(this.#E=b.promise=dt())},i=this.#E;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=this.#R,n=this.createResult(this.#C,this.options);if(this.#P=this.#C.state,this.#O=this.options,void 0!==this.#P.data&&(this.#I=this.#C),et(n,t))return;this.#R=n;const r={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#N.size)return!0;const r=new Set(n??this.#N);return this.options.throwOnError&&r.add("error"),Object.keys(this.#R).some((e=>{const n=e;return this.#R[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.#Q({...r,...e})}#U(){const e=this.#k.getQueryCache().build(this.#k,this.options);if(e===this.#C)return;const t=this.#C;this.#C=e,this.#T=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#H()}#Q(e){vt.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#R)})),this.#k.getQueryCache().notify({query:this.#C,type:"observerResultsUpdated"})}))}};function Ot(e,t){return function(e,t){return!1!==Ke(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Lt(e,t,t.refetchOnMount)}function Lt(e,t,n){if(!1!==Ke(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&It(e,t)}return!1}function At(e,t,n,r){return(e!==t||!1===Ke(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&It(e,n)}function It(e,t){return!1!==Ke(t.enabled,e)&&e.isStaleByTime(Qe(t.staleTime,e))}var Ft=class extends We{#k;#R=void 0;#K;#V;constructor(e,t){super(),this.#k=e,this.setOptions(t),this.bindMethods(),this.#G()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#k.defaultMutationOptions(e),et(this.options,t)||this.#k.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#K,observer:this}),t?.mutationKey&&this.options.mutationKey&&Xe(t.mutationKey)!==Xe(this.options.mutationKey)?this.reset():"pending"===this.#K?.state.status&&this.#K.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#K?.removeObserver(this)}onMutationUpdate(e){this.#G(),this.#Q(e)}getCurrentResult(){return this.#R}reset(){this.#K?.removeObserver(this),this.#K=void 0,this.#G(),this.#Q()}mutate(e,t){return this.#V=t,this.#K?.removeObserver(this),this.#K=this.#k.getMutationCache().build(this.#k,this.options),this.#K.addObserver(this),this.#K.execute(e)}#G(){const e=this.#K?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#R={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#Q(e){vt.batch((()=>{if(this.#V&&this.hasListeners()){const t=this.#R.variables,n=this.#R.context;"success"===e?.type?(this.#V.onSuccess?.(e.data,t,n),this.#V.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#V.onError?.(e.error,t,n),this.#V.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach((e=>{e(this.#R)}))}))}},Dt=y({Children:()=>qt,Component:()=>O,Fragment:()=>P,PureComponent:()=>Nt,StrictMode:()=>Ln,Suspense:()=>Vt,SuspenseList:()=>Xt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>bn,cloneElement:()=>Cn,createContext:()=>Y,createElement:()=>C,createFactory:()=>xn,createPortal:()=>tn,createRef:()=>R,default:()=>Hn,findDOMNode:()=>Rn,flushSync:()=>On,forwardRef:()=>Wt,hydrate:()=>un,isElement:()=>Mn,isFragment:()=>Sn,isMemo:()=>En,isValidElement:()=>kn,lazy:()=>Yt,memo:()=>$t,render:()=>cn,startTransition:()=>An,unmountComponentAtNode:()=>Tn,unstable_batchedUpdates:()=>Pn,useCallback:()=>Ce,useContext:()=>Te,useDebugValue:()=>Re,useDeferredValue:()=>In,useEffect:()=>_e,useErrorBoundary:()=>Pe,useId:()=>Oe,useImperativeHandle:()=>Se,useInsertionEffect:()=>Dn,useLayoutEffect:()=>xe,useMemo:()=>Ee,useReducer:()=>be,useRef:()=>ke,useState:()=>we,useSyncExternalStore:()=>Nn,useTransition:()=>Fn,version:()=>_n});function Mt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Nt(e,t){this.props=e,this.context=t}function $t(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Mt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,C(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Nt.prototype=new O).isPureReactComponent=!0,Nt.prototype.shouldComponentUpdate=function(e,t){return Mt(this.props,e)||Mt(this.state,t)};var Ht=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ht&&Ht(e)};var jt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Wt(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=jt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ut=function(e,t){return null==e?null:N(N(e).map(t))},qt={map:Ut,forEach:Ut,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:N},Bt=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Bt(e,t,n,r)};var zt=t.unmount;function Qt(e,t,n){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 n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Qt(e,t,n)}))),e}function Kt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Kt(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Vt(){this.__u=0,this.t=null,this.__b=null}function Gt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Yt(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return C(n,i)}return i.displayName="Lazy",i.__f=!0,i}function Xt(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),zt&&zt(e)},(Vt.prototype=new O).__c=function(e,t){var n=t.__c,r=this;r.t??=[],r.t.push(n);var i=Gt(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Kt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Vt.prototype.componentWillUnmount=function(){this.t=[]},Vt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Qt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&C(P,null,e.fallback);return i&&(i.__u&=-33),[C(P,null,t.__a?null:e.children),i]};var Jt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Zt(e){return this.getChildContext=function(){return e.context},e.children}function en(e){var t=this,n=e.i;t.componentWillUnmount=function(){K(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),K(C(Zt,{context:t.context},e.__v),t.l)}function tn(e,t){var n=C(en,{__v:e,i:t});return n.containerInfo=t,n}(Xt.prototype=new O).__a=function(e){var t=this,n=Gt(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Jt(t,e,r)):i()};n?n(o):o()}},Xt.prototype.render=function(e){this.u=null,this.o=new Map;var t=N(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Xt.prototype.componentDidUpdate=Xt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Jt(e,n,t)}))};var nn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rn=/^(?: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]/,on=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,an=/[A-Z0-9]/g,sn="undefined"!=typeof document,ln=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function cn(e,t,n){return t.__k??(t.textContent=""),K(e,t),"function"==typeof n&&n(),e?e.__c:null}function un(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}O.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(O.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var dn=t.event;function fn(){}function pn(){return this.cancelBubble}function hn(){return this.defaultPrevented}t.event=function(e){return dn&&(e=dn(e)),e.persist=fn,e.isPropagationStopped=pn,e.isDefaultPrevented=hn,e.nativeEvent=e};var mn,gn={enumerable:!1,configurable:!0,get:function(){return this.class}},vn=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||sn&&"children"===o&&"noscript"===n||"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"!==n&&"textarea"!==n||ln(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":on.test(o)&&(o=s):s=o="oninput":i&&rn.test(o)?o=o.replace(an,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=N(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=N(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",gn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=nn,vn&&vn(e)};var yn=t.__r;t.__r=function(e){yn&&yn(e),mn=e.__c};var wn=t.diffed;t.diffed=function(e){wn&&wn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),mn=null};var bn={ReactCurrentDispatcher:{current:{readContext:function(e){return mn.__n[e.__c].props.value},useCallback:Ce,useContext:Te,useDebugValue:Re,useDeferredValue:In,useEffect:_e,useId:Oe,useImperativeHandle:Se,useInsertionEffect:Dn,useLayoutEffect:xe,useMemo:Ee,useReducer:be,useRef:ke,useState:we,useSyncExternalStore:Nn,useTransition:Fn}}},_n="18.3.1";function xn(e){return C.bind(null,e)}function kn(e){return!!e&&e.$$typeof===nn}function Sn(e){return kn(e)&&e.type===P}function En(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Cn(e){return kn(e)?G.apply(null,arguments):e}function Tn(e){return!!e.__k&&(K(null,e),!0)}function Rn(e){return e&&(e.base||1===e.nodeType&&e)||null}var Pn=function(e,t){return e(t)},On=function(e,t){return e(t)},Ln=P;function An(e){e()}function In(e){return e}function Fn(){return[!1,An]}var Dn=xe,Mn=kn;function Nn(e,t){var n=t(),r=we({h:{__:n,v:t}}),i=r[0].h,o=r[1];return xe((function(){i.__=n,i.v=t,$n(i)&&o({h:i})}),[e,n,t]),_e((function(){return $n(i)&&o({h:i}),e((function(){$n(i)&&o({h:i})}))}),[e]),n}function $n(e){var t,n,r=e.v,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Hn={useState:we,useId:Oe,useReducer:be,useEffect:_e,useLayoutEffect:xe,useInsertionEffect:Dn,useTransition:Fn,useDeferredValue:In,useSyncExternalStore:Nn,startTransition:An,useRef:ke,useImperativeHandle:Se,useMemo:Ee,useCallback:Ce,useContext:Te,useDebugValue:Re,version:"18.3.1",Children:qt,render:cn,hydrate:un,unmountComponentAtNode:Tn,createPortal:tn,createElement:C,createContext:Y,createFactory:xn,cloneElement:Cn,createRef:R,Fragment:P,isValidElement:kn,isElement:Mn,isFragment:Sn,isMemo:En,findDOMNode:Rn,Component:O,PureComponent:Nt,memo:$t,forwardRef:Wt,flushSync:On,unstable_batchedUpdates:Pn,StrictMode:Ln,Suspense:Vt,SuspenseList:Xt,lazy:Yt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:bn},jn=0;Array.isArray;function Wn(e,n,r,i,o,a){n||(n={});var s,l,c=n;"ref"in n&&(s=n.ref,delete n.ref);var u={type:e,props:c,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--jn,__i:-1,__u:0,__source:o,__self:a};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return t.vnode&&t.vnode(u),u}var Un=Y(void 0),qn=e=>{const t=Te(Un);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bn=({client:e,children:t})=>(_e((()=>(e.mount(),()=>{e.unmount()})),[e]),Wn(Un.Provider,{value:e,children:t})),zn=Y(!1);zn.Provider;var Qn=Y(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Kn(e,t){return"function"==typeof e?e(...t):!!e}function Vn(){}var Gn=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function Yn(e,t,n){const r=qn(n),i=Te(zn),o=Te(Qn),a=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=i?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(a),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{_e((()=>{e.clearReset()}),[e])})(o);const s=!r.getQueryCache().get(a.queryHash),[l]=we((()=>new t(r,a))),c=l.getOptimisticResult(a);if(Nn(Ce((e=>{const t=i?Vn:l.subscribe(vt.batchCalls(e));return l.updateResult(),t}),[l,i]),(()=>l.getCurrentResult())),_e((()=>{l.setOptions(a,{listeners:!1})}),[a,l]),((e,t)=>e?.suspense&&t.isPending)(a,c))throw Gn(a,l,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Kn(n,[e.error,r]))({result:c,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw c.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(a,c),a.experimental_prefetchInRender&&!Ue&&((e,t)=>e.isLoading&&e.isFetching&&!t)(c,i)&&(s?Gn(a,l,o):r.getQueryCache().get(a.queryHash)?.promise)?.catch(Vn).finally((()=>{l.updateResult()})),a.notifyOnChangeProps?c:l.trackResult(c)}function Xn(e,t){return Yn(e,Pt,t)}function Jn(e,t){const n=qn(t),[r]=we((()=>new Ft(n,e)));_e((()=>{r.setOptions(e)}),[r,e]);const i=Nn(Ce((e=>r.subscribe(vt.batchCalls(e))),[r]),(()=>r.getCurrentResult())),o=Ce(((e,t)=>{r.mutate(e,t).catch(Vn)}),[r]);if(i.error&&Kn(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}var Zn,er=Y({account:{accountId:""},backend:{url:"",accessToken:""}}),tr=()=>Te(er),nr=class e extends Error{_response;get response(){return this._response}constructor(t,n){super(t),this._response=n,Object.setPrototypeOf(this,e.prototype)}},rr=async(e,t,n,r)=>{const i=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.1213",authorization:`Bearer ${t}`},signal:AbortSignal?.timeout&&AbortSignal.timeout(15e3)});if(!i.ok)throw new nr(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},ir=async(e,t,n,r)=>await(await rr(e,t,n,r)).json(),or=e=>{const t=tr();return Ee((()=>e(t)),[e,t])},ar="linkedAccount",sr="linkedProfilesForAccount",lr="salaryPackagedItem",cr="checkProfileSearchAuthorization",ur="payrollAdvice",dr="invoices",fr="/salary-packaging/admin/v1.0",pr=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/auth`),e.backend.accessToken,"GET"),hr=e=>async t=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profile-search?search=${t}`),e.backend.accessToken,"GET"),mr=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const n=new Date;n.setUTCDate((new Date).getUTCDate()+2),await rr(new URL(`${e.backend.url}${fr}/ingest/clients`),e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:n.toISOString().split("T")[0]})},gr=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}`),e.backend.accessToken,"GET"),vr=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles`),e.backend.accessToken,"GET"),yr=e=>async t=>{await rr(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles/${t}/unlink`),e.backend.accessToken,"POST")},wr=e=>async(t,n)=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles/${t}/items/${n}`),e.backend.accessToken,"GET"),br=e=>async t=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`),e.backend.accessToken,"GET"),_r=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/invoices`),e.backend.accessToken,"GET"),xr=()=>({checkProfileSearchAuthorization:or(pr),searchProfilesForAccount:or(hr),ingestClient:or(mr),linkedAccount:or(gr),linkedProfilesForAccount:or(vr),unlinkProfile:or(yr),salaryPackagedItem:or(wr),payrollAdvice:or(br),invoices:or(_r)}),kr="popstate";function Sr(e={}){return function(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s="POP",l=null,c=u();null==c&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:m.location,delta:t})}function f(e,t){s="PUSH";let r=Rr(m.location,e,t);n&&n(r,e),c=u()+1;let d=Tr(r,c),f=m.createHref(r);try{a.pushState(d,"",f)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(f)}o&&l&&l({action:s,location:m.location,delta:1})}function p(e,t){s="REPLACE";let r=Rr(m.location,e,t);n&&n(r,e),c=u();let i=Tr(r,c),d=m.createHref(r);a.replaceState(i,"",d),o&&l&&l({action:s,location:m.location,delta:0})}function h(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href);Er(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:Pr(e);r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r);return new URL(r,n)}(e)}let m={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(kr,d),l=e,()=>{i.removeEventListener(kr,d),l=null}},createHref:e=>t(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go:e=>a.go(e)};return m}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=Or(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),Rr("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:Pr(t))}),(function(e,t){Cr("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function Er(e,t){if(!1===e||null==e)throw new Error(t)}function Cr(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(Sd){}}}function Tr(e,t){return{usr:e.state,key:e.key,idx:t}}function Rr(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Or(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Pr({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function Or(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Lr(e,t,n="/"){return function(e,t,n,r){let i=zr(("string"==typeof t?Or(t):t).pathname||"/",n);if(null==i)return null;let o=Ar(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let s=0;null==a&&s<o.length;++s){let e=Br(i);a=Ur(o[s],e,r)}return a}(e,t,n,!1)}function Ar(e,t=[],n=[],r="",i=!1){let o=(e,o,a=i,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;Er(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let c=Jr([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(Er(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Ar(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:Wr(c,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of Ir(e.path))o(e,t,!0,n);else o(e,t)})),t}function Ir(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=Ir(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var Fr=/^:[\w-]+$/,Dr=3,Mr=2,Nr=1,$r=10,Hr=-2,jr=e=>"*"===e;function Wr(e,t){let n=e.split("/"),r=n.length;return n.some(jr)&&(r+=Hr),t&&(r+=Mr),n.filter((e=>!jr(e))).reduce(((e,t)=>e+(Fr.test(t)?Dr:""===t?Nr:$r)),r)}function Ur(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=qr({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=qr({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:Jr([o,u.pathname]),pathnameBase:Zr(Jr([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=Jr([o,u.pathnameBase]))}return a}function qr(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){Cr("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");return[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=s[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function Br(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return Cr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zr(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var Qr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Kr(e,t="/"){let n,{pathname:r,search:i="",hash:o=""}="string"==typeof e?Or(e):e;if(r)if(a=r,Qr.test(a))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),Cr(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${r}`)}n=r.startsWith("/")?Vr(r.substring(1),"/"):Vr(r,t)}else n=t;var a;return{pathname:n,search:ei(i),hash:ti(o)}}function Vr(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function Gr(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Yr(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function Xr(e,t,n,r=!1){let i;"string"==typeof e?i=Or(e):(i={...e},Er(!i.pathname||!i.pathname.includes("?"),Gr("?","pathname","search",i)),Er(!i.pathname||!i.pathname.includes("#"),Gr("#","pathname","hash",i)),Er(!i.search||!i.search.includes("#"),Gr("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=Kr(i,o),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var Jr=e=>e.join("/").replace(/\/\/+/g,"/"),Zr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ei=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",ti=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",ni=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ri(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function ii(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var oi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ai(e,t){let n=e;if("string"!=typeof n||!Qr.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(oi)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=zr(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:i=!0}catch(Sd){Cr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var si=["POST","PUT","PATCH","DELETE"],li=(new Set(si),["GET",...si]),ci=(new Set(li),Y(null));ci.displayName="DataRouter";var ui=Y(null);ui.displayName="DataRouterState";var di=Y(!1);var fi=Y({isTransitioning:!1});fi.displayName="ViewTransition",Y(new Map).displayName="Fetchers";var pi=Y(null);pi.displayName="Await";var hi=Y(null);hi.displayName="Navigation";var mi=Y(null);mi.displayName="Location";var gi=Y({outlet:null,matches:[],isDataRoute:!1});gi.displayName="Route";var vi=Y(null);vi.displayName="RouteError";var yi="REACT_ROUTER_ERROR";function wi(){return null!=Te(mi)}function bi(){return Er(wi(),"useLocation() may be used only in the context of a <Router> component."),Te(mi).location}var _i="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xi(e){Te(hi).static||xe(e)}function ki(){let{isDataRoute:e}=Te(gi);return e?function(){let{router:e}=function(e){let t=Te(ci);return Er(t,Fi(e)),t}("useNavigate"),t=Mi("useNavigate"),n=ke(!1);return xi((()=>{n.current=!0})),Ce((async(r,i={})=>{Cr(n.current,_i),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))}),[e,t])}():function(){Er(wi(),"useNavigate() may be used only in the context of a <Router> component.");let e=Te(ci),{basename:t,navigator:n}=Te(hi),{matches:r}=Te(gi),{pathname:i}=bi(),o=JSON.stringify(Yr(r)),a=ke(!1);return xi((()=>{a.current=!0})),Ce(((r,s={})=>{if(Cr(a.current,_i),!a.current)return;if("number"==typeof r)return void n.go(r);let l=Xr(r,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Jr([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,o,i,e])}()}var Si=Y(null);function Ei(e){let t=Te(gi).outlet;return Ee((()=>t&&C(Si.Provider,{value:e},t)),[t,e])}function Ci(e,{relative:t}={}){let{matches:n}=Te(gi),{pathname:r}=bi(),i=JSON.stringify(Yr(n));return Ee((()=>Xr(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function Ti(e,t,n,r,i){Er(wi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=Te(hi),{matches:a}=Te(gi),s=a[a.length-1],l=s?s.params:{},c=s?s.pathname:"/",u=s?s.pathnameBase:"/",d=s&&s.route;{let e=d&&d.path||"";$i(c,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let f,p=bi();if(t){let e="string"==typeof t?Or(t):t;Er("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=p;let h=f.pathname||"/",m=h;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=Lr(e,{pathname:m});Cr(d||null!=g,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Cr(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,o=n?.errors;if(null!=o){let e=i.findIndex((e=>e.route.id&&void 0!==o?.[e.route.id]));Er(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,s=-1;if(n)for(let c=0;c<i.length;c++){let e=i[c];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(s=c),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){a=!0,i=s>=0?i.slice(0,s+1):[i[0]];break}}}let l=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:ii(n.matches),errorInfo:t})}:void 0;return i.reduceRight(((e,r,c)=>{let u,d=!1,f=null,p=null;n&&(u=o&&r.route.id?o[r.route.id]:void 0,f=r.route.errorElement||Pi,a&&(s<0&&0===c?($i("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=r.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),m=()=>{let t;return t=u?f:d?p:r.route.Component?C(r.route.Component,null):r.route.element?r.route.element:e,C(Ii,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?C(Oi,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):m()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Jr([u,o.encodeLocation?o.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Jr([u,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),a,n,r,i);return t&&v?C(mi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},v):v}function Ri(){let e=function(){let e=Te(vi),t=Di("useRouteError"),n=Mi("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=ri(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=C(P,null,C("p",null,"💿 Hey developer 👋"),C("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C("code",{style:o},"ErrorBoundary")," or"," ",C("code",{style:o},"errorElement")," prop on your route.")),C(P,null,C("h2",null,"Unexpected Application Error!"),C("h3",{style:{fontStyle:"italic"}},t),n?C("pre",{style:i},n):null,a)}var Pi=C(Ri,null),Oi=class extends O{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${yi}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new ni(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?C(gi.Provider,{value:this.props.routeContext},C(vi.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?C(Ai,{error:e},t):t}};Oi.contextType=di;var Li=new WeakMap;function Ai({children:e,error:t}){let{basename:n}=Te(hi);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${yi}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Li.get(t);if(r)throw r;let i=ai(e.location,n);if(oi&&!Li.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace})));throw Li.set(t,n),n}window.location.href=i.absoluteURL||i.to}return C("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Ii({routeContext:e,match:t,children:n}){let r=Te(ci);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C(gi.Provider,{value:e},n)}function Fi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Di(e){let t=Te(ui);return Er(t,Fi(e)),t}function Mi(e){let t=function(e){let t=Te(gi);return Er(t,Fi(e)),t}(e),n=t.matches[t.matches.length-1];return Er(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Ni={};function $i(e,t,n){t||Ni[e]||(Ni[e]=!0,Cr(!1,n))}$t((function({routes:e,future:t,state:n,onError:r}){return Ti(e,void 0,n,r,t)}));function Hi({to:e,replace:t,state:n,relative:r}){Er(wi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=Te(hi);Cr(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=Te(gi),{pathname:a}=bi(),s=ki(),l=Xr(e,Yr(o),a,"path"===r),c=JSON.stringify(l);return _e((()=>{s(JSON.parse(c),{replace:t,state:n,relative:r})}),[s,c,r,t,n]),null}function ji(e){return Ei(e.context)}function Wi(e){Er(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ui({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1,unstable_useTransitions:a}){Er(!wi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=Ee((()=>({basename:s,navigator:i,static:o,unstable_useTransitions:a,future:{}})),[s,i,o,a]);"string"==typeof n&&(n=Or(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:p="default"}=n,h=Ee((()=>{let e=zr(c,s);return null==e?null:{location:{pathname:e,search:u,hash:d,state:f,key:p},navigationType:r}}),[s,c,u,d,f,p,r]);return Cr(null!=h,`<Router basename="${s}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:C(hi.Provider,{value:l},C(mi.Provider,{children:t,value:h}))}function qi({children:e,location:t}){return Ti(Bi(e),t)}function Bi(e,t=[]){let n=[];return qt.forEach(e,((e,r)=>{if(!kn(e))return;let i=[...t,r];if(e.type===P)return void n.push.apply(n,Bi(e.props.children,i));Er(e.type===Wi,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Er(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Bi(e.props.children,i)),n.push(o)})),n}var zi="get",Qi="application/x-www-form-urlencoded";function Ki(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Vi=null;var Gi=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yi(e){return null==e||Gi.has(e)?e:(Cr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qi}"`),null)}function Xi(e,t){let n,r,i,o,a;if(Ki(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?zr(a,t):null,n=e.getAttribute("method")||zi,i=Yi(e.getAttribute("enctype"))||Qi,o=new FormData(e)}else if(function(e){return Ki(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ki(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?zr(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||zi,i=Yi(e.getAttribute("formenctype"))||Yi(a.getAttribute("enctype"))||Qi,o=new FormData(a,e),!function(){if(null===Vi)try{new FormData(document.createElement("form"),0),Vi=!1}catch(Sd){Vi=!0}return Vi}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(Ki(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=zi,r=null,i=Qi,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ji(e,t){if(!1===e||null==e)throw new Error(t)}async function Zi(e,t){if(e.id in t)return t[e.id];try{let n=await function(e){function t(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return Promise.resolve().then((n=>{for(const e of n||[])"rejected"===e.status&&t(e.reason);return e().catch(t)}))}((()=>import(e.module)));return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function eo(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function to(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,i)=>{if(t&&(null==(o=i)||"string"!=typeof o.page)&&"script"===i.as&&i.href&&r.has(i.href))return e;var o;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Zi(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(eo).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}function no(e,t,n,r,i,o){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter(((e,t)=>a(e,t)||s(e,t))):"data"===o?t.filter(((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function ro(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i})).flat(1),[...new Set(r)];var r}function io(){let e=Te(ci);return Ji(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function oo(){let e=Te(ui);return Ji(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ao=Y(void 0);function so(){let e=Te(ao);return Ji(e,"You must render this element inside a <HydratedRouter> element"),e}function lo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function co({page:e,...t}){let{router:n}=io(),r=Ee((()=>Lr(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?C(uo,{page:e,matches:r,...t}):null}function uo({page:e,matches:t,...n}){let r=bi(),{future:i,manifest:o,routeModules:a}=so(),{basename:s}=io(),{loaderData:l,matches:c}=oo(),u=Ee((()=>no(e,t,c,o,r,"data")),[e,t,c,o,r]),d=Ee((()=>no(e,t,c,o,r,"assets")),[e,t,c,o,r]),f=Ee((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,c=!1;if(t.forEach((e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?c=!0:n.add(e.route.id))})),0===n.size)return[];let d=function(e,t,n,r){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:"/"===i.pathname?i.pathname=`_root.${r}`:t&&"/"===zr(i.pathname,t)?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}(e,s,i.unstable_trailingSlashAwareDataRequests,"data");return c&&n.size>0&&d.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[d.pathname+d.search]}),[s,i.unstable_trailingSlashAwareDataRequests,l,r,o,u,t,e,a]),p=Ee((()=>ro(d,o)),[d,o]),h=function(e){let{manifest:t,routeModules:n}=so(),[r,i]=we([]);return _e((()=>{let r=!1;return to(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}(d);return C(P,null,f.map((e=>C("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>C("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>C("link",{key:e,nonce:n.nonce,...t}))))}ao.displayName="FrameworkContext";function fo(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var po="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{po&&(window.__reactRouterVersion="7.12.0")}catch(Sd){}function ho({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=ke();null==i.current&&(i.current=Sr({window:r,v5Compat:!0}));let o=i.current,[a,s]=we({action:o.action,location:o.location}),l=Ce((e=>{!1===n?s(e):An((()=>s(e)))}),[n]);return xe((()=>o.listen(l)),[o,l]),C(Ui,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o,unstable_useTransitions:n})}var mo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,go=Wt((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:o,state:a,target:s,to:l,preventScrollReset:c,viewTransition:u,unstable_defaultShouldRevalidate:d,...f},p){let{basename:h,unstable_useTransitions:m}=Te(hi),g="string"==typeof l&&mo.test(l),v=ai(l,h),y=function(e,{relative:t}={}){Er(wi(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=Te(hi),{hash:i,pathname:o,search:a}=Ci(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:Jr([n,o])),r.createHref({pathname:s,search:a,hash:i})}(l=v.to,{relative:r}),[w,b,_]=function(e,t){let n=Te(ao),[r,i]=we(!1),[o,a]=we(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,f=ke(null);_e((()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{a(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),_e((()=>{if(r){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let p=()=>{i(!0)},h=()=>{i(!1),a(!1)};return n?"intent"!==e?[o,f,{}]:[o,f,{onFocus:lo(s,p),onBlur:lo(l,h),onMouseEnter:lo(c,p),onMouseLeave:lo(u,h),onTouchStart:lo(d,p)}]:[!1,f,{}]}(n,f),x=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let c=ki(),u=bi(),d=Ci(e,{relative:o});return Ce((f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,t)){f.preventDefault();let t=void 0!==n?n:Pr(u)===Pr(d),p=()=>c(e,{replace:t,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s});l?An((()=>p())):p()}}),[u,c,d,n,r,t,e,i,o,a,s,l])}(l,{replace:o,state:a,target:s,preventScrollReset:c,relative:r,viewTransition:u,unstable_defaultShouldRevalidate:d,unstable_useTransitions:m});let k=C("a",{...f,..._,href:v.absoluteURL||y,onClick:v.isExternal||i?e:function(t){e&&e(t),t.defaultPrevented||x(t)},ref:fo(p,b),target:s,"data-discover":g||"render"!==t?void 0:"true"});return w&&!g?C(P,null,k,C(co,{page:y})):k}));go.displayName="Link";var vo=Wt((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:o,viewTransition:a,children:s,...l},c){let u=Ci(o,{relative:l.relative}),d=bi(),f=Te(ui),{navigator:p,basename:h}=Te(hi),m=null!=f&&function(e,{relative:t}={}){let n=Te(fi);Er(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=bo("useViewTransitionState"),i=Ci(e,{relative:t});if(!n.isTransitioning)return!1;let o=zr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=zr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=qr(i.pathname,a)||null!=qr(i.pathname,o)}(u)&&!0===a,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&h&&(y=zr(y,h)||y);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let b,_=v===g||!r&&v.startsWith(g)&&"/"===v.charAt(w),x=null!=y&&(y===g||!r&&y.startsWith(g)&&"/"===y.charAt(g.length)),k={isActive:_,isPending:x,isTransitioning:m},S=_?e:void 0;b="function"==typeof n?n(k):[n,_?"active":null,x?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(k):i;return C(go,{...l,"aria-current":S,className:b,ref:c,style:E,to:o,viewTransition:a},"function"==typeof s?s(k):s)}));vo.displayName="NavLink";var yo=Wt((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=zi,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...p},h)=>{let{unstable_useTransitions:m}=Te(hi),g=function(){let{router:e}=bo("useSubmit"),{basename:t}=Te(hi),n=Mi("useRouteId"),r=e.fetch,i=e.navigate;return Ce((async(e,o={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=Xi(e,t);!1===o.navigate?await r(o.fetcherKey||xo(),n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync}):await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[r,i,t,n])}(),v=function(e,{relative:t}={}){let{basename:n}=Te(hi),r=Te(gi);Er(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Ci(e||".",{relative:t})},a=bi();if(null==e){o.search=a.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();o.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(o.pathname="/"===o.pathname?n:Jr([n,o.pathname]));return Pr(o)}(s,{relative:c}),y="get"===a.toLowerCase()?"get":"post",w="string"==typeof s&&mo.test(s);return C("form",{ref:h,method:y,action:v,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||a,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:o,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f});m&&!1!==n?An((()=>p())):p()},...p,"data-discover":w||"render"!==e?void 0:"true"})}));function wo(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bo(e){let t=Te(ci);return Er(t,wo(e)),t}yo.displayName="Form";var _o=0,xo=()=>`__${String(++_o)}__`;function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko.apply(null,arguments)}var So=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(Sd){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Eo="-ms-",Co="-moz-",To="-webkit-",Ro="comm",Po="rule",Oo="decl",Lo="@keyframes",Ao=Math.abs,Io=String.fromCharCode,Fo=Object.assign;function Do(e){return e.trim()}function Mo(e,t,n){return e.replace(t,n)}function No(e,t){return e.indexOf(t)}function $o(e,t){return 0|e.charCodeAt(t)}function Ho(e,t,n){return e.slice(t,n)}function jo(e){return e.length}function Wo(e){return e.length}function Uo(e,t){return t.push(e),e}var qo=1,Bo=1,zo=0,Qo=0,Ko=0,Vo="";function Go(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:qo,column:Bo,length:a,return:""}}function Yo(e,t){return Fo(Go("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xo(){return Ko=Qo>0?$o(Vo,--Qo):0,Bo--,10===Ko&&(Bo=1,qo--),Ko}function Jo(){return Ko=Qo<zo?$o(Vo,Qo++):0,Bo++,10===Ko&&(Bo=1,qo++),Ko}function Zo(){return $o(Vo,Qo)}function ea(){return Qo}function ta(e,t){return Ho(Vo,e,t)}function na(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ra(e){return qo=Bo=1,zo=jo(Vo=e),Qo=0,[]}function ia(e){return Vo="",e}function oa(e){return Do(ta(Qo-1,la(91===e?e+2:40===e?e+1:e)))}function aa(e){for(;(Ko=Zo())&&Ko<33;)Jo();return na(e)>2||na(Ko)>3?"":" "}function sa(e,t){for(;--t&&Jo()&&!(Ko<48||Ko>102||Ko>57&&Ko<65||Ko>70&&Ko<97););return ta(e,ea()+(t<6&&32==Zo()&&32==Jo()))}function la(e){for(;Jo();)switch(Ko){case e:return Qo;case 34:case 39:34!==e&&39!==e&&la(Ko);break;case 40:41===e&&la(e);break;case 92:Jo()}return Qo}function ca(e,t){for(;Jo()&&e+Ko!==57&&(e+Ko!==84||47!==Zo()););return"/*"+ta(t,Qo-1)+"*"+Io(47===e?e:Jo())}function ua(e){for(;!na(Zo());)Jo();return ta(e,Qo)}function da(e){return ia(fa("",null,null,null,[""],e=ra(e),0,[0],e))}function fa(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,w="",b=i,_=o,x=r,k=w;g;)switch(h=y,y=Jo()){case 40:if(108!=h&&58==$o(k,d-1)){-1!=No(k+=Mo(oa(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=oa(y);break;case 9:case 10:case 13:case 32:k+=aa(h);break;case 92:k+=sa(ea()-1,7);continue;case 47:switch(Zo()){case 42:case 47:Uo(ha(ca(Jo(),ea()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=jo(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=Mo(k,/\f/g,"")),p>0&&jo(k)-d&&Uo(p>32?ma(k+";",r,n,d-1):ma(Mo(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Uo(x=pa(k,t,n,c,u,i,s,w,b=[],_=[],d),o),123===y)if(0===u)fa(k,t,x,x,b,o,d,s,_);else switch(99===f&&110===$o(k,3)?100:f){case 100:case 108:case 109:case 115:fa(e,x,x,r&&Uo(pa(e,x,x,0,0,i,s,w,i,b=[],d),_),i,_,d,s,r?b:_);break;default:fa(k,x,x,x,[""],_,0,s,_)}}c=u=p=0,m=v=1,w=k="",d=a;break;case 58:d=1+jo(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Xo())continue;switch(k+=Io(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(jo(k)-1)*v,v=1;break;case 64:45===Zo()&&(k+=oa(Jo())),f=Zo(),u=d=jo(w=k+=ua(ea())),y++;break;case 45:45===h&&2==jo(k)&&(m=0)}}return o}function pa(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],p=Wo(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Ho(e,d+1,d=Ao(m=a[h])),w=e;v<p;++v)(w=Do(m>0?f[v]+" "+y:Mo(y,/&\f/g,f[v])))&&(l[g++]=w);return Go(e,t,n,0===i?Po:s,l,c,u)}function ha(e,t,n){return Go(e,t,n,Ro,Io(Ko),Ho(e,2,-2),0)}function ma(e,t,n,r){return Go(e,t,n,Oo,Ho(e,0,r),Ho(e,r+1,-1),r)}function ga(e,t){for(var n="",r=Wo(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function va(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Oo:return e.return=e.return||e.value;case Ro:return"";case Lo:return e.return=e.value+"{"+ga(e.children,r)+"}";case Po:e.value=e.props.join(",")}return jo(n=ga(e.children,r))?e.return=e.value+"{"+n+"}":""}function ya(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var wa=function(e,t,n){for(var r=0,i=0;r=i,i=Zo(),38===r&&12===i&&(t[n]=1),!na(i);)Jo();return ta(e,Qo)},ba=function(e,t){return ia(function(e,t){var n=-1,r=44;do{switch(na(r)){case 0:38===r&&12===Zo()&&(t[n]=1),e[n]+=wa(Qo-1,t,n);break;case 2:e[n]+=oa(r);break;case 4:if(44===r){e[++n]=58===Zo()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Io(r)}}while(r=Jo());return e}(ra(e),t))},_a=new WeakMap,xa=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||_a.get(n))&&!r){_a.set(e,!0);for(var i=[],o=ba(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ka=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Sa(e,t){switch(function(e,t){return 45^$o(e,0)?(((t<<2^$o(e,0))<<2^$o(e,1))<<2^$o(e,2))<<2^$o(e,3):0}(e,t)){case 5103:return To+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return To+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return To+e+Co+e+Eo+e+e;case 6828:case 4268:return To+e+Eo+e+e;case 6165:return To+e+Eo+"flex-"+e+e;case 5187:return To+e+Mo(e,/(\w+).+(:[^]+)/,To+"box-$1$2"+Eo+"flex-$1$2")+e;case 5443:return To+e+Eo+"flex-item-"+Mo(e,/flex-|-self/,"")+e;case 4675:return To+e+Eo+"flex-line-pack"+Mo(e,/align-content|flex-|-self/,"")+e;case 5548:return To+e+Eo+Mo(e,"shrink","negative")+e;case 5292:return To+e+Eo+Mo(e,"basis","preferred-size")+e;case 6060:return To+"box-"+Mo(e,"-grow","")+To+e+Eo+Mo(e,"grow","positive")+e;case 4554:return To+Mo(e,/([^-])(transform)/g,"$1"+To+"$2")+e;case 6187:return Mo(Mo(Mo(e,/(zoom-|grab)/,To+"$1"),/(image-set)/,To+"$1"),e,"")+e;case 5495:case 3959:return Mo(e,/(image-set\([^]*)/,To+"$1$`$1");case 4968:return Mo(Mo(e,/(.+:)(flex-)?(.*)/,To+"box-pack:$3"+Eo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+To+e+e;case 4095:case 3583:case 4068:case 2532:return Mo(e,/(.+)-inline(.+)/,To+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jo(e)-1-t>6)switch($o(e,t+1)){case 109:if(45!==$o(e,t+4))break;case 102:return Mo(e,/(.+:)(.+)-([^]+)/,"$1"+To+"$2-$3$1"+Co+(108==$o(e,t+3)?"$3":"$2-$3"))+e;case 115:return~No(e,"stretch")?Sa(Mo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==$o(e,t+1))break;case 6444:switch($o(e,jo(e)-3-(~No(e,"!important")&&10))){case 107:return Mo(e,":",":"+To)+e;case 101:return Mo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+To+(45===$o(e,14)?"inline-":"")+"box$3$1"+To+"$2$3$1"+Eo+"$2box$3")+e}break;case 5936:switch($o(e,t+11)){case 114:return To+e+Eo+Mo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return To+e+Eo+Mo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return To+e+Eo+Mo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return To+e+Eo+e+e}return e}var Ea=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Oo:e.return=Sa(e.value,e.length);break;case Lo:return ga([Yo(e,{value:Mo(e.value,"@","@"+To)})],r);case Po:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ga([Yo(e,{props:[Mo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ga([Yo(e,{props:[Mo(t,/:(plac\w+)/,":"+To+"input-$1")]}),Yo(e,{props:[Mo(t,/:(plac\w+)/,":-moz-$1")]}),Yo(e,{props:[Mo(t,/:(plac\w+)/,Eo+"input-$1")]})],r)}return""}))}}],Ca=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||Ea,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[va,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=Wo(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([xa,ka].concat(o,u));i=function(e,t,n,r){l=n,ga(da(e?e+"{"+t.styles+"}":t.styles),d),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new So({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},Ta=v((e=>{var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case u:case i:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case h:case s:return e;default:return t}}case r:return t}}}function _(e){return b(e)===u}e.AsyncMode=c,e.ConcurrentMode=u,e.ContextConsumer=l,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=m,e.Memo=h,e.Portal=r,e.Profiler=a,e.StrictMode=o,e.Suspense=f,e.isAsyncMode=function(e){return _(e)||b(e)===c},e.isConcurrentMode=_,e.isContextConsumer=function(e){return b(e)===l},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===m},e.isMemo=function(e){return b(e)===h},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===a},e.isStrictMode=function(e){return b(e)===o},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},e.typeOf=b})),Ra=v(((e,t)=>{t.exports=Ta()})),Pa=v(((e,t)=>{var n=Ra(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return n.isMemo(e)?o:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=f(n);o&&o!==p&&e(t,o,r)}var a=c(n);u&&(a=a.concat(u(n)));for(var h=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||h&&h[v])){var y=d(n,v);try{l(t,v,y)}catch(Sd){}}}}return t}}));function Oa(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var La=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Aa=function(e,t,n){La(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};function Ia(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var Fa={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Da=/[A-Z]|^ms/g,Ma=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Na=function(e){return 45===e.charCodeAt(1)},$a=function(e){return null!=e&&"boolean"!=typeof e},Ha=ya((function(e){return Na(e)?e:e.replace(Da,"-$&").toLowerCase()})),ja=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ma,(function(e,t,n){return Ua={name:t,styles:n,next:Ua},t}))}return 1===Fa[e]||Na(e)||"number"!=typeof t||0===t?t:t+"px"};function Wa(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Ua={name:i.name,styles:i.styles,next:Ua},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Ua={name:a.name,styles:a.styles,next:Ua},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Wa(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":$a(s)&&(r+=Ha(o)+":"+ja(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Wa(e,t,a);switch(o){case"animation":case"animationName":r+=Ha(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)$a(a[c])&&(r+=Ha(o)+":"+ja(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Ua,l=n(e);return Ua=s,Wa(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Ua,qa=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ba(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Ua=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Wa(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=Wa(n,t,e[a]),r&&(i+=o[a]);qa.lastIndex=0;for(var s,l="";null!==(s=qa.exec(i));)l+="-"+s[1];return{name:Ia(i)+l,styles:i,next:Ua}}var za,Qa,Ka=Dn||!1,Va=Ka||function(e){return e()},Ga=Ka||xe,Ya=Y("undefined"!=typeof HTMLElement?Ca({key:"css"}):null),Xa=Ya.Provider,Ja=function(e){return Wt((function(t,n){return e(t,Te(Ya),n)}))},Za=Y({}),es={}.hasOwnProperty,ts="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ns=function(e,t){var n={};for(var r in t)es.call(t,r)&&(n[r]=t[r]);return n[ts]=e,n},rs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return La(t,n,r),Va((function(){return Aa(t,n,r)})),null},is=Ja((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[ts],o=[r],a="";"string"==typeof e.className?a=Oa(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Ba(o,void 0,Te(Za));a+=t.key+"-"+s.name;var l={};for(var c in e)es.call(e,c)&&"css"!==c&&c!==ts&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),C(P,null,C(rs,{cache:t,serialized:s,isStringTag:"string"==typeof i}),C(i,l))})),os=(Pa(),function(e,t){var n=arguments;if(null==t||!es.call(t,"css"))return C.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=is,i[1]=ns(e,t);for(var o=2;o<r;o++)i[o]=n[o];return C.apply(null,i)});za=os||(os={}),Qa||(Qa=za.JSX||(za.JSX={}));var as=Ja((function(e,t){var n=Ba([e.styles],void 0,Te(Za)),r=ke();return Ga((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),Ga((function(){var e=r.current,i=e[0];e[1]?e[1]=!1:(void 0!==n.next&&Aa(t,n.next,!0),i.tags.length&&(i.before=i.tags[i.tags.length-1].nextElementSibling,i.flush()),t.insert("",n,i,!1))}),[t,n.name]),null}));function ss(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ba(t)}var ls=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cs=ya((function(e){return ls.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),us=function(e){return"theme"!==e},ds=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?cs:us},fs=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ps=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return La(t,n,r),Va((function(){return Aa(t,n,r)})),null},hs=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=fs(t,n,o),l=s||ds(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=Ja((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=Te(Za)}"string"==typeof e.className?o=Oa(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var h=Ba(d.concat(u),t.registered,f);o+=t.key+"-"+h.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?ds(r):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=o,n&&(g.ref=n),C(P,null,C(ps,{cache:t,serialized:h,isStringTag:"string"==typeof r}),C(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,ko({},n,r,{shouldForwardProp:fs(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){hs[e]=hs(e)}));var ms=hs.span({whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isActive:e})=>e?{cursor:"default","--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:{cursor:"pointer",borderColor:"transparent","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}})),gs=hs.span({marginLeft:"0.25rem",display:"inline-flex",width:"1.25rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontWeight:"700","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},(({isActive:e})=>e?{"--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))"}:{"--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))",".group:hover &":{"--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity))"}})),vs=P,ys=function(e,t,n){return es.call(t,"css")?Wn(is,ns(e,t),n):Wn(e,t,n)},ws=function(e,t,n){return es.call(t,"css")?Wn(is,ns(e,t),n):Wn(e,t,n)},bs=({tabs:e})=>ys("div",{css:{display:"block"},children:ys("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))",paddingBottom:"1rem"},children:ys("nav",{"aria-label":"Tabs",css:{marginBottom:"-2px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"},paddingTop:"1rem"},children:e.map((e=>ys(vo,{to:e.id,children:({isActive:t})=>ws(ms,{className:"group",isActive:t,children:[e.displayName,void 0!==e.count&&ys(gs,{isActive:t,children:e.count})]})},e.id)))})})}),_s=e=>{const{linkedProfilesForAccount:t,checkProfileSearchAuthorization:n,linkedAccount:r}=xr(),i=Xn({queryKey:[ar],queryFn:r}),o=Xn({queryKey:[sr],queryFn:t}),a=Xn({queryKey:[cr],queryFn:n});_e((()=>{a.error&&e.onError(a.error.message),o.error&&e.onError(o.error.message)}),[a.error,o.error,e]);const s=Ee((()=>[{id:"search",displayName:"Search"},{id:"profiles",displayName:"Linked Profiles",count:o.data?.length},{id:"invoices",displayName:"Invoices"}]),[o.data]);return a.isSuccess&&"Linked"!==a.data.status?ys(Hi,{to:"unlinked",replace:!0}):a.isSuccess?ws("div",{children:[ws("dl",{css:{marginLeft:"0.25rem",paddingTop:"1rem"},children:[ws("div",{css:{display:"flex",gap:"0.5rem"},children:[ys("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Account"}),ys("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:i.data?.id})]}),ws("div",{css:{display:"flex",gap:"0.5rem"},children:[ys("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Client"}),ys("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:i.data?.catchEClientId})]})]}),ys(bs,{tabs:s}),ys("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:ys(ji,{})})]}):ys("div",{children:"Loading..."})},xs=e=>ys(Ef,{children:ys("button",{as:"button",onClick:()=>e.onClick(e.id),css:{display:"inline-flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingLeft:"0.25rem",paddingRight:"0.25rem"},children:e.children})}),ks=e=>ys(Sf,{children:ys("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((t=>ys("li",{children:e.navTo?ys(vo,{css:{"--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))",textDecorationLine:"underline"},to:e.navTo,children:t}):t},t)))})}),Ss="undefined"!=typeof document?Hn.useLayoutEffect:()=>{};var Es=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Cs=e=>e&&"window"in e&&e.window===e?e:Es(e).defaultView||window;function Ts(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function Rs(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ps(e){let t=null;return()=>(null==t&&(t=e()),t)}var Os=Ps((function(){return Rs(/^Mac/i)})),Ls=Ps((function(){return Rs(/^iPhone/i)})),As=Ps((function(){return Rs(/^iPad/i)||Os()&&navigator.maxTouchPoints>1})),Is=Ps((function(){return Ls()||As()})),Fs=(Ps((function(){return Os()||Is()})),Ps((function(){return Ts(/AppleWebKit/i)&&!Fs()})),Ps((function(){return Ts(/Chrome/i)}))),Ds=Ps((function(){return Ts(/Android/i)}));Ps((function(){return Ts(/Firefox/i)}));var Ms=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}};function Ns(e){let t=ke({isFocused:!1,observer:null});Ss((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=ke(null);return Ss((()=>{t.current=e}),[e]),Ce(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Ce((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{t.current.isFocused=!1,r.disabled&&n(new Ms("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}var $s=null,Hs=new Set,js=new Map,Ws=!1,Us=!1,qs={Tab:!0,Escape:!0};function Bs(e,t){for(let n of Hs)n(e,t)}function zs(e){Ws=!0,function(e){return!(e.metaKey||!Os()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&($s="keyboard",Bs("keyboard",e))}function Qs(e){$s="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ws=!0,Bs("pointer",e))}function Ks(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Ds()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(Ws=!0,$s="virtual")}function Vs(e){e.target!==window&&e.target!==document&&(Ws||Us||($s="virtual",Bs("virtual",e)),Ws=!1,Us=!1)}function Gs(){Ws=!1,Us=!0}function Ys(e){if("undefined"==typeof window||js.get(Cs(e)))return;const t=Cs(e),n=Es(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ws=!0,r.apply(this,arguments)},n.addEventListener("keydown",zs,!0),n.addEventListener("keyup",zs,!0),n.addEventListener("click",Ks,!0),t.addEventListener("focus",Vs,!0),t.addEventListener("blur",Gs,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Qs,!0),n.addEventListener("pointermove",Qs,!0),n.addEventListener("pointerup",Qs,!0)):(n.addEventListener("mousedown",Qs,!0),n.addEventListener("mousemove",Qs,!0),n.addEventListener("mouseup",Qs,!0)),t.addEventListener("beforeunload",(()=>{Xs(e)}),{once:!0}),js.set(t,{focus:r})}var Xs=(e,t)=>{const n=Cs(e),r=Es(e);t&&r.removeEventListener("DOMContentLoaded",t),js.has(n)&&(n.HTMLElement.prototype.focus=js.get(n).focus,r.removeEventListener("keydown",zs,!0),r.removeEventListener("keyup",zs,!0),r.removeEventListener("click",Ks,!0),n.removeEventListener("focus",Vs,!0),n.removeEventListener("blur",Gs,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",Qs,!0),r.removeEventListener("pointermove",Qs,!0),r.removeEventListener("pointerup",Qs,!0)):(r.removeEventListener("mousedown",Qs,!0),r.removeEventListener("mousemove",Qs,!0),r.removeEventListener("mouseup",Qs,!0)),js.delete(n))};function Js(){return"pointer"!==$s}"undefined"!=typeof document&&function(e){const t=Es(e);let n;"loading"!==t.readyState?Ys(e):(n=()=>{Ys(e)},t.addEventListener("DOMContentLoaded",n))}();var Zs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function el(e,t,n){Ys(),_e((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?Cs(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?Cs(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?Cs(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?Cs(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!Zs.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof o||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof s&&!qs[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(Js())};return Hs.add(t),()=>{Hs.delete(t)}}),t)}var tl=!1,nl=0;function rl(){tl=!0,setTimeout((()=>{tl=!1}),50)}function il(e){"touch"===e.pointerType&&rl()}function ol(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",il):document.addEventListener("touchend",rl),nl++,()=>{--nl>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",il):document.removeEventListener("touchend",rl))}}function al(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=ke({isFocused:!1,isFocusVisible:t||Js()}),[o,a]=we(!1),[s,l]=we((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Ce((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Ce((e=>{i.current.isFocused=e,a(e),c()}),[c]);el((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Ce((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Ns(o),s=Ce((e=>{const t=Es(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),a(e))}),[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:t||!r&&!i?void 0:o}}}({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=ke({isFocusWithin:!1}),a=Ce((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=Ns(a),l=Ce((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,s(e))}),[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?f:d}}var sl=Object.defineProperty,ll=(e,t,n)=>(((e,t,n)=>{t in e?sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),cl=new class{constructor(){ll(this,"current",this.detect()),ll(this,"handoffState","pending"),ll(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function ul(e){return cl.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function dl(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function fl(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return dl((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=fl();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function pl(){let[e]=we(fl);return _e((()=>()=>e.dispose()),[e]),e}var hl=(e,t)=>{cl.isServer?_e(e,t):xe(e,t)};function ml(e){let t=ke(e);return hl((()=>{t.current=e}),[e]),t}var gl=function(e){let t=ml(e);return Hn.useCallback(((...e)=>t.current(...e)),[t])};var vl=Y(void 0);function yl(){return Te(vl)}function wl(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function bl(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,bl),r}var _l=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_l||{}),xl=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(xl||{});function kl(){let e=function(){let e=ke([]),t=Ce((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return Ce((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:El;let l=Cl(t,e);if(o)return Sl(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Sl(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return bl(e?0:1,{0:()=>null,1:()=>Sl({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Sl(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function Sl(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Ol(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(o===P&&(Object.keys(Pl(l)).length>0||Object.keys(Pl(d)).length>0)){if(kn(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>wl(t(...e),l.className):wl(t,l.className),r=n?{className:n}:{},o=Cl(u.props,Pl(Ol(l,["ref"])));for(let i in d)i in o&&delete d[i];return Cn(u,Object.assign({},o,d,c,{ref:i(Ll(u),c.ref)},r))}if(Object.keys(Pl(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Pl(l)).concat(Object.keys(Pl(d))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return C(o,Object.assign({},Ol(l,["ref"]),o!==P&&c,o!==P&&d),u)}function El(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function Cl(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(n[e]??(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function Tl(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(n[e]??(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)n?.(...e)}});return t}function Rl(e){var t;return Object.assign(Wt(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Pl(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Ol(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Ll(e){return Hn.version.split(".")[0]>="19"?e.props.ref:e.ref}var Al=Y(void 0);function Il(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var Fl=Symbol();function Dl(...e){let t=ke(e);_e((()=>{t.current=e}),[e]);let n=gl((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Fl])))?void 0:n}var Ml=Y(null);function Nl(){let e=Te(Ml);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Nl),e}return e}Ml.displayName="DescriptionContext";var $l=Rl((function(e,t){let n=Oe(),r=yl(),{id:i=`headlessui-description-${n}`,...o}=e,a=Nl(),s=Dl(t);hl((()=>a.register(i)),[i,a.register]);let l=r||!1,c=Ee((()=>({...a.slot,disabled:l})),[a.slot,l]),u={ref:s,...a.props,id:i};return kl()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})})),Hl=(Object.assign($l,{}),(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Hl||{})),jl=Y(null);function Wl(){let e=Te(jl);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Wl),e}return e}function Ul({inherit:e=!1}={}){let t=function(e){var t,n,r;let i=null!=(n=null==(t=Te(jl))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[i,...e].filter(Boolean).join(" "):i}(),[n,r]=we([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,Ee((()=>function(e){let t=gl((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=Ee((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return Hn.createElement(jl.Provider,{value:n},e.children)}),[r])]}jl.displayName="LabelContext";var ql=Rl((function(e,t){var n;let r=Oe(),i=Wl(),o=Te(Al),a=yl(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Dl(t);hl((()=>i.register(s)),[s,i.register]);let f=gl((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),p=a||!1,h=Ee((()=>({...i.slot,disabled:p})),[i.slot,p]),m={ref:d,...i.props,id:s,htmlFor:l,onClick:f};return c&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in u&&delete u.onClick),kl()({ourProps:m,theirProps:u,slot:h,defaultTag:l?"label":"div",name:i.name||"Label"})}));Object.assign(ql,{});function Bl(e,t=!1){let[n,r]=be((()=>({})),{}),i=Ee((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return hl((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}var zl=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};function Ql(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach((e=>e())))}}}function Kl(e){return Nn(e.subscribe,e.getSnapshot,e.getSnapshot)}var Vl=new zl((()=>Ql((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}})));function Gl(e,t){let n=Vl.get(t),r=Oe(),i=Kl(n);if(hl((()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)}),[n,e]),!e)return!1;let o=i.indexOf(r),a=i.length;return-1===o&&(o=a,a+=1),o===a-1}var Yl=new Map,Xl=new Map;function Jl(e){var t;let n=null!=(t=Xl.get(e))?t:0;return Xl.set(e,n+1),0!==n||(Yl.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>Zl(e)}function Zl(e){var t;let n=null!=(t=Xl.get(e))?t:1;if(1===n?Xl.delete(e):Xl.set(e,n-1),1!==n)return;let r=Yl.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Yl.delete(e))}var ec=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),tc=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),nc=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(nc||{}),rc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(rc||{}),ic=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ic||{});function oc(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ec)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var ac=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ac||{});function sc(e,t=0){var n;return e!==(null==(n=ul(e))?void 0:n.body)&&bl(t,{0:()=>e.matches(ec),1(){let t=e;for(;null!==t;){if(t.matches(ec))return!0;t=t.parentElement}return!1}})}function lc(e){let t=ul(e);fl().nextFrame((()=>{t&&!sc(t.activeElement,0)&&function(e){e?.focus({preventScroll:!0})}(e)}))}var cc=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(cc||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));var uc=["textarea","input"].join(",");function dc(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function fc(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?dc(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(tc)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):oc(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:o.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],s?.focus(u),d+=l}while(s!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,uc))&&n}(s)&&s.select(),2}(oc(),t,{relativeTo:e})}function pc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function hc(){return pc()||/Android/gi.test(window.navigator.userAgent)}function mc(e,t,n,r){let i=ml(n);_e((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function gc(e,t,n){let r=Gl(e,"outside-click"),i=ml(n),o=Ce((function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!sc(r,ac.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=ke(null);mc(r,"pointerdown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),mc(r,"mousedown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),mc(r,"click",(e=>{hc()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=ke({x:0,y:0});mc(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),mc(r,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=30||Math.abs(n-s.current.y)>=30))return o(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,n,r){let i=ml(n);_e((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}(r,"blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function vc(...e){return Ee((()=>ul(...e)),[...e])}function yc(e,t){return Ee((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function wc(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function bc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}var _c,xc,kc=Ql((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:fl(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:bc(n)},i=[pc()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=fl();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),a=e.querySelector(i);a&&!r(a)&&(o=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;i!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},wc(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach((({before:e})=>null==e?void 0:e(r))),i.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Sc(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=Kl(kc),i=t?r.get(t):void 0,o=!!i&&i.count>0;hl((()=>{if(t&&e)return kc.dispatch("PUSH",t,n),()=>kc.dispatch("POP",t,n)}),[e,t])}(Gl(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function Ec(e){return[e.screenX,e.screenY]}function Cc(){let e=ke([-1,-1]);return{wasMoved(t){let n=Ec(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Ec(t)}}}kc.subscribe((()=>{let e=kc.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&kc.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&kc.dispatch("TEARDOWN",n)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(_c=null==process?void 0:{})?void 0:_c.NODE_ENV)&&void 0===(null==(xc=null==Element?void 0:Element.prototype)?void 0:xc.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Tc=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Tc||{});function Rc(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Pc(e,t,n,r){let[i,o]=we(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=we(e);return{flags:t,setFlag:Ce((e=>n(e)),[t]),addFlag:Ce((e=>n((t=>t|e))),[t]),hasFlag:Ce((e=>(t&e)===e),[t]),removeFlag:Ce((e=>n((t=>t&~e))),[n]),toggleFlag:Ce((e=>n((t=>t^e))),[n])}}(e&&i?3:0),c=ke(!1),u=ke(!1);return hl((()=>{var i;if(e)return n&&o(!0),t?(null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=fl();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame((()=>{n(),o.requestAnimationFrame((()=>{o.add(function(e,t){var n,r;let i=fl();if(!e)return i.dispose;let o=!1;i.add((()=>{o=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{o||t()})),i.dispose)}(e,r))}))})),o.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){u.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var e;u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&s(3))}),[e,n,t,pl()]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Oc(){return"undefined"!=typeof window}function Lc(e){return Fc(e)?(e.nodeName||"").toLowerCase():"#document"}function Ac(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ic(e){var t;return null==(t=(Fc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Fc(e){return!!Oc()&&(e instanceof Node||e instanceof Ac(e).Node)}function Dc(e){return!!Oc()&&(e instanceof Element||e instanceof Ac(e).Element)}function Mc(e){return!!Oc()&&(e instanceof HTMLElement||e instanceof Ac(e).HTMLElement)}function Nc(e){return!(!Oc()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ac(e).ShadowRoot)}function $c(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Bc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Hc(e){return["table","td","th"].includes(Lc(e))}function jc(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Sd){return!1}}))}function Wc(e){const t=Uc(),n=Dc(e)?Bc(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Uc(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qc(e){return["html","body","#document"].includes(Lc(e))}function Bc(e){return Ac(e).getComputedStyle(e)}function zc(e){return Dc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qc(e){if("html"===Lc(e))return e;const t=e.assignedSlot||e.parentNode||Nc(e)&&e.host||Ic(e);return Nc(t)?t.host:t}function Kc(e){const t=Qc(e);return qc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mc(t)&&$c(t)?t:Kc(t)}function Vc(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Kc(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Ac(i);if(o){const e=Gc(a);return t.concat(a,a.visualViewport||[],$c(i)?i:[],e&&n?Vc(e):[])}return t.concat(i,Vc(i,[],n))}function Gc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Yc=Math.min,Xc=Math.max,Jc=Math.round,Zc=Math.floor,eu=e=>({x:e,y:e}),tu={left:"right",right:"left",bottom:"top",top:"bottom"},nu={start:"end",end:"start"};function ru(e,t,n){return Xc(e,Yc(t,n))}function iu(e,t){return"function"==typeof e?e(t):e}function ou(e){return e.split("-")[0]}function au(e){return e.split("-")[1]}function su(e){return"x"===e?"y":"x"}function lu(e){return"y"===e?"height":"width"}function cu(e){return["top","bottom"].includes(ou(e))?"y":"x"}function uu(e){return su(cu(e))}function du(e){return e.replace(/start|end/g,(e=>nu[e]))}function fu(e){return e.replace(/left|right|bottom|top/g,(e=>tu[e]))}function pu(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function hu(e,t,n){let{reference:r,floating:i}=e;const o=cu(t),a=uu(t),s=lu(a),l=ou(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(au(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function mu(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=iu(t,e),h=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=s[f?"floating"===d?"reference":"floating":d],g=pu(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},b=pu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+h.top)/w.y,bottom:(b.bottom-g.bottom+h.bottom)/w.y,left:(g.left-b.left+h.left)/w.x,right:(b.right-g.right+h.right)/w.x}}function gu(e){const t=Bc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Mc(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Jc(n)!==o||Jc(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function vu(e){return Dc(e)?e:e.contextElement}function yu(e){const t=vu(e);if(!Mc(t))return eu(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=gu(t);let a=(o?Jc(n.width):n.width)/r,s=(o?Jc(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var wu=eu(0);function bu(e){const t=Ac(e);return Uc()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wu}function _u(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=vu(e);let a=eu(1);t&&(r?Dc(r)&&(a=yu(r)):a=yu(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ac(e))&&t}(o,n,r)?bu(o):eu(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=Ac(o),t=r&&Dc(r)?Ac(r):r;let n=e,i=Gc(n);for(;i&&r&&t!==n;){const e=yu(i),t=i.getBoundingClientRect(),r=Bc(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=Ac(i),i=Gc(n)}}return pu({width:u,height:d,x:l,y:c})}function xu(e,t){const n=zc(e).scrollLeft;return t?t.left+n:_u(Ic(e)).left+n}function ku(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:xu(e,r)),y:r.top+t.scrollTop}}function Su(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ac(e),r=Ic(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Uc();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ic(e),n=zc(e),r=e.ownerDocument.body,i=Xc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Xc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+xu(e);const s=-n.scrollTop;return"rtl"===Bc(r).direction&&(a+=Xc(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(Ic(e));else if(Dc(t))r=function(e,t){const n=_u(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Mc(e)?yu(e):eu(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=bu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return pu(r)}function Eu(e,t){const n=Qc(e);return!(n===t||!Dc(n)||qc(n))&&("fixed"===Bc(n).position||Eu(n,t))}function Cu(e,t){const n=t.get(e);if(n)return n;let r=Vc(e,[],!1).filter((e=>Dc(e)&&"body"!==Lc(e))),i=null;const o="fixed"===Bc(e).position;let a=o?Qc(e):e;for(;Dc(a)&&!qc(a);){const t=Bc(a),n=Wc(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||$c(a)&&!n&&Eu(e,a))?r=r.filter((e=>e!==a)):i=t,a=Qc(a)}return t.set(e,r),r}function Tu(e,t,n){const r=Mc(t),i=Ic(t),o="fixed"===n,a=_u(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=eu(0);if(r||!r&&!o)if(("body"!==Lc(t)||$c(i))&&(s=zc(t)),r){const e=_u(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=xu(i));const c=!i||r||o?eu(0):ku(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Ru(e){return"static"===Bc(e).position}function Pu(e,t){if(!Mc(e)||"fixed"===Bc(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ic(e)===n&&(n=n.ownerDocument.body),n}function Ou(e,t){const n=Ac(e);if(jc(e))return n;if(!Mc(e)){let t=Qc(e);for(;t&&!qc(t);){if(Dc(t)&&!Ru(t))return t;t=Qc(t)}return n}let r=Pu(e,t);for(;r&&Hc(r)&&Ru(r);)r=Pu(r,t);return r&&qc(r)&&Ru(r)&&!Wc(r)?n:r||function(e){let t=Qc(e);for(;Mc(t)&&!qc(t);){if(Wc(t))return t;if(jc(t))return null;t=Qc(t)}return null}(e)||n}var Lu={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=Ic(r),s=!!t&&jc(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=eu(1);const u=eu(0),d=Mc(r);if((d||!d&&!o)&&(("body"!==Lc(r)||$c(a))&&(l=zc(r)),Mc(r))){const e=_u(r);c=yu(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||o?eu(0):ku(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Ic,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?jc(t)?[]:Cu(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=Su(t,n,i);return e.top=Xc(r.top,e.top),e.right=Yc(r.right,e.right),e.bottom=Yc(r.bottom,e.bottom),e.left=Xc(r.left,e.left),e}),Su(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ou,getElementRects:async function(e){const t=this.getOffsetParent||Ou,n=this.getDimensions,r=await n(e.floating);return{reference:Tu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=gu(e);return{width:t,height:n}},getScale:yu,isElement:Dc,isRTL:function(e){return"rtl"===Bc(e).direction}};function Au(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=vu(e),u=i||o?[...c?Vc(c):[],...Vc(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=Ic(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Zc(u)+"px "+-Zc(i.clientWidth-(c+d))+"px "+-Zc(i.clientHeight-(u+f))+"px "+-Zc(c)+"px",threshold:Xc(0,Yc(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(Sd){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?_u(e):null;return l&&function t(){const r=_u(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),d?.(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var Iu=mu,Fu=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=ou(n),s=au(n),l="y"===cu(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=iu(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Du=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=iu(e,t),c={x:n,y:r},u=await mu(t,l),d=cu(ou(i)),f=su(d);let p=c[f],h=c[d];if(o){const e="y"===f?"bottom":"right";p=ru(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=ru(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:o,[d]:a}}}}}},Mu=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=iu(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=ou(i),y=cu(s),w=ou(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),_=f||(w||!m?[fu(s)]:function(e){const t=fu(e);return[du(e),t,du(t)]}(s)),x="none"!==h;!f&&x&&_.push(...function(e,t,n,r){const i=au(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(ou(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(du)))),o}(s,m,h,b));const k=[s,..._],S=await mu(t,g),E=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=au(e),i=uu(e),o=lu(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=fu(a)),[a,fu(a)]}(i,a,b);E.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every((e=>e<=0))){var T,R;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(R=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter((e=>{if(x){const t=cu(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},Nu=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=iu(e,t),u=await mu(t,c),d=ou(i),f=au(i),p="y"===cu(i),{width:h,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-u.top-u.bottom,w=h-u.left-u.right,b=Yc(m-u[g],y),_=Yc(h-u[v],w),x=!t.middlewareData.shift;let k=b,S=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),x&&!f){const e=Xc(u.left,0),t=Xc(u.right,0),n=Xc(u.top,0),r=Xc(u.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:Xc(u.left,u.right)):k=m-2*(0!==n||0!==r?n+r:Xc(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await a.getDimensions(s.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}},$u=(e,t,n)=>{const r=new Map,i={platform:Lu,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=hu(c,r,l),f=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:v,data:y,reset:w}=await o({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:u,y:d}=hu(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}})(e,t,{...i,platform:o})},Hu="undefined"!=typeof document?xe:_e;function ju(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!ju(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ju(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Wu(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uu(e,t){const n=Wu(e);return Math.round(t*n)/n}function qu(e){const t=ke(e);return Hu((()=>{t.current=e})),t}var Bu=(e,t)=>({...Fu(e),options:[e,t]}),zu=(e,t)=>({...Mu(e),options:[e,t]}),Qu=(e,t)=>({...Nu(e),options:[e,t]}),Ku={...Dt},Vu=Ku.useInsertionEffect||(e=>e());function Gu(e){const t=ke((()=>{}));return Vu((()=>{t.current=e})),Ce((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var Yu="undefined"!=typeof document?xe:_e,Xu=!1,Ju=0,Zu=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ju++;var ed=Ku.useId||function(){const[e,t]=we((()=>Xu?Zu():void 0));return Yu((()=>{null==e&&t(Zu())}),[]),_e((()=>{Xu=!0}),[]),e};var td=Y(null),nd=Y(null),rd="data-floating-ui-focusable";function id(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=ed(),o=ke({}),[a]=we((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=((null==(l=Te(td))?void 0:l.id)||null);var l;const[c,u]=we(r.reference),d=Gu(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)})),f=Ee((()=>({setPositionReference:u})),[]),p=Ee((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return Ee((()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f})),[t,d,p,a,i,f])}function od(e){void 0===e&&(e={});const{nodeId:t}=e,n=id({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=we(null),[s,l]=we(null),c=(null==i?void 0:i.domReference)||o,u=ke(null),d=Te(nd);Yu((()=>{c&&(u.current=c)}),[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=we({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=we(r);ju(f,r)||p(r);const[h,m]=we(null),[g,v]=we(null),y=Ce((e=>{e!==x.current&&(x.current=e,m(e))}),[]),w=Ce((e=>{e!==k.current&&(k.current=e,v(e))}),[]),b=o||h,_=a||g,x=ke(null),k=ke(null),S=ke(u),E=null!=l,C=qu(l),T=qu(i),R=qu(c),P=Ce((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),$u(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};O.current&&!ju(S.current,t)&&(S.current=t,On((()=>{d(t)})))}))}),[f,t,n,T,R]);Hu((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const O=ke(!1);Hu((()=>(O.current=!0,()=>{O.current=!1})),[]),Hu((()=>{if(b&&(x.current=b),_&&(k.current=_),b&&_){if(C.current)return C.current(b,_,P);P()}}),[b,_,P,C,E]);const L=Ee((()=>({reference:x,floating:k,setReference:y,setFloating:w})),[y,w]),A=Ee((()=>({reference:b,floating:_})),[b,_]),I=Ee((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Uu(A.floating,u.x),r=Uu(A.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Wu(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,u.x,u.y]);return Ee((()=>({...u,update:P,refs:L,elements:A,floatingStyles:I})),[u,P,L,A,I])}({...e,elements:{...i,...s&&{reference:s}}}),p=Ce((e=>{const t=Dc(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)}),[f.refs]),h=Ce((e=>{(Dc(e)||null===e)&&(u.current=e,a(e)),(Dc(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Dc(e))&&f.refs.setReference(e)}),[f.refs]),m=Ee((()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u})),[f.refs,h,p]),g=Ee((()=>({...f.elements,domReference:c})),[f.elements,c]),v=Ee((()=>({...f,...r,refs:m,elements:g,nodeId:t})),[f,m,g,t,r]);return Yu((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),Ee((()=>({...f,context:v,refs:m,elements:g})),[f,m,g,v])}var ad="active",sd="selected";function ld(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[ad]:t,[sd]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[rd]:""},...o,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;i&&[ad,sd].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function cd(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function ud(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=Gu(s),c=ke(!1),u=ke(null),d=ke(null);_e((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),On((()=>{l((e=>e+Math[c](n,a*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=o.current&&(d.current={...o.current})})),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,r.floating,o,a,l]);const f=Ee((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(o.current&&e&&c.current){if(null!==u.current){const t=e.scrollTop-u.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&On((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return Ee((()=>i?{floating:f}:{}),[i,f])}var dd=Y({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});dd.displayName="FloatingContext";var fd=Y(null);fd.displayName="PlacementContext";function pd({children:e,enabled:t=!0}){let[n,r]=we(null),[i,o]=we(0),a=ke(null),[s,l]=we(null);!function(e){hl((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let c=t&&null!==n&&null!==s,{to:u="bottom",gap:d=0,offset:f=0,padding:p=0,inner:h}=function(e,t){var n,r,i;let o=hd(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=hd(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=hd(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[m,g="center"]=u.split(" ");hl((()=>{c&&o(0)}),[c]);let{refs:v,floatingStyles:y,context:w}=od({open:c,placement:"selection"===m?"center"===g?"bottom":`bottom-${g}`:"center"===g?`${m}`:`${m}-${g}`,strategy:"absolute",transform:!1,middleware:[Bu({mainAxis:"selection"===m?0:d,crossAxis:f}),(k={padding:p},{...Du(k),options:[k,S]}),"selection"!==m&&zu({padding:p}),"selection"===m&&h?(x={...h,padding:p,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:p,onFallbackChange(e){var t,n;if(!e)return;let r=w.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),s=0,l=0;for(let o of null!=(n=null==(t=w.elements.floating)?void 0:t.childNodes)?n:[])if(o instanceof HTMLElement){let e=o.offsetTop,t=e+o.clientHeight+i,n=r.scrollTop,c=n+r.clientHeight;if(!(e>=n&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,n)),s=o.clientHeight;break}a--}a>=1&&o((e=>{let t=s*a-l+i;return e>=t?e:t}))}},{name:"inner",options:x,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=iu(x,e),{rects:u,elements:{floating:d}}=e,f=t.current[o],p=(null==l?void 0:l.current)||d,h=d.clientTop||p.clientTop,m=0!==d.clientTop,g=0!==p.clientTop,v=d===p;if(!f)return{};const y={...e,...await Bu(-f.offsetTop-d.clientTop-u.reference.height/2-f.offsetHeight/2-i).fn(e)},w=await Iu(cd(y,p.scrollHeight+h+d.clientTop),c),b=await Iu(y,{...c,elementContext:"reference"}),_=Xc(0,w.top),k=y.y+_,S=p.scrollHeight>p.clientHeight,E=(S?e=>e:Jc)(Xc(0,p.scrollHeight+(m&&v||g?2*h:0)-_-Xc(0,w.bottom)));if(p.style.maxHeight=E+"px",p.scrollTop=_,r){const e=S&&p.offsetHeight<f.offsetHeight*a-1||b.top>=-s||b.bottom>=-s;On((()=>r(e)))}return n&&(n.current=await Iu(cd({...y,y:k},p.offsetHeight+h+d.clientTop),c)),{y:k}}}):null,Qu({padding:p,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Au}),[b=m,_=g]=w.placement.split("-");var x,k,S;"selection"===m&&(b="selection");let E=Ee((()=>({anchor:[b,_].filter(Boolean).join(" ")})),[b,_]),{getReferenceProps:T,getFloatingProps:R}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=Ce((t=>ld(t,e,"reference")),t),o=Ce((t=>ld(t,e,"floating")),n),a=Ce((t=>ld(t,e,"item")),r);return Ee((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([ud(w,{overflowRef:a,onChange:o})]),P=gl((e=>{l(e),v.setFloating(e)}));return C(fd.Provider,{value:r},C(dd.Provider,{value:{setFloating:P,setReference:v.setReference,styles:y,getReferenceProps:T,getFloatingProps:R,slot:E}},e))}function hd(e,t,n=void 0){let r=pl(),i=gl(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=gd(e,t);return[i,n=>{let o=md(e);{let a=o.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.nextFrame(s);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=gd(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=Ee((()=>i(e,t)[0]),[e,t]),[a=o,s]=we();return hl((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function md(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...md(r)]:[n]}return[]}function gd(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}var vd=Y(null);vd.displayName="OpenClosedContext";var yd=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(yd||{});function wd(){return Te(vd)}function bd({value:e,children:t}){return Hn.createElement(vd.Provider,{value:e},t)}var _d=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(_d||{});function xd(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function kd(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Dt&&(e=>e.useSyncExternalStore)(Dt)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=we(cl.isHandoffComplete);return t&&!1===cl.isHandoffComplete&&n(!1),_e((()=>{!0!==t&&n(!0)}),[t]),_e((()=>cl.handoff()),[]),!e&&t}var Sd=Y(!1);function Ed(){return Te(Sd)}var Cd=P,Td=Rl((function(e,t){let n=e,r=ke(null),i=Dl(function(e,t=!0){return Object.assign(e,{[Fl]:t})}((e=>{r.current=e})),t),o=vc(r),a=function(e){let t=Ed(),n=Te(Pd),r=vc(e),[i,o]=we((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(cl.isServer)return null;let i=null==r?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return _e((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),_e((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}(r),[s]=we((()=>{var e;return cl.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=Te(Od),c=kd();hl((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),hl((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=gl(e),n=ke(!1);_e((()=>(n.current=!1,()=>{n.current=!0,dl((()=>{n.current&&t()}))})),[t])}((()=>{var e;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}));let u=kl();return c&&a&&s?tn(u({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Cd,name:"Portal"}),s):null}));var Rd=P,Pd=Y(null);var Od=Y(null),Ld=Rl((function(e,t){let n=Dl(t),{enabled:r=!0,...i}=e,o=kl();return r?Hn.createElement(Td,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Cd,name:"Portal"})})),Ad=Rl((function(e,t){let{target:n,...r}=e,i={ref:Dl(t)},o=kl();return Hn.createElement(Pd.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Rd,name:"Popover.Group"}))})),Id=Object.assign(Ld,{Group:Ad});function Fd(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:jd)!==P||1===Hn.Children.count(e.children)}var Dd=Y(null);Dd.displayName="TransitionContext";var Md=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Md||{});var Nd=Y(null);function $d(e){return"children"in e?$d(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Hd(e,t){let n=ml(e),r=ke([]),i=function(){let e=ke(!1);return hl((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),o=pl(),a=gl(((e,t=xl.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(bl(t,{[xl.Unmount](){r.current.splice(a,1)},[xl.Hidden](){r.current[a].state="hidden"}}),o.microTask((()=>{var e;!$d(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=gl((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,xl.Unmount)})),l=ke([]),c=ke(Promise.resolve()),u=ke({enter:[],leave:[]}),d=gl(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),t?.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),t?.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),f=gl(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return Ee((()=>({children:r,register:s,unregister:a,onStart:d,onStop:f,wait:c,chains:u})),[s,a,r,d,f,u,c])}Nd.displayName="NestingContext";var jd=P,Wd=_l.RenderStrategy;var Ud=Rl((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=ke(null),s=Dl(...Fd(e)?[a,t]:null===t?[]:[t]);kd();let l=wd();if(void 0===n&&null!==l&&(n=(l&yd.Open)===yd.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=we(n?"visible":"hidden"),d=Hd((()=>{n||u("hidden")})),[f,p]=we(!0),h=ke([n]);hl((()=>{!1!==f&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))}),[h,n]);let m=Ee((()=>({show:n,appear:r,initial:f})),[n,r,f]);hl((()=>{n?u("visible"):!$d(d)&&null!==a.current&&u("hidden")}),[n,d]);let g={unmount:i},v=gl((()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)})),y=gl((()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)})),w=kl();return Hn.createElement(Nd.Provider,{value:d},Hn.createElement(Dd.Provider,{value:m},w({ourProps:{...g,as:P,children:Hn.createElement(qd,{ref:s,...g,...o,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:P,features:Wd,visible:"visible"===c,name:"Transition"})))})),qd=Rl((function(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:f,leave:p,leaveFrom:h,leaveTo:m,...g}=e,[v,y]=we(null),w=ke(null),b=Fd(e),_=Dl(...b?[w,t,y]:null===t?[]:[t]),x=null==(n=g.unmount)||n?xl.Unmount:xl.Hidden,{show:k,appear:S,initial:E}=function(){let e=Te(Dd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[C,T]=we(k?"visible":"hidden"),R=function(){let e=Te(Nd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:P,unregister:O}=R;hl((()=>P(w)),[P,w]),hl((()=>{if(x===xl.Hidden&&w.current)return k&&"visible"!==C?void T("visible"):bl(C,{hidden:()=>O(w),visible:()=>P(w)})}),[C,w,P,O,k,x]);let L=kd();hl((()=>{if(b&&L&&"visible"===C&&null===w.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[w,C,L,b]);let A=E&&!S,I=S&&k&&E,F=ke(!1),D=Hd((()=>{F.current||(T("hidden"),O(w))}),R),M=gl((e=>{F.current=!0;let t=e?"enter":"leave";D.onStart(w,t,(e=>{"enter"===e?o?.():"leave"===e&&s?.()}))})),N=gl((e=>{let t=e?"enter":"leave";F.current=!1,D.onStop(w,t,(e=>{"enter"===e?a?.():"leave"===e&&l?.()})),"leave"===t&&!$d(D)&&(T("hidden"),O(w))}));_e((()=>{b&&i||(M(k),N(k))}),[k,b,i]);let[,$]=Pc(!(!i||!b||!L||A),v,k,{start:M,end:N}),H=Pl({ref:_,className:(null==(r=wl(g.className,I&&c,I&&u,$.enter&&c,$.enter&&$.closed&&u,$.enter&&!$.closed&&d,$.leave&&p,$.leave&&!$.closed&&h,$.leave&&$.closed&&m,!$.transition&&k&&f))?void 0:r.trim())||void 0,...Rc($)}),j=0;"visible"===C&&(j|=yd.Open),"hidden"===C&&(j|=yd.Closed),$.enter&&(j|=yd.Opening),$.leave&&(j|=yd.Closing);let W=kl();return Hn.createElement(Nd.Provider,{value:D},Hn.createElement(bd,{value:j},W({ourProps:H,theirProps:g,defaultTag:jd,features:Wd,visible:"visible"===C,name:"Transition.Child"})))})),Bd=Rl((function(e,t){let n=null!==Te(Dd),r=null!==wd();return Hn.createElement(Hn.Fragment,null,!n&&r?Hn.createElement(Ud,{ref:t,...e}):Hn.createElement(qd,{ref:t,...e}))})),zd=Object.assign(Ud,{Child:Bd,Root:Ud});var Qd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Kd(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?null!=(n=i.innerText)?n:"":r;return Qd.test(a)&&(a=a.replace(Qd,"")),a}function Vd(e){let t=ke(""),n=ke("");return gl((()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Kd(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Kd(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var Gd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Gd||{}),Yd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Yd||{}),Xd=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(Xd||{});function Jd(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=dc(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}var Zd={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===_d.Nothing)return{...s,activeItemIndex:null};if(t.focus===_d.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===_d.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=xd(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||null===(null==(i=t.current)?void 0:i.previousElementSibling))return{...s,activeItemIndex:a}}}}else if(t.focus===_d.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=xd(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeItemIndex:i}}}}let l=Jd(e),c=xd(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=Jd(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=Jd(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},ef=Y(null);function tf(e){let t=Te(ef);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tf),t}return t}function nf(e,t){return bl(t.type,Zd,e,t)}ef.displayName="MenuContext";var rf=P;var of=_l.RenderStrategy|_l.Static;var af=P;var sf=Rl((function(e,t){let{__demoMode:n=!1,...r}=e,i=be(nf,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:a,buttonElement:s},l]=i,c=Dl(t);gc(0===o,[s,a],((e,t)=>{l({type:1}),sc(t,ac.Loose)||(e.preventDefault(),s?.focus())}));let u=gl((()=>{l({type:1})})),d=Ee((()=>({open:0===o,close:u})),[o,u]),f={ref:c},p=kl();return Hn.createElement(pd,null,Hn.createElement(ef.Provider,{value:i},Hn.createElement(bd,{value:bl(o,{0:yd.Open,1:yd.Closed})},p({ourProps:f,theirProps:r,slot:d,defaultTag:rf,name:"Menu"}))))})),lf=Rl((function(e,t){var n;let r=Oe(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,c]=tf("Menu.Button"),u=Te(dd).getReferenceProps,d=Dl(t,Te(dd).setReference,gl((e=>c({type:7,element:e})))),f=gl((e=>{switch(e.key){case Hl.Space:case Hl.Enter:case Hl.ArrowDown:e.preventDefault(),e.stopPropagation(),On((()=>c({type:0}))),c({type:2,focus:_d.First});break;case Hl.ArrowUp:e.preventDefault(),e.stopPropagation(),On((()=>c({type:0}))),c({type:2,focus:_d.Last})}})),p=gl((e=>{if(e.key===Hl.Space)e.preventDefault()})),h=gl((e=>{var t;if(Il(e.currentTarget))return e.preventDefault();o||(0===l.menuState?(On((()=>c({type:1}))),null==(t=l.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))})),{isFocusVisible:m,focusProps:g}=al({autoFocus:a}),{isHovered:v,hoverProps:y}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=we(!1),s=ke({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;_e(ol,[]);let{hoverProps:l,triggerHoverEnd:c}=Ee((()=>{let e=(e,r)=>{if(s.pointerType=r,i||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),a(!0)},o=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{tl&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||tl||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:l,triggerHoverEnd:o}}),[t,n,r,i,s]);return _e((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}({isDisabled:o}),{pressed:w,pressProps:b}=function({disabled:e=!1}={}){let t=ke(null),[n,r]=we(!1),i=pl(),o=gl((()=>{t.current=null,r(!1),i.dispose()})),a=gl((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=ul(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",(e=>{t.current&&r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e),t.current.getBoundingClientRect()))}),!1),i.addEventListener(n,"pointercancel",o,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),_=Ee((()=>({open:0===l.menuState,active:w||0===l.menuState,disabled:o,hover:v,focus:m,autofocus:a})),[l,v,m,w,o,a]),x=Tl(u(),{ref:d,id:i,type:yc(e,l.buttonElement),"aria-haspopup":"menu","aria-controls":null==(n=l.itemsElement)?void 0:n.id,"aria-expanded":0===l.menuState,disabled:o||void 0,autoFocus:a,onKeyDown:f,onKeyUp:p,onClick:h},g,y,b);return kl()({ourProps:x,theirProps:s,slot:_,defaultTag:"button",name:"Menu.Button"})})),cf=Rl((function(e,t){var n,r;let i=Oe(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return Ee((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[f,p]=tf("Menu.Items"),[h,m]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Te(fd),n=Ee((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);hl((()=>{t?.(null!=n?n:null)}),[t,n]);let r=Te(dd);return Ee((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),g=function(){let{getFloatingProps:e,slot:t}=Te(dd);return Ce(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),[v,y]=we(null),w=Dl(t,d?h:null,gl((e=>p({type:8,element:e}))),y),b=vc(f.itemsElement);d&&(s=!0);let _=wd(),[x,k]=Pc(c,v,null!==_?(_&yd.Open)===yd.Open:0===f.menuState);!function(e,t,n){let r=ml((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));_e((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=fl();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}return()=>i.dispose()}),[t,r,e])}(x,f.buttonElement,(()=>{p({type:1})})),Sc(!f.__demoMode&&(l&&0===f.menuState),b),function(e,{allowed:t,disallowed:n}={}){let r=Gl(e,"inert-others");hl((()=>{var e,i;if(!r)return;let o=fl();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(Jl(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=ul(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let e of n.children)a.some((t=>e.contains(t)))||o.add(Jl(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!f.__demoMode&&(l&&0===f.menuState),{allowed:Ce((()=>[f.buttonElement,f.itemsElement]),[f.buttonElement,f.itemsElement])});let S=!function(e,t){let n=ke({left:0,top:0});if(hl((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(0!==f.menuState,f.buttonElement)&&x;_e((()=>{let e=f.itemsElement;e&&0===f.menuState&&e!==(null==b?void 0:b.activeElement)&&e.focus({preventScroll:!0})}),[f.menuState,f.itemsElement,b]),function(e,{container:t,accept:n,walk:r}){let i=ke(n),o=ke(r);_e((()=>{i.current=n,o.current=r}),[n,r]),hl((()=>{if(!t||!e)return;let n=ul(t);if(!n)return;let r=i.current,a=o.current,s=Object.assign((e=>r(e)),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)}),[t,e,i,o])}(0===f.menuState,{container:f.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let E=pl(),C=gl((e=>{var t,n,r;switch(E.dispose(),e.key){case Hl.Space:if(""!==f.searchQuery)return e.preventDefault(),e.stopPropagation(),p({type:3,value:e.key});case Hl.Enter:if(e.preventDefault(),e.stopPropagation(),p({type:1}),null!==f.activeItemIndex){let{dataRef:e}=f.items[f.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}lc(f.buttonElement);break;case Hl.ArrowDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:_d.Next});case Hl.ArrowUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:_d.Previous});case Hl.Home:case Hl.PageUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:_d.First});case Hl.End:case Hl.PageDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:_d.Last});case Hl.Escape:e.preventDefault(),e.stopPropagation(),On((()=>p({type:1}))),null==(r=f.buttonElement)||r.focus({preventScroll:!0});break;case Hl.Tab:e.preventDefault(),e.stopPropagation(),On((()=>p({type:1}))),fc(f.buttonElement,e.shiftKey?nc.Previous:nc.Next);break;default:1===e.key.length&&(p({type:3,value:e.key}),E.setTimeout((()=>p({type:4})),350))}})),T=gl((e=>{if(e.key===Hl.Space)e.preventDefault()})),R=Ee((()=>({open:0===f.menuState})),[f.menuState]),P=Tl(d?g():{},{"aria-activedescendant":null===f.activeItemIndex||null==(n=f.items[f.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=f.buttonElement)?void 0:r.id,id:o,onKeyDown:C,onKeyUp:T,role:"menu",tabIndex:0===f.menuState?0:void 0,ref:w,style:{...u.style,...m,"--button-width":Bl(f.buttonElement,!0).width},...Rc(k)}),O=kl();return Hn.createElement(Id,{enabled:!!s&&(e.static||x)},O({ourProps:P,theirProps:u,slot:R,defaultTag:"div",features:of,visible:S,name:"Menu.Items"}))})),uf=Rl((function(e,t){let n=Oe(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,s]=tf("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=ke(null),u=Dl(t,c);hl((()=>{if(!a.__demoMode&&0===a.menuState&&l&&0!==a.activationTrigger)return fl().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=Vd(c),f=ke({disabled:i,domRef:c,get textValue(){return d()}});hl((()=>{f.current.disabled=i}),[f,i]),hl((()=>(s({type:5,id:r,dataRef:f}),()=>s({type:6,id:r}))),[f,r]);let p=gl((()=>{s({type:1})})),h=gl((e=>{if(i)return e.preventDefault();s({type:1}),lc(a.buttonElement)})),m=gl((()=>{if(i)return s({type:2,focus:_d.Nothing});s({type:2,focus:_d.Specific,id:r})})),g=Cc(),v=gl((e=>{g.update(e),!i&&(l||s({type:2,focus:_d.Specific,id:r,trigger:0}))})),y=gl((e=>{g.wasMoved(e)&&(i||l||s({type:2,focus:_d.Specific,id:r,trigger:0}))})),w=gl((e=>{g.wasMoved(e)&&(i||l&&s({type:2,focus:_d.Nothing}))})),[b,_]=Ul(),[x,k]=function(){let[e,t]=we([]);return[e.length>0?e.join(" "):void 0,Ee((()=>function(e){let n=gl((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=Ee((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return Hn.createElement(Ml.Provider,{value:r},e.children)}),[t])]}(),S=Ee((()=>({active:l,focus:l,disabled:i,close:p})),[l,i,p]),E={id:r,ref:u,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":b,"aria-describedby":x,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:w,onMouseLeave:w},C=kl();return Hn.createElement(_,null,Hn.createElement(k,null,C({ourProps:E,theirProps:o,slot:S,defaultTag:af,name:"Menu.Item"})))})),df=Rl((function(e,t){let[n,r]=Ul(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=kl();return Hn.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),ff=Rl((function(e,t){let n=Oe(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=Wl();hl((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return kl()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),pf=Rl((function(e,t){let n=e,r={ref:t,role:"separator"};return kl()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),hf=Object.assign(sf,{Button:lf,Items:cf,Item:uf,Section:df,Heading:ff,Separator:pf});function mf({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}var gf=Wt(mf);function vf({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}var yf=Wt(vf),wf=e=>ys(Sf,{children:ws(hf,{as:"div",children:[ys("div",{children:ws(lf,{css:{display:"flex",alignItems:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#f3f4f6"}},children:[ys("span",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Open options"}),ys(gf,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),ys(cf,{transition:!0,className:"right-45 w-30",css:{position:"fixed",zIndex:"10",marginTop:"0.5rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-color":"rgb(0 0 0 / 0.05)",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&[data-closed]":{"--tw-scale-x":".95","--tw-scale-y":".95",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"},"&[data-leave]":{transitionDuration:"75ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}},children:e.items.map(((t,n)=>ys(uf,{children:ys("button",{type:"button",css:{display:"block",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))","&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},onClick:()=>{t.onClick(e.id)},children:t.label},n)},n)))})]})}),bf=e=>e&&new Date(e).toLocaleDateString("en-AU")||void 0,_f=e=>void 0!==e&&`$ ${Number(e).toLocaleString("en-US")}`||void 0,xf=e=>ws(Sf,{children:[bf(e.value),ys("br",{}),bf(e.value)]}),kf=e=>{const[t,n]=we(!1);return ws(Sf,{css:{position:"relative"},children:[ys(zd,{show:t,children:ys("div",{css:{position:"absolute",bottom:"3rem",display:"flex",height:"2rem",width:"4.313rem",flexDirection:"row",alignItems:"flex-start",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(17 24 39 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",opacity:"0.9","--tw-shadow":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","&[data-closed]":{opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"},"&[data-leave]":{transitionDuration:"500ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"}},children:ys("p",{css:{order:"0",height:"1rem",width:"2.813rem",flex:"none",flexGrow:"0",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",fontStyle:"normal","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},children:"Copied"})})}),ys("button",{onClick:async()=>{await(async e=>{await navigator.clipboard.writeText(e)})(e.value),n(!0),setTimeout((()=>{n(!1)}),3e3)},type:"button",css:{display:"block",flexShrink:"1",borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity))"},"&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},children:e.value})]})},Sf=hs.td`
|
|
1
|
+
!function(){var e,t,n,r,i,o,a,s,l,c,u,d=Object.create,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,m=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),y=(e,t)=>{let n={};for(var r in e)f(n,r,{get:e[r],enumerable:!0});return t||f(n,Symbol.toStringTag,{value:"Module"}),n},w=(e,t,n)=>(n=null!=e?d(m(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=h(t),a=0,s=o.length;a<s;a++)i=o[a],g.call(e,i)||i===n||f(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=p(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:f(n,"default",{value:e,enumerable:!0}),e)),b={},_=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,k=Array.isArray;function S(e,t){for(var n in t)e[n]=t[n];return e}function E(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function C(t,n,r){var i,o,a,s={};for(a in n)"key"==a?i=n[a]:"ref"==a?o=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return T(t,s,i,o,null)}function T(e,r,i,o,a){var s={type:e,props:r,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++n:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(s),s}function R(){return{current:null}}function P(e){return e.children}function O(e,t){this.props=e,this.context=t}function L(e,t){if(null==t)return e.__?L(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?L(e):null}function A(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return A(e)}}function I(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!F.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||o)(F)}function F(){var e,n,i,o,s,l,c,u;for(r.sort(a);e=r.shift();)e.__d&&(n=r.length,o=void 0,l=(s=(i=e).__v).__e,c=[],u=[],i.__P&&((o=S({},s)).__v=s.__v+1,t.vnode&&t.vnode(o),U(i.__P,o,s,i.__n,i.__P.namespaceURI,32&s.__u?[l]:null,c,null==l?L(s):l,!!(32&s.__u),u),o.__v=s.__v,o.__.__k[o.__i]=o,q(c,o,u),o.__e!=l&&A(o)),r.length>n&&r.sort(a));F.__r=0}function D(e,t,n,r,i,o,a,s,l,c,u){var d,f,p,h,m,g=r&&r.__k||_,v=t.length;for(n.__d=l,function(e,t,n){var r,i,o,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(i=t[r])&&"boolean"!=typeof i&&"function"!=typeof i?(a=r+d,(i=e.__k[r]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?T(null,i,null,null,null):k(i)?T(P,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?T(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=$(i,n,a,u))&&(u--,(o=n[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[r]=null;if(u)for(r=0;r<c;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=L(o)),z(o,o))}(n,t,g),l=n.__d,d=0;d<v;d++)null!=(p=n.__k[d])&&(f=-1===p.__i?b:g[p.__i]||b,p.__i=d,U(e,p,f,i,o,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&B(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),65536&p.__u||f.__k===p.__k?l=M(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function M(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=M(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=L(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(k(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function $(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(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 H(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||x.test(t)?n:n+"px"}function j(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||H(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||H(e.style,t,n[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]=n,n?r?n.u=r.u:(n.u=s,e.addEventListener(t,o?c:l,o)):e.removeEventListener(t,o?c:l,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==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function W(e){return function(n){if(this.l){var r=this.l[n.type+e];if(null==n.t)n.t=s++;else if(n.t<r.u)return;return r(t.event?t.event(n):n)}}}function U(n,r,i,o,a,s,l,c,u,d){var f,p,h,m,g,v,y,w,_,x,C,T,R,A,I,F,M=r.type;if(void 0!==r.constructor)return null;128&i.__u&&(u=!!(32&i.__u),s=[c=r.__e=i.__e]),(f=t.__b)&&f(r);e:if("function"==typeof M)try{if(w=r.props,_="prototype"in M&&M.prototype.render,x=(f=M.contextType)&&o[f.__c],C=f?x?x.props.value:f.__:o,i.__c?y=(p=r.__c=i.__c).__=p.__E:(_?r.__c=p=new M(w,C):(r.__c=p=new O(w,C),p.constructor=M,p.render=Q),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=C,p.__n=o,h=p.__d=!0,p.__h=[],p._sb=[]),_&&null==p.__s&&(p.__s=p.state),_&&null!=M.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=S({},p.__s)),S(p.__s,M.getDerivedStateFromProps(w,p.__s))),m=p.props,g=p.state,p.__v=r,h)_&&null==M.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),_&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(_&&null==M.getDerivedStateFromProps&&w!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,C),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,C)||r.__v===i.__v)){for(r.__v!==i.__v&&(p.props=w,p.state=p.__s,p.__d=!1),r.__e=i.__e,r.__k=i.__k,r.__k.some((function(e){e&&(e.__=r)})),T=0;T<p._sb.length;T++)p.__h.push(p._sb[T]);p._sb=[],p.__h.length&&l.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,C),_&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(m,g,v)}))}if(p.context=C,p.props=w,p.__P=n,p.__e=!1,R=t.__r,A=0,_){for(p.state=p.__s,p.__d=!1,R&&R(r),f=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[]}else do{p.__d=!1,R&&R(r),f=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(o=S(S({},o),p.getChildContext())),_&&!h&&null!=p.getSnapshotBeforeUpdate&&(v=p.getSnapshotBeforeUpdate(m,g)),D(n,k(F=null!=f&&f.type===P&&null==f.key?f.props.children:f)?F:[F],r,i,o,a,s,l,c,u,d),p.base=r.__e,r.__u&=-161,p.__h.length&&l.push(p),y&&(p.__E=p.__=null)}catch(n){if(r.__v=null,u||null!=s){for(r.__u|=u?160:128;c&&8===c.nodeType&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,r.__e=c}else r.__e=i.__e,r.__k=i.__k;t.__e(n,r,i)}else null==s&&r.__v===i.__v?(r.__k=i.__k,r.__e=i.__e):r.__e=function(n,r,i,o,a,s,l,c,u){var d,f,p,h,m,g,v,y=i.props,w=r.props,_=r.type;if("svg"===_?a="http://www.w3.org/2000/svg":"math"===_?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(d=0;d<s.length;d++)if((m=s[d])&&"setAttribute"in m==!!_&&(_?m.localName===_:3===m.nodeType)){n=m,s[d]=null;break}if(null==n){if(null===_)return document.createTextNode(w);n=document.createElementNS(a,_,w.is&&w),c&&(t.__m&&t.__m(r,s),c=!1),s=null}if(null===_)y===w||c&&n.data===w||(n.data=w);else{if(s=s&&e.call(n.childNodes),y=i.props||b,!c&&null!=s)for(y={},d=0;d<n.attributes.length;d++)y[(m=n.attributes[d]).name]=m.value;for(d in y)if(m=y[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=m;else if(!(d in w)){if("value"==d&&"defaultValue"in w||"checked"==d&&"defaultChecked"in w)continue;j(n,d,null,m,a)}for(d in w)m=w[d],"children"==d?h=m:"dangerouslySetInnerHTML"==d?f=m:"value"==d?g=m:"checked"==d?v=m:c&&"function"!=typeof m||y[d]===m||j(n,d,m,y[d],a);if(f)c||p&&(f.__html===p.__html||f.__html===n.innerHTML)||(n.innerHTML=f.__html),r.__k=[];else if(p&&(n.innerHTML=""),D(n,k(h)?h:[h],r,i,o,"foreignObject"===_?"http://www.w3.org/1999/xhtml":a,s,l,s?s[0]:i.__k&&L(i,0),c,u),null!=s)for(d=s.length;d--;)E(s[d]);c||(d="value","progress"===_&&null==g?n.removeAttribute("value"):void 0!==g&&(g!==n[d]||"progress"===_&&!g||"option"===_&&g!==y[d])&&j(n,d,g,y[d],a),d="checked",void 0!==v&&v!==n[d]&&j(n,d,v,y[d],a))}return n}(i.__e,r,i,o,a,s,l,u,d);(f=t.diffed)&&f(r)}function q(e,n,r){n.__d=void 0;for(var i=0;i<r.length;i++)B(r[i],r[++i],r[++i]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function B(e,n,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,r)}}function z(e,n,r){var i,o;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||B(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,n)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&z(i[o],n,r||"function"!=typeof e.type);r||E(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Q(e,t,n){return this.constructor(e,n)}function K(n,r,i){var o,a,s,l;t.__&&t.__(n,r),a=(o="function"==typeof i)?null:i&&i.__k||r.__k,s=[],l=[],U(r,n=(!o&&i||r).__k=C(P,null,[n]),a||b,b,r.namespaceURI,!o&&i?[i]:a?null:r.firstChild?e.call(r.childNodes):null,s,!o&&i?i:a?a.__e:r.firstChild,o,l),q(s,n,l)}function V(e,t){K(e,t,V)}function G(t,n,r){var i,o,a,s,l=S({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),n)"key"==a?i=n[a]:"ref"==a?o=n[a]:l[a]=void 0===n[a]&&void 0!==s?s[a]:n[a];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),T(t.type,l,i||t.key,o||t.ref,null)}function Y(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,I(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}e=_.slice,t={__e:function(e,t,n,r){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,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},n=0,O.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state);"function"==typeof e&&(e=e(S({},n),this.props)),e&&S(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),I(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),I(this))},O.prototype.render=P,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},F.__r=0,s=0,l=W(!1),c=W(!0),u=0;var J=["context","children"];function Z(e){return this.getChildContext=function(){return e.context},G(e.children,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,J))}function ee(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=C(Z,X({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],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[te(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=C(ie,{name:c},l):r[o]=l}var u=n?C(ie,null,r):r;return C(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:K)(this._vdom,this._root)}function te(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function ne(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[te(e)]=n,this._vdom=G(this._vdom,r),K(this._vdom,this._root)}}function re(){K(this._vdom=null,this._root)}function ie(e,t){var n=this;return C("slot",X({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var oe,ae,se,le,ce=0,ue=[],de=t,fe=de.__b,pe=de.__r,he=de.diffed,me=de.__c,ge=de.unmount,ve=de.__;function ye(e,t){de.__h&&de.__h(ae,e,ce||t),ce=0;var n=ae.__H||(ae.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function we(e){return ce=1,be(Ne,e)}function be(e,t,n){var r=ye(oe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ne(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=ae,!ae.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);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&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};ae.u=!0;var o=ae.shouldComponentUpdate,a=ae.componentWillUpdate;ae.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},ae.shouldComponentUpdate=i}return r.__N||r.__}function _e(e,t){var n=ye(oe++,3);!de.__s&&Me(n.__H,t)&&(n.__=e,n.i=t,ae.__H.__h.push(n))}function xe(e,t){var n=ye(oe++,4);!de.__s&&Me(n.__H,t)&&(n.__=e,n.i=t,ae.__h.push(n))}function ke(e){return ce=5,Ee((function(){return{current:e}}),[])}function Se(e,t,n){ce=6,xe((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function Ee(e,t){var n=ye(oe++,7);return Me(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ce(e,t){return ce=8,Ee((function(){return e}),t)}function Te(e){var t=ae.context[e.__c],n=ye(oe++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(ae)),t.props.value):e.__}function Re(e,t){de.useDebugValue&&de.useDebugValue(t?t(e):e)}function Pe(e){var t=ye(oe++,10),n=we();return t.__=e,ae.componentDidCatch||(ae.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Oe(){var e=ye(oe++,11);if(!e.__){for(var t=ae.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Le(){for(var e;e=ue.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Fe),e.__H.__h.forEach(De),e.__H.__h=[]}catch(Ec){e.__H.__h=[],de.__e(Ec,e.__v)}}de.__b=function(e){ae=null,fe&&fe(e)},de.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ve&&ve(e,t)},de.__r=function(e){pe&&pe(e),oe=0;var t=(ae=e.__c).__H;t&&(se===ae?(t.__h=[],ae.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Fe),t.__h.forEach(De),t.__h=[],oe=0)),se=ae},de.diffed=function(e){he&&he(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ue.push(t)&&le===de.requestAnimationFrame||((le=de.requestAnimationFrame)||Ie)(Le)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),se=ae=null},de.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Fe),e.__h=e.__h.filter((function(e){return!e.__||De(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],de.__e(n,e.__v)}})),me&&me(e,t)},de.unmount=function(e){ge&&ge(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Fe(e)}catch(e){t=e}})),n.__H=void 0,t&&de.__e(t,n.__v))};var Ae="function"==typeof requestAnimationFrame;function Ie(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function Fe(e){var t=ae,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ae=t}function De(e){var t=ae;e.__c=e.__(),ae=t}function Me(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ne(e,t){return"function"==typeof t?t(e):t}var $e=class extends Error{};function He(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 n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}$e.prototype.name="InvalidTokenError";var je=class e{roles;isAuthorized;constructor(e){this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(t){return new e((t?function(e,t){if("string"!=typeof e)throw new $e("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new $e(`Invalid token specified: missing part #${n+1}`);let i;try{i=He(r)}catch(Sd){throw new $e(`Invalid token specified: invalid base64 for part #${n+1} (${Sd.message})`)}try{return JSON.parse(i)}catch(Sd){throw new $e(`Invalid token specified: invalid json for part #${n+1} (${Sd.message})`)}}(t):{roles:[]}).roles)}},We=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(){}},Ue="undefined"==typeof window||"Deno"in globalThis;function qe(){}function Be(e){return"number"==typeof e&&e>=0&&e!==1/0}function ze(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qe(e,t){return"function"==typeof e?e(t):e}function Ke(e,t){return"function"==typeof e?e(t):e}function Ve(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==Ye(a,t.options))return!1}else if(!Je(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Ge(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Xe(t.options.mutationKey)!==Xe(o))return!1}else if(!Je(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function Ye(e,t){return(t?.queryKeyHashFn||Xe)(e)}function Xe(e){return JSON.stringify(e,((e,t)=>nt(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Je(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Je(e[n],t[n]))))}function Ze(e,t){if(e===t)return e;const n=tt(e)&&tt(t);if(n||nt(e)&&nt(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const i=n?c:o[c];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=Ze(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function et(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function tt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nt(e){if(!rt(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!rt(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function rt(e){return"[object Object]"===Object.prototype.toString.call(e)}function it(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Ze(e,t):t}function ot(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function at(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var st=Symbol();function lt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==st?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var ct=new class extends We{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ue&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},ut=new class extends We{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ue&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#r}};function dt(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function ft(e){return Math.min(1e3*2**e,3e4)}function pt(e){return"online"!==(e??"online")||ut.isOnline()}var ht=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function mt(e){return e instanceof ht}function gt(e){let t,n=!1,r=0,i=!1;const o=dt(),a=()=>ct.isFocused()&&("always"===e.networkMode||ut.isOnline())&&e.canRun(),s=()=>pt(e.networkMode)&&e.canRun(),l=n=>{i||(i=!0,e.onSuccess?.(n),t?.(),o.resolve(n))},c=n=>{i||(i=!0,e.onError?.(n),t?.(),o.reject(n))},u=()=>new Promise((n=>{t=e=>{(i||a())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,i||e.onContinue?.()})),d=()=>{if(i)return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{if(i)return;const o=e.retry??(Ue?0:3),s=e.retryDelay??ft,l="function"==typeof s?s(r,t):s,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);!n&&f?(r++,e.onFail?.(r,t),function(e){return new Promise((t=>{setTimeout(t,e)}))}(l).then((()=>a()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:o,cancel:t=>{i||(c(new ht(t)),e.abort?.())},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var vt=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),yt=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Be(this.gcTime)&&(this.#i=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ue?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},wt=class extends yt{#o;#a;#s;#l;#c;#u;constructor(e){super(),this.#u=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){const n=it(this.state.data,e,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(qe).catch(qe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some((e=>!1!==Ke(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===st||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||!ze(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find((e=>e.shouldFetchOnWindowFocus()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find((e=>e.shouldFetchOnReconnect()))?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.#l&&(this.#u?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#u=!0,n.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=lt(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return r(n),this.#u=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};r(i),this.options.behavior?.onFetch(i,this),this.#a=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const o=e=>{mt(e)&&e.silent||this.#d({type:"error",error:e}),mt(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#l=gt({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0!==e){try{this.setData(e)}catch(t){return void o(t)}this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.scheduleGc()}else o(new Error(`${this.queryHash} data is undefined`))},onError:o,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(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,...bt(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 n=e.error;return mt(n)&&n.revert&&this.#a?{...this.#a,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),vt.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#s.notify({query:this,type:"updated",action:e})}))}};function bt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var _t=class extends We{constructor(e={}){super(),this.config=e,this.#f=new Map}#f;build(e,t,n){const r=t.queryKey,i=t.queryHash??Ye(r,t);let o=this.get(i);return o||(o=new wt({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#f.has(e.queryHash)||(this.#f.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#f.get(e.queryHash);t&&(e.destroy(),t===e&&this.#f.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){vt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#f.get(e)}getAll(){return[...this.#f.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Ve(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Ve(e,t))):t}notify(e){vt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){vt.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){vt.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},xt=class extends yt{#p;#h;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#h=e.mutationCache,this.#p=[],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){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#h.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter((t=>t!==e)),this.scheduleGc(),this.#h.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#h.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=gt({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#h.canRun(this)});const t="pending"===this.state.status,n=!this.#l.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:n}),await(this.#h.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:n})}const r=await this.#l.start();return await(this.#h.config.onSuccess?.(r,e,this.state.context,this)),await(this.options.onSuccess?.(r,e,this.state.context)),await(this.#h.config.onSettled?.(r,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(r,null,e,this.state.context)),this.#d({type:"success",data:r}),r}catch(r){try{throw await(this.#h.config.onError?.(r,e,this.state.context,this)),await(this.options.onError?.(r,e,this.state.context)),await(this.#h.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,r,e,this.state.context)),r}finally{this.#d({type:"error",error:r})}}finally{this.#h.runNext(this)}}#d(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),vt.batch((()=>{this.#p.forEach((t=>{t.onMutationUpdate(e)})),this.#h.notify({mutation:this,type:"updated",action:e})}))}};var kt=class extends We{constructor(e={}){super(),this.config=e,this.#m=new Map,this.#g=Date.now()}#m;#g;build(e,t,n){const r=new xt({mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=St(e),n=this.#m.get(t)??[];n.push(e),this.#m.set(t,n),this.notify({type:"added",mutation:e})}remove(e){const t=St(e);if(this.#m.has(t)){const n=this.#m.get(t)?.filter((t=>t!==e));n&&(0===n.length?this.#m.delete(t):this.#m.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){const t=this.#m.get(St(e))?.find((e=>"pending"===e.state.status));return!t||t===e}runNext(e){return(this.#m.get(St(e))?.find((t=>t!==e&&t.state.isPaused)))?.continue()??Promise.resolve()}clear(){vt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...this.#m.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Ge(t,e)))}findAll(e={}){return this.getAll().filter((t=>Ge(e,t)))}notify(e){vt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return vt.batch((()=>Promise.all(e.map((e=>e.continue().catch(qe))))))}};function St(e){return e.options.scope?.id??String(e.mutationId)}function Et(e){return{onFetch:(t,n)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let n=!1;const c=lt(t.options,t.fetchOptions),u=async(e,r,i)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const o={queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};var a;a=o,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const s=await c(o),{maxPages:l}=t.options,u=i?at:ot;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,r,l)}};if(i&&o.length){const e="backward"===i,t=e?Tt:Ct,n={pages:o,pageParams:a};s=await u(n,t(r,n),e)}else{const t=e??o.length;do{const e=0===l?a[0]??r.initialPageParam:Ct(r,s);if(l>0&&null==e)break;s=await u(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function Ct(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Tt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Rt=class{#v;#h;#c;#y;#w;#b;#_;#x;constructor(e={}){this.#v=e.queryCache||new _t,this.#h=e.mutationCache||new kt,this.#c=e.defaultOptions||{},this.#y=new Map,this.#w=new Map,this.#b=0}mount(){this.#b++,1===this.#b&&(this.#_=ct.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#v.onFocus())})),this.#x=ut.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#v.onOnline())})))}unmount(){this.#b--,0===this.#b&&(this.#_?.(),this.#_=void 0,this.#x?.(),this.#x=void 0)}isFetching(e){return this.#v.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#h.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#v.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=this.#v.build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Qe(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#v.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#v.get(r.queryHash)?.state.data,o=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==o)return this.#v.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return vt.batch((()=>this.#v.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#v.get(t.queryHash)?.state}removeQueries(e){const t=this.#v;vt.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#v,r={type:"active",...e};return vt.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=vt.batch((()=>this.#v.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(qe).catch(qe)}invalidateQueries(e={},t={}){return vt.batch((()=>{if(this.#v.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=vt.batch((()=>this.#v.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(qe)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(qe)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#v.build(this,t);return n.isStaleByTime(Qe(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qe).catch(qe)}fetchInfiniteQuery(e){return e.behavior=Et(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qe).catch(qe)}ensureInfiniteQueryData(e){return e.behavior=Et(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ut.isOnline()?this.#h.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#v}getMutationCache(){return this.#h}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#y.set(Xe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#y.values()];let n={};return t.forEach((t=>{Je(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){this.#w.set(Xe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#w.values()];let n={};return t.forEach((t=>{Je(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ye(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===st&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#v.clear(),this.#h.clear()}},Pt=class extends We{constructor(e,t){super(),this.options=t,this.#k=e,this.#S=null,this.#E=dt(),this.options.experimental_prefetchInRender||this.#E.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#k;#C=void 0;#T=void 0;#R=void 0;#P;#O;#E;#S;#L;#A;#I;#F;#D;#M;#N=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#C.addObserver(this),Ot(this.#C,this.options)?this.#$():this.updateResult(),this.#H())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lt(this.#C,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lt(this.#C,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#j(),this.#W(),this.#C.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.#C;if(this.options=this.#k.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Ke(this.options.enabled,this.#C))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#U(),this.#C.setOptions(this.options),n._defaulted&&!et(this.options,n)&&this.#k.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#C,observer:this});const i=this.hasListeners();i&&At(this.#C,r,this.options,n)&&this.#$(),this.updateResult(t),!i||this.#C===r&&Ke(this.options.enabled,this.#C)===Ke(n.enabled,this.#C)&&Qe(this.options.staleTime,this.#C)===Qe(n.staleTime,this.#C)||this.#q();const o=this.#B();!i||this.#C===r&&Ke(this.options.enabled,this.#C)===Ke(n.enabled,this.#C)&&o===this.#M||this.#z(o)}getOptimisticResult(e){const t=this.#k.getQueryCache().build(this.#k,e),n=this.createResult(t,e);var r;return r=n,et(this.getCurrentResult(),r)||(this.#R=n,this.#O=this.options,this.#P=this.#C.state),n}getCurrentResult(){return this.#R}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})})),n}trackProp(e){this.#N.add(e)}getCurrentQuery(){return this.#C}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#k.defaultQueryOptions(e),n=this.#k.getQueryCache().build(this.#k,t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#$({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#R)))}#$(e){this.#U();let t=this.#C.fetch(this.options,e);return e?.throwOnError||(t=t.catch(qe)),t}#q(){this.#j();const e=Qe(this.options.staleTime,this.#C);if(Ue||this.#R.isStale||!Be(e))return;const t=ze(this.#R.dataUpdatedAt,e)+1;this.#F=setTimeout((()=>{this.#R.isStale||this.updateResult()}),t)}#B(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#C):this.options.refetchInterval)??!1}#z(e){this.#W(),this.#M=e,!Ue&&!1!==Ke(this.options.enabled,this.#C)&&Be(this.#M)&&0!==this.#M&&(this.#D=setInterval((()=>{(this.options.refetchIntervalInBackground||ct.isFocused())&&this.#$()}),this.#M))}#H(){this.#q(),this.#z(this.#B())}#j(){this.#F&&(clearTimeout(this.#F),this.#F=void 0)}#W(){this.#D&&(clearInterval(this.#D),this.#D=void 0)}createResult(e,t){const n=this.#C,r=this.options,i=this.#R,o=this.#P,a=this.#O,s=e!==n?e.state:this.#T,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Ot(e,t),a=i&&At(e,n,t,r);(o||a)&&(u={...u,...bt(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=u;if(t.select&&void 0!==u.data)if(i&&u.data===o?.data&&t.select===this.#L)c=this.#A;else try{this.#L=t.select,c=t.select(u.data),c=it(i?.data,c,t),this.#A=c,this.#S=null}catch(_){this.#S=_}else c=u.data;if(void 0!==t.placeholderData&&void 0===c&&"pending"===h){let e;if(i?.isPlaceholderData&&t.placeholderData===a?.placeholderData)e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#I?.state.data,this.#I):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#S=null}catch(_){this.#S=_}void 0!==e&&(h="success",c=it(i?.data,e,t),d=!0)}this.#S&&(f=this.#S,c=this.#A,p=Date.now(),h="error");const m="fetching"===u.fetchStatus,g="pending"===h,v="error"===h,y=g&&m,w=void 0!==c,b={status:h,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===h,isError:v,isInitialLoading:y,isLoading:y,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:v&&!w,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:v&&w,isStale:It(e,t),refetch:this.refetch,promise:this.#E};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},r=()=>{t(this.#E=b.promise=dt())},i=this.#E;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=this.#R,n=this.createResult(this.#C,this.options);if(this.#P=this.#C.state,this.#O=this.options,void 0!==this.#P.data&&(this.#I=this.#C),et(n,t))return;this.#R=n;const r={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#N.size)return!0;const r=new Set(n??this.#N);return this.options.throwOnError&&r.add("error"),Object.keys(this.#R).some((e=>{const n=e;return this.#R[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.#Q({...r,...e})}#U(){const e=this.#k.getQueryCache().build(this.#k,this.options);if(e===this.#C)return;const t=this.#C;this.#C=e,this.#T=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#H()}#Q(e){vt.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#R)})),this.#k.getQueryCache().notify({query:this.#C,type:"observerResultsUpdated"})}))}};function Ot(e,t){return function(e,t){return!1!==Ke(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Lt(e,t,t.refetchOnMount)}function Lt(e,t,n){if(!1!==Ke(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&It(e,t)}return!1}function At(e,t,n,r){return(e!==t||!1===Ke(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&It(e,n)}function It(e,t){return!1!==Ke(t.enabled,e)&&e.isStaleByTime(Qe(t.staleTime,e))}var Ft=class extends We{#k;#R=void 0;#K;#V;constructor(e,t){super(),this.#k=e,this.setOptions(t),this.bindMethods(),this.#G()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#k.defaultMutationOptions(e),et(this.options,t)||this.#k.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#K,observer:this}),t?.mutationKey&&this.options.mutationKey&&Xe(t.mutationKey)!==Xe(this.options.mutationKey)?this.reset():"pending"===this.#K?.state.status&&this.#K.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#K?.removeObserver(this)}onMutationUpdate(e){this.#G(),this.#Q(e)}getCurrentResult(){return this.#R}reset(){this.#K?.removeObserver(this),this.#K=void 0,this.#G(),this.#Q()}mutate(e,t){return this.#V=t,this.#K?.removeObserver(this),this.#K=this.#k.getMutationCache().build(this.#k,this.options),this.#K.addObserver(this),this.#K.execute(e)}#G(){const e=this.#K?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#R={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#Q(e){vt.batch((()=>{if(this.#V&&this.hasListeners()){const t=this.#R.variables,n=this.#R.context;"success"===e?.type?(this.#V.onSuccess?.(e.data,t,n),this.#V.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#V.onError?.(e.error,t,n),this.#V.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach((e=>{e(this.#R)}))}))}},Dt=y({Children:()=>qt,Component:()=>O,Fragment:()=>P,PureComponent:()=>Nt,StrictMode:()=>Ln,Suspense:()=>Vt,SuspenseList:()=>Xt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>bn,cloneElement:()=>Cn,createContext:()=>Y,createElement:()=>C,createFactory:()=>xn,createPortal:()=>tn,createRef:()=>R,default:()=>Hn,findDOMNode:()=>Rn,flushSync:()=>On,forwardRef:()=>Wt,hydrate:()=>un,isElement:()=>Mn,isFragment:()=>Sn,isMemo:()=>En,isValidElement:()=>kn,lazy:()=>Yt,memo:()=>$t,render:()=>cn,startTransition:()=>An,unmountComponentAtNode:()=>Tn,unstable_batchedUpdates:()=>Pn,useCallback:()=>Ce,useContext:()=>Te,useDebugValue:()=>Re,useDeferredValue:()=>In,useEffect:()=>_e,useErrorBoundary:()=>Pe,useId:()=>Oe,useImperativeHandle:()=>Se,useInsertionEffect:()=>Dn,useLayoutEffect:()=>xe,useMemo:()=>Ee,useReducer:()=>be,useRef:()=>ke,useState:()=>we,useSyncExternalStore:()=>Nn,useTransition:()=>Fn,version:()=>_n});function Mt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Nt(e,t){this.props=e,this.context=t}function $t(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Mt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,C(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Nt.prototype=new O).isPureReactComponent=!0,Nt.prototype.shouldComponentUpdate=function(e,t){return Mt(this.props,e)||Mt(this.state,t)};var Ht=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ht&&Ht(e)};var jt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Wt(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=jt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ut=function(e,t){return null==e?null:N(N(e).map(t))},qt={map:Ut,forEach:Ut,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:N},Bt=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Bt(e,t,n,r)};var zt=t.unmount;function Qt(e,t,n){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 n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Qt(e,t,n)}))),e}function Kt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Kt(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Vt(){this.__u=0,this.t=null,this.__b=null}function Gt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Yt(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return C(n,i)}return i.displayName="Lazy",i.__f=!0,i}function Xt(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),zt&&zt(e)},(Vt.prototype=new O).__c=function(e,t){var n=t.__c,r=this;r.t??=[],r.t.push(n);var i=Gt(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Kt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Vt.prototype.componentWillUnmount=function(){this.t=[]},Vt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Qt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&C(P,null,e.fallback);return i&&(i.__u&=-33),[C(P,null,t.__a?null:e.children),i]};var Jt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Zt(e){return this.getChildContext=function(){return e.context},e.children}function en(e){var t=this,n=e.i;t.componentWillUnmount=function(){K(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),K(C(Zt,{context:t.context},e.__v),t.l)}function tn(e,t){var n=C(en,{__v:e,i:t});return n.containerInfo=t,n}(Xt.prototype=new O).__a=function(e){var t=this,n=Gt(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Jt(t,e,r)):i()};n?n(o):o()}},Xt.prototype.render=function(e){this.u=null,this.o=new Map;var t=N(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Xt.prototype.componentDidUpdate=Xt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Jt(e,n,t)}))};var nn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rn=/^(?: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]/,on=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,an=/[A-Z0-9]/g,sn="undefined"!=typeof document,ln=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function cn(e,t,n){return t.__k??(t.textContent=""),K(e,t),"function"==typeof n&&n(),e?e.__c:null}function un(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}O.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(O.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var dn=t.event;function fn(){}function pn(){return this.cancelBubble}function hn(){return this.defaultPrevented}t.event=function(e){return dn&&(e=dn(e)),e.persist=fn,e.isPropagationStopped=pn,e.isDefaultPrevented=hn,e.nativeEvent=e};var mn,gn={enumerable:!1,configurable:!0,get:function(){return this.class}},vn=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||sn&&"children"===o&&"noscript"===n||"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"!==n&&"textarea"!==n||ln(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":on.test(o)&&(o=s):s=o="oninput":i&&rn.test(o)?o=o.replace(an,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=N(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=N(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",gn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=nn,vn&&vn(e)};var yn=t.__r;t.__r=function(e){yn&&yn(e),mn=e.__c};var wn=t.diffed;t.diffed=function(e){wn&&wn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),mn=null};var bn={ReactCurrentDispatcher:{current:{readContext:function(e){return mn.__n[e.__c].props.value},useCallback:Ce,useContext:Te,useDebugValue:Re,useDeferredValue:In,useEffect:_e,useId:Oe,useImperativeHandle:Se,useInsertionEffect:Dn,useLayoutEffect:xe,useMemo:Ee,useReducer:be,useRef:ke,useState:we,useSyncExternalStore:Nn,useTransition:Fn}}},_n="18.3.1";function xn(e){return C.bind(null,e)}function kn(e){return!!e&&e.$$typeof===nn}function Sn(e){return kn(e)&&e.type===P}function En(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Cn(e){return kn(e)?G.apply(null,arguments):e}function Tn(e){return!!e.__k&&(K(null,e),!0)}function Rn(e){return e&&(e.base||1===e.nodeType&&e)||null}var Pn=function(e,t){return e(t)},On=function(e,t){return e(t)},Ln=P;function An(e){e()}function In(e){return e}function Fn(){return[!1,An]}var Dn=xe,Mn=kn;function Nn(e,t){var n=t(),r=we({h:{__:n,v:t}}),i=r[0].h,o=r[1];return xe((function(){i.__=n,i.v=t,$n(i)&&o({h:i})}),[e,n,t]),_e((function(){return $n(i)&&o({h:i}),e((function(){$n(i)&&o({h:i})}))}),[e]),n}function $n(e){var t,n,r=e.v,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Hn={useState:we,useId:Oe,useReducer:be,useEffect:_e,useLayoutEffect:xe,useInsertionEffect:Dn,useTransition:Fn,useDeferredValue:In,useSyncExternalStore:Nn,startTransition:An,useRef:ke,useImperativeHandle:Se,useMemo:Ee,useCallback:Ce,useContext:Te,useDebugValue:Re,version:"18.3.1",Children:qt,render:cn,hydrate:un,unmountComponentAtNode:Tn,createPortal:tn,createElement:C,createContext:Y,createFactory:xn,cloneElement:Cn,createRef:R,Fragment:P,isValidElement:kn,isElement:Mn,isFragment:Sn,isMemo:En,findDOMNode:Rn,Component:O,PureComponent:Nt,memo:$t,forwardRef:Wt,flushSync:On,unstable_batchedUpdates:Pn,StrictMode:Ln,Suspense:Vt,SuspenseList:Xt,lazy:Yt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:bn},jn=0;Array.isArray;function Wn(e,n,r,i,o,a){n||(n={});var s,l,c=n;"ref"in n&&(s=n.ref,delete n.ref);var u={type:e,props:c,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--jn,__i:-1,__u:0,__source:o,__self:a};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return t.vnode&&t.vnode(u),u}var Un=Y(void 0),qn=e=>{const t=Te(Un);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bn=({client:e,children:t})=>(_e((()=>(e.mount(),()=>{e.unmount()})),[e]),Wn(Un.Provider,{value:e,children:t})),zn=Y(!1);zn.Provider;var Qn=Y(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Kn(e,t){return"function"==typeof e?e(...t):!!e}function Vn(){}var Gn=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function Yn(e,t,n){const r=qn(n),i=Te(zn),o=Te(Qn),a=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=i?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(a),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{_e((()=>{e.clearReset()}),[e])})(o);const s=!r.getQueryCache().get(a.queryHash),[l]=we((()=>new t(r,a))),c=l.getOptimisticResult(a);if(Nn(Ce((e=>{const t=i?Vn:l.subscribe(vt.batchCalls(e));return l.updateResult(),t}),[l,i]),(()=>l.getCurrentResult())),_e((()=>{l.setOptions(a,{listeners:!1})}),[a,l]),((e,t)=>e?.suspense&&t.isPending)(a,c))throw Gn(a,l,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Kn(n,[e.error,r]))({result:c,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw c.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(a,c),a.experimental_prefetchInRender&&!Ue&&((e,t)=>e.isLoading&&e.isFetching&&!t)(c,i)&&(s?Gn(a,l,o):r.getQueryCache().get(a.queryHash)?.promise)?.catch(Vn).finally((()=>{l.updateResult()})),a.notifyOnChangeProps?c:l.trackResult(c)}function Xn(e,t){return Yn(e,Pt,t)}function Jn(e,t){const n=qn(t),[r]=we((()=>new Ft(n,e)));_e((()=>{r.setOptions(e)}),[r,e]);const i=Nn(Ce((e=>r.subscribe(vt.batchCalls(e))),[r]),(()=>r.getCurrentResult())),o=Ce(((e,t)=>{r.mutate(e,t).catch(Vn)}),[r]);if(i.error&&Kn(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}var Zn,er=Y({account:{accountId:""},backend:{url:"",accessToken:""}}),tr=()=>Te(er),nr=class e extends Error{_response;get response(){return this._response}constructor(t,n){super(t),this._response=n,Object.setPrototypeOf(this,e.prototype)}},rr=async(e,t,n,r)=>{const i=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.1214",authorization:`Bearer ${t}`},signal:AbortSignal?.timeout&&AbortSignal.timeout(15e3)});if(!i.ok)throw new nr(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},ir=async(e,t,n,r)=>await(await rr(e,t,n,r)).json(),or=e=>{const t=tr();return Ee((()=>e(t)),[e,t])},ar="linkedAccount",sr="linkedProfilesForAccount",lr="salaryPackagedItem",cr="checkProfileSearchAuthorization",ur="payrollAdvice",dr="invoices",fr="/salary-packaging/admin/v1.0",pr=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/auth`),e.backend.accessToken,"GET"),hr=e=>async t=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profile-search?search=${t}`),e.backend.accessToken,"GET"),mr=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const n=new Date;n.setUTCDate((new Date).getUTCDate()+2),await rr(new URL(`${e.backend.url}${fr}/ingest/clients`),e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:n.toISOString().split("T")[0]})},gr=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}`),e.backend.accessToken,"GET"),vr=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles`),e.backend.accessToken,"GET"),yr=e=>async t=>{await rr(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles/${t}/unlink`),e.backend.accessToken,"POST")},wr=e=>async(t,n)=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles/${t}/items/${n}`),e.backend.accessToken,"GET"),br=e=>async t=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`),e.backend.accessToken,"GET"),_r=e=>async()=>ir(new URL(`${e.backend.url}${fr}/accounts/${e.account.accountId}/invoices`),e.backend.accessToken,"GET"),xr=()=>({checkProfileSearchAuthorization:or(pr),searchProfilesForAccount:or(hr),ingestClient:or(mr),linkedAccount:or(gr),linkedProfilesForAccount:or(vr),unlinkProfile:or(yr),salaryPackagedItem:or(wr),payrollAdvice:or(br),invoices:or(_r)}),kr="popstate";function Sr(e={}){return function(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s="POP",l=null,c=u();null==c&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:m.location,delta:t})}function f(e,t){s="PUSH";let r=Rr(m.location,e,t);n&&n(r,e),c=u()+1;let d=Tr(r,c),f=m.createHref(r);try{a.pushState(d,"",f)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(f)}o&&l&&l({action:s,location:m.location,delta:1})}function p(e,t){s="REPLACE";let r=Rr(m.location,e,t);n&&n(r,e),c=u();let i=Tr(r,c),d=m.createHref(r);a.replaceState(i,"",d),o&&l&&l({action:s,location:m.location,delta:0})}function h(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href);Er(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:Pr(e);r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r);return new URL(r,n)}(e)}let m={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(kr,d),l=e,()=>{i.removeEventListener(kr,d),l=null}},createHref:e=>t(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go:e=>a.go(e)};return m}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=Or(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),Rr("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:Pr(t))}),(function(e,t){Cr("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function Er(e,t){if(!1===e||null==e)throw new Error(t)}function Cr(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(Sd){}}}function Tr(e,t){return{usr:e.state,key:e.key,idx:t}}function Rr(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Or(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Pr({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function Or(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Lr(e,t,n="/"){return function(e,t,n,r){let i=zr(("string"==typeof t?Or(t):t).pathname||"/",n);if(null==i)return null;let o=Ar(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let s=0;null==a&&s<o.length;++s){let e=Br(i);a=Ur(o[s],e,r)}return a}(e,t,n,!1)}function Ar(e,t=[],n=[],r="",i=!1){let o=(e,o,a=i,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;Er(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let c=Jr([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(Er(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Ar(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:Wr(c,e.index),routesMeta:u})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of Ir(e.path))o(e,t,!0,n);else o(e,t)})),t}function Ir(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=Ir(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var Fr=/^:[\w-]+$/,Dr=3,Mr=2,Nr=1,$r=10,Hr=-2,jr=e=>"*"===e;function Wr(e,t){let n=e.split("/"),r=n.length;return n.some(jr)&&(r+=Hr),t&&(r+=Mr),n.filter((e=>!jr(e))).reduce(((e,t)=>e+(Fr.test(t)?Dr:""===t?Nr:$r)),r)}function Ur(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=qr({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=qr({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:Jr([o,u.pathname]),pathnameBase:Zr(Jr([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=Jr([o,u.pathnameBase]))}return a}function qr(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){Cr("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");return[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=s[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function Br(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return Cr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zr(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var Qr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Kr(e,t="/"){let n,{pathname:r,search:i="",hash:o=""}="string"==typeof e?Or(e):e;if(r)if(a=r,Qr.test(a))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),Cr(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${r}`)}n=r.startsWith("/")?Vr(r.substring(1),"/"):Vr(r,t)}else n=t;var a;return{pathname:n,search:ei(i),hash:ti(o)}}function Vr(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function Gr(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Yr(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function Xr(e,t,n,r=!1){let i;"string"==typeof e?i=Or(e):(i={...e},Er(!i.pathname||!i.pathname.includes("?"),Gr("?","pathname","search",i)),Er(!i.pathname||!i.pathname.includes("#"),Gr("#","pathname","hash",i)),Er(!i.search||!i.search.includes("#"),Gr("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=Kr(i,o),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var Jr=e=>e.join("/").replace(/\/\/+/g,"/"),Zr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ei=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",ti=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",ni=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ri(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function ii(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var oi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ai(e,t){let n=e;if("string"!=typeof n||!Qr.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(oi)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=zr(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:i=!0}catch(Sd){Cr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var si=["POST","PUT","PATCH","DELETE"],li=(new Set(si),["GET",...si]),ci=(new Set(li),Y(null));ci.displayName="DataRouter";var ui=Y(null);ui.displayName="DataRouterState";var di=Y(!1);var fi=Y({isTransitioning:!1});fi.displayName="ViewTransition",Y(new Map).displayName="Fetchers";var pi=Y(null);pi.displayName="Await";var hi=Y(null);hi.displayName="Navigation";var mi=Y(null);mi.displayName="Location";var gi=Y({outlet:null,matches:[],isDataRoute:!1});gi.displayName="Route";var vi=Y(null);vi.displayName="RouteError";var yi="REACT_ROUTER_ERROR";function wi(){return null!=Te(mi)}function bi(){return Er(wi(),"useLocation() may be used only in the context of a <Router> component."),Te(mi).location}var _i="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xi(e){Te(hi).static||xe(e)}function ki(){let{isDataRoute:e}=Te(gi);return e?function(){let{router:e}=function(e){let t=Te(ci);return Er(t,Fi(e)),t}("useNavigate"),t=Mi("useNavigate"),n=ke(!1);return xi((()=>{n.current=!0})),Ce((async(r,i={})=>{Cr(n.current,_i),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))}),[e,t])}():function(){Er(wi(),"useNavigate() may be used only in the context of a <Router> component.");let e=Te(ci),{basename:t,navigator:n}=Te(hi),{matches:r}=Te(gi),{pathname:i}=bi(),o=JSON.stringify(Yr(r)),a=ke(!1);return xi((()=>{a.current=!0})),Ce(((r,s={})=>{if(Cr(a.current,_i),!a.current)return;if("number"==typeof r)return void n.go(r);let l=Xr(r,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Jr([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,o,i,e])}()}var Si=Y(null);function Ei(e){let t=Te(gi).outlet;return Ee((()=>t&&C(Si.Provider,{value:e},t)),[t,e])}function Ci(e,{relative:t}={}){let{matches:n}=Te(gi),{pathname:r}=bi(),i=JSON.stringify(Yr(n));return Ee((()=>Xr(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function Ti(e,t,n,r,i){Er(wi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=Te(hi),{matches:a}=Te(gi),s=a[a.length-1],l=s?s.params:{},c=s?s.pathname:"/",u=s?s.pathnameBase:"/",d=s&&s.route;{let e=d&&d.path||"";$i(c,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let f,p=bi();if(t){let e="string"==typeof t?Or(t):t;Er("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),f=e}else f=p;let h=f.pathname||"/",m=h;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=Lr(e,{pathname:m});Cr(d||null!=g,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Cr(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=function(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,o=n?.errors;if(null!=o){let e=i.findIndex((e=>e.route.id&&void 0!==o?.[e.route.id]));Er(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,s=-1;if(n)for(let c=0;c<i.length;c++){let e=i[c];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(s=c),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){a=!0,i=s>=0?i.slice(0,s+1):[i[0]];break}}}let l=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:ii(n.matches),errorInfo:t})}:void 0;return i.reduceRight(((e,r,c)=>{let u,d=!1,f=null,p=null;n&&(u=o&&r.route.id?o[r.route.id]:void 0,f=r.route.errorElement||Pi,a&&(s<0&&0===c?($i("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=r.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),m=()=>{let t;return t=u?f:d?p:r.route.Component?C(r.route.Component,null):r.route.element?r.route.element:e,C(Ii,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?C(Oi,{location:n.location,revalidation:n.revalidation,component:f,error:u,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):m()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Jr([u,o.encodeLocation?o.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Jr([u,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),a,n,r,i);return t&&v?C(mi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...f},navigationType:"POP"}},v):v}function Ri(){let e=function(){let e=Te(vi),t=Di("useRouteError"),n=Mi("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=ri(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=C(P,null,C("p",null,"💿 Hey developer 👋"),C("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C("code",{style:o},"ErrorBoundary")," or"," ",C("code",{style:o},"errorElement")," prop on your route.")),C(P,null,C("h2",null,"Unexpected Application Error!"),C("h3",{style:{fontStyle:"italic"}},t),n?C("pre",{style:i},n):null,a)}var Pi=C(Ri,null),Oi=class extends O{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${yi}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new ni(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?C(gi.Provider,{value:this.props.routeContext},C(vi.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?C(Ai,{error:e},t):t}};Oi.contextType=di;var Li=new WeakMap;function Ai({children:e,error:t}){let{basename:n}=Te(hi);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${yi}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=Li.get(t);if(r)throw r;let i=ai(e.location,n);if(oi&&!Li.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace})));throw Li.set(t,n),n}window.location.href=i.absoluteURL||i.to}return C("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Ii({routeContext:e,match:t,children:n}){let r=Te(ci);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C(gi.Provider,{value:e},n)}function Fi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Di(e){let t=Te(ui);return Er(t,Fi(e)),t}function Mi(e){let t=function(e){let t=Te(gi);return Er(t,Fi(e)),t}(e),n=t.matches[t.matches.length-1];return Er(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Ni={};function $i(e,t,n){t||Ni[e]||(Ni[e]=!0,Cr(!1,n))}$t((function({routes:e,future:t,state:n,onError:r}){return Ti(e,void 0,n,r,t)}));function Hi({to:e,replace:t,state:n,relative:r}){Er(wi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=Te(hi);Cr(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=Te(gi),{pathname:a}=bi(),s=ki(),l=Xr(e,Yr(o),a,"path"===r),c=JSON.stringify(l);return _e((()=>{s(JSON.parse(c),{replace:t,state:n,relative:r})}),[s,c,r,t,n]),null}function ji(e){return Ei(e.context)}function Wi(e){Er(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ui({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1,unstable_useTransitions:a}){Er(!wi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=Ee((()=>({basename:s,navigator:i,static:o,unstable_useTransitions:a,future:{}})),[s,i,o,a]);"string"==typeof n&&(n=Or(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:p="default"}=n,h=Ee((()=>{let e=zr(c,s);return null==e?null:{location:{pathname:e,search:u,hash:d,state:f,key:p},navigationType:r}}),[s,c,u,d,f,p,r]);return Cr(null!=h,`<Router basename="${s}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:C(hi.Provider,{value:l},C(mi.Provider,{children:t,value:h}))}function qi({children:e,location:t}){return Ti(Bi(e),t)}function Bi(e,t=[]){let n=[];return qt.forEach(e,((e,r)=>{if(!kn(e))return;let i=[...t,r];if(e.type===P)return void n.push.apply(n,Bi(e.props.children,i));Er(e.type===Wi,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Er(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Bi(e.props.children,i)),n.push(o)})),n}var zi="get",Qi="application/x-www-form-urlencoded";function Ki(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Vi=null;var Gi=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yi(e){return null==e||Gi.has(e)?e:(Cr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qi}"`),null)}function Xi(e,t){let n,r,i,o,a;if(Ki(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?zr(a,t):null,n=e.getAttribute("method")||zi,i=Yi(e.getAttribute("enctype"))||Qi,o=new FormData(e)}else if(function(e){return Ki(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ki(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?zr(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||zi,i=Yi(e.getAttribute("formenctype"))||Yi(a.getAttribute("enctype"))||Qi,o=new FormData(a,e),!function(){if(null===Vi)try{new FormData(document.createElement("form"),0),Vi=!1}catch(Sd){Vi=!0}return Vi}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(Ki(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=zi,r=null,i=Qi,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ji(e,t){if(!1===e||null==e)throw new Error(t)}async function Zi(e,t){if(e.id in t)return t[e.id];try{let n=await function(e){function t(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return Promise.resolve().then((n=>{for(const e of n||[])"rejected"===e.status&&t(e.reason);return e().catch(t)}))}((()=>import(e.module)));return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function eo(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function to(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,i)=>{if(t&&(null==(o=i)||"string"!=typeof o.page)&&"script"===i.as&&i.href&&r.has(i.href))return e;var o;let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Zi(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(eo).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}function no(e,t,n,r,i,o){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter(((e,t)=>a(e,t)||s(e,t))):"data"===o?t.filter(((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function ro(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i})).flat(1),[...new Set(r)];var r}function io(){let e=Te(ci);return Ji(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function oo(){let e=Te(ui);return Ji(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ao=Y(void 0);function so(){let e=Te(ao);return Ji(e,"You must render this element inside a <HydratedRouter> element"),e}function lo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function co({page:e,...t}){let{router:n}=io(),r=Ee((()=>Lr(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?C(uo,{page:e,matches:r,...t}):null}function uo({page:e,matches:t,...n}){let r=bi(),{future:i,manifest:o,routeModules:a}=so(),{basename:s}=io(),{loaderData:l,matches:c}=oo(),u=Ee((()=>no(e,t,c,o,r,"data")),[e,t,c,o,r]),d=Ee((()=>no(e,t,c,o,r,"assets")),[e,t,c,o,r]),f=Ee((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,c=!1;if(t.forEach((e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!u.some((t=>t.route.id===e.route.id))&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?c=!0:n.add(e.route.id))})),0===n.size)return[];let d=function(e,t,n,r){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:"/"===i.pathname?i.pathname=`_root.${r}`:t&&"/"===zr(i.pathname,t)?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}(e,s,i.unstable_trailingSlashAwareDataRequests,"data");return c&&n.size>0&&d.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[d.pathname+d.search]}),[s,i.unstable_trailingSlashAwareDataRequests,l,r,o,u,t,e,a]),p=Ee((()=>ro(d,o)),[d,o]),h=function(e){let{manifest:t,routeModules:n}=so(),[r,i]=we([]);return _e((()=>{let r=!1;return to(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}(d);return C(P,null,f.map((e=>C("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>C("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>C("link",{key:e,nonce:n.nonce,...t}))))}ao.displayName="FrameworkContext";function fo(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var po="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{po&&(window.__reactRouterVersion="7.12.0")}catch(Sd){}function ho({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=ke();null==i.current&&(i.current=Sr({window:r,v5Compat:!0}));let o=i.current,[a,s]=we({action:o.action,location:o.location}),l=Ce((e=>{!1===n?s(e):An((()=>s(e)))}),[n]);return xe((()=>o.listen(l)),[o,l]),C(Ui,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o,unstable_useTransitions:n})}var mo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,go=Wt((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:o,state:a,target:s,to:l,preventScrollReset:c,viewTransition:u,unstable_defaultShouldRevalidate:d,...f},p){let{basename:h,unstable_useTransitions:m}=Te(hi),g="string"==typeof l&&mo.test(l),v=ai(l,h),y=function(e,{relative:t}={}){Er(wi(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=Te(hi),{hash:i,pathname:o,search:a}=Ci(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:Jr([n,o])),r.createHref({pathname:s,search:a,hash:i})}(l=v.to,{relative:r}),[w,b,_]=function(e,t){let n=Te(ao),[r,i]=we(!1),[o,a]=we(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,f=ke(null);_e((()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{a(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),_e((()=>{if(r){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let p=()=>{i(!0)},h=()=>{i(!1),a(!1)};return n?"intent"!==e?[o,f,{}]:[o,f,{onFocus:lo(s,p),onBlur:lo(l,h),onMouseEnter:lo(c,p),onMouseLeave:lo(u,h),onTouchStart:lo(d,p)}]:[!1,f,{}]}(n,f),x=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let c=ki(),u=bi(),d=Ci(e,{relative:o});return Ce((f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,t)){f.preventDefault();let t=void 0!==n?n:Pr(u)===Pr(d),p=()=>c(e,{replace:t,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:s});l?An((()=>p())):p()}}),[u,c,d,n,r,t,e,i,o,a,s,l])}(l,{replace:o,state:a,target:s,preventScrollReset:c,relative:r,viewTransition:u,unstable_defaultShouldRevalidate:d,unstable_useTransitions:m});let k=C("a",{...f,..._,href:v.absoluteURL||y,onClick:v.isExternal||i?e:function(t){e&&e(t),t.defaultPrevented||x(t)},ref:fo(p,b),target:s,"data-discover":g||"render"!==t?void 0:"true"});return w&&!g?C(P,null,k,C(co,{page:y})):k}));go.displayName="Link";var vo=Wt((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:o,viewTransition:a,children:s,...l},c){let u=Ci(o,{relative:l.relative}),d=bi(),f=Te(ui),{navigator:p,basename:h}=Te(hi),m=null!=f&&function(e,{relative:t}={}){let n=Te(fi);Er(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=bo("useViewTransitionState"),i=Ci(e,{relative:t});if(!n.isTransitioning)return!1;let o=zr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=zr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=qr(i.pathname,a)||null!=qr(i.pathname,o)}(u)&&!0===a,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&h&&(y=zr(y,h)||y);const w="/"!==g&&g.endsWith("/")?g.length-1:g.length;let b,_=v===g||!r&&v.startsWith(g)&&"/"===v.charAt(w),x=null!=y&&(y===g||!r&&y.startsWith(g)&&"/"===y.charAt(g.length)),k={isActive:_,isPending:x,isTransitioning:m},S=_?e:void 0;b="function"==typeof n?n(k):[n,_?"active":null,x?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(k):i;return C(go,{...l,"aria-current":S,className:b,ref:c,style:E,to:o,viewTransition:a},"function"==typeof s?s(k):s)}));vo.displayName="NavLink";var yo=Wt((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=zi,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...p},h)=>{let{unstable_useTransitions:m}=Te(hi),g=function(){let{router:e}=bo("useSubmit"),{basename:t}=Te(hi),n=Mi("useRouteId"),r=e.fetch,i=e.navigate;return Ce((async(e,o={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=Xi(e,t);!1===o.navigate?await r(o.fetcherKey||xo(),n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync}):await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[r,i,t,n])}(),v=function(e,{relative:t}={}){let{basename:n}=Te(hi),r=Te(gi);Er(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Ci(e||".",{relative:t})},a=bi();if(null==e){o.search=a.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();o.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(o.pathname="/"===o.pathname?n:Jr([n,o.pathname]));return Pr(o)}(s,{relative:c}),y="get"===a.toLowerCase()?"get":"post",w="string"==typeof s&&mo.test(s);return C("form",{ref:h,method:y,action:v,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||a,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:o,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f});m&&!1!==n?An((()=>p())):p()},...p,"data-discover":w||"render"!==e?void 0:"true"})}));function wo(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bo(e){let t=Te(ci);return Er(t,wo(e)),t}yo.displayName="Form";var _o=0,xo=()=>`__${String(++_o)}__`;function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko.apply(null,arguments)}var So=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(Sd){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Eo="-ms-",Co="-moz-",To="-webkit-",Ro="comm",Po="rule",Oo="decl",Lo="@keyframes",Ao=Math.abs,Io=String.fromCharCode,Fo=Object.assign;function Do(e){return e.trim()}function Mo(e,t,n){return e.replace(t,n)}function No(e,t){return e.indexOf(t)}function $o(e,t){return 0|e.charCodeAt(t)}function Ho(e,t,n){return e.slice(t,n)}function jo(e){return e.length}function Wo(e){return e.length}function Uo(e,t){return t.push(e),e}var qo=1,Bo=1,zo=0,Qo=0,Ko=0,Vo="";function Go(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:qo,column:Bo,length:a,return:""}}function Yo(e,t){return Fo(Go("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xo(){return Ko=Qo>0?$o(Vo,--Qo):0,Bo--,10===Ko&&(Bo=1,qo--),Ko}function Jo(){return Ko=Qo<zo?$o(Vo,Qo++):0,Bo++,10===Ko&&(Bo=1,qo++),Ko}function Zo(){return $o(Vo,Qo)}function ea(){return Qo}function ta(e,t){return Ho(Vo,e,t)}function na(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ra(e){return qo=Bo=1,zo=jo(Vo=e),Qo=0,[]}function ia(e){return Vo="",e}function oa(e){return Do(ta(Qo-1,la(91===e?e+2:40===e?e+1:e)))}function aa(e){for(;(Ko=Zo())&&Ko<33;)Jo();return na(e)>2||na(Ko)>3?"":" "}function sa(e,t){for(;--t&&Jo()&&!(Ko<48||Ko>102||Ko>57&&Ko<65||Ko>70&&Ko<97););return ta(e,ea()+(t<6&&32==Zo()&&32==Jo()))}function la(e){for(;Jo();)switch(Ko){case e:return Qo;case 34:case 39:34!==e&&39!==e&&la(Ko);break;case 40:41===e&&la(e);break;case 92:Jo()}return Qo}function ca(e,t){for(;Jo()&&e+Ko!==57&&(e+Ko!==84||47!==Zo()););return"/*"+ta(t,Qo-1)+"*"+Io(47===e?e:Jo())}function ua(e){for(;!na(Zo());)Jo();return ta(e,Qo)}function da(e){return ia(fa("",null,null,null,[""],e=ra(e),0,[0],e))}function fa(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,w="",b=i,_=o,x=r,k=w;g;)switch(h=y,y=Jo()){case 40:if(108!=h&&58==$o(k,d-1)){-1!=No(k+=Mo(oa(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=oa(y);break;case 9:case 10:case 13:case 32:k+=aa(h);break;case 92:k+=sa(ea()-1,7);continue;case 47:switch(Zo()){case 42:case 47:Uo(ha(ca(Jo(),ea()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=jo(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=Mo(k,/\f/g,"")),p>0&&jo(k)-d&&Uo(p>32?ma(k+";",r,n,d-1):ma(Mo(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Uo(x=pa(k,t,n,c,u,i,s,w,b=[],_=[],d),o),123===y)if(0===u)fa(k,t,x,x,b,o,d,s,_);else switch(99===f&&110===$o(k,3)?100:f){case 100:case 108:case 109:case 115:fa(e,x,x,r&&Uo(pa(e,x,x,0,0,i,s,w,i,b=[],d),_),i,_,d,s,r?b:_);break;default:fa(k,x,x,x,[""],_,0,s,_)}}c=u=p=0,m=v=1,w=k="",d=a;break;case 58:d=1+jo(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Xo())continue;switch(k+=Io(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(jo(k)-1)*v,v=1;break;case 64:45===Zo()&&(k+=oa(Jo())),f=Zo(),u=d=jo(w=k+=ua(ea())),y++;break;case 45:45===h&&2==jo(k)&&(m=0)}}return o}function pa(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],p=Wo(f),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Ho(e,d+1,d=Ao(m=a[h])),w=e;v<p;++v)(w=Do(m>0?f[v]+" "+y:Mo(y,/&\f/g,f[v])))&&(l[g++]=w);return Go(e,t,n,0===i?Po:s,l,c,u)}function ha(e,t,n){return Go(e,t,n,Ro,Io(Ko),Ho(e,2,-2),0)}function ma(e,t,n,r){return Go(e,t,n,Oo,Ho(e,0,r),Ho(e,r+1,-1),r)}function ga(e,t){for(var n="",r=Wo(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function va(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Oo:return e.return=e.return||e.value;case Ro:return"";case Lo:return e.return=e.value+"{"+ga(e.children,r)+"}";case Po:e.value=e.props.join(",")}return jo(n=ga(e.children,r))?e.return=e.value+"{"+n+"}":""}function ya(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var wa=function(e,t,n){for(var r=0,i=0;r=i,i=Zo(),38===r&&12===i&&(t[n]=1),!na(i);)Jo();return ta(e,Qo)},ba=function(e,t){return ia(function(e,t){var n=-1,r=44;do{switch(na(r)){case 0:38===r&&12===Zo()&&(t[n]=1),e[n]+=wa(Qo-1,t,n);break;case 2:e[n]+=oa(r);break;case 4:if(44===r){e[++n]=58===Zo()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Io(r)}}while(r=Jo());return e}(ra(e),t))},_a=new WeakMap,xa=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||_a.get(n))&&!r){_a.set(e,!0);for(var i=[],o=ba(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ka=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Sa(e,t){switch(function(e,t){return 45^$o(e,0)?(((t<<2^$o(e,0))<<2^$o(e,1))<<2^$o(e,2))<<2^$o(e,3):0}(e,t)){case 5103:return To+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return To+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return To+e+Co+e+Eo+e+e;case 6828:case 4268:return To+e+Eo+e+e;case 6165:return To+e+Eo+"flex-"+e+e;case 5187:return To+e+Mo(e,/(\w+).+(:[^]+)/,To+"box-$1$2"+Eo+"flex-$1$2")+e;case 5443:return To+e+Eo+"flex-item-"+Mo(e,/flex-|-self/,"")+e;case 4675:return To+e+Eo+"flex-line-pack"+Mo(e,/align-content|flex-|-self/,"")+e;case 5548:return To+e+Eo+Mo(e,"shrink","negative")+e;case 5292:return To+e+Eo+Mo(e,"basis","preferred-size")+e;case 6060:return To+"box-"+Mo(e,"-grow","")+To+e+Eo+Mo(e,"grow","positive")+e;case 4554:return To+Mo(e,/([^-])(transform)/g,"$1"+To+"$2")+e;case 6187:return Mo(Mo(Mo(e,/(zoom-|grab)/,To+"$1"),/(image-set)/,To+"$1"),e,"")+e;case 5495:case 3959:return Mo(e,/(image-set\([^]*)/,To+"$1$`$1");case 4968:return Mo(Mo(e,/(.+:)(flex-)?(.*)/,To+"box-pack:$3"+Eo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+To+e+e;case 4095:case 3583:case 4068:case 2532:return Mo(e,/(.+)-inline(.+)/,To+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jo(e)-1-t>6)switch($o(e,t+1)){case 109:if(45!==$o(e,t+4))break;case 102:return Mo(e,/(.+:)(.+)-([^]+)/,"$1"+To+"$2-$3$1"+Co+(108==$o(e,t+3)?"$3":"$2-$3"))+e;case 115:return~No(e,"stretch")?Sa(Mo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==$o(e,t+1))break;case 6444:switch($o(e,jo(e)-3-(~No(e,"!important")&&10))){case 107:return Mo(e,":",":"+To)+e;case 101:return Mo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+To+(45===$o(e,14)?"inline-":"")+"box$3$1"+To+"$2$3$1"+Eo+"$2box$3")+e}break;case 5936:switch($o(e,t+11)){case 114:return To+e+Eo+Mo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return To+e+Eo+Mo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return To+e+Eo+Mo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return To+e+Eo+e+e}return e}var Ea=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Oo:e.return=Sa(e.value,e.length);break;case Lo:return ga([Yo(e,{value:Mo(e.value,"@","@"+To)})],r);case Po:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ga([Yo(e,{props:[Mo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ga([Yo(e,{props:[Mo(t,/:(plac\w+)/,":"+To+"input-$1")]}),Yo(e,{props:[Mo(t,/:(plac\w+)/,":-moz-$1")]}),Yo(e,{props:[Mo(t,/:(plac\w+)/,Eo+"input-$1")]})],r)}return""}))}}],Ca=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||Ea,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[va,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=Wo(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([xa,ka].concat(o,u));i=function(e,t,n,r){l=n,ga(da(e?e+"{"+t.styles+"}":t.styles),d),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new So({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},Ta=v((e=>{var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case u:case i:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case h:case s:return e;default:return t}}case r:return t}}}function _(e){return b(e)===u}e.AsyncMode=c,e.ConcurrentMode=u,e.ContextConsumer=l,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=m,e.Memo=h,e.Portal=r,e.Profiler=a,e.StrictMode=o,e.Suspense=f,e.isAsyncMode=function(e){return _(e)||b(e)===c},e.isConcurrentMode=_,e.isContextConsumer=function(e){return b(e)===l},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===m},e.isMemo=function(e){return b(e)===h},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===a},e.isStrictMode=function(e){return b(e)===o},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},e.typeOf=b})),Ra=v(((e,t)=>{t.exports=Ta()})),Pa=v(((e,t)=>{var n=Ra(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return n.isMemo(e)?o:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=f(n);o&&o!==p&&e(t,o,r)}var a=c(n);u&&(a=a.concat(u(n)));for(var h=s(t),m=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||h&&h[v])){var y=d(n,v);try{l(t,v,y)}catch(Sd){}}}}return t}}));function Oa(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var La=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Aa=function(e,t,n){La(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};function Ia(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var Fa={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Da=/[A-Z]|^ms/g,Ma=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Na=function(e){return 45===e.charCodeAt(1)},$a=function(e){return null!=e&&"boolean"!=typeof e},Ha=ya((function(e){return Na(e)?e:e.replace(Da,"-$&").toLowerCase()})),ja=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ma,(function(e,t,n){return Ua={name:t,styles:n,next:Ua},t}))}return 1===Fa[e]||Na(e)||"number"!=typeof t||0===t?t:t+"px"};function Wa(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Ua={name:i.name,styles:i.styles,next:Ua},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Ua={name:a.name,styles:a.styles,next:Ua},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Wa(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":$a(s)&&(r+=Ha(o)+":"+ja(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Wa(e,t,a);switch(o){case"animation":case"animationName":r+=Ha(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)$a(a[c])&&(r+=Ha(o)+":"+ja(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Ua,l=n(e);return Ua=s,Wa(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Ua,qa=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ba(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Ua=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Wa(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=Wa(n,t,e[a]),r&&(i+=o[a]);qa.lastIndex=0;for(var s,l="";null!==(s=qa.exec(i));)l+="-"+s[1];return{name:Ia(i)+l,styles:i,next:Ua}}var za,Qa,Ka=Dn||!1,Va=Ka||function(e){return e()},Ga=Ka||xe,Ya=Y("undefined"!=typeof HTMLElement?Ca({key:"css"}):null),Xa=Ya.Provider,Ja=function(e){return Wt((function(t,n){return e(t,Te(Ya),n)}))},Za=Y({}),es={}.hasOwnProperty,ts="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ns=function(e,t){var n={};for(var r in t)es.call(t,r)&&(n[r]=t[r]);return n[ts]=e,n},rs=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return La(t,n,r),Va((function(){return Aa(t,n,r)})),null},is=Ja((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[ts],o=[r],a="";"string"==typeof e.className?a=Oa(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Ba(o,void 0,Te(Za));a+=t.key+"-"+s.name;var l={};for(var c in e)es.call(e,c)&&"css"!==c&&c!==ts&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),C(P,null,C(rs,{cache:t,serialized:s,isStringTag:"string"==typeof i}),C(i,l))})),os=(Pa(),function(e,t){var n=arguments;if(null==t||!es.call(t,"css"))return C.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=is,i[1]=ns(e,t);for(var o=2;o<r;o++)i[o]=n[o];return C.apply(null,i)});za=os||(os={}),Qa||(Qa=za.JSX||(za.JSX={}));var as=Ja((function(e,t){var n=Ba([e.styles],void 0,Te(Za)),r=ke();return Ga((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),Ga((function(){var e=r.current,i=e[0];e[1]?e[1]=!1:(void 0!==n.next&&Aa(t,n.next,!0),i.tags.length&&(i.before=i.tags[i.tags.length-1].nextElementSibling,i.flush()),t.insert("",n,i,!1))}),[t,n.name]),null}));function ss(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ba(t)}var ls=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cs=ya((function(e){return ls.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),us=function(e){return"theme"!==e},ds=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?cs:us},fs=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ps=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return La(t,n,r),Va((function(){return Aa(t,n,r)})),null},hs=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=fs(t,n,o),l=s||ds(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=Ja((function(e,t,n){var r=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=Te(Za)}"string"==typeof e.className?o=Oa(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var h=Ba(d.concat(u),t.registered,f);o+=t.key+"-"+h.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?ds(r):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=o,n&&(g.ref=n),C(P,null,C(ps,{cache:t,serialized:h,isStringTag:"string"==typeof r}),C(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,ko({},n,r,{shouldForwardProp:fs(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){hs[e]=hs(e)}));var ms=hs.span({whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isActive:e})=>e?{cursor:"default","--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:{cursor:"pointer",borderColor:"transparent","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}})),gs=hs.span({marginLeft:"0.25rem",display:"inline-flex",width:"1.25rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontWeight:"700","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},(({isActive:e})=>e?{"--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))"}:{"--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))",".group:hover &":{"--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity))"}})),vs=P,ys=function(e,t,n){return es.call(t,"css")?Wn(is,ns(e,t),n):Wn(e,t,n)},ws=function(e,t,n){return es.call(t,"css")?Wn(is,ns(e,t),n):Wn(e,t,n)},bs=({tabs:e})=>ys("div",{css:{display:"block"},children:ys("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))",paddingBottom:"1rem"},children:ys("nav",{"aria-label":"Tabs",css:{marginBottom:"-2px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"},paddingTop:"1rem"},children:e.map((e=>ys(vo,{to:e.id,children:({isActive:t})=>ws(ms,{className:"group",isActive:t,children:[e.displayName,void 0!==e.count&&ys(gs,{isActive:t,children:e.count})]})},e.id)))})})}),_s=e=>{const{linkedProfilesForAccount:t,checkProfileSearchAuthorization:n,linkedAccount:r}=xr(),i=Xn({queryKey:[ar],queryFn:r}),o=Xn({queryKey:[sr],queryFn:t}),a=Xn({queryKey:[cr],queryFn:n});_e((()=>{a.error&&e.onError(a.error.message),o.error&&e.onError(o.error.message)}),[a.error,o.error,e]);const s=Ee((()=>[{id:"search",displayName:"Search"},{id:"profiles",displayName:"Linked Profiles",count:o.data?.length},{id:"invoices",displayName:"Invoices"}]),[o.data]);return a.isSuccess&&"Linked"!==a.data.status?ys(Hi,{to:"unlinked",replace:!0}):a.isSuccess?ws("div",{children:[ws("dl",{css:{marginLeft:"0.25rem",paddingTop:"1rem"},children:[ws("div",{css:{display:"flex",gap:"0.5rem"},children:[ys("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Account"}),ys("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:i.data?.id})]}),ws("div",{css:{display:"flex",gap:"0.5rem"},children:[ys("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Client"}),ys("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:i.data?.catchEClientId})]})]}),ys(bs,{tabs:s}),ys("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:ys(ji,{})})]}):ys("div",{children:"Loading..."})},xs=e=>ys(Ef,{children:ys("button",{as:"button",onClick:()=>e.onClick(e.id),css:{display:"inline-flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingLeft:"0.25rem",paddingRight:"0.25rem"},children:e.children})}),ks=e=>ys(Sf,{children:ys("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((t=>ys("li",{children:e.navTo?ys(vo,{css:{"--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))",textDecorationLine:"underline"},to:e.navTo,children:t}):t},t)))})}),Ss="undefined"!=typeof document?Hn.useLayoutEffect:()=>{};var Es=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Cs=e=>e&&"window"in e&&e.window===e?e:Es(e).defaultView||window;function Ts(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function Rs(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ps(e){let t=null;return()=>(null==t&&(t=e()),t)}var Os=Ps((function(){return Rs(/^Mac/i)})),Ls=Ps((function(){return Rs(/^iPhone/i)})),As=Ps((function(){return Rs(/^iPad/i)||Os()&&navigator.maxTouchPoints>1})),Is=Ps((function(){return Ls()||As()})),Fs=(Ps((function(){return Os()||Is()})),Ps((function(){return Ts(/AppleWebKit/i)&&!Fs()})),Ps((function(){return Ts(/Chrome/i)}))),Ds=Ps((function(){return Ts(/Android/i)}));Ps((function(){return Ts(/Firefox/i)}));var Ms=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}};function Ns(e){let t=ke({isFocused:!1,observer:null});Ss((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=ke(null);return Ss((()=>{t.current=e}),[e]),Ce(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Ce((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{t.current.isFocused=!1,r.disabled&&n(new Ms("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}var $s=null,Hs=new Set,js=new Map,Ws=!1,Us=!1,qs={Tab:!0,Escape:!0};function Bs(e,t){for(let n of Hs)n(e,t)}function zs(e){Ws=!0,function(e){return!(e.metaKey||!Os()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&($s="keyboard",Bs("keyboard",e))}function Qs(e){$s="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ws=!0,Bs("pointer",e))}function Ks(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Ds()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(Ws=!0,$s="virtual")}function Vs(e){e.target!==window&&e.target!==document&&(Ws||Us||($s="virtual",Bs("virtual",e)),Ws=!1,Us=!1)}function Gs(){Ws=!1,Us=!0}function Ys(e){if("undefined"==typeof window||js.get(Cs(e)))return;const t=Cs(e),n=Es(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ws=!0,r.apply(this,arguments)},n.addEventListener("keydown",zs,!0),n.addEventListener("keyup",zs,!0),n.addEventListener("click",Ks,!0),t.addEventListener("focus",Vs,!0),t.addEventListener("blur",Gs,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Qs,!0),n.addEventListener("pointermove",Qs,!0),n.addEventListener("pointerup",Qs,!0)):(n.addEventListener("mousedown",Qs,!0),n.addEventListener("mousemove",Qs,!0),n.addEventListener("mouseup",Qs,!0)),t.addEventListener("beforeunload",(()=>{Xs(e)}),{once:!0}),js.set(t,{focus:r})}var Xs=(e,t)=>{const n=Cs(e),r=Es(e);t&&r.removeEventListener("DOMContentLoaded",t),js.has(n)&&(n.HTMLElement.prototype.focus=js.get(n).focus,r.removeEventListener("keydown",zs,!0),r.removeEventListener("keyup",zs,!0),r.removeEventListener("click",Ks,!0),n.removeEventListener("focus",Vs,!0),n.removeEventListener("blur",Gs,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",Qs,!0),r.removeEventListener("pointermove",Qs,!0),r.removeEventListener("pointerup",Qs,!0)):(r.removeEventListener("mousedown",Qs,!0),r.removeEventListener("mousemove",Qs,!0),r.removeEventListener("mouseup",Qs,!0)),js.delete(n))};function Js(){return"pointer"!==$s}"undefined"!=typeof document&&function(e){const t=Es(e);let n;"loading"!==t.readyState?Ys(e):(n=()=>{Ys(e)},t.addEventListener("DOMContentLoaded",n))}();var Zs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function el(e,t,n){Ys(),_e((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?Cs(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?Cs(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?Cs(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?Cs(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!Zs.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof o||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof s&&!qs[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(Js())};return Hs.add(t),()=>{Hs.delete(t)}}),t)}var tl=!1,nl=0;function rl(){tl=!0,setTimeout((()=>{tl=!1}),50)}function il(e){"touch"===e.pointerType&&rl()}function ol(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",il):document.addEventListener("touchend",rl),nl++,()=>{--nl>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",il):document.removeEventListener("touchend",rl))}}function al(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=ke({isFocused:!1,isFocusVisible:t||Js()}),[o,a]=we(!1),[s,l]=we((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Ce((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Ce((e=>{i.current.isFocused=e,a(e),c()}),[c]);el((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Ce((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Ns(o),s=Ce((e=>{const t=Es(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),a(e))}),[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:t||!r&&!i?void 0:o}}}({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=ke({isFocusWithin:!1}),a=Ce((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=Ns(a),l=Ce((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,s(e))}),[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?f:d}}var sl=Object.defineProperty,ll=(e,t,n)=>(((e,t,n)=>{t in e?sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),cl=new class{constructor(){ll(this,"current",this.detect()),ll(this,"handoffState","pending"),ll(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function ul(e){return cl.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function dl(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function fl(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return dl((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=fl();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function pl(){let[e]=we(fl);return _e((()=>()=>e.dispose()),[e]),e}var hl=(e,t)=>{cl.isServer?_e(e,t):xe(e,t)};function ml(e){let t=ke(e);return hl((()=>{t.current=e}),[e]),t}var gl=function(e){let t=ml(e);return Hn.useCallback(((...e)=>t.current(...e)),[t])};var vl=Y(void 0);function yl(){return Te(vl)}function wl(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function bl(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,bl),r}var _l=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_l||{}),xl=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(xl||{});function kl(){let e=function(){let e=ke([]),t=Ce((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return Ce((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:El;let l=Cl(t,e);if(o)return Sl(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Sl(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return bl(e?0:1,{0:()=>null,1:()=>Sl({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Sl(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function Sl(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Ol(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(o===P&&(Object.keys(Pl(l)).length>0||Object.keys(Pl(d)).length>0)){if(kn(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>wl(t(...e),l.className):wl(t,l.className),r=n?{className:n}:{},o=Cl(u.props,Pl(Ol(l,["ref"])));for(let i in d)i in o&&delete d[i];return Cn(u,Object.assign({},o,d,c,{ref:i(Ll(u),c.ref)},r))}if(Object.keys(Pl(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Pl(l)).concat(Object.keys(Pl(d))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return C(o,Object.assign({},Ol(l,["ref"]),o!==P&&c,o!==P&&d),u)}function El(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function Cl(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(n[e]??(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function Tl(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(n[e]??(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)n?.(...e)}});return t}function Rl(e){var t;return Object.assign(Wt(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Pl(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Ol(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Ll(e){return Hn.version.split(".")[0]>="19"?e.props.ref:e.ref}var Al=Y(void 0);function Il(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var Fl=Symbol();function Dl(...e){let t=ke(e);_e((()=>{t.current=e}),[e]);let n=gl((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Fl])))?void 0:n}var Ml=Y(null);function Nl(){let e=Te(Ml);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Nl),e}return e}Ml.displayName="DescriptionContext";var $l=Rl((function(e,t){let n=Oe(),r=yl(),{id:i=`headlessui-description-${n}`,...o}=e,a=Nl(),s=Dl(t);hl((()=>a.register(i)),[i,a.register]);let l=r||!1,c=Ee((()=>({...a.slot,disabled:l})),[a.slot,l]),u={ref:s,...a.props,id:i};return kl()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})})),Hl=(Object.assign($l,{}),(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Hl||{})),jl=Y(null);function Wl(){let e=Te(jl);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Wl),e}return e}function Ul({inherit:e=!1}={}){let t=function(e){var t,n,r;let i=null!=(n=null==(t=Te(jl))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[i,...e].filter(Boolean).join(" "):i}(),[n,r]=we([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,Ee((()=>function(e){let t=gl((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=Ee((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return Hn.createElement(jl.Provider,{value:n},e.children)}),[r])]}jl.displayName="LabelContext";var ql=Rl((function(e,t){var n;let r=Oe(),i=Wl(),o=Te(Al),a=yl(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Dl(t);hl((()=>i.register(s)),[s,i.register]);let f=gl((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),p=a||!1,h=Ee((()=>({...i.slot,disabled:p})),[i.slot,p]),m={ref:d,...i.props,id:s,htmlFor:l,onClick:f};return c&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in u&&delete u.onClick),kl()({ourProps:m,theirProps:u,slot:h,defaultTag:l?"label":"div",name:i.name||"Label"})}));Object.assign(ql,{});function Bl(e,t=!1){let[n,r]=be((()=>({})),{}),i=Ee((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return hl((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}var zl=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};function Ql(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach((e=>e())))}}}function Kl(e){return Nn(e.subscribe,e.getSnapshot,e.getSnapshot)}var Vl=new zl((()=>Ql((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}})));function Gl(e,t){let n=Vl.get(t),r=Oe(),i=Kl(n);if(hl((()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)}),[n,e]),!e)return!1;let o=i.indexOf(r),a=i.length;return-1===o&&(o=a,a+=1),o===a-1}var Yl=new Map,Xl=new Map;function Jl(e){var t;let n=null!=(t=Xl.get(e))?t:0;return Xl.set(e,n+1),0!==n||(Yl.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>Zl(e)}function Zl(e){var t;let n=null!=(t=Xl.get(e))?t:1;if(1===n?Xl.delete(e):Xl.set(e,n-1),1!==n)return;let r=Yl.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Yl.delete(e))}var ec=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),tc=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),nc=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(nc||{}),rc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(rc||{}),ic=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ic||{});function oc(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ec)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var ac=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ac||{});function sc(e,t=0){var n;return e!==(null==(n=ul(e))?void 0:n.body)&&bl(t,{0:()=>e.matches(ec),1(){let t=e;for(;null!==t;){if(t.matches(ec))return!0;t=t.parentElement}return!1}})}function lc(e){let t=ul(e);fl().nextFrame((()=>{t&&!sc(t.activeElement,0)&&function(e){e?.focus({preventScroll:!0})}(e)}))}var cc=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(cc||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));var uc=["textarea","input"].join(",");function dc(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function fc(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?dc(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(tc)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):oc(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:o.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],s?.focus(u),d+=l}while(s!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,uc))&&n}(s)&&s.select(),2}(oc(),t,{relativeTo:e})}function pc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function hc(){return pc()||/Android/gi.test(window.navigator.userAgent)}function mc(e,t,n,r){let i=ml(n);_e((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function gc(e,t,n){let r=Gl(e,"outside-click"),i=ml(n),o=Ce((function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!sc(r,ac.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=ke(null);mc(r,"pointerdown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),mc(r,"mousedown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),mc(r,"click",(e=>{hc()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=ke({x:0,y:0});mc(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),mc(r,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=30||Math.abs(n-s.current.y)>=30))return o(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,n,r){let i=ml(n);_e((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}(r,"blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function vc(...e){return Ee((()=>ul(...e)),[...e])}function yc(e,t){return Ee((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function wc(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function bc(e){let t={};for(let n of e)Object.assign(t,n(t));return t}var _c,xc,kc=Ql((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:fl(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:bc(n)},i=[pc()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=fl();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),a=e.querySelector(i);a&&!r(a)&&(o=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;i!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},wc(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach((({before:e})=>null==e?void 0:e(r))),i.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Sc(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=Kl(kc),i=t?r.get(t):void 0,o=!!i&&i.count>0;hl((()=>{if(t&&e)return kc.dispatch("PUSH",t,n),()=>kc.dispatch("POP",t,n)}),[e,t])}(Gl(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function Ec(e){return[e.screenX,e.screenY]}function Cc(){let e=ke([-1,-1]);return{wasMoved(t){let n=Ec(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Ec(t)}}}kc.subscribe((()=>{let e=kc.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&kc.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&kc.dispatch("TEARDOWN",n)}})),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(_c=null==process?void 0:{})?void 0:_c.NODE_ENV)&&void 0===(null==(xc=null==Element?void 0:Element.prototype)?void 0:xc.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Tc=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Tc||{});function Rc(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Pc(e,t,n,r){let[i,o]=we(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=we(e);return{flags:t,setFlag:Ce((e=>n(e)),[t]),addFlag:Ce((e=>n((t=>t|e))),[t]),hasFlag:Ce((e=>(t&e)===e),[t]),removeFlag:Ce((e=>n((t=>t&~e))),[n]),toggleFlag:Ce((e=>n((t=>t^e))),[n])}}(e&&i?3:0),c=ke(!1),u=ke(!1);return hl((()=>{var i;if(e)return n&&o(!0),t?(null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=fl();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame((()=>{n(),o.requestAnimationFrame((()=>{o.add(function(e,t){var n,r;let i=fl();if(!e)return i.dispose;let o=!1;i.add((()=>{o=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{o||t()})),i.dispose)}(e,r))}))})),o.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){u.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var e;u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&s(3))}),[e,n,t,pl()]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Oc(){return"undefined"!=typeof window}function Lc(e){return Fc(e)?(e.nodeName||"").toLowerCase():"#document"}function Ac(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ic(e){var t;return null==(t=(Fc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Fc(e){return!!Oc()&&(e instanceof Node||e instanceof Ac(e).Node)}function Dc(e){return!!Oc()&&(e instanceof Element||e instanceof Ac(e).Element)}function Mc(e){return!!Oc()&&(e instanceof HTMLElement||e instanceof Ac(e).HTMLElement)}function Nc(e){return!(!Oc()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ac(e).ShadowRoot)}function $c(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Bc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Hc(e){return["table","td","th"].includes(Lc(e))}function jc(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Sd){return!1}}))}function Wc(e){const t=Uc(),n=Dc(e)?Bc(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Uc(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qc(e){return["html","body","#document"].includes(Lc(e))}function Bc(e){return Ac(e).getComputedStyle(e)}function zc(e){return Dc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qc(e){if("html"===Lc(e))return e;const t=e.assignedSlot||e.parentNode||Nc(e)&&e.host||Ic(e);return Nc(t)?t.host:t}function Kc(e){const t=Qc(e);return qc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mc(t)&&$c(t)?t:Kc(t)}function Vc(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Kc(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Ac(i);if(o){const e=Gc(a);return t.concat(a,a.visualViewport||[],$c(i)?i:[],e&&n?Vc(e):[])}return t.concat(i,Vc(i,[],n))}function Gc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Yc=Math.min,Xc=Math.max,Jc=Math.round,Zc=Math.floor,eu=e=>({x:e,y:e}),tu={left:"right",right:"left",bottom:"top",top:"bottom"},nu={start:"end",end:"start"};function ru(e,t,n){return Xc(e,Yc(t,n))}function iu(e,t){return"function"==typeof e?e(t):e}function ou(e){return e.split("-")[0]}function au(e){return e.split("-")[1]}function su(e){return"x"===e?"y":"x"}function lu(e){return"y"===e?"height":"width"}function cu(e){return["top","bottom"].includes(ou(e))?"y":"x"}function uu(e){return su(cu(e))}function du(e){return e.replace(/start|end/g,(e=>nu[e]))}function fu(e){return e.replace(/left|right|bottom|top/g,(e=>tu[e]))}function pu(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function hu(e,t,n){let{reference:r,floating:i}=e;const o=cu(t),a=uu(t),s=lu(a),l=ou(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(au(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function mu(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=iu(t,e),h=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=s[f?"floating"===d?"reference":"floating":d],g=pu(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},b=pu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+h.top)/w.y,bottom:(b.bottom-g.bottom+h.bottom)/w.y,left:(g.left-b.left+h.left)/w.x,right:(b.right-g.right+h.right)/w.x}}function gu(e){const t=Bc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Mc(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Jc(n)!==o||Jc(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function vu(e){return Dc(e)?e:e.contextElement}function yu(e){const t=vu(e);if(!Mc(t))return eu(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=gu(t);let a=(o?Jc(n.width):n.width)/r,s=(o?Jc(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var wu=eu(0);function bu(e){const t=Ac(e);return Uc()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wu}function _u(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=vu(e);let a=eu(1);t&&(r?Dc(r)&&(a=yu(r)):a=yu(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ac(e))&&t}(o,n,r)?bu(o):eu(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=Ac(o),t=r&&Dc(r)?Ac(r):r;let n=e,i=Gc(n);for(;i&&r&&t!==n;){const e=yu(i),t=i.getBoundingClientRect(),r=Bc(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=Ac(i),i=Gc(n)}}return pu({width:u,height:d,x:l,y:c})}function xu(e,t){const n=zc(e).scrollLeft;return t?t.left+n:_u(Ic(e)).left+n}function ku(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:xu(e,r)),y:r.top+t.scrollTop}}function Su(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ac(e),r=Ic(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Uc();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ic(e),n=zc(e),r=e.ownerDocument.body,i=Xc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Xc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+xu(e);const s=-n.scrollTop;return"rtl"===Bc(r).direction&&(a+=Xc(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(Ic(e));else if(Dc(t))r=function(e,t){const n=_u(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Mc(e)?yu(e):eu(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=bu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return pu(r)}function Eu(e,t){const n=Qc(e);return!(n===t||!Dc(n)||qc(n))&&("fixed"===Bc(n).position||Eu(n,t))}function Cu(e,t){const n=t.get(e);if(n)return n;let r=Vc(e,[],!1).filter((e=>Dc(e)&&"body"!==Lc(e))),i=null;const o="fixed"===Bc(e).position;let a=o?Qc(e):e;for(;Dc(a)&&!qc(a);){const t=Bc(a),n=Wc(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||$c(a)&&!n&&Eu(e,a))?r=r.filter((e=>e!==a)):i=t,a=Qc(a)}return t.set(e,r),r}function Tu(e,t,n){const r=Mc(t),i=Ic(t),o="fixed"===n,a=_u(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=eu(0);if(r||!r&&!o)if(("body"!==Lc(t)||$c(i))&&(s=zc(t)),r){const e=_u(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=xu(i));const c=!i||r||o?eu(0):ku(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Ru(e){return"static"===Bc(e).position}function Pu(e,t){if(!Mc(e)||"fixed"===Bc(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ic(e)===n&&(n=n.ownerDocument.body),n}function Ou(e,t){const n=Ac(e);if(jc(e))return n;if(!Mc(e)){let t=Qc(e);for(;t&&!qc(t);){if(Dc(t)&&!Ru(t))return t;t=Qc(t)}return n}let r=Pu(e,t);for(;r&&Hc(r)&&Ru(r);)r=Pu(r,t);return r&&qc(r)&&Ru(r)&&!Wc(r)?n:r||function(e){let t=Qc(e);for(;Mc(t)&&!qc(t);){if(Wc(t))return t;if(jc(t))return null;t=Qc(t)}return null}(e)||n}var Lu={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=Ic(r),s=!!t&&jc(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=eu(1);const u=eu(0),d=Mc(r);if((d||!d&&!o)&&(("body"!==Lc(r)||$c(a))&&(l=zc(r)),Mc(r))){const e=_u(r);c=yu(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||o?eu(0):ku(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Ic,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?jc(t)?[]:Cu(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=Su(t,n,i);return e.top=Xc(r.top,e.top),e.right=Yc(r.right,e.right),e.bottom=Yc(r.bottom,e.bottom),e.left=Xc(r.left,e.left),e}),Su(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ou,getElementRects:async function(e){const t=this.getOffsetParent||Ou,n=this.getDimensions,r=await n(e.floating);return{reference:Tu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=gu(e);return{width:t,height:n}},getScale:yu,isElement:Dc,isRTL:function(e){return"rtl"===Bc(e).direction}};function Au(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=vu(e),u=i||o?[...c?Vc(c):[],...Vc(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=Ic(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Zc(u)+"px "+-Zc(i.clientWidth-(c+d))+"px "+-Zc(i.clientHeight-(u+f))+"px "+-Zc(c)+"px",threshold:Xc(0,Yc(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(Sd){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?_u(e):null;return l&&function t(){const r=_u(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),d?.(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var Iu=mu,Fu=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=ou(n),s=au(n),l="y"===cu(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=iu(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Du=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=iu(e,t),c={x:n,y:r},u=await mu(t,l),d=cu(ou(i)),f=su(d);let p=c[f],h=c[d];if(o){const e="y"===f?"bottom":"right";p=ru(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=ru(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:o,[d]:a}}}}}},Mu=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=iu(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=ou(i),y=cu(s),w=ou(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),_=f||(w||!m?[fu(s)]:function(e){const t=fu(e);return[du(e),t,du(t)]}(s)),x="none"!==h;!f&&x&&_.push(...function(e,t,n,r){const i=au(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(ou(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(du)))),o}(s,m,h,b));const k=[s,..._],S=await mu(t,g),E=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=au(e),i=uu(e),o=lu(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=fu(a)),[a,fu(a)]}(i,a,b);E.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every((e=>e<=0))){var T,R;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(R=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter((e=>{if(x){const t=cu(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},Nu=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=iu(e,t),u=await mu(t,c),d=ou(i),f=au(i),p="y"===cu(i),{width:h,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-u.top-u.bottom,w=h-u.left-u.right,b=Yc(m-u[g],y),_=Yc(h-u[v],w),x=!t.middlewareData.shift;let k=b,S=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),x&&!f){const e=Xc(u.left,0),t=Xc(u.right,0),n=Xc(u.top,0),r=Xc(u.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:Xc(u.left,u.right)):k=m-2*(0!==n||0!==r?n+r:Xc(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await a.getDimensions(s.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}},$u=(e,t,n)=>{const r=new Map,i={platform:Lu,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=hu(c,r,l),f=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:v,data:y,reset:w}=await o({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:u,y:d}=hu(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}})(e,t,{...i,platform:o})},Hu="undefined"!=typeof document?xe:_e;function ju(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!ju(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ju(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Wu(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Uu(e,t){const n=Wu(e);return Math.round(t*n)/n}function qu(e){const t=ke(e);return Hu((()=>{t.current=e})),t}var Bu=(e,t)=>({...Fu(e),options:[e,t]}),zu=(e,t)=>({...Mu(e),options:[e,t]}),Qu=(e,t)=>({...Nu(e),options:[e,t]}),Ku={...Dt},Vu=Ku.useInsertionEffect||(e=>e());function Gu(e){const t=ke((()=>{}));return Vu((()=>{t.current=e})),Ce((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var Yu="undefined"!=typeof document?xe:_e,Xu=!1,Ju=0,Zu=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ju++;var ed=Ku.useId||function(){const[e,t]=we((()=>Xu?Zu():void 0));return Yu((()=>{null==e&&t(Zu())}),[]),_e((()=>{Xu=!0}),[]),e};var td=Y(null),nd=Y(null),rd="data-floating-ui-focusable";function id(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=ed(),o=ke({}),[a]=we((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=((null==(l=Te(td))?void 0:l.id)||null);var l;const[c,u]=we(r.reference),d=Gu(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)})),f=Ee((()=>({setPositionReference:u})),[]),p=Ee((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return Ee((()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f})),[t,d,p,a,i,f])}function od(e){void 0===e&&(e={});const{nodeId:t}=e,n=id({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=we(null),[s,l]=we(null),c=(null==i?void 0:i.domReference)||o,u=ke(null),d=Te(nd);Yu((()=>{c&&(u.current=c)}),[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=we({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=we(r);ju(f,r)||p(r);const[h,m]=we(null),[g,v]=we(null),y=Ce((e=>{e!==x.current&&(x.current=e,m(e))}),[]),w=Ce((e=>{e!==k.current&&(k.current=e,v(e))}),[]),b=o||h,_=a||g,x=ke(null),k=ke(null),S=ke(u),E=null!=l,C=qu(l),T=qu(i),R=qu(c),P=Ce((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),$u(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};O.current&&!ju(S.current,t)&&(S.current=t,On((()=>{d(t)})))}))}),[f,t,n,T,R]);Hu((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const O=ke(!1);Hu((()=>(O.current=!0,()=>{O.current=!1})),[]),Hu((()=>{if(b&&(x.current=b),_&&(k.current=_),b&&_){if(C.current)return C.current(b,_,P);P()}}),[b,_,P,C,E]);const L=Ee((()=>({reference:x,floating:k,setReference:y,setFloating:w})),[y,w]),A=Ee((()=>({reference:b,floating:_})),[b,_]),I=Ee((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Uu(A.floating,u.x),r=Uu(A.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Wu(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,A.floating,u.x,u.y]);return Ee((()=>({...u,update:P,refs:L,elements:A,floatingStyles:I})),[u,P,L,A,I])}({...e,elements:{...i,...s&&{reference:s}}}),p=Ce((e=>{const t=Dc(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)}),[f.refs]),h=Ce((e=>{(Dc(e)||null===e)&&(u.current=e,a(e)),(Dc(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Dc(e))&&f.refs.setReference(e)}),[f.refs]),m=Ee((()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u})),[f.refs,h,p]),g=Ee((()=>({...f.elements,domReference:c})),[f.elements,c]),v=Ee((()=>({...f,...r,refs:m,elements:g,nodeId:t})),[f,m,g,t,r]);return Yu((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),Ee((()=>({...f,context:v,refs:m,elements:g})),[f,m,g,v])}var ad="active",sd="selected";function ld(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[ad]:t,[sd]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[rd]:""},...o,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;i&&[ad,sd].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function cd(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function ud(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=Gu(s),c=ke(!1),u=ke(null),d=ke(null);_e((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),On((()=>{l((e=>e+Math[c](n,a*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=o.current&&(d.current={...o.current})})),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,r.floating,o,a,l]);const f=Ee((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(o.current&&e&&c.current){if(null!==u.current){const t=e.scrollTop-u.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&On((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return Ee((()=>i?{floating:f}:{}),[i,f])}var dd=Y({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});dd.displayName="FloatingContext";var fd=Y(null);fd.displayName="PlacementContext";function pd({children:e,enabled:t=!0}){let[n,r]=we(null),[i,o]=we(0),a=ke(null),[s,l]=we(null);!function(e){hl((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let c=t&&null!==n&&null!==s,{to:u="bottom",gap:d=0,offset:f=0,padding:p=0,inner:h}=function(e,t){var n,r,i;let o=hd(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=hd(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=hd(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[m,g="center"]=u.split(" ");hl((()=>{c&&o(0)}),[c]);let{refs:v,floatingStyles:y,context:w}=od({open:c,placement:"selection"===m?"center"===g?"bottom":`bottom-${g}`:"center"===g?`${m}`:`${m}-${g}`,strategy:"absolute",transform:!1,middleware:[Bu({mainAxis:"selection"===m?0:d,crossAxis:f}),(k={padding:p},{...Du(k),options:[k,S]}),"selection"!==m&&zu({padding:p}),"selection"===m&&h?(x={...h,padding:p,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:p,onFallbackChange(e){var t,n;if(!e)return;let r=w.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),s=0,l=0;for(let o of null!=(n=null==(t=w.elements.floating)?void 0:t.childNodes)?n:[])if(o instanceof HTMLElement){let e=o.offsetTop,t=e+o.clientHeight+i,n=r.scrollTop,c=n+r.clientHeight;if(!(e>=n&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,n)),s=o.clientHeight;break}a--}a>=1&&o((e=>{let t=s*a-l+i;return e>=t?e:t}))}},{name:"inner",options:x,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=iu(x,e),{rects:u,elements:{floating:d}}=e,f=t.current[o],p=(null==l?void 0:l.current)||d,h=d.clientTop||p.clientTop,m=0!==d.clientTop,g=0!==p.clientTop,v=d===p;if(!f)return{};const y={...e,...await Bu(-f.offsetTop-d.clientTop-u.reference.height/2-f.offsetHeight/2-i).fn(e)},w=await Iu(cd(y,p.scrollHeight+h+d.clientTop),c),b=await Iu(y,{...c,elementContext:"reference"}),_=Xc(0,w.top),k=y.y+_,S=p.scrollHeight>p.clientHeight,E=(S?e=>e:Jc)(Xc(0,p.scrollHeight+(m&&v||g?2*h:0)-_-Xc(0,w.bottom)));if(p.style.maxHeight=E+"px",p.scrollTop=_,r){const e=S&&p.offsetHeight<f.offsetHeight*a-1||b.top>=-s||b.bottom>=-s;On((()=>r(e)))}return n&&(n.current=await Iu(cd({...y,y:k},p.offsetHeight+h+d.clientTop),c)),{y:k}}}):null,Qu({padding:p,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Au}),[b=m,_=g]=w.placement.split("-");var x,k,S;"selection"===m&&(b="selection");let E=Ee((()=>({anchor:[b,_].filter(Boolean).join(" ")})),[b,_]),{getReferenceProps:T,getFloatingProps:R}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=Ce((t=>ld(t,e,"reference")),t),o=Ce((t=>ld(t,e,"floating")),n),a=Ce((t=>ld(t,e,"item")),r);return Ee((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([ud(w,{overflowRef:a,onChange:o})]),P=gl((e=>{l(e),v.setFloating(e)}));return C(fd.Provider,{value:r},C(dd.Provider,{value:{setFloating:P,setReference:v.setReference,styles:y,getReferenceProps:T,getFloatingProps:R,slot:E}},e))}function hd(e,t,n=void 0){let r=pl(),i=gl(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=gd(e,t);return[i,n=>{let o=md(e);{let a=o.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.nextFrame(s);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=gd(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=Ee((()=>i(e,t)[0]),[e,t]),[a=o,s]=we();return hl((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function md(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...md(r)]:[n]}return[]}function gd(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}var vd=Y(null);vd.displayName="OpenClosedContext";var yd=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(yd||{});function wd(){return Te(vd)}function bd({value:e,children:t}){return Hn.createElement(vd.Provider,{value:e},t)}var _d=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(_d||{});function xd(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function kd(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Dt&&(e=>e.useSyncExternalStore)(Dt)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=we(cl.isHandoffComplete);return t&&!1===cl.isHandoffComplete&&n(!1),_e((()=>{!0!==t&&n(!0)}),[t]),_e((()=>cl.handoff()),[]),!e&&t}var Sd=Y(!1);function Ed(){return Te(Sd)}var Cd=P,Td=Rl((function(e,t){let n=e,r=ke(null),i=Dl(function(e,t=!0){return Object.assign(e,{[Fl]:t})}((e=>{r.current=e})),t),o=vc(r),a=function(e){let t=Ed(),n=Te(Pd),r=vc(e),[i,o]=we((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(cl.isServer)return null;let i=null==r?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return _e((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),_e((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}(r),[s]=we((()=>{var e;return cl.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=Te(Od),c=kd();hl((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),hl((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=gl(e),n=ke(!1);_e((()=>(n.current=!1,()=>{n.current=!0,dl((()=>{n.current&&t()}))})),[t])}((()=>{var e;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}));let u=kl();return c&&a&&s?tn(u({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Cd,name:"Portal"}),s):null}));var Rd=P,Pd=Y(null);var Od=Y(null),Ld=Rl((function(e,t){let n=Dl(t),{enabled:r=!0,...i}=e,o=kl();return r?Hn.createElement(Td,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Cd,name:"Portal"})})),Ad=Rl((function(e,t){let{target:n,...r}=e,i={ref:Dl(t)},o=kl();return Hn.createElement(Pd.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Rd,name:"Popover.Group"}))})),Id=Object.assign(Ld,{Group:Ad});function Fd(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:jd)!==P||1===Hn.Children.count(e.children)}var Dd=Y(null);Dd.displayName="TransitionContext";var Md=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Md||{});var Nd=Y(null);function $d(e){return"children"in e?$d(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Hd(e,t){let n=ml(e),r=ke([]),i=function(){let e=ke(!1);return hl((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),o=pl(),a=gl(((e,t=xl.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(bl(t,{[xl.Unmount](){r.current.splice(a,1)},[xl.Hidden](){r.current[a].state="hidden"}}),o.microTask((()=>{var e;!$d(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=gl((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,xl.Unmount)})),l=ke([]),c=ke(Promise.resolve()),u=ke({enter:[],leave:[]}),d=gl(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),t?.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),t?.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),f=gl(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return Ee((()=>({children:r,register:s,unregister:a,onStart:d,onStop:f,wait:c,chains:u})),[s,a,r,d,f,u,c])}Nd.displayName="NestingContext";var jd=P,Wd=_l.RenderStrategy;var Ud=Rl((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=ke(null),s=Dl(...Fd(e)?[a,t]:null===t?[]:[t]);kd();let l=wd();if(void 0===n&&null!==l&&(n=(l&yd.Open)===yd.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=we(n?"visible":"hidden"),d=Hd((()=>{n||u("hidden")})),[f,p]=we(!0),h=ke([n]);hl((()=>{!1!==f&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))}),[h,n]);let m=Ee((()=>({show:n,appear:r,initial:f})),[n,r,f]);hl((()=>{n?u("visible"):!$d(d)&&null!==a.current&&u("hidden")}),[n,d]);let g={unmount:i},v=gl((()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)})),y=gl((()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)})),w=kl();return Hn.createElement(Nd.Provider,{value:d},Hn.createElement(Dd.Provider,{value:m},w({ourProps:{...g,as:P,children:Hn.createElement(qd,{ref:s,...g,...o,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:P,features:Wd,visible:"visible"===c,name:"Transition"})))})),qd=Rl((function(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:f,leave:p,leaveFrom:h,leaveTo:m,...g}=e,[v,y]=we(null),w=ke(null),b=Fd(e),_=Dl(...b?[w,t,y]:null===t?[]:[t]),x=null==(n=g.unmount)||n?xl.Unmount:xl.Hidden,{show:k,appear:S,initial:E}=function(){let e=Te(Dd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[C,T]=we(k?"visible":"hidden"),R=function(){let e=Te(Nd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:P,unregister:O}=R;hl((()=>P(w)),[P,w]),hl((()=>{if(x===xl.Hidden&&w.current)return k&&"visible"!==C?void T("visible"):bl(C,{hidden:()=>O(w),visible:()=>P(w)})}),[C,w,P,O,k,x]);let L=kd();hl((()=>{if(b&&L&&"visible"===C&&null===w.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[w,C,L,b]);let A=E&&!S,I=S&&k&&E,F=ke(!1),D=Hd((()=>{F.current||(T("hidden"),O(w))}),R),M=gl((e=>{F.current=!0;let t=e?"enter":"leave";D.onStart(w,t,(e=>{"enter"===e?o?.():"leave"===e&&s?.()}))})),N=gl((e=>{let t=e?"enter":"leave";F.current=!1,D.onStop(w,t,(e=>{"enter"===e?a?.():"leave"===e&&l?.()})),"leave"===t&&!$d(D)&&(T("hidden"),O(w))}));_e((()=>{b&&i||(M(k),N(k))}),[k,b,i]);let[,$]=Pc(!(!i||!b||!L||A),v,k,{start:M,end:N}),H=Pl({ref:_,className:(null==(r=wl(g.className,I&&c,I&&u,$.enter&&c,$.enter&&$.closed&&u,$.enter&&!$.closed&&d,$.leave&&p,$.leave&&!$.closed&&h,$.leave&&$.closed&&m,!$.transition&&k&&f))?void 0:r.trim())||void 0,...Rc($)}),j=0;"visible"===C&&(j|=yd.Open),"hidden"===C&&(j|=yd.Closed),$.enter&&(j|=yd.Opening),$.leave&&(j|=yd.Closing);let W=kl();return Hn.createElement(Nd.Provider,{value:D},Hn.createElement(bd,{value:j},W({ourProps:H,theirProps:g,defaultTag:jd,features:Wd,visible:"visible"===C,name:"Transition.Child"})))})),Bd=Rl((function(e,t){let n=null!==Te(Dd),r=null!==wd();return Hn.createElement(Hn.Fragment,null,!n&&r?Hn.createElement(Ud,{ref:t,...e}):Hn.createElement(qd,{ref:t,...e}))})),zd=Object.assign(Ud,{Child:Bd,Root:Ud});var Qd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Kd(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?null!=(n=i.innerText)?n:"":r;return Qd.test(a)&&(a=a.replace(Qd,"")),a}function Vd(e){let t=ke(""),n=ke("");return gl((()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Kd(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Kd(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var Gd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Gd||{}),Yd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Yd||{}),Xd=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(Xd||{});function Jd(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=dc(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}var Zd={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===_d.Nothing)return{...s,activeItemIndex:null};if(t.focus===_d.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===_d.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=xd(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||null===(null==(i=t.current)?void 0:i.previousElementSibling))return{...s,activeItemIndex:a}}}}else if(t.focus===_d.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=xd(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeItemIndex:i}}}}let l=Jd(e),c=xd(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=Jd(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=Jd(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},ef=Y(null);function tf(e){let t=Te(ef);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tf),t}return t}function nf(e,t){return bl(t.type,Zd,e,t)}ef.displayName="MenuContext";var rf=P;var of=_l.RenderStrategy|_l.Static;var af=P;var sf=Rl((function(e,t){let{__demoMode:n=!1,...r}=e,i=be(nf,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:a,buttonElement:s},l]=i,c=Dl(t);gc(0===o,[s,a],((e,t)=>{l({type:1}),sc(t,ac.Loose)||(e.preventDefault(),s?.focus())}));let u=gl((()=>{l({type:1})})),d=Ee((()=>({open:0===o,close:u})),[o,u]),f={ref:c},p=kl();return Hn.createElement(pd,null,Hn.createElement(ef.Provider,{value:i},Hn.createElement(bd,{value:bl(o,{0:yd.Open,1:yd.Closed})},p({ourProps:f,theirProps:r,slot:d,defaultTag:rf,name:"Menu"}))))})),lf=Rl((function(e,t){var n;let r=Oe(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,c]=tf("Menu.Button"),u=Te(dd).getReferenceProps,d=Dl(t,Te(dd).setReference,gl((e=>c({type:7,element:e})))),f=gl((e=>{switch(e.key){case Hl.Space:case Hl.Enter:case Hl.ArrowDown:e.preventDefault(),e.stopPropagation(),On((()=>c({type:0}))),c({type:2,focus:_d.First});break;case Hl.ArrowUp:e.preventDefault(),e.stopPropagation(),On((()=>c({type:0}))),c({type:2,focus:_d.Last})}})),p=gl((e=>{if(e.key===Hl.Space)e.preventDefault()})),h=gl((e=>{var t;if(Il(e.currentTarget))return e.preventDefault();o||(0===l.menuState?(On((()=>c({type:1}))),null==(t=l.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))})),{isFocusVisible:m,focusProps:g}=al({autoFocus:a}),{isHovered:v,hoverProps:y}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=we(!1),s=ke({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;_e(ol,[]);let{hoverProps:l,triggerHoverEnd:c}=Ee((()=>{let e=(e,r)=>{if(s.pointerType=r,i||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),a(!0)},o=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{tl&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||tl||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:l,triggerHoverEnd:o}}),[t,n,r,i,s]);return _e((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}({isDisabled:o}),{pressed:w,pressProps:b}=function({disabled:e=!1}={}){let t=ke(null),[n,r]=we(!1),i=pl(),o=gl((()=>{t.current=null,r(!1),i.dispose()})),a=gl((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=ul(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",(e=>{t.current&&r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e),t.current.getBoundingClientRect()))}),!1),i.addEventListener(n,"pointercancel",o,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),_=Ee((()=>({open:0===l.menuState,active:w||0===l.menuState,disabled:o,hover:v,focus:m,autofocus:a})),[l,v,m,w,o,a]),x=Tl(u(),{ref:d,id:i,type:yc(e,l.buttonElement),"aria-haspopup":"menu","aria-controls":null==(n=l.itemsElement)?void 0:n.id,"aria-expanded":0===l.menuState,disabled:o||void 0,autoFocus:a,onKeyDown:f,onKeyUp:p,onClick:h},g,y,b);return kl()({ourProps:x,theirProps:s,slot:_,defaultTag:"button",name:"Menu.Button"})})),cf=Rl((function(e,t){var n,r;let i=Oe(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return Ee((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[f,p]=tf("Menu.Items"),[h,m]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Te(fd),n=Ee((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);hl((()=>{t?.(null!=n?n:null)}),[t,n]);let r=Te(dd);return Ee((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),g=function(){let{getFloatingProps:e,slot:t}=Te(dd);return Ce(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),[v,y]=we(null),w=Dl(t,d?h:null,gl((e=>p({type:8,element:e}))),y),b=vc(f.itemsElement);d&&(s=!0);let _=wd(),[x,k]=Pc(c,v,null!==_?(_&yd.Open)===yd.Open:0===f.menuState);!function(e,t,n){let r=ml((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));_e((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=fl();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}return()=>i.dispose()}),[t,r,e])}(x,f.buttonElement,(()=>{p({type:1})})),Sc(!f.__demoMode&&(l&&0===f.menuState),b),function(e,{allowed:t,disallowed:n}={}){let r=Gl(e,"inert-others");hl((()=>{var e,i;if(!r)return;let o=fl();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(Jl(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=ul(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let e of n.children)a.some((t=>e.contains(t)))||o.add(Jl(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!f.__demoMode&&(l&&0===f.menuState),{allowed:Ce((()=>[f.buttonElement,f.itemsElement]),[f.buttonElement,f.itemsElement])});let S=!function(e,t){let n=ke({left:0,top:0});if(hl((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(0!==f.menuState,f.buttonElement)&&x;_e((()=>{let e=f.itemsElement;e&&0===f.menuState&&e!==(null==b?void 0:b.activeElement)&&e.focus({preventScroll:!0})}),[f.menuState,f.itemsElement,b]),function(e,{container:t,accept:n,walk:r}){let i=ke(n),o=ke(r);_e((()=>{i.current=n,o.current=r}),[n,r]),hl((()=>{if(!t||!e)return;let n=ul(t);if(!n)return;let r=i.current,a=o.current,s=Object.assign((e=>r(e)),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)}),[t,e,i,o])}(0===f.menuState,{container:f.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let E=pl(),C=gl((e=>{var t,n,r;switch(E.dispose(),e.key){case Hl.Space:if(""!==f.searchQuery)return e.preventDefault(),e.stopPropagation(),p({type:3,value:e.key});case Hl.Enter:if(e.preventDefault(),e.stopPropagation(),p({type:1}),null!==f.activeItemIndex){let{dataRef:e}=f.items[f.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}lc(f.buttonElement);break;case Hl.ArrowDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:_d.Next});case Hl.ArrowUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:_d.Previous});case Hl.Home:case Hl.PageUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:_d.First});case Hl.End:case Hl.PageDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:_d.Last});case Hl.Escape:e.preventDefault(),e.stopPropagation(),On((()=>p({type:1}))),null==(r=f.buttonElement)||r.focus({preventScroll:!0});break;case Hl.Tab:e.preventDefault(),e.stopPropagation(),On((()=>p({type:1}))),fc(f.buttonElement,e.shiftKey?nc.Previous:nc.Next);break;default:1===e.key.length&&(p({type:3,value:e.key}),E.setTimeout((()=>p({type:4})),350))}})),T=gl((e=>{if(e.key===Hl.Space)e.preventDefault()})),R=Ee((()=>({open:0===f.menuState})),[f.menuState]),P=Tl(d?g():{},{"aria-activedescendant":null===f.activeItemIndex||null==(n=f.items[f.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=f.buttonElement)?void 0:r.id,id:o,onKeyDown:C,onKeyUp:T,role:"menu",tabIndex:0===f.menuState?0:void 0,ref:w,style:{...u.style,...m,"--button-width":Bl(f.buttonElement,!0).width},...Rc(k)}),O=kl();return Hn.createElement(Id,{enabled:!!s&&(e.static||x)},O({ourProps:P,theirProps:u,slot:R,defaultTag:"div",features:of,visible:S,name:"Menu.Items"}))})),uf=Rl((function(e,t){let n=Oe(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,s]=tf("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=ke(null),u=Dl(t,c);hl((()=>{if(!a.__demoMode&&0===a.menuState&&l&&0!==a.activationTrigger)return fl().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=Vd(c),f=ke({disabled:i,domRef:c,get textValue(){return d()}});hl((()=>{f.current.disabled=i}),[f,i]),hl((()=>(s({type:5,id:r,dataRef:f}),()=>s({type:6,id:r}))),[f,r]);let p=gl((()=>{s({type:1})})),h=gl((e=>{if(i)return e.preventDefault();s({type:1}),lc(a.buttonElement)})),m=gl((()=>{if(i)return s({type:2,focus:_d.Nothing});s({type:2,focus:_d.Specific,id:r})})),g=Cc(),v=gl((e=>{g.update(e),!i&&(l||s({type:2,focus:_d.Specific,id:r,trigger:0}))})),y=gl((e=>{g.wasMoved(e)&&(i||l||s({type:2,focus:_d.Specific,id:r,trigger:0}))})),w=gl((e=>{g.wasMoved(e)&&(i||l&&s({type:2,focus:_d.Nothing}))})),[b,_]=Ul(),[x,k]=function(){let[e,t]=we([]);return[e.length>0?e.join(" "):void 0,Ee((()=>function(e){let n=gl((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=Ee((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return Hn.createElement(Ml.Provider,{value:r},e.children)}),[t])]}(),S=Ee((()=>({active:l,focus:l,disabled:i,close:p})),[l,i,p]),E={id:r,ref:u,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":b,"aria-describedby":x,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:w,onMouseLeave:w},C=kl();return Hn.createElement(_,null,Hn.createElement(k,null,C({ourProps:E,theirProps:o,slot:S,defaultTag:af,name:"Menu.Item"})))})),df=Rl((function(e,t){let[n,r]=Ul(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=kl();return Hn.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),ff=Rl((function(e,t){let n=Oe(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=Wl();hl((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return kl()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),pf=Rl((function(e,t){let n=e,r={ref:t,role:"separator"};return kl()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),hf=Object.assign(sf,{Button:lf,Items:cf,Item:uf,Section:df,Heading:ff,Separator:pf});function mf({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}var gf=Wt(mf);function vf({title:e,titleId:t,...n},r){return C("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C("title",{id:t},e):null,C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}var yf=Wt(vf),wf=e=>ys(Sf,{children:ws(hf,{as:"div",children:[ys("div",{children:ws(lf,{css:{display:"flex",alignItems:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#f3f4f6"}},children:[ys("span",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Open options"}),ys(gf,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),ys(cf,{transition:!0,className:"right-45 w-30",css:{position:"fixed",zIndex:"10",marginTop:"0.5rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-color":"rgb(0 0 0 / 0.05)",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&[data-closed]":{"--tw-scale-x":".95","--tw-scale-y":".95",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"},"&[data-leave]":{transitionDuration:"75ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}},children:e.items.map(((t,n)=>ys(uf,{children:ys("button",{type:"button",css:{display:"block",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))","&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},onClick:()=>{t.onClick(e.id)},children:t.label},n)},n)))})]})}),bf=e=>e&&new Date(e).toLocaleDateString("en-AU")||void 0,_f=e=>void 0!==e&&`$ ${Number(e).toLocaleString("en-US")}`||void 0,xf=e=>ws(Sf,{children:[bf(e.value),ys("br",{}),bf(e.value)]}),kf=e=>{const[t,n]=we(!1);return ws(Sf,{css:{position:"relative"},children:[ys(zd,{show:t,children:ys("div",{css:{position:"absolute",bottom:"3rem",display:"flex",height:"2rem",width:"4.313rem",flexDirection:"row",alignItems:"flex-start",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(17 24 39 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",opacity:"0.9","--tw-shadow":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","&[data-closed]":{opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"},"&[data-leave]":{transitionDuration:"500ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"}},children:ys("p",{css:{order:"0",height:"1rem",width:"2.813rem",flex:"none",flexGrow:"0",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",fontStyle:"normal","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},children:"Copied"})})}),ys("button",{onClick:async()=>{await(async e=>{await navigator.clipboard.writeText(e)})(e.value),n(!0),setTimeout((()=>{n(!1)}),3e3)},type:"button",css:{display:"block",flexShrink:"1",borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity))"},"&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},children:e.value})]})},Sf=hs.td`
|
|
2
2
|
${{whiteSpace:"nowrap",paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:"1rem",paddingRight:"0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
|
|
3
3
|
`,Ef=hs.td`
|
|
4
4
|
${{whiteSpace:"nowrap",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}}
|