@flarehr/salpac-finops-admin 1.0.1004 → 1.0.1006

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,45 +1,38 @@
1
- var za=Object.defineProperty;var ja=(e,t,r)=>t in e?za(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pi=(e,t,r)=>ja(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Ht,I,lo,lt,hi,co,en,mn,tn,rn,uo,It={},fo=[],qa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,gr=Array.isArray;function qe(e,t){for(var r in t)e[r]=t[r];return e}function po(e){var t=e.parentNode;t&&t.removeChild(e)}function K(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Ht.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Dt(e,a,n,i,null)}function Dt(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++lo,__i:-1,__u:0};return i==null&&I.vnode!=null&&I.vnode(o),o}function gn(){return{current:null}}function X(e){return e.children}function De(e,t){this.props=e,this.context=t}function ft(e,t){if(t==null)return e.__?ft(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ft(e):null}function ho(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return ho(e)}}function nn(e){(!e.__d&&(e.__d=!0)&&lt.push(e)&&!or.__r++||hi!==I.debounceRendering)&&((hi=I.debounceRendering)||co)(or)}function or(){var e,t,r,n,i,o,a,s;for(lt.sort(en);e=lt.shift();)e.__d&&(t=lt.length,n=void 0,o=(i=(r=e).__v).__e,a=[],s=[],r.__P&&((n=qe({},i)).__v=i.__v+1,I.vnode&&I.vnode(n),vn(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[o]:null,a,o??ft(i),!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,vo(a,n,s),n.__e!=o&&ho(n)),lt.length>t&&lt.sort(en));or.__r=0}function mo(e,t,r,n,i,o,a,s,c,f,d){var l,b,v,h,g,_=n&&n.__k||fo,y=t.length;for(r.__d=c,Ga(r,t,_),c=r.__d,l=0;l<y;l++)(v=r.__k[l])!=null&&typeof v!="boolean"&&typeof v!="function"&&(b=v.__i===-1?It:_[v.__i]||It,v.__i=l,vn(e,v,b,i,o,a,s,c,f,d),h=v.__e,v.ref&&b.ref!=v.ref&&(b.ref&&yn(b.ref,null,v),d.push(v.ref,v.__c||h,v)),g==null&&h!=null&&(g=h),65536&v.__u||b.__k===v.__k?(c&&!c.isConnected&&(c=ft(b)),c=go(v,c,e)):typeof v.type=="function"&&v.__d!==void 0?c=v.__d:h&&(c=h.nextSibling),v.__d=void 0,v.__u&=-196609);r.__d=c,r.__e=g}function Ga(e,t,r){var n,i,o,a,s,c=t.length,f=r.length,d=f,l=0;for(e.__k=[],n=0;n<c;n++)a=n+l,(i=e.__k[n]=(i=t[n])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Dt(null,i,null,null,null):gr(i)?Dt(X,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Dt(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,s=Ka(i,r,a,d),i.__i=s,o=null,s!==-1&&(d--,(o=r[s])&&(o.__u|=131072)),o==null||o.__v===null?(s==-1&&l--,typeof i.type!="function"&&(i.__u|=65536)):s!==a&&(s===a+1?l++:s>a?d>c-a?l+=s-a:l--:s<a?s==a-1&&(l=s-a):l=0,s!==n+l&&(i.__u|=65536))):(o=r[a])&&o.key==null&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ft(o)),on(o,o,!1),r[a]=null,d--);if(d)for(n=0;n<f;n++)(o=r[n])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ft(o)),on(o,o))}function go(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=go(n[i],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Ge(e,t){return t=t||[],e==null||typeof e=="boolean"||(gr(e)?e.some(function(r){Ge(r,t)}):t.push(e)),t}function Ka(e,t,r,n){var i=e.key,o=e.type,a=r-1,s=r+1,c=t[r];if(c===null||c&&i==c.key&&o===c.type&&!(131072&c.__u))return r;if(n>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&i==c.key&&o===c.type)return a;a--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&i==c.key&&o===c.type)return s;s++}}return-1}function mi(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||qa.test(t)?r:r+"px"}function Gt(e,t,r,n,i){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||mi(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||mi(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=mn,e.addEventListener(t,o?rn:tn,o)):e.removeEventListener(t,o?rn:tn,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,r))}}function gi(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=mn++;else if(t.t<r.u)return;return r(I.event?I.event(t):t)}}}function vn(e,t,r,n,i,o,a,s,c,f){var d,l,b,v,h,g,_,y,w,$,L,O,A,R,V,U=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=I.__b)&&d(t);e:if(typeof U=="function")try{if(y=t.props,w=(d=U.contextType)&&n[d.__c],$=d?w?w.props.value:d.__:n,r.__c?_=(l=t.__c=r.__c).__=l.__E:("prototype"in U&&U.prototype.render?t.__c=l=new U(y,$):(t.__c=l=new De(y,$),l.constructor=U,l.render=Qa),w&&w.sub(l),l.props=y,l.state||(l.state={}),l.context=$,l.__n=n,b=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),U.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=qe({},l.__s)),qe(l.__s,U.getDerivedStateFromProps(y,l.__s))),v=l.props,h=l.state,l.__v=t,b)U.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(U.getDerivedStateFromProps==null&&y!==v&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,$),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,$)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(l.props=y,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(j){j&&(j.__=t)}),L=0;L<l._sb.length;L++)l.__h.push(l._sb[L]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,$),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(v,h,g)})}if(l.context=$,l.props=y,l.__P=e,l.__e=!1,O=I.__r,A=0,"prototype"in U&&U.prototype.render){for(l.state=l.__s,l.__d=!1,O&&O(t),d=l.render(l.props,l.state,l.context),R=0;R<l._sb.length;R++)l.__h.push(l._sb[R]);l._sb=[]}else do l.__d=!1,O&&O(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++A<25);l.state=l.__s,l.getChildContext!=null&&(n=qe(qe({},n),l.getChildContext())),b||l.getSnapshotBeforeUpdate==null||(g=l.getSnapshotBeforeUpdate(v,h)),mo(e,gr(V=d!=null&&d.type===X&&d.key==null?d.props.children:d)?V:[V],t,r,n,i,o,a,s,c,f),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),_&&(l.__E=l.__=null)}catch(j){t.__v=null,c||o!=null?(t.__e=s,t.__u|=c?160:32,o[o.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),I.__e(j,t,r)}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Ya(r.__e,t,r,n,i,o,a,c,f);(d=I.diffed)&&d(t)}function vo(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)yn(r[n],r[++n],r[++n]);I.__c&&I.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){I.__e(o,i.__v)}})}function Ya(e,t,r,n,i,o,a,s,c){var f,d,l,b,v,h,g,_=r.props,y=t.props,w=t.type;if(w==="svg"?i="http://www.w3.org/2000/svg":w==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(f=0;f<o.length;f++)if((v=o[f])&&"setAttribute"in v==!!w&&(w?v.localName===w:v.nodeType===3)){e=v,o[f]=null;break}}if(e==null){if(w===null)return document.createTextNode(y);e=document.createElementNS(i,w,y.is&&y),o=null,s=!1}if(w===null)_===y||s&&e.data===y||(e.data=y);else{if(o=o&&Ht.call(e.childNodes),_=r.props||It,!s&&o!=null)for(_={},f=0;f<e.attributes.length;f++)_[(v=e.attributes[f]).name]=v.value;for(f in _)if(v=_[f],f!="children"){if(f=="dangerouslySetInnerHTML")l=v;else if(f!=="key"&&!(f in y)){if(f=="value"&&"defaultValue"in y||f=="checked"&&"defaultChecked"in y)continue;Gt(e,f,null,v,i)}}for(f in y)v=y[f],f=="children"?b=v:f=="dangerouslySetInnerHTML"?d=v:f=="value"?h=v:f=="checked"?g=v:f==="key"||s&&typeof v!="function"||_[f]===v||Gt(e,f,v,_[f],i);if(d)s||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),mo(e,gr(b)?b:[b],t,r,n,w==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ft(r,0),s,c),o!=null)for(f=o.length;f--;)o[f]!=null&&po(o[f]);s||(f="value",h!==void 0&&(h!==e[f]||w==="progress"&&!h||w==="option"&&h!==_[f])&&Gt(e,f,h,_[f],i),f="checked",g!==void 0&&g!==e[f]&&Gt(e,f,g,_[f],i))}return e}function yn(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){I.__e(n,r)}}function on(e,t,r){var n,i;if(I.unmount&&I.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||yn(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){I.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&on(n[i],t,r||typeof e.type!="function");r||e.__e==null||po(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Qa(e,t,r){return this.constructor(e,r)}function nt(e,t,r){var n,i,o,a;I.__&&I.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],vn(t,e=(!n&&r||t).__k=K(X,null,[e]),i||It,It,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Ht.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),vo(o,e,a)}function _n(e,t){nt(e,t,_n)}function bn(e,t,r){var n,i,o,a,s=qe({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)o=="key"?n=t[o]:o=="ref"?i=t[o]:s[o]=t[o]===void 0&&a!==void 0?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?Ht.call(arguments,2):r),Dt(e.type,s,n||e.key,i||e.ref,null)}function Be(e,t){var r={__c:t="__cC"+uo++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(function(s){s.__e=!0,nn(s)})},this.sub=function(a){i.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),s&&s.call(a)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Ht=fo.slice,I={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},lo=0,De.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=qe({},this.state),typeof e=="function"&&(e=e(qe({},r),this.props)),e&&qe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),nn(this))},De.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nn(this))},De.prototype.render=X,lt=[],co=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,en=function(e,t){return e.__v.__b-t.__v.__b},or.__r=0,mn=0,tn=gi(!1),rn=gi(!0),uo=0;function wn(){return(wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Xa=["context","children"];function Za(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,i){if(n==null)return{};var o,a,s={},c=Object.keys(n);for(a=0;a<c.length;a++)i.indexOf(o=c[a])>=0||(s[o]=n[o]);return s}(e,Xa);return bn(t,r)}function Ja(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=K(Za,wn({},this._props,{context:e.detail.context}),function t(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var i=[],o={},a=0,s=r.attributes,c=r.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(o[s[a].name]=s[a].value,o[yo(s[a].name)]=s[a].value);for(a=c.length;a--;){var f=t(c[a],null),d=c[a].slot;d?o[d]=K(vi,{name:d},f):i[a]=f}var l=n?K(vi,null,i):i;return K(n||r.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?_n:nt)(this._vdom,this._root)}function yo(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function es(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[yo(e)]=r,this._vdom=bn(this._vdom,n),nt(this._vdom,this._root)}}function ts(){nt(this._vdom=null,this._root)}function vi(e,t){var r=this;return K("slot",wn({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(i){i.stopPropagation(),i.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function rs(e,t,r,n){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=n&&n.shadow?o.attachShadow({mode:n.mode||"open"}):o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Ja,i.prototype.attributeChangedCallback=es,i.prototype.disconnectedCallback=ts,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=r,r.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(a){this._vdom?this.attributeChangedCallback(o,null,a):(this._props||(this._props={}),this._props[o]=a,this.connectedCallback());var s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(o,a)}})}),customElements.define(t,i)}var Ke,Q,Hr,yi,wt=0,_o=[],Zt=[],re=I,_i=re.__b,bi=re.__r,wi=re.diffed,xi=re.__c,Si=re.unmount,ki=re.__;function pt(e,t){re.__h&&re.__h(Q,e,wt||t),wt=0;var r=Q.__H||(Q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Zt}),r.__[e]}function J(e){return wt=1,Ut(bo,e)}function Ut(e,t,r){var n=pt(Ke++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):bo(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],f=n.t(c,s);c!==f&&(n.__N=[f,n.__[1]],n.__c.setState({}))}],n.__c=Q,!Q.u)){var i=function(s,c,f){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(b){return!!b.__c});if(d.every(function(b){return!b.__N}))return!o||o.call(this,s,c,f);var l=!1;return d.forEach(function(b){if(b.__N){var v=b.__[0];b.__=b.__N,b.__N=void 0,v!==b.__[0]&&(l=!0)}}),!(!l&&n.__c.props===s)&&(!o||o.call(this,s,c,f))};Q.u=!0;var o=Q.shouldComponentUpdate,a=Q.componentWillUpdate;Q.componentWillUpdate=function(s,c,f){if(this.__e){var d=o;o=void 0,i(s,c,f),o=d}a&&a.call(this,s,c,f)},Q.shouldComponentUpdate=i}return n.__N||n.__}function ee(e,t){var r=pt(Ke++,3);!re.__s&&Cn(r.__H,t)&&(r.__=e,r.i=t,Q.__H.__h.push(r))}function ot(e,t){var r=pt(Ke++,4);!re.__s&&Cn(r.__H,t)&&(r.__=e,r.i=t,Q.__h.push(r))}function H(e){return wt=5,ge(function(){return{current:e}},[])}function xn(e,t,r){wt=6,ot(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function ge(e,t){var r=pt(Ke++,7);return Cn(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function et(e,t){return wt=8,ge(function(){return e},t)}function Se(e){var t=Q.context[e.__c],r=pt(Ke++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Q)),t.props.value):e.__}function Sn(e,t){re.useDebugValue&&re.useDebugValue(t?t(e):e)}function ns(e){var t=pt(Ke++,10),r=J();return t.__=e,Q.componentDidCatch||(Q.componentDidCatch=function(n,i){t.__&&t.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function kn(){var e=pt(Ke++,11);if(!e.__){for(var t=Q.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function is(){for(var e;e=_o.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Jt),e.__H.__h.forEach(an),e.__H.__h=[]}catch(t){e.__H.__h=[],re.__e(t,e.__v)}}re.__b=function(e){Q=null,_i&&_i(e)},re.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ki&&ki(e,t)},re.__r=function(e){bi&&bi(e),Ke=0;var t=(Q=e.__c).__H;t&&(Hr===Q?(t.__h=[],Q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Zt,r.__N=r.i=void 0})):(t.__h.forEach(Jt),t.__h.forEach(an),t.__h=[],Ke=0)),Hr=Q},re.diffed=function(e){wi&&wi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(_o.push(t)!==1&&yi===re.requestAnimationFrame||((yi=re.requestAnimationFrame)||os)(is)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Zt&&(r.__=r.__V),r.i=void 0,r.__V=Zt})),Hr=Q=null},re.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Jt),r.__h=r.__h.filter(function(n){return!n.__||an(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],re.__e(n,r.__v)}}),xi&&xi(e,t)},re.unmount=function(e){Si&&Si(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Jt(n)}catch(i){t=i}}),r.__H=void 0,t&&re.__e(t,r.__v))};var Ci=typeof requestAnimationFrame=="function";function os(e){var t,r=function(){clearTimeout(n),Ci&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ci&&(t=requestAnimationFrame(r))}function Jt(e){var t=Q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Q=t}function an(e){var t=Q;e.__c=e.__(),Q=t}function Cn(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function bo(e,t){return typeof t=="function"?t(e):t}function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sn.apply(null,arguments)}function wo(e,t){for(var r in t)e[r]=t[r];return e}function ln(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function ar(e,t){this.props=e,this.context=t}function xo(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:ln(this.props,i)}function n(i){return this.shouldComponentUpdate=r,K(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(ar.prototype=new De).isPureReactComponent=!0,ar.prototype.shouldComponentUpdate=function(e,t){return ln(this.props,e)||ln(this.state,t)};var Ei=I.__b;I.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ei&&Ei(e)};var as=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ye(e){function t(r){var n=wo({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=as,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var $i=function(e,t){return e==null?null:Ge(Ge(e).map(t))},So={map:$i,forEach:$i,count:function(e){return e?Ge(e).length:0},only:function(e){var t=Ge(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ge},ss=I.__e;I.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}ss(e,t,r,n)};var Ti=I.unmount;function ko(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=wo({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return ko(n,t,r)})),e}function Co(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Co(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Pt(){this.__u=0,this.t=null,this.__b=null}function Eo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function $o(e){var t,r,n;function i(o){if(t||(t=e()).then(function(a){r=a.default||a},function(a){n=a}),n)throw n;if(!r)throw t;return K(r,o)}return i.displayName="Lazy",i.__f=!0,i}function yt(){this.u=null,this.o=null}I.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ti&&Ti(e)},(Pt.prototype=new De).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=Eo(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Co(c,c.__c.__P,c.__c.__O)}var f;for(n.setState({__a:n.__b=null});f=n.t.pop();)f.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Pt.prototype.componentWillUnmount=function(){this.t=[]},Pt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=ko(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&K(X,null,e.fallback);return i&&(i.__u&=-33),[K(X,null,t.__a?null:e.children),i]};var Ri=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function ls(e){return this.getChildContext=function(){return e.context},e.children}function cs(e){var t=this,r=e.i;t.componentWillUnmount=function(){nt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),nt(K(ls,{context:t.context},e.__v),t.l)}function To(e,t){var r=K(cs,{__v:e,i:t});return r.containerInfo=t,r}(yt.prototype=new De).__a=function(e){var t=this,r=Eo(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Ri(t,e,n)):i()};r?r(o):o()}},yt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ge(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},yt.prototype.componentDidUpdate=yt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Ri(e,r,t)})};var Ro=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,us=/^(?: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]/,ds=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fs=/[A-Z0-9]/g,ps=typeof document<"u",hs=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Oo(e,t,r){return t.__k==null&&(t.textContent=""),nt(e,t),typeof r=="function"&&r(),e?e.__c:null}function Ao(e,t,r){return _n(e,t),typeof r=="function"&&r(),e?e.__c:null}De.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(De.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Oi=I.event;function ms(){}function gs(){return this.cancelBubble}function vs(){return this.defaultPrevented}I.event=function(e){return Oi&&(e=Oi(e)),e.persist=ms,e.isPropagationStopped=gs,e.isDefaultPrevented=vs,e.nativeEvent=e};var En,ys={enumerable:!1,configurable:!0,get:function(){return this.class}},Ai=I.vnode;I.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={};for(var o in r){var a=r[o];if(!(o==="value"&&"defaultValue"in r&&a==null||ps&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var s=o.toLowerCase();o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&a===!0?a="":s==="translate"&&a==="no"?a=!1:s==="ondoubleclick"?o="ondblclick":s!=="onchange"||n!=="input"&&n!=="textarea"||hs(r.type)?s==="onfocus"?o="onfocusin":s==="onblur"?o="onfocusout":ds.test(o)?o=s:n.indexOf("-")===-1&&us.test(o)?o=o.replace(fs,"-$&").toLowerCase():a===null&&(a=void 0):s=o="oninput",s==="oninput"&&i[o=s]&&(o="oninputCapture"),i[o]=a}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Ge(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Ge(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",ys)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=Ro,Ai&&Ai(e)};var Di=I.__r;I.__r=function(e){Di&&Di(e),En=e.__c};var Pi=I.diffed;I.diffed=function(e){Pi&&Pi(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),En=null};var Do={ReactCurrentDispatcher:{current:{readContext:function(e){return En.__n[e.__c].props.value},useCallback:et,useContext:Se,useDebugValue:Sn,useDeferredValue:Rn,useEffect:ee,useId:kn,useImperativeHandle:xn,useInsertionEffect:An,useLayoutEffect:ot,useMemo:ge,useReducer:Ut,useRef:H,useState:J,useSyncExternalStore:Dn,useTransition:On}}},_s="17.0.2";function Po(e){return K.bind(null,e)}function kt(e){return!!e&&e.$$typeof===Ro}function Fo(e){return kt(e)&&e.type===X}function Lo(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function $n(e){return kt(e)?bn.apply(null,arguments):e}function Io(e){return!!e.__k&&(nt(null,e),!0)}function Vo(e){return e&&(e.base||e.nodeType===1&&e)||null}var No=function(e,t){return e(t)},Mo=function(e,t){return e(t)},Ho=X;function Tn(e){e()}function Rn(e){return e}function On(){return[!1,Tn]}var An=ot,Uo=kt;function Dn(e,t){var r=t(),n=J({h:{__:r,v:t}}),i=n[0].h,o=n[1];return ot(function(){i.__=r,i.v=t,Ur(i)&&o({h:i})},[e,r,t]),ee(function(){return Ur(i)&&o({h:i}),e(function(){Ur(i)&&o({h:i})})},[e]),r}function Ur(e){var t,r,n=e.v,i=e.__;try{var o=n();return!((t=i)===(r=o)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}var D={useState:J,useId:kn,useReducer:Ut,useEffect:ee,useLayoutEffect:ot,useInsertionEffect:An,useTransition:On,useDeferredValue:Rn,useSyncExternalStore:Dn,startTransition:Tn,useRef:H,useImperativeHandle:xn,useMemo:ge,useCallback:et,useContext:Se,useDebugValue:Sn,version:"17.0.2",Children:So,render:Oo,hydrate:Ao,unmountComponentAtNode:Io,createPortal:To,createElement:K,createContext:Be,createFactory:Po,cloneElement:$n,createRef:gn,Fragment:X,isValidElement:kt,isElement:Uo,isFragment:Fo,isMemo:Lo,findDOMNode:Vo,Component:De,PureComponent:ar,memo:xo,forwardRef:Ye,flushSync:Mo,unstable_batchedUpdates:No,StrictMode:Ho,Suspense:Pt,SuspenseList:yt,lazy:$o,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Do};const cn=Object.freeze(Object.defineProperty({__proto__:null,Children:So,Component:De,Fragment:X,PureComponent:ar,StrictMode:Ho,Suspense:Pt,SuspenseList:yt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Do,cloneElement:$n,createContext:Be,createElement:K,createFactory:Po,createPortal:To,createRef:gn,default:D,findDOMNode:Vo,flushSync:Mo,forwardRef:Ye,hydrate:Ao,isElement:Uo,isFragment:Fo,isMemo:Lo,isValidElement:kt,lazy:$o,memo:xo,render:Oo,startTransition:Tn,unmountComponentAtNode:Io,unstable_batchedUpdates:No,useCallback:et,useContext:Se,useDebugValue:Sn,useDeferredValue:Rn,useEffect:ee,useErrorBoundary:ns,useId:kn,useImperativeHandle:xn,useInsertionEffect:An,useLayoutEffect:ot,useMemo:ge,useReducer:Ut,useRef:H,useState:J,useSyncExternalStore:Dn,useTransition:On,version:_s},Symbol.toStringTag,{value:"Module"}));function Bo(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var bs=/^((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|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)-.*))$/,ws=Bo(function(e){return bs.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function xs(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]}function Ss(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ks=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ss(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=xs(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),me="-ms-",sr="-moz-",B="-webkit-",Wo="comm",Pn="rule",Fn="decl",Cs="@import",zo="@keyframes",Es="@layer",$s=Math.abs,vr=String.fromCharCode,Ts=Object.assign;function Rs(e,t){return pe(e,0)^45?(((t<<2^pe(e,0))<<2^pe(e,1))<<2^pe(e,2))<<2^pe(e,3):0}function jo(e){return e.trim()}function Os(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function un(e,t){return e.indexOf(t)}function pe(e,t){return e.charCodeAt(t)|0}function Vt(e,t,r){return e.slice(t,r)}function Fe(e){return e.length}function Ln(e){return e.length}function Kt(e,t){return t.push(e),e}function As(e,t){return e.map(t).join("")}var yr=1,xt=1,qo=0,xe=0,se=0,Ct="";function _r(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:yr,column:xt,length:a,return:""}}function Rt(e,t){return Ts(_r("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ds(){return se}function Ps(){return se=xe>0?pe(Ct,--xe):0,xt--,se===10&&(xt=1,yr--),se}function $e(){return se=xe<qo?pe(Ct,xe++):0,xt++,se===10&&(xt=1,yr++),se}function Me(){return pe(Ct,xe)}function er(){return xe}function Bt(e,t){return Vt(Ct,e,t)}function Nt(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 Go(e){return yr=xt=1,qo=Fe(Ct=e),xe=0,[]}function Ko(e){return Ct="",e}function tr(e){return jo(Bt(xe-1,dn(e===91?e+2:e===40?e+1:e)))}function Fs(e){for(;(se=Me())&&se<33;)$e();return Nt(e)>2||Nt(se)>3?"":" "}function Ls(e,t){for(;--t&&$e()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return Bt(e,er()+(t<6&&Me()==32&&$e()==32))}function dn(e){for(;$e();)switch(se){case e:return xe;case 34:case 39:e!==34&&e!==39&&dn(se);break;case 40:e===41&&dn(e);break;case 92:$e();break}return xe}function Is(e,t){for(;$e()&&e+se!==57;)if(e+se===84&&Me()===47)break;return"/*"+Bt(t,xe-1)+"*"+vr(e===47?e:$e())}function Vs(e){for(;!Nt(Me());)$e();return Bt(e,xe)}function Ns(e){return Ko(rr("",null,null,null,[""],e=Go(e),0,[0],e))}function rr(e,t,r,n,i,o,a,s,c){for(var f=0,d=0,l=a,b=0,v=0,h=0,g=1,_=1,y=1,w=0,$="",L=i,O=o,A=n,R=$;_;)switch(h=w,w=$e()){case 40:if(h!=108&&pe(R,l-1)==58){un(R+=W(tr(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:R+=tr(w);break;case 9:case 10:case 13:case 32:R+=Fs(h);break;case 92:R+=Ls(er()-1,7);continue;case 47:switch(Me()){case 42:case 47:Kt(Ms(Is($e(),er()),t,r),c);break;default:R+="/"}break;case 123*g:s[f++]=Fe(R)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+d:y==-1&&(R=W(R,/\f/g,"")),v>0&&Fe(R)-l&&Kt(v>32?Li(R+";",n,r,l-1):Li(W(R," ","")+";",n,r,l-2),c);break;case 59:R+=";";default:if(Kt(A=Fi(R,t,r,f,d,i,s,$,L=[],O=[],l),o),w===123)if(d===0)rr(R,t,A,A,L,o,l,s,O);else switch(b===99&&pe(R,3)===110?100:b){case 100:case 108:case 109:case 115:rr(e,A,A,n&&Kt(Fi(e,A,A,0,0,i,s,$,i,L=[],l),O),i,O,l,s,n?L:O);break;default:rr(R,A,A,A,[""],O,0,s,O)}}f=d=v=0,g=y=1,$=R="",l=a;break;case 58:l=1+Fe(R),v=h;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Ps()==125)continue}switch(R+=vr(w),w*g){case 38:y=d>0?1:(R+="\f",-1);break;case 44:s[f++]=(Fe(R)-1)*y,y=1;break;case 64:Me()===45&&(R+=tr($e())),b=Me(),d=l=Fe($=R+=Vs(er())),w++;break;case 45:h===45&&Fe(R)==2&&(g=0)}}return o}function Fi(e,t,r,n,i,o,a,s,c,f,d){for(var l=i-1,b=i===0?o:[""],v=Ln(b),h=0,g=0,_=0;h<n;++h)for(var y=0,w=Vt(e,l+1,l=$s(g=a[h])),$=e;y<v;++y)($=jo(g>0?b[y]+" "+w:W(w,/&\f/g,b[y])))&&(c[_++]=$);return _r(e,t,r,i===0?Pn:s,c,f,d)}function Ms(e,t,r){return _r(e,t,r,Wo,vr(Ds()),Vt(e,2,-2),0)}function Li(e,t,r,n){return _r(e,t,r,Fn,Vt(e,0,n),Vt(e,n+1,-1),n)}function bt(e,t){for(var r="",n=Ln(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Hs(e,t,r,n){switch(e.type){case Es:if(e.children.length)break;case Cs:case Fn:return e.return=e.return||e.value;case Wo:return"";case zo:return e.return=e.value+"{"+bt(e.children,n)+"}";case Pn:e.value=e.props.join(",")}return Fe(r=bt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Us(e){var t=Ln(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function Bs(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ws=function(t,r,n){for(var i=0,o=0;i=o,o=Me(),i===38&&o===12&&(r[n]=1),!Nt(o);)$e();return Bt(t,xe)},zs=function(t,r){var n=-1,i=44;do switch(Nt(i)){case 0:i===38&&Me()===12&&(r[n]=1),t[n]+=Ws(xe-1,r,n);break;case 2:t[n]+=tr(i);break;case 4:if(i===44){t[++n]=Me()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=vr(i)}while(i=$e());return t},js=function(t,r){return Ko(zs(Go(t),r))},Ii=new WeakMap,qs=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ii.get(n))&&!i){Ii.set(t,!0);for(var o=[],a=js(r,o),s=n.props,c=0,f=0;c<a.length;c++)for(var d=0;d<s.length;d++,f++)t.props[f]=o[c]?a[c].replace(/&\f/g,s[d]):s[d]+" "+a[c]}}},Gs=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Yo(e,t){switch(Rs(e,t)){case 5103:return B+"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 B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+sr+e+me+e+e;case 6828:case 4268:return B+e+me+e+e;case 6165:return B+e+me+"flex-"+e+e;case 5187:return B+e+W(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+me+"flex-$1$2")+e;case 5443:return B+e+me+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return B+e+me+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+me+W(e,"shrink","negative")+e;case 5292:return B+e+me+W(e,"basis","preferred-size")+e;case 6060:return B+"box-"+W(e,"-grow","")+B+e+me+W(e,"grow","positive")+e;case 4554:return B+W(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,B+"$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(Fe(e)-1-t>6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+sr+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~un(e,"stretch")?Yo(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,Fe(e)-3-(~un(e,"!important")&&10))){case 107:return W(e,":",":"+B)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(pe(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+me+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return B+e+me+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+me+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+me+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+me+e+e}return e}var Ks=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Fn:t.return=Yo(t.value,t.length);break;case zo:return bt([Rt(t,{value:W(t.value,"@","@"+B)})],i);case Pn:if(t.length)return As(t.props,function(o){switch(Os(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bt([Rt(t,{props:[W(o,/:(read-\w+)/,":"+sr+"$1")]})],i);case"::placeholder":return bt([Rt(t,{props:[W(o,/:(plac\w+)/,":"+B+"input-$1")]}),Rt(t,{props:[W(o,/:(plac\w+)/,":"+sr+"$1")]}),Rt(t,{props:[W(o,/:(plac\w+)/,me+"input-$1")]})],i)}return""})}},Ys=[Ks],In=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||Ys,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),y=1;y<_.length;y++)o[_[y]]=!0;s.push(g)});var c,f=[qs,Gs];{var d,l=[Hs,Bs(function(g){d.insert(g)})],b=Us(f.concat(i,l)),v=function(_){return bt(Ns(_),b)};c=function(_,y,w,$){d=w,v(_?_+"{"+y.styles+"}":y.styles),$&&(h.inserted[y.name]=!0)}}var h={key:r,sheet:new ks({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return h.sheet.hydrate(s),h},Qo={exports:{}},G={};/** @license React v16.13.1
2
- * react-is.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */var fe=typeof Symbol=="function"&&Symbol.for,Vn=fe?Symbol.for("react.element"):60103,Nn=fe?Symbol.for("react.portal"):60106,br=fe?Symbol.for("react.fragment"):60107,wr=fe?Symbol.for("react.strict_mode"):60108,xr=fe?Symbol.for("react.profiler"):60114,Sr=fe?Symbol.for("react.provider"):60109,kr=fe?Symbol.for("react.context"):60110,Mn=fe?Symbol.for("react.async_mode"):60111,Cr=fe?Symbol.for("react.concurrent_mode"):60111,Er=fe?Symbol.for("react.forward_ref"):60112,$r=fe?Symbol.for("react.suspense"):60113,Qs=fe?Symbol.for("react.suspense_list"):60120,Tr=fe?Symbol.for("react.memo"):60115,Rr=fe?Symbol.for("react.lazy"):60116,Xs=fe?Symbol.for("react.block"):60121,Zs=fe?Symbol.for("react.fundamental"):60117,Js=fe?Symbol.for("react.responder"):60118,el=fe?Symbol.for("react.scope"):60119;function Re(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Vn:switch(e=e.type,e){case Mn:case Cr:case br:case xr:case wr:case $r:return e;default:switch(e=e&&e.$$typeof,e){case kr:case Er:case Rr:case Tr:case Sr:return e;default:return t}}case Nn:return t}}}function Xo(e){return Re(e)===Cr}G.AsyncMode=Mn;G.ConcurrentMode=Cr;G.ContextConsumer=kr;G.ContextProvider=Sr;G.Element=Vn;G.ForwardRef=Er;G.Fragment=br;G.Lazy=Rr;G.Memo=Tr;G.Portal=Nn;G.Profiler=xr;G.StrictMode=wr;G.Suspense=$r;G.isAsyncMode=function(e){return Xo(e)||Re(e)===Mn};G.isConcurrentMode=Xo;G.isContextConsumer=function(e){return Re(e)===kr};G.isContextProvider=function(e){return Re(e)===Sr};G.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vn};G.isForwardRef=function(e){return Re(e)===Er};G.isFragment=function(e){return Re(e)===br};G.isLazy=function(e){return Re(e)===Rr};G.isMemo=function(e){return Re(e)===Tr};G.isPortal=function(e){return Re(e)===Nn};G.isProfiler=function(e){return Re(e)===xr};G.isStrictMode=function(e){return Re(e)===wr};G.isSuspense=function(e){return Re(e)===$r};G.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===br||e===Cr||e===xr||e===wr||e===$r||e===Qs||typeof e=="object"&&e!==null&&(e.$$typeof===Rr||e.$$typeof===Tr||e.$$typeof===Sr||e.$$typeof===kr||e.$$typeof===Er||e.$$typeof===Zs||e.$$typeof===Js||e.$$typeof===el||e.$$typeof===Xs)};G.typeOf=Re;Qo.exports=G;var tl=Qo.exports,Zo=tl,rl={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jo={};Jo[Zo.ForwardRef]=rl;Jo[Zo.Memo]=nl;var il=!0;function Or(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var Hn=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||il===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},Ar=function(t,r,n){Hn(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function ol(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var al={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,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},sl=/[A-Z]|^ms/g,ll=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ea=function(t){return t.charCodeAt(1)===45},Vi=function(t){return t!=null&&typeof t!="boolean"},Br=Bo(function(e){return ea(e)?e:e.replace(sl,"-$&").toLowerCase()}),Ni=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ll,function(n,i,o){return Le={name:i,styles:o,next:Le},i})}return al[t]!==1&&!ea(t)&&typeof r=="number"&&r!==0?r+"px":r};function Mt(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Le={name:r.name,styles:r.styles,next:Le},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Le={name:n.name,styles:n.styles,next:Le},n=n.next;var i=r.styles+";";return i}return cl(e,t,r)}case"function":{if(e!==void 0){var o=Le,a=r(e);return Le=o,Mt(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function cl(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Mt(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object")t!=null&&t[a]!==void 0?n+=o+"{"+t[a]+"}":Vi(a)&&(n+=Br(o)+":"+Ni(o,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Vi(a[s])&&(n+=Br(o)+":"+Ni(o,a[s])+";");else{var c=Mt(e,t,a);switch(o){case"animation":case"animationName":{n+=Br(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}var Mi=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Le,ut=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";Le=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Mt(n,r,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Mt(n,r,t[s]),i&&(o+=a[s]);Mi.lastIndex=0;for(var c="",f;(f=Mi.exec(o))!==null;)c+="-"+f[1];var d=ol(o)+c;return{name:d,styles:o,next:Le}},ul=function(t){return t()},ta=cn.useInsertionEffect?cn.useInsertionEffect:!1,ra=ta||ul,Hi=ta||ot,Dr={}.hasOwnProperty,na=Be(typeof HTMLElement<"u"?In({key:"css"}):null),dl=na.Provider,Un=function(t){return Ye(function(r,n){var i=Se(na);return t(r,i,n)})},Bn=Be({}),fn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ia=function(t,r){var n={};for(var i in r)Dr.call(r,i)&&(n[i]=r[i]);return n[fn]=t,n},fl=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Hn(r,n,i),ra(function(){return Ar(r,n,i)}),null},pl=Un(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[fn],o=[n],a="";typeof e.className=="string"?a=Or(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=ut(o,void 0,Se(Bn));a+=t.key+"-"+s.name;var c={};for(var f in e)Dr.call(e,f)&&f!=="css"&&f!==fn&&(c[f]=e[f]);return c.ref=r,c.className=a,K(X,null,K(fl,{cache:t,serialized:s,isStringTag:typeof i=="string"}),K(i,c))}),oa=pl,Wr=Un(function(e,t){var r=e.styles,n=ut([r],void 0,Se(Bn)),i=H();return Hi(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,s],function(){a.flush()}},[t]),Hi(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Ar(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function Wn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ut(t)}var hl=ws,ml=function(t){return t!=="theme"},Ui=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hl:ml},Bi=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},gl=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Hn(r,n,i),ra(function(){return Ar(r,n,i)}),null},vl=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=Bi(t,r,n),c=s||Ui(i),f=!c("as");return function(){var d=arguments,l=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&l.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)l.push.apply(l,d);else{l.push(d[0][0]);for(var b=d.length,v=1;v<b;v++)l.push(d[v],d[0][v])}var h=Un(function(g,_,y){var w=f&&g.as||i,$="",L=[],O=g;if(g.theme==null){O={};for(var A in g)O[A]=g[A];O.theme=Se(Bn)}typeof g.className=="string"?$=Or(_.registered,L,g.className):g.className!=null&&($=g.className+" ");var R=ut(l.concat(L),_.registered,O);$+=_.key+"-"+R.name,a!==void 0&&($+=" "+a);var V=f&&s===void 0?Ui(w):c,U={};for(var j in g)f&&j==="as"||V(j)&&(U[j]=g[j]);return U.className=$,U.ref=y,K(X,null,K(gl,{cache:_,serialized:R,isStringTag:typeof w=="string"}),K(w,U))});return h.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=l,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+a}}),h.withComponent=function(g,_){return e(g,sn({},r,_,{shouldForwardProp:Bi(h,_,!0)})).apply(void 0,l)},h}},yl=["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"],Ue=vl.bind();yl.forEach(function(e){Ue[e]=Ue(e)});const _l=Ue.div`
1
+ var e=Object.defineProperty,t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),n=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var r,i,a,o,s,c,l,u,d,f,p,m,h={},g=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function x(e,t,n){var i,a,o,s={};for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return S(e,s,i,a,null)}function S(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++a,__i:-1,__u:0};return o==null&&i.vnode!=null&&i.vnode(s),s}function C(){return{current:null}}function w(e){return e.children}function T(e,t){this.props=e,this.context=t}function E(e,t){if(t==null)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?E(e):null}function D(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],a=[],o=y({},t);o.__v=t.__v+1,i.vnode&&i.vnode(o),se(e.__P,o,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??E(t),!!(32&t.__u),a),o.__v=t.__v,o.__.__k[o.__i]=o,le(r,o,a),t.__e=t.__=null,o.__e!=n&&ee(o)}}function ee(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),ee(e)}function O(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!te.__r++||s!=i.debounceRendering)&&((s=i.debounceRendering)||c)(te)}function te(){try{for(var e,t=1;o.length;)o.length>t&&o.sort(l),e=o.shift(),t=o.length,D(e)}finally{o.length=te.__r=0}}function ne(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,_,v,y,b=r&&r.__k||g,x=t.length;for(c=k(n,t,b,c,x),d=0;d<x;d++)(p=n.__k[d])!=null&&(f=p.__i!=-1&&b[p.__i]||h,p.__i=d,v=se(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&fe(f.ref,null,p),u.push(p.ref,p.__c||m,p)),_==null&&m!=null&&(_=m),(y=!!(4&p.__u))||f.__k===p.__k?c=A(p,c,e,y):typeof p.type==`function`&&v!==void 0?c=v:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=_,c}function k(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?o=e.__k[a]=S(null,o,null,null,null):v(o)?o=e.__k[a]=S(w,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=S(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=re(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=E(s)),pe(s,s));return r}function A(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=A(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=E(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function j(e,t){return t||=[],e==null||typeof e==`boolean`||(v(e)?e.some(function(e){j(e,t)}):t.push(e)),t}function re(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&(2&l.__u)==0;if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>(u?1:0)){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function ie(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||_.test(t)?n:n+`px`}function ae(e,t,n,r,i){var a,o;n:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||ie(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||ie(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(u,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n.u=r.u:(n.u=d,e.addEventListener(t,a?p:f,a)):e.removeEventListener(t,a?p:f,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function oe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=d++;else if(t.t<n.u)return;return n(i.event?i.event(t):t)}}}function se(e,t,n,r,a,o,s,c,l,u){var d,f,p,m,h,_,x,S,C,E,D,ee,O,te,k,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[c=t.__e=n.__e]),(d=i.__b)&&d(t);n:if(typeof A==`function`)try{if(S=t.props,C=A.prototype&&A.prototype.render,E=(d=A.contextType)&&r[d.__c],D=d?E?E.props.value:d.__:r,n.__c?x=(f=t.__c=n.__c).__=f.__E:(C?t.__c=f=new A(S,D):(t.__c=f=new T(S,D),f.constructor=A,f.render=me),E&&E.sub(f),f.state||={},f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),C&&f.__s==null&&(f.__s=f.state),C&&A.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=y({},f.__s)),y(f.__s,A.getDerivedStateFromProps(S,f.__s))),m=f.props,h=f.state,f.__v=t,p)C&&A.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),C&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(C&&A.getDerivedStateFromProps==null&&S!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(S,D),t.__v==n.__v||!f.__e&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(S,f.__s,D)){t.__v!=n.__v&&(f.props=S,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),g.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&s.push(f);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(S,f.__s,D),C&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,_)})}if(f.context=D,f.props=S,f.__P=e,f.__e=!1,ee=i.__r,O=0,C)f.state=f.__s,f.__d=!1,ee&&ee(t),d=f.render(f.props,f.state,f.context),g.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,ee&&ee(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++O<25);f.state=f.__s,f.getChildContext!=null&&(r=y(y({},r),f.getChildContext())),C&&!p&&f.getSnapshotBeforeUpdate!=null&&(_=f.getSnapshotBeforeUpdate(m,h)),te=d!=null&&d.type===w&&d.key==null?ue(d.props.children):d,c=ne(e,v(te)?te:[te],t,n,r,a,o,s,c,l,u),f.base=t.__e,t.__u&=-161,f.__h.length&&s.push(f),x&&(f.__E=f.__=null)}catch(e){if(t.__v=null,l||o!=null)if(e.then){for(t.__u|=l?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;o[o.indexOf(c)]=null,t.__e=c}else{for(k=o.length;k--;)b(o[k]);ce(t)}else t.__e=n.__e,t.__k=n.__k,e.then||ce(t);i.__e(e,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=de(n.__e,t,n,r,a,o,s,l,u);return(d=i.diffed)&&d(t),128&t.__u?void 0:c}function ce(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(ce))}function le(e,t,n){for(var r=0;r<n.length;r++)fe(n[r],n[++r],n[++r]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function ue(e){return typeof e!=`object`||!e||e.__b>0?e:v(e)?e.map(ue):y({},e)}function de(e,t,n,a,o,s,c,l,u){var d,f,p,m,g,_,y,x=n.props||h,S=t.props,C=t.type;if(C==`svg`?o=`http://www.w3.org/2000/svg`:C==`math`?o=`http://www.w3.org/1998/Math/MathML`:o||=`http://www.w3.org/1999/xhtml`,s!=null){for(d=0;d<s.length;d++)if((g=s[d])&&`setAttribute`in g==!!C&&(C?g.localName==C:g.nodeType==3)){e=g,s[d]=null;break}}if(e==null){if(C==null)return document.createTextNode(S);e=document.createElementNS(o,C,S.is&&S),l&&=(i.__m&&i.__m(t,s),!1),s=null}if(C==null)x===S||l&&e.data==S||(e.data=S);else{if(s&&=r.call(e.childNodes),!l&&s!=null)for(x={},d=0;d<e.attributes.length;d++)x[(g=e.attributes[d]).name]=g.value;for(d in x)g=x[d],d==`dangerouslySetInnerHTML`?p=g:d==`children`||d in S||d==`value`&&`defaultValue`in S||d==`checked`&&`defaultChecked`in S||ae(e,d,null,g,o);for(d in S)g=S[d],d==`children`?m=g:d==`dangerouslySetInnerHTML`?f=g:d==`value`?_=g:d==`checked`?y=g:l&&typeof g!=`function`||x[d]===g||ae(e,d,g,x[d],o);if(f)l||p&&(f.__html==p.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(p&&(e.innerHTML=``),ne(t.type==`template`?e.content:e,v(m)?m:[m],t,n,a,C==`foreignObject`?`http://www.w3.org/1999/xhtml`:o,s,c,s?s[0]:n.__k&&E(n,0),l,u),s!=null)for(d=s.length;d--;)b(s[d]);l||(d=`value`,C==`progress`&&_==null?e.removeAttribute(`value`):_!=null&&(_!==e[d]||C==`progress`&&!_||C==`option`&&_!=x[d])&&ae(e,d,_,x[d],o),d=`checked`,y!=null&&y!=e[d]&&ae(e,d,y,x[d],o))}return e}function fe(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,n)}}function pe(e,t,n){var r,a;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||fe(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&pe(r[a],t,n||typeof e.type!=`function`);n||b(e.__e),e.__c=e.__=e.__e=void 0}function me(e,t,n){return this.constructor(e,n)}function he(e,t,n){var a,o,s,c;t==document&&(t=document.documentElement),i.__&&i.__(e,t),o=(a=typeof n==`function`)?null:n&&n.__k||t.__k,s=[],c=[],se(t,e=(!a&&n||t).__k=x(w,null,[e]),o||h,h,t.namespaceURI,!a&&n?[n]:o?null:t.firstChild?r.call(t.childNodes):null,s,!a&&n?n:o?o.__e:t.firstChild,a,c),le(s,e,c)}function ge(e,t){he(e,t,ge)}function _e(e,t,n){var i,a,o,s,c=y({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o==`key`?i=t[o]:o==`ref`?a=t[o]:c[o]=t[o]===void 0&&s!=null?s[o]:t[o];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),S(e.type,c,i||e.key,a||e.ref,null)}function ve(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=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,O(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 t.__c=`__cC`+ m++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=g.slice,i={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},a=0,T.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=y({},this.state);typeof e==`function`&&(e=e(y({},n),this.props)),e&&y(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),O(this))},T.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},T.prototype.render=w,o=[],c=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},te.__r=0,u=/(PointerCapture)$|Capture$/i,d=0,f=oe(!1),p=oe(!0),m=0;function ye(){return ye=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},ye.apply(this,arguments)}function be(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}var xe=[`context`,`children`],Se=[`useFragment`];function Ce(e,t,n,r){function i(){var t,n=Reflect.construct(HTMLElement,[],i);return n._vdomComponent=e,r&&r.shadow?(n._root=n.attachShadow({mode:r.mode||`open`,serializable:(t=r.serializable)!=null&&t}),r.adoptedStyleSheets&&(n._root.adoptedStyleSheets=r.adoptedStyleSheets)):n._root=n,n}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=function(){Te.call(this,r)},i.prototype.attributeChangedCallback=De,i.prototype.disconnectedCallback=Oe,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,e.formAssociated&&(i.formAssociated=!0),n.forEach(function(e){Object.defineProperty(i.prototype,e,{get:function(){return this._vdom?this._vdom.props[e]:this._props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||={},this._props[e]=t);var n=typeof t;t!=null&&n!==`string`&&n!==`boolean`&&n!==`number`||this.setAttribute(e,t)}})}),customElements.define(t||e.tagName||e.displayName||e.name,i),i}function we(e){this.getChildContext=function(){return e.context};var t=e.children;return _e(t,be(e,xe))}function Te(e){var t=new CustomEvent(`_preact`,{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=x(we,ye({},this._props,{context:t.detail.context}),Ae(this,this._vdomComponent,e)),(this.hasAttribute(`hydrate`)?ge:he)(this._vdom,this._root)}function Ee(e){return e.replace(/-(\w)/g,function(e,t){return t?t.toUpperCase():``})}function De(e,t,n){if(this._vdom){var r={};r[e]=n??=void 0,r[Ee(e)]=n,this._vdom=_e(this._vdom,r),he(this._vdom,this._root)}}function Oe(){he(this._vdom=null,this._root)}function ke(e,t){var n=this,r=e.useFragment,i=be(e,Se);return x(r?w:`slot`,ye({},i,{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)}}))}function Ae(e,t,n){if(e.nodeType===3)return e.data;if(e.nodeType!==1)return null;var r=[],i={},a=0,o=e.attributes,s=e.childNodes;for(a=o.length;a--;)o[a].name!==`slot`&&(i[o[a].name]=o[a].value,i[Ee(o[a].name)]=o[a].value);for(a=s.length;a--;){var c=Ae(s[a],null,n),l=s[a].slot;l?i[l]=x(ke,{name:l},c):r[a]=c}var u=!(!n||!n.shadow),d=t?x(ke,{useFragment:!u},r):r;return!u&&t&&(e.innerHTML=``),x(t||e.nodeName.toLowerCase(),i,d)}var je,M,Me,Ne,Pe=0,Fe=[],N=i,Ie=N.__b,Le=N.__r,Re=N.diffed,ze=N.__c,Be=N.unmount,Ve=N.__;function He(e,t){N.__h&&N.__h(M,e,Pe||t),Pe=0;var n=M.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({}),n.__[e]}function P(e){return Pe=1,Ue(it,e)}function Ue(e,t,n){var r=He(je++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):it(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=M,!M.__f)){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!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a&&a.call(this,e,t,n)||o};M.__f=!0;var a=M.shouldComponentUpdate,o=M.componentWillUpdate;M.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},M.shouldComponentUpdate=i}return r.__N||r.__}function F(e,t){var n=He(je++,3);!N.__s&&rt(n.__H,t)&&(n.__=e,n.u=t,M.__H.__h.push(n))}function We(e,t){var n=He(je++,4);!N.__s&&rt(n.__H,t)&&(n.__=e,n.u=t,M.__h.push(n))}function I(e){return Pe=5,Ke(function(){return{current:e}},[])}function Ge(e,t,n){Pe=6,We(function(){if(typeof e==`function`){var n=e(t());return function(){e(null),n&&typeof n==`function`&&n()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Ke(e,t){var n=He(je++,7);return rt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function qe(e,t){return Pe=8,Ke(function(){return e},t)}function Je(e){var t=M.context[e.__c],n=He(je++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(M)),t.props.value):e.__}function Ye(e,t){N.useDebugValue&&N.useDebugValue(t?t(e):e)}function Xe(e){var t=He(je++,10),n=P();return t.__=e,M.componentDidCatch||=function(e,r){t.__&&t.__(e,r),n[1](e)},[n[0],function(){n[1](void 0)}]}function Ze(){var e=He(je++,11);if(!e.__){for(var t=M.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||=[0,0];e.__=`P`+n[0]+`-`+ n[1]++}return e.__}function Qe(){for(var e;e=Fe.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(tt),t.__h.some(nt),t.__h=[]}catch(n){t.__h=[],N.__e(n,e.__v)}}}N.__b=function(e){M=null,Ie&&Ie(e)},N.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ve&&Ve(e,t)},N.__r=function(e){Le&&Le(e),je=0;var t=(M=e.__c).__H;t&&(Me===M?(t.__h=[],M.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(tt),t.__h.some(nt),t.__h=[],je=0)),Me=M},N.diffed=function(e){Re&&Re(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Fe.push(t)!==1&&Ne===N.requestAnimationFrame||((Ne=N.requestAnimationFrame)||et)(Qe)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),Me=M=null},N.__c=function(e,t){t.some(function(e){try{e.__h.some(tt),e.__h=e.__h.filter(function(e){return!e.__||nt(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],N.__e(n,e.__v)}}),ze&&ze(e,t)},N.unmount=function(e){Be&&Be(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{tt(e)}catch(e){t=e}}),n.__H=void 0,t&&N.__e(t,n.__v))};var $e=typeof requestAnimationFrame==`function`;function et(e){var t,n=function(){clearTimeout(r),$e&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);$e&&(t=requestAnimationFrame(n))}function tt(e){var t=M,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),M=t}function nt(e){var t=M;e.__c=e.__(),M=t}function rt(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function it(e,t){return typeof t==`function`?t(e):t}function at(){return at=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},at.apply(null,arguments)}var ot=n({Children:()=>xt,Component:()=>T,Fragment:()=>w,PureComponent:()=>ht,StrictMode:()=>w,Suspense:()=>Et,SuspenseList:()=>kt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Jt,cloneElement:()=>en,createContext:()=>ve,createElement:()=>x,createFactory:()=>Xt,createPortal:()=>Nt,createRef:()=>C,default:()=>L,findDOMNode:()=>nn,flushSync:()=>an,forwardRef:()=>yt,hydrate:()=>Vt,isElement:()=>on,isFragment:()=>Qt,isMemo:()=>$t,isValidElement:()=>Zt,lazy:()=>Ot,memo:()=>gt,render:()=>Bt,startTransition:()=>dt,unmountComponentAtNode:()=>tn,unstable_batchedUpdates:()=>rn,useCallback:()=>qe,useContext:()=>Je,useDebugValue:()=>Ye,useDeferredValue:()=>ft,useEffect:()=>F,useErrorBoundary:()=>Xe,useId:()=>Ze,useImperativeHandle:()=>Ge,useInsertionEffect:()=>mt,useLayoutEffect:()=>We,useMemo:()=>Ke,useReducer:()=>Ue,useRef:()=>I,useState:()=>P,useSyncExternalStore:()=>lt,useTransition:()=>pt,version:()=>Yt});function st(e,t){for(var n in t)e[n]=t[n];return e}function ct(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var r in t)if(r!==`__source`&&e[r]!==t[r])return!0;return!1}function lt(e,t){var n=t(),r=P({t:{__:n,u:t}}),i=r[0].t,a=r[1];return We(function(){i.__=n,i.u=t,ut(i)&&a({t:i})},[e,n,t]),F(function(){return ut(i)&&a({t:i}),e(function(){ut(i)&&a({t:i})})},[e]),n}function ut(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function dt(e){e()}function ft(e){return e}function pt(){return[!1,dt]}var mt=We;function ht(e,t){this.props=e,this.context=t}function gt(e,t){function n(e){var n=this.props.ref;return n!=e.ref&&n&&(typeof n==`function`?n(null):n.current=null),t?!t(this.props,e)||n!=e.ref:ct(this.props,e)}function r(t){return this.shouldComponentUpdate=n,x(e,t)}return r.displayName=`Memo(`+(e.displayName||e.name)+`)`,r.__f=r.prototype.isReactComponent=!0,r.type=e,r}(ht.prototype=new T).isPureReactComponent=!0,ht.prototype.shouldComponentUpdate=function(e,t){return ct(this.props,e)||ct(this.state,t)};var _t=i.__b;i.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_t&&_t(e)};var vt=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.forward_ref`)||3911;function yt(e){function t(t){var n=st({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=vt,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName=`ForwardRef(`+(e.displayName||e.name)+`)`,t}var bt=function(e,t){return e==null?null:j(j(e).map(t))},xt={map:bt,forEach:bt,count:function(e){return e?j(e).length:0},only:function(e){var t=j(e);if(t.length!==1)throw`Children.only`;return t[0]},toArray:j},St=i.__e;i.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}St(e,t,n,r)};var Ct=i.unmount;function wt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),e.__c.__H=null),(e=st({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return wt(e,t,n)})),e}function Tt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Tt(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 Et(){this.__u=0,this.o=null,this.__b=null}function Dt(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Ot(e){var t,n,r,i=null;function a(a){if(t||(t=e()).then(function(e){e&&(i=e.default||e),r=!0},function(e){n=e,r=!0}),n)throw n;if(!r)throw t;return i?x(i,a):null}return a.displayName=`Lazy`,a.__f=!0,a}function kt(){this.i=null,this.l=null}i.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ct&&Ct(e)},(Et.prototype=new T).__c=function(e,t){var n=t.__c,r=this;r.o??=[],r.o.push(n);var i=Dt(r.__v),a=!1,o=function(){a||r.__z||(a=!0,n.__R=null,i?i(c):c())};n.__R=o;var s=n.__P;n.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Tt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=s,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Et.prototype.componentWillUnmount=function(){this.o=[]},Et.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]=wt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&x(w,null,e.fallback);return i&&(i.__u&=-33),[x(w,null,t.__a?null:e.children),i]};var At=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function jt(e){return this.getChildContext=function(){return e.context},e.children}function Mt(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){he(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}he(x(jt,{context:t.context},e.__v),t.v)}function Nt(e,t){var n=x(Mt,{__v:e,h:t});return n.containerInfo=t,n}(kt.prototype=new T).__a=function(e){var t=this,n=Dt(t.__v),r=t.l.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),At(t,e,r)):i()};n?n(a):a()}},kt.prototype.render=function(e){this.i=null,this.l=new Map;var t=j(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},kt.prototype.componentDidUpdate=kt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){At(e,n,t)})};var Pt=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,Ft=/^(?: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]/,It=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Lt=/[A-Z0-9]/g,Rt=typeof document<`u`,zt=function(e){return(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/:/fil|che|ra/).test(e)};function Bt(e,t,n){return t.__k??(t.textContent=``),he(e,t),typeof n==`function`&&n(),e?e.__c:null}function Vt(e,t,n){return ge(e,t),typeof n==`function`&&n(),e?e.__c:null}T.prototype.isReactComponent=!0,[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach(function(e){Object.defineProperty(T.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ht=i.event;i.event=function(e){return Ht&&(e=Ht(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Ut,Wt={configurable:!0,get:function(){return this.class}},Gt=i.vnode;i.vnode=function(e){typeof e.type==`string`&&function(e){var t=e.props,n=e.type,r={},i=n.indexOf(`-`)==-1;for(var a in t){var o=t[a];if(!(a===`value`&&`defaultValue`in t&&o==null||Rt&&a===`children`&&n===`noscript`||a===`class`||a===`className`)){var s=a.toLowerCase();a===`defaultValue`&&`value`in t&&t.value==null?a=`value`:a===`download`&&!0===o?o=``:s===`translate`&&o===`no`?o=!1:s[0]===`o`&&s[1]===`n`?s===`ondoubleclick`?a=`ondblclick`:s!==`onchange`||n!==`input`&&n!==`textarea`||zt(t.type)?s===`onfocus`?a=`onfocusin`:s===`onblur`?a=`onfocusout`:It.test(a)&&(a=s):s=a=`oninput`:i&&Ft.test(a)?a=a.replace(Lt,`-$&`).toLowerCase():o===null&&(o=void 0),s===`oninput`&&r[a=s]&&(a=`oninputCapture`),r[a]=o}}n==`select`&&(r.multiple&&Array.isArray(r.value)&&(r.value=j(t.children).forEach(function(e){e.props.selected=r.value.indexOf(e.props.value)!=-1})),r.defaultValue!=null&&(r.value=j(t.children).forEach(function(e){e.props.selected=r.multiple?r.defaultValue.indexOf(e.props.value)!=-1:r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,`className`,Wt)):t.className&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Pt,Gt&&Gt(e)};var Kt=i.__r;i.__r=function(e){Kt&&Kt(e),Ut=e.__c};var qt=i.diffed;i.diffed=function(e){qt&&qt(e);var t=e.props,n=e.__e;n!=null&&e.type===`textarea`&&`value`in t&&t.value!==n.value&&(n.value=t.value==null?``:t.value),Ut=null};var Jt={ReactCurrentDispatcher:{current:{readContext:function(e){return Ut.__n[e.__c].props.value},useCallback:qe,useContext:Je,useDebugValue:Ye,useDeferredValue:ft,useEffect:F,useId:Ze,useImperativeHandle:Ge,useInsertionEffect:mt,useLayoutEffect:We,useMemo:Ke,useReducer:Ue,useRef:I,useState:P,useSyncExternalStore:lt,useTransition:pt}}},Yt=`18.3.1`;function Xt(e){return x.bind(null,e)}function Zt(e){return!!e&&e.$$typeof===Pt}function Qt(e){return Zt(e)&&e.type===w}function $t(e){return!!e&&typeof e.displayName==`string`&&e.displayName.indexOf(`Memo(`)==0}function en(e){return Zt(e)?_e.apply(null,arguments):e}function tn(e){return!!e.__k&&(he(null,e),!0)}function nn(e){return e&&(e.base||e.nodeType===1&&e)||null}var rn=function(e,t){return e(t)},an=function(e,t){var n=i.debounceRendering;i.debounceRendering=function(e){return e()};var r=e(t);return i.debounceRendering=n,r},on=Zt,L={useState:P,useId:Ze,useReducer:Ue,useEffect:F,useLayoutEffect:We,useInsertionEffect:mt,useTransition:pt,useDeferredValue:ft,useSyncExternalStore:lt,startTransition:dt,useRef:I,useImperativeHandle:Ge,useMemo:Ke,useCallback:qe,useContext:Je,useDebugValue:Ye,version:`18.3.1`,Children:xt,render:Bt,hydrate:Vt,unmountComponentAtNode:tn,createPortal:Nt,createElement:x,createContext:ve,createFactory:Xt,cloneElement:en,createRef:C,Fragment:w,isValidElement:Zt,isElement:on,isFragment:Qt,isMemo:$t,findDOMNode:nn,Component:T,PureComponent:ht,memo:gt,forwardRef:yt,flushSync:an,unstable_batchedUpdates:rn,StrictMode:w,Suspense:Et,SuspenseList:kt,lazy:Ot,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Jt},sn=!1;function cn(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]}function ln(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var un=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?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=e.speedy===void 0?!sn: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(ln(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=cn(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),R=`-ms-`,dn=`-moz-`,z=`-webkit-`,fn=`comm`,pn=`rule`,mn=`decl`,hn=`@import`,gn=`@keyframes`,_n=`@layer`,vn=Math.abs,yn=String.fromCharCode,bn=Object.assign;function xn(e,t){return V(e,0)^45?(((t<<2^V(e,0))<<2^V(e,1))<<2^V(e,2))<<2^V(e,3):0}function Sn(e){return e.trim()}function Cn(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function wn(e,t){return e.indexOf(t)}function V(e,t){return e.charCodeAt(t)|0}function Tn(e,t,n){return e.slice(t,n)}function En(e){return e.length}function Dn(e){return e.length}function On(e,t){return t.push(e),e}function kn(e,t){return e.map(t).join(``)}var An=1,jn=1,Mn=0,Nn=0,H=0,Pn=``;function Fn(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:An,column:jn,length:o,return:``}}function In(e,t){return bn(Fn(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Ln(){return H}function Rn(){return H=Nn>0?V(Pn,--Nn):0,jn--,H===10&&(jn=1,An--),H}function zn(){return H=Nn<Mn?V(Pn,Nn++):0,jn++,H===10&&(jn=1,An++),H}function Bn(){return V(Pn,Nn)}function Vn(){return Nn}function Hn(e,t){return Tn(Pn,e,t)}function Un(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 Wn(e){return An=jn=1,Mn=En(Pn=e),Nn=0,[]}function Gn(e){return Pn=``,e}function Kn(e){return Sn(Hn(Nn-1,Yn(e===91?e+2:e===40?e+1:e)))}function qn(e){for(;(H=Bn())&&H<33;)zn();return Un(e)>2||Un(H)>3?``:` `}function Jn(e,t){for(;--t&&zn()&&!(H<48||H>102||H>57&&H<65||H>70&&H<97););return Hn(e,Vn()+(t<6&&Bn()==32&&zn()==32))}function Yn(e){for(;zn();)switch(H){case e:return Nn;case 34:case 39:e!==34&&e!==39&&Yn(H);break;case 40:e===41&&Yn(e);break;case 92:zn();break}return Nn}function Xn(e,t){for(;zn()&&e+H!==57&&!(e+H===84&&Bn()===47););return`/*`+Hn(t,Nn-1)+`*`+yn(e===47?e:zn())}function Zn(e){for(;!Un(Bn());)zn();return Hn(e,Nn)}function Qn(e){return Gn($n(``,null,null,null,[``],e=Wn(e),0,[0],e))}function $n(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=zn()){case 40:if(m!=108&&V(C,d-1)==58){wn(C+=B(Kn(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Kn(v);break;case 9:case 10:case 13:case 32:C+=qn(m);break;case 92:C+=Jn(Vn()-1,7);continue;case 47:switch(Bn()){case 42:case 47:On(tr(Xn(zn(),Vn()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=En(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=B(C,/\f/g,``)),p>0&&En(C)-d&&On(p>32?nr(C+`;`,r,n,d-1):nr(B(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(On(S=er(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)$n(C,t,S,S,b,a,d,s,x);else switch(f===99&&V(C,3)===110?100:f){case 100:case 108:case 109:case 115:$n(e,S,S,r&&On(er(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:$n(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+En(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Rn()==125)continue}switch(C+=yn(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(En(C)-1)*_,_=1;break;case 64:Bn()===45&&(C+=Kn(zn())),f=Bn(),u=d=En(y=C+=Zn(Vn())),v++;break;case 45:m===45&&En(C)==2&&(h=0)}}return a}function er(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Dn(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=Tn(e,d+1,d=vn(h=o[m])),y=e;_<p;++_)(y=Sn(h>0?f[_]+` `+v:B(v,/&\f/g,f[_])))&&(c[g++]=y);return Fn(e,t,n,i===0?pn:s,c,l,u)}function tr(e,t,n){return Fn(e,t,n,fn,yn(Ln()),Tn(e,2,-2),0)}function nr(e,t,n,r){return Fn(e,t,n,mn,Tn(e,0,r),Tn(e,r+1,-1),r)}function rr(e,t){for(var n=``,r=Dn(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function ir(e,t,n,r){switch(e.type){case _n:if(e.children.length)break;case hn:case mn:return e.return=e.return||e.value;case fn:return``;case gn:return e.return=e.value+`{`+rr(e.children,r)+`}`;case pn:e.value=e.props.join(`,`)}return En(n=rr(e.children,r))?e.return=e.value+`{`+n+`}`:``}function ar(e){var t=Dn(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function or(e){return function(t){t.root||(t=t.return)&&e(t)}}function sr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cr=function(e,t,n){for(var r=0,i=0;r=i,i=Bn(),r===38&&i===12&&(t[n]=1),!Un(i);)zn();return Hn(e,Nn)},lr=function(e,t){var n=-1,r=44;do switch(Un(r)){case 0:r===38&&Bn()===12&&(t[n]=1),e[n]+=cr(Nn-1,t,n);break;case 2:e[n]+=Kn(r);break;case 4:if(r===44){e[++n]=Bn()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=yn(r)}while(r=zn());return e},ur=function(e,t){return Gn(lr(Wn(e),t))},dr=new WeakMap,fr=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!dr.get(n))&&!r){dr.set(e,!0);for(var i=[],a=ur(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},pr=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function mr(e,t){switch(xn(e,t)){case 5103:return z+`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 z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+dn+e+R+e+e;case 6828:case 4268:return z+e+R+e+e;case 6165:return z+e+R+`flex-`+e+e;case 5187:return z+e+B(e,/(\w+).+(:[^]+)/,z+`box-$1$2`+R+`flex-$1$2`)+e;case 5443:return z+e+R+`flex-item-`+B(e,/flex-|-self/,``)+e;case 4675:return z+e+R+`flex-line-pack`+B(e,/align-content|flex-|-self/,``)+e;case 5548:return z+e+R+B(e,`shrink`,`negative`)+e;case 5292:return z+e+R+B(e,`basis`,`preferred-size`)+e;case 6060:return z+`box-`+B(e,`-grow`,``)+z+e+R+B(e,`grow`,`positive`)+e;case 4554:return z+B(e,/([^-])(transform)/g,`$1`+z+`$2`)+e;case 6187:return B(B(B(e,/(zoom-|grab)/,z+`$1`),/(image-set)/,z+`$1`),e,``)+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,z+`box-pack:$3`+R+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+z+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,z+`$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(En(e)-1-t>6)switch(V(e,t+1)){case 109:if(V(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,`$1`+z+`$2-$3$1`+dn+(V(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~wn(e,`stretch`)?mr(B(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(V(e,t+1)!==115)break;case 6444:switch(V(e,En(e)-3-(~wn(e,`!important`)&&10))){case 107:return B(e,`:`,`:`+z)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+z+(V(e,14)===45?`inline-`:``)+`box$3$1`+z+`$2$3$1`+R+`$2box$3`)+e}break;case 5936:switch(V(e,t+11)){case 114:return z+e+R+B(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return z+e+R+B(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return z+e+R+B(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return z+e+R+e+e}return e}var hr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mn:e.return=mr(e.value,e.length);break;case gn:return rr([In(e,{value:B(e.value,`@`,`@`+z)})],r);case pn:if(e.length)return kn(e.props,function(t){switch(Cn(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return rr([In(e,{props:[B(t,/:(read-\w+)/,`:`+dn+`$1`)]})],r);case`::placeholder`:return rr([In(e,{props:[B(t,/:(plac\w+)/,`:`+z+`input-$1`)]}),In(e,{props:[B(t,/:(plac\w+)/,`:`+dn+`$1`)]}),In(e,{props:[B(t,/:(plac\w+)/,R+`input-$1`)]})],r)}return``})}}],gr=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||hr,i={},a,o=[];a=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++)i[t[n]]=!0;o.push(e)});var s,c=[fr,pr],l,u=[ir,or(function(e){l.insert(e)})],d=ar(c.concat(r,u)),f=function(e){return rr(Qn(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new un({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},_r=t((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=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,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!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)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),vr=t(((e,t)=>{t.exports=_r()})),yr=t(((e,t)=>{var n=vr(),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},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),br=!0;function xr(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var Sr=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||br===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Cr=function(e,t,n){Sr(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function wr(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Tr={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},Er=!1,Dr=/[A-Z]|^ms/g,Or=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kr=function(e){return e.charCodeAt(1)===45},Ar=function(e){return e!=null&&typeof e!=`boolean`},jr=sr(function(e){return kr(e)?e:e.replace(Dr,`-$&`).toLowerCase()}),Mr=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Or,function(e,t,n){return Lr={name:t,styles:n,next:Lr},t})}return Tr[e]!==1&&!kr(e)&&typeof t==`number`&&t!==0?t+`px`:t},Nr=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function Pr(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Lr={name:i.name,styles:i.styles,next:Lr},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Lr={name:o.name,styles:o.styles,next:Lr},o=o.next;return a.styles+`;`}return Fr(e,t,n);case`function`:if(e!==void 0){var s=Lr,c=n(e);return Lr=s,Pr(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Fr(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Pr(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Ar(s)&&(r+=jr(a)+`:`+Mr(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&Er)throw Error(Nr);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Ar(o[c])&&(r+=jr(a)+`:`+Mr(a,o[c])+`;`);else{var l=Pr(e,t,o);switch(a){case`animation`:case`animationName`:r+=jr(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var Ir=/label:\s*([^\s;{]+)\s*(;|$)/g,Lr;function Rr(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Lr=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Pr(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Pr(n,t,e[o]),r&&(i+=a[o]);Ir.lastIndex=0;for(var s=``,c;(c=Ir.exec(i))!==null;)s+=`-`+c[1];return{name:wr(i)+s,styles:i,next:Lr}}var zr=function(e){return e()},Br=mt||!1,Vr=Br||zr,Hr=Br||We,Ur=ve(typeof HTMLElement<`u`?gr({key:`css`}):null),Wr=Ur.Provider,Gr=function(e){return yt(function(t,n){return e(t,Je(Ur),n)})},Kr=ve({}),qr={}.hasOwnProperty,Jr=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Yr=function(e,t){var n={};for(var r in t)qr.call(t,r)&&(n[r]=t[r]);return n[Jr]=e,n},Xr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Sr(t,n,r),Vr(function(){return Cr(t,n,r)}),null},Zr=Gr(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Jr],a=[r],o=``;typeof e.className==`string`?o=xr(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Rr(a,void 0,Je(Kr));o+=t.key+`-`+s.name;var c={};for(var l in e)qr.call(e,l)&&l!==`css`&&l!==Jr&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),x(w,null,x(Xr,{cache:t,serialized:s,isStringTag:typeof i==`string`}),x(i,c))});yr();var Qr=function(e,t){var n=arguments;if(t==null||!qr.call(t,`css`))return x.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Zr,i[1]=Yr(e,t);for(var a=2;a<r;a++)i[a]=n[a];return x.apply(null,i)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Qr||={});var $r=Gr(function(e,t){var n=e.styles,r=Rr([n],void 0,Je(Kr)),i=I();return Hr(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Hr(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&Cr(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function ei(){return Rr([...arguments])}var ti=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,ni=sr(function(e){return ti.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ri=!1,ii=ni,ai=function(e){return e!==`theme`},oi=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?ii:ai},si=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 typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},ci=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Sr(t,n,r),Vr(function(){return Cr(t,n,r)}),null},li=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=si(t,n,r),c=s||oi(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Gr(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=Je(Kr)}typeof e.className==`string`?a=xr(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Rr(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?oi(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),x(w,null,x(ci,{cache:t,serialized:m,isStringTag:typeof r==`string`}),x(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,`toString`,{value:function(){return o===void 0&&ri?`NO_COMPONENT_SELECTOR`:`.`+o}}),h.withComponent=function(t,r){return e(t,at({},n,r,{shouldForwardProp:si(h,r,!0)})).apply(void 0,d)},h}},ui=`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`.split(`.`),di=li.bind(null);ui.forEach(function(e){di[e]=di(e)});var fi=di.div`
9
2
  input[type='file']::-webkit-file-upload-button,
10
3
  input[type='file']::file-selector-button {
11
- ${{cursor:"pointer",borderWidth:"0px",backgroundColor:"var(--fl-color-primary-600)",paddingTop:"0.625rem",paddingBottom:"0.625rem",paddingLeft:"2rem",paddingRight:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))",":hover":{backgroundColor:"var(--fl-color-primary-700)"}}};
4
+ ${{cursor:`pointer`,borderWidth:`0px`,backgroundColor:`var(--fl-color-primary-600)`,paddingTop:`0.625rem`,paddingBottom:`0.625rem`,paddingLeft:`2rem`,paddingRight:`1rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:`500`,"--tw-text-opacity":`1`,color:`rgb(255 255 255 / var(--tw-text-opacity, 1))`,":hover":{backgroundColor:`var(--fl-color-primary-700)`}}};
12
5
  margin-inline-start: -1rem;
13
6
  margin-inline-end: 1rem;
14
7
  }
15
- `;var bl=0;function lr(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var f={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--bl,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return I.vnode&&I.vnode(f),f}var wl=X;function x(e,t,r){return Dr.call(t,"css")?lr(oa,ia(e,t),r):lr(e,t,r)}function q(e,t,r){return Dr.call(t,"css")?lr(oa,ia(e,t),r):lr(e,t,r)}const xl=Ye(({onChange:e,error:t,inputLabel:r})=>{const n=i=>{const o=i.target;e(o.files&&o.files[0]||void 0)};return q(_l,{children:[x("label",{css:{marginBottom:"0.5rem",display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},for:"upload_file",children:r}),x("input",{css:{display:"block",width:"100%",cursor:"pointer",borderRadius:"0.5rem",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",":focus":{outlineColor:"var(--fl-color-primary-600)"}},"aria-describedby":"upload_file",id:"upload_file",type:"file",onChange:n}),x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:t==null?void 0:t.message})]})});var Wt=e=>e.type==="checkbox",_t=e=>e instanceof Date,ye=e=>e==null;const aa=e=>typeof e=="object";var ue=e=>!ye(e)&&!Array.isArray(e)&&aa(e)&&!_t(e),sa=e=>ue(e)&&e.target?Wt(e.target)?e.target.checked:e.target.value:e,Sl=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,la=(e,t)=>e.has(Sl(t)),kl=e=>{const t=e.constructor&&e.constructor.prototype;return ue(t)&&t.hasOwnProperty("isPrototypeOf")},zn=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function be(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(zn&&(e instanceof Blob||e instanceof FileList))&&(r||ue(e)))if(t=r?[]:{},!r&&!kl(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=be(e[n]));else return e;return t}var zt=e=>Array.isArray(e)?e.filter(Boolean):[],ie=e=>e===void 0,k=(e,t,r)=>{if(!t||!ue(e))return r;const n=zt(t.split(/[,[\].]+?/)).reduce((i,o)=>ye(i)?i:i[o],e);return ie(n)||n===e?ie(e[t])?r:e[t]:n},Ve=e=>typeof e=="boolean",jn=e=>/^\w*$/.test(e),ca=e=>zt(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Y=(e,t,r)=>{let n=-1;const i=jn(t)?[t]:ca(t),o=i.length,a=o-1;for(;++n<o;){const s=i[n];let c=r;if(n!==a){const f=e[s];c=ue(f)||Array.isArray(f)?f:isNaN(+i[n+1])?{}:[]}if(s==="__proto__")return;e[s]=c,e=e[s]}return e};const cr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ae={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},je={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Cl=D.createContext(null),qn=()=>D.useContext(Cl);var ua=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Ae.all&&(t._proxyFormState[a]=!n||Ae.all),r&&(r[a]=!0),e[a]}});return i},Ce=e=>ue(e)&&!Object.keys(e).length,da=(e,t,r,n)=>{r(e);const{name:i,...o}=e;return Ce(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!n||Ae.all))},nr=e=>Array.isArray(e)?e:[e],fa=(e,t,r)=>!e||!t||e===t||nr(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Gn(e){const t=D.useRef(e);t.current=e,D.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function El(e){const t=qn(),{control:r=t.control,disabled:n,name:i,exact:o}=e||{},[a,s]=D.useState(r._formState),c=D.useRef(!0),f=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=D.useRef(i);return d.current=i,Gn({disabled:n,next:l=>c.current&&fa(d.current,l.name,o)&&da(l,f.current,r._updateFormState)&&s({...r._formState,...l}),subject:r._subjects.state}),D.useEffect(()=>(c.current=!0,f.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),ua(a,r,f.current,!1)}var Ne=e=>typeof e=="string",pa=(e,t,r,n,i)=>Ne(e)?(n&&t.watch.add(e),k(r,e,i)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),k(r,o))):(n&&(t.watchAll=!0),r);function $l(e){const t=qn(),{control:r=t.control,name:n,defaultValue:i,disabled:o,exact:a}=e||{},s=D.useRef(n);s.current=n,Gn({disabled:o,subject:r._subjects.values,next:d=>{fa(s.current,d.name,a)&&f(be(pa(s.current,r._names,d.values||r._formValues,!1,i)))}});const[c,f]=D.useState(r._getWatch(n,i));return D.useEffect(()=>r._removeUnmounted()),c}function Tl(e){const t=qn(),{name:r,disabled:n,control:i=t.control,shouldUnregister:o}=e,a=la(i._names.array,r),s=$l({control:i,name:r,defaultValue:k(i._formValues,r,k(i._defaultValues,r,e.defaultValue)),exact:!0}),c=El({control:i,name:r}),f=D.useRef(i.register(r,{...e.rules,value:s,...Ve(e.disabled)?{disabled:e.disabled}:{}}));return D.useEffect(()=>{const d=i._options.shouldUnregister||o,l=(b,v)=>{const h=k(i._fields,b);h&&h._f&&(h._f.mount=v)};if(l(r,!0),d){const b=be(k(i._options.defaultValues,r));Y(i._defaultValues,r,b),ie(k(i._formValues,r))&&Y(i._formValues,r,b)}return()=>{(a?d&&!i._state.action:d)?i.unregister(r):l(r,!1)}},[r,i,a,o]),D.useEffect(()=>{k(i._fields,r)&&i._updateDisabledField({disabled:n,fields:i._fields,name:r,value:k(i._fields,r)._f.value})},[n,r,i]),{field:{name:r,value:s,...Ve(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:D.useCallback(d=>f.current.onChange({target:{value:sa(d),name:r},type:cr.CHANGE}),[r]),onBlur:D.useCallback(()=>f.current.onBlur({target:{value:k(i._formValues,r),name:r},type:cr.BLUR}),[r,i]),ref:d=>{const l=k(i._fields,r);l&&d&&(l._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:b=>d.setCustomValidity(b),reportValidity:()=>d.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!k(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!k(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!k(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!k(c.validatingFields,r)},error:{enumerable:!0,get:()=>k(c.errors,r)}})}}const Ie=e=>e.render(Tl(e));var Rl=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Wi=e=>({isOnSubmit:!e||e===Ae.onSubmit,isOnBlur:e===Ae.onBlur,isOnChange:e===Ae.onChange,isOnAll:e===Ae.all,isOnTouch:e===Ae.onTouched}),zi=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Ft=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const o=k(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!n)break;if(a.ref&&t(a.ref,a.name)&&!n)break;Ft(s,t)}else ue(s)&&Ft(s,t)}}};var Ol=(e,t,r)=>{const n=zt(k(e,r));return Y(n,"root",t[r]),Y(e,r,n),e},Kn=e=>e.type==="file",tt=e=>typeof e=="function",ur=e=>{if(!zn)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ir=e=>Ne(e),Yn=e=>e.type==="radio",dr=e=>e instanceof RegExp;const ji={value:!1,isValid:!1},qi={value:!0,isValid:!0};var ha=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ie(e[0].attributes.value)?ie(e[0].value)||e[0].value===""?qi:{value:e[0].value,isValid:!0}:qi:ji}return ji};const Gi={isValid:!1,value:null};var ma=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Gi):Gi;function Ki(e,t,r="validate"){if(ir(e)||Array.isArray(e)&&e.every(ir)||Ve(e)&&!e)return{type:r,message:ir(e)?e:"",ref:t}}var vt=e=>ue(e)&&!dr(e)?e:{value:e,message:""},Yi=async(e,t,r,n,i)=>{const{ref:o,refs:a,required:s,maxLength:c,minLength:f,min:d,max:l,pattern:b,validate:v,name:h,valueAsNumber:g,mount:_,disabled:y}=e._f,w=k(t,h);if(!_||y)return{};const $=a?a[0]:o,L=P=>{n&&$.reportValidity&&($.setCustomValidity(Ve(P)?"":P||""),$.reportValidity())},O={},A=Yn(o),R=Wt(o),V=A||R,U=(g||Kn(o))&&ie(o.value)&&ie(w)||ur(o)&&o.value===""||w===""||Array.isArray(w)&&!w.length,j=Rl.bind(null,h,r,O),Pe=(P,N,te,oe=je.maxLength,ve=je.minLength)=>{const ne=P?N:te;O[h]={type:P?oe:ve,message:ne,ref:o,...j(P?oe:ve,ne)}};if(i?!Array.isArray(w)||!w.length:s&&(!V&&(U||ye(w))||Ve(w)&&!w||R&&!ha(a).isValid||A&&!ma(a).isValid)){const{value:P,message:N}=ir(s)?{value:!!s,message:s}:vt(s);if(P&&(O[h]={type:je.required,message:N,ref:$,...j(je.required,N)},!r))return L(N),O}if(!U&&(!ye(d)||!ye(l))){let P,N;const te=vt(l),oe=vt(d);if(!ye(w)&&!isNaN(w)){const ve=o.valueAsNumber||w&&+w;ye(te.value)||(P=ve>te.value),ye(oe.value)||(N=ve<oe.value)}else{const ve=o.valueAsDate||new Date(w),ne=Oe=>new Date(new Date().toDateString()+" "+Oe),We=o.type=="time",ze=o.type=="week";Ne(te.value)&&w&&(P=We?ne(w)>ne(te.value):ze?w>te.value:ve>new Date(te.value)),Ne(oe.value)&&w&&(N=We?ne(w)<ne(oe.value):ze?w<oe.value:ve<new Date(oe.value))}if((P||N)&&(Pe(!!P,te.message,oe.message,je.max,je.min),!r))return L(O[h].message),O}if((c||f)&&!U&&(Ne(w)||i&&Array.isArray(w))){const P=vt(c),N=vt(f),te=!ye(P.value)&&w.length>+P.value,oe=!ye(N.value)&&w.length<+N.value;if((te||oe)&&(Pe(te,P.message,N.message),!r))return L(O[h].message),O}if(b&&!U&&Ne(w)){const{value:P,message:N}=vt(b);if(dr(P)&&!w.match(P)&&(O[h]={type:je.pattern,message:N,ref:o,...j(je.pattern,N)},!r))return L(N),O}if(v){if(tt(v)){const P=await v(w,t),N=Ki(P,$);if(N&&(O[h]={...N,...j(je.validate,N.message)},!r))return L(N.message),O}else if(ue(v)){let P={};for(const N in v){if(!Ce(P)&&!r)break;const te=Ki(await v[N](w,t),$,N);te&&(P={...te,...j(N,te.message)},L(te.message),r&&(O[h]=P))}if(!Ce(P)&&(O[h]={ref:$,...P},!r))return O}}return L(!0),O};function Al(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=ie(e)?n++:e[t[n++]];return e}function Dl(e){for(const t in e)if(e.hasOwnProperty(t)&&!ie(e[t]))return!1;return!0}function ce(e,t){const r=Array.isArray(t)?t:jn(t)?[t]:ca(t),n=r.length===1?e:Al(e,r),i=r.length-1,o=r[i];return n&&delete n[o],i!==0&&(ue(n)&&Ce(n)||Array.isArray(n)&&Dl(n))&&ce(e,r.slice(0,-1)),e}var zr=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},fr=e=>ye(e)||!aa(e);function ct(e,t){if(fr(e)||fr(t))return e===t;if(_t(e)&&_t(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const o=e[i];if(!n.includes(i))return!1;if(i!=="ref"){const a=t[i];if(_t(o)&&_t(a)||ue(o)&&ue(a)||Array.isArray(o)&&Array.isArray(a)?!ct(o,a):o!==a)return!1}}return!0}var ga=e=>e.type==="select-multiple",Pl=e=>Yn(e)||Wt(e),jr=e=>ur(e)&&e.isConnected,va=e=>{for(const t in e)if(tt(e[t]))return!0;return!1};function pr(e,t={}){const r=Array.isArray(e);if(ue(e)||r)for(const n in e)Array.isArray(e[n])||ue(e[n])&&!va(e[n])?(t[n]=Array.isArray(e[n])?[]:{},pr(e[n],t[n])):ye(e[n])||(t[n]=!0);return t}function ya(e,t,r){const n=Array.isArray(e);if(ue(e)||n)for(const i in e)Array.isArray(e[i])||ue(e[i])&&!va(e[i])?ie(t)||fr(r[i])?r[i]=Array.isArray(e[i])?pr(e[i],[]):{...pr(e[i])}:ya(e[i],ye(t)?{}:t[i],r[i]):r[i]=!ct(e[i],t[i]);return r}var Yt=(e,t)=>ya(e,t,pr(t)),_a=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>ie(e)?e:t?e===""?NaN:e&&+e:r&&Ne(e)?new Date(e):n?n(e):e;function qr(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Kn(t)?t.files:Yn(t)?ma(e.refs).value:ga(t)?[...t.selectedOptions].map(({value:r})=>r):Wt(t)?ha(e.refs).value:_a(ie(t.value)?e.ref.value:t.value,e)}var Fl=(e,t,r,n)=>{const i={};for(const o of e){const a=k(t,o);a&&Y(i,o,a._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Ot=e=>ie(e)?e:dr(e)?e.source:ue(e)?dr(e.value)?e.value.source:e.value:e,Ll=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Qi(e,t,r){const n=k(e,r);if(n||jn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const o=i.join("."),a=k(t,o),s=k(e,o);if(a&&!Array.isArray(a)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:r}}var Il=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,Vl=(e,t)=>!zt(k(e,t)).length&&ce(e,t);const Nl={mode:Ae.onSubmit,reValidateMode:Ae.onChange,shouldFocusError:!0};function Ml(e={}){let t={...Nl,...e},r={submitCount:0,isDirty:!1,isLoading:tt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=ue(t.defaultValues)||ue(t.values)?be(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:be(i),a={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,f=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},l={values:zr(),array:zr(),state:zr()},b=Wi(t.mode),v=Wi(t.reValidateMode),h=t.criteriaMode===Ae.all,g=u=>p=>{clearTimeout(f),f=setTimeout(u,p)},_=async u=>{if(d.isValid||u){const p=t.resolver?Ce((await V()).errors):await j(n,!0);p!==r.isValid&&l.state.next({isValid:p})}},y=(u,p)=>{(d.isValidating||d.validatingFields)&&((u||Array.from(s.mount)).forEach(m=>{m&&(p?Y(r.validatingFields,m,p):ce(r.validatingFields,m))}),l.state.next({validatingFields:r.validatingFields,isValidating:!Ce(r.validatingFields)}))},w=(u,p=[],m,E,C=!0,S=!0)=>{if(E&&m){if(a.action=!0,S&&Array.isArray(k(n,u))){const T=m(k(n,u),E.argA,E.argB);C&&Y(n,u,T)}if(S&&Array.isArray(k(r.errors,u))){const T=m(k(r.errors,u),E.argA,E.argB);C&&Y(r.errors,u,T),Vl(r.errors,u)}if(d.touchedFields&&S&&Array.isArray(k(r.touchedFields,u))){const T=m(k(r.touchedFields,u),E.argA,E.argB);C&&Y(r.touchedFields,u,T)}d.dirtyFields&&(r.dirtyFields=Yt(i,o)),l.state.next({name:u,isDirty:P(u,p),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Y(o,u,p)},$=(u,p)=>{Y(r.errors,u,p),l.state.next({errors:r.errors})},L=u=>{r.errors=u,l.state.next({errors:r.errors,isValid:!1})},O=(u,p,m,E)=>{const C=k(n,u);if(C){const S=k(o,u,ie(m)?k(i,u):m);ie(S)||E&&E.defaultChecked||p?Y(o,u,p?S:qr(C._f)):oe(u,S),a.mount&&_()}},A=(u,p,m,E,C)=>{let S=!1,T=!1;const z={name:u},ae=!!(k(n,u)&&k(n,u)._f&&k(n,u)._f.disabled);if(!m||E){d.isDirty&&(T=r.isDirty,r.isDirty=z.isDirty=P(),S=T!==z.isDirty);const ke=ae||ct(k(i,u),p);T=!!(!ae&&k(r.dirtyFields,u)),ke||ae?ce(r.dirtyFields,u):Y(r.dirtyFields,u,!0),z.dirtyFields=r.dirtyFields,S=S||d.dirtyFields&&T!==!ke}if(m){const ke=k(r.touchedFields,u);ke||(Y(r.touchedFields,u,m),z.touchedFields=r.touchedFields,S=S||d.touchedFields&&ke!==m)}return S&&C&&l.state.next(z),S?z:{}},R=(u,p,m,E)=>{const C=k(r.errors,u),S=d.isValid&&Ve(p)&&r.isValid!==p;if(e.delayError&&m?(c=g(()=>$(u,m)),c(e.delayError)):(clearTimeout(f),c=null,m?Y(r.errors,u,m):ce(r.errors,u)),(m?!ct(C,m):C)||!Ce(E)||S){const T={...E,...S&&Ve(p)?{isValid:p}:{},errors:r.errors,name:u};r={...r,...T},l.state.next(T)}},V=async u=>{y(u,!0);const p=await t.resolver(o,t.context,Fl(u||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return y(u),p},U=async u=>{const{errors:p}=await V(u);if(u)for(const m of u){const E=k(p,m);E?Y(r.errors,m,E):ce(r.errors,m)}else r.errors=p;return p},j=async(u,p,m={valid:!0})=>{for(const E in u){const C=u[E];if(C){const{_f:S,...T}=C;if(S){const z=s.array.has(S.name);y([E],!0);const ae=await Yi(C,o,h,t.shouldUseNativeValidation&&!p,z);if(y([E]),ae[S.name]&&(m.valid=!1,p))break;!p&&(k(ae,S.name)?z?Ol(r.errors,ae,S.name):Y(r.errors,S.name,ae[S.name]):ce(r.errors,S.name))}T&&await j(T,p,m)}}return m.valid},Pe=()=>{for(const u of s.unMount){const p=k(n,u);p&&(p._f.refs?p._f.refs.every(m=>!jr(m)):!jr(p._f.ref))&&le(u)}s.unMount=new Set},P=(u,p)=>(u&&p&&Y(o,u,p),!ct(Xe(),i)),N=(u,p,m)=>pa(u,s,{...a.mount?o:ie(p)?i:Ne(u)?{[u]:p}:p},m,p),te=u=>zt(k(a.mount?o:i,u,e.shouldUnregister?k(i,u,[]):[])),oe=(u,p,m={})=>{const E=k(n,u);let C=p;if(E){const S=E._f;S&&(!S.disabled&&Y(o,u,_a(p,S)),C=ur(S.ref)&&ye(p)?"":p,ga(S.ref)?[...S.ref.options].forEach(T=>T.selected=C.includes(T.value)):S.refs?Wt(S.ref)?S.refs.length>1?S.refs.forEach(T=>(!T.defaultChecked||!T.disabled)&&(T.checked=Array.isArray(C)?!!C.find(z=>z===T.value):C===T.value)):S.refs[0]&&(S.refs[0].checked=!!C):S.refs.forEach(T=>T.checked=T.value===C):Kn(S.ref)?S.ref.value="":(S.ref.value=C,S.ref.type||l.values.next({name:u,values:{...o}})))}(m.shouldDirty||m.shouldTouch)&&A(u,C,m.shouldTouch,m.shouldDirty,!0),m.shouldValidate&&Oe(u)},ve=(u,p,m)=>{for(const E in p){const C=p[E],S=`${u}.${E}`,T=k(n,S);(s.array.has(u)||!fr(C)||T&&!T._f)&&!_t(C)?ve(S,C,m):oe(S,C,m)}},ne=(u,p,m={})=>{const E=k(n,u),C=s.array.has(u),S=be(p);Y(o,u,S),C?(l.array.next({name:u,values:{...o}}),(d.isDirty||d.dirtyFields)&&m.shouldDirty&&l.state.next({name:u,dirtyFields:Yt(i,o),isDirty:P(u,S)})):E&&!E._f&&!ye(S)?ve(u,S,m):oe(u,S,m),zi(u,s)&&l.state.next({...r}),l.values.next({name:a.mount?u:void 0,values:{...o}})},We=async u=>{a.mount=!0;const p=u.target;let m=p.name,E=!0;const C=k(n,m),S=()=>p.type?qr(C._f):sa(u),T=z=>{E=Number.isNaN(z)||z===k(o,m,z)};if(C){let z,ae;const ke=S(),gt=u.type===cr.BLUR||u.type===cr.FOCUS_OUT,Ua=!Ll(C._f)&&!t.resolver&&!k(r.errors,m)&&!C._f.deps||Il(gt,k(r.touchedFields,m),r.isSubmitted,v,b),Nr=zi(m,s,gt);Y(o,m,ke),gt?(C._f.onBlur&&C._f.onBlur(u),c&&c(0)):C._f.onChange&&C._f.onChange(u);const Mr=A(m,ke,gt,!1),Ba=!Ce(Mr)||Nr;if(!gt&&l.values.next({name:m,type:u.type,values:{...o}}),Ua)return d.isValid&&_(),Ba&&l.state.next({name:m,...Nr?{}:Mr});if(!gt&&Nr&&l.state.next({...r}),t.resolver){const{errors:di}=await V([m]);if(T(ke),E){const Wa=Qi(r.errors,n,m),fi=Qi(di,n,Wa.name||m);z=fi.error,m=fi.name,ae=Ce(di)}}else y([m],!0),z=(await Yi(C,o,h,t.shouldUseNativeValidation))[m],y([m]),T(ke),E&&(z?ae=!1:d.isValid&&(ae=await j(n,!0)));E&&(C._f.deps&&Oe(C._f.deps),R(m,ae,z,Mr))}},ze=(u,p)=>{if(k(r.errors,p)&&u.focus)return u.focus(),1},Oe=async(u,p={})=>{let m,E;const C=nr(u);if(t.resolver){const S=await U(ie(u)?u:C);m=Ce(S),E=u?!C.some(T=>k(S,T)):m}else u?(E=(await Promise.all(C.map(async S=>{const T=k(n,S);return await j(T&&T._f?{[S]:T}:T)}))).every(Boolean),!(!E&&!r.isValid)&&_()):E=m=await j(n);return l.state.next({...!Ne(u)||d.isValid&&m!==r.isValid?{}:{name:u},...t.resolver||!u?{isValid:m}:{},errors:r.errors}),p.shouldFocus&&!E&&Ft(n,ze,u?C:s.mount),E},Xe=u=>{const p={...a.mount?o:i};return ie(u)?p:Ne(u)?k(p,u):u.map(m=>k(p,m))},_e=(u,p)=>({invalid:!!k((p||r).errors,u),isDirty:!!k((p||r).dirtyFields,u),error:k((p||r).errors,u),isValidating:!!k(r.validatingFields,u),isTouched:!!k((p||r).touchedFields,u)}),Tt=u=>{u&&nr(u).forEach(p=>ce(r.errors,p)),l.state.next({errors:u?r.errors:{}})},F=(u,p,m)=>{const E=(k(n,u,{_f:{}})._f||{}).ref,C=k(r.errors,u)||{},{ref:S,message:T,type:z,...ae}=C;Y(r.errors,u,{...ae,...p,ref:E}),l.state.next({name:u,errors:r.errors,isValid:!1}),m&&m.shouldFocus&&E&&E.focus&&E.focus()},Z=(u,p)=>tt(u)?l.values.subscribe({next:m=>u(N(void 0,p),m)}):N(u,p,!0),le=(u,p={})=>{for(const m of u?nr(u):s.mount)s.mount.delete(m),s.array.delete(m),p.keepValue||(ce(n,m),ce(o,m)),!p.keepError&&ce(r.errors,m),!p.keepDirty&&ce(r.dirtyFields,m),!p.keepTouched&&ce(r.touchedFields,m),!p.keepIsValidating&&ce(r.validatingFields,m),!t.shouldUnregister&&!p.keepDefaultValue&&ce(i,m);l.values.next({values:{...o}}),l.state.next({...r,...p.keepDirty?{isDirty:P()}:{}}),!p.keepIsValid&&_()},st=({disabled:u,name:p,field:m,fields:E,value:C})=>{if(Ve(u)&&a.mount||u){const S=u?void 0:ie(C)?qr(m?m._f:k(E,p)._f):C;Y(o,p,S),A(p,S,!1,!1,!0)}},mt=(u,p={})=>{let m=k(n,u);const E=Ve(p.disabled);return Y(n,u,{...m||{},_f:{...m&&m._f?m._f:{ref:{name:u}},name:u,mount:!0,...p}}),s.mount.add(u),m?st({field:m,disabled:p.disabled,name:u,value:p.value}):O(u,!0,p.value),{...E?{disabled:p.disabled}:{},...t.progressive?{required:!!p.required,min:Ot(p.min),max:Ot(p.max),minLength:Ot(p.minLength),maxLength:Ot(p.maxLength),pattern:Ot(p.pattern)}:{},name:u,onChange:We,onBlur:We,ref:C=>{if(C){mt(u,p),m=k(n,u);const S=ie(C.value)&&C.querySelectorAll&&C.querySelectorAll("input,select,textarea")[0]||C,T=Pl(S),z=m._f.refs||[];if(T?z.find(ae=>ae===S):S===m._f.ref)return;Y(n,u,{_f:{...m._f,...T?{refs:[...z.filter(jr),S,...Array.isArray(k(i,u))?[{}]:[]],ref:{type:S.type,name:u}}:{ref:S}}}),O(u,!1,void 0,S)}else m=k(n,u,{}),m._f&&(m._f.mount=!1),(t.shouldUnregister||p.shouldUnregister)&&!(la(s.array,u)&&a.action)&&s.unMount.add(u)}}},si=()=>t.shouldFocusError&&Ft(n,ze,s.mount),Ma=u=>{Ve(u)&&(l.state.next({disabled:u}),Ft(n,(p,m)=>{const E=k(n,m);E&&(p.disabled=E._f.disabled||u,Array.isArray(E._f.refs)&&E._f.refs.forEach(C=>{C.disabled=E._f.disabled||u}))},0,!1))},li=(u,p)=>async m=>{let E;m&&(m.preventDefault&&m.preventDefault(),m.persist&&m.persist());let C=be(o);if(l.state.next({isSubmitting:!0}),t.resolver){const{errors:S,values:T}=await V();r.errors=S,C=T}else await j(n);if(ce(r.errors,"root"),Ce(r.errors)){l.state.next({errors:{}});try{await u(C,m)}catch(S){E=S}}else p&&await p({...r.errors},m),si(),setTimeout(si);if(l.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ce(r.errors)&&!E,submitCount:r.submitCount+1,errors:r.errors}),E)throw E},Ha=(u,p={})=>{k(n,u)&&(ie(p.defaultValue)?ne(u,be(k(i,u))):(ne(u,p.defaultValue),Y(i,u,be(p.defaultValue))),p.keepTouched||ce(r.touchedFields,u),p.keepDirty||(ce(r.dirtyFields,u),r.isDirty=p.defaultValue?P(u,be(k(i,u))):P()),p.keepError||(ce(r.errors,u),d.isValid&&_()),l.state.next({...r}))},ci=(u,p={})=>{const m=u?be(u):i,E=be(m),C=Ce(u),S=C?i:E;if(p.keepDefaultValues||(i=m),!p.keepValues){if(p.keepDirtyValues)for(const T of s.mount)k(r.dirtyFields,T)?Y(S,T,k(o,T)):ne(T,k(S,T));else{if(zn&&ie(u))for(const T of s.mount){const z=k(n,T);if(z&&z._f){const ae=Array.isArray(z._f.refs)?z._f.refs[0]:z._f.ref;if(ur(ae)){const ke=ae.closest("form");if(ke){ke.reset();break}}}}n={}}o=e.shouldUnregister?p.keepDefaultValues?be(i):{}:be(S),l.array.next({values:{...S}}),l.values.next({values:{...S}})}s={mount:p.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!p.keepIsValid||!!p.keepDirtyValues,a.watch=!!e.shouldUnregister,l.state.next({submitCount:p.keepSubmitCount?r.submitCount:0,isDirty:C?!1:p.keepDirty?r.isDirty:!!(p.keepDefaultValues&&!ct(u,i)),isSubmitted:p.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:C?[]:p.keepDirtyValues?p.keepDefaultValues&&o?Yt(i,o):r.dirtyFields:p.keepDefaultValues&&u?Yt(i,u):p.keepDirty?r.dirtyFields:{},touchedFields:p.keepTouched?r.touchedFields:{},errors:p.keepErrors?r.errors:{},isSubmitSuccessful:p.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},ui=(u,p)=>ci(tt(u)?u(o):u,p);return{control:{register:mt,unregister:le,getFieldState:_e,handleSubmit:li,setError:F,_executeSchema:V,_getWatch:N,_getDirty:P,_updateValid:_,_removeUnmounted:Pe,_updateFieldArray:w,_updateDisabledField:st,_getFieldArray:te,_reset:ci,_resetDefaultValues:()=>tt(t.defaultValues)&&t.defaultValues().then(u=>{ui(u,t.resetOptions),l.state.next({isLoading:!1})}),_updateFormState:u=>{r={...r,...u}},_disableForm:Ma,_subjects:l,_proxyFormState:d,_setErrors:L,get _fields(){return n},get _formValues(){return o},get _state(){return a},set _state(u){a=u},get _defaultValues(){return i},get _names(){return s},set _names(u){s=u},get _formState(){return r},set _formState(u){r=u},get _options(){return t},set _options(u){t={...t,...u}}},trigger:Oe,register:mt,handleSubmit:li,watch:Z,setValue:ne,getValues:Xe,reset:ui,resetField:Ha,clearErrors:Tt,unregister:le,setError:F,setFocus:(u,p={})=>{const m=k(n,u),E=m&&m._f;if(E){const C=E.refs?E.refs[0]:E.ref;C.focus&&(C.focus(),p.shouldSelect&&C.select())}},getFieldState:_e}}function Qn(e={}){const t=D.useRef(),r=D.useRef(),[n,i]=D.useState({isDirty:!1,isValidating:!1,isLoading:tt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:tt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Ml(e),formState:n});const o=t.current.control;return o._options=e,Gn({subject:o._subjects.state,next:a=>{da(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),D.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),D.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),D.useEffect(()=>{e.values&&!ct(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),D.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),D.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),D.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=ua(n,o),t.current}const Hl=Ue.button`
16
- ${{borderRadius:"0.375rem",backgroundColor:"var(--fl-color-primary-600)",paddingLeft:"0.875rem",paddingRight:"0.875rem",paddingTop:"0.625rem",paddingBottom:"0.625rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{backgroundColor:"var(--fl-color-primary-700)"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"var(--fl-color-primary-600)"}}}
17
- ${({disabled:e})=>e&&{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(156 163 175 / var(--tw-bg-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(156 163 175 / var(--tw-bg-opacity))"}}}
18
- `,Pr=({as:e,download:t,href:r,disabled:n,children:i,onClick:o,type:a})=>x(Hl,{as:e||"button",download:t,href:r,type:a||"button",disabled:n,onClick:o,children:i}),ba=({blob:e,children:t,fileName:r})=>{const[n,i]=J();return ee(()=>{const o=URL.createObjectURL(e);return i(o),()=>{URL.revokeObjectURL(o),i(void 0)}},[e]),x(Pr,{as:"a",href:n??"#",download:r,children:t})},wa=Ue.div`
19
- ${()=>({height:"1.5rem",width:"1.5rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--fl-color-primary-600)",borderLeftColor:"transparent",borderTopColor:"transparent"})}
20
- `,Xn=async e=>{var t;try{const r=await((t=e.response)==null?void 0:t.text());return JSON.parse(r)}catch{return{}}},xa=e=>new Date(Date.now()+e*24*60*60*1e3).toISOString().split("T")[0],Ul=15e3;class Et extends Error{constructor(r,n){super(r);pi(this,"_response");this._response=n,Object.setPrototypeOf(this,Et.prototype)}get response(){return this._response}}const Sa=async(e,t,r,n)=>{var a;const i=n instanceof FormData,o=await fetch(e,{method:r,body:n&&!i?JSON.stringify(n):n,headers:{"x-app-version":"1.0.1004",authorization:`Bearer ${t}`},signal:(a=AbortSignal==null?void 0:AbortSignal.timeout)==null?void 0:a.call(AbortSignal,Ul)});if(!o.ok)throw new Et(`[API Error] Status: ${o.status}, ${o.statusText}`,o);return o},ka=async(e,t,r,n)=>{const i=await Sa(e,t,r,n),o=i.headers.get("Content-Type");return o!=null&&o.includes("application/json")?await i.json():await i.blob()},Ca=Be({backend:{url:"",accessToken:""}}),Bl=()=>Se(Ca),Ze=e=>{const t=Bl();return ge(()=>e(t),[e,t])},Wl=e=>async t=>{const r=new FormData;r.append("source",t.source),r.append("transactionFile",t.transactionsFile);const n=new URL(`${e.backend.url}/salary-packaging/admin/v1.0/catche/receipt-batch`);return ka(n,e.backend.accessToken,"POST",r)},zl=e=>async t=>{const r=new URL(`${e.backend.url}/salary-packaging/admin/v1.0/reports/${t.report}?startDate=${t.startDate||""}&endDate=${t.endDate||""}&groupCode=${t.groupCode||""}&clientId=${t.clientId||""}`);return ka(r,e.backend.accessToken,"GET")},$t=(e,t)=>async r=>{const n=xa(2),i=new URL(`${e.backend.url}${t}`);return Sa(i,e.backend.accessToken,"POST",{startDate:r,endDate:n})},jl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/clients"),ql=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/drivers"),Gl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/contract-budgets"),Kl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/invoice-items"),Yl=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/deleted-invoice-items"),Ql=e=>$t(e,"/salary-packaging/admin/v1.0/ingest/vehicle-contracts"),Zn=()=>({postCatcheReceiptBatch:Ze(Wl),getCatcheReport:Ze(zl),ingestClients:Ze(jl),ingestDrivers:Ze(ql),ingestContractBudgets:Ze(Gl),ingestInvoiceItems:Ze(Kl),ingestDeletedInvoiceItems:Ze(Yl),ingestVehicleContracts:Ze(Ql)});var Xl=Object.defineProperty,Zl=(e,t,r)=>t in e?Xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gr=(e,t,r)=>(Zl(e,typeof t!="symbol"?t+"":t,r),r);let Jl=class{constructor(){Gr(this,"current",this.detect()),Gr(this,"handoffState","pending"),Gr(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},dt=new Jl,Te=(e,t)=>{dt.isServer?ee(e,t):ot(e,t)};function He(e){let t=H(e);return Te(()=>{t.current=e},[e]),t}function Ea(e,t){let[r,n]=J(e),i=He(e);return Te(()=>n(i.current),[i,n,...t]),r}let M=function(e){let t=He(e);return D.useCallback((...r)=>t.current(...r),[t])};function ec(e,t,r){let[n,i]=J(r),o=e!==void 0,a=H(o),s=H(!1),c=H(!1);return o&&!a.current&&!s.current?(s.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&a.current&&!c.current&&(c.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:n,M(f=>(o||i(f),t==null?void 0:t(f)))]}function tc(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function it(){let e=[],t={addEventListener(r,n,i,o){return r.addEventListener(n,i,o),t.add(()=>r.removeEventListener(n,i,o))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return tc(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let o=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:o})})},group(r){let n=it();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function St(){let[e]=J(it);return ee(()=>()=>e.dispose(),[e]),e}function rc(){let e=typeof document>"u";return(t=>t.useSyncExternalStore)(cn)(()=>()=>{},()=>!1,()=>!e)}function Jn(){let e=rc(),[t,r]=J(dt.isHandoffComplete);return t&&dt.isHandoffComplete===!1&&r(!1),ee(()=>{t!==!0&&r(!0)},[t]),ee(()=>dt.handoff(),[]),e?!1:t}var Xi;let Fr=(Xi=D.useId)!=null?Xi:function(){let e=Jn(),[t,r]=D.useState(e?()=>dt.nextId():null);return Te(()=>{t===null&&r(dt.nextId())},[t]),t!=null?""+t:void 0};function he(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,he),n}function $a(e){return dt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Zi=["[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(",");var 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))(nc||{}),ic=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ic||{}),oc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(oc||{}),ei=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ei||{});function Ta(e,t=0){var r;return e===((r=$a(e))==null?void 0:r.body)?!1:he(t,{0(){return e.matches(Zi)},1(){let n=e;for(;n!==null;){if(n.matches(Zi))return!0;n=n.parentElement}return!1}})}var ac=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ac||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function sc(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function lc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function cc(){return/Android/gi.test(window.navigator.userAgent)}function uc(){return lc()||cc()}function Qt(e,t,r){let n=He(t);ee(()=>{function i(o){n.current(o)}return document.addEventListener(e,i,r),()=>document.removeEventListener(e,i,r)},[e,r])}function dc(e,t,r){let n=He(t);ee(()=>{function i(o){n.current(o)}return window.addEventListener(e,i,r),()=>window.removeEventListener(e,i,r)},[e,r])}function fc(e,t,r=!0){let n=H(!1);ee(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function i(a,s){if(!n.current||a.defaultPrevented)return;let c=s(a);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function d(l){return typeof l=="function"?d(l()):Array.isArray(l)||l instanceof Set?l:[l]}(e);for(let d of f){if(d===null)continue;let l=d instanceof HTMLElement?d:d.current;if(l!=null&&l.contains(c)||a.composed&&a.composedPath().includes(l))return}return!Ta(c,ei.Loose)&&c.tabIndex!==-1&&a.preventDefault(),t(a,c)}let o=H(null);Qt("pointerdown",a=>{var s,c;n.current&&(o.current=((c=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:c[0])||a.target)},!0),Qt("mousedown",a=>{var s,c;n.current&&(o.current=((c=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:c[0])||a.target)},!0),Qt("click",a=>{uc()||o.current&&(i(a,()=>o.current),o.current=null)},!0),Qt("touchend",a=>i(a,()=>a.target instanceof HTMLElement?a.target:null),!0),dc("blur",a=>i(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ji(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function pc(e,t){let[r,n]=J(()=>Ji(e));return Te(()=>{n(Ji(e))},[e.type,e.as]),Te(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let hc=Symbol();function ht(...e){let t=H(e);ee(()=>{t.current=e},[e]);let r=M(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[hc]))?void 0:r}function eo(e){return[e.screenX,e.screenY]}function mc(){let e=H([-1,-1]);return{wasMoved(t){let r=eo(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=eo(t)}}}function hr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var mr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mr||{}),rt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(rt||{});function at({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a,mergeRefs:s}){s=s??gc;let c=Ra(t,e);if(o)return Xt(c,r,n,a,s);let f=i??0;if(f&2){let{static:d=!1,...l}=c;if(d)return Xt(l,r,n,a,s)}if(f&1){let{unmount:d=!0,...l}=c;return he(d?0:1,{0(){return null},1(){return Xt({...l,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return Xt(c,r,n,a,s)}function Xt(e,t={},r,n,i){let{as:o=r,children:a,refName:s="ref",...c}=Kr(e,["unmount","static"]),f=e.ref!==void 0?{[s]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let l={};if(t){let b=!1,v=[];for(let[h,g]of Object.entries(t))typeof g=="boolean"&&(b=!0),g===!0&&v.push(h);b&&(l["data-headlessui-state"]=v.join(" "))}if(o===X&&Object.keys(pn(c)).length>0){if(!kt(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(g=>` - ${g}`).join(`
21
- `),"","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(g=>` - ${g}`).join(`
8
+ `,pi=0;Array.isArray;function mi(e,t,n,r,a,o){t||={};var s,c,l=t;if(`ref`in l)for(c in l={},t)c==`ref`?s=t[c]:l[c]=t[c];var u={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--pi,__i:-1,__u:0,__source:a,__self:o};if(typeof e==`function`&&(s=e.defaultProps))for(c in s)l[c]===void 0&&(l[c]=s[c]);return i.vnode&&i.vnode(u),u}var hi=w,U=function(e,t,n){return qr.call(t,`css`)?mi(Zr,Yr(e,t),n):mi(e,t,n)},W=function(e,t,n){return qr.call(t,`css`)?mi(Zr,Yr(e,t),n):mi(e,t,n)},gi=yt(({onChange:e,error:t,inputLabel:n})=>{let r=t=>{let n=t.target;e(n.files&&n.files[0]||void 0)};return W(fi,{children:[U(`label`,{css:{marginBottom:`0.5rem`,display:`block`,fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:`500`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`},for:`upload_file`,children:n}),U(`input`,{css:{display:`block`,width:`100%`,cursor:`pointer`,borderRadius:`0.5rem`,borderWidth:`1px`,"--tw-border-opacity":`1`,borderColor:`rgb(209 213 219 / var(--tw-border-opacity, 1))`,"--tw-bg-opacity":`1`,backgroundColor:`rgb(249 250 251 / var(--tw-bg-opacity, 1))`,fontSize:`0.875rem`,lineHeight:`1.25rem`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`,":focus":{outlineColor:`var(--fl-color-primary-600)`}},"aria-describedby":`upload_file`,id:`upload_file`,type:`file`,onChange:r}),U(`p`,{css:{marginTop:`0.5rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`,"--tw-text-opacity":`1`,color:`rgb(220 38 38 / var(--tw-text-opacity, 1))`},children:t?.message})]})}),_i=e=>e.type===`checkbox`,vi=e=>e instanceof Date,yi=e=>e==null,bi=e=>typeof e==`object`,G=e=>!yi(e)&&!Array.isArray(e)&&bi(e)&&!vi(e),xi=e=>G(e)&&e.target?_i(e.target)?e.target.checked:e.target.value:e,Si=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ci=(e,t)=>e.has(Si(t)),wi=e=>{let t=e.constructor&&e.constructor.prototype;return G(t)&&t.hasOwnProperty(`isPrototypeOf`)},Ti=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function K(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(Ti&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(G(e)&&wi(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=K(e[t]));return r}var Ei=e=>/^\w*$/.test(e),q=e=>e===void 0,Di=e=>Array.isArray(e)?e.filter(Boolean):[],Oi=e=>Di(e.replace(/["|']|\]/g,``).split(/\.|\[/)),J=(e,t,n)=>{if(!t||!G(e))return n;let r=(Ei(t)?[t]:Oi(t)).reduce((e,t)=>yi(e)?e:e[t],e);return q(r)||r===e?q(e[t])?n:e[t]:r},ki=e=>typeof e==`boolean`,Ai=e=>typeof e==`function`,Y=(e,t,n)=>{let r=-1,i=Ei(t)?[t]:Oi(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=G(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(t===`__proto__`||t===`constructor`||t===`prototype`)return;e[t]=a,e=e[t]}},ji={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},Mi={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},Ni={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},Pi=`form`,Fi=`root`,Ii=L.createContext(null);Ii.displayName=`HookFormControlContext`;var Li=()=>L.useContext(Ii),Ri=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==Mi.all&&(t._proxyFormState[i]=!r||Mi.all),n&&(n[i]=!0),e[i]}});return i},zi=typeof window<`u`?L.useLayoutEffect:L.useEffect;function Bi(e){let t=Li(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=L.useState(n._formState),c=L.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return zi(()=>n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e})}}),[i,r,a]),L.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),L.useMemo(()=>Ri(o,n,c.current,!1),[o,n])}var Vi=e=>typeof e==`string`,Hi=(e,t,n,r,i)=>Vi(e)?(r&&t.watch.add(e),J(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),J(n,e))):(r&&(t.watchAll=!0),n),Ui=e=>yi(e)||!bi(e);function Wi(e,t,n=new WeakSet){if(Ui(e)||Ui(t))return Object.is(e,t);if(vi(e)&&vi(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let a of r){let r=e[a];if(!i.includes(a))return!1;if(a!==`ref`){let e=t[a];if(vi(r)&&vi(e)||G(r)&&G(e)||Array.isArray(r)&&Array.isArray(e)?!Wi(r,e,n):!Object.is(r,e))return!1}}return!0}function Gi(e){let t=Li(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=L.useRef(i),l=L.useRef(s),u=L.useRef(void 0),d=L.useRef(n),f=L.useRef(r);l.current=s;let[p,m]=L.useState(()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e}),h=L.useCallback(e=>{let t=Hi(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),g=L.useCallback(e=>{if(!a){let t=Hi(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);Wi(e,u.current)||(m(e),u.current=e)}else m(t)}},[n._formValues,n._names,a,r]);zi(()=>((d.current!==n||!Wi(f.current,r))&&(d.current=n,f.current=r,g()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{g(e.values)}})),[n,o,r,g]),L.useEffect(()=>n._removeUnmounted());let _=d.current!==n,v=f.current,y=L.useMemo(()=>{if(a)return null;let e=!_&&!Wi(v,r);return _||e?h():null},[a,_,r,v,h]);return y===null?p:y}function Ki(e){let t=Li(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=Ci(i._names.array,n),l=Gi({control:i,name:n,defaultValue:L.useMemo(()=>J(i._formValues,n,J(i._defaultValues,n,o)),[i,n,o]),exact:s}),u=Bi({control:i,name:n,exact:s}),d=L.useRef(e),f=L.useRef(void 0),p=L.useRef(i.register(n,{...e.rules,value:l,...ki(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=L.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!J(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!J(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!J(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!J(u.validatingFields,n)},error:{enumerable:!0,get:()=>J(u.errors,n)}}),[u,n]),h=L.useCallback(e=>p.current.onChange({target:{value:xi(e),name:n},type:ji.CHANGE}),[n]),g=L.useCallback(()=>p.current.onBlur({target:{value:J(i._formValues,n),name:n},type:ji.BLUR}),[n,i._formValues]),_=L.useCallback(e=>{let t=J(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>Ai(e.focus)&&e.focus(),select:()=>Ai(e.select)&&e.select(),setCustomValidity:t=>Ai(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Ai(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),v=L.useMemo(()=>({name:n,value:l,...ki(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return L.useEffect(()=>{let e=i._options.shouldUnregister||a,t=f.current;t&&t!==n&&!c&&i.unregister(t),i.register(n,{...d.current.rules,...ki(d.current.disabled)?{disabled:d.current.disabled}:{}});let r=(e,t)=>{let n=J(i._fields,e);n&&n._f&&(n._f.mount=t)};if(r(n,!0),e){let e=K(J(i._options.defaultValues,n,d.current.defaultValue));Y(i._defaultValues,n,e),q(J(i._formValues,n))&&Y(i._formValues,n,e)}return!c&&i.register(n),f.current=n,()=>{(c?e&&!i._state.action:e)?i.unregister(n):r(n,!1)}},[n,i,c,a]),L.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),L.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var qi=e=>e.render(Ki(e)),Ji=L.createContext(null);Ji.displayName=`HookFormContext`;var Yi=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Xi=e=>Array.isArray(e)?e:[e],Zi=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function Qi(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&G(i)&&a){let e=Qi(i,a);G(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var $i=e=>G(e)&&!Object.keys(e).length,ea=e=>e.type===`file`,ta=e=>{if(!Ti)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},na=e=>e.type===`select-multiple`,ra=e=>e.type===`radio`,ia=e=>ra(e)||_i(e),aa=e=>ta(e)&&e.isConnected;function oa(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;)e=q(e)?r++:e[t[r++]];return e}function sa(e){for(let t in e)if(e.hasOwnProperty(t)&&!q(e[t]))return!1;return!0}function X(e,t){let n=Array.isArray(t)?t:Ei(t)?[t]:Oi(t),r=n.length===1?e:oa(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(G(r)&&$i(r)||Array.isArray(r)&&sa(r))&&X(e,n.slice(0,-1)),e}var ca=e=>{for(let t in e)if(Ai(e[t]))return!0;return!1};function la(e){return Array.isArray(e)||G(e)&&!ca(e)}function ua(e,t={}){for(let n in e){let r=e[n];la(r)?(t[n]=Array.isArray(r)?[]:{},ua(r,t[n])):q(r)||(t[n]=!0)}return t}function da(e,t,n){n||=ua(t);for(let r in e){let i=e[r];if(la(i))q(t)||Ui(n[r])?n[r]=ua(i,Array.isArray(i)?[]:{}):da(i,yi(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!Wi(i,e)}}return n}var fa={value:!1,isValid:!1},pa={value:!0,isValid:!0},ma=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!q(e[0].attributes.value)?q(e[0].value)||e[0].value===``?pa:{value:e[0].value,isValid:!0}:pa:fa}return fa},ha=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>q(e)?e:t?e===``?NaN:e&&+e:n&&Vi(e)?new Date(e):r?r(e):e,ga={isValid:!1,value:null},_a=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,ga):ga;function va(e){let t=e.ref;return ea(t)?t.files:ra(t)?_a(e.refs).value:na(t)?[...t.selectedOptions].map(({value:e})=>e):_i(t)?ma(e.refs).value:ha(q(t.value)?e.ref.value:t.value,e)}var ya=(e,t,n,r)=>{let i={};for(let n of e){let e=J(t,n);e&&Y(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ba=e=>e instanceof RegExp,xa=e=>q(e)?e:ba(e)?e.source:G(e)?ba(e.value)?e.value.source:e.value:e,Sa=e=>({isOnSubmit:!e||e===Mi.onSubmit,isOnBlur:e===Mi.onBlur,isOnChange:e===Mi.onChange,isOnAll:e===Mi.all,isOnTouch:e===Mi.onTouched}),Ca=`AsyncFunction`,wa=e=>!!e&&!!e.validate&&!!(Ai(e.validate)&&e.validate.constructor.name===Ca||G(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Ca)),Ta=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Ea=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Da=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=J(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(Da(a,t))break}else if(G(a)&&Da(a,t))break}}};function Oa(e,t,n){let r=J(e,n);if(r||Ei(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=J(t,r),o=J(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var ka=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return $i(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||Mi.all))},Aa=(e,t,n)=>!e||!t||e===t||Xi(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),ja=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ma=(e,t)=>!Di(J(e,t)).length&&X(e,t),Na=(e,t,n)=>{let r=Xi(J(e,n));return Y(r,Fi,t[n]),Y(e,n,r),e};function Pa(e,t,n=`validate`){if(Vi(e)||Array.isArray(e)&&e.every(Vi)||ki(e)&&!e)return{type:n,message:Vi(e)?e:``,ref:t}}var Fa=e=>G(e)&&!ba(e)?e:{value:e,message:``},Ia=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=J(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{i&&y.reportValidity&&(y.setCustomValidity(ki(e)?``:e||``),y.reportValidity())},x={},S=ra(o),C=_i(o),w=S||C,T=(g||ea(o))&&q(o.value)&&q(v)||ta(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length,E=Yi.bind(null,h,r,x),D=(e,t,n,r=Ni.maxLength,i=Ni.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||yi(v))||ki(v)&&!v||C&&!ma(s).isValid||S&&!_a(s).isValid)){let{value:e,message:t}=Vi(c)?{value:!!c,message:c}:Fa(c);if(e&&(x[h]={type:Ni.required,message:t,ref:y,...E(Ni.required,t)},!r))return b(t),x}if(!T&&(!yi(d)||!yi(f))){let e,t,n=Fa(f),i=Fa(d);if(!yi(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;yi(n.value)||(e=r>n.value),yi(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;Vi(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),Vi(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,Ni.max,Ni.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(Vi(v)||a&&Array.isArray(v))){let e=Fa(l),t=Fa(u),n=!yi(e.value)&&v.length>+e.value,i=!yi(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&Vi(v)){let{value:e,message:t}=Fa(p);if(ba(e)&&!v.match(e)&&(x[h]={type:Ni.pattern,message:t,ref:o,...E(Ni.pattern,t)},!r))return b(t),x}if(m){if(Ai(m)){let e=Pa(await m(v,n),y);if(e&&(x[h]={...e,...E(Ni.validate,e.message)},!r))return b(e.message),x}else if(G(m)){let e={};for(let t in m){if(!$i(e)&&!r)break;let i=Pa(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!$i(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},La={mode:Mi.onSubmit,reValidateMode:Mi.onChange,shouldFocusError:!0};function Ra(e={}){let t={...La,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ai(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(G(t.defaultValues)||G(t.values))&&K(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:K(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0,u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...u},f={...d},p={array:Zi(),state:Zi()},m=t.criteriaMode===Mi.all,h=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},g=async e=>{if(!o.keepIsValid&&!t.disabled&&(d.isValid||f.isValid||e)){let e;t.resolver?(e=$i((await w()).errors),_()):e=await D({fields:r,onlyCheckValid:!0,eventType:ji.VALID}),e!==n.isValid&&p.state.next({isValid:e})}},_=(e,r)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?Y(n.validatingFields,e,r):X(n.validatingFields,e))}),p.state.next({validatingFields:n.validatingFields,isValidating:!$i(n.validatingFields)}))},v=(e,s=[],c,l,u=!0,m=!0)=>{if(l&&c&&!t.disabled){if(o.action=!0,m&&Array.isArray(J(r,e))){let t=c(J(r,e),l.argA,l.argB);u&&Y(r,e,t)}if(m&&Array.isArray(J(n.errors,e))){let t=c(J(n.errors,e),l.argA,l.argB);u&&Y(n.errors,e,t),Ma(n.errors,e)}if((d.touchedFields||f.touchedFields)&&m&&Array.isArray(J(n.touchedFields,e))){let t=c(J(n.touchedFields,e),l.argA,l.argB);u&&Y(n.touchedFields,e,t)}if(d.dirtyFields||f.dirtyFields){let t=da(i,a),r=Si(e);Y(n.dirtyFields,r,J(t,r))}p.state.next({name:e,isDirty:O(e,s),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Y(a,e,s)},y=(e,t)=>{Y(n.errors,e,t),p.state.next({errors:n.errors})},b=e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},x=(e,t,n,s)=>{let c=J(r,e);if(c){let r=J(a,e,q(n)?J(i,e):n);q(r)||s&&s.defaultChecked||t?Y(a,e,t?r:va(c._f)):k(e,r),o.mount&&!o.action&&g()}},S=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(d.isDirty||f.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=O(),c=l!==u.isDirty);let t=Wi(J(i,e),r);l=!!J(n.dirtyFields,e),t?X(n.dirtyFields,e):Y(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(d.dirtyFields||f.dirtyFields)&&l!==!t}if(a){let t=J(n.touchedFields,e);t||(Y(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(d.touchedFields||f.touchedFields)&&t!==a)}c&&s&&p.state.next(u)}return c?u:{}},C=(e,r,i,a)=>{let o=J(n.errors,e),s=(d.isValid||f.isValid)&&ki(r)&&n.isValid!==r;if(t.delayError&&i?(c=h(()=>y(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?Y(n.errors,e,i):X(n.errors,e)),(i?!Wi(o,i):o)||!$i(a)||s){let t={...a,...s&&ki(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},w=async e=>(_(e,!0),await t.resolver(a,t.context,ya(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),T=async e=>{let{errors:t}=await w(e);if(_(e),e)for(let r of e){let e=J(t,r);e?Y(n.errors,r,e):X(n.errors,r)}else n.errors=t;return t},E=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(G(i))for(let e in i)i[e]&&le(`${Pi}.${e}`,{message:Vi(i.message)?i.message:``,type:Ni.validate});else Vi(i)||!i?le(Pi,{message:i||``,type:Ni.validate}):ce(Pi);return i}return!0},D=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await E({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...f}=u;if(r){let o=s.array.has(r.name),c=u._f&&wa(u._f);c&&d.validatingFields&&_([r.name],!0);let f=await Ia(u,s.disabled,a,m,t.shouldUseNativeValidation&&!i,o);if(c&&d.validatingFields&&_([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&(J(f,r.name)?o?Na(n.errors,f,r.name):Y(n.errors,r.name,f[r.name]):X(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!$i(f)&&await D({context:l,onlyCheckValid:i,fields:f,name:o,eventType:c})}}return l.valid},ee=()=>{for(let e of s.unMount){let t=J(r,e);t&&(t._f.refs?t._f.refs.every(e=>!aa(e)):!aa(t._f.ref))&&pe(e)}s.unMount=new Set},O=(e,n)=>!t.disabled&&(e&&n&&Y(a,e,n),!Wi(oe(),i)),te=(e,t,n)=>Hi(e,s,{...o.mount?a:q(t)?i:Vi(e)?{[e]:t}:t},n,t),ne=e=>Di(J(o.mount?a:i,e,t.shouldUnregister?J(i,e,[]):[])),k=(e,t,n={})=>{let i=J(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&Y(a,e,ha(t,n)),o=ta(n.ref)&&yi(t)?``:t,na(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?_i(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):ea(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||p.state.next({name:e,values:K(a)})))}(n.shouldDirty||n.shouldTouch)&&S(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ae(e)},A=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=J(r,o);(s.array.has(e)||G(a)||c&&!c._f)&&!vi(a)?A(o,a,n):k(o,a,n)}},j=(e,t,c={})=>{let l=J(r,e),u=s.array.has(e),m=K(t);Y(a,e,m),u?(p.array.next({name:e,values:K(a)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&c.shouldDirty&&p.state.next({name:e,dirtyFields:da(i,a),isDirty:O(e,m)})):l&&!l._f&&!yi(m)?A(e,m,c):k(e,m,c),Ea(e,s)?p.state.next({...n,name:e,values:K(a)}):p.state.next({name:o.mount?e:void 0,values:K(a)})},re=async i=>{o.mount=!0;let l=i.target,u=l.name,h=!0,v=J(r,u),y=e=>{h=Number.isNaN(e)||vi(e)&&isNaN(e.getTime())||Wi(e,J(a,u,e))},b=Sa(t.mode),x=Sa(t.reValidateMode);if(v){let o,T,ee=l.type?va(v._f):xi(i),O=i.type===ji.BLUR||i.type===ji.FOCUS_OUT,te=!Ta(v._f)&&!e.validate&&!t.resolver&&!J(n.errors,u)&&!v._f.deps||ja(O,J(n.touchedFields,u),n.isSubmitted,x,b),ne=Ea(u,s,O);Y(a,u,ee),O?(!l||!l.readOnly)&&(v._f.onBlur&&v._f.onBlur(i),c&&c(0)):v._f.onChange&&v._f.onChange(i);let k=S(u,ee,O),A=!$i(k)||ne;if(!O&&p.state.next({name:u,type:i.type,values:K(a)}),te)return(d.isValid||f.isValid)&&(t.mode===`onBlur`?O&&g():O||g()),A&&p.state.next({name:u,...ne?{}:k});if(!t.resolver&&e.validate&&await E({name:u,eventType:i.type}),!O&&ne&&p.state.next({...n}),t.resolver){let{errors:e}=await w([u]);if(_([u]),y(ee),h){let t=Oa(n.errors,r,u),i=Oa(e,r,t.name||u);o=i.error,u=i.name,T=$i(e)}}else _([u],!0),o=(await Ia(v,s.disabled,a,m,t.shouldUseNativeValidation))[u],_([u]),y(ee),h&&(o?T=!1:(d.isValid||f.isValid)&&(T=await D({fields:r,onlyCheckValid:!0,name:u,eventType:i.type})));h&&(v._f.deps&&(!Array.isArray(v._f.deps)||v._f.deps.length>0)&&ae(v._f.deps),C(u,T,o,k))}},ie=(e,t)=>{if(J(n.errors,t)&&e.focus)return e.focus(),1},ae=async(e,i={})=>{let a,o,c=Xi(e);if(t.resolver){let t=await T(q(e)?e:c);a=$i(t),o=e?!c.some(e=>J(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=J(r,e);return await D({fields:t&&t._f?{[e]:t}:t,eventType:ji.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&g()):o=a=await D({fields:r,name:e,eventType:ji.TRIGGER});return p.state.next({...!Vi(e)||(d.isValid||f.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&Da(r,ie,e?c:s.mount),o},oe=(e,t)=>{let r={...o.mount?a:i};return t&&(r=Qi(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),q(e)?r:Vi(e)?J(r,e):e.map(e=>J(r,e))},se=(e,t)=>({invalid:!!J((t||n).errors,e),isDirty:!!J((t||n).dirtyFields,e),error:J((t||n).errors,e),isValidating:!!J(n.validatingFields,e),isTouched:!!J((t||n).touchedFields,e)}),ce=e=>{let t=e?Xi(e):void 0;t?.forEach(e=>X(n.errors,e)),t?t.forEach(e=>{p.state.next({name:e,errors:n.errors})}):p.state.next({errors:{}})},le=(e,t,i)=>{let a=(J(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=J(n.errors,e)||{};Y(n.errors,e,{...l,...t,ref:a}),p.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},ue=(e,t)=>Ai(e)?p.state.subscribe({next:n=>`values`in n&&e(te(void 0,t),n)}):te(e,t,!0),de=e=>p.state.subscribe({next:t=>{Aa(e.name,t.name,e.exact)&&ka(t,e.formState||d,Ce,e.reRenderRoot)&&e.callback({values:{...a},...n,...t,defaultValues:i})}}).unsubscribe,fe=e=>(o.mount=!0,f={...f,...e.formState},de({...e,formState:{...u,...e.formState}})),pe=(e,o={})=>{for(let c of e?Xi(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(X(r,c),X(a,c)),!o.keepError&&X(n.errors,c),!o.keepDirty&&X(n.dirtyFields,c),!o.keepTouched&&X(n.touchedFields,c),!o.keepIsValidating&&X(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&X(i,c);p.state.next({values:K(a)}),p.state.next({...n,...o.keepDirty?{isDirty:O()}:{}}),!o.keepIsValid&&g()},me=({disabled:e,name:t})=>{if(ki(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&g()}},he=(e,n={})=>{let a=J(r,e),c=ki(n.disabled)||ki(t.disabled);return Y(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a?me({disabled:ki(n.disabled)?n.disabled:t.disabled,name:e}):x(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:xa(n.min),max:xa(n.max),minLength:xa(n.minLength),maxLength:xa(n.maxLength),pattern:xa(n.pattern)}:{},name:e,onChange:re,onBlur:re,ref:c=>{if(c){he(e,n),a=J(r,e);let t=q(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=ia(t),s=a._f.refs||[];if(o?s.find(e=>e===t):t===a._f.ref)return;Y(r,e,{_f:{...a._f,...o?{refs:[...s.filter(aa),t,...Array.isArray(J(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),x(e,!1,void 0,t)}else a=J(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(Ci(s.array,e)&&o.action)&&s.unMount.add(e)}}},ge=()=>t.shouldFocusError&&Da(r,ie,s.mount),_e=e=>{ki(e)&&(p.state.next({disabled:e}),Da(r,(t,n)=>{let i=J(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},ve=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=K(a);if(p.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await w();_(),n.errors=e,l=K(t)}else await D({fields:r,eventType:ji.SUBMIT});if(s.disabled.size)for(let e of s.disabled)X(l,e);if(X(n.errors,Fi),$i(n.errors)){p.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),ge(),setTimeout(ge);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$i(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},ye=(e,t={})=>{J(r,e)&&(q(t.defaultValue)?j(e,K(J(i,e))):(j(e,t.defaultValue),Y(i,e,K(t.defaultValue))),t.keepTouched||X(n.touchedFields,e),t.keepDirty||(X(n.dirtyFields,e),n.isDirty=t.defaultValue?O(e,K(J(i,e))):O()),t.keepError||(X(n.errors,e),d.isValid&&g()),p.state.next({...n}))},be=(e,c={})=>{let l=e?K(e):i,u=K(l),f=$i(e),m=f?i:u;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(da(i,a))]);for(let t of Array.from(e)){let e=J(n.dirtyFields,t),r=J(a,t),i=J(m,t);e&&!q(r)?Y(m,t,r):!e&&!q(i)&&j(t,i)}}else{if(Ti&&q(e))for(let e of s.mount){let t=J(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(ta(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)j(e,J(m,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?K(i):{}:K(m),p.array.next({values:{...m}}),p.state.next({values:{...m}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!$i(m),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),p.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:f?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!Wi(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:f?{}:c.keepDirtyValues?c.keepDefaultValues&&a?da(i,a):n.dirtyFields:c.keepDefaultValues&&e?da(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},xe=(e,n)=>be(Ai(e)?e(a):e,{...t.resetOptions,...n}),Se=(e,t={})=>{let n=J(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&Ai(e.select)&&e.select()})}},Ce=e=>{n={...n,...e}},we={control:{register:he,unregister:pe,getFieldState:se,handleSubmit:ve,setError:le,_subscribe:de,_runSchema:w,_updateIsValidating:_,_focusError:ge,_getWatch:te,_getDirty:O,_setValid:g,_setFieldArray:v,_setDisabledField:me,_setErrors:b,_getFieldArray:ne,_reset:be,_resetDefaultValues:()=>Ai(t.defaultValues)&&t.defaultValues().then(e=>{xe(e,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:_e,_subjects:p,_proxyFormState:d,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:fe,trigger:ae,register:he,handleSubmit:ve,watch:ue,setValue:j,getValues:oe,reset:xe,resetField:ye,clearErrors:ce,unregister:pe,setError:le,setFocus:Se,getFieldState:se};return{...we,formControl:we}}function za(e={}){let t=L.useRef(void 0),n=L.useRef(void 0),[r,i]=L.useState({isDirty:!1,isValidating:!1,isLoading:Ai(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ai(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Ai(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Ra(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,zi(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),L.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),L.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),L.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),L.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),L.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),L.useEffect(()=>{e.values&&!Wi(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),a._options.resetOptions?.keepIsValid||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),L.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=L.useMemo(()=>Ri(r,a),[a,r]),t.current}var Ba=di.button`
9
+ ${{borderRadius:`0.375rem`,backgroundColor:`var(--fl-color-primary-600)`,paddingLeft:`0.875rem`,paddingRight:`0.875rem`,paddingTop:`0.625rem`,paddingBottom:`0.625rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:`400`,"--tw-text-opacity":`1`,color:`rgb(255 255 255 / var(--tw-text-opacity, 1))`,"--tw-shadow":`0 1px 2px 0 rgb(0 0 0 / 0.05)`,"--tw-shadow-colored":`0 1px 2px 0 var(--tw-shadow-color)`,boxShadow:`var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)`,":hover":{backgroundColor:`var(--fl-color-primary-700)`},":focus-visible":{outlineStyle:`solid`,outlineWidth:`2px`,outlineOffset:`2px`,outlineColor:`var(--fl-color-primary-600)`}}}
10
+ ${({disabled:e})=>e&&{cursor:`not-allowed`,"--tw-bg-opacity":`1`,backgroundColor:`rgb(156 163 175 / var(--tw-bg-opacity, 1))`,":hover":{"--tw-bg-opacity":`1`,backgroundColor:`rgb(156 163 175 / var(--tw-bg-opacity, 1))`}}}
11
+ `,Va=({as:e,download:t,href:n,disabled:r,children:i,onClick:a,type:o})=>U(Ba,{as:e||`button`,download:t,href:n,type:o||`button`,disabled:r,onClick:a,children:i}),Ha=({blob:e,children:t,fileName:n})=>{let[r,i]=P();return F(()=>{let t=URL.createObjectURL(e);return i(t),()=>{URL.revokeObjectURL(t),i(void 0)}},[e]),U(Va,{as:`a`,href:r??`#`,download:n,children:t})},Ua=di.div`
12
+ ${()=>({height:`1.5rem`,width:`1.5rem`,"@keyframes spin":{to:{transform:`rotate(360deg)`}},animation:`spin 1s linear infinite`,borderRadius:`9999px`,borderWidth:`2px`,borderColor:`var(--fl-color-primary-600)`,borderLeftColor:`transparent`,borderTopColor:`transparent`})}
13
+ `,Wa=async e=>{try{let t=await e.response?.text();return JSON.parse(t)}catch{return{}}},Ga=e=>new Date(Date.now()+e*24*60*60*1e3).toISOString().split(`T`)[0],Ka=15e3,qa=class e extends Error{_response;get response(){return this._response}constructor(t,n){super(t),this._response=n,Object.setPrototypeOf(this,e.prototype)}},Ja=async(e,t,n,r)=>{let i=r instanceof FormData,a={"x-app-version":`1.0.1006`,authorization:`Bearer ${t}`};r&&!i&&(a[`content-type`]=`application/json`);let o=await fetch(e,{method:n,body:r&&!i?JSON.stringify(r):r,headers:{"x-app-version":`1.0.1006`,authorization:`Bearer ${t}`},signal:AbortSignal?.timeout?.(Ka)});if(!o.ok)throw new qa(`[API Error] Status: ${o.status}, ${o.statusText}`,o);return o},Ya=async(e,t,n,r)=>{let i=await Ja(e,t,n,r);return i.headers.get(`Content-Type`)?.includes(`application/json`)?await i.json():await i.blob()},Xa=ve({backend:{url:``,accessToken:``}}),Za=()=>Je(Xa),Qa=e=>{let t=Za();return Ke(()=>e(t),[e,t])},$a=e=>async t=>{let n=new FormData;return n.append(`source`,t.source),n.append(`transactionFile`,t.transactionsFile),Ya(new URL(`${e.backend.url}/salary-packaging/admin/v1.0/catche/receipt-batch`),e.backend.accessToken,`POST`,n)},eo=e=>async t=>Ya(new URL(`${e.backend.url}/salary-packaging/admin/v1.0/reports/${t.report}?startDate=${t.startDate||``}&endDate=${t.endDate||``}&groupCode=${t.groupCode||``}&clientId=${t.clientId||``}`),e.backend.accessToken,`GET`),to=(e,t)=>async n=>{let r=Ga(2);return Ja(new URL(`${e.backend.url}${t}`),e.backend.accessToken,`POST`,{startDate:n,endDate:r})},no=e=>to(e,`/salary-packaging/admin/v1.0/ingest/clients`),ro=e=>to(e,`/salary-packaging/admin/v1.0/ingest/drivers`),io=e=>to(e,`/salary-packaging/admin/v1.0/ingest/contract-budgets`),ao=e=>to(e,`/salary-packaging/admin/v1.0/ingest/invoice-items`),oo=e=>to(e,`/salary-packaging/admin/v1.0/ingest/deleted-invoice-items`),so=e=>to(e,`/salary-packaging/admin/v1.0/ingest/vehicle-contracts`),co=()=>({postCatcheReceiptBatch:Qa($a),getCatcheReport:Qa(eo),ingestClients:Qa(no),ingestDrivers:Qa(ro),ingestContractBudgets:Qa(io),ingestInvoiceItems:Qa(ao),ingestDeletedInvoiceItems:Qa(oo),ingestVehicleContracts:Qa(so)}),lo=Object.defineProperty,uo=(e,t,n)=>t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fo=(e,t,n)=>(uo(e,typeof t==`symbol`?t:t+``,n),n),po=new class{constructor(){fo(this,`current`,this.detect()),fo(this,`handoffState`,`pending`),fo(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 this.current===`server`}get isClient(){return this.current===`client`}detect(){return typeof window>`u`||typeof document>`u`?`server`:`client`}handoff(){this.handoffState===`pending`&&(this.handoffState=`complete`)}get isHandoffComplete(){return this.handoffState===`complete`}},mo=(e,t)=>{po.isServer?F(e,t):We(e,t)};function ho(e){let t=I(e);return mo(()=>{t.current=e},[e]),t}function go(e,t){let[n,r]=P(e),i=ho(e);return mo(()=>r(i.current),[i,r,...t]),n}var Z=function(e){let t=ho(e);return L.useCallback((...e)=>t.current(...e),[t])};function _o(e,t,n){let[r,i]=P(n),a=e!==void 0,o=I(a),s=I(!1),c=I(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error(`A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.`)):!a&&o.current&&!c.current&&(c.current=!0,o.current=a,console.error(`A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.`)),[a?e:r,Z(e=>(a||i(e),t?.(e)))]}function vo(e){typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function yo(){let e=[],t={addEventListener(e,n,r,i){return 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){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...e))},setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return vo(()=>{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=yo();return e(t),this.add(()=>t.dispose())},add(t){return 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 bo(){let[e]=P(yo);return F(()=>()=>e.dispose(),[e]),e}function xo(){let e=typeof document>`u`;return`useSyncExternalStore`in ot?(e=>e.useSyncExternalStore)(ot)(()=>()=>{},()=>!1,()=>!e):!1}function So(){let e=xo(),[t,n]=P(po.isHandoffComplete);return t&&po.isHandoffComplete===!1&&n(!1),F(()=>{t!==!0&&n(!0)},[t]),F(()=>po.handoff(),[]),e?!1:t}var Co=L.useId??function(){let e=So(),[t,n]=L.useState(e?()=>po.nextId():null);return mo(()=>{t===null&&n(po.nextId())},[t]),t==null?void 0:``+t};function Q(e,t,...n){if(e in t){let r=t[e];return typeof r==`function`?r(...n):r}let r=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,Q),r}function wo(e){return po.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty(`current`)&&e.current instanceof Node?e.current.ownerDocument:document}var To=[`[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(`,`),Eo=(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))(Eo||{}),Do=(e=>(e[e.Error=0]=`Error`,e[e.Overflow=1]=`Overflow`,e[e.Success=2]=`Success`,e[e.Underflow=3]=`Underflow`,e))(Do||{}),Oo=(e=>(e[e.Previous=-1]=`Previous`,e[e.Next=1]=`Next`,e))(Oo||{}),ko=(e=>(e[e.Strict=0]=`Strict`,e[e.Loose=1]=`Loose`,e))(ko||{});function Ao(e,t=0){return e===wo(e)?.body?!1:Q(t,{0(){return e.matches(To)},1(){let t=e;for(;t!==null;){if(t.matches(To))return!0;t=t.parentElement}return!1}})}var jo=(e=>(e[e.Keyboard=0]=`Keyboard`,e[e.Mouse=1]=`Mouse`,e))(jo||{});typeof window<`u`&&typeof document<`u`&&(document.addEventListener(`keydown`,e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible=``)},!0),document.addEventListener(`click`,e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible=``)},!0)),[`textarea`,`input`].join(`,`);function Mo(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function No(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Po(){return/Android/gi.test(window.navigator.userAgent)}function Fo(){return No()||Po()}function Io(e,t,n){let r=ho(t);F(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}function Lo(e,t,n){let r=ho(t);F(()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}function Ro(e,t,n=!0){let r=I(!1);F(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(n,i){if(!r.current||n.defaultPrevented)return;let a=i(n);if(a===null||!a.getRootNode().contains(a)||!a.isConnected)return;let o=function e(t){return typeof t==`function`?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of o){if(e===null)continue;let t=e instanceof HTMLElement?e:e.current;if(t!=null&&t.contains(a)||n.composed&&n.composedPath().includes(t))return}return!Ao(a,ko.Loose)&&a.tabIndex!==-1&&n.preventDefault(),t(n,a)}let a=I(null);Io(`pointerdown`,e=>{r.current&&(a.current=e.composedPath?.call(e)?.[0]||e.target)},!0),Io(`mousedown`,e=>{r.current&&(a.current=e.composedPath?.call(e)?.[0]||e.target)},!0),Io(`click`,e=>{Fo()||(a.current&&=(i(e,()=>a.current),null))},!0),Io(`touchend`,e=>i(e,()=>e.target instanceof HTMLElement?e.target:null),!0),Lo(`blur`,e=>i(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function zo(e){if(e.type)return e.type;let t=e.as??`button`;if(typeof t==`string`&&t.toLowerCase()===`button`)return`button`}function Bo(e,t){let[n,r]=P(()=>zo(e));return mo(()=>{r(zo(e))},[e.type,e.as]),mo(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute(`type`)&&r(`button`)},[n,t]),n}var Vo=Symbol();function Ho(...e){let t=I(e);F(()=>{t.current=e},[e]);let n=Z(e=>{for(let n of t.current)n!=null&&(typeof n==`function`?n(e):n.current=e)});return e.every(e=>e==null||e?.[Vo])?void 0:n}function Uo(e){return[e.screenX,e.screenY]}function Wo(){let e=I([-1,-1]);return{wasMoved(t){let n=Uo(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Uo(t)}}}function Go(...e){return Array.from(new Set(e.flatMap(e=>typeof e==`string`?e.split(` `):[]))).filter(Boolean).join(` `)}var Ko=(e=>(e[e.None=0]=`None`,e[e.RenderStrategy=1]=`RenderStrategy`,e[e.Static=2]=`Static`,e))(Ko||{}),qo=(e=>(e[e.Unmount=0]=`Unmount`,e[e.Hidden=1]=`Hidden`,e))(qo||{});function Jo({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:s}){s??=Xo;let c=Zo(t,e);if(a)return Yo(c,n,r,o,s);let l=i??0;if(l&2){let{static:e=!1,...t}=c;if(e)return Yo(t,n,r,o,s)}if(l&1){let{unmount:e=!0,...t}=c;return Q(e?0:1,{0(){return null},1(){return Yo({...t,hidden:!0,style:{display:`none`}},n,r,o,s)}})}return Yo(c,n,r,o,s)}function Yo(e,t={},n,r,i){let{as:a=n,children:o,refName:s=`ref`,...c}=es(e,[`unmount`,`static`]),l=e.ref===void 0?{}:{[s]:e.ref},u=typeof o==`function`?o(t):o;`className`in c&&c.className&&typeof c.className==`function`&&(c.className=c.className(t));let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))typeof i==`boolean`&&(e=!0),i===!0&&n.push(r);e&&(d[`data-headlessui-state`]=n.join(` `))}if(a===w&&Object.keys($o(c)).length>0){if(!Zt(u)||Array.isArray(u)&&u.length>1)throw Error([`Passing props on "Fragment"!`,``,`The current component <${r} /> is rendering a "Fragment".`,`However we need to passthrough the following props:`,Object.keys(c).map(e=>` - ${e}`).join(`
14
+ `),``,`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(`
22
15
  `)].join(`
23
- `));let b=d.props,v=typeof(b==null?void 0:b.className)=="function"?(...g)=>hr(b==null?void 0:b.className(...g),c.className):hr(b==null?void 0:b.className,c.className),h=v?{className:v}:{};return $n(d,Object.assign({},Ra(d.props,pn(Kr(c,["ref"]))),l,f,{ref:i(d.ref,f.ref)},h))}return K(o,Object.assign({},Kr(c,["ref"]),o!==X&&f,o!==X&&l),d)}function gc(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Ra(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...o){let a=r[n];for(let s of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...o)}}});return t}function Qe(e){var t;return Object.assign(Ye(e),{displayName:(t=e.displayName)!=null?t:e.name})}function pn(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Kr(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let vc="div";var Oa=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Oa||{});function yc(e,t){var r;let{features:n=1,...i}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:(r=i["aria-hidden"])!=null?r:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return at({ourProps:o,theirProps:i,slot:{},defaultTag:vc,name:"Hidden"})}let _c=Qe(yc),ti=Be(null);ti.displayName="OpenClosedContext";var Ee=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ee||{});function ri(){return Se(ti)}function Aa({value:e,children:t}){return D.createElement(ti.Provider,{value:e},t)}function bc(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&wc(r)?!1:n}function wc(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function xc(e){throw new Error("Unexpected object: "+e)}var we=(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))(we||{});function Sc(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1;switch(e.focus){case 0:{for(let o=0;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 1:{for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 2:{for(let o=i+1;o<r.length;++o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 3:{for(let o=r.length-1;o>=0;--o)if(!t.resolveDisabled(r[o],o,r))return o;return n}case 4:{for(let o=0;o<r.length;++o)if(t.resolveId(r[o],o,r)===e.id)return o;return n}case 5:return null;default:xc(e)}}function Da(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))Fa(r,Pa(t,n),i);return r}function Pa(e,t){return e?e+"["+t+"]":t}function Fa(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())Fa(e,Pa(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):Da(r,t,e)}var de=(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))(de||{});function ni(){let e=H(!1);return Te(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let to=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ro(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?(r=i.innerText)!=null?r:"":n;return to.test(a)&&(a=a.replace(to,"")),a}function kc(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let o=document.getElementById(i);if(o){let a=o.getAttribute("aria-label");return typeof a=="string"?a.trim():ro(o).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return ro(e).trim()}function Cc(e){let t=H(""),r=H("");return M(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=kc(n).trim().toLowerCase();return t.current=i,r.current=o,o})}var Ec=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ec||{}),$c=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))($c||{}),Tc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Tc||{}),Rc=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Rc||{});function Yr(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=sc(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let Oc={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(i=>r(i.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=Yr(e),i=Sc(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:(r=t.trigger)!=null?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(a=>{var s;return!a.dataRef.current.disabled&&((s=a.dataRef.current.textValue)==null?void 0:s.startsWith(n))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=Yr(e,i=>[...i,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=Yr(e,n=>{let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},ii=Be(null);ii.displayName="ListboxActionsContext";function jt(e){let t=Se(ii);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jt),r}return t}let oi=Be(null);oi.displayName="ListboxDataContext";function qt(e){let t=Se(oi);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,qt),r}return t}function Ac(e,t){return he(t.type,Oc,e,t)}let Dc=X;function Pc(e,t){let{value:r,defaultValue:n,form:i,name:o,onChange:a,by:s=(F,Z)=>F===Z,disabled:c=!1,horizontal:f=!1,multiple:d=!1,...l}=e;const b=f?"horizontal":"vertical";let v=ht(t),[h=d?[]:void 0,g]=ec(r,a,n),[_,y]=Ut(Ac,{dataRef:gn(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=H({static:!1,hold:!1}),$=H(null),L=H(null),O=H(null),A=M(typeof s=="string"?(F,Z)=>{let le=s;return(F==null?void 0:F[le])===(Z==null?void 0:Z[le])}:s),R=et(F=>he(V.mode,{1:()=>h.some(Z=>A(Z,F)),0:()=>A(h,F)}),[h]),V=ge(()=>({..._,value:h,disabled:c,mode:d?1:0,orientation:b,compare:A,isSelected:R,optionsPropsRef:w,labelRef:$,buttonRef:L,optionsRef:O}),[h,c,d,_]);Te(()=>{_.dataRef.current=V},[V]),fc([V.buttonRef,V.optionsRef],(F,Z)=>{var le;y({type:1}),Ta(Z,ei.Loose)||(F.preventDefault(),(le=V.buttonRef.current)==null||le.focus())},V.listboxState===0);let U=ge(()=>({open:V.listboxState===0,disabled:c,value:h}),[V,c,h]),j=M(F=>{let Z=V.options.find(le=>le.id===F);Z&&ne(Z.dataRef.current.value)}),Pe=M(()=>{if(V.activeOptionIndex!==null){let{dataRef:F,id:Z}=V.options[V.activeOptionIndex];ne(F.current.value),y({type:2,focus:we.Specific,id:Z})}}),P=M(()=>y({type:0})),N=M(()=>y({type:1})),te=M((F,Z,le)=>F===we.Specific?y({type:2,focus:we.Specific,id:Z,trigger:le}):y({type:2,focus:F,trigger:le})),oe=M((F,Z)=>(y({type:5,id:F,dataRef:Z}),()=>y({type:6,id:F}))),ve=M(F=>(y({type:7,id:F}),()=>y({type:7,id:null}))),ne=M(F=>he(V.mode,{0(){return g==null?void 0:g(F)},1(){let Z=V.value.slice(),le=Z.findIndex(st=>A(st,F));return le===-1?Z.push(F):Z.splice(le,1),g==null?void 0:g(Z)}})),We=M(F=>y({type:3,value:F})),ze=M(()=>y({type:4})),Oe=ge(()=>({onChange:ne,registerOption:oe,registerLabel:ve,goToOption:te,closeListbox:N,openListbox:P,selectActiveOption:Pe,selectOption:j,search:We,clearSearch:ze}),[]),Xe={ref:v},_e=H(null),Tt=St();return ee(()=>{_e.current&&n!==void 0&&Tt.addEventListener(_e.current,"reset",()=>{g==null||g(n)})},[_e,g]),D.createElement(ii.Provider,{value:Oe},D.createElement(oi.Provider,{value:V},D.createElement(Aa,{value:he(V.listboxState,{0:Ee.Open,1:Ee.Closed})},o!=null&&h!=null&&Da({[o]:h}).map(([F,Z],le)=>D.createElement(_c,{features:Oa.Hidden,ref:le===0?st=>{var mt;_e.current=(mt=st==null?void 0:st.closest("form"))!=null?mt:null}:void 0,...pn({key:F,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:c,name:F,value:Z})})),at({ourProps:Xe,theirProps:l,slot:U,defaultTag:Dc,name:"Listbox"}))))}let Fc="button";function Lc(e,t){var r;let n=Fr(),{id:i=`headlessui-listbox-button-${n}`,...o}=e,a=qt("Listbox.Button"),s=jt("Listbox.Button"),c=ht(a.buttonRef,t),f=St(),d=M(_=>{switch(_.key){case de.Space:case de.Enter:case de.ArrowDown:_.preventDefault(),s.openListbox(),f.nextFrame(()=>{a.value||s.goToOption(we.First)});break;case de.ArrowUp:_.preventDefault(),s.openListbox(),f.nextFrame(()=>{a.value||s.goToOption(we.Last)});break}}),l=M(_=>{switch(_.key){case de.Space:_.preventDefault();break}}),b=M(_=>{if(bc(_.currentTarget))return _.preventDefault();a.listboxState===0?(s.closeListbox(),f.nextFrame(()=>{var y;return(y=a.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})})):(_.preventDefault(),s.openListbox())}),v=Ea(()=>{if(a.labelId)return[a.labelId,i].join(" ")},[a.labelId,i]),h=ge(()=>({open:a.listboxState===0,disabled:a.disabled,value:a.value}),[a]),g={ref:c,id:i,type:pc(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=a.optionsRef.current)==null?void 0:r.id,"aria-expanded":a.listboxState===0,"aria-labelledby":v,disabled:a.disabled,onKeyDown:d,onKeyUp:l,onClick:b};return at({ourProps:g,theirProps:o,slot:h,defaultTag:Fc,name:"Listbox.Button"})}let Ic="label";function Vc(e,t){let r=Fr(),{id:n=`headlessui-listbox-label-${r}`,...i}=e,o=qt("Listbox.Label"),a=jt("Listbox.Label"),s=ht(o.labelRef,t);Te(()=>a.registerLabel(n),[n]);let c=M(()=>{var d;return(d=o.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}),f=ge(()=>({open:o.listboxState===0,disabled:o.disabled}),[o]);return at({ourProps:{ref:s,id:n,onClick:c},theirProps:i,slot:f,defaultTag:Ic,name:"Listbox.Label"})}let Nc="ul",Mc=mr.RenderStrategy|mr.Static;function Hc(e,t){var r;let n=Fr(),{id:i=`headlessui-listbox-options-${n}`,...o}=e,a=qt("Listbox.Options"),s=jt("Listbox.Options"),c=ht(a.optionsRef,t),f=St(),d=St(),l=ri(),b=l!==null?(l&Ee.Open)===Ee.Open:a.listboxState===0;ee(()=>{var y;let w=a.optionsRef.current;w&&a.listboxState===0&&w!==((y=$a(w))==null?void 0:y.activeElement)&&w.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let v=M(y=>{switch(d.dispose(),y.key){case de.Space:if(a.searchQuery!=="")return y.preventDefault(),y.stopPropagation(),s.search(y.key);case de.Enter:if(y.preventDefault(),y.stopPropagation(),a.activeOptionIndex!==null){let{dataRef:w}=a.options[a.activeOptionIndex];s.onChange(w.current.value)}a.mode===0&&(s.closeListbox(),it().nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})}));break;case he(a.orientation,{vertical:de.ArrowDown,horizontal:de.ArrowRight}):return y.preventDefault(),y.stopPropagation(),s.goToOption(we.Next);case he(a.orientation,{vertical:de.ArrowUp,horizontal:de.ArrowLeft}):return y.preventDefault(),y.stopPropagation(),s.goToOption(we.Previous);case de.Home:case de.PageUp:return y.preventDefault(),y.stopPropagation(),s.goToOption(we.First);case de.End:case de.PageDown:return y.preventDefault(),y.stopPropagation(),s.goToOption(we.Last);case de.Escape:return y.preventDefault(),y.stopPropagation(),s.closeListbox(),f.nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})});case de.Tab:y.preventDefault(),y.stopPropagation();break;default:y.key.length===1&&(s.search(y.key),d.setTimeout(()=>s.clearSearch(),350));break}}),h=Ea(()=>{var y;return(y=a.buttonRef.current)==null?void 0:y.id},[a.buttonRef.current]),g=ge(()=>({open:a.listboxState===0}),[a]),_={"aria-activedescendant":a.activeOptionIndex===null||(r=a.options[a.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":a.mode===1?!0:void 0,"aria-labelledby":h,"aria-orientation":a.orientation,id:i,onKeyDown:v,role:"listbox",tabIndex:0,ref:c};return at({ourProps:_,theirProps:o,slot:g,defaultTag:Nc,features:Mc,visible:b,name:"Listbox.Options"})}let Uc="li";function Bc(e,t){let r=Fr(),{id:n=`headlessui-listbox-option-${r}`,disabled:i=!1,value:o,...a}=e,s=qt("Listbox.Option"),c=jt("Listbox.Option"),f=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===n:!1,d=s.isSelected(o),l=H(null),b=Cc(l),v=He({disabled:i,value:o,domRef:l,get textValue(){return b()}}),h=ht(t,l);Te(()=>{if(s.listboxState!==0||!f||s.activationTrigger===0)return;let A=it();return A.requestAnimationFrame(()=>{var R,V;(V=(R=l.current)==null?void 0:R.scrollIntoView)==null||V.call(R,{block:"nearest"})}),A.dispose},[l,f,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Te(()=>c.registerOption(n,v),[v,n]);let g=M(A=>{if(i)return A.preventDefault();c.onChange(o),s.mode===0&&(c.closeListbox(),it().nextFrame(()=>{var R;return(R=s.buttonRef.current)==null?void 0:R.focus({preventScroll:!0})}))}),_=M(()=>{if(i)return c.goToOption(we.Nothing);c.goToOption(we.Specific,n)}),y=mc(),w=M(A=>y.update(A)),$=M(A=>{y.wasMoved(A)&&(i||f||c.goToOption(we.Specific,n,0))}),L=M(A=>{y.wasMoved(A)&&(i||f&&c.goToOption(we.Nothing))}),O=ge(()=>({active:f,selected:d,disabled:i}),[f,d,i]);return at({ourProps:{id:n,ref:h,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:g,onFocus:_,onPointerEnter:w,onMouseEnter:w,onPointerMove:$,onMouseMove:$,onPointerLeave:L,onMouseLeave:L},theirProps:a,slot:O,defaultTag:Uc,name:"Listbox.Option"})}let Wc=Qe(Pc),zc=Qe(Lc),jc=Qe(Vc),qc=Qe(Hc),Gc=Qe(Bc),Lt=Object.assign(Wc,{Button:zc,Label:jc,Options:qc,Option:Gc});function Kc(e=0){let[t,r]=J(e),n=ni(),i=et(c=>{n.current&&r(f=>f|c)},[t,n]),o=et(c=>!!(t&c),[t]),a=et(c=>{n.current&&r(f=>f&~c)},[r,n]),s=et(c=>{n.current&&r(f=>f^c)},[r]);return{flags:t,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}function Yc(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Qr(e,...t){e&&t.length>0&&e.classList.add(...t)}function Xr(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Qc(e,t){let r=it();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,a]=[n,i].map(c=>{let[f=0]=c.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,l)=>l-d);return f}),s=o+a;if(s!==0){r.group(f=>{f.setTimeout(()=>{t(),f.dispose()},s),f.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&f.dispose()})});let c=r.addEventListener(e,"transitionend",f=>{f.target===f.currentTarget&&(t(),c())})}else t();return r.add(()=>t()),r.dispose}function Xc(e,t,r,n){let i=r?"enter":"leave",o=it(),a=n!==void 0?Yc(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=he(i,{enter:()=>t.enter,leave:()=>t.leave}),c=he(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),f=he(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Xr(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Qr(e,...t.base,...s,...f),o.nextFrame(()=>{Xr(e,...t.base,...s,...f),Qr(e,...t.base,...s,...c),Qc(e,()=>(Xr(e,...t.base,...s),Qr(e,...t.base,...t.entered),a()))}),o.dispose}function Zc({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:o}){let a=ni(),s=St(),c=He(r);Te(()=>{e&&(c.current="enter")},[e]),Te(()=>{let f=it();s.add(f.dispose);let d=t.current;if(d&&c.current!=="idle"&&a.current)return f.dispose(),i.current(c.current),f.add(Xc(d,n.current,c.current==="enter",()=>{f.dispose(),o.current(c.current)})),f.dispose},[r])}function Je(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Lr=Be(null);Lr.displayName="TransitionContext";var Jc=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Jc||{});function eu(){let e=Se(Lr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function tu(){let e=Se(Ir);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ir=Be(null);Ir.displayName="NestingContext";function Vr(e){return"children"in e?Vr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function La(e,t){let r=He(e),n=H([]),i=ni(),o=St(),a=M((v,h=rt.Hidden)=>{let g=n.current.findIndex(({el:_})=>_===v);g!==-1&&(he(h,{[rt.Unmount](){n.current.splice(g,1)},[rt.Hidden](){n.current[g].state="hidden"}}),o.microTask(()=>{var _;!Vr(n)&&i.current&&((_=r.current)==null||_.call(r))}))}),s=M(v=>{let h=n.current.find(({el:g})=>g===v);return h?h.state!=="visible"&&(h.state="visible"):n.current.push({el:v,state:"visible"}),()=>a(v,rt.Unmount)}),c=H([]),f=H(Promise.resolve()),d=H({enter:[],leave:[],idle:[]}),l=M((v,h,g)=>{c.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([_])=>_!==v)),t==null||t.chains.current[h].push([v,new Promise(_=>{c.current.push(_)})]),t==null||t.chains.current[h].push([v,new Promise(_=>{Promise.all(d.current[h].map(([y,w])=>w)).then(()=>_())})]),h==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(h)):g(h)}),b=M((v,h,g)=>{Promise.all(d.current[h].splice(0).map(([_,y])=>y)).then(()=>{var _;(_=c.current.shift())==null||_()}).then(()=>g(h))});return ge(()=>({children:n,register:s,unregister:a,onStart:l,onStop:b,wait:f,chains:d}),[s,a,n,l,b,d,f])}function ru(){}let nu=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function no(e){var t;let r={};for(let n of nu)r[n]=(t=e[n])!=null?t:ru;return r}function iu(e){let t=H(no(e));return ee(()=>{t.current=no(e)},[e]),t}let ou="div",Ia=mr.RenderStrategy;function au(e,t){var r,n;let{beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s,enter:c,enterFrom:f,enterTo:d,entered:l,leave:b,leaveFrom:v,leaveTo:h,...g}=e,_=H(null),y=ht(_,t),w=(r=g.unmount)==null||r?rt.Unmount:rt.Hidden,{show:$,appear:L,initial:O}=eu(),[A,R]=J($?"visible":"hidden"),V=tu(),{register:U,unregister:j}=V;ee(()=>U(_),[U,_]),ee(()=>{if(w===rt.Hidden&&_.current){if($&&A!=="visible"){R("visible");return}return he(A,{hidden:()=>j(_),visible:()=>U(_)})}},[A,_,U,j,$,w]);let Pe=He({base:Je(g.className),enter:Je(c),enterFrom:Je(f),enterTo:Je(d),entered:Je(l),leave:Je(b),leaveFrom:Je(v),leaveTo:Je(h)}),P=iu({beforeEnter:i,afterEnter:o,beforeLeave:a,afterLeave:s}),N=Jn();ee(()=>{if(N&&A==="visible"&&_.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,A,N]);let te=O&&!L,oe=L&&$&&O,ve=!N||te?"idle":$?"enter":"leave",ne=Kc(0),We=M(F=>he(F,{enter:()=>{ne.addFlag(Ee.Opening),P.current.beforeEnter()},leave:()=>{ne.addFlag(Ee.Closing),P.current.beforeLeave()},idle:()=>{}})),ze=M(F=>he(F,{enter:()=>{ne.removeFlag(Ee.Opening),P.current.afterEnter()},leave:()=>{ne.removeFlag(Ee.Closing),P.current.afterLeave()},idle:()=>{}})),Oe=La(()=>{R("hidden"),j(_)},V),Xe=H(!1);Zc({immediate:oe,container:_,classes:Pe,direction:ve,onStart:He(F=>{Xe.current=!0,Oe.onStart(_,F,We)}),onStop:He(F=>{Xe.current=!1,Oe.onStop(_,F,ze),F==="leave"&&!Vr(Oe)&&(R("hidden"),j(_))})});let _e=g,Tt={ref:y};return oe?_e={..._e,className:hr(g.className,...Pe.current.enter,...Pe.current.enterFrom)}:Xe.current&&(_e.className=hr(g.className,(n=_.current)==null?void 0:n.className),_e.className===""&&delete _e.className),D.createElement(Ir.Provider,{value:Oe},D.createElement(Aa,{value:he(A,{visible:Ee.Open,hidden:Ee.Closed})|ne.flags},at({ourProps:Tt,theirProps:_e,defaultTag:ou,features:Ia,visible:A==="visible",name:"Transition.Child"})))}function su(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,a=H(null),s=ht(a,t);Jn();let c=ri();if(r===void 0&&c!==null&&(r=(c&Ee.Open)===Ee.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,d]=J(r?"visible":"hidden"),l=La(()=>{d("hidden")}),[b,v]=J(!0),h=H([r]);Te(()=>{b!==!1&&h.current[h.current.length-1]!==r&&(h.current.push(r),v(!1))},[h,r]);let g=ge(()=>({show:r,appear:n,initial:b}),[r,n,b]);ee(()=>{if(r)d("visible");else if(!Vr(l))d("hidden");else{let $=a.current;if(!$)return;let L=$.getBoundingClientRect();L.x===0&&L.y===0&&L.width===0&&L.height===0&&d("hidden")}},[r,l]);let _={unmount:i},y=M(()=>{var $;b&&v(!1),($=e.beforeEnter)==null||$.call(e)}),w=M(()=>{var $;b&&v(!1),($=e.beforeLeave)==null||$.call(e)});return D.createElement(Ir.Provider,{value:l},D.createElement(Lr.Provider,{value:g},at({ourProps:{..._,as:X,children:D.createElement(Va,{ref:s,..._,...o,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:X,features:Ia,visible:f==="visible",name:"Transition"})))}function lu(e,t){let r=Se(Lr)!==null,n=ri()!==null;return D.createElement(D.Fragment,null,!r&&n?D.createElement(hn,{ref:t,...e}):D.createElement(Va,{ref:t,...e}))}let hn=Qe(su),Va=Qe(au),cu=Qe(lu),uu=Object.assign(hn,{Child:cu,Root:hn});const du=Ue(Lt.Button)`
24
- ${()=>({position:"relative",minHeight:"2.25rem",width:"100%",cursor:"pointer",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",textAlign:"left",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), 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-inset":"inset",":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)"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"},"@media (min-width: 768px)":{paddingTop:"0.375rem",paddingBottom:"0.375rem"}})}
16
+ `));let e=u.props,t=typeof e?.className==`function`?(...t)=>Go(e?.className(...t),c.className):Go(e?.className,c.className),n=t?{className:t}:{};return en(u,Object.assign({},Zo(u.props,$o(es(c,[`ref`]))),d,l,{ref:i(u.ref,l.ref)},n))}return x(a,Object.assign({},es(c,[`ref`]),a!==w&&l,a!==w&&d),u)}function Xo(...e){return e.every(e=>e==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n==`function`?n(t):n.current=t)}}function Zo(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith(`on`)&&typeof r[e]==`function`?(n[e]??(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t[`aria-disabled`])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let e in n)Object.assign(t,{[e](t,...r){let i=n[e];for(let e of i){if((t instanceof Event||t?.nativeEvent instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function Qo(e){return Object.assign(yt(e),{displayName:e.displayName??e.name})}function $o(e){let t=Object.assign({},e);for(let e in t)t[e]===void 0&&delete t[e];return t}function es(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var ts=`div`,ns=(e=>(e[e.None=1]=`None`,e[e.Focusable=2]=`Focusable`,e[e.Hidden=4]=`Hidden`,e))(ns||{});function rs(e,t){let{features:n=1,...r}=e;return Jo({ourProps:{ref:t,"aria-hidden":(n&2)==2?!0:r[`aria-hidden`]??void 0,hidden:(n&4)==4?!0:void 0,style:{position:`fixed`,top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,...(n&4)==4&&(n&2)!=2&&{display:`none`}}},theirProps:r,slot:{},defaultTag:ts,name:`Hidden`})}var is=Qo(rs),as=ve(null);as.displayName=`OpenClosedContext`;var os=(e=>(e[e.Open=1]=`Open`,e[e.Closed=2]=`Closed`,e[e.Closing=4]=`Closing`,e[e.Opening=8]=`Opening`,e))(os||{});function ss(){return Je(as)}function cs({value:e,children:t}){return L.createElement(as.Provider,{value:e},t)}function ls(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=t?.getAttribute(`disabled`)===``;return r&&us(n)?!1:r}function us(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function ds(e){throw Error(`Unexpected object: `+e)}var fs=(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))(fs||{});function ps(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=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: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:ds(e)}}function ms(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))gs(n,hs(t,r),i);return n}function hs(e,t){return e?e+`[`+t+`]`:t}function gs(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())gs(e,hs(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n==`boolean`?e.push([t,n?`1`:`0`]):typeof n==`string`?e.push([t,n]):typeof n==`number`?e.push([t,`${n}`]):n==null?e.push([t,``]):ms(n,t,e)}var $=(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))($||{});function _s(){let e=I(!1);return mo(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var vs=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ys(e){let t=e.innerText??``,n=e.cloneNode(!0);if(!(n instanceof HTMLElement))return t;let r=!1;for(let e of n.querySelectorAll(`[hidden],[aria-hidden],[role="img"]`))e.remove(),r=!0;let i=r?n.innerText??``:t;return vs.test(i)&&(i=i.replace(vs,``)),i}function bs(e){let t=e.getAttribute(`aria-label`);if(typeof t==`string`)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 typeof e==`string`?e.trim():ys(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(`, `)}return ys(e).trim()}function xs(e){let t=I(``),n=I(``);return Z(()=>{let r=e.current;if(!r)return``;let i=r.innerText;if(t.current===i)return n.current;let a=bs(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var Ss=(e=>(e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e))(Ss||{}),Cs=(e=>(e[e.Single=0]=`Single`,e[e.Multi=1]=`Multi`,e))(Cs||{}),ws=(e=>(e[e.Pointer=0]=`Pointer`,e[e.Other=1]=`Other`,e))(ws||{}),Ts=(e=>(e[e.OpenListbox=0]=`OpenListbox`,e[e.CloseListbox=1]=`CloseListbox`,e[e.GoToOption=2]=`GoToOption`,e[e.Search=3]=`Search`,e[e.ClearSearch=4]=`ClearSearch`,e[e.RegisterOption=5]=`RegisterOption`,e[e.UnregisterOption=6]=`UnregisterOption`,e[e.RegisterLabel=7]=`RegisterLabel`,e))(Ts||{});function Es(e,t=e=>e){let n=e.activeOptionIndex===null?null:e.options[e.activeOptionIndex],r=Mo(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}var Ds={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=Es(e),r=ps(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:``,activeOptionIndex:r,activationTrigger:t.trigger??1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery===``?1:0,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex===null?e.options:e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n))).find(e=>!e.dataRef.current.disabled&&e.dataRef.current.textValue?.startsWith(r)),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===``?e:{...e,searchQuery:``}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Es(e,e=>[...e,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Es(e,e=>{let n=e.findIndex(e=>e.id===t.id);return n!==-1&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Os=ve(null);Os.displayName=`ListboxActionsContext`;function ks(e){let t=Je(Os);if(t===null){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ks),t}return t}var As=ve(null);As.displayName=`ListboxDataContext`;function js(e){let t=Je(As);if(t===null){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,js),t}return t}function Ms(e,t){return Q(t.type,Ds,e,t)}var Ns=w;function Ps(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(e,t)=>e===t,disabled:c=!1,horizontal:l=!1,multiple:u=!1,...d}=e,f=l?`horizontal`:`vertical`,p=Ho(t),[m=u?[]:void 0,h]=_o(n,o,r),[g,_]=Ue(Ms,{dataRef:C(),listboxState:1,options:[],searchQuery:``,labelId:null,activeOptionIndex:null,activationTrigger:1}),v=I({static:!1,hold:!1}),y=I(null),b=I(null),x=I(null),S=Z(typeof s==`string`?(e,t)=>{let n=s;return e?.[n]===t?.[n]}:s),w=qe(e=>Q(T.mode,{1:()=>m.some(t=>S(t,e)),0:()=>S(m,e)}),[m]),T=Ke(()=>({...g,value:m,disabled:c,mode:u?1:0,orientation:f,compare:S,isSelected:w,optionsPropsRef:v,labelRef:y,buttonRef:b,optionsRef:x}),[m,c,u,g]);mo(()=>{g.dataRef.current=T},[T]),Ro([T.buttonRef,T.optionsRef],(e,t)=>{var n;_({type:1}),Ao(t,ko.Loose)||(e.preventDefault(),(n=T.buttonRef.current)==null||n.focus())},T.listboxState===0);let E=Ke(()=>({open:T.listboxState===0,disabled:c,value:m}),[T,c,m]),D=Z(e=>{let t=T.options.find(t=>t.id===e);t&&j(t.dataRef.current.value)}),ee=Z(()=>{if(T.activeOptionIndex!==null){let{dataRef:e,id:t}=T.options[T.activeOptionIndex];j(e.current.value),_({type:2,focus:fs.Specific,id:t})}}),O=Z(()=>_({type:0})),te=Z(()=>_({type:1})),ne=Z((e,t,n)=>e===fs.Specific?_({type:2,focus:fs.Specific,id:t,trigger:n}):_({type:2,focus:e,trigger:n})),k=Z((e,t)=>(_({type:5,id:e,dataRef:t}),()=>_({type:6,id:e}))),A=Z(e=>(_({type:7,id:e}),()=>_({type:7,id:null}))),j=Z(e=>Q(T.mode,{0(){return h?.(e)},1(){let t=T.value.slice(),n=t.findIndex(t=>S(t,e));return n===-1?t.push(e):t.splice(n,1),h?.(t)}})),re=Z(e=>_({type:3,value:e})),ie=Z(()=>_({type:4})),ae=Ke(()=>({onChange:j,registerOption:k,registerLabel:A,goToOption:ne,closeListbox:te,openListbox:O,selectActiveOption:ee,selectOption:D,search:re,clearSearch:ie}),[]),oe={ref:p},se=I(null),ce=bo();return F(()=>{se.current&&r!==void 0&&ce.addEventListener(se.current,`reset`,()=>{h?.(r)})},[se,h]),L.createElement(Os.Provider,{value:ae},L.createElement(As.Provider,{value:T},L.createElement(cs,{value:Q(T.listboxState,{0:os.Open,1:os.Closed})},a!=null&&m!=null&&ms({[a]:m}).map(([e,t],n)=>L.createElement(is,{features:ns.Hidden,ref:n===0?e=>{se.current=e?.closest(`form`)??null}:void 0,...$o({key:e,as:`input`,type:`hidden`,hidden:!0,readOnly:!0,form:i,disabled:c,name:e,value:t})})),Jo({ourProps:oe,theirProps:d,slot:E,defaultTag:Ns,name:`Listbox`}))))}var Fs=`button`;function Is(e,t){let n=Co(),{id:r=`headlessui-listbox-button-${n}`,...i}=e,a=js(`Listbox.Button`),o=ks(`Listbox.Button`),s=Ho(a.buttonRef,t),c=bo(),l=Z(e=>{switch(e.key){case $.Space:case $.Enter:case $.ArrowDown:e.preventDefault(),o.openListbox(),c.nextFrame(()=>{a.value||o.goToOption(fs.First)});break;case $.ArrowUp:e.preventDefault(),o.openListbox(),c.nextFrame(()=>{a.value||o.goToOption(fs.Last)});break}}),u=Z(e=>{switch(e.key){case $.Space:e.preventDefault();break}}),d=Z(e=>{if(ls(e.currentTarget))return e.preventDefault();a.listboxState===0?(o.closeListbox(),c.nextFrame(()=>a.buttonRef.current?.focus({preventScroll:!0}))):(e.preventDefault(),o.openListbox())}),f=go(()=>{if(a.labelId)return[a.labelId,r].join(` `)},[a.labelId,r]),p=Ke(()=>({open:a.listboxState===0,disabled:a.disabled,value:a.value}),[a]);return Jo({ourProps:{ref:s,id:r,type:Bo(e,a.buttonRef),"aria-haspopup":`listbox`,"aria-controls":a.optionsRef.current?.id,"aria-expanded":a.listboxState===0,"aria-labelledby":f,disabled:a.disabled,onKeyDown:l,onKeyUp:u,onClick:d},theirProps:i,slot:p,defaultTag:Fs,name:`Listbox.Button`})}var Ls=`label`;function Rs(e,t){let n=Co(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=js(`Listbox.Label`),o=ks(`Listbox.Label`),s=Ho(a.labelRef,t);mo(()=>o.registerLabel(r),[r]);let c=Z(()=>a.buttonRef.current?.focus({preventScroll:!0})),l=Ke(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return Jo({ourProps:{ref:s,id:r,onClick:c},theirProps:i,slot:l,defaultTag:Ls,name:`Listbox.Label`})}var zs=`ul`,Bs=Ko.RenderStrategy|Ko.Static;function Vs(e,t){var n;let r=Co(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=js(`Listbox.Options`),s=ks(`Listbox.Options`),c=Ho(o.optionsRef,t),l=bo(),u=bo(),d=ss(),f=d===null?o.listboxState===0:(d&os.Open)===os.Open;F(()=>{let e=o.optionsRef.current;e&&o.listboxState===0&&e!==wo(e)?.activeElement&&e.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let p=Z(e=>{switch(u.dispose(),e.key){case $.Space:if(o.searchQuery!==``)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case $.Enter:if(e.preventDefault(),e.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:e}=o.options[o.activeOptionIndex];s.onChange(e.current.value)}o.mode===0&&(s.closeListbox(),yo().nextFrame(()=>o.buttonRef.current?.focus({preventScroll:!0})));break;case Q(o.orientation,{vertical:$.ArrowDown,horizontal:$.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(fs.Next);case Q(o.orientation,{vertical:$.ArrowUp,horizontal:$.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(fs.Previous);case $.Home:case $.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(fs.First);case $.End:case $.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(fs.Last);case $.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),l.nextFrame(()=>o.buttonRef.current?.focus({preventScroll:!0}));case $.Tab:e.preventDefault(),e.stopPropagation();break;default:e.key.length===1&&(s.search(e.key),u.setTimeout(()=>s.clearSearch(),350));break}}),m=go(()=>o.buttonRef.current?.id,[o.buttonRef.current]),h=Ke(()=>({open:o.listboxState===0}),[o]);return Jo({ourProps:{"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":m,"aria-orientation":o.orientation,id:i,onKeyDown:p,role:`listbox`,tabIndex:0,ref:c},theirProps:a,slot:h,defaultTag:zs,features:Bs,visible:f,name:`Listbox.Options`})}var Hs=`li`;function Us(e,t){let n=Co(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=js(`Listbox.Option`),c=ks(`Listbox.Option`),l=s.activeOptionIndex===null?!1:s.options[s.activeOptionIndex].id===r,u=s.isSelected(a),d=I(null),f=xs(d),p=ho({disabled:i,value:a,domRef:d,get textValue(){return f()}}),m=Ho(t,d);mo(()=>{if(s.listboxState!==0||!l||s.activationTrigger===0)return;let e=yo();return e.requestAnimationFrame(()=>{var e,t;(t=(e=d.current)?.scrollIntoView)==null||t.call(e,{block:`nearest`})}),e.dispose},[d,l,s.listboxState,s.activationTrigger,s.activeOptionIndex]),mo(()=>c.registerOption(r,p),[p,r]);let h=Z(e=>{if(i)return e.preventDefault();c.onChange(a),s.mode===0&&(c.closeListbox(),yo().nextFrame(()=>s.buttonRef.current?.focus({preventScroll:!0})))}),g=Z(()=>{if(i)return c.goToOption(fs.Nothing);c.goToOption(fs.Specific,r)}),_=Wo(),v=Z(e=>_.update(e)),y=Z(e=>{_.wasMoved(e)&&(i||l||c.goToOption(fs.Specific,r,0))}),b=Z(e=>{_.wasMoved(e)&&(i||l&&c.goToOption(fs.Nothing))}),x=Ke(()=>({active:l,selected:u,disabled:i}),[l,u,i]);return Jo({ourProps:{id:r,ref:m,role:`option`,tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":u,disabled:void 0,onClick:h,onFocus:g,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:o,slot:x,defaultTag:Hs,name:`Listbox.Option`})}var Ws=Qo(Ps),Gs=Qo(Is),Ks=Qo(Rs),qs=Qo(Vs),Js=Qo(Us),Ys=Object.assign(Ws,{Button:Gs,Label:Ks,Options:qs,Option:Js});function Xs(e=0){let[t,n]=P(e),r=_s();return{flags:t,addFlag:qe(e=>{r.current&&n(t=>t|e)},[t,r]),hasFlag:qe(e=>!!(t&e),[t]),removeFlag:qe(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:qe(e=>{r.current&&n(t=>t^e)},[n])}}function Zs(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Qs(e,...t){e&&t.length>0&&e.classList.add(...t)}function $s(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ec(e,t){let n=yo();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(e=>{let[t=0]=e.split(`,`).filter(Boolean).map(e=>e.includes(`ms`)?parseFloat(e):parseFloat(e)*1e3).sort((e,t)=>t-e);return t}),s=a+o;if(s!==0){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,`transitionrun`,e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,`transitionend`,e=>{e.target===e.currentTarget&&(t(),r())})}else t();return n.add(()=>t()),n.dispose}function tc(e,t,n,r){let i=n?`enter`:`leave`,a=yo(),o=r===void 0?()=>{}:Zs(r);i===`enter`&&(e.removeAttribute(`hidden`),e.style.display=``);let s=Q(i,{enter:()=>t.enter,leave:()=>t.leave}),c=Q(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=Q(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return $s(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Qs(e,...t.base,...s,...l),a.nextFrame(()=>{$s(e,...t.base,...s,...l),Qs(e,...t.base,...s,...c),ec(e,()=>($s(e,...t.base,...s),Qs(e,...t.base,...t.entered),o()))}),a.dispose}function nc({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=_s(),s=bo(),c=ho(n);mo(()=>{e&&(c.current=`enter`)},[e]),mo(()=>{let e=yo();s.add(e.dispose);let n=t.current;if(n&&c.current!==`idle`&&o.current)return e.dispose(),i.current(c.current),e.add(tc(n,r.current,c.current===`enter`,()=>{e.dispose(),a.current(c.current)})),e.dispose},[n])}function rc(e=``){return e.split(/\s+/).filter(e=>e.length>1)}var ic=ve(null);ic.displayName=`TransitionContext`;var ac=(e=>(e.Visible=`visible`,e.Hidden=`hidden`,e))(ac||{});function oc(){let e=Je(ic);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}function sc(){let e=Je(cc);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}var cc=ve(null);cc.displayName=`NestingContext`;function lc(e){return`children`in e?lc(e.children):e.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e===`visible`).length>0}function uc(e,t){let n=ho(e),r=I([]),i=_s(),a=bo(),o=Z((e,t=qo.Hidden)=>{let o=r.current.findIndex(({el:t})=>t===e);o!==-1&&(Q(t,{[qo.Unmount](){r.current.splice(o,1)},[qo.Hidden](){r.current[o].state=`hidden`}}),a.microTask(()=>{var e;!lc(r)&&i.current&&((e=n.current)==null||e.call(n))}))}),s=Z(e=>{let t=r.current.find(({el:t})=>t===e);return t?t.state!==`visible`&&(t.state=`visible`):r.current.push({el:e,state:`visible`}),()=>o(e,qo.Unmount)}),c=I([]),l=I(Promise.resolve()),u=I({enter:[],leave:[],idle:[]}),d=Z((e,n,r)=>{c.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=>{c.current.push(e)})]),t?.chains.current[n].push([e,new Promise(e=>{Promise.all(u.current[n].map(([e,t])=>t)).then(()=>e())})]),n===`enter`?l.current=l.current.then(()=>t?.wait.current).then(()=>r(n)):r(n)}),f=Z((e,t,n)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;(e=c.current.shift())==null||e()}).then(()=>n(t))});return Ke(()=>({children:r,register:s,unregister:o,onStart:d,onStop:f,wait:l,chains:u}),[s,o,r,d,f,u,l])}function dc(){}var fc=[`beforeEnter`,`afterEnter`,`beforeLeave`,`afterLeave`];function pc(e){let t={};for(let n of fc)t[n]=e[n]??dc;return t}function mc(e){let t=I(pc(e));return F(()=>{t.current=pc(e)},[e]),t}var hc=`div`,gc=Ko.RenderStrategy;function _c(e,t){var n;let{beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:o,enter:s,enterFrom:c,enterTo:l,entered:u,leave:d,leaveFrom:f,leaveTo:p,...m}=e,h=I(null),g=Ho(h,t),_=(n=m.unmount)==null||n?qo.Unmount:qo.Hidden,{show:v,appear:y,initial:b}=oc(),[x,S]=P(v?`visible`:`hidden`),C=sc(),{register:w,unregister:T}=C;F(()=>w(h),[w,h]),F(()=>{if(_===qo.Hidden&&h.current){if(v&&x!==`visible`){S(`visible`);return}return Q(x,{hidden:()=>T(h),visible:()=>w(h)})}},[x,h,w,T,v,_]);let E=ho({base:rc(m.className),enter:rc(s),enterFrom:rc(c),enterTo:rc(l),entered:rc(u),leave:rc(d),leaveFrom:rc(f),leaveTo:rc(p)}),D=mc({beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:o}),ee=So();F(()=>{if(ee&&x===`visible`&&h.current===null)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,x,ee]);let O=b&&!y,te=y&&v&&b,ne=!ee||O?`idle`:v?`enter`:`leave`,k=Xs(0),A=Z(e=>Q(e,{enter:()=>{k.addFlag(os.Opening),D.current.beforeEnter()},leave:()=>{k.addFlag(os.Closing),D.current.beforeLeave()},idle:()=>{}})),j=Z(e=>Q(e,{enter:()=>{k.removeFlag(os.Opening),D.current.afterEnter()},leave:()=>{k.removeFlag(os.Closing),D.current.afterLeave()},idle:()=>{}})),re=uc(()=>{S(`hidden`),T(h)},C),ie=I(!1);nc({immediate:te,container:h,classes:E,direction:ne,onStart:ho(e=>{ie.current=!0,re.onStart(h,e,A)}),onStop:ho(e=>{ie.current=!1,re.onStop(h,e,j),e===`leave`&&!lc(re)&&(S(`hidden`),T(h))})});let ae=m,oe={ref:g};return te?ae={...ae,className:Go(m.className,...E.current.enter,...E.current.enterFrom)}:ie.current&&(ae.className=Go(m.className,h.current?.className),ae.className===``&&delete ae.className),L.createElement(cc.Provider,{value:re},L.createElement(cs,{value:Q(x,{visible:os.Open,hidden:os.Closed})|k.flags},Jo({ourProps:oe,theirProps:ae,defaultTag:hc,features:gc,visible:x===`visible`,name:`Transition.Child`})))}function vc(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=I(null),s=Ho(o,t);So();let c=ss();if(n===void 0&&c!==null&&(n=(c&os.Open)===os.Open),![!0,!1].includes(n))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[l,u]=P(n?`visible`:`hidden`),d=uc(()=>{u(`hidden`)}),[f,p]=P(!0),m=I([n]);mo(()=>{f!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,n]);let h=Ke(()=>({show:n,appear:r,initial:f}),[n,r,f]);F(()=>{if(n)u(`visible`);else if(!lc(d))u(`hidden`);else{let e=o.current;if(!e)return;let t=e.getBoundingClientRect();t.x===0&&t.y===0&&t.width===0&&t.height===0&&u(`hidden`)}},[n,d]);let g={unmount:i},_=Z(()=>{var t;f&&p(!1),(t=e.beforeEnter)==null||t.call(e)}),v=Z(()=>{var t;f&&p(!1),(t=e.beforeLeave)==null||t.call(e)});return L.createElement(cc.Provider,{value:d},L.createElement(ic.Provider,{value:h},Jo({ourProps:{...g,as:w,children:L.createElement(xc,{ref:s,...g,...a,beforeEnter:_,beforeLeave:v})},theirProps:{},defaultTag:w,features:gc,visible:l===`visible`,name:`Transition`})))}function yc(e,t){let n=Je(ic)!==null,r=ss()!==null;return L.createElement(L.Fragment,null,!n&&r?L.createElement(bc,{ref:t,...e}):L.createElement(xc,{ref:t,...e}))}var bc=Qo(vc),xc=Qo(_c),Sc=Qo(yc),Cc=Object.assign(bc,{Child:Sc,Root:bc}),wc=di(Ys.Button)`
17
+ ${()=>({position:`relative`,minHeight:`2.25rem`,width:`100%`,cursor:`pointer`,borderRadius:`0.375rem`,"--tw-bg-opacity":`1`,backgroundColor:`rgb(255 255 255 / var(--tw-bg-opacity, 1))`,paddingTop:`0.5rem`,paddingBottom:`0.5rem`,paddingLeft:`0.75rem`,paddingRight:`2.5rem`,textAlign:`left`,fontSize:`1rem`,lineHeight:`1.5rem`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`,"--tw-shadow":`0 1px 2px 0 rgb(0 0 0 / 0.05)`,"--tw-shadow-colored":`0 1px 2px 0 var(--tw-shadow-color)`,boxShadow:`var(--tw-ring-offset-shadow), 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-inset":`inset`,":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)`},"@media (min-width: 640px)":{fontSize:`0.875rem`,lineHeight:`1.5rem`},"@media (min-width: 768px)":{paddingTop:`0.375rem`,paddingBottom:`0.375rem`}})}
25
18
 
26
- ${({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}
27
- `,fu=Ue(Lt.Label)`
28
- ${({variant:e})=>e==="sm"?{position:"absolute",zIndex:"50",marginLeft:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingLeft:"0.25rem",paddingRight:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
29
- `;function io(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function oo(e,t,r){var n=[],i=Or(e,n,r);return n.length<2?r:i+t(n)}var pu=function(t){var r=In(t);r.sheet.speedy=function(s){this.isSpeedy=s},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var l=ut(f,r.registered,void 0);return Ar(r,l,!1),r.key+"-"+l.name},i=function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var l=ut(f,r.registered),b="animation-"+l.name;return io(r,{name:l.name,styles:"@keyframes "+b+"{"+l.styles+"}"}),b},o=function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var l=ut(f,r.registered);io(r,l)},a=function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];return oo(r.registered,n,hu(f))};return{css:n,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Or.bind(null,r.registered),merge:oo.bind(null,r.registered,n)}},hu=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},Na=pu({key:"css"}),Zr=Na.cx,Jr=Na.css;function mu({title:e,titleId:t,...r},n){return K("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?K("title",{id:t},e):null,K("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const gu=Ye(mu);function vu({title:e,titleId:t,...r},n){return K("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?K("title",{id:t},e):null,K("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}const yu=Ye(vu),ai=Ye(({inputLabel:e,items:t,value:r,className:n,onChange:i,error:o,helperText:a,variant:s},c)=>q("div",{className:n,children:[x(Lt,{value:r||"",onChange:d=>{i(d)},children:({open:d})=>{var l;return q(X,{children:[x(fu,{variant:s,children:e}),q("div",{css:{position:"relative",marginTop:"0.5rem"},children:[q(du,{as:"button",ref:c,hasError:!!o,children:[x("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"},children:((l=t.find(b=>b.key==r))==null?void 0:l.displayValue)??"Select"}),x("span",{css:{pointerEvents:"none",position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",paddingRight:"0.75rem"},children:x(gu,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},"aria-hidden":"true"})})]}),x(uu,{show:d,leave:Zr(Jr({transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)",transitionDuration:"100ms"})),leaveFrom:Zr(Jr({opacity:"1"})),leaveTo:Zr(Jr({opacity:"0"})),children:x(Lt.Options,{css:{position:"absolute",zIndex:"10",marginTop:"0.25rem",maxHeight:"15rem",width:"100%",overflow:"auto",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"1rem",lineHeight:"1.5rem","--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-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:t.map(b=>q(Lt.Option,{css:{position:"relative",cursor:"default",userSelect:"none",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.25rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",'&[data-headlessui-state~="active"]':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{backgroundColor:"var(--fl-color-primary-600)","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},value:b.key,children:[x("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",'&[data-headlessui-state~="selected"]':{fontWeight:"600"},':where([data-headlessui-state~="selected"]) &':{fontWeight:"600"}},children:b.displayValue}),x("span",{css:{position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"none",alignItems:"center",paddingRight:"0.75rem",color:"var(--fl-color-primary-600)",'&[data-headlessui-state~="selected"]':{display:"flex"},':where([data-headlessui-state~="selected"]) &':{display:"flex"},'&[data-headlessui-state~="active"]':{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},':where([data-headlessui-state~="active"]) &':{"--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"}},children:x(yu,{css:{height:"1.25rem",width:"1.25rem"},"aria-hidden":"true"})})]},b.key))})})]})]})}}),(o==null?void 0:o.message)&&x("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:o.message}),a&&x("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:a})]})),_u=[{key:"goCardless",displayValue:"GoCardless"},{key:"westpac",displayValue:"Westpac"}],bu=()=>{const[e,t]=J(),[r,n]=J(!1),[i,o]=J(),{postCatcheReceiptBatch:a}=Zn(),{control:s,handleSubmit:c,watch:f}=Qn({mode:"onChange",defaultValues:{source:"goCardless"}});ee(()=>{const l=f(()=>{t(void 0),o(void 0)});return()=>l.unsubscribe()},[f]);const d=async l=>{o(void 0),n(!0);try{const b=await a(l);t(b),n(!1)}catch(b){if(n(!1),b instanceof Et){const v=await Xn(b);b.response.status===401?o("Authenticated session expired. Please refresh the page to start a new session."):o(`Something went wrong. Please ensure the uploaded file is valid and in the correct format. CorrelationId: ${v.correlationId??"Unknown"}`)}}};return q(X,{children:[x("div",{css:{marginBottom:"1.25rem"},children:x("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Create Catch-E Receipt Batch"})}),q("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}},children:[q("form",{onSubmit:c(d),children:[x(Ie,{name:"source",control:s,render:({field:l})=>x(ai,{inputLabel:"Source",css:{marginBottom:"1rem"},items:_u,...l})}),x(Ie,{name:"transactionsFile",control:s,rules:{validate:{validFile:l=>l.name.split(".")[1]==="csv"||"File must be a '.csv'"},required:"Please upload a csv"},render:({field:l,fieldState:b})=>x(xl,{inputLabel:"Transactions",...l,error:b.error})}),x("div",{css:{marginTop:"2rem"},children:r?x(wa,{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Loading"}):x(Pr,{type:"submit",children:"Submit"})})]}),q("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:[i&&x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:i}),e&&x(ba,{blob:e,fileName:"receipt_batch.zip",children:"Download"})]})]})]})},wu=Ue.button`
30
- ${{whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600"}}
19
+ ${({hasError:e})=>e?{"--tw-ring-opacity":`1`,"--tw-ring-color":`rgb(252 165 165 / var(--tw-ring-opacity, 1))`,":focus":{"--tw-ring-opacity":`1`,"--tw-ring-color":`rgb(220 38 38 / var(--tw-ring-opacity, 1))`}}:{"--tw-ring-opacity":`1`,"--tw-ring-color":`rgb(209 213 219 / var(--tw-ring-opacity, 1))`,":focus":{"--tw-ring-color":`var(--fl-color-primary-600)`}}}
20
+ `,Tc=di(Ys.Label)`
21
+ ${({variant:e})=>e===`sm`?{position:`absolute`,zIndex:`50`,marginLeft:`0.5rem`,"--tw-bg-opacity":`1`,backgroundColor:`rgb(255 255 255 / var(--tw-bg-opacity, 1))`,paddingLeft:`0.25rem`,paddingRight:`0.25rem`,fontSize:`0.75rem`,lineHeight:`1rem`,fontWeight:`500`,"--tw-text-opacity":`1`,color:`rgb(55 65 81 / var(--tw-text-opacity, 1))`}:{display:`block`,fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:`500`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`}}
22
+ `;function Ec(e,t){if(e.inserted[t.name]===void 0)return e.insert(``,t,e.sheet,!0)}function Dc(e,t,n){var r=[],i=xr(e,r,n);return r.length<2?n:i+t(r)}var Oc=function(e){var t=gr(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){var e=Rr([...arguments],t.registered,void 0);return Cr(t,e,!1),t.key+`-`+e.name};return{css:n,cx:function(){var e=[...arguments];return Dc(t.registered,n,kc(e))},injectGlobal:function(){Ec(t,Rr([...arguments],t.registered))},keyframes:function(){var e=Rr([...arguments],t.registered),n=`animation-`+e.name;return Ec(t,{name:e.name,styles:`@keyframes `+n+`{`+e.styles+`}`}),n},hydrate:function(e){e.forEach(function(e){t.inserted[e]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:xr.bind(null,t.registered),merge:Dc.bind(null,t.registered,n)}},kc=function e(t){for(var n=``,r=0;r<t.length;r++){var i=t[r];if(i!=null){var a=void 0;switch(typeof i){case`boolean`:break;case`object`:if(Array.isArray(i))a=e(i);else for(var o in a=``,i)i[o]&&o&&(a&&(a+=` `),a+=o);break;default:a=i}a&&(n&&(n+=` `),n+=a)}}return n},Ac=Oc({key:`css`});Ac.flush,Ac.hydrate;var jc=Ac.cx;Ac.merge,Ac.getRegisteredStyles,Ac.injectGlobal,Ac.keyframes;var Mc=Ac.css;Ac.sheet,Ac.cache;function Nc({title:e,titleId:t,...n},r){return x(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?x(`title`,{id:t},e):null,x(`path`,{fillRule:`evenodd`,d:`M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z`,clipRule:`evenodd`}))}var Pc=yt(Nc);function Fc({title:e,titleId:t,...n},r){return x(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?x(`title`,{id:t},e):null,x(`path`,{fillRule:`evenodd`,d:`M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z`,clipRule:`evenodd`}))}var Ic=yt(Fc),Lc=yt(({inputLabel:e,items:t,value:n,className:r,onChange:i,error:a,helperText:o,variant:s},c)=>W(`div`,{className:r,children:[U(Ys,{value:n||``,onChange:e=>{i(e)},children:({open:r})=>W(w,{children:[U(Tc,{variant:s,children:e}),W(`div`,{css:{position:`relative`,marginTop:`0.5rem`},children:[W(wc,{as:`button`,ref:c,hasError:!!a,children:[U(`span`,{css:{display:`block`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,fontSize:`0.875rem`,lineHeight:`1.25rem`},children:t.find(e=>e.key==n)?.displayValue??`Select`}),U(`span`,{css:{pointerEvents:`none`,position:`absolute`,top:`0px`,bottom:`0px`,right:`0px`,display:`flex`,alignItems:`center`,paddingRight:`0.75rem`},children:U(Pc,{css:{height:`1.25rem`,width:`1.25rem`,"--tw-text-opacity":`1`,color:`rgb(156 163 175 / var(--tw-text-opacity, 1))`},"aria-hidden":`true`})})]}),U(Cc,{show:r,leave:jc(Mc({transitionProperty:`color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter`,transitionTimingFunction:`cubic-bezier(0.4, 0, 1, 1)`,transitionDuration:`100ms`})),leaveFrom:jc(Mc({opacity:`1`})),leaveTo:jc(Mc({opacity:`0`})),children:U(Ys.Options,{css:{position:`absolute`,zIndex:`10`,marginTop:`0.25rem`,maxHeight:`15rem`,width:`100%`,overflow:`auto`,borderRadius:`0.375rem`,"--tw-bg-opacity":`1`,backgroundColor:`rgb(255 255 255 / var(--tw-bg-opacity, 1))`,paddingTop:`0.25rem`,paddingBottom:`0.25rem`,fontSize:`1rem`,lineHeight:`1.5rem`,"--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-opacity":`0.05`,"--tw-ring-color":`rgb(0 0 0 / var(--tw-ring-opacity, 1))`,":focus":{outline:`2px solid transparent`,outlineOffset:`2px`},"@media (min-width: 640px)":{fontSize:`0.875rem`,lineHeight:`1.25rem`}},children:t.map(e=>W(Ys.Option,{css:{position:`relative`,cursor:`default`,userSelect:`none`,paddingTop:`0.5rem`,paddingBottom:`0.5rem`,paddingLeft:`0.75rem`,paddingRight:`2.25rem`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`,'&[data-headlessui-state~="active"]':{backgroundColor:`var(--fl-color-primary-600)`,"--tw-text-opacity":`1`,color:`rgb(255 255 255 / var(--tw-text-opacity, 1))`},':where([data-headlessui-state~="active"]) &':{backgroundColor:`var(--fl-color-primary-600)`,"--tw-text-opacity":`1`,color:`rgb(255 255 255 / var(--tw-text-opacity, 1))`}},value:e.key,children:[U(`span`,{css:{display:`block`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,'&[data-headlessui-state~="selected"]':{fontWeight:`600`},':where([data-headlessui-state~="selected"]) &':{fontWeight:`600`}},children:e.displayValue}),U(`span`,{css:{position:`absolute`,top:`0px`,bottom:`0px`,right:`0px`,display:`none`,alignItems:`center`,paddingRight:`0.75rem`,color:`var(--fl-color-primary-600)`,'&[data-headlessui-state~="selected"]':{display:`flex`},':where([data-headlessui-state~="selected"]) &':{display:`flex`},'&[data-headlessui-state~="active"]':{"--tw-text-opacity":`1`,color:`rgb(255 255 255 / var(--tw-text-opacity, 1))`},':where([data-headlessui-state~="active"]) &':{"--tw-text-opacity":`1`,color:`rgb(255 255 255 / var(--tw-text-opacity, 1))`}},children:U(Ic,{css:{height:`1.25rem`,width:`1.25rem`},"aria-hidden":`true`})})]},e.key))})})]})]})}),a?.message&&U(`p`,{css:{marginTop:`0.5rem`,marginBottom:`0.5rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`,"--tw-text-opacity":`1`,color:`rgb(220 38 38 / var(--tw-text-opacity, 1))`},children:a.message}),o&&U(`span`,{css:{fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:`400`,"--tw-text-opacity":`1`,color:`rgb(107 114 128 / var(--tw-text-opacity, 1))`},children:o})]})),Rc=[{key:`goCardless`,displayValue:`GoCardless`},{key:`westpac`,displayValue:`Westpac`}],zc=()=>{let[e,t]=P(),[n,r]=P(!1),[i,a]=P(),{postCatcheReceiptBatch:o}=co(),{control:s,handleSubmit:c,watch:l}=za({mode:`onChange`,defaultValues:{source:`goCardless`}});F(()=>{let e=l(()=>{t(void 0),a(void 0)});return()=>e.unsubscribe()},[l]);let u=async e=>{a(void 0),r(!0);try{t(await o(e)),r(!1)}catch(e){if(r(!1),e instanceof qa){let t=await Wa(e);e.response.status===401?a(`Authenticated session expired. Please refresh the page to start a new session.`):a(`Something went wrong. Please ensure the uploaded file is valid and in the correct format. CorrelationId: ${t.correlationId??`Unknown`}`)}}};return W(w,{children:[U(`div`,{css:{marginBottom:`1.25rem`},children:U(`h1`,{css:{fontSize:`1.25rem`,lineHeight:`1.75rem`,fontWeight:`600`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`},children:`Create Catch-E Receipt Batch`})}),W(`div`,{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":`0`,borderTopWidth:`calc(1px * calc(1 - var(--tw-divide-y-reverse)))`,borderBottomWidth:`calc(1px * var(--tw-divide-y-reverse))`,borderStyle:`dashed`,"--tw-divide-opacity":`1`,borderColor:`rgb(156 163 175 / var(--tw-divide-opacity, 1))`}},children:[W(`form`,{onSubmit:c(u),children:[U(qi,{name:`source`,control:s,render:({field:e})=>U(Lc,{inputLabel:`Source`,css:{marginBottom:`1rem`},items:Rc,...e})}),U(qi,{name:`transactionsFile`,control:s,rules:{validate:{validFile:e=>e.name.split(`.`)[1]===`csv`||`File must be a '.csv'`},required:`Please upload a csv`},render:({field:e,fieldState:t})=>U(gi,{inputLabel:`Transactions`,...e,error:t.error})}),U(`div`,{css:{marginTop:`2rem`},children:n?U(Ua,{css:{position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`},children:`Loading`}):U(Va,{type:`submit`,children:`Submit`})})]}),W(`div`,{css:{marginTop:`1.25rem`,paddingTop:`1.25rem`},children:[i&&U(`p`,{css:{marginTop:`0.5rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`,"--tw-text-opacity":`1`,color:`rgb(220 38 38 / var(--tw-text-opacity, 1))`},children:i}),e&&U(Ha,{blob:e,fileName:`receipt_batch.zip`,children:`Download`})]})]})]})},Bc=di.button`
23
+ ${{whiteSpace:`nowrap`,borderBottomWidth:`2px`,paddingLeft:`0.25rem`,paddingRight:`0.25rem`,paddingTop:`1rem`,paddingBottom:`1rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:`600`}}
31
24
 
32
- ${({isCurrent:e})=>e?{borderColor:"var(--fl-color-primary-600)",color:"var(--fl-color-primary-700)"}:{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))"}}}
33
- `,xu=({tabs:e,currentTab:t,onChange:r,className:n})=>x("div",{className:n,children:x("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:x("nav",{css:{marginBottom:"-1px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"}},"aria-label":"Tabs",children:e.map(i=>x(wu,{type:"button",onClick:()=>r(i.id),"aria-current":i.id===t?"page":void 0,isCurrent:i.id===t,children:i.displayName},i.displayName))})})}),Su=({className:e,inputLabel:t,items:r,value:n,onChange:i})=>{const o=a=>{const s=a.target;i(s.id)};return q("div",{className:e,children:[x("label",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:t}),q("fieldset",{css:{marginTop:"0.25rem"},children:[x("legend",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:t}),x("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"0",marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"},"@media (min-width: 640px)":{display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2.5rem * var(--tw-space-x-reverse))",marginLeft:"calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))","--tw-space-y-reverse":"0",marginTop:"calc(0px * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(0px * var(--tw-space-y-reverse))"}}},children:r.map(a=>q("div",{css:{display:"flex",alignItems:"center"},children:[x("input",{id:a.key,name:a.key,type:"radio",checked:n===a.key,onClick:o,css:{height:"1rem",width:"1rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",color:"var(--fl-color-primary-600)",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}),x("label",{htmlFor:a.key,css:{marginLeft:"0.75rem",display:"block",fontSize:"0.875rem",lineHeight:"1.5rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:a.displayValue})]},a.key))})]})]})},ku=Ue.input`
34
- ${()=>({display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}})}
25
+ ${({isCurrent:e})=>e?{borderColor:`var(--fl-color-primary-600)`,color:`var(--fl-color-primary-700)`}:{borderColor:`transparent`,"--tw-text-opacity":`1`,color:`rgb(107 114 128 / var(--tw-text-opacity, 1))`,":hover":{"--tw-border-opacity":`1`,borderColor:`rgb(209 213 219 / var(--tw-border-opacity, 1))`,"--tw-text-opacity":`1`,color:`rgb(55 65 81 / var(--tw-text-opacity, 1))`}}}
26
+ `,Vc=({tabs:e,currentTab:t,onChange:n,className:r})=>U(`div`,{className:r,children:U(`div`,{css:{borderBottomWidth:`1px`,"--tw-border-opacity":`1`,borderColor:`rgb(229 231 235 / var(--tw-border-opacity, 1))`},children:U(`nav`,{css:{marginBottom:`-1px`,display:`flex`,"> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":`0`,marginRight:`calc(2rem * var(--tw-space-x-reverse))`,marginLeft:`calc(2rem * calc(1 - var(--tw-space-x-reverse)))`}},"aria-label":`Tabs`,children:e.map(e=>U(Bc,{type:`button`,onClick:()=>n(e.id),"aria-current":e.id===t?`page`:void 0,isCurrent:e.id===t,children:e.displayName},e.displayName))})})}),Hc=({className:e,inputLabel:t,items:n,value:r,onChange:i})=>{let a=e=>{let t=e.target;i(t.id)};return W(`div`,{className:e,children:[U(`label`,{css:{fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:`500`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`},children:t}),W(`fieldset`,{css:{marginTop:`0.25rem`},children:[U(`legend`,{css:{position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`},children:t}),U(`div`,{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":`0`,marginTop:`calc(1rem * calc(1 - var(--tw-space-y-reverse)))`,marginBottom:`calc(1rem * var(--tw-space-y-reverse))`},"@media (min-width: 640px)":{display:`flex`,alignItems:`center`,"> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":`0`,marginRight:`calc(2.5rem * var(--tw-space-x-reverse))`,marginLeft:`calc(2.5rem * calc(1 - var(--tw-space-x-reverse)))`,"--tw-space-y-reverse":`0`,marginTop:`calc(0px * calc(1 - var(--tw-space-y-reverse)))`,marginBottom:`calc(0px * var(--tw-space-y-reverse))`}}},children:n.map(e=>W(`div`,{css:{display:`flex`,alignItems:`center`},children:[U(`input`,{id:e.key,name:e.key,type:`radio`,checked:r===e.key,onClick:a,css:{height:`1rem`,width:`1rem`,"--tw-border-opacity":`1`,borderColor:`rgb(209 213 219 / var(--tw-border-opacity, 1))`,color:`var(--fl-color-primary-600)`,":focus":{"--tw-ring-color":`var(--fl-color-primary-600)`}}}),U(`label`,{htmlFor:e.key,css:{marginLeft:`0.75rem`,display:`block`,fontSize:`0.875rem`,lineHeight:`1.5rem`,fontWeight:`500`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`},children:e.displayValue})]},e.key))})]})]})},Uc=di.input`
27
+ ${()=>({display:`block`,minHeight:`2.25rem`,width:`100%`,borderRadius:`0.375rem`,borderWidth:`0px`,paddingTop:`0.375rem`,paddingBottom:`0.375rem`,paddingRight:`5rem`,fontSize:`1rem`,lineHeight:`1.5rem`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`,"--tw-ring-offset-shadow":`var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,"--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:`var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)`,"--tw-ring-inset":`inset`,"::placeholder":{"--tw-text-opacity":`1`,color:`rgb(156 163 175 / var(--tw-text-opacity, 1))`},":focus":{"--tw-ring-offset-shadow":`var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,"--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:`var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)`,"--tw-ring-inset":`inset`},"@media (min-width: 640px)":{fontSize:`0.875rem`,lineHeight:`1.5rem`}})}
35
28
 
36
- ${({prefix:e})=>e?{paddingLeft:"1.75rem"}:{paddingLeft:"0.75rem"}}
29
+ ${({prefix:e})=>e?{paddingLeft:`1.75rem`}:{paddingLeft:`0.75rem`}}
37
30
 
38
- ${({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}
39
- `,Cu=Ue.div`
40
- ${({isHidden:e})=>e?{display:"none"}:{display:"block"}}
41
- `,At=Ye(({label:e,id:t,type:r,placeholder:n,value:i,className:o,onChange:a,onBlur:s,error:c,isHidden:f,min:d,max:l},b)=>{const v=g=>{g.target instanceof HTMLInputElement&&a(g.target.value.trim())},h=g=>{g.target instanceof HTMLInputElement&&s&&s(g.target.value.trim())};return q(Cu,{isHidden:f,className:o,children:[x("label",{htmlFor:t,css:{display:"block",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e}),x("div",{css:{marginTop:"0.5rem"},children:x(ku,{type:r,value:i,name:t,id:t,placeholder:n,onChange:v,onBlur:h,hasError:!!c,ref:b,min:d,max:l})}),(c==null?void 0:c.message)&&x("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:c.message})]})}),Eu=[{key:"All",displayValue:"All"},{key:"GroupCode",displayValue:"Group code"},{key:"ClientId",displayValue:"Client Id"}],ao=[{key:"itc",displayValue:"Net ITC",hasDateRange:!0},{key:"lcc",displayValue:"List of Luxury Cars",hasDateRange:!0},{key:"lccPrime",displayValue:"LCC Prime Calculations",hasDateRange:!1},{key:"lccNewInformation",displayValue:"New LCC Information",hasDateRange:!1},{key:"directDebit",displayValue:"Direct Debit",hasDateRange:!0},{key:"fbtExempt",displayValue:"FBT Exempt",hasDateRange:!0}],$u=(e,t)=>e&&t.endDate?new Date(e)<=new Date(t.endDate)||"Start must be before End":!0,Tu=(e,t)=>e&&t.startDate?new Date(e)>=new Date(t.startDate)||"End must be after Start":!0,Ru=()=>{const[e,t]=J(),[r,n]=J(!1),[i,o]=J(),{getCatcheReport:a}=Zn(),{control:s,handleSubmit:c,watch:f}=Qn({mode:"onBlur",defaultValues:{entityType:"All"}});ee(()=>{const h=f(()=>{t(void 0),o(void 0)});return()=>h.unsubscribe()},[f]);const d=()=>f("entityType"),l=f("report"),b=ao.find(h=>h.key===l),v=async h=>{o(void 0),n(!0);try{const g=await a({...h,clientId:d()==="ClientId"?h.clientId:"",groupCode:d()==="GroupCode"?h.groupCode:""});t({blob:g,inputs:h}),n(!1)}catch(g){if(n(!1),g instanceof Et){const _=await Xn(g);g.response.status===401?o("Authenticated session expired. Please refresh the page to start a new session."):o(`Something went wrong. Try again later. CorrelationId: ${_.correlationId??"Unknown"}`)}}};return q(X,{children:[x("div",{css:{marginBottom:"1.25rem"},children:x("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Generate CatchE Report"})}),q("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}},children:[q("form",{onSubmit:c(v),children:[q("div",{css:{marginBottom:"1rem",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem"},children:[x(Ie,{name:"report",control:s,rules:{required:"Report is required"},render:({field:h,fieldState:g})=>x(ai,{inputLabel:"Report",css:{gridColumn:"span 2 / span 2"},items:ao,error:g.error,...h})}),(!b||b.hasDateRange)&&q(wl,{children:[x(Ie,{name:"startDate",control:s,rules:{validate:{validateStartDate:$u}},render:({field:h,fieldState:g})=>x(At,{label:"Start Date",id:"startDate",css:{gridColumn:"span 1 / span 1"},type:"date",error:g.error,...h})}),x(Ie,{name:"endDate",control:s,rules:{validate:{validateEndDate:Tu}},render:({field:h,fieldState:g})=>x(At,{label:"End Date",id:"endDate",css:{gridColumn:"span 1 / span 1"},type:"date",error:g.error,...h})})]})]}),x(Ie,{name:"entityType",control:s,render:({field:h})=>x(Su,{inputLabel:"Identifier type",css:{marginBottom:"1rem"},items:Eu,...h})}),x(Ie,{name:"groupCode",control:s,rules:{validate:{requiresGroupCode:h=>d()!=="GroupCode"||!!h||"Group Code is required",validGroupCode:h=>d()!=="GroupCode"||/^[A-Z0-9]+$/.test(h)||"Group Code is not valid"}},render:({field:h,fieldState:g})=>x(At,{label:"Group code",id:"groupCode",type:"text",isHidden:d()!=="GroupCode",error:g.error,...h})}),x(Ie,{name:"clientId",control:s,rules:{validate:{requiresClientId:h=>d()!=="ClientId"||!!h||"Client Id is required"}},render:({field:h,fieldState:g})=>x(At,{label:"Client Id",id:"clientId",type:"number",isHidden:d()!=="ClientId",error:g.error,...h})}),x("div",{css:{marginTop:"1rem"},children:r?x(wa,{}):x(Pr,{type:"submit",children:"Submit"})})]}),q("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:[i&&x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:i}),(e==null?void 0:e.blob)&&x(ba,{blob:e.blob,fileName:`${e.inputs.entityType==="GroupCode"?`${e.inputs.groupCode}_`:e.inputs.entityType==="ClientId"?`${e.inputs.clientId}_`:""}${e.inputs.startDate?`${e.inputs.startDate}_`:""}${e.inputs.endDate?`${e.inputs.endDate}_`:""}${e.inputs.report}.csv`,children:"Download"})]})]})]})},Ou=e=>{const[t,r]=J(e),n=H(null),i=()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{r(a=>a-1)},1e3)};return ee(()=>(t>0&&n.current?n.current=setTimeout(()=>{r(a=>a-1)},1e3):n.current&&clearTimeout(n.current),()=>{n.current&&clearTimeout(n.current)}),[t]),{timeLeft:t,resetTimer:a=>{n.current&&clearTimeout(n.current),r(a),n.current=null},startTimer:i}},Au=[{displayValue:"Clients",key:"clients"},{displayValue:"Drivers",key:"drivers"},{displayValue:"Contract Budgets",key:"contractBudgets"},{displayValue:"Invoice Items",key:"invoiceItems"},{displayValue:"Deleted Invoice Items",key:"deletedInvoiceItems"},{displayValue:"Vehicle Contracts",key:"vehicleContracts"}],Du=()=>{const e=new Date().toISOString().split("T")[0],t=xa(-14),r=30,[n,i]=J(),[o,a]=J(!1),{timeLeft:s,resetTimer:c,startTimer:f}=Ou(r),{ingestClients:d,ingestDrivers:l,ingestContractBudgets:b,ingestInvoiceItems:v,ingestDeletedInvoiceItems:h,ingestVehicleContracts:g}=Zn(),{control:_,handleSubmit:y}=Qn({mode:"onBlur",defaultValues:{ingestEndPoints:"clients"}});ee(()=>{s===0&&(a(!1),c(r))},[s,c]);const w=async $=>{i(void 0),a(!0),f();try{switch($.ingestEndPoints){case"clients":await d($.startDate);break;case"drivers":await l($.startDate);break;case"contractBudgets":await b($.startDate);break;case"invoiceItems":await v($.startDate);break;case"deletedInvoiceItems":await h($.startDate);break;case"vehicleContracts":await g($.startDate);break}}catch(L){if(a(!1),c(r),L instanceof Et){const O=await Xn(L);L.response.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please wait for some time and try again.
42
- CorrelationId: ${(O==null?void 0:O.correlationId)??"Unknown"}`)}}};return q(X,{children:[x("div",{css:{marginBottom:"1.25rem"},children:x("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Data Ingestion"})}),q("div",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))",borderStyle:"dashed","--tw-divide-opacity":"1",borderColor:"rgb(156 163 175 / var(--tw-divide-opacity))"}},children:[q("form",{onSubmit:y(w),children:[q("div",{css:{marginBottom:"1rem",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem"},children:[x(Ie,{name:"ingestEndPoints",control:_,render:({field:$})=>x(ai,{inputLabel:"Domains",css:{gridColumn:"span 2 / span 2"},items:Au,...$})}),x(Ie,{name:"startDate",control:_,rules:{required:"Start Date is required"},render:({field:$,fieldState:L})=>x(At,{label:"Start Date",id:"startDate",css:{gridColumn:"span 1 / span 1"},type:"date",min:t,max:e,error:L.error,...$})})]}),o&&q("p",{css:{fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:["Ingestion has started. Please wait ",s," before starting another ingestion."]}),x("div",{css:{marginTop:"1rem"},children:x(Pr,{type:"submit",disabled:o,children:"Start"})})]}),x("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"},children:n&&x("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:n})})]})]})},so=[{id:"receiptBatch",displayName:"Receipt Batch"},{id:"catchEReport",displayName:"CatchE Report"},{id:"dataIngestion",displayName:"Data Ingestion"}],Pu=e=>{switch(e){case"receiptBatch":return x(bu,{});case"catchEReport":return x(Ru,{});case"dataIngestion":return x(Du,{});default:return x(X,{})}},Fu=()=>{const[e,t]=J(so[0].id),r=Pu(e);return q("div",{css:{maxWidth:"28rem",borderRadius:"0.5rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},children:[x("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}},children:x(xu,{tabs:so,currentTab:e,onChange:t})}),x("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","@media (min-width: 640px)":{padding:"1.5rem"}},children:r})]})},Lu=(e,t)=>{const[r,n]=J();return ee(()=>{if(t&&t.current){const o=a=>{document.getElementsByTagName(e).length>0?a():requestAnimationFrame(()=>o(a))};o(()=>{n(In({container:t.current,key:e}))})}},[e,t]),{EmotionProvider:({children:o})=>r?x(dl,{value:r,children:o}):x(X,{})}},Iu=Wn({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}),Vu=Wn`
31
+ ${({hasError:e})=>e?{"--tw-ring-opacity":`1`,"--tw-ring-color":`rgb(252 165 165 / var(--tw-ring-opacity, 1))`,":focus":{"--tw-ring-opacity":`1`,"--tw-ring-color":`rgb(220 38 38 / var(--tw-ring-opacity, 1))`}}:{"--tw-ring-opacity":`1`,"--tw-ring-color":`rgb(209 213 219 / var(--tw-ring-opacity, 1))`,":focus":{"--tw-ring-color":`var(--fl-color-primary-600)`}}}
32
+ `,Wc=di.div`
33
+ ${({isHidden:e})=>e?{display:`none`}:{display:`block`}}
34
+ `,Gc=yt(({label:e,id:t,type:n,placeholder:r,value:i,className:a,onChange:o,onBlur:s,error:c,isHidden:l,min:u,max:d},f)=>{let p=e=>{e.target instanceof HTMLInputElement&&o(e.target.value.trim())},m=e=>{e.target instanceof HTMLInputElement&&s&&s(e.target.value.trim())};return W(Wc,{isHidden:l,className:a,children:[U(`label`,{htmlFor:t,css:{display:`block`,fontSize:`0.875rem`,lineHeight:`1.25rem`,fontWeight:`500`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`},children:e}),U(`div`,{css:{marginTop:`0.5rem`},children:U(Uc,{type:n,value:i,name:t,id:t,placeholder:r,onChange:p,onBlur:m,hasError:!!c,ref:f,min:u,max:d})}),c?.message&&U(`p`,{css:{marginTop:`0.5rem`,marginBottom:`0.5rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`,"--tw-text-opacity":`1`,color:`rgb(220 38 38 / var(--tw-text-opacity, 1))`},children:c.message})]})}),Kc=[{key:`All`,displayValue:`All`},{key:`GroupCode`,displayValue:`Group code`},{key:`ClientId`,displayValue:`Client Id`}],qc=[{key:`itc`,displayValue:`Net ITC`,hasDateRange:!0},{key:`lcc`,displayValue:`List of Luxury Cars`,hasDateRange:!0},{key:`lccPrime`,displayValue:`LCC Prime Calculations`,hasDateRange:!1},{key:`lccNewInformation`,displayValue:`New LCC Information`,hasDateRange:!1},{key:`directDebit`,displayValue:`Direct Debit`,hasDateRange:!0},{key:`fbtExempt`,displayValue:`FBT Exempt`,hasDateRange:!0}],Jc=(e,t)=>e&&t.endDate?new Date(e)<=new Date(t.endDate)||`Start must be before End`:!0,Yc=(e,t)=>e&&t.startDate?new Date(e)>=new Date(t.startDate)||`End must be after Start`:!0,Xc=()=>{let[e,t]=P(),[n,r]=P(!1),[i,a]=P(),{getCatcheReport:o}=co(),{control:s,handleSubmit:c,watch:l}=za({mode:`onBlur`,defaultValues:{entityType:`All`}});F(()=>{let e=l(()=>{t(void 0),a(void 0)});return()=>e.unsubscribe()},[l]);let u=()=>l(`entityType`),d=l(`report`),f=qc.find(e=>e.key===d),p=async e=>{a(void 0),r(!0);try{t({blob:await o({...e,clientId:u()===`ClientId`?e.clientId:``,groupCode:u()===`GroupCode`?e.groupCode:``}),inputs:e}),r(!1)}catch(e){if(r(!1),e instanceof qa){let t=await Wa(e);e.response.status===401?a(`Authenticated session expired. Please refresh the page to start a new session.`):a(`Something went wrong. Try again later. CorrelationId: ${t.correlationId??`Unknown`}`)}}};return W(w,{children:[U(`div`,{css:{marginBottom:`1.25rem`},children:U(`h1`,{css:{fontSize:`1.25rem`,lineHeight:`1.75rem`,fontWeight:`600`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`},children:`Generate CatchE Report`})}),W(`div`,{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":`0`,borderTopWidth:`calc(1px * calc(1 - var(--tw-divide-y-reverse)))`,borderBottomWidth:`calc(1px * var(--tw-divide-y-reverse))`,borderStyle:`dashed`,"--tw-divide-opacity":`1`,borderColor:`rgb(156 163 175 / var(--tw-divide-opacity, 1))`}},children:[W(`form`,{onSubmit:c(p),children:[W(`div`,{css:{marginBottom:`1rem`,display:`grid`,gridTemplateColumns:`repeat(2, minmax(0, 1fr))`,gap:`1rem`},children:[U(qi,{name:`report`,control:s,rules:{required:`Report is required`},render:({field:e,fieldState:t})=>U(Lc,{inputLabel:`Report`,css:{gridColumn:`span 2 / span 2`},items:qc,error:t.error,...e})}),(!f||f.hasDateRange)&&W(hi,{children:[U(qi,{name:`startDate`,control:s,rules:{validate:{validateStartDate:Jc}},render:({field:e,fieldState:t})=>U(Gc,{label:`Start Date`,id:`startDate`,css:{gridColumn:`span 1 / span 1`},type:`date`,error:t.error,...e})}),U(qi,{name:`endDate`,control:s,rules:{validate:{validateEndDate:Yc}},render:({field:e,fieldState:t})=>U(Gc,{label:`End Date`,id:`endDate`,css:{gridColumn:`span 1 / span 1`},type:`date`,error:t.error,...e})})]})]}),U(qi,{name:`entityType`,control:s,render:({field:e})=>U(Hc,{inputLabel:`Identifier type`,css:{marginBottom:`1rem`},items:Kc,...e})}),U(qi,{name:`groupCode`,control:s,rules:{validate:{requiresGroupCode:e=>u()!==`GroupCode`||!!e||`Group Code is required`,validGroupCode:e=>u()!==`GroupCode`||/^[A-Z0-9]+$/.test(e)||`Group Code is not valid`}},render:({field:e,fieldState:t})=>U(Gc,{label:`Group code`,id:`groupCode`,type:`text`,isHidden:u()!==`GroupCode`,error:t.error,...e})}),U(qi,{name:`clientId`,control:s,rules:{validate:{requiresClientId:e=>u()!==`ClientId`||!!e||`Client Id is required`}},render:({field:e,fieldState:t})=>U(Gc,{label:`Client Id`,id:`clientId`,type:`number`,isHidden:u()!==`ClientId`,error:t.error,...e})}),U(`div`,{css:{marginTop:`1rem`},children:n?U(Ua,{}):U(Va,{type:`submit`,children:`Submit`})})]}),W(`div`,{css:{marginTop:`1.25rem`,paddingTop:`1.25rem`},children:[i&&U(`p`,{css:{marginTop:`0.5rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`,"--tw-text-opacity":`1`,color:`rgb(220 38 38 / var(--tw-text-opacity, 1))`},children:i}),e?.blob&&U(Ha,{blob:e.blob,fileName:`${e.inputs.entityType===`GroupCode`?`${e.inputs.groupCode}_`:e.inputs.entityType===`ClientId`?`${e.inputs.clientId}_`:``}${e.inputs.startDate?`${e.inputs.startDate}_`:``}${e.inputs.endDate?`${e.inputs.endDate}_`:``}${e.inputs.report}.csv`,children:`Download`})]})]})]})},Zc=e=>{let[t,n]=P(e),r=I(null);return F(()=>(t>0&&r.current?r.current=setTimeout(()=>{n(e=>e-1)},1e3):r.current&&clearTimeout(r.current),()=>{r.current&&clearTimeout(r.current)}),[t]),{timeLeft:t,resetTimer:e=>{r.current&&clearTimeout(r.current),n(e),r.current=null},startTimer:()=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{n(e=>e-1)},1e3)}}},Qc=[{displayValue:`Clients`,key:`clients`},{displayValue:`Drivers`,key:`drivers`},{displayValue:`Contract Budgets`,key:`contractBudgets`},{displayValue:`Invoice Items`,key:`invoiceItems`},{displayValue:`Deleted Invoice Items`,key:`deletedInvoiceItems`},{displayValue:`Vehicle Contracts`,key:`vehicleContracts`}],$c=()=>{let e=new Date().toISOString().split(`T`)[0],t=Ga(-14),[n,r]=P(),[i,a]=P(!1),{timeLeft:o,resetTimer:s,startTimer:c}=Zc(30),{ingestClients:l,ingestDrivers:u,ingestContractBudgets:d,ingestInvoiceItems:f,ingestDeletedInvoiceItems:p,ingestVehicleContracts:m}=co(),{control:h,handleSubmit:g}=za({mode:`onBlur`,defaultValues:{ingestEndPoints:`clients`}});F(()=>{o===0&&(a(!1),s(30))},[o,s]);let _=async e=>{r(void 0),a(!0),c();try{switch(e.ingestEndPoints){case`clients`:await l(e.startDate);break;case`drivers`:await u(e.startDate);break;case`contractBudgets`:await d(e.startDate);break;case`invoiceItems`:await f(e.startDate);break;case`deletedInvoiceItems`:await p(e.startDate);break;case`vehicleContracts`:await m(e.startDate);break}}catch(e){if(a(!1),s(30),e instanceof qa){let t=await Wa(e);e.response.status===401?r(`Authenticated session expired. Please refresh the page to start a new session.`):r(`Something went wrong. Please wait for some time and try again.
35
+ CorrelationId: ${t?.correlationId??`Unknown`}`)}}};return W(w,{children:[U(`div`,{css:{marginBottom:`1.25rem`},children:U(`h1`,{css:{fontSize:`1.25rem`,lineHeight:`1.75rem`,fontWeight:`600`,"--tw-text-opacity":`1`,color:`rgb(17 24 39 / var(--tw-text-opacity, 1))`},children:`Data Ingestion`})}),W(`div`,{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":`0`,borderTopWidth:`calc(1px * calc(1 - var(--tw-divide-y-reverse)))`,borderBottomWidth:`calc(1px * var(--tw-divide-y-reverse))`,borderStyle:`dashed`,"--tw-divide-opacity":`1`,borderColor:`rgb(156 163 175 / var(--tw-divide-opacity, 1))`}},children:[W(`form`,{onSubmit:g(_),children:[W(`div`,{css:{marginBottom:`1rem`,display:`grid`,gridTemplateColumns:`repeat(2, minmax(0, 1fr))`,gap:`1rem`},children:[U(qi,{name:`ingestEndPoints`,control:h,render:({field:e})=>U(Lc,{inputLabel:`Domains`,css:{gridColumn:`span 2 / span 2`},items:Qc,...e})}),U(qi,{name:`startDate`,control:h,rules:{required:`Start Date is required`},render:({field:n,fieldState:r})=>U(Gc,{label:`Start Date`,id:`startDate`,css:{gridColumn:`span 1 / span 1`},type:`date`,min:t,max:e,error:r.error,...n})})]}),i&&W(`p`,{css:{fontSize:`0.875rem`,lineHeight:`1.25rem`,"--tw-text-opacity":`1`,color:`rgb(107 114 128 / var(--tw-text-opacity, 1))`},children:[`Ingestion has started. Please wait `,o,` before starting another ingestion.`]}),U(`div`,{css:{marginTop:`1rem`},children:U(Va,{type:`submit`,disabled:i,children:`Start`})})]}),U(`div`,{css:{marginTop:`1.25rem`,paddingTop:`1.25rem`},children:n&&U(`p`,{css:{marginTop:`0.5rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`,"--tw-text-opacity":`1`,color:`rgb(220 38 38 / var(--tw-text-opacity, 1))`},children:n})})]})]})},el=[{id:`receiptBatch`,displayName:`Receipt Batch`},{id:`catchEReport`,displayName:`CatchE Report`},{id:`dataIngestion`,displayName:`Data Ingestion`}],tl=e=>{switch(e){case`receiptBatch`:return U(zc,{});case`catchEReport`:return U(Xc,{});case`dataIngestion`:return U($c,{});default:return U(w,{})}},nl=()=>{let[e,t]=P(el[0].id),n=tl(e);return W(`div`,{css:{maxWidth:`28rem`,borderRadius:`0.5rem`,"--tw-bg-opacity":`1`,backgroundColor:`rgb(255 255 255 / var(--tw-bg-opacity, 1))`,"--tw-shadow":`0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)`,"--tw-shadow-colored":`0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)`,boxShadow:`var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)`},children:[U(`div`,{css:{paddingLeft:`1rem`,paddingRight:`1rem`,paddingTop:`1.25rem`,"@media (min-width: 640px)":{paddingLeft:`1.5rem`,paddingRight:`1.5rem`}},children:U(Vc,{tabs:el,currentTab:e,onChange:t})}),U(`div`,{css:{paddingLeft:`1rem`,paddingRight:`1rem`,paddingTop:`1.25rem`,paddingBottom:`1.25rem`,"@media (min-width: 640px)":{padding:`1.5rem`}},children:n})]})},rl=(e,t)=>{let[n,r]=P();return F(()=>{if(t&&t.current){let n=t=>{document.getElementsByTagName(e).length>0?t():requestAnimationFrame(()=>n(t))};n(()=>{r(gr({container:t.current,key:e}))})}},[e,t]),{EmotionProvider:({children:e})=>n?U(Wr,{value:n,children:e}):U(w,{})}},il=ei({body:{WebkitTapHighlightColor:`#a855f7`,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`}}),al=ei`
43
36
  :host {
44
37
  --fl-color-primary-900: #000563;
45
38
  --fl-color-primary-800: #031495;
@@ -55,6 +48,6 @@ var za=Object.defineProperty;var ja=(e,t,r)=>t in e?za(e,t,{enumerable:!0,config
55
48
 
56
49
  font-family: Inter, 'Source Sans Pro', sans-serif;
57
50
  }
58
- `,Nu=()=>q(X,{children:[x(Wr,{styles:Wn`
59
- ${{"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"#e5e7eb","--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"::before, ::after":{"--tw-content":"''"},"html, :host":{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:"4",fontFamily:'Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontFeatureSettings:" normal",fontVariationSettings:" normal",WebkitTapHighlightColor:"transparent"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontFeatureSettings:" normal",fontVariationSettings:" normal",fontSize:"1em"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button, input, optgroup, select, textarea":{fontFamily:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",fontSize:"100%",fontWeight:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",margin:"0",padding:"0"},"button, select":{textTransform:"none"},"button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button, ::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol, ul, menu":{listStyle:"none",margin:"0",padding:"0"},dialog:{padding:"0"},textarea:{resize:"vertical"},"input::placeholder, textarea::placeholder":{opacity:"1",color:"#9ca3af"},'button, [role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},"img, video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"},"::backdrop":{"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select":{appearance:"none",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px",borderRadius:"0px",paddingTop:"0.5rem",paddingRight:"0.75rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 0 #0000"},"[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)",borderColor:"#2563eb"},"input::placeholder,textarea::placeholder":{color:"#6b7280",opacity:"1"},"::-webkit-datetime-edit-fields-wrapper":{padding:"0"},"::-webkit-date-and-time-value":{minHeight:"1.5em",textAlign:"inherit"},"::-webkit-datetime-edit":{display:"inline-flex"},"::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field":{paddingTop:"0",paddingBottom:"0"},select:{backgroundImage:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`,backgroundPosition:"right 0.5rem center",backgroundRepeat:"no-repeat",backgroundSize:"1.5em 1.5em",paddingRight:"2.5rem",printColorAdjust:"exact"},'[multiple],[size]:where(select:not([size="1"]))':{backgroundImage:"initial",backgroundPosition:"initial",backgroundRepeat:"unset",backgroundSize:"initial",paddingRight:"0.75rem",printColorAdjust:"unset"},"[type='checkbox'],[type='radio']":{appearance:"none",padding:"0",printColorAdjust:"exact",display:"inline-block",verticalAlign:"middle",backgroundOrigin:"border-box",userSelect:"none",flexShrink:"0",height:"1rem",width:"1rem",color:"#2563eb",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px","--tw-shadow":"0 0 #0000"},"[type='checkbox']":{borderRadius:"0px"},"[type='radio']":{borderRadius:"100%"},"[type='checkbox']:focus,[type='radio']:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"},"[type='checkbox']:checked,[type='radio']:checked":{borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:checked":{backgroundImage:`url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")`},"@media (forced-colors: active)":{"[type='checkbox']:checked":{appearance:"auto"},"[type='radio']:checked":{appearance:"auto"},"[type='checkbox']:indeterminate":{appearance:"auto"}},"[type='radio']:checked":{backgroundImage:`url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")`},"[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='checkbox']:indeterminate":{backgroundImage:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e")`,borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='file']":{background:"unset",borderColor:"inherit",borderWidth:"0",borderRadius:"0",padding:"0",fontSize:"unset",lineHeight:"inherit"},"[type='file']:focus":{outline:"1px auto -webkit-focus-ring-color"}}}
60
- `}),x(Wr,{styles:Iu}),x(Wr,{styles:Vu})]}),Mu=e=>{const t=H(null),{EmotionProvider:r}=Lu("salpac-finops",t),n=ge(()=>({backend:{url:e.backendUrl.replace(/\/?$/,""),accessToken:e.accessToken}}),[e]);return q(X,{children:[x("head",{ref:t}),x(Ca.Provider,{value:n,children:q(r,{children:[x(Nu,{}),x("body",{children:x(Fu,{})})]})})]})};rs(Mu,"salpac-finops",["backend-url","access-token"],{shadow:!0});
51
+ `,ol=()=>W(w,{children:[U($r,{styles:ei`
52
+ ${{"*, ::before, ::after":{boxSizing:`border-box`,borderWidth:`0`,borderStyle:`solid`,borderColor:`#e5e7eb`,"--tw-border-spacing-x":`0`,"--tw-border-spacing-y":`0`,"--tw-translate-x":`0`,"--tw-translate-y":`0`,"--tw-rotate":`0`,"--tw-skew-x":`0`,"--tw-skew-y":`0`,"--tw-scale-x":`1`,"--tw-scale-y":`1`,"--tw-pan-x":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-pan-y":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-pinch-zoom":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-scroll-snap-strictness":`proximity`,"--tw-gradient-from-position":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-gradient-via-position":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-gradient-to-position":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-ordinal":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-slashed-zero":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-numeric-figure":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-numeric-spacing":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-numeric-fraction":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-ring-offset-shadow":`0 0 #0000`,"--tw-ring-shadow":`0 0 #0000`,"--tw-shadow":`0 0 #0000`,"--tw-shadow-colored":`0 0 #0000`,"--tw-ring-inset":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-ring-offset-width":`0px`,"--tw-ring-offset-color":`#fff`,"--tw-ring-color":`rgb(59 130 246 / 0.5)`,"--tw-blur":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-brightness":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contrast":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-grayscale":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-hue-rotate":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-invert":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-saturate":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-sepia":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-drop-shadow":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-blur":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-brightness":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-contrast":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-grayscale":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-hue-rotate":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-invert":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-opacity":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-saturate":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-sepia":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contain-size":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contain-layout":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contain-paint":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contain-style":`var(--tw-empty,/*!*/ /*!*/)`},"::before, ::after":{"--tw-content":`''`},"html, :host":{lineHeight:`1.5`,WebkitTextSizeAdjust:`100%`,MozTabSize:`4`,tabSize:`4`,fontFamily:`Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`,fontFeatureSettings:` normal`,fontVariationSettings:` normal`,WebkitTapHighlightColor:`transparent`},body:{margin:`0`,lineHeight:`inherit`},hr:{height:`0`,color:`inherit`,borderTopWidth:`1px`},"abbr:where([title])":{textDecoration:`underline dotted`},"h1, h2, h3, h4, h5, h6":{fontSize:`inherit`,fontWeight:`inherit`},a:{color:`inherit`,textDecoration:`inherit`},"b, strong":{fontWeight:`bolder`},"code, kbd, samp, pre":{fontFamily:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`,fontFeatureSettings:` normal`,fontVariationSettings:` normal`,fontSize:`1em`},small:{fontSize:`80%`},"sub, sup":{fontSize:`75%`,lineHeight:`0`,position:`relative`,verticalAlign:`baseline`},sub:{bottom:`-0.25em`},sup:{top:`-0.5em`},table:{textIndent:`0`,borderColor:`inherit`,borderCollapse:`collapse`},"button, input, optgroup, select, textarea":{fontFamily:`inherit`,fontFeatureSettings:`inherit`,fontVariationSettings:`inherit`,fontSize:`100%`,fontWeight:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`,color:`inherit`,margin:`0`,padding:`0`},"button, select":{textTransform:`none`},"button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":{WebkitAppearance:`button`,backgroundColor:`transparent`,backgroundImage:`none`},":-moz-focusring":{outline:`auto`},":-moz-ui-invalid":{boxShadow:`none`},progress:{verticalAlign:`baseline`},"::-webkit-inner-spin-button, ::-webkit-outer-spin-button":{height:`auto`},"[type='search']":{WebkitAppearance:`textfield`,outlineOffset:`-2px`},"::-webkit-search-decoration":{WebkitAppearance:`none`},"::-webkit-file-upload-button":{WebkitAppearance:`button`,font:`inherit`},summary:{display:`list-item`},"blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre":{margin:`0`},fieldset:{margin:`0`,padding:`0`},legend:{padding:`0`},"ol, ul, menu":{listStyle:`none`,margin:`0`,padding:`0`},dialog:{padding:`0`},textarea:{resize:`vertical`},"input::placeholder, textarea::placeholder":{opacity:`1`,color:`#9ca3af`},'button, [role="button"]':{cursor:`pointer`},":disabled":{cursor:`default`},"img, svg, video, canvas, audio, iframe, embed, object":{display:`block`,verticalAlign:`middle`},"img, video":{maxWidth:`100%`,height:`auto`},'[hidden]:where(:not([hidden="until-found"]))':{display:`none`},"::backdrop":{"--tw-border-spacing-x":`0`,"--tw-border-spacing-y":`0`,"--tw-translate-x":`0`,"--tw-translate-y":`0`,"--tw-rotate":`0`,"--tw-skew-x":`0`,"--tw-skew-y":`0`,"--tw-scale-x":`1`,"--tw-scale-y":`1`,"--tw-pan-x":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-pan-y":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-pinch-zoom":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-scroll-snap-strictness":`proximity`,"--tw-gradient-from-position":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-gradient-via-position":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-gradient-to-position":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-ordinal":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-slashed-zero":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-numeric-figure":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-numeric-spacing":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-numeric-fraction":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-ring-offset-shadow":`0 0 #0000`,"--tw-ring-shadow":`0 0 #0000`,"--tw-shadow":`0 0 #0000`,"--tw-shadow-colored":`0 0 #0000`,"--tw-ring-inset":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-ring-offset-width":`0px`,"--tw-ring-offset-color":`#fff`,"--tw-ring-color":`rgb(59 130 246 / 0.5)`,"--tw-blur":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-brightness":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contrast":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-grayscale":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-hue-rotate":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-invert":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-saturate":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-sepia":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-drop-shadow":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-blur":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-brightness":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-contrast":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-grayscale":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-hue-rotate":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-invert":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-opacity":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-saturate":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-backdrop-sepia":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contain-size":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contain-layout":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contain-paint":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-contain-style":`var(--tw-empty,/*!*/ /*!*/)`},"input:where([type='text']),input:where(:not([type])),input:where([type='email']),input:where([type='url']),input:where([type='password']),input:where([type='number']),input:where([type='date']),input:where([type='datetime-local']),input:where([type='month']),input:where([type='search']),input:where([type='tel']),input:where([type='time']),input:where([type='week']),select:where([multiple]),textarea,select":{appearance:`none`,backgroundColor:`#fff`,borderColor:`#6b7280`,borderWidth:`1px`,borderRadius:`0px`,paddingTop:`0.5rem`,paddingRight:`0.75rem`,paddingBottom:`0.5rem`,paddingLeft:`0.75rem`,fontSize:`1rem`,lineHeight:`1.5rem`,"--tw-shadow":`0 0 #0000`},"input:where([type='text']):focus, input:where(:not([type])):focus, input:where([type='email']):focus, input:where([type='url']):focus, input:where([type='password']):focus, input:where([type='number']):focus, input:where([type='date']):focus, input:where([type='datetime-local']):focus, input:where([type='month']):focus, input:where([type='search']):focus, input:where([type='tel']):focus, input:where([type='time']):focus, input:where([type='week']):focus, select:where([multiple]):focus, textarea:focus, select:focus":{outline:`2px solid transparent`,outlineOffset:`2px`,"--tw-ring-inset":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-ring-offset-width":`0px`,"--tw-ring-offset-color":`#fff`,"--tw-ring-color":`#2563eb`,"--tw-ring-offset-shadow":`var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,"--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:`var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)`,borderColor:`#2563eb`},"input::placeholder,textarea::placeholder":{color:`#6b7280`,opacity:`1`},"::-webkit-datetime-edit-fields-wrapper":{padding:`0`},"::-webkit-date-and-time-value":{minHeight:`1.5em`,textAlign:`inherit`},"::-webkit-datetime-edit":{display:`inline-flex`},"::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field":{paddingTop:`0`,paddingBottom:`0`},select:{backgroundImage:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`,backgroundPosition:`right 0.5rem center`,backgroundRepeat:`no-repeat`,backgroundSize:`1.5em 1.5em`,paddingRight:`2.5rem`,printColorAdjust:`exact`},'select:where([multiple]),select:where([size]:not([size="1"]))':{backgroundImage:`initial`,backgroundPosition:`initial`,backgroundRepeat:`unset`,backgroundSize:`initial`,paddingRight:`0.75rem`,printColorAdjust:`unset`},"input:where([type='checkbox']),input:where([type='radio'])":{appearance:`none`,padding:`0`,printColorAdjust:`exact`,display:`inline-block`,verticalAlign:`middle`,backgroundOrigin:`border-box`,userSelect:`none`,flexShrink:`0`,height:`1rem`,width:`1rem`,color:`#2563eb`,backgroundColor:`#fff`,borderColor:`#6b7280`,borderWidth:`1px`,"--tw-shadow":`0 0 #0000`},"input:where([type='checkbox'])":{borderRadius:`0px`},"input:where([type='radio'])":{borderRadius:`100%`},"input:where([type='checkbox']):focus,input:where([type='radio']):focus":{outline:`2px solid transparent`,outlineOffset:`2px`,"--tw-ring-inset":`var(--tw-empty,/*!*/ /*!*/)`,"--tw-ring-offset-width":`2px`,"--tw-ring-offset-color":`#fff`,"--tw-ring-color":`#2563eb`,"--tw-ring-offset-shadow":`var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)`,"--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:`var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)`},"input:where([type='checkbox']):checked,input:where([type='radio']):checked":{borderColor:`transparent`,backgroundColor:`currentColor`,backgroundSize:`100% 100%`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`},"input:where([type='checkbox']):checked":{backgroundImage:`url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")`},"@media (forced-colors: active)":{"input:where([type='checkbox']):checked":{appearance:`auto`},"input:where([type='radio']):checked":{appearance:`auto`},"input:where([type='checkbox']):indeterminate":{appearance:`auto`}},"input:where([type='radio']):checked":{backgroundImage:`url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")`},"input:where([type='checkbox']):checked:hover,input:where([type='checkbox']):checked:focus,input:where([type='radio']):checked:hover,input:where([type='radio']):checked:focus":{borderColor:`transparent`,backgroundColor:`currentColor`},"input:where([type='checkbox']):indeterminate":{backgroundImage:`url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e")`,borderColor:`transparent`,backgroundColor:`currentColor`,backgroundSize:`100% 100%`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`},"input:where([type='checkbox']):indeterminate:hover,input:where([type='checkbox']):indeterminate:focus":{borderColor:`transparent`,backgroundColor:`currentColor`},"input:where([type='file'])":{background:`unset`,borderColor:`inherit`,borderWidth:`0`,borderRadius:`0`,padding:`0`,fontSize:`unset`,lineHeight:`inherit`},"input:where([type='file']):focus":{outline:`1px auto -webkit-focus-ring-color`}}}
53
+ `}),U($r,{styles:il}),U($r,{styles:al})]});Ce(e=>{let t=I(null),{EmotionProvider:n}=rl(`salpac-finops`,t),r=Ke(()=>({backend:{url:e[`backend-url`].replace(/\/?$/,``),accessToken:e[`access-token`]}}),[e]);return W(w,{children:[U(`head`,{ref:t}),U(Xa.Provider,{value:r,children:W(n,{children:[U(ol,{}),U(`body`,{children:U(nl,{})})]})})]})},`salpac-finops`,[`backend-url`,`access-token`],{shadow:!0});
package/package.json CHANGED
@@ -1,16 +1,12 @@
1
1
  {
2
2
  "name": "@flarehr/salpac-finops-admin",
3
- "version": "1.0.1004",
3
+ "version": "1.0.1006",
4
4
  "description": "Salpac FinOps Admin",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist/"
8
8
  ],
9
9
  "type": "module",
10
- "engines": {
11
- "node": ">=24.14.0",
12
- "npm": ">=11.11.1"
13
- },
14
10
  "babelMacros": {
15
11
  "twin": {
16
12
  "preset": "emotion"
@@ -43,7 +39,7 @@
43
39
  "@emotion/babel-plugin-jsx-pragmatic": "^0.2.1",
44
40
  "@emotion/babel-preset-css-prop": "^11.11.0",
45
41
  "@headlessui/tailwindcss": "^0.2.1",
46
- "@preact/preset-vite": "^2.8.3",
42
+ "@preact/preset-vite": "^2.10.5",
47
43
  "@tailwindcss/forms": "^0.5.7",
48
44
  "@testing-library/jest-dom": "^6.4.6",
49
45
  "@testing-library/preact": "^3.2.4",
@@ -68,7 +64,7 @@
68
64
  "ts-jest": "^29.2.5",
69
65
  "twin.macro": "^3.4.1",
70
66
  "typescript": "^5.5.2",
71
- "vite": "^5.4.13",
67
+ "vite": "^8.0.1",
72
68
  "vite-plugin-svgr": "^4.2.0"
73
69
  }
74
70
  }