@flarehr/salpac-finops-admin 1.0.150 → 1.0.151
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,18 +1,16 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var qt,$,Ui,ut,Do,Hi,wn,ji,kt={},zi=[],Ga=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Or=Array.isArray;function Ge(e,t){for(var r in t)e[r]=t[r];return e}function Wi(e){var t=e.parentNode;t&&t.removeChild(e)}function W(e,t,r){var n,o,i,s={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?qt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Bt(e,s,n,o,null)}function Bt(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Ui};return o==null&&$.vnode!=null&&$.vnode(i),i}function Mn(){return{current:null}}function Y(e){return e.children}function De(e,t){this.props=e,this.context=t}function Ut(e,t){if(t==null)return e.__?Ut(e.__,e.__.__k.indexOf(e)+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"?Ut(e):null}function qi(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 qi(e)}}function xn(e){(!e.__d&&(e.__d=!0)&&ut.push(e)&&!pr.__r++||Do!==$.debounceRendering)&&((Do=$.debounceRendering)||Hi)(pr)}function pr(){var e,t,r,n,o,i,s,a,c;for(ut.sort(wn);e=ut.shift();)e.__d&&(t=ut.length,n=void 0,o=void 0,i=void 0,a=(s=(r=e).__v).__e,(c=r.__P)&&(n=[],o=[],(i=Ge({},s)).__v=s.__v+1,Un(c,s,i,r.__n,c.ownerSVGElement!==void 0,s.__h!=null?[a]:null,n,a??Ut(s),s.__h,o),Xi(n,s,o),s.__e!=a&&qi(s)),ut.length>t&&ut.sort(wn));pr.__r=0}function Gi(e,t,r,n,o,i,s,a,c,d,u){var l,m,w,f,h,x,g,v,C,L=0,R=n&&n.__k||zi,F=R.length,A=F,B=t.length;for(r.__k=[],l=0;l<B;l++)(f=r.__k[l]=(f=t[l])==null||typeof f=="boolean"||typeof f=="function"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?Bt(null,f,null,null,f):Or(f)?Bt(Y,{children:f},null,null,null):f.__b>0?Bt(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null?(f.__=r,f.__b=r.__b+1,(v=Ka(f,R,g=l+L,A))===-1?w=kt:(w=R[v]||kt,R[v]=void 0,A--),Un(e,f,w,o,i,s,a,c,d,u),h=f.__e,(m=f.ref)&&w.ref!=m&&(w.ref&&Hn(w.ref,null,f),u.push(m,f.__c||h,f)),h!=null&&(x==null&&(x=h),(C=w===kt||w.__v===null)?v==-1&&L--:v!==g&&(v===g+1?L++:v>g?A>B-g?L+=v-g:L--:L=v<g&&v==g-1?v-g:0),g=l+L,typeof f.type!="function"||v===g&&w.__k!==f.__k?typeof f.type=="function"||v===g&&!C?f.__d!==void 0?(c=f.__d,f.__d=void 0):c=h.nextSibling:c=Ji(e,h,c):c=Ki(f,c,e),typeof r.type=="function"&&(r.__d=c))):(w=R[l])&&w.key==null&&w.__e&&(w.__e==c&&(c=Ut(w)),Sn(w,w,!1),R[l]=null);for(r.__e=x,l=F;l--;)R[l]!=null&&(typeof r.type=="function"&&R[l].__e!=null&&R[l].__e==r.__d&&(r.__d=R[l].__e.nextSibling),Sn(R[l],R[l]))}function Ki(e,t,r){for(var n,o=e.__k,i=0;o&&i<o.length;i++)(n=o[i])&&(n.__=e,t=typeof n.type=="function"?Ki(n,t,r):Ji(r,n.__e,t));return t}function Ke(e,t){return t=t||[],e==null||typeof e=="boolean"||(Or(e)?e.some(function(r){Ke(r,t)}):t.push(e)),t}function Ji(e,t,r){return r==null||r.parentNode!==e?e.insertBefore(t,null):t==r&&t.parentNode!=null||e.insertBefore(t,r),t.nextSibling}function Ka(e,t,r,n){var o=e.key,i=e.type,s=r-1,a=r+1,c=t[r];if(c===null||c&&o==c.key&&i===c.type)return r;if(n>(c!=null?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&o==c.key&&i===c.type)return a;a++}}return-1}function Ja(e,t,r,n,o){var i;for(i in r)i==="children"||i==="key"||i in t||hr(e,i,null,r[i],n);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||r[i]===t[i]||hr(e,i,t[i],r[i],n)}function Io(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Ga.test(t)?r:r+"px"}function hr(e,t,r,n,o){var i;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||Io(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Io(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n||e.addEventListener(t,i?Vo:Bo,i):e.removeEventListener(t,i?Vo:Bo,i);else if(t!=="dangerouslySetInnerHTML"){if(o)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 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 Bo(e){return this.l[e.type+!1]($.event?$.event(e):e)}function Vo(e){return this.l[e.type+!0]($.event?$.event(e):e)}function Un(e,t,r,n,o,i,s,a,c,d){var u,l,m,w,f,h,x,g,v,C,L,R,F,A,B,V=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(c=r.__h,a=t.__e=r.__e,t.__h=null,i=[a]),(u=$.__b)&&u(t);e:if(typeof V=="function")try{if(g=t.props,v=(u=V.contextType)&&n[u.__c],C=u?v?v.props.value:u.__:n,r.__c?x=(l=t.__c=r.__c).__=l.__E:("prototype"in V&&V.prototype.render?t.__c=l=new V(g,C):(t.__c=l=new De(g,C),l.constructor=V,l.render=Ya),v&&v.sub(l),l.props=g,l.state||(l.state={}),l.context=C,l.__n=n,m=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),V.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Ge({},l.__s)),Ge(l.__s,V.getDerivedStateFromProps(g,l.__s))),w=l.props,f=l.state,l.__v=t,m)V.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(V.getDerivedStateFromProps==null&&g!==w&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,C),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,C)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(Z){Z&&(Z.__=t)}),L=0;L<l._sb.length;L++)l.__h.push(l._sb[L]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,C),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(w,f,h)})}if(l.context=C,l.props=g,l.__P=e,l.__e=!1,R=$.__r,F=0,"prototype"in V&&V.prototype.render){for(l.state=l.__s,l.__d=!1,R&&R(t),u=l.render(l.props,l.state,l.context),A=0;A<l._sb.length;A++)l.__h.push(l._sb[A]);l._sb=[]}else do l.__d=!1,R&&R(t),u=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++F<25);l.state=l.__s,l.getChildContext!=null&&(n=Ge(Ge({},n),l.getChildContext())),m||l.getSnapshotBeforeUpdate==null||(h=l.getSnapshotBeforeUpdate(w,f)),Gi(e,Or(B=u!=null&&u.type===Y&&u.key==null?u.props.children:u)?B:[B],t,r,n,o,i,s,a,c,d),l.base=t.__e,t.__h=null,l.__h.length&&s.push(l),x&&(l.__E=l.__=null)}catch(Z){t.__v=null,(c||i!=null)&&(t.__e=a,t.__h=!!c,i[i.indexOf(a)]=null),$.__e(Z,t,r)}else i==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Xa(r.__e,t,r,n,o,i,s,c,d);(u=$.diffed)&&u(t)}function Xi(e,t,r){for(var n=0;n<r.length;n++)Hn(r[n],r[++n],r[++n]);$.__c&&$.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){$.__e(i,o.__v)}})}function Xa(e,t,r,n,o,i,s,a,c){var d,u,l,m=r.props,w=t.props,f=t.type,h=0;if(f==="svg"&&(o=!0),i!=null){for(;h<i.length;h++)if((d=i[h])&&"setAttribute"in d==!!f&&(f?d.localName===f:d.nodeType===3)){e=d,i[h]=null;break}}if(e==null){if(f===null)return document.createTextNode(w);e=o?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,w.is&&w),i=null,a=!1}if(f===null)m===w||a&&e.data===w||(e.data=w);else{if(i=i&&qt.call(e.childNodes),u=(m=r.props||kt).dangerouslySetInnerHTML,l=w.dangerouslySetInnerHTML,!a){if(i!=null)for(m={},h=0;h<e.attributes.length;h++)m[e.attributes[h].name]=e.attributes[h].value;(l||u)&&(l&&(u&&l.__html==u.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(Ja(e,w,m,o,a),l)t.__k=[];else if(Gi(e,Or(h=t.props.children)?h:[h],t,r,n,o&&f!=="foreignObject",i,s,i?i[0]:r.__k&&Ut(r,0),a,c),i!=null)for(h=i.length;h--;)i[h]!=null&&Wi(i[h]);a||("value"in w&&(h=w.value)!==void 0&&(h!==e.value||f==="progress"&&!h||f==="option"&&h!==m.value)&&hr(e,"value",h,m.value,!1),"checked"in w&&(h=w.checked)!==void 0&&h!==e.checked&&hr(e,"checked",h,m.checked,!1))}return e}function Hn(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){$.__e(n,r)}}function Sn(e,t,r){var n,o;if($.unmount&&$.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Hn(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){$.__e(i,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Sn(n[o],t,r||typeof e.type!="function");r||e.__e==null||Wi(e.__e),e.__=e.__e=e.__d=void 0}function Ya(e,t,r){return this.constructor(e,r)}function it(e,t,r){var n,o,i,s;$.__&&$.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],s=[],Un(t,e=(!n&&r||t).__k=W(Y,null,[e]),o||kt,kt,t.ownerSVGElement!==void 0,!n&&r?[r]:o?null:t.firstChild?qt.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,s),Xi(i,e,s)}function jn(e,t){it(e,t,jn)}function zn(e,t,r){var n,o,i,s,a=Ge({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?qt.call(arguments,2):r),Bt(e.type,a,n||e.key,o||e.ref,null)}function Qe(e,t){var r={__c:t="__cC"+ji++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,xn(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}qt=zi.slice,$={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Ui=0,De.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ge({},this.state),typeof e=="function"&&(e=e(Ge({},r),this.props)),e&&Ge(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),xn(this))},De.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xn(this))},De.prototype.render=Y,ut=[],Hi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wn=function(e,t){return e.__v.__b-t.__v.__b},pr.__r=0,ji=0;function Wn(){return(Wn=Object.assign||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)}function Qa(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,o){if(n==null)return{};var i,s,a={},c=Object.keys(n);for(s=0;s<c.length;s++)o.indexOf(i=c[s])>=0||(a[i]=n[i]);return a}(e,["context","children"]);return zn(t,r)}function Za(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=W(Qa,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 o=[],i={},s=0,a=r.attributes,c=r.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Yi(a[s].name)]=a[s].value);for(s=c.length;s--;){var d=t(c[s],null),u=c[s].slot;u?i[u]=W(Mo,{name:u},d):o[s]=d}var l=n?W(Mo,null,o):o;return W(n||r.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?jn:it)(this._vdom,this._root)}function Yi(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function el(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[Yi(e)]=r,this._vdom=zn(this._vdom,n),it(this._vdom,this._root)}}function tl(){it(this._vdom=null,this._root)}function Mo(e,t){var r=this;return W("slot",Wn({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function rl(e,t,r,n){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=n&&n.shadow?i.attachShadow({mode:"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Za,o.prototype.attributeChangedCallback=el,o.prototype.disconnectedCallback=tl,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}var Ye,K,tn,Uo,Tt=0,Qi=[],nr=[],Ho=$.__b,jo=$.__r,zo=$.diffed,Wo=$.__c,qo=$.unmount;function vt(e,t){$.__h&&$.__h(K,e,Tt||t),Tt=0;var r=K.__H||(K.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:nr}),r.__[e]}function te(e){return Tt=1,Tr(rs,e)}function Tr(e,t,r){var n=vt(Ye++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):rs(void 0,t),function(a){var c=n.__N?n.__N[0]:n.__[0],d=n.t(c,a);c!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=K,!K.u)){var o=function(a,c,d){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(m){return m.__c});if(u.every(function(m){return!m.__N}))return!i||i.call(this,a,c,d);var l=!1;return u.forEach(function(m){if(m.__N){var w=m.__[0];m.__=m.__N,m.__N=void 0,w!==m.__[0]&&(l=!0)}}),!(!l&&n.__c.props===a)&&(!i||i.call(this,a,c,d))};K.u=!0;var i=K.shouldComponentUpdate,s=K.componentWillUpdate;K.componentWillUpdate=function(a,c,d){if(this.__e){var u=i;i=void 0,o(a,c,d),i=u}s&&s.call(this,a,c,d)},K.shouldComponentUpdate=o}return n.__N||n.__}function re(e,t){var r=vt(Ye++,3);!$.__s&&qn(r.__H,t)&&(r.__=e,r.i=t,K.__H.__h.push(r))}function bt(e,t){var r=vt(Ye++,4);!$.__s&&qn(r.__H,t)&&(r.__=e,r.i=t,K.__h.push(r))}function q(e){return Tt=5,Se(function(){return{current:e}},[])}function Zi(e,t,r){Tt=6,bt(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 Se(e,t){var r=vt(Ye++,7);return qn(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function pt(e,t){return Tt=8,Se(function(){return e},t)}function $e(e){var t=K.context[e.__c],r=vt(Ye++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(K)),t.props.value):e.__}function es(e,t){$.useDebugValue&&$.useDebugValue(t?t(e):e)}function nl(e){var t=vt(Ye++,10),r=te();return t.__=e,K.componentDidCatch||(K.componentDidCatch=function(n,o){t.__&&t.__(n,o),r[1](n)}),[r[0],function(){r[1](void 0)}]}function ts(){var e=vt(Ye++,11);if(!e.__){for(var t=K.__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 ol(){for(var e;e=Qi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(or),e.__H.__h.forEach(En),e.__H.__h=[]}catch(t){e.__H.__h=[],$.__e(t,e.__v)}}$.__b=function(e){K=null,Ho&&Ho(e)},$.__r=function(e){jo&&jo(e),Ye=0;var t=(K=e.__c).__H;t&&(tn===K?(t.__h=[],K.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=nr,r.__N=r.i=void 0})):(t.__h.forEach(or),t.__h.forEach(En),t.__h=[],Ye=0)),tn=K},$.diffed=function(e){zo&&zo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qi.push(t)!==1&&Uo===$.requestAnimationFrame||((Uo=$.requestAnimationFrame)||il)(ol)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==nr&&(r.__=r.__V),r.i=void 0,r.__V=nr})),tn=K=null},$.__c=function(e,t){t.some(function(r){try{r.__h.forEach(or),r.__h=r.__h.filter(function(n){return!n.__||En(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],$.__e(n,r.__v)}}),Wo&&Wo(e,t)},$.unmount=function(e){qo&&qo(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{or(n)}catch(o){t=o}}),r.__H=void 0,t&&$.__e(t,r.__v))};var Go=typeof requestAnimationFrame=="function";function il(e){var t,r=function(){clearTimeout(n),Go&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Go&&(t=requestAnimationFrame(r))}function or(e){var t=K,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),K=t}function En(e){var t=K;e.__c=e.__(),K=t}function qn(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function rs(e,t){return typeof t=="function"?t(e):t}function Cn(){return Cn=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},Cn.apply(this,arguments)}function ns(e,t){for(var r in t)e[r]=t[r];return e}function kn(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 rn(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function mr(e){this.props=e}function os(e,t){function r(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:kn(this.props,o)}function n(o){return this.shouldComponentUpdate=r,W(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(mr.prototype=new De).isPureReactComponent=!0,mr.prototype.shouldComponentUpdate=function(e,t){return kn(this.props,e)||kn(this.state,t)};var Ko=$.__b;$.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ko&&Ko(e)};var sl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ze(e){function t(r){var n=ns({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=sl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Jo=function(e,t){return e==null?null:Ke(Ke(e).map(t))},is={map:Jo,forEach:Jo,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ke},al=$.__e;$.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}al(e,t,r,n)};var Xo=$.unmount;function ss(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=ns({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return ss(n,t,r)})),e}function as(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return as(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function Vt(){this.__u=0,this.t=null,this.__b=null}function ls(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function cs(e){var t,r,n;function o(i){if(t||(t=e()).then(function(s){r=s.default||s},function(s){n=s}),n)throw n;if(!r)throw t;return W(r,i)}return o.displayName="Lazy",o.__f=!0,o}function Et(){this.u=null,this.o=null}$.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Xo&&Xo(e)},(Vt.prototype=new De).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=ls(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var d=n.state.__a;n.__v.__k[0]=as(d,d.__c.__P,d.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}},c=t.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},Vt.prototype.componentWillUnmount=function(){this.t=[]},Vt.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]=ss(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&W(Y,null,e.fallback);return o&&(o.__h=null),[W(Y,null,t.__a?null:e.children),o]};var Yo=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 ll(e){return this.getChildContext=function(){return e.context},e.children}function cl(e){var t=this,r=e.i;t.componentWillUnmount=function(){it(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,o){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),it(W(ll,{context:t.context},e.__v),t.l)}function us(e,t){var r=W(cl,{__v:e,i:t});return r.containerInfo=t,r}(Et.prototype=new De).__a=function(e){var t=this,r=ls(t.__v),n=t.o.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),Yo(t,e,n)):o()};r?r(i):i()}},Et.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ke(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},Et.prototype.componentDidUpdate=Et.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Yo(e,r,t)})};var ds=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ul=/^(?: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]/,dl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fl=/[A-Z0-9]/g,pl=typeof document<"u",hl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function fs(e,t,r){return t.__k==null&&(t.textContent=""),it(e,t),typeof r=="function"&&r(),e?e.__c:null}function ps(e,t,r){return jn(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 Qo=$.event;function ml(){}function yl(){return this.cancelBubble}function gl(){return this.defaultPrevented}$.event=function(e){return Qo&&(e=Qo(e)),e.persist=ml,e.isPropagationStopped=yl,e.isDefaultPrevented=gl,e.nativeEvent=e};var Gn,vl={enumerable:!1,configurable:!0,get:function(){return this.class}},Zo=$.vnode;$.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={};for(var i in r){var s=r[i];if(!(i==="value"&&"defaultValue"in r&&s==null||pl&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&s===!0?s="":a==="ondoubleclick"?i="ondblclick":a!=="onchange"||n!=="input"&&n!=="textarea"||hl(r.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":dl.test(i)?i=a:n.indexOf("-")===-1&&ul.test(i)?i=i.replace(fl,"-$&").toLowerCase():s===null&&(s=void 0):a=i="oninput",a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ke(r.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Ke(r.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",vl)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=ds,Zo&&Zo(e)};var ei=$.__r;$.__r=function(e){ei&&ei(e),Gn=e.__c};var ti=$.diffed;$.diffed=function(e){ti&&ti(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),Gn=null};var hs={ReactCurrentDispatcher:{current:{readContext:function(e){return Gn.__n[e.__c].props.value}}}},bl="17.0.2";function ms(e){return W.bind(null,e)}function Pt(e){return!!e&&e.$$typeof===ds}function ys(e){return Pt(e)&&e.type===Y}function Kn(e){return Pt(e)?zn.apply(null,arguments):e}function gs(e){return!!e.__k&&(it(null,e),!0)}function vs(e){return e&&(e.base||e.nodeType===1&&e)||null}var bs=function(e,t){return e(t)},_s=function(e,t){return e(t)},ws=Y;function Jn(e){e()}function xs(e){return e}function Ss(){return[!1,Jn]}var Es=bt,Cs=Pt;function ks(e,t){var r=t(),n=te({h:{__:r,v:t}}),o=n[0].h,i=n[1];return bt(function(){o.__=r,o.v=t,rn(o.__,t())||i({h:o})},[e,r,t]),re(function(){return rn(o.__,o.v())||i({h:o}),e(function(){rn(o.__,o.v())||i({h:o})})},[e]),r}var D={useState:te,useId:ts,useReducer:Tr,useEffect:re,useLayoutEffect:bt,useInsertionEffect:Es,useTransition:Ss,useDeferredValue:xs,useSyncExternalStore:ks,startTransition:Jn,useRef:q,useImperativeHandle:Zi,useMemo:Se,useCallback:pt,useContext:$e,useDebugValue:es,version:"17.0.2",Children:is,render:fs,hydrate:ps,unmountComponentAtNode:gs,createPortal:us,createElement:W,createContext:Qe,createFactory:ms,cloneElement:Kn,createRef:Mn,Fragment:Y,isValidElement:Pt,isElement:Cs,isFragment:ys,findDOMNode:vs,Component:De,PureComponent:mr,memo:os,forwardRef:Ze,flushSync:_s,unstable_batchedUpdates:bs,StrictMode:ws,Suspense:Vt,SuspenseList:Et,lazy:cs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hs};const yr=Object.freeze(Object.defineProperty({__proto__:null,Children:is,Component:De,Fragment:Y,PureComponent:mr,StrictMode:ws,Suspense:Vt,SuspenseList:Et,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hs,cloneElement:Kn,createContext:Qe,createElement:W,createFactory:ms,createPortal:us,createRef:Mn,default:D,findDOMNode:vs,flushSync:_s,forwardRef:Ze,hydrate:ps,isElement:Cs,isFragment:ys,isValidElement:Pt,lazy:cs,memo:os,render:fs,startTransition:Jn,unmountComponentAtNode:gs,unstable_batchedUpdates:bs,useCallback:pt,useContext:$e,useDebugValue:es,useDeferredValue:xs,useEffect:re,useErrorBoundary:nl,useId:ts,useImperativeHandle:Zi,useInsertionEffect:Es,useLayoutEffect:bt,useMemo:Se,useReducer:Tr,useRef:q,useState:te,useSyncExternalStore:ks,useTransition:Ss,version:bl},Symbol.toStringTag,{value:"Module"}));function Os(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var _l=/^((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|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)-.*))$/,wl=Os(function(e){return _l.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function xl(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 Sl(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 El=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},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(Sl(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=xl(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.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}(),ge="-ms-",gr="-moz-",j="-webkit-",Ts="comm",Xn="rule",Yn="decl",Cl="@import",Rs="@keyframes",kl="@layer",Ol=Math.abs,Rr=String.fromCharCode,Tl=Object.assign;function Rl(e,t){return he(e,0)^45?(((t<<2^he(e,0))<<2^he(e,1))<<2^he(e,2))<<2^he(e,3):0}function As(e){return e.trim()}function Al(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,r){return e.replace(t,r)}function On(e,t){return e.indexOf(t)}function he(e,t){return e.charCodeAt(t)|0}function Ht(e,t,r){return e.slice(t,r)}function Ie(e){return e.length}function Qn(e){return e.length}function er(e,t){return t.push(e),e}function $l(e,t){return e.map(t).join("")}var Ar=1,Rt=1,$s=0,we=0,se=0,Ft="";function $r(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ar,column:Rt,length:s,return:""}}function Nt(e,t){return Tl($r("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pl(){return se}function Fl(){return se=we>0?he(Ft,--we):0,Rt--,se===10&&(Rt=1,Ar--),se}function Ee(){return se=we<$s?he(Ft,we++):0,Rt++,se===10&&(Rt=1,Ar++),se}function Ue(){return he(Ft,we)}function ir(){return we}function Gt(e,t){return Ht(Ft,e,t)}function jt(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 Ps(e){return Ar=Rt=1,$s=Ie(Ft=e),we=0,[]}function Fs(e){return Ft="",e}function sr(e){return As(Gt(we-1,Tn(e===91?e+2:e===40?e+1:e)))}function Ll(e){for(;(se=Ue())&&se<33;)Ee();return jt(e)>2||jt(se)>3?"":" "}function Nl(e,t){for(;--t&&Ee()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return Gt(e,ir()+(t<6&&Ue()==32&&Ee()==32))}function Tn(e){for(;Ee();)switch(se){case e:return we;case 34:case 39:e!==34&&e!==39&&Tn(se);break;case 40:e===41&&Tn(e);break;case 92:Ee();break}return we}function Dl(e,t){for(;Ee()&&e+se!==47+10;)if(e+se===42+42&&Ue()===47)break;return"/*"+Gt(t,we-1)+"*"+Rr(e===47?e:Ee())}function Il(e){for(;!jt(Ue());)Ee();return Gt(e,we)}function Bl(e){return Fs(ar("",null,null,null,[""],e=Ps(e),0,[0],e))}function ar(e,t,r,n,o,i,s,a,c){for(var d=0,u=0,l=s,m=0,w=0,f=0,h=1,x=1,g=1,v=0,C="",L=o,R=i,F=n,A=C;x;)switch(f=v,v=Ee()){case 40:if(f!=108&&he(A,l-1)==58){On(A+=z(sr(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:A+=sr(v);break;case 9:case 10:case 13:case 32:A+=Ll(f);break;case 92:A+=Nl(ir()-1,7);continue;case 47:switch(Ue()){case 42:case 47:er(Vl(Dl(Ee(),ir()),t,r),c);break;default:A+="/"}break;case 123*h:a[d++]=Ie(A)*g;case 125*h:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+u:g==-1&&(A=z(A,/\f/g,"")),w>0&&Ie(A)-l&&er(w>32?ni(A+";",n,r,l-1):ni(z(A," ","")+";",n,r,l-2),c);break;case 59:A+=";";default:if(er(F=ri(A,t,r,d,u,o,a,C,L=[],R=[],l),i),v===123)if(u===0)ar(A,t,F,F,L,i,l,a,R);else switch(m===99&&he(A,3)===110?100:m){case 100:case 108:case 109:case 115:ar(e,F,F,n&&er(ri(e,F,F,0,0,o,a,C,o,L=[],l),R),o,R,l,a,n?L:R);break;default:ar(A,F,F,F,[""],R,0,a,R)}}d=u=w=0,h=g=1,C=A="",l=s;break;case 58:l=1+Ie(A),w=f;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Fl()==125)continue}switch(A+=Rr(v),v*h){case 38:g=u>0?1:(A+="\f",-1);break;case 44:a[d++]=(Ie(A)-1)*g,g=1;break;case 64:Ue()===45&&(A+=sr(Ee())),m=Ue(),u=l=Ie(C=A+=Il(ir())),v++;break;case 45:f===45&&Ie(A)==2&&(h=0)}}return i}function ri(e,t,r,n,o,i,s,a,c,d,u){for(var l=o-1,m=o===0?i:[""],w=Qn(m),f=0,h=0,x=0;f<n;++f)for(var g=0,v=Ht(e,l+1,l=Ol(h=s[f])),C=e;g<w;++g)(C=As(h>0?m[g]+" "+v:z(v,/&\f/g,m[g])))&&(c[x++]=C);return $r(e,t,r,o===0?Xn:a,c,d,u)}function Vl(e,t,r){return $r(e,t,r,Ts,Rr(Pl()),Ht(e,2,-2),0)}function ni(e,t,r,n){return $r(e,t,r,Yn,Ht(e,0,n),Ht(e,n+1,-1),n)}function Ot(e,t){for(var r="",n=Qn(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ml(e,t,r,n){switch(e.type){case kl:if(e.children.length)break;case Cl:case Yn:return e.return=e.return||e.value;case Ts:return"";case Rs:return e.return=e.value+"{"+Ot(e.children,n)+"}";case Xn:e.value=e.props.join(",")}return Ie(r=Ot(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ul(e){var t=Qn(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function Hl(e){return function(t){t.root||(t=t.return)&&e(t)}}var jl=function(t,r,n){for(var o=0,i=0;o=i,i=Ue(),o===38&&i===12&&(r[n]=1),!jt(i);)Ee();return Gt(t,we)},zl=function(t,r){var n=-1,o=44;do switch(jt(o)){case 0:o===38&&Ue()===12&&(r[n]=1),t[n]+=jl(we-1,r,n);break;case 2:t[n]+=sr(o);break;case 4:if(o===44){t[++n]=Ue()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Rr(o)}while(o=Ee());return t},Wl=function(t,r){return Fs(zl(Ps(t),r))},oi=new WeakMap,ql=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=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&&!oi.get(n))&&!o){oi.set(t,!0);for(var i=[],s=Wl(r,i),a=n.props,c=0,d=0;c<s.length;c++)for(var u=0;u<a.length;u++,d++)t.props[d]=i[c]?s[c].replace(/&\f/g,a[u]):a[u]+" "+s[c]}}},Gl=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ls(e,t){switch(Rl(e,t)){case 5103:return j+"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 j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+gr+e+ge+e+e;case 6828:case 4268:return j+e+ge+e+e;case 6165:return j+e+ge+"flex-"+e+e;case 5187:return j+e+z(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+ge+"flex-$1$2")+e;case 5443:return j+e+ge+"flex-item-"+z(e,/flex-|-self/,"")+e;case 4675:return j+e+ge+"flex-line-pack"+z(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+ge+z(e,"shrink","negative")+e;case 5292:return j+e+ge+z(e,"basis","preferred-size")+e;case 6060:return j+"box-"+z(e,"-grow","")+j+e+ge+z(e,"grow","positive")+e;case 4554:return j+z(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,j+"$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(Ie(e)-1-t>6)switch(he(e,t+1)){case 109:if(he(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+gr+(he(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~On(e,"stretch")?Ls(z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(he(e,t+1)!==115)break;case 6444:switch(he(e,Ie(e)-3-(~On(e,"!important")&&10))){case 107:return z(e,":",":"+j)+e;case 101:return z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(he(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+ge+"$2box$3")+e}break;case 5936:switch(he(e,t+11)){case 114:return j+e+ge+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+ge+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+ge+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+ge+e+e}return e}var Kl=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Yn:t.return=Ls(t.value,t.length);break;case Rs:return Ot([Nt(t,{value:z(t.value,"@","@"+j)})],o);case Xn:if(t.length)return $l(t.props,function(i){switch(Al(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ot([Nt(t,{props:[z(i,/:(read-\w+)/,":"+gr+"$1")]})],o);case"::placeholder":return Ot([Nt(t,{props:[z(i,/:(plac\w+)/,":"+j+"input-$1")]}),Nt(t,{props:[z(i,/:(plac\w+)/,":"+gr+"$1")]}),Nt(t,{props:[z(i,/:(plac\w+)/,ge+"input-$1")]})],o)}return""})}},Jl=[Kl],Zn=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(h){var x=h.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||Jl,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var x=h.getAttribute("data-emotion").split(" "),g=1;g<x.length;g++)i[x[g]]=!0;a.push(h)});var c,d=[ql,Gl];{var u,l=[Ml,Hl(function(h){u.insert(h)})],m=Ul(d.concat(o,l)),w=function(x){return Ot(Bl(x),m)};c=function(x,g,v,C){u=v,w(x?x+"{"+g.styles+"}":g.styles),C&&(f.inserted[g.name]=!0)}}var f={key:r,sheet:new El({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return f.sheet.hydrate(a),f},Ns={exports:{}},G={};/** @license React v16.13.1
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var qt,$,Ui,ut,Do,Mi,xn,Hi,kt={},ji=[],Wa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Tr=Array.isArray;function Ge(e,t){for(var r in t)e[r]=t[r];return e}function zi(e){var t=e.parentNode;t&&t.removeChild(e)}function W(e,t,r){var n,o,i,s={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?qt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Bt(e,s,n,o,null)}function Bt(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Ui};return o==null&&$.vnode!=null&&$.vnode(i),i}function Un(){return{current:null}}function X(e){return e.children}function Ie(e,t){this.props=e,this.context=t}function Mt(e,t){if(t==null)return e.__?Mt(e.__,e.__.__k.indexOf(e)+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"?Mt(e):null}function Wi(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 Wi(e)}}function Sn(e){(!e.__d&&(e.__d=!0)&&ut.push(e)&&!hr.__r++||Do!==$.debounceRendering)&&((Do=$.debounceRendering)||Mi)(hr)}function hr(){var e,t,r,n,o,i,s,a,c;for(ut.sort(xn);e=ut.shift();)e.__d&&(t=ut.length,n=void 0,o=void 0,i=void 0,a=(s=(r=e).__v).__e,(c=r.__P)&&(n=[],o=[],(i=Ge({},s)).__v=s.__v+1,Mn(c,s,i,r.__n,c.ownerSVGElement!==void 0,s.__h!=null?[a]:null,n,a??Mt(s),s.__h,o),Ji(n,s,o),s.__e!=a&&Wi(s)),ut.length>t&&ut.sort(xn));hr.__r=0}function qi(e,t,r,n,o,i,s,a,c,u,d){var l,h,g,f,m,x,v,w,O,L=0,A=n&&n.__k||ji,F=A.length,R=F,B=t.length;for(r.__k=[],l=0;l<B;l++)(f=r.__k[l]=(f=t[l])==null||typeof f=="boolean"||typeof f=="function"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?Bt(null,f,null,null,f):Tr(f)?Bt(X,{children:f},null,null,null):f.__b>0?Bt(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null?(f.__=r,f.__b=r.__b+1,(w=qa(f,A,v=l+L,R))===-1?g=kt:(g=A[w]||kt,A[w]=void 0,R--),Mn(e,f,g,o,i,s,a,c,u,d),m=f.__e,(h=f.ref)&&g.ref!=h&&(g.ref&&Hn(g.ref,null,f),d.push(h,f.__c||m,f)),m!=null&&(x==null&&(x=m),(O=g===kt||g.__v===null)?w==-1&&L--:w!==v&&(w===v+1?L++:w>v?R>B-v?L+=w-v:L--:L=w<v&&w==v-1?w-v:0),v=l+L,typeof f.type!="function"||w===v&&g.__k!==f.__k?typeof f.type=="function"||w===v&&!O?f.__d!==void 0?(c=f.__d,f.__d=void 0):c=m.nextSibling:c=Ki(e,m,c):c=Gi(f,c,e),typeof r.type=="function"&&(r.__d=c))):(g=A[l])&&g.key==null&&g.__e&&(g.__e==c&&(c=Mt(g)),En(g,g,!1),A[l]=null);for(r.__e=x,l=F;l--;)A[l]!=null&&(typeof r.type=="function"&&A[l].__e!=null&&A[l].__e==r.__d&&(r.__d=A[l].__e.nextSibling),En(A[l],A[l]))}function Gi(e,t,r){for(var n,o=e.__k,i=0;o&&i<o.length;i++)(n=o[i])&&(n.__=e,t=typeof n.type=="function"?Gi(n,t,r):Ki(r,n.__e,t));return t}function Ke(e,t){return t=t||[],e==null||typeof e=="boolean"||(Tr(e)?e.some(function(r){Ke(r,t)}):t.push(e)),t}function Ki(e,t,r){return r==null||r.parentNode!==e?e.insertBefore(t,null):t==r&&t.parentNode!=null||e.insertBefore(t,r),t.nextSibling}function qa(e,t,r,n){var o=e.key,i=e.type,s=r-1,a=r+1,c=t[r];if(c===null||c&&o==c.key&&i===c.type)return r;if(n>(c!=null?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&o==c.key&&i===c.type)return a;a++}}return-1}function Ga(e,t,r,n,o){var i;for(i in r)i==="children"||i==="key"||i in t||mr(e,i,null,r[i],n);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||r[i]===t[i]||mr(e,i,t[i],r[i],n)}function Io(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Wa.test(t)?r:r+"px"}function mr(e,t,r,n,o){var i;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||Io(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Io(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n||e.addEventListener(t,i?Vo:Bo,i):e.removeEventListener(t,i?Vo:Bo,i);else if(t!=="dangerouslySetInnerHTML"){if(o)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 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 Bo(e){return this.l[e.type+!1]($.event?$.event(e):e)}function Vo(e){return this.l[e.type+!0]($.event?$.event(e):e)}function Mn(e,t,r,n,o,i,s,a,c,u){var d,l,h,g,f,m,x,v,w,O,L,A,F,R,B,V=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(c=r.__h,a=t.__e=r.__e,t.__h=null,i=[a]),(d=$.__b)&&d(t);e:if(typeof V=="function")try{if(v=t.props,w=(d=V.contextType)&&n[d.__c],O=d?w?w.props.value:d.__:n,r.__c?x=(l=t.__c=r.__c).__=l.__E:("prototype"in V&&V.prototype.render?t.__c=l=new V(v,O):(t.__c=l=new Ie(v,O),l.constructor=V,l.render=Ja),w&&w.sub(l),l.props=v,l.state||(l.state={}),l.context=O,l.__n=n,h=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),V.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Ge({},l.__s)),Ge(l.__s,V.getDerivedStateFromProps(v,l.__s))),g=l.props,f=l.state,l.__v=t,h)V.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(V.getDerivedStateFromProps==null&&v!==g&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(v,O),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(v,l.__s,O)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(l.props=v,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(Z){Z&&(Z.__=t)}),L=0;L<l._sb.length;L++)l.__h.push(l._sb[L]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(v,l.__s,O),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(g,f,m)})}if(l.context=O,l.props=v,l.__P=e,l.__e=!1,A=$.__r,F=0,"prototype"in V&&V.prototype.render){for(l.state=l.__s,l.__d=!1,A&&A(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,A&&A(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++F<25);l.state=l.__s,l.getChildContext!=null&&(n=Ge(Ge({},n),l.getChildContext())),h||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(g,f)),qi(e,Tr(B=d!=null&&d.type===X&&d.key==null?d.props.children:d)?B:[B],t,r,n,o,i,s,a,c,u),l.base=t.__e,t.__h=null,l.__h.length&&s.push(l),x&&(l.__E=l.__=null)}catch(Z){t.__v=null,(c||i!=null)&&(t.__e=a,t.__h=!!c,i[i.indexOf(a)]=null),$.__e(Z,t,r)}else i==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Ka(r.__e,t,r,n,o,i,s,c,u);(d=$.diffed)&&d(t)}function Ji(e,t,r){for(var n=0;n<r.length;n++)Hn(r[n],r[++n],r[++n]);$.__c&&$.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){$.__e(i,o.__v)}})}function Ka(e,t,r,n,o,i,s,a,c){var u,d,l,h=r.props,g=t.props,f=t.type,m=0;if(f==="svg"&&(o=!0),i!=null){for(;m<i.length;m++)if((u=i[m])&&"setAttribute"in u==!!f&&(f?u.localName===f:u.nodeType===3)){e=u,i[m]=null;break}}if(e==null){if(f===null)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,g.is&&g),i=null,a=!1}if(f===null)h===g||a&&e.data===g||(e.data=g);else{if(i=i&&qt.call(e.childNodes),d=(h=r.props||kt).dangerouslySetInnerHTML,l=g.dangerouslySetInnerHTML,!a){if(i!=null)for(h={},m=0;m<e.attributes.length;m++)h[e.attributes[m].name]=e.attributes[m].value;(l||d)&&(l&&(d&&l.__html==d.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(Ga(e,g,h,o,a),l)t.__k=[];else if(qi(e,Tr(m=t.props.children)?m:[m],t,r,n,o&&f!=="foreignObject",i,s,i?i[0]:r.__k&&Mt(r,0),a,c),i!=null)for(m=i.length;m--;)i[m]!=null&&zi(i[m]);a||("value"in g&&(m=g.value)!==void 0&&(m!==e.value||f==="progress"&&!m||f==="option"&&m!==h.value)&&mr(e,"value",m,h.value,!1),"checked"in g&&(m=g.checked)!==void 0&&m!==e.checked&&mr(e,"checked",m,h.checked,!1))}return e}function Hn(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){$.__e(n,r)}}function En(e,t,r){var n,o;if($.unmount&&$.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Hn(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){$.__e(i,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&En(n[o],t,r||typeof e.type!="function");r||e.__e==null||zi(e.__e),e.__=e.__e=e.__d=void 0}function Ja(e,t,r){return this.constructor(e,r)}function it(e,t,r){var n,o,i,s;$.__&&$.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],s=[],Mn(t,e=(!n&&r||t).__k=W(X,null,[e]),o||kt,kt,t.ownerSVGElement!==void 0,!n&&r?[r]:o?null:t.firstChild?qt.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,s),Ji(i,e,s)}function jn(e,t){it(e,t,jn)}function zn(e,t,r){var n,o,i,s,a=Ge({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?qt.call(arguments,2):r),Bt(e.type,a,n||e.key,o||e.ref,null)}function Qe(e,t){var r={__c:t="__cC"+Hi++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Sn(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}qt=ji.slice,$={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Ui=0,Ie.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ge({},this.state),typeof e=="function"&&(e=e(Ge({},r),this.props)),e&&Ge(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Sn(this))},Ie.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Sn(this))},Ie.prototype.render=X,ut=[],Mi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,xn=function(e,t){return e.__v.__b-t.__v.__b},hr.__r=0,Hi=0;function Wn(){return(Wn=Object.assign||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)}function Ya(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,o){if(n==null)return{};var i,s,a={},c=Object.keys(n);for(s=0;s<c.length;s++)o.indexOf(i=c[s])>=0||(a[i]=n[i]);return a}(e,["context","children"]);return zn(t,r)}function Xa(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=W(Ya,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 o=[],i={},s=0,a=r.attributes,c=r.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Yi(a[s].name)]=a[s].value);for(s=c.length;s--;){var u=t(c[s],null),d=c[s].slot;d?i[d]=W(Uo,{name:d},u):o[s]=u}var l=n?W(Uo,null,o):o;return W(n||r.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?jn:it)(this._vdom,this._root)}function Yi(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function Qa(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[Yi(e)]=r,this._vdom=zn(this._vdom,n),it(this._vdom,this._root)}}function Za(){it(this._vdom=null,this._root)}function Uo(e,t){var r=this;return W("slot",Wn({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function el(e,t,r,n){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=n&&n.shadow?i.attachShadow({mode:"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Xa,o.prototype.attributeChangedCallback=Qa,o.prototype.disconnectedCallback=Za,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}var Xe,K,rn,Mo,Tt=0,Xi=[],nr=[],Ho=$.__b,jo=$.__r,zo=$.diffed,Wo=$.__c,qo=$.unmount;function vt(e,t){$.__h&&$.__h(K,e,Tt||t),Tt=0;var r=K.__H||(K.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:nr}),r.__[e]}function te(e){return Tt=1,Ar(ts,e)}function Ar(e,t,r){var n=vt(Xe++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ts(void 0,t),function(a){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,a);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=K,!K.u)){var o=function(a,c,u){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(h){return h.__c});if(d.every(function(h){return!h.__N}))return!i||i.call(this,a,c,u);var l=!1;return d.forEach(function(h){if(h.__N){var g=h.__[0];h.__=h.__N,h.__N=void 0,g!==h.__[0]&&(l=!0)}}),!(!l&&n.__c.props===a)&&(!i||i.call(this,a,c,u))};K.u=!0;var i=K.shouldComponentUpdate,s=K.componentWillUpdate;K.componentWillUpdate=function(a,c,u){if(this.__e){var d=i;i=void 0,o(a,c,u),i=d}s&&s.call(this,a,c,u)},K.shouldComponentUpdate=o}return n.__N||n.__}function re(e,t){var r=vt(Xe++,3);!$.__s&&qn(r.__H,t)&&(r.__=e,r.i=t,K.__H.__h.push(r))}function bt(e,t){var r=vt(Xe++,4);!$.__s&&qn(r.__H,t)&&(r.__=e,r.i=t,K.__h.push(r))}function q(e){return Tt=5,Se(function(){return{current:e}},[])}function Qi(e,t,r){Tt=6,bt(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 Se(e,t){var r=vt(Xe++,7);return qn(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function pt(e,t){return Tt=8,Se(function(){return e},t)}function $e(e){var t=K.context[e.__c],r=vt(Xe++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(K)),t.props.value):e.__}function Zi(e,t){$.useDebugValue&&$.useDebugValue(t?t(e):e)}function tl(e){var t=vt(Xe++,10),r=te();return t.__=e,K.componentDidCatch||(K.componentDidCatch=function(n,o){t.__&&t.__(n,o),r[1](n)}),[r[0],function(){r[1](void 0)}]}function es(){var e=vt(Xe++,11);if(!e.__){for(var t=K.__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 rl(){for(var e;e=Xi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(or),e.__H.__h.forEach(Cn),e.__H.__h=[]}catch(t){e.__H.__h=[],$.__e(t,e.__v)}}$.__b=function(e){K=null,Ho&&Ho(e)},$.__r=function(e){jo&&jo(e),Xe=0;var t=(K=e.__c).__H;t&&(rn===K?(t.__h=[],K.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=nr,r.__N=r.i=void 0})):(t.__h.forEach(or),t.__h.forEach(Cn),t.__h=[],Xe=0)),rn=K},$.diffed=function(e){zo&&zo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Xi.push(t)!==1&&Mo===$.requestAnimationFrame||((Mo=$.requestAnimationFrame)||nl)(rl)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==nr&&(r.__=r.__V),r.i=void 0,r.__V=nr})),rn=K=null},$.__c=function(e,t){t.some(function(r){try{r.__h.forEach(or),r.__h=r.__h.filter(function(n){return!n.__||Cn(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],$.__e(n,r.__v)}}),Wo&&Wo(e,t)},$.unmount=function(e){qo&&qo(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{or(n)}catch(o){t=o}}),r.__H=void 0,t&&$.__e(t,r.__v))};var Go=typeof requestAnimationFrame=="function";function nl(e){var t,r=function(){clearTimeout(n),Go&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Go&&(t=requestAnimationFrame(r))}function or(e){var t=K,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),K=t}function Cn(e){var t=K;e.__c=e.__(),K=t}function qn(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ts(e,t){return typeof t=="function"?t(e):t}function kn(){return kn=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},kn.apply(this,arguments)}function rs(e,t){for(var r in t)e[r]=t[r];return e}function On(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 nn(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function yr(e){this.props=e}function ns(e,t){function r(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:On(this.props,o)}function n(o){return this.shouldComponentUpdate=r,W(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(yr.prototype=new Ie).isPureReactComponent=!0,yr.prototype.shouldComponentUpdate=function(e,t){return On(this.props,e)||On(this.state,t)};var Ko=$.__b;$.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ko&&Ko(e)};var ol=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ze(e){function t(r){var n=rs({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=ol,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Jo=function(e,t){return e==null?null:Ke(Ke(e).map(t))},os={map:Jo,forEach:Jo,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ke},il=$.__e;$.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}il(e,t,r,n)};var Yo=$.unmount;function is(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=rs({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return is(n,t,r)})),e}function ss(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return ss(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}function Vt(){this.__u=0,this.t=null,this.__b=null}function as(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ls(e){var t,r,n;function o(i){if(t||(t=e()).then(function(s){r=s.default||s},function(s){n=s}),n)throw n;if(!r)throw t;return W(r,i)}return o.displayName="Lazy",o.__f=!0,o}function Et(){this.u=null,this.o=null}$.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Yo&&Yo(e)},(Vt.prototype=new Ie).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=as(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=ss(u,u.__c.__P,u.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.t.pop();)d.forceUpdate()}},c=t.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},Vt.prototype.componentWillUnmount=function(){this.t=[]},Vt.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]=is(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&W(X,null,e.fallback);return o&&(o.__h=null),[W(X,null,t.__a?null:e.children),o]};var Xo=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 sl(e){return this.getChildContext=function(){return e.context},e.children}function al(e){var t=this,r=e.i;t.componentWillUnmount=function(){it(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,o){this.childNodes.push(n),t.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n)}}),it(W(sl,{context:t.context},e.__v),t.l)}function cs(e,t){var r=W(al,{__v:e,i:t});return r.containerInfo=t,r}(Et.prototype=new Ie).__a=function(e){var t=this,r=as(t.__v),n=t.o.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),Xo(t,e,n)):o()};r?r(i):i()}},Et.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ke(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},Et.prototype.componentDidUpdate=Et.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Xo(e,r,t)})};var us=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ll=/^(?: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]/,cl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ul=/[A-Z0-9]/g,dl=typeof document<"u",fl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ds(e,t,r){return t.__k==null&&(t.textContent=""),it(e,t),typeof r=="function"&&r(),e?e.__c:null}function fs(e,t,r){return jn(e,t),typeof r=="function"&&r(),e?e.__c:null}Ie.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ie.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Qo=$.event;function pl(){}function hl(){return this.cancelBubble}function ml(){return this.defaultPrevented}$.event=function(e){return Qo&&(e=Qo(e)),e.persist=pl,e.isPropagationStopped=hl,e.isDefaultPrevented=ml,e.nativeEvent=e};var Gn,yl={enumerable:!1,configurable:!0,get:function(){return this.class}},Zo=$.vnode;$.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={};for(var i in r){var s=r[i];if(!(i==="value"&&"defaultValue"in r&&s==null||dl&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&s===!0?s="":a==="ondoubleclick"?i="ondblclick":a!=="onchange"||n!=="input"&&n!=="textarea"||fl(r.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":cl.test(i)?i=a:n.indexOf("-")===-1&&ll.test(i)?i=i.replace(ul,"-$&").toLowerCase():s===null&&(s=void 0):a=i="oninput",a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ke(r.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Ke(r.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",yl)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=us,Zo&&Zo(e)};var ei=$.__r;$.__r=function(e){ei&&ei(e),Gn=e.__c};var ti=$.diffed;$.diffed=function(e){ti&&ti(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),Gn=null};var ps={ReactCurrentDispatcher:{current:{readContext:function(e){return Gn.__n[e.__c].props.value}}}},gl="17.0.2";function hs(e){return W.bind(null,e)}function Pt(e){return!!e&&e.$$typeof===us}function ms(e){return Pt(e)&&e.type===X}function Kn(e){return Pt(e)?zn.apply(null,arguments):e}function ys(e){return!!e.__k&&(it(null,e),!0)}function gs(e){return e&&(e.base||e.nodeType===1&&e)||null}var vs=function(e,t){return e(t)},bs=function(e,t){return e(t)},_s=X;function Jn(e){e()}function ws(e){return e}function xs(){return[!1,Jn]}var Ss=bt,Es=Pt;function Cs(e,t){var r=t(),n=te({h:{__:r,v:t}}),o=n[0].h,i=n[1];return bt(function(){o.__=r,o.v=t,nn(o.__,t())||i({h:o})},[e,r,t]),re(function(){return nn(o.__,o.v())||i({h:o}),e(function(){nn(o.__,o.v())||i({h:o})})},[e]),r}var D={useState:te,useId:es,useReducer:Ar,useEffect:re,useLayoutEffect:bt,useInsertionEffect:Ss,useTransition:xs,useDeferredValue:ws,useSyncExternalStore:Cs,startTransition:Jn,useRef:q,useImperativeHandle:Qi,useMemo:Se,useCallback:pt,useContext:$e,useDebugValue:Zi,version:"17.0.2",Children:os,render:ds,hydrate:fs,unmountComponentAtNode:ys,createPortal:cs,createElement:W,createContext:Qe,createFactory:hs,cloneElement:Kn,createRef:Un,Fragment:X,isValidElement:Pt,isElement:Es,isFragment:ms,findDOMNode:gs,Component:Ie,PureComponent:yr,memo:ns,forwardRef:Ze,flushSync:bs,unstable_batchedUpdates:vs,StrictMode:_s,Suspense:Vt,SuspenseList:Et,lazy:ls,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ps};const gr=Object.freeze(Object.defineProperty({__proto__:null,Children:os,Component:Ie,Fragment:X,PureComponent:yr,StrictMode:_s,Suspense:Vt,SuspenseList:Et,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ps,cloneElement:Kn,createContext:Qe,createElement:W,createFactory:hs,createPortal:cs,createRef:Un,default:D,findDOMNode:gs,flushSync:bs,forwardRef:Ze,hydrate:fs,isElement:Es,isFragment:ms,isValidElement:Pt,lazy:ls,memo:ns,render:ds,startTransition:Jn,unmountComponentAtNode:ys,unstable_batchedUpdates:vs,useCallback:pt,useContext:$e,useDebugValue:Zi,useDeferredValue:ws,useEffect:re,useErrorBoundary:tl,useId:es,useImperativeHandle:Qi,useInsertionEffect:Ss,useLayoutEffect:bt,useMemo:Se,useReducer:Ar,useRef:q,useState:te,useSyncExternalStore:Cs,useTransition:xs,version:gl},Symbol.toStringTag,{value:"Module"}));function ks(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var vl=/^((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|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)-.*))$/,bl=ks(function(e){return vl.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function _l(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 wl(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 xl=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},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(wl(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=_l(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.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}(),ge="-ms-",vr="-moz-",j="-webkit-",Os="comm",Yn="rule",Xn="decl",Sl="@import",Ts="@keyframes",El="@layer",Cl=Math.abs,Rr=String.fromCharCode,kl=Object.assign;function Ol(e,t){return he(e,0)^45?(((t<<2^he(e,0))<<2^he(e,1))<<2^he(e,2))<<2^he(e,3):0}function As(e){return e.trim()}function Tl(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,r){return e.replace(t,r)}function Tn(e,t){return e.indexOf(t)}function he(e,t){return e.charCodeAt(t)|0}function Ht(e,t,r){return e.slice(t,r)}function Be(e){return e.length}function Qn(e){return e.length}function er(e,t){return t.push(e),e}function Al(e,t){return e.map(t).join("")}var $r=1,At=1,Rs=0,we=0,se=0,Ft="";function Pr(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:$r,column:At,length:s,return:""}}function Nt(e,t){return kl(Pr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rl(){return se}function $l(){return se=we>0?he(Ft,--we):0,At--,se===10&&(At=1,$r--),se}function Ee(){return se=we<Rs?he(Ft,we++):0,At++,se===10&&(At=1,$r++),se}function Me(){return he(Ft,we)}function ir(){return we}function Gt(e,t){return Ht(Ft,e,t)}function jt(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 $s(e){return $r=At=1,Rs=Be(Ft=e),we=0,[]}function Ps(e){return Ft="",e}function sr(e){return As(Gt(we-1,An(e===91?e+2:e===40?e+1:e)))}function Pl(e){for(;(se=Me())&&se<33;)Ee();return jt(e)>2||jt(se)>3?"":" "}function Fl(e,t){for(;--t&&Ee()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return Gt(e,ir()+(t<6&&Me()==32&&Ee()==32))}function An(e){for(;Ee();)switch(se){case e:return we;case 34:case 39:e!==34&&e!==39&&An(se);break;case 40:e===41&&An(e);break;case 92:Ee();break}return we}function Ll(e,t){for(;Ee()&&e+se!==47+10;)if(e+se===42+42&&Me()===47)break;return"/*"+Gt(t,we-1)+"*"+Rr(e===47?e:Ee())}function Nl(e){for(;!jt(Me());)Ee();return Gt(e,we)}function Dl(e){return Ps(ar("",null,null,null,[""],e=$s(e),0,[0],e))}function ar(e,t,r,n,o,i,s,a,c){for(var u=0,d=0,l=s,h=0,g=0,f=0,m=1,x=1,v=1,w=0,O="",L=o,A=i,F=n,R=O;x;)switch(f=w,w=Ee()){case 40:if(f!=108&&he(R,l-1)==58){Tn(R+=z(sr(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:R+=sr(w);break;case 9:case 10:case 13:case 32:R+=Pl(f);break;case 92:R+=Fl(ir()-1,7);continue;case 47:switch(Me()){case 42:case 47:er(Il(Ll(Ee(),ir()),t,r),c);break;default:R+="/"}break;case 123*m:a[u++]=Be(R)*v;case 125*m:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+d:v==-1&&(R=z(R,/\f/g,"")),g>0&&Be(R)-l&&er(g>32?ni(R+";",n,r,l-1):ni(z(R," ","")+";",n,r,l-2),c);break;case 59:R+=";";default:if(er(F=ri(R,t,r,u,d,o,a,O,L=[],A=[],l),i),w===123)if(d===0)ar(R,t,F,F,L,i,l,a,A);else switch(h===99&&he(R,3)===110?100:h){case 100:case 108:case 109:case 115:ar(e,F,F,n&&er(ri(e,F,F,0,0,o,a,O,o,L=[],l),A),o,A,l,a,n?L:A);break;default:ar(R,F,F,F,[""],A,0,a,A)}}u=d=g=0,m=v=1,O=R="",l=s;break;case 58:l=1+Be(R),g=f;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&$l()==125)continue}switch(R+=Rr(w),w*m){case 38:v=d>0?1:(R+="\f",-1);break;case 44:a[u++]=(Be(R)-1)*v,v=1;break;case 64:Me()===45&&(R+=sr(Ee())),h=Me(),d=l=Be(O=R+=Nl(ir())),w++;break;case 45:f===45&&Be(R)==2&&(m=0)}}return i}function ri(e,t,r,n,o,i,s,a,c,u,d){for(var l=o-1,h=o===0?i:[""],g=Qn(h),f=0,m=0,x=0;f<n;++f)for(var v=0,w=Ht(e,l+1,l=Cl(m=s[f])),O=e;v<g;++v)(O=As(m>0?h[v]+" "+w:z(w,/&\f/g,h[v])))&&(c[x++]=O);return Pr(e,t,r,o===0?Yn:a,c,u,d)}function Il(e,t,r){return Pr(e,t,r,Os,Rr(Rl()),Ht(e,2,-2),0)}function ni(e,t,r,n){return Pr(e,t,r,Xn,Ht(e,0,n),Ht(e,n+1,-1),n)}function Ot(e,t){for(var r="",n=Qn(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Bl(e,t,r,n){switch(e.type){case El:if(e.children.length)break;case Sl:case Xn:return e.return=e.return||e.value;case Os:return"";case Ts:return e.return=e.value+"{"+Ot(e.children,n)+"}";case Yn:e.value=e.props.join(",")}return Be(r=Ot(e.children,n))?e.return=e.value+"{"+r+"}":""}function Vl(e){var t=Qn(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function Ul(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ml=function(t,r,n){for(var o=0,i=0;o=i,i=Me(),o===38&&i===12&&(r[n]=1),!jt(i);)Ee();return Gt(t,we)},Hl=function(t,r){var n=-1,o=44;do switch(jt(o)){case 0:o===38&&Me()===12&&(r[n]=1),t[n]+=Ml(we-1,r,n);break;case 2:t[n]+=sr(o);break;case 4:if(o===44){t[++n]=Me()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Rr(o)}while(o=Ee());return t},jl=function(t,r){return Ps(Hl($s(t),r))},oi=new WeakMap,zl=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=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&&!oi.get(n))&&!o){oi.set(t,!0);for(var i=[],s=jl(r,i),a=n.props,c=0,u=0;c<s.length;c++)for(var d=0;d<a.length;d++,u++)t.props[u]=i[c]?s[c].replace(/&\f/g,a[d]):a[d]+" "+s[c]}}},Wl=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Fs(e,t){switch(Ol(e,t)){case 5103:return j+"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 j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+vr+e+ge+e+e;case 6828:case 4268:return j+e+ge+e+e;case 6165:return j+e+ge+"flex-"+e+e;case 5187:return j+e+z(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+ge+"flex-$1$2")+e;case 5443:return j+e+ge+"flex-item-"+z(e,/flex-|-self/,"")+e;case 4675:return j+e+ge+"flex-line-pack"+z(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+ge+z(e,"shrink","negative")+e;case 5292:return j+e+ge+z(e,"basis","preferred-size")+e;case 6060:return j+"box-"+z(e,"-grow","")+j+e+ge+z(e,"grow","positive")+e;case 4554:return j+z(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,j+"$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(Be(e)-1-t>6)switch(he(e,t+1)){case 109:if(he(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+vr+(he(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Tn(e,"stretch")?Fs(z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(he(e,t+1)!==115)break;case 6444:switch(he(e,Be(e)-3-(~Tn(e,"!important")&&10))){case 107:return z(e,":",":"+j)+e;case 101:return z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(he(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+ge+"$2box$3")+e}break;case 5936:switch(he(e,t+11)){case 114:return j+e+ge+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+ge+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+ge+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+ge+e+e}return e}var ql=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Xn:t.return=Fs(t.value,t.length);break;case Ts:return Ot([Nt(t,{value:z(t.value,"@","@"+j)})],o);case Yn:if(t.length)return Al(t.props,function(i){switch(Tl(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ot([Nt(t,{props:[z(i,/:(read-\w+)/,":"+vr+"$1")]})],o);case"::placeholder":return Ot([Nt(t,{props:[z(i,/:(plac\w+)/,":"+j+"input-$1")]}),Nt(t,{props:[z(i,/:(plac\w+)/,":"+vr+"$1")]}),Nt(t,{props:[z(i,/:(plac\w+)/,ge+"input-$1")]})],o)}return""})}},Gl=[ql],Zn=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(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Gl,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),v=1;v<x.length;v++)i[x[v]]=!0;a.push(m)});var c,u=[zl,Wl];{var d,l=[Bl,Ul(function(m){d.insert(m)})],h=Vl(u.concat(o,l)),g=function(x){return Ot(Dl(x),h)};c=function(x,v,w,O){d=w,g(x?x+"{"+v.styles+"}":v.styles),O&&(f.inserted[v.name]=!0)}}var f={key:r,sheet:new xl({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return f.sheet.hydrate(a),f},Ls={exports:{}},G={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var fe=typeof Symbol=="function"&&Symbol.for,eo=fe?Symbol.for("react.element"):60103,to=fe?Symbol.for("react.portal"):60106,Pr=fe?Symbol.for("react.fragment"):60107,Fr=fe?Symbol.for("react.strict_mode"):60108,Lr=fe?Symbol.for("react.profiler"):60114,Nr=fe?Symbol.for("react.provider"):60109,Dr=fe?Symbol.for("react.context"):60110,ro=fe?Symbol.for("react.async_mode"):60111,Ir=fe?Symbol.for("react.concurrent_mode"):60111,Br=fe?Symbol.for("react.forward_ref"):60112,Vr=fe?Symbol.for("react.suspense"):60113,Xl=fe?Symbol.for("react.suspense_list"):60120,Mr=fe?Symbol.for("react.memo"):60115,Ur=fe?Symbol.for("react.lazy"):60116,Yl=fe?Symbol.for("react.block"):60121,Ql=fe?Symbol.for("react.fundamental"):60117,Zl=fe?Symbol.for("react.responder"):60118,ec=fe?Symbol.for("react.scope"):60119;function ke(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eo:switch(e=e.type,e){case ro:case Ir:case Pr:case Lr:case Fr:case Vr:return e;default:switch(e=e&&e.$$typeof,e){case Dr:case Br:case Ur:case Mr:case Nr:return e;default:return t}}case to:return t}}}function Ds(e){return ke(e)===Ir}G.AsyncMode=ro;G.ConcurrentMode=Ir;G.ContextConsumer=Dr;G.ContextProvider=Nr;G.Element=eo;G.ForwardRef=Br;G.Fragment=Pr;G.Lazy=Ur;G.Memo=Mr;G.Portal=to;G.Profiler=Lr;G.StrictMode=Fr;G.Suspense=Vr;G.isAsyncMode=function(e){return Ds(e)||ke(e)===ro};G.isConcurrentMode=Ds;G.isContextConsumer=function(e){return ke(e)===Dr};G.isContextProvider=function(e){return ke(e)===Nr};G.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eo};G.isForwardRef=function(e){return ke(e)===Br};G.isFragment=function(e){return ke(e)===Pr};G.isLazy=function(e){return ke(e)===Ur};G.isMemo=function(e){return ke(e)===Mr};G.isPortal=function(e){return ke(e)===to};G.isProfiler=function(e){return ke(e)===Lr};G.isStrictMode=function(e){return ke(e)===Fr};G.isSuspense=function(e){return ke(e)===Vr};G.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pr||e===Ir||e===Lr||e===Fr||e===Vr||e===Xl||typeof e=="object"&&e!==null&&(e.$$typeof===Ur||e.$$typeof===Mr||e.$$typeof===Nr||e.$$typeof===Dr||e.$$typeof===Br||e.$$typeof===Ql||e.$$typeof===Zl||e.$$typeof===ec||e.$$typeof===Yl)};G.typeOf=ke;Ns.exports=G;var tc=Ns.exports,Is=tc,rc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bs={};Bs[Is.ForwardRef]=rc;Bs[Is.Memo]=nc;var oc=!0;function Hr(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var no=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||oc===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},jr=function(t,r,n){no(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function ic(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 sc={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},ac=/[A-Z]|^ms/g,lc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vs=function(t){return t.charCodeAt(1)===45},ii=function(t){return t!=null&&typeof t!="boolean"},nn=Os(function(e){return Vs(e)?e:e.replace(ac,"-$&").toLowerCase()}),si=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(lc,function(n,o,i){return Be={name:o,styles:i,next:Be},o})}return sc[t]!==1&&!Vs(t)&&typeof r=="number"&&r!==0?r+"px":r};function zt(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 Be={name:r.name,styles:r.styles,next:Be},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Be={name:n.name,styles:n.styles,next:Be},n=n.next;var o=r.styles+";";return o}return cc(e,t,r)}case"function":{if(e!==void 0){var i=Be,s=r(e);return Be=i,zt(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function cc(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=zt(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":ii(s)&&(n+=nn(i)+":"+si(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)ii(s[a])&&(n+=nn(i)+":"+si(i,s[a])+";");else{var c=zt(e,t,s);switch(i){case"animation":case"animationName":{n+=nn(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var ai=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Be,yt=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Be=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=zt(n,r,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=zt(n,r,t[a]),o&&(i+=s[a]);ai.lastIndex=0;for(var c="",d;(d=ai.exec(i))!==null;)c+="-"+d[1];var u=ic(i)+c;return{name:u,styles:i,next:Be}},uc=function(t){return t()},Ms=yr["useInsertionEffect"]?yr["useInsertionEffect"]:!1,Us=Ms||uc,li=Ms||bt,oo={}.hasOwnProperty,Hs=Qe(typeof HTMLElement<"u"?Zn({key:"css"}):null),dc=Hs.Provider,io=function(t){return Ze(function(r,n){var o=$e(Hs);return t(r,o,n)})},so=Qe({}),Rn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",fc=function(t,r){var n={};for(var o in r)oo.call(r,o)&&(n[o]=r[o]);return n[Rn]=t,n},pc=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return no(r,n,o),Us(function(){return jr(r,n,o)}),null},hc=io(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Rn],i=[n],s="";typeof e.className=="string"?s=Hr(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=yt(i,void 0,$e(so));s+=t.key+"-"+a.name;var c={};for(var d in e)oo.call(e,d)&&d!=="css"&&d!==Rn&&(c[d]=e[d]);return c.ref=r,c.className=s,W(Y,null,W(pc,{cache:t,serialized:a,isStringTag:typeof o=="string"}),W(o,c))}),mc=hc,S=function(t,r){var n=arguments;if(r==null||!oo.call(r,"css"))return W.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=mc,i[1]=fc(t,r);for(var s=2;s<o;s++)i[s]=n[s];return W.apply(null,i)},on=io(function(e,t){var r=e.styles,n=yt([r],void 0,$e(so)),o=q();return li(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),li(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(n.next!==void 0&&jr(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function ao(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yt(t)}var yc=wl,gc=function(t){return t!=="theme"},ci=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?yc:gc},ui=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},vc=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return no(r,n,o),Us(function(){return jr(r,n,o)}),null},at=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=ui(t,r,n),c=a||ci(o),d=!c("as");return function(){var u=arguments,l=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&l.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)l.push.apply(l,u);else{l.push(u[0][0]);for(var m=u.length,w=1;w<m;w++)l.push(u[w],u[0][w])}var f=io(function(h,x,g){var v=d&&h.as||o,C="",L=[],R=h;if(h.theme==null){R={};for(var F in h)R[F]=h[F];R.theme=$e(so)}typeof h.className=="string"?C=Hr(x.registered,L,h.className):h.className!=null&&(C=h.className+" ");var A=yt(l.concat(L),x.registered,R);C+=x.key+"-"+A.name,s!==void 0&&(C+=" "+s);var B=d&&a===void 0?ci(v):c,V={};for(var Z in h)d&&Z==="as"||B(Z)&&(V[Z]=h[Z]);return V.className=C,V.ref=g,W(Y,null,W(vc,{cache:x,serialized:A,isStringTag:typeof v=="string"}),W(v,V))});return f.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=l,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+s}}),f.withComponent=function(h,x){return e(h,Cn({},r,x,{shouldForwardProp:ui(f,x,!0)})).apply(void 0,l)},f}};const bc=at("div",{target:"e6o9g7s0"})("input[type='file']::-webkit-file-upload-button,input[type='file']::file-selector-button{",{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)"}},";margin-inline-start:-1rem;margin-inline-end:1rem;}"),_c=Ze(({onChange:e,error:t,inputLabel:r})=>{const n=o=>{const i=o.target;e(i.files&&i.files[0]||void 0)};return S(bc,null,S("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"},r),S("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}),S("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"}},t==null?void 0:t.message))});var Kt=e=>e.type==="checkbox",Ct=e=>e instanceof Date,be=e=>e==null;const js=e=>typeof e=="object";var ue=e=>!be(e)&&!Array.isArray(e)&&js(e)&&!Ct(e),zs=e=>ue(e)&&e.target?Kt(e.target)?e.target.checked:e.target.value:e,wc=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ws=(e,t)=>e.has(wc(t)),xc=e=>{const t=e.constructor&&e.constructor.prototype;return ue(t)&&t.hasOwnProperty("isPrototypeOf")},lo=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Le(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(!(lo&&(e instanceof Blob||e instanceof FileList))&&(r||ue(e)))if(t=r?[]:{},!r&&!xc(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Le(e[n]));else return e;return t}var Jt=e=>Array.isArray(e)?e.filter(Boolean):[],oe=e=>e===void 0,O=(e,t,r)=>{if(!t||!ue(e))return r;const n=Jt(t.split(/[,[\].]+?/)).reduce((o,i)=>be(o)?o:o[i],e);return oe(n)||n===e?oe(e[t])?r:e[t]:n};const vr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},qe={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Sc=D.createContext(null),co=()=>D.useContext(Sc);var qs=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Ne.all&&(t._proxyFormState[s]=!n||Ne.all),r&&(r[s]=!0),e[s]}});return o},Re=e=>ue(e)&&!Object.keys(e).length,Gs=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return Re(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!n||Ne.all))},lr=e=>Array.isArray(e)?e:[e],Ks=(e,t,r)=>r&&t?e===t||Array.isArray(e)&&e.some(n=>n&&r&&n===t):!e||!t||e===t||lr(e).some(n=>n&&(n.startsWith(t)||t.startsWith(n)));function uo(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 Ec(e){const t=co(),{control:r=t.control,disabled:n,name:o,exact:i}=e||{},[s,a]=D.useState(r._formState),c=D.useRef(!0),d=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=D.useRef(o);return u.current=o,uo({disabled:n,next:l=>c.current&&Ks(u.current,l.name,i)&&Gs(l,d.current,r._updateFormState)&&a({...r._formState,...l}),subject:r._subjects.state}),D.useEffect(()=>(c.current=!0,d.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),qs(s,r,d.current,!1)}var Ve=e=>typeof e=="string",Js=(e,t,r,n,o)=>Ve(e)?(n&&t.watch.add(e),O(r,e,o)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),O(r,i))):(n&&(t.watchAll=!0),r);function Cc(e){const t=co(),{control:r=t.control,name:n,defaultValue:o,disabled:i,exact:s}=e||{},a=D.useRef(n);a.current=n,uo({disabled:i,subject:r._subjects.values,next:u=>{Ks(a.current,u.name,s)&&d(Le(Js(a.current,r._names,u.values||r._formValues,!1,o)))}});const[c,d]=D.useState(r._getWatch(n,o));return D.useEffect(()=>r._removeUnmounted()),c}var fo=e=>/^\w*$/.test(e),Xs=e=>Jt(e.replace(/["|']|\]/g,"").split(/\.|\[/));function X(e,t,r){let n=-1;const o=fo(t)?[t]:Xs(t),i=o.length,s=i-1;for(;++n<i;){const a=o[n];let c=r;if(n!==s){const d=e[a];c=ue(d)||Array.isArray(d)?d:isNaN(+o[n+1])?{}:[]}e[a]=c,e=e[a]}return e}function kc(e){const t=co(),{name:r,disabled:n,control:o=t.control,shouldUnregister:i}=e,s=Ws(o._names.array,r),a=Cc({control:o,name:r,defaultValue:O(o._formValues,r,O(o._defaultValues,r,e.defaultValue)),exact:!0}),c=Ec({control:o,name:r}),d=D.useRef(o.register(r,{...e.rules,value:a}));return d.current=o.register(r,e.rules),D.useEffect(()=>{const u=o._options.shouldUnregister||i,l=(m,w)=>{const f=O(o._fields,m);f&&(f._f.mount=w)};if(l(r,!0),u){const m=Le(O(o._options.defaultValues,r));X(o._defaultValues,r,m),oe(O(o._formValues,r))&&X(o._formValues,r,m)}return()=>{(s?u&&!o._state.action:u)?o.unregister(r):l(r,!1)}},[r,o,s,i]),D.useEffect(()=>{o._updateDisabledField({disabled:n,fields:o._fields,name:r})},[n,r,o]),{field:{name:r,value:a,disabled:n,onChange:D.useCallback(u=>d.current.onChange({target:{value:zs(u),name:r},type:vr.CHANGE}),[r]),onBlur:D.useCallback(()=>d.current.onBlur({target:{value:O(o._formValues,r),name:r},type:vr.BLUR}),[r,o]),ref:u=>{const l=O(o._fields,r);l&&u&&(l._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:m=>u.setCustomValidity(m),reportValidity:()=>u.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!O(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!O(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!O(c.touchedFields,r)},error:{enumerable:!0,get:()=>O(c.errors,r)}})}}const dt=e=>e.render(kc(e));var Oc=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};const An=(e,t,r)=>{for(const n of r||Object.keys(e)){const o=O(e,n);if(o){const{_f:i,...s}=o;if(i&&t(i.name)){if(i.ref.focus){i.ref.focus();break}else if(i.refs&&i.refs[0].focus){i.refs[0].focus();break}}else ue(s)&&An(s,t)}}};var di=e=>({isOnSubmit:!e||e===Ne.onSubmit,isOnBlur:e===Ne.onBlur,isOnChange:e===Ne.onChange,isOnAll:e===Ne.all,isOnTouch:e===Ne.onTouched}),fi=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),Tc=(e,t,r)=>{const n=Jt(O(e,r));return X(n,"root",t[r]),X(e,r,n),e},ht=e=>typeof e=="boolean",po=e=>e.type==="file",nt=e=>typeof e=="function",br=e=>{if(!lo)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},cr=e=>Ve(e),ho=e=>e.type==="radio",_r=e=>e instanceof RegExp;const pi={value:!1,isValid:!1},hi={value:!0,isValid:!0};var Ys=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&&!oe(e[0].attributes.value)?oe(e[0].value)||e[0].value===""?hi:{value:e[0].value,isValid:!0}:hi:pi}return pi};const mi={isValid:!1,value:null};var Qs=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,mi):mi;function yi(e,t,r="validate"){if(cr(e)||Array.isArray(e)&&e.every(cr)||ht(e)&&!e)return{type:r,message:cr(e)?e:"",ref:t}}var St=e=>ue(e)&&!_r(e)?e:{value:e,message:""},gi=async(e,t,r,n,o)=>{const{ref:i,refs:s,required:a,maxLength:c,minLength:d,min:u,max:l,pattern:m,validate:w,name:f,valueAsNumber:h,mount:x,disabled:g}=e._f,v=O(t,f);if(!x||g)return{};const C=s?s[0]:i,L=I=>{n&&C.reportValidity&&(C.setCustomValidity(ht(I)?"":I||""),C.reportValidity())},R={},F=ho(i),A=Kt(i),B=F||A,V=(h||po(i))&&oe(i.value)&&oe(v)||br(i)&&i.value===""||v===""||Array.isArray(v)&&!v.length,Z=Oc.bind(null,f,r,R),ve=(I,N,Q,le=qe.maxLength,ye=qe.minLength)=>{const ie=I?N:Q;R[f]={type:I?le:ye,message:ie,ref:i,...Z(I?le:ye,ie)}};if(o?!Array.isArray(v)||!v.length:a&&(!B&&(V||be(v))||ht(v)&&!v||A&&!Ys(s).isValid||F&&!Qs(s).isValid)){const{value:I,message:N}=cr(a)?{value:!!a,message:a}:St(a);if(I&&(R[f]={type:qe.required,message:N,ref:C,...Z(qe.required,N)},!r))return L(N),R}if(!V&&(!be(u)||!be(l))){let I,N;const Q=St(l),le=St(u);if(!be(v)&&!isNaN(v)){const ye=i.valueAsNumber||v&&+v;be(Q.value)||(I=ye>Q.value),be(le.value)||(N=ye<le.value)}else{const ye=i.valueAsDate||new Date(v),ie=Oe=>new Date(new Date().toDateString()+" "+Oe),Pe=i.type=="time",ze=i.type=="week";Ve(Q.value)&&v&&(I=Pe?ie(v)>ie(Q.value):ze?v>Q.value:ye>new Date(Q.value)),Ve(le.value)&&v&&(N=Pe?ie(v)<ie(le.value):ze?v<le.value:ye<new Date(le.value))}if((I||N)&&(ve(!!I,Q.message,le.message,qe.max,qe.min),!r))return L(R[f].message),R}if((c||d)&&!V&&(Ve(v)||o&&Array.isArray(v))){const I=St(c),N=St(d),Q=!be(I.value)&&v.length>+I.value,le=!be(N.value)&&v.length<+N.value;if((Q||le)&&(ve(Q,I.message,N.message),!r))return L(R[f].message),R}if(m&&!V&&Ve(v)){const{value:I,message:N}=St(m);if(_r(I)&&!v.match(I)&&(R[f]={type:qe.pattern,message:N,ref:i,...Z(qe.pattern,N)},!r))return L(N),R}if(w){if(nt(w)){const I=await w(v,t),N=yi(I,C);if(N&&(R[f]={...N,...Z(qe.validate,N.message)},!r))return L(N.message),R}else if(ue(w)){let I={};for(const N in w){if(!Re(I)&&!r)break;const Q=yi(await w[N](v,t),C,N);Q&&(I={...Q,...Z(N,Q.message)},L(Q.message),r&&(R[f]=I))}if(!Re(I)&&(R[f]={ref:C,...I},!r))return R}}return L(!0),R};function Rc(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=oe(e)?n++:e[t[n++]];return e}function Ac(e){for(const t in e)if(e.hasOwnProperty(t)&&!oe(e[t]))return!1;return!0}function pe(e,t){const r=Array.isArray(t)?t:fo(t)?[t]:Xs(t),n=r.length===1?e:Rc(e,r),o=r.length-1,i=r[o];return n&&delete n[i],o!==0&&(ue(n)&&Re(n)||Array.isArray(n)&&Ac(n))&&pe(e,r.slice(0,-1)),e}function sn(){let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}}var wr=e=>be(e)||!js(e);function mt(e,t){if(wr(e)||wr(t))return e===t;if(Ct(e)&&Ct(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const i=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const s=t[o];if(Ct(i)&&Ct(s)||ue(i)&&ue(s)||Array.isArray(i)&&Array.isArray(s)?!mt(i,s):i!==s)return!1}}return!0}var Zs=e=>e.type==="select-multiple",$c=e=>ho(e)||Kt(e),an=e=>br(e)&&e.isConnected,ea=e=>{for(const t in e)if(nt(e[t]))return!0;return!1};function xr(e,t={}){const r=Array.isArray(e);if(ue(e)||r)for(const n in e)Array.isArray(e[n])||ue(e[n])&&!ea(e[n])?(t[n]=Array.isArray(e[n])?[]:{},xr(e[n],t[n])):be(e[n])||(t[n]=!0);return t}function ta(e,t,r){const n=Array.isArray(e);if(ue(e)||n)for(const o in e)Array.isArray(e[o])||ue(e[o])&&!ea(e[o])?oe(t)||wr(r[o])?r[o]=Array.isArray(e[o])?xr(e[o],[]):{...xr(e[o])}:ta(e[o],be(t)?{}:t[o],r[o]):r[o]=!mt(e[o],t[o]);return r}var ln=(e,t)=>ta(e,t,xr(t)),ra=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>oe(e)?e:t?e===""?NaN:e&&+e:r&&Ve(e)?new Date(e):n?n(e):e;function cn(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return po(t)?t.files:ho(t)?Qs(e.refs).value:Zs(t)?[...t.selectedOptions].map(({value:r})=>r):Kt(t)?Ys(e.refs).value:ra(oe(t.value)?e.ref.value:t.value,e)}var Pc=(e,t,r,n)=>{const o={};for(const i of e){const s=O(t,i);s&&X(o,i,s._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Dt=e=>oe(e)?e:_r(e)?e.source:ue(e)?_r(e.value)?e.value.source:e.value:e,Fc=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function vi(e,t,r){const n=O(e,r);if(n||fo(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const i=o.join("."),s=O(t,i),a=O(e,i);if(s&&!Array.isArray(s)&&r!==i)return{name:r};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:r}}var Lc=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Nc=(e,t)=>!Jt(O(e,t)).length&&pe(e,t);const Dc={mode:Ne.onSubmit,reValidateMode:Ne.onChange,shouldFocusError:!0};function Ic(e={},t){let r={...Dc,...e},n={submitCount:0,isDirty:!1,isLoading:nt(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},i=ue(r.defaultValues)||ue(r.values)?Le(r.defaultValues||r.values)||{}:{},s=r.shouldUnregister?{}:Le(i),a={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},d,u=0;const l={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:sn(),array:sn(),state:sn()},w=e.resetOptions&&e.resetOptions.keepDirtyValues,f=di(r.mode),h=di(r.reValidateMode),x=r.criteriaMode===Ne.all,g=p=>y=>{clearTimeout(u),u=setTimeout(p,y)},v=async p=>{if(l.isValid||p){const y=r.resolver?Re((await V()).errors):await ve(o,!0);y!==n.isValid&&m.state.next({isValid:y})}},C=p=>l.isValidating&&m.state.next({isValidating:p}),L=(p,y=[],_,T,k=!0,E=!0)=>{if(T&&_){if(a.action=!0,E&&Array.isArray(O(o,p))){const P=_(O(o,p),T.argA,T.argB);k&&X(o,p,P)}if(E&&Array.isArray(O(n.errors,p))){const P=_(O(n.errors,p),T.argA,T.argB);k&&X(n.errors,p,P),Nc(n.errors,p)}if(l.touchedFields&&E&&Array.isArray(O(n.touchedFields,p))){const P=_(O(n.touchedFields,p),T.argA,T.argB);k&&X(n.touchedFields,p,P)}l.dirtyFields&&(n.dirtyFields=ln(i,s)),m.state.next({name:p,isDirty:N(p,y),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else X(s,p,y)},R=(p,y)=>{X(n.errors,p,y),m.state.next({errors:n.errors})},F=(p,y,_,T)=>{const k=O(o,p);if(k){const E=O(s,p,oe(_)?O(i,p):_);oe(E)||T&&T.defaultChecked||y?X(s,p,y?E:cn(k._f)):ye(p,E),a.mount&&v()}},A=(p,y,_,T,k)=>{let E=!1,P=!1;const ee={name:p};if(!_||T){l.isDirty&&(P=n.isDirty,n.isDirty=ee.isDirty=N(),E=P!==ee.isDirty);const ne=mt(O(i,p),y);P=O(n.dirtyFields,p),ne?pe(n.dirtyFields,p):X(n.dirtyFields,p,!0),ee.dirtyFields=n.dirtyFields,E=E||l.dirtyFields&&P!==!ne}if(_){const ne=O(n.touchedFields,p);ne||(X(n.touchedFields,p,_),ee.touchedFields=n.touchedFields,E=E||l.touchedFields&&ne!==_)}return E&&k&&m.state.next(ee),E?ee:{}},B=(p,y,_,T)=>{const k=O(n.errors,p),E=l.isValid&&ht(y)&&n.isValid!==y;if(e.delayError&&_?(d=g(()=>R(p,_)),d(e.delayError)):(clearTimeout(u),d=null,_?X(n.errors,p,_):pe(n.errors,p)),(_?!mt(k,_):k)||!Re(T)||E){const P={...T,...E&&ht(y)?{isValid:y}:{},errors:n.errors,name:p};n={...n,...P},m.state.next(P)}C(!1)},V=async p=>r.resolver(s,r.context,Pc(p||c.mount,o,r.criteriaMode,r.shouldUseNativeValidation)),Z=async p=>{const{errors:y}=await V(p);if(p)for(const _ of p){const T=O(y,_);T?X(n.errors,_,T):pe(n.errors,_)}else n.errors=y;return y},ve=async(p,y,_={valid:!0})=>{for(const T in p){const k=p[T];if(k){const{_f:E,...P}=k;if(E){const ee=c.array.has(E.name),ne=await gi(k,s,x,r.shouldUseNativeValidation&&!y,ee);if(ne[E.name]&&(_.valid=!1,y))break;!y&&(O(ne,E.name)?ee?Tc(n.errors,ne,E.name):X(n.errors,E.name,ne[E.name]):pe(n.errors,E.name))}P&&await ve(P,y,_)}}return _.valid},I=()=>{for(const p of c.unMount){const y=O(o,p);y&&(y._f.refs?y._f.refs.every(_=>!an(_)):!an(y._f.ref))&&ce(p)}c.unMount=new Set},N=(p,y)=>(p&&y&&X(s,p,y),!mt(Fe(),i)),Q=(p,y,_)=>Js(p,c,{...a.mount?s:oe(y)?i:Ve(p)?{[p]:y}:y},_,y),le=p=>Jt(O(a.mount?s:i,p,e.shouldUnregister?O(i,p,[]):[])),ye=(p,y,_={})=>{const T=O(o,p);let k=y;if(T){const E=T._f;E&&(!E.disabled&&X(s,p,ra(y,E)),k=br(E.ref)&&be(y)?"":y,Zs(E.ref)?[...E.ref.options].forEach(P=>P.selected=k.includes(P.value)):E.refs?Kt(E.ref)?E.refs.length>1?E.refs.forEach(P=>(!P.defaultChecked||!P.disabled)&&(P.checked=Array.isArray(k)?!!k.find(ee=>ee===P.value):k===P.value)):E.refs[0]&&(E.refs[0].checked=!!k):E.refs.forEach(P=>P.checked=P.value===k):po(E.ref)?E.ref.value="":(E.ref.value=k,E.ref.type||m.values.next({name:p,values:{...s}})))}(_.shouldDirty||_.shouldTouch)&&A(p,k,_.shouldTouch,_.shouldDirty,!0),_.shouldValidate&&Oe(p)},ie=(p,y,_)=>{for(const T in y){const k=y[T],E=`${p}.${T}`,P=O(o,E);(c.array.has(p)||!wr(k)||P&&!P._f)&&!Ct(k)?ie(E,k,_):ye(E,k,_)}},Pe=(p,y,_={})=>{const T=O(o,p),k=c.array.has(p),E=Le(y);X(s,p,E),k?(m.array.next({name:p,values:{...s}}),(l.isDirty||l.dirtyFields)&&_.shouldDirty&&m.state.next({name:p,dirtyFields:ln(i,s),isDirty:N(p,E)})):T&&!T._f&&!be(E)?ie(p,E,_):ye(p,E,_),fi(p,c)&&m.state.next({...n}),m.values.next({name:p,values:{...s}}),!a.mount&&t()},ze=async p=>{const y=p.target;let _=y.name,T=!0;const k=O(o,_),E=()=>y.type?cn(k._f):zs(p);if(k){let P,ee;const ne=E(),xt=p.type===vr.BLUR||p.type===vr.FOCUS_OUT,za=!Fc(k._f)&&!r.resolver&&!O(n.errors,_)&&!k._f.deps||Lc(xt,O(n.touchedFields,_),n.isSubmitted,h,f),Zr=fi(_,c,xt);X(s,_,ne),xt?(k._f.onBlur&&k._f.onBlur(p),d&&d(0)):k._f.onChange&&k._f.onChange(p);const en=A(_,ne,xt,!1),Wa=!Re(en)||Zr;if(!xt&&m.values.next({name:_,type:p.type,values:{...s}}),za)return l.isValid&&v(),Wa&&m.state.next({name:_,...Zr?{}:en});if(!xt&&Zr&&m.state.next({...n}),C(!0),r.resolver){const{errors:Lo}=await V([_]),qa=vi(n.errors,o,_),No=vi(Lo,o,qa.name||_);P=No.error,_=No.name,ee=Re(Lo)}else P=(await gi(k,s,x,r.shouldUseNativeValidation))[_],T=isNaN(ne)||ne===O(s,_,ne),T&&(P?ee=!1:l.isValid&&(ee=await ve(o,!0)));T&&(k._f.deps&&Oe(k._f.deps),B(_,ee,P,en))}},Oe=async(p,y={})=>{let _,T;const k=lr(p);if(C(!0),r.resolver){const E=await Z(oe(p)?p:k);_=Re(E),T=p?!k.some(P=>O(E,P)):_}else p?(T=(await Promise.all(k.map(async E=>{const P=O(o,E);return await ve(P&&P._f?{[E]:P}:P)}))).every(Boolean),!(!T&&!n.isValid)&&v()):T=_=await ve(o);return m.state.next({...!Ve(p)||l.isValid&&_!==n.isValid?{}:{name:p},...r.resolver||!p?{isValid:_}:{},errors:n.errors,isValidating:!1}),y.shouldFocus&&!T&&An(o,E=>E&&O(n.errors,E),p?k:c.mount),T},Fe=p=>{const y={...i,...a.mount?s:{}};return oe(p)?y:Ve(p)?O(y,p):p.map(_=>O(y,_))},We=(p,y)=>({invalid:!!O((y||n).errors,p),isDirty:!!O((y||n).dirtyFields,p),isTouched:!!O((y||n).touchedFields,p),error:O((y||n).errors,p)}),Te=p=>{p&&lr(p).forEach(y=>pe(n.errors,y)),m.state.next({errors:p?n.errors:{}})},U=(p,y,_)=>{const T=(O(o,p,{_f:{}})._f||{}).ref;X(n.errors,p,{...y,ref:T}),m.state.next({name:p,errors:n.errors,isValid:!1}),_&&_.shouldFocus&&T&&T.focus&&T.focus()},J=(p,y)=>nt(p)?m.values.subscribe({next:_=>p(Q(void 0,y),_)}):Q(p,y,!0),ce=(p,y={})=>{for(const _ of p?lr(p):c.mount)c.mount.delete(_),c.array.delete(_),y.keepValue||(pe(o,_),pe(s,_)),!y.keepError&&pe(n.errors,_),!y.keepDirty&&pe(n.dirtyFields,_),!y.keepTouched&&pe(n.touchedFields,_),!r.shouldUnregister&&!y.keepDefaultValue&&pe(i,_);m.values.next({values:{...s}}),m.state.next({...n,...y.keepDirty?{isDirty:N()}:{}}),!y.keepIsValid&&v()},ct=({disabled:p,name:y,field:_,fields:T})=>{if(ht(p)){const k=p?void 0:O(s,y,cn(_?_._f:O(T,y)._f));X(s,y,k),A(y,k,!1,!1,!0)}},wt=(p,y={})=>{let _=O(o,p);const T=ht(y.disabled);return X(o,p,{..._||{},_f:{..._&&_._f?_._f:{ref:{name:p}},name:p,mount:!0,...y}}),c.mount.add(p),_?ct({field:_,disabled:y.disabled,name:p}):F(p,!0,y.value),{...T?{disabled:y.disabled}:{},...r.progressive?{required:!!y.required,min:Dt(y.min),max:Dt(y.max),minLength:Dt(y.minLength),maxLength:Dt(y.maxLength),pattern:Dt(y.pattern)}:{},name:p,onChange:ze,onBlur:ze,ref:k=>{if(k){wt(p,y),_=O(o,p);const E=oe(k.value)&&k.querySelectorAll&&k.querySelectorAll("input,select,textarea")[0]||k,P=$c(E),ee=_._f.refs||[];if(P?ee.find(ne=>ne===E):E===_._f.ref)return;X(o,p,{_f:{..._._f,...P?{refs:[...ee.filter(an),E,...Array.isArray(O(i,p))?[{}]:[]],ref:{type:E.type,name:p}}:{ref:E}}}),F(p,!1,void 0,E)}else _=O(o,p,{}),_._f&&(_._f.mount=!1),(r.shouldUnregister||y.shouldUnregister)&&!(Ws(c.array,p)&&a.action)&&c.unMount.add(p)}}},Ao=()=>r.shouldFocusError&&An(o,p=>p&&O(n.errors,p),c.mount),$o=(p,y)=>async _=>{_&&(_.preventDefault&&_.preventDefault(),_.persist&&_.persist());let T=Le(s);if(m.state.next({isSubmitting:!0}),r.resolver){const{errors:k,values:E}=await V();n.errors=k,T=E}else await ve(o);pe(n.errors,"root"),Re(n.errors)?(m.state.next({errors:{}}),await p(T,_)):(y&&await y({...n.errors},_),Ao(),setTimeout(Ao)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Re(n.errors),submitCount:n.submitCount+1,errors:n.errors})},ja=(p,y={})=>{O(o,p)&&(oe(y.defaultValue)?Pe(p,O(i,p)):(Pe(p,y.defaultValue),X(i,p,y.defaultValue)),y.keepTouched||pe(n.touchedFields,p),y.keepDirty||(pe(n.dirtyFields,p),n.isDirty=y.defaultValue?N(p,O(i,p)):N()),y.keepError||(pe(n.errors,p),l.isValid&&v()),m.state.next({...n}))},Po=(p,y={})=>{const _=p?Le(p):i,T=Le(_),k=p&&!Re(p)?T:i;if(y.keepDefaultValues||(i=_),!y.keepValues){if(y.keepDirtyValues||w)for(const E of c.mount)O(n.dirtyFields,E)?X(k,E,O(s,E)):Pe(E,O(k,E));else{if(lo&&oe(p))for(const E of c.mount){const P=O(o,E);if(P&&P._f){const ee=Array.isArray(P._f.refs)?P._f.refs[0]:P._f.ref;if(br(ee)){const ne=ee.closest("form");if(ne){ne.reset();break}}}}o={}}s=e.shouldUnregister?y.keepDefaultValues?Le(i):{}:Le(k),m.array.next({values:{...k}}),m.values.next({values:{...k}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&t(),a.mount=!l.isValid||!!y.keepIsValid,a.watch=!!e.shouldUnregister,m.state.next({submitCount:y.keepSubmitCount?n.submitCount:0,isDirty:y.keepDirty?n.isDirty:!!(y.keepDefaultValues&&!mt(p,i)),isSubmitted:y.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:y.keepDirtyValues?n.dirtyFields:y.keepDefaultValues&&p?ln(i,p):{},touchedFields:y.keepTouched?n.touchedFields:{},errors:y.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Fo=(p,y)=>Po(nt(p)?p(s):p,y);return{control:{register:wt,unregister:ce,getFieldState:We,handleSubmit:$o,setError:U,_executeSchema:V,_getWatch:Q,_getDirty:N,_updateValid:v,_removeUnmounted:I,_updateFieldArray:L,_updateDisabledField:ct,_getFieldArray:le,_reset:Po,_resetDefaultValues:()=>nt(r.defaultValues)&&r.defaultValues().then(p=>{Fo(p,r.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:p=>{n={...n,...p}},_subjects:m,_proxyFormState:l,get _fields(){return o},get _formValues(){return s},get _state(){return a},set _state(p){a=p},get _defaultValues(){return i},get _names(){return c},set _names(p){c=p},get _formState(){return n},set _formState(p){n=p},get _options(){return r},set _options(p){r={...r,...p}}},trigger:Oe,register:wt,handleSubmit:$o,watch:J,setValue:Pe,getValues:Fe,reset:Fo,resetField:ja,clearErrors:Te,unregister:ce,setError:U,setFocus:(p,y={})=>{const _=O(o,p),T=_&&_._f;if(T){const k=T.refs?T.refs[0]:T.ref;k.focus&&(k.focus(),y.shouldSelect&&k.select())}},getFieldState:We}}function na(e={}){const t=D.useRef(),r=D.useRef(),[n,o]=D.useState({isDirty:!1,isValidating:!1,isLoading:nt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:nt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Ic(e,()=>o(s=>({...s}))),formState:n});const i=t.current.control;return i._options=e,uo({subject:i._subjects.state,next:s=>{Gs(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),D.useEffect(()=>{e.values&&!mt(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values):i._resetDefaultValues()},[e.values,i]),D.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=qs(n,i),t.current}function oa(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bc}=Object.prototype,{getPrototypeOf:mo}=Object,zr=(e=>t=>{const r=Bc.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),je=e=>(e=e.toLowerCase(),t=>zr(t)===e),Wr=e=>t=>typeof t===e,{isArray:Lt}=Array,Wt=Wr("undefined");function Vc(e){return e!==null&&!Wt(e)&&e.constructor!==null&&!Wt(e.constructor)&&Ae(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ia=je("ArrayBuffer");function Mc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ia(e.buffer),t}const Uc=Wr("string"),Ae=Wr("function"),sa=Wr("number"),qr=e=>e!==null&&typeof e=="object",Hc=e=>e===!0||e===!1,ur=e=>{if(zr(e)!=="object")return!1;const t=mo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jc=je("Date"),zc=je("File"),Wc=je("Blob"),qc=je("FileList"),Gc=e=>qr(e)&&Ae(e.pipe),Kc=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ae(e.append)&&((t=zr(e))==="formdata"||t==="object"&&Ae(e.toString)&&e.toString()==="[object FormData]"))},Jc=je("URLSearchParams"),Xc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Lt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function aa(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const la=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ca=e=>!Wt(e)&&e!==la;function $n(){const{caseless:e}=ca(this)&&this||{},t={},r=(n,o)=>{const i=e&&aa(t,o)||o;ur(t[i])&&ur(n)?t[i]=$n(t[i],n):ur(n)?t[i]=$n({},n):Lt(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Xt(arguments[n],r);return t}const Yc=(e,t,r,{allOwnKeys:n}={})=>(Xt(t,(o,i)=>{r&&Ae(o)?e[i]=oa(o,r):e[i]=o},{allOwnKeys:n}),e),Qc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zc=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},eu=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&mo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},tu=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ru=e=>{if(!e)return null;if(Lt(e))return e;let t=e.length;if(!sa(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},nu=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mo(Uint8Array)),ou=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},iu=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},su=je("HTMLFormElement"),au=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),bi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),lu=je("RegExp"),ua=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Xt(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},cu=e=>{ua(e,(t,r)=>{if(Ae(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ae(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},uu=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Lt(e)?n(e):n(String(e).split(t)),r},du=()=>{},fu=(e,t)=>(e=+e,Number.isFinite(e)?e:t),un="abcdefghijklmnopqrstuvwxyz",_i="0123456789",da={DIGIT:_i,ALPHA:un,ALPHA_DIGIT:un+un.toUpperCase()+_i},pu=(e=16,t=da.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function hu(e){return!!(e&&Ae(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mu=e=>{const t=new Array(10),r=(n,o)=>{if(qr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Lt(n)?[]:{};return Xt(n,(s,a)=>{const c=r(s,o+1);!Wt(c)&&(i[a]=c)}),t[o]=void 0,i}}return n};return r(e,0)},yu=je("AsyncFunction"),gu=e=>e&&(qr(e)||Ae(e))&&Ae(e.then)&&Ae(e.catch),b={isArray:Lt,isArrayBuffer:ia,isBuffer:Vc,isFormData:Kc,isArrayBufferView:Mc,isString:Uc,isNumber:sa,isBoolean:Hc,isObject:qr,isPlainObject:ur,isUndefined:Wt,isDate:jc,isFile:zc,isBlob:Wc,isRegExp:lu,isFunction:Ae,isStream:Gc,isURLSearchParams:Jc,isTypedArray:nu,isFileList:qc,forEach:Xt,merge:$n,extend:Yc,trim:Xc,stripBOM:Qc,inherits:Zc,toFlatObject:eu,kindOf:zr,kindOfTest:je,endsWith:tu,toArray:ru,forEachEntry:ou,matchAll:iu,isHTMLForm:su,hasOwnProperty:bi,hasOwnProp:bi,reduceDescriptors:ua,freezeMethods:cu,toObjectSet:uu,toCamelCase:au,noop:du,toFiniteNumber:fu,findKey:aa,global:la,isContextDefined:ca,ALPHABET:da,generateString:pu,isSpecCompliantForm:hu,toJSONObject:mu,isAsyncFn:yu,isThenable:gu};function M(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}b.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const fa=M.prototype,pa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pa[e]={value:e}});Object.defineProperties(M,pa);Object.defineProperty(fa,"isAxiosError",{value:!0});M.from=(e,t,r,n,o,i)=>{const s=Object.create(fa);return b.toFlatObject(e,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),M.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const vu=null;function Pn(e){return b.isPlainObject(e)||b.isArray(e)}function ha(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function wi(e,t,r){return e?e.concat(t).map(function(o,i){return o=ha(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function bu(e){return b.isArray(e)&&!e.some(Pn)}const _u=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function Gr(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,x){return!b.isUndefined(x[h])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(b.isDate(f))return f.toISOString();if(!c&&b.isBlob(f))throw new M("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(f)||b.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,h,x){let g=f;if(f&&!x&&typeof f=="object"){if(b.endsWith(h,"{}"))h=n?h:h.slice(0,-2),f=JSON.stringify(f);else if(b.isArray(f)&&bu(f)||(b.isFileList(f)||b.endsWith(h,"[]"))&&(g=b.toArray(f)))return h=ha(h),g.forEach(function(C,L){!(b.isUndefined(C)||C===null)&&t.append(s===!0?wi([h],L,i):s===null?h:h+"[]",d(C))}),!1}return Pn(f)?!0:(t.append(wi(x,h,i),d(f)),!1)}const l=[],m=Object.assign(_u,{defaultVisitor:u,convertValue:d,isVisitable:Pn});function w(f,h){if(!b.isUndefined(f)){if(l.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));l.push(f),b.forEach(f,function(g,v){(!(b.isUndefined(g)||g===null)&&o.call(t,g,b.isString(v)?v.trim():v,h,m))===!0&&w(g,h?h.concat(v):[v])}),l.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return w(e),t}function xi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function yo(e,t){this._pairs=[],e&&Gr(e,this,t)}const ma=yo.prototype;ma.append=function(t,r){this._pairs.push([t,r])};ma.toString=function(t){const r=t?function(n){return t.call(this,n,xi)}:xi;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function wu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ya(e,t,r){if(!t)return e;const n=r&&r.encode||wu,o=r&&r.serialize;let i;if(o?i=o(t,r):i=b.isURLSearchParams(t)?t.toString():new yo(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class xu{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){b.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Si=xu,ga={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Su=typeof URLSearchParams<"u"?URLSearchParams:yo,Eu=typeof FormData<"u"?FormData:null,Cu=typeof Blob<"u"?Blob:null,ku={isBrowser:!0,classes:{URLSearchParams:Su,FormData:Eu,Blob:Cu},protocols:["http","https","file","blob","url","data"]},va=typeof window<"u"&&typeof document<"u",Ou=(e=>va&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Tu=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ru=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:va,hasStandardBrowserEnv:Ou,hasStandardBrowserWebWorkerEnv:Tu},Symbol.toStringTag,{value:"Module"})),Me={...Ru,...ku};function Au(e,t){return Gr(e,new Me.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Me.isNode&&b.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function $u(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pu(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function ba(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=r.length;return s=!s&&b.isArray(o)?o.length:s,c?(b.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!b.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&b.isArray(o[s])&&(o[s]=Pu(o[s])),!a)}if(b.isFormData(e)&&b.isFunction(e.entries)){const r={};return b.forEachEntry(e,(n,o)=>{t($u(n),o,r,0)}),r}return null}function Fu(e,t,r){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const go={transitional:ga,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=b.isObject(t);if(i&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return o&&o?JSON.stringify(ba(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Au(t,this.formSerializer).toString();if((a=b.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Gr(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Fu(t)):t}],transformResponse:[function(t){const r=this.transitional||go.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&b.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?M.from(a,M.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{go.headers[e]={}});const vo=go,Lu=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Nu=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
9
|
-
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&
|
|
10
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Ei]=this[Ei]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=It(s);n[a]||(Vu(o,s),n[a]=!0)}return b.isArray(t)?t.forEach(i):i(t),this}}Kr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(Kr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});b.freezeMethods(Kr);const Je=Kr;function fn(e,t){const r=this||vo,n=t||r,o=Je.from(n.headers);let i=n.data;return b.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function _a(e){return!!(e&&e.__CANCEL__)}function Yt(e,t,r){M.call(this,e??"canceled",M.ERR_CANCELED,t,r),this.name="CanceledError"}b.inherits(Yt,M,{__CANCEL__:!0});function Mu(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new M("Request failed with status code "+r.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Uu=Me.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];b.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),b.isString(n)&&s.push("path="+n),b.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Hu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ju(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wa(e,t){return e&&!Hu(t)?ju(e,t):t}const zu=Me.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=b.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function Wu(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qu(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=n[i];s||(s=d),r[o]=c,n[o]=d;let l=i,m=0;for(;l!==o;)m+=r[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-s<t)return;const w=u&&d-u;return w?Math.round(m*1e3/w):void 0}}function Ci(e,t){let r=0;const n=qu(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a),d=i<=s;r=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&d?(s-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Gu=typeof XMLHttpRequest<"u",Ku=Gu&&function(e){return new Promise(function(r,n){let o=e.data;const i=Je.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let u;if(b.isFormData(o)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[h,...x]=u?u.split(";").map(g=>g.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...x].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+x))}const m=wa(e.baseURL,e.url);l.open(e.method.toUpperCase(),ya(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function w(){if(!l)return;const h=Je.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),g={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:e,request:l};Mu(function(C){r(C),d()},function(C){n(C),d()},g),l=null}if("onloadend"in l?l.onloadend=w:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(w)},l.onabort=function(){l&&(n(new M("Request aborted",M.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new M("Network Error",M.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||ga;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),n(new M(x,g.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,l)),l=null},Me.hasStandardBrowserEnv&&(a&&b.isFunction(a)&&(a=a(e)),a||a!==!1&&zu(m))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&Uu.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&b.forEach(i.toJSON(),function(x,g){l.setRequestHeader(g,x)}),b.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&s!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Ci(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ci(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=h=>{l&&(n(!h||h.type?new Yt(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const f=Wu(m);if(f&&Me.protocols.indexOf(f)===-1){n(new M("Unsupported protocol "+f+":",M.ERR_BAD_REQUEST,e));return}l.send(o||null)})},Fn={http:vu,xhr:Ku};b.forEach(Fn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ki=e=>`- ${e}`,Ju=e=>b.isFunction(e)||e===null||e===!1,xa={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!Ju(r)&&(n=Fn[(s=String(r)).toLowerCase()],n===void 0))throw new M(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
11
|
-
`+i.map(ki).join(`
|
|
12
|
-
`):" "+ki(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Fn};function pn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yt(null,e)}function Oi(e){return pn(e),e.headers=Je.from(e.headers),e.data=fn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xa.getAdapter(e.adapter||vo.adapter)(e).then(function(n){return pn(e),n.data=fn.call(e,e.transformResponse,n),n.headers=Je.from(n.headers),n},function(n){return _a(n)||(pn(e),n&&n.response&&(n.response.data=fn.call(e,e.transformResponse,n.response),n.response.headers=Je.from(n.response.headers))),Promise.reject(n)})}const Ti=e=>e instanceof Je?e.toJSON():e;function At(e,t){t=t||{};const r={};function n(d,u,l){return b.isPlainObject(d)&&b.isPlainObject(u)?b.merge.call({caseless:l},d,u):b.isPlainObject(u)?b.merge({},u):b.isArray(u)?u.slice():u}function o(d,u,l){if(b.isUndefined(u)){if(!b.isUndefined(d))return n(void 0,d,l)}else return n(d,u,l)}function i(d,u){if(!b.isUndefined(u))return n(void 0,u)}function s(d,u){if(b.isUndefined(u)){if(!b.isUndefined(d))return n(void 0,d)}else return n(void 0,u)}function a(d,u,l){if(l in t)return n(d,u);if(l in e)return n(void 0,d)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(d,u)=>o(Ti(d),Ti(u),!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=c[u]||o,m=l(e[u],t[u],u);b.isUndefined(m)&&l!==a||(r[u]=m)}),r}const Sa="1.6.5",bo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ri={};bo.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Sa+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new M(o(s," has been removed"+(r?" in "+r:"")),M.ERR_DEPRECATED);return r&&!Ri[s]&&(Ri[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function Xu(e,t,r){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new M("option "+i+" must be "+c,M.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}const Ln={assertOptions:Xu,validators:bo},tt=Ln.validators;class Sr{constructor(t){this.defaults=t,this.interceptors={request:new Si,response:new Si}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=At(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Ln.assertOptions(n,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),o!=null&&(b.isFunction(o)?r.paramsSerializer={serialize:o}:Ln.assertOptions(o,{encode:tt.function,serialize:tt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&b.merge(i.common,i[r.method]);i&&b.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),r.headers=Je.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(c=c&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const d=[];this.interceptors.response.forEach(function(h){d.push(h.fulfilled,h.rejected)});let u,l=0,m;if(!c){const f=[Oi.bind(this),void 0];for(f.unshift.apply(f,a),f.push.apply(f,d),m=f.length,u=Promise.resolve(r);l<m;)u=u.then(f[l++],f[l++]);return u}m=a.length;let w=r;for(l=0;l<m;){const f=a[l++],h=a[l++];try{w=f(w)}catch(x){h.call(this,x);break}}try{u=Oi.call(this,w)}catch(f){return Promise.reject(f)}for(l=0,m=d.length;l<m;)u=u.then(d[l++],d[l++]);return u}getUri(t){t=At(this.defaults,t);const r=wa(t.baseURL,t.url);return ya(r,t.params,t.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(t){Sr.prototype[t]=function(r,n){return this.request(At(n||{},{method:t,url:r,data:(n||{}).data}))}});b.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,a){return this.request(At(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Sr.prototype[t]=r(),Sr.prototype[t+"Form"]=r(!0)});const fr=Sr;class _o{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Yt(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new _o(function(o){t=o}),cancel:t}}}const Yu=_o;function Qu(e){return function(r){return e.apply(null,r)}}function Zu(e){return b.isObject(e)&&e.isAxiosError===!0}const Nn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nn).forEach(([e,t])=>{Nn[t]=e});const ed=Nn;function Ea(e){const t=new fr(e),r=oa(fr.prototype.request,t);return b.extend(r,fr.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ea(At(e,o))},r}const ae=Ea(vo);ae.Axios=fr;ae.CanceledError=Yt;ae.CancelToken=Yu;ae.isCancel=_a;ae.VERSION=Sa;ae.toFormData=Gr;ae.AxiosError=M;ae.Cancel=ae.CanceledError;ae.all=function(t){return Promise.all(t)};ae.spread=Qu;ae.isAxiosError=Zu;ae.mergeConfig=At;ae.AxiosHeaders=Je;ae.formToJSON=e=>ba(b.isHTMLForm(e)?new FormData(e):e);ae.getAdapter=xa.getAdapter;ae.HttpStatusCode=ed;ae.default=ae;const wo=ae,td=(e,{onRequest:t,onRequestError:r,onResponse:n,onResponseError:o})=>{e.interceptors.request.use(async i=>(t&&await t(i),i),async i=>{throw r&&await r(i),i}),e.interceptors.response.use(async i=>(n&&await n(i),i),async i=>{throw o&&await o(i),i})},rd=({request:e})=>console.error("[API] Request error:",e),nd=({response:e})=>{if(e){const{status:t,request:r,data:n}=e;console.error("[API] Response error:",t,r.responseURL,JSON.stringify(n))}},Ca=async e=>{var t;try{const r=await((t=e.response)==null?void 0:t.data).text();return JSON.parse(r)}catch{return{}}};let Xe;const od="/salary-packaging/admin/v1.0/catche/receipt-batch",id=e=>`/salary-packaging/admin/v1.0/clients/${e.clientId}/reports/net-itc?year=${e.year}&month=${e.month}`,sd=e=>`/salary-packaging/admin/v1.0/client-groups/${e.groupCode}/reports/net-itc?year=${e.year}&month=${e.month}`,ad=async(e,t)=>{const r=e==null?void 0:e.replace(/\/?$/,"");return Xe=wo.create({baseURL:`${r}`,timeout:15e3,headers:{Authorization:`Bearer ${t}`}}),td(Xe,{onRequestError:rd,onResponseError:nd}),Xe},ld=async e=>{if(!Xe)throw new Error("Api has not been initialized");const t=new FormData;return t.append("source",e.source),t.append("transactionFile",e.transactionsFile),(await Xe.post(`${od}`,t,{responseType:"blob"})).data},cd=async e=>{if(!Xe)throw new Error("Api has not been initialized");return(await Xe.get(sd(e),{responseType:"blob"})).data},ud=async e=>{if(!Xe)throw new Error("Api has not been initialized");return(await Xe.get(id(e),{responseType:"blob"})).data},dd=at("button",{target:"ev353g40"})({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)"}},";"),xo=({as:e,download:t,href:r,children:n,onClick:o,type:i})=>S(dd,{as:e||"button",download:t,href:r,type:i||"button",onClick:o},n),ka=({blob:e,children:t,fileName:r})=>{const[n,o]=te();return re(()=>{const i=URL.createObjectURL(e);return o(i),()=>{URL.revokeObjectURL(i),o(void 0)}},[e]),S(xo,{as:"a",href:n??"#",download:r},t)},Oa=at("div",{target:"e7dk6uz0"})(()=>({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"}),";");var fd=Object.defineProperty,pd=(e,t,r)=>t in e?fd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hn=(e,t,r)=>(pd(e,typeof t!="symbol"?t+"":t,r),r);let hd=class{constructor(){hn(this,"current",this.detect()),hn(this,"handoffState","pending"),hn(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"}},gt=new hd,Ce=(e,t)=>{gt.isServer?re(e,t):bt(e,t)};function He(e){let t=q(e);return Ce(()=>{t.current=e},[e]),t}function Ta(e,t){let[r,n]=te(e),o=He(e);return Ce(()=>n(o.current),[o,n,...t]),r}function md(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function st(){let e=[],t={addEventListener(r,n,o,i){return r.addEventListener(n,o,i),t.add(()=>r.removeEventListener(n,o,i))},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 md(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let i=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:i})})},group(r){let n=st();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function $t(){let[e]=te(st);return re(()=>()=>e.dispose(),[e]),e}let H=function(e){let t=He(e);return D.useCallback((...r)=>t.current(...r),[t])};function yd(){let e=typeof document>"u";return"useSyncExternalStore"in yr?(t=>t.useSyncExternalStore)(yr)(()=>()=>{},()=>!1,()=>!e):!1}function So(){let e=yd(),[t,r]=te(gt.isHandoffComplete);return t&>.isHandoffComplete===!1&&r(!1),re(()=>{t!==!0&&r(!0)},[t]),re(()=>gt.handoff(),[]),e?!1:t}var Ai;let Jr=(Ai=D.useId)!=null?Ai:function(){let e=So(),[t,r]=D.useState(e?()=>gt.nextId():null);return Ce(()=>{t===null&&r(gt.nextId())},[t]),t!=null?""+t:void 0};function me(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,me),n}function Ra(e){return gt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let $i=["[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 gd=(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))(gd||{}),vd=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(vd||{}),bd=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(bd||{}),Eo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Eo||{});function Aa(e,t=0){var r;return e===((r=Ra(e))==null?void 0:r.body)?!1:me(t,{0(){return e.matches($i)},1(){let n=e;for(;n!==null;){if(n.matches($i))return!0;n=n.parentElement}return!1}})}var _d=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_d||{});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 wd(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function tr(e,t,r){let n=He(t);re(()=>{function o(i){n.current(i)}return document.addEventListener(e,o,r),()=>document.removeEventListener(e,o,r)},[e,r])}function xd(e,t,r){let n=He(t);re(()=>{function o(i){n.current(i)}return window.addEventListener(e,o,r),()=>window.removeEventListener(e,o,r)},[e,r])}function Sd(e,t,r=!0){let n=q(!1);re(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function o(s,a){if(!n.current||s.defaultPrevented)return;let c=a(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let d=function u(l){return typeof l=="function"?u(l()):Array.isArray(l)||l instanceof Set?l:[l]}(e);for(let u of d){if(u===null)continue;let l=u instanceof HTMLElement?u:u.current;if(l!=null&&l.contains(c)||s.composed&&s.composedPath().includes(l))return}return!Aa(c,Eo.Loose)&&c.tabIndex!==-1&&s.preventDefault(),t(s,c)}let i=q(null);tr("pointerdown",s=>{var a,c;n.current&&(i.current=((c=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:c[0])||s.target)},!0),tr("mousedown",s=>{var a,c;n.current&&(i.current=((c=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:c[0])||s.target)},!0),tr("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),tr("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),xd("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Pi(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 Ed(e,t){let[r,n]=te(()=>Pi(e));return Ce(()=>{n(Pi(e))},[e.type,e.as]),Ce(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let Cd=Symbol();function _t(...e){let t=q(e);re(()=>{t.current=e},[e]);let r=H(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Cd]))?void 0:r}function kd(e){throw new Error("Unexpected object: "+e)}var _e=(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))(_e||{});function Od(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=n??-1,i=(()=>{switch(e.focus){case 0:return r.findIndex(s=>!t.resolveDisabled(s));case 1:{let s=r.slice().reverse().findIndex((a,c,d)=>o!==-1&&d.length-c-1>=o?!1:!t.resolveDisabled(a));return s===-1?s:r.length-1-s}case 2:return r.findIndex((s,a)=>a<=o?!1:!t.resolveDisabled(s));case 3:{let s=r.slice().reverse().findIndex(a=>!t.resolveDisabled(a));return s===-1?s:r.length-1-s}case 4:return r.findIndex(s=>t.resolveId(s)===e.id);case 5:return null;default:kd(e)}})();return i===-1?n:i}function Er(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Cr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Cr||{}),ot=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ot||{});function lt({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:s}){let a=$a(t,e);if(i)return rr(a,r,n,s);let c=o??0;if(c&2){let{static:d=!1,...u}=a;if(d)return rr(u,r,n,s)}if(c&1){let{unmount:d=!0,...u}=a;return me(d?0:1,{0(){return null},1(){return rr({...u,hidden:!0,style:{display:"none"}},r,n,s)}})}return rr(a,r,n,s)}function rr(e,t={},r,n){let{as:o=r,children:i,refName:s="ref",...a}=mn(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},d=typeof i=="function"?i(t):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let u={};if(t){let l=!1,m=[];for(let[w,f]of Object.entries(t))typeof f=="boolean"&&(l=!0),f===!0&&m.push(w);l&&(u["data-headlessui-state"]=m.join(" "))}if(o===Y&&Object.keys(Dn(a)).length>0){if(!Pt(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(a).map(f=>` - ${f}`).join(`
|
|
8
|
+
*/var fe=typeof Symbol=="function"&&Symbol.for,eo=fe?Symbol.for("react.element"):60103,to=fe?Symbol.for("react.portal"):60106,Fr=fe?Symbol.for("react.fragment"):60107,Lr=fe?Symbol.for("react.strict_mode"):60108,Nr=fe?Symbol.for("react.profiler"):60114,Dr=fe?Symbol.for("react.provider"):60109,Ir=fe?Symbol.for("react.context"):60110,ro=fe?Symbol.for("react.async_mode"):60111,Br=fe?Symbol.for("react.concurrent_mode"):60111,Vr=fe?Symbol.for("react.forward_ref"):60112,Ur=fe?Symbol.for("react.suspense"):60113,Kl=fe?Symbol.for("react.suspense_list"):60120,Mr=fe?Symbol.for("react.memo"):60115,Hr=fe?Symbol.for("react.lazy"):60116,Jl=fe?Symbol.for("react.block"):60121,Yl=fe?Symbol.for("react.fundamental"):60117,Xl=fe?Symbol.for("react.responder"):60118,Ql=fe?Symbol.for("react.scope"):60119;function ke(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eo:switch(e=e.type,e){case ro:case Br:case Fr:case Nr:case Lr:case Ur:return e;default:switch(e=e&&e.$$typeof,e){case Ir:case Vr:case Hr:case Mr:case Dr:return e;default:return t}}case to:return t}}}function Ns(e){return ke(e)===Br}G.AsyncMode=ro;G.ConcurrentMode=Br;G.ContextConsumer=Ir;G.ContextProvider=Dr;G.Element=eo;G.ForwardRef=Vr;G.Fragment=Fr;G.Lazy=Hr;G.Memo=Mr;G.Portal=to;G.Profiler=Nr;G.StrictMode=Lr;G.Suspense=Ur;G.isAsyncMode=function(e){return Ns(e)||ke(e)===ro};G.isConcurrentMode=Ns;G.isContextConsumer=function(e){return ke(e)===Ir};G.isContextProvider=function(e){return ke(e)===Dr};G.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eo};G.isForwardRef=function(e){return ke(e)===Vr};G.isFragment=function(e){return ke(e)===Fr};G.isLazy=function(e){return ke(e)===Hr};G.isMemo=function(e){return ke(e)===Mr};G.isPortal=function(e){return ke(e)===to};G.isProfiler=function(e){return ke(e)===Nr};G.isStrictMode=function(e){return ke(e)===Lr};G.isSuspense=function(e){return ke(e)===Ur};G.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fr||e===Br||e===Nr||e===Lr||e===Ur||e===Kl||typeof e=="object"&&e!==null&&(e.$$typeof===Hr||e.$$typeof===Mr||e.$$typeof===Dr||e.$$typeof===Ir||e.$$typeof===Vr||e.$$typeof===Yl||e.$$typeof===Xl||e.$$typeof===Ql||e.$$typeof===Jl)};G.typeOf=ke;Ls.exports=G;var Zl=Ls.exports,Ds=Zl,ec={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Is={};Is[Ds.ForwardRef]=ec;Is[Ds.Memo]=tc;var rc=!0;function jr(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var no=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||rc===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},zr=function(t,r,n){no(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function nc(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 oc={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},ic=/[A-Z]|^ms/g,sc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bs=function(t){return t.charCodeAt(1)===45},ii=function(t){return t!=null&&typeof t!="boolean"},on=ks(function(e){return Bs(e)?e:e.replace(ic,"-$&").toLowerCase()}),si=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sc,function(n,o,i){return Ve={name:o,styles:i,next:Ve},o})}return oc[t]!==1&&!Bs(t)&&typeof r=="number"&&r!==0?r+"px":r};function zt(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 Ve={name:r.name,styles:r.styles,next:Ve},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Ve={name:n.name,styles:n.styles,next:Ve},n=n.next;var o=r.styles+";";return o}return ac(e,t,r)}case"function":{if(e!==void 0){var i=Ve,s=r(e);return Ve=i,zt(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function ac(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=zt(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":ii(s)&&(n+=on(i)+":"+si(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)ii(s[a])&&(n+=on(i)+":"+si(i,s[a])+";");else{var c=zt(e,t,s);switch(i){case"animation":case"animationName":{n+=on(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var ai=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ve,yt=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Ve=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=zt(n,r,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=zt(n,r,t[a]),o&&(i+=s[a]);ai.lastIndex=0;for(var c="",u;(u=ai.exec(i))!==null;)c+="-"+u[1];var d=nc(i)+c;return{name:d,styles:i,next:Ve}},lc=function(t){return t()},Vs=gr["useInsertionEffect"]?gr["useInsertionEffect"]:!1,Us=Vs||lc,li=Vs||bt,oo={}.hasOwnProperty,Ms=Qe(typeof HTMLElement<"u"?Zn({key:"css"}):null),cc=Ms.Provider,io=function(t){return Ze(function(r,n){var o=$e(Ms);return t(r,o,n)})},so=Qe({}),Rn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",uc=function(t,r){var n={};for(var o in r)oo.call(r,o)&&(n[o]=r[o]);return n[Rn]=t,n},dc=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return no(r,n,o),Us(function(){return zr(r,n,o)}),null},fc=io(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Rn],i=[n],s="";typeof e.className=="string"?s=jr(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=yt(i,void 0,$e(so));s+=t.key+"-"+a.name;var c={};for(var u in e)oo.call(e,u)&&u!=="css"&&u!==Rn&&(c[u]=e[u]);return c.ref=r,c.className=s,W(X,null,W(dc,{cache:t,serialized:a,isStringTag:typeof o=="string"}),W(o,c))}),pc=fc,S=function(t,r){var n=arguments;if(r==null||!oo.call(r,"css"))return W.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=pc,i[1]=uc(t,r);for(var s=2;s<o;s++)i[s]=n[s];return W.apply(null,i)},sn=io(function(e,t){var r=e.styles,n=yt([r],void 0,$e(so)),o=q();return li(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),li(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(n.next!==void 0&&zr(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function ao(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yt(t)}var hc=bl,mc=function(t){return t!=="theme"},ci=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hc:mc},ui=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},yc=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return no(r,n,o),Us(function(){return zr(r,n,o)}),null},at=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=ui(t,r,n),c=a||ci(o),u=!c("as");return function(){var d=arguments,l=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&l.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)l.push.apply(l,d);else{l.push(d[0][0]);for(var h=d.length,g=1;g<h;g++)l.push(d[g],d[0][g])}var f=io(function(m,x,v){var w=u&&m.as||o,O="",L=[],A=m;if(m.theme==null){A={};for(var F in m)A[F]=m[F];A.theme=$e(so)}typeof m.className=="string"?O=jr(x.registered,L,m.className):m.className!=null&&(O=m.className+" ");var R=yt(l.concat(L),x.registered,A);O+=x.key+"-"+R.name,s!==void 0&&(O+=" "+s);var B=u&&a===void 0?ci(w):c,V={};for(var Z in m)u&&Z==="as"||B(Z)&&(V[Z]=m[Z]);return V.className=O,V.ref=v,W(X,null,W(yc,{cache:x,serialized:R,isStringTag:typeof w=="string"}),W(w,V))});return f.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=l,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+s}}),f.withComponent=function(m,x){return e(m,kn({},r,x,{shouldForwardProp:ui(f,x,!0)})).apply(void 0,l)},f}};const gc=at("div",{target:"e6o9g7s0"})("input[type='file']::-webkit-file-upload-button,input[type='file']::file-selector-button{",{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)"}},";margin-inline-start:-1rem;margin-inline-end:1rem;}"),vc=Ze(({onChange:e,error:t,inputLabel:r})=>{const n=o=>{const i=o.target;e(i.files&&i.files[0]||void 0)};return S(gc,null,S("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"},r),S("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}),S("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"}},t==null?void 0:t.message))});var Kt=e=>e.type==="checkbox",Ct=e=>e instanceof Date,be=e=>e==null;const Hs=e=>typeof e=="object";var ue=e=>!be(e)&&!Array.isArray(e)&&Hs(e)&&!Ct(e),js=e=>ue(e)&&e.target?Kt(e.target)?e.target.checked:e.target.value:e,bc=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,zs=(e,t)=>e.has(bc(t)),_c=e=>{const t=e.constructor&&e.constructor.prototype;return ue(t)&&t.hasOwnProperty("isPrototypeOf")},lo=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Le(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(!(lo&&(e instanceof Blob||e instanceof FileList))&&(r||ue(e)))if(t=r?[]:{},!r&&!_c(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Le(e[n]));else return e;return t}var Jt=e=>Array.isArray(e)?e.filter(Boolean):[],oe=e=>e===void 0,k=(e,t,r)=>{if(!t||!ue(e))return r;const n=Jt(t.split(/[,[\].]+?/)).reduce((o,i)=>be(o)?o:o[i],e);return oe(n)||n===e?oe(e[t])?r:e[t]:n};const br={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},qe={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wc=D.createContext(null),co=()=>D.useContext(wc);var Ws=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Ne.all&&(t._proxyFormState[s]=!n||Ne.all),r&&(r[s]=!0),e[s]}});return o},Ae=e=>ue(e)&&!Object.keys(e).length,qs=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return Ae(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!n||Ne.all))},lr=e=>Array.isArray(e)?e:[e],Gs=(e,t,r)=>r&&t?e===t||Array.isArray(e)&&e.some(n=>n&&r&&n===t):!e||!t||e===t||lr(e).some(n=>n&&(n.startsWith(t)||t.startsWith(n)));function uo(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 xc(e){const t=co(),{control:r=t.control,disabled:n,name:o,exact:i}=e||{},[s,a]=D.useState(r._formState),c=D.useRef(!0),u=D.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=D.useRef(o);return d.current=o,uo({disabled:n,next:l=>c.current&&Gs(d.current,l.name,i)&&qs(l,u.current,r._updateFormState)&&a({...r._formState,...l}),subject:r._subjects.state}),D.useEffect(()=>(c.current=!0,u.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),Ws(s,r,u.current,!1)}var Ue=e=>typeof e=="string",Ks=(e,t,r,n,o)=>Ue(e)?(n&&t.watch.add(e),k(r,e,o)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),k(r,i))):(n&&(t.watchAll=!0),r);function Sc(e){const t=co(),{control:r=t.control,name:n,defaultValue:o,disabled:i,exact:s}=e||{},a=D.useRef(n);a.current=n,uo({disabled:i,subject:r._subjects.values,next:d=>{Gs(a.current,d.name,s)&&u(Le(Ks(a.current,r._names,d.values||r._formValues,!1,o)))}});const[c,u]=D.useState(r._getWatch(n,o));return D.useEffect(()=>r._removeUnmounted()),c}var fo=e=>/^\w*$/.test(e),Js=e=>Jt(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Y(e,t,r){let n=-1;const o=fo(t)?[t]:Js(t),i=o.length,s=i-1;for(;++n<i;){const a=o[n];let c=r;if(n!==s){const u=e[a];c=ue(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}e[a]=c,e=e[a]}return e}function Ec(e){const t=co(),{name:r,disabled:n,control:o=t.control,shouldUnregister:i}=e,s=zs(o._names.array,r),a=Sc({control:o,name:r,defaultValue:k(o._formValues,r,k(o._defaultValues,r,e.defaultValue)),exact:!0}),c=xc({control:o,name:r}),u=D.useRef(o.register(r,{...e.rules,value:a}));return u.current=o.register(r,e.rules),D.useEffect(()=>{const d=o._options.shouldUnregister||i,l=(h,g)=>{const f=k(o._fields,h);f&&(f._f.mount=g)};if(l(r,!0),d){const h=Le(k(o._options.defaultValues,r));Y(o._defaultValues,r,h),oe(k(o._formValues,r))&&Y(o._formValues,r,h)}return()=>{(s?d&&!o._state.action:d)?o.unregister(r):l(r,!1)}},[r,o,s,i]),D.useEffect(()=>{o._updateDisabledField({disabled:n,fields:o._fields,name:r})},[n,r,o]),{field:{name:r,value:a,disabled:n,onChange:D.useCallback(d=>u.current.onChange({target:{value:js(d),name:r},type:br.CHANGE}),[r]),onBlur:D.useCallback(()=>u.current.onBlur({target:{value:k(o._formValues,r),name:r},type:br.BLUR}),[r,o]),ref:d=>{const l=k(o._fields,r);l&&d&&(l._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:h=>d.setCustomValidity(h),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)},error:{enumerable:!0,get:()=>k(c.errors,r)}})}}const dt=e=>e.render(Ec(e));var Cc=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};const $n=(e,t,r)=>{for(const n of r||Object.keys(e)){const o=k(e,n);if(o){const{_f:i,...s}=o;if(i&&t(i.name)){if(i.ref.focus){i.ref.focus();break}else if(i.refs&&i.refs[0].focus){i.refs[0].focus();break}}else ue(s)&&$n(s,t)}}};var di=e=>({isOnSubmit:!e||e===Ne.onSubmit,isOnBlur:e===Ne.onBlur,isOnChange:e===Ne.onChange,isOnAll:e===Ne.all,isOnTouch:e===Ne.onTouched}),fi=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length)))),kc=(e,t,r)=>{const n=Jt(k(e,r));return Y(n,"root",t[r]),Y(e,r,n),e},ht=e=>typeof e=="boolean",po=e=>e.type==="file",nt=e=>typeof e=="function",_r=e=>{if(!lo)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},cr=e=>Ue(e),ho=e=>e.type==="radio",wr=e=>e instanceof RegExp;const pi={value:!1,isValid:!1},hi={value:!0,isValid:!0};var Ys=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&&!oe(e[0].attributes.value)?oe(e[0].value)||e[0].value===""?hi:{value:e[0].value,isValid:!0}:hi:pi}return pi};const mi={isValid:!1,value:null};var Xs=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,mi):mi;function yi(e,t,r="validate"){if(cr(e)||Array.isArray(e)&&e.every(cr)||ht(e)&&!e)return{type:r,message:cr(e)?e:"",ref:t}}var St=e=>ue(e)&&!wr(e)?e:{value:e,message:""},gi=async(e,t,r,n,o)=>{const{ref:i,refs:s,required:a,maxLength:c,minLength:u,min:d,max:l,pattern:h,validate:g,name:f,valueAsNumber:m,mount:x,disabled:v}=e._f,w=k(t,f);if(!x||v)return{};const O=s?s[0]:i,L=I=>{n&&O.reportValidity&&(O.setCustomValidity(ht(I)?"":I||""),O.reportValidity())},A={},F=ho(i),R=Kt(i),B=F||R,V=(m||po(i))&&oe(i.value)&&oe(w)||_r(i)&&i.value===""||w===""||Array.isArray(w)&&!w.length,Z=Cc.bind(null,f,r,A),ve=(I,N,Q,le=qe.maxLength,ye=qe.minLength)=>{const ie=I?N:Q;A[f]={type:I?le:ye,message:ie,ref:i,...Z(I?le:ye,ie)}};if(o?!Array.isArray(w)||!w.length:a&&(!B&&(V||be(w))||ht(w)&&!w||R&&!Ys(s).isValid||F&&!Xs(s).isValid)){const{value:I,message:N}=cr(a)?{value:!!a,message:a}:St(a);if(I&&(A[f]={type:qe.required,message:N,ref:O,...Z(qe.required,N)},!r))return L(N),A}if(!V&&(!be(d)||!be(l))){let I,N;const Q=St(l),le=St(d);if(!be(w)&&!isNaN(w)){const ye=i.valueAsNumber||w&&+w;be(Q.value)||(I=ye>Q.value),be(le.value)||(N=ye<le.value)}else{const ye=i.valueAsDate||new Date(w),ie=Oe=>new Date(new Date().toDateString()+" "+Oe),Pe=i.type=="time",ze=i.type=="week";Ue(Q.value)&&w&&(I=Pe?ie(w)>ie(Q.value):ze?w>Q.value:ye>new Date(Q.value)),Ue(le.value)&&w&&(N=Pe?ie(w)<ie(le.value):ze?w<le.value:ye<new Date(le.value))}if((I||N)&&(ve(!!I,Q.message,le.message,qe.max,qe.min),!r))return L(A[f].message),A}if((c||u)&&!V&&(Ue(w)||o&&Array.isArray(w))){const I=St(c),N=St(u),Q=!be(I.value)&&w.length>+I.value,le=!be(N.value)&&w.length<+N.value;if((Q||le)&&(ve(Q,I.message,N.message),!r))return L(A[f].message),A}if(h&&!V&&Ue(w)){const{value:I,message:N}=St(h);if(wr(I)&&!w.match(I)&&(A[f]={type:qe.pattern,message:N,ref:i,...Z(qe.pattern,N)},!r))return L(N),A}if(g){if(nt(g)){const I=await g(w,t),N=yi(I,O);if(N&&(A[f]={...N,...Z(qe.validate,N.message)},!r))return L(N.message),A}else if(ue(g)){let I={};for(const N in g){if(!Ae(I)&&!r)break;const Q=yi(await g[N](w,t),O,N);Q&&(I={...Q,...Z(N,Q.message)},L(Q.message),r&&(A[f]=I))}if(!Ae(I)&&(A[f]={ref:O,...I},!r))return A}}return L(!0),A};function Oc(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=oe(e)?n++:e[t[n++]];return e}function Tc(e){for(const t in e)if(e.hasOwnProperty(t)&&!oe(e[t]))return!1;return!0}function pe(e,t){const r=Array.isArray(t)?t:fo(t)?[t]:Js(t),n=r.length===1?e:Oc(e,r),o=r.length-1,i=r[o];return n&&delete n[i],o!==0&&(ue(n)&&Ae(n)||Array.isArray(n)&&Tc(n))&&pe(e,r.slice(0,-1)),e}function an(){let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}}var xr=e=>be(e)||!Hs(e);function mt(e,t){if(xr(e)||xr(t))return e===t;if(Ct(e)&&Ct(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const i=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const s=t[o];if(Ct(i)&&Ct(s)||ue(i)&&ue(s)||Array.isArray(i)&&Array.isArray(s)?!mt(i,s):i!==s)return!1}}return!0}var Qs=e=>e.type==="select-multiple",Ac=e=>ho(e)||Kt(e),ln=e=>_r(e)&&e.isConnected,Zs=e=>{for(const t in e)if(nt(e[t]))return!0;return!1};function Sr(e,t={}){const r=Array.isArray(e);if(ue(e)||r)for(const n in e)Array.isArray(e[n])||ue(e[n])&&!Zs(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Sr(e[n],t[n])):be(e[n])||(t[n]=!0);return t}function ea(e,t,r){const n=Array.isArray(e);if(ue(e)||n)for(const o in e)Array.isArray(e[o])||ue(e[o])&&!Zs(e[o])?oe(t)||xr(r[o])?r[o]=Array.isArray(e[o])?Sr(e[o],[]):{...Sr(e[o])}:ea(e[o],be(t)?{}:t[o],r[o]):r[o]=!mt(e[o],t[o]);return r}var cn=(e,t)=>ea(e,t,Sr(t)),ta=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>oe(e)?e:t?e===""?NaN:e&&+e:r&&Ue(e)?new Date(e):n?n(e):e;function un(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return po(t)?t.files:ho(t)?Xs(e.refs).value:Qs(t)?[...t.selectedOptions].map(({value:r})=>r):Kt(t)?Ys(e.refs).value:ta(oe(t.value)?e.ref.value:t.value,e)}var Rc=(e,t,r,n)=>{const o={};for(const i of e){const s=k(t,i);s&&Y(o,i,s._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Dt=e=>oe(e)?e:wr(e)?e.source:ue(e)?wr(e.value)?e.value.source:e.value:e,$c=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function vi(e,t,r){const n=k(e,r);if(n||fo(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const i=o.join("."),s=k(t,i),a=k(e,i);if(s&&!Array.isArray(s)&&r!==i)return{name:r};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:r}}var Pc=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Fc=(e,t)=>!Jt(k(e,t)).length&&pe(e,t);const Lc={mode:Ne.onSubmit,reValidateMode:Ne.onChange,shouldFocusError:!0};function Nc(e={},t){let r={...Lc,...e},n={submitCount:0,isDirty:!1,isLoading:nt(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},i=ue(r.defaultValues)||ue(r.values)?Le(r.defaultValues||r.values)||{}:{},s=r.shouldUnregister?{}:Le(i),a={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,d=0;const l={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:an(),array:an(),state:an()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,f=di(r.mode),m=di(r.reValidateMode),x=r.criteriaMode===Ne.all,v=p=>y=>{clearTimeout(d),d=setTimeout(p,y)},w=async p=>{if(l.isValid||p){const y=r.resolver?Ae((await V()).errors):await ve(o,!0);y!==n.isValid&&h.state.next({isValid:y})}},O=p=>l.isValidating&&h.state.next({isValidating:p}),L=(p,y=[],_,T,C=!0,E=!0)=>{if(T&&_){if(a.action=!0,E&&Array.isArray(k(o,p))){const P=_(k(o,p),T.argA,T.argB);C&&Y(o,p,P)}if(E&&Array.isArray(k(n.errors,p))){const P=_(k(n.errors,p),T.argA,T.argB);C&&Y(n.errors,p,P),Fc(n.errors,p)}if(l.touchedFields&&E&&Array.isArray(k(n.touchedFields,p))){const P=_(k(n.touchedFields,p),T.argA,T.argB);C&&Y(n.touchedFields,p,P)}l.dirtyFields&&(n.dirtyFields=cn(i,s)),h.state.next({name:p,isDirty:N(p,y),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Y(s,p,y)},A=(p,y)=>{Y(n.errors,p,y),h.state.next({errors:n.errors})},F=(p,y,_,T)=>{const C=k(o,p);if(C){const E=k(s,p,oe(_)?k(i,p):_);oe(E)||T&&T.defaultChecked||y?Y(s,p,y?E:un(C._f)):ye(p,E),a.mount&&w()}},R=(p,y,_,T,C)=>{let E=!1,P=!1;const ee={name:p};if(!_||T){l.isDirty&&(P=n.isDirty,n.isDirty=ee.isDirty=N(),E=P!==ee.isDirty);const ne=mt(k(i,p),y);P=k(n.dirtyFields,p),ne?pe(n.dirtyFields,p):Y(n.dirtyFields,p,!0),ee.dirtyFields=n.dirtyFields,E=E||l.dirtyFields&&P!==!ne}if(_){const ne=k(n.touchedFields,p);ne||(Y(n.touchedFields,p,_),ee.touchedFields=n.touchedFields,E=E||l.touchedFields&&ne!==_)}return E&&C&&h.state.next(ee),E?ee:{}},B=(p,y,_,T)=>{const C=k(n.errors,p),E=l.isValid&&ht(y)&&n.isValid!==y;if(e.delayError&&_?(u=v(()=>A(p,_)),u(e.delayError)):(clearTimeout(d),u=null,_?Y(n.errors,p,_):pe(n.errors,p)),(_?!mt(C,_):C)||!Ae(T)||E){const P={...T,...E&&ht(y)?{isValid:y}:{},errors:n.errors,name:p};n={...n,...P},h.state.next(P)}O(!1)},V=async p=>r.resolver(s,r.context,Rc(p||c.mount,o,r.criteriaMode,r.shouldUseNativeValidation)),Z=async p=>{const{errors:y}=await V(p);if(p)for(const _ of p){const T=k(y,_);T?Y(n.errors,_,T):pe(n.errors,_)}else n.errors=y;return y},ve=async(p,y,_={valid:!0})=>{for(const T in p){const C=p[T];if(C){const{_f:E,...P}=C;if(E){const ee=c.array.has(E.name),ne=await gi(C,s,x,r.shouldUseNativeValidation&&!y,ee);if(ne[E.name]&&(_.valid=!1,y))break;!y&&(k(ne,E.name)?ee?kc(n.errors,ne,E.name):Y(n.errors,E.name,ne[E.name]):pe(n.errors,E.name))}P&&await ve(P,y,_)}}return _.valid},I=()=>{for(const p of c.unMount){const y=k(o,p);y&&(y._f.refs?y._f.refs.every(_=>!ln(_)):!ln(y._f.ref))&&ce(p)}c.unMount=new Set},N=(p,y)=>(p&&y&&Y(s,p,y),!mt(Fe(),i)),Q=(p,y,_)=>Ks(p,c,{...a.mount?s:oe(y)?i:Ue(p)?{[p]:y}:y},_,y),le=p=>Jt(k(a.mount?s:i,p,e.shouldUnregister?k(i,p,[]):[])),ye=(p,y,_={})=>{const T=k(o,p);let C=y;if(T){const E=T._f;E&&(!E.disabled&&Y(s,p,ta(y,E)),C=_r(E.ref)&&be(y)?"":y,Qs(E.ref)?[...E.ref.options].forEach(P=>P.selected=C.includes(P.value)):E.refs?Kt(E.ref)?E.refs.length>1?E.refs.forEach(P=>(!P.defaultChecked||!P.disabled)&&(P.checked=Array.isArray(C)?!!C.find(ee=>ee===P.value):C===P.value)):E.refs[0]&&(E.refs[0].checked=!!C):E.refs.forEach(P=>P.checked=P.value===C):po(E.ref)?E.ref.value="":(E.ref.value=C,E.ref.type||h.values.next({name:p,values:{...s}})))}(_.shouldDirty||_.shouldTouch)&&R(p,C,_.shouldTouch,_.shouldDirty,!0),_.shouldValidate&&Oe(p)},ie=(p,y,_)=>{for(const T in y){const C=y[T],E=`${p}.${T}`,P=k(o,E);(c.array.has(p)||!xr(C)||P&&!P._f)&&!Ct(C)?ie(E,C,_):ye(E,C,_)}},Pe=(p,y,_={})=>{const T=k(o,p),C=c.array.has(p),E=Le(y);Y(s,p,E),C?(h.array.next({name:p,values:{...s}}),(l.isDirty||l.dirtyFields)&&_.shouldDirty&&h.state.next({name:p,dirtyFields:cn(i,s),isDirty:N(p,E)})):T&&!T._f&&!be(E)?ie(p,E,_):ye(p,E,_),fi(p,c)&&h.state.next({...n}),h.values.next({name:p,values:{...s}}),!a.mount&&t()},ze=async p=>{const y=p.target;let _=y.name,T=!0;const C=k(o,_),E=()=>y.type?un(C._f):js(p);if(C){let P,ee;const ne=E(),xt=p.type===br.BLUR||p.type===br.FOCUS_OUT,Ha=!$c(C._f)&&!r.resolver&&!k(n.errors,_)&&!C._f.deps||Pc(xt,k(n.touchedFields,_),n.isSubmitted,m,f),en=fi(_,c,xt);Y(s,_,ne),xt?(C._f.onBlur&&C._f.onBlur(p),u&&u(0)):C._f.onChange&&C._f.onChange(p);const tn=R(_,ne,xt,!1),ja=!Ae(tn)||en;if(!xt&&h.values.next({name:_,type:p.type,values:{...s}}),Ha)return l.isValid&&w(),ja&&h.state.next({name:_,...en?{}:tn});if(!xt&&en&&h.state.next({...n}),O(!0),r.resolver){const{errors:Lo}=await V([_]),za=vi(n.errors,o,_),No=vi(Lo,o,za.name||_);P=No.error,_=No.name,ee=Ae(Lo)}else P=(await gi(C,s,x,r.shouldUseNativeValidation))[_],T=isNaN(ne)||ne===k(s,_,ne),T&&(P?ee=!1:l.isValid&&(ee=await ve(o,!0)));T&&(C._f.deps&&Oe(C._f.deps),B(_,ee,P,tn))}},Oe=async(p,y={})=>{let _,T;const C=lr(p);if(O(!0),r.resolver){const E=await Z(oe(p)?p:C);_=Ae(E),T=p?!C.some(P=>k(E,P)):_}else p?(T=(await Promise.all(C.map(async E=>{const P=k(o,E);return await ve(P&&P._f?{[E]:P}:P)}))).every(Boolean),!(!T&&!n.isValid)&&w()):T=_=await ve(o);return h.state.next({...!Ue(p)||l.isValid&&_!==n.isValid?{}:{name:p},...r.resolver||!p?{isValid:_}:{},errors:n.errors,isValidating:!1}),y.shouldFocus&&!T&&$n(o,E=>E&&k(n.errors,E),p?C:c.mount),T},Fe=p=>{const y={...i,...a.mount?s:{}};return oe(p)?y:Ue(p)?k(y,p):p.map(_=>k(y,_))},We=(p,y)=>({invalid:!!k((y||n).errors,p),isDirty:!!k((y||n).dirtyFields,p),isTouched:!!k((y||n).touchedFields,p),error:k((y||n).errors,p)}),Te=p=>{p&&lr(p).forEach(y=>pe(n.errors,y)),h.state.next({errors:p?n.errors:{}})},U=(p,y,_)=>{const T=(k(o,p,{_f:{}})._f||{}).ref;Y(n.errors,p,{...y,ref:T}),h.state.next({name:p,errors:n.errors,isValid:!1}),_&&_.shouldFocus&&T&&T.focus&&T.focus()},J=(p,y)=>nt(p)?h.values.subscribe({next:_=>p(Q(void 0,y),_)}):Q(p,y,!0),ce=(p,y={})=>{for(const _ of p?lr(p):c.mount)c.mount.delete(_),c.array.delete(_),y.keepValue||(pe(o,_),pe(s,_)),!y.keepError&&pe(n.errors,_),!y.keepDirty&&pe(n.dirtyFields,_),!y.keepTouched&&pe(n.touchedFields,_),!r.shouldUnregister&&!y.keepDefaultValue&&pe(i,_);h.values.next({values:{...s}}),h.state.next({...n,...y.keepDirty?{isDirty:N()}:{}}),!y.keepIsValid&&w()},ct=({disabled:p,name:y,field:_,fields:T})=>{if(ht(p)){const C=p?void 0:k(s,y,un(_?_._f:k(T,y)._f));Y(s,y,C),R(y,C,!1,!1,!0)}},wt=(p,y={})=>{let _=k(o,p);const T=ht(y.disabled);return Y(o,p,{..._||{},_f:{..._&&_._f?_._f:{ref:{name:p}},name:p,mount:!0,...y}}),c.mount.add(p),_?ct({field:_,disabled:y.disabled,name:p}):F(p,!0,y.value),{...T?{disabled:y.disabled}:{},...r.progressive?{required:!!y.required,min:Dt(y.min),max:Dt(y.max),minLength:Dt(y.minLength),maxLength:Dt(y.maxLength),pattern:Dt(y.pattern)}:{},name:p,onChange:ze,onBlur:ze,ref:C=>{if(C){wt(p,y),_=k(o,p);const E=oe(C.value)&&C.querySelectorAll&&C.querySelectorAll("input,select,textarea")[0]||C,P=Ac(E),ee=_._f.refs||[];if(P?ee.find(ne=>ne===E):E===_._f.ref)return;Y(o,p,{_f:{..._._f,...P?{refs:[...ee.filter(ln),E,...Array.isArray(k(i,p))?[{}]:[]],ref:{type:E.type,name:p}}:{ref:E}}}),F(p,!1,void 0,E)}else _=k(o,p,{}),_._f&&(_._f.mount=!1),(r.shouldUnregister||y.shouldUnregister)&&!(zs(c.array,p)&&a.action)&&c.unMount.add(p)}}},Ro=()=>r.shouldFocusError&&$n(o,p=>p&&k(n.errors,p),c.mount),$o=(p,y)=>async _=>{_&&(_.preventDefault&&_.preventDefault(),_.persist&&_.persist());let T=Le(s);if(h.state.next({isSubmitting:!0}),r.resolver){const{errors:C,values:E}=await V();n.errors=C,T=E}else await ve(o);pe(n.errors,"root"),Ae(n.errors)?(h.state.next({errors:{}}),await p(T,_)):(y&&await y({...n.errors},_),Ro(),setTimeout(Ro)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ae(n.errors),submitCount:n.submitCount+1,errors:n.errors})},Ma=(p,y={})=>{k(o,p)&&(oe(y.defaultValue)?Pe(p,k(i,p)):(Pe(p,y.defaultValue),Y(i,p,y.defaultValue)),y.keepTouched||pe(n.touchedFields,p),y.keepDirty||(pe(n.dirtyFields,p),n.isDirty=y.defaultValue?N(p,k(i,p)):N()),y.keepError||(pe(n.errors,p),l.isValid&&w()),h.state.next({...n}))},Po=(p,y={})=>{const _=p?Le(p):i,T=Le(_),C=p&&!Ae(p)?T:i;if(y.keepDefaultValues||(i=_),!y.keepValues){if(y.keepDirtyValues||g)for(const E of c.mount)k(n.dirtyFields,E)?Y(C,E,k(s,E)):Pe(E,k(C,E));else{if(lo&&oe(p))for(const E of c.mount){const P=k(o,E);if(P&&P._f){const ee=Array.isArray(P._f.refs)?P._f.refs[0]:P._f.ref;if(_r(ee)){const ne=ee.closest("form");if(ne){ne.reset();break}}}}o={}}s=e.shouldUnregister?y.keepDefaultValues?Le(i):{}:Le(C),h.array.next({values:{...C}}),h.values.next({values:{...C}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&t(),a.mount=!l.isValid||!!y.keepIsValid,a.watch=!!e.shouldUnregister,h.state.next({submitCount:y.keepSubmitCount?n.submitCount:0,isDirty:y.keepDirty?n.isDirty:!!(y.keepDefaultValues&&!mt(p,i)),isSubmitted:y.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:y.keepDirtyValues?n.dirtyFields:y.keepDefaultValues&&p?cn(i,p):{},touchedFields:y.keepTouched?n.touchedFields:{},errors:y.keepErrors?n.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},Fo=(p,y)=>Po(nt(p)?p(s):p,y);return{control:{register:wt,unregister:ce,getFieldState:We,handleSubmit:$o,setError:U,_executeSchema:V,_getWatch:Q,_getDirty:N,_updateValid:w,_removeUnmounted:I,_updateFieldArray:L,_updateDisabledField:ct,_getFieldArray:le,_reset:Po,_resetDefaultValues:()=>nt(r.defaultValues)&&r.defaultValues().then(p=>{Fo(p,r.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:p=>{n={...n,...p}},_subjects:h,_proxyFormState:l,get _fields(){return o},get _formValues(){return s},get _state(){return a},set _state(p){a=p},get _defaultValues(){return i},get _names(){return c},set _names(p){c=p},get _formState(){return n},set _formState(p){n=p},get _options(){return r},set _options(p){r={...r,...p}}},trigger:Oe,register:wt,handleSubmit:$o,watch:J,setValue:Pe,getValues:Fe,reset:Fo,resetField:Ma,clearErrors:Te,unregister:ce,setError:U,setFocus:(p,y={})=>{const _=k(o,p),T=_&&_._f;if(T){const C=T.refs?T.refs[0]:T.ref;C.focus&&(C.focus(),y.shouldSelect&&C.select())}},getFieldState:We}}function ra(e={}){const t=D.useRef(),r=D.useRef(),[n,o]=D.useState({isDirty:!1,isValidating:!1,isLoading:nt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:nt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Nc(e,()=>o(s=>({...s}))),formState:n});const i=t.current.control;return i._options=e,uo({subject:i._subjects.state,next:s=>{qs(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),D.useEffect(()=>{e.values&&!mt(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values):i._resetDefaultValues()},[e.values,i]),D.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=Ws(n,i),t.current}function na(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dc}=Object.prototype,{getPrototypeOf:mo}=Object,Wr=(e=>t=>{const r=Dc.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),je=e=>(e=e.toLowerCase(),t=>Wr(t)===e),qr=e=>t=>typeof t===e,{isArray:Lt}=Array,Wt=qr("undefined");function Ic(e){return e!==null&&!Wt(e)&&e.constructor!==null&&!Wt(e.constructor)&&Re(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oa=je("ArrayBuffer");function Bc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&oa(e.buffer),t}const Vc=qr("string"),Re=qr("function"),ia=qr("number"),Gr=e=>e!==null&&typeof e=="object",Uc=e=>e===!0||e===!1,ur=e=>{if(Wr(e)!=="object")return!1;const t=mo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Mc=je("Date"),Hc=je("File"),jc=je("Blob"),zc=je("FileList"),Wc=e=>Gr(e)&&Re(e.pipe),qc=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Re(e.append)&&((t=Wr(e))==="formdata"||t==="object"&&Re(e.toString)&&e.toString()==="[object FormData]"))},Gc=je("URLSearchParams"),Kc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Lt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function sa(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const aa=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),la=e=>!Wt(e)&&e!==aa;function Pn(){const{caseless:e}=la(this)&&this||{},t={},r=(n,o)=>{const i=e&&sa(t,o)||o;ur(t[i])&&ur(n)?t[i]=Pn(t[i],n):ur(n)?t[i]=Pn({},n):Lt(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Yt(arguments[n],r);return t}const Jc=(e,t,r,{allOwnKeys:n}={})=>(Yt(t,(o,i)=>{r&&Re(o)?e[i]=na(o,r):e[i]=o},{allOwnKeys:n}),e),Yc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xc=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Qc=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&mo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Zc=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},eu=e=>{if(!e)return null;if(Lt(e))return e;let t=e.length;if(!ia(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},tu=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mo(Uint8Array)),ru=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},nu=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ou=je("HTMLFormElement"),iu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),bi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),su=je("RegExp"),ca=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Yt(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},au=e=>{ca(e,(t,r)=>{if(Re(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Re(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},lu=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Lt(e)?n(e):n(String(e).split(t)),r},cu=()=>{},uu=(e,t)=>(e=+e,Number.isFinite(e)?e:t),dn="abcdefghijklmnopqrstuvwxyz",_i="0123456789",ua={DIGIT:_i,ALPHA:dn,ALPHA_DIGIT:dn+dn.toUpperCase()+_i},du=(e=16,t=ua.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function fu(e){return!!(e&&Re(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pu=e=>{const t=new Array(10),r=(n,o)=>{if(Gr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Lt(n)?[]:{};return Yt(n,(s,a)=>{const c=r(s,o+1);!Wt(c)&&(i[a]=c)}),t[o]=void 0,i}}return n};return r(e,0)},hu=je("AsyncFunction"),mu=e=>e&&(Gr(e)||Re(e))&&Re(e.then)&&Re(e.catch),b={isArray:Lt,isArrayBuffer:oa,isBuffer:Ic,isFormData:qc,isArrayBufferView:Bc,isString:Vc,isNumber:ia,isBoolean:Uc,isObject:Gr,isPlainObject:ur,isUndefined:Wt,isDate:Mc,isFile:Hc,isBlob:jc,isRegExp:su,isFunction:Re,isStream:Wc,isURLSearchParams:Gc,isTypedArray:tu,isFileList:zc,forEach:Yt,merge:Pn,extend:Jc,trim:Kc,stripBOM:Yc,inherits:Xc,toFlatObject:Qc,kindOf:Wr,kindOfTest:je,endsWith:Zc,toArray:eu,forEachEntry:ru,matchAll:nu,isHTMLForm:ou,hasOwnProperty:bi,hasOwnProp:bi,reduceDescriptors:ca,freezeMethods:au,toObjectSet:lu,toCamelCase:iu,noop:cu,toFiniteNumber:uu,findKey:sa,global:aa,isContextDefined:la,ALPHABET:ua,generateString:du,isSpecCompliantForm:fu,toJSONObject:pu,isAsyncFn:hu,isThenable:mu};function M(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}b.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const da=M.prototype,fa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{fa[e]={value:e}});Object.defineProperties(M,fa);Object.defineProperty(da,"isAxiosError",{value:!0});M.from=(e,t,r,n,o,i)=>{const s=Object.create(da);return b.toFlatObject(e,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),M.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const yu=null;function Fn(e){return b.isPlainObject(e)||b.isArray(e)}function pa(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function wi(e,t,r){return e?e.concat(t).map(function(o,i){return o=pa(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function gu(e){return b.isArray(e)&&!e.some(Fn)}const vu=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function Kr(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!b.isUndefined(x[m])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(b.isDate(f))return f.toISOString();if(!c&&b.isBlob(f))throw new M("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(f)||b.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,m,x){let v=f;if(f&&!x&&typeof f=="object"){if(b.endsWith(m,"{}"))m=n?m:m.slice(0,-2),f=JSON.stringify(f);else if(b.isArray(f)&&gu(f)||(b.isFileList(f)||b.endsWith(m,"[]"))&&(v=b.toArray(f)))return m=pa(m),v.forEach(function(O,L){!(b.isUndefined(O)||O===null)&&t.append(s===!0?wi([m],L,i):s===null?m:m+"[]",u(O))}),!1}return Fn(f)?!0:(t.append(wi(x,m,i),u(f)),!1)}const l=[],h=Object.assign(vu,{defaultVisitor:d,convertValue:u,isVisitable:Fn});function g(f,m){if(!b.isUndefined(f)){if(l.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));l.push(f),b.forEach(f,function(v,w){(!(b.isUndefined(v)||v===null)&&o.call(t,v,b.isString(w)?w.trim():w,m,h))===!0&&g(v,m?m.concat(w):[w])}),l.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return g(e),t}function xi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function yo(e,t){this._pairs=[],e&&Kr(e,this,t)}const ha=yo.prototype;ha.append=function(t,r){this._pairs.push([t,r])};ha.toString=function(t){const r=t?function(n){return t.call(this,n,xi)}:xi;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function bu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ma(e,t,r){if(!t)return e;const n=r&&r.encode||bu,o=r&&r.serialize;let i;if(o?i=o(t,r):i=b.isURLSearchParams(t)?t.toString():new yo(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _u{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){b.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Si=_u,ya={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wu=typeof URLSearchParams<"u"?URLSearchParams:yo,xu=typeof FormData<"u"?FormData:null,Su=typeof Blob<"u"?Blob:null,Eu=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Cu=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),De={isBrowser:!0,classes:{URLSearchParams:wu,FormData:xu,Blob:Su},isStandardBrowserEnv:Eu,isStandardBrowserWebWorkerEnv:Cu,protocols:["http","https","file","blob","url","data"]};function ku(e,t){return Kr(e,new De.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return De.isNode&&b.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Ou(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tu(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function ga(e){function t(r,n,o,i){let s=r[i++];const a=Number.isFinite(+s),c=i>=r.length;return s=!s&&b.isArray(o)?o.length:s,c?(b.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!b.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&b.isArray(o[s])&&(o[s]=Tu(o[s])),!a)}if(b.isFormData(e)&&b.isFunction(e.entries)){const r={};return b.forEachEntry(e,(n,o)=>{t(Ou(n),o,r,0)}),r}return null}function Au(e,t,r){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const go={transitional:ya,adapter:De.isNode?"http":"xhr",transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=b.isObject(t);if(i&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return o&&o?JSON.stringify(ga(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ku(t,this.formSerializer).toString();if((a=b.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Kr(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Au(t)):t}],transformResponse:[function(t){const r=this.transitional||go.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&b.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?M.from(a,M.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{go.headers[e]={}});const vo=go,Ru=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$u=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
9
|
+
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&Ru[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ei=Symbol("internals");function It(e){return e&&String(e).trim().toLowerCase()}function dr(e){return e===!1||e==null?e:b.isArray(e)?e.map(dr):String(e)}function Pu(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Fu=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fn(e,t,r,n,o){if(b.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!b.isString(t)){if(b.isString(n))return t.indexOf(n)!==-1;if(b.isRegExp(n))return n.test(t)}}function Lu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Nu(e,t){const r=b.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}class Jr{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,c,u){const d=It(c);if(!d)throw new Error("header name must be a non-empty string");const l=b.findKey(o,d);(!l||o[l]===void 0||u===!0||u===void 0&&o[l]!==!1)&&(o[l||c]=dr(a))}const s=(a,c)=>b.forEach(a,(u,d)=>i(u,d,c));return b.isPlainObject(t)||t instanceof this.constructor?s(t,r):b.isString(t)&&(t=t.trim())&&!Fu(t)?s($u(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=It(t),t){const n=b.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Pu(o);if(b.isFunction(r))return r.call(this,o,n);if(b.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=It(t),t){const n=b.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||fn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=It(s),s){const a=b.findKey(n,s);a&&(!r||fn(n,n[a],a,r))&&(delete n[a],o=!0)}}return b.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||fn(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return b.forEach(this,(o,i)=>{const s=b.findKey(n,i);if(s){r[s]=dr(o),delete r[i];return}const a=t?Lu(i):String(i).trim();a!==i&&delete r[i],r[a]=dr(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return b.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&b.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
10
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Ei]=this[Ei]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=It(s);n[a]||(Nu(o,s),n[a]=!0)}return b.isArray(t)?t.forEach(i):i(t),this}}Jr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(Jr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});b.freezeMethods(Jr);const Je=Jr;function pn(e,t){const r=this||vo,n=t||r,o=Je.from(n.headers);let i=n.data;return b.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function va(e){return!!(e&&e.__CANCEL__)}function Xt(e,t,r){M.call(this,e??"canceled",M.ERR_CANCELED,t,r),this.name="CanceledError"}b.inherits(Xt,M,{__CANCEL__:!0});function Du(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new M("Request failed with status code "+r.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Iu=De.isStandardBrowserEnv?function(){return{write:function(r,n,o,i,s,a){const c=[];c.push(r+"="+encodeURIComponent(n)),b.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),b.isString(i)&&c.push("path="+i),b.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Bu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vu(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ba(e,t){return e&&!Bu(t)?Vu(e,t):t}const Uu=De.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=b.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function Mu(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Hu(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[i];s||(s=u),r[o]=c,n[o]=u;let l=i,h=0;for(;l!==o;)h+=r[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const g=d&&u-d;return g?Math.round(h*1e3/g):void 0}}function Ci(e,t){let r=0;const n=Hu(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a),u=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const ju=typeof XMLHttpRequest<"u",zu=ju&&function(e){return new Promise(function(r,n){let o=e.data;const i=Je.from(e.headers).normalize(),s=e.responseType;let a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}b.isFormData(o)&&(De.isStandardBrowserEnv||De.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+f))}const d=ba(e.baseURL,e.url);u.open(e.method.toUpperCase(),ma(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function l(){if(!u)return;const g=Je.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:e,request:u};Du(function(v){r(v),c()},function(v){n(v),c()},m),u=null}if("onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(l)},u.onabort=function(){u&&(n(new M("Request aborted",M.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new M("Network Error",M.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||ya;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),n(new M(f,m.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,u)),u=null},De.isStandardBrowserEnv){const g=(e.withCredentials||Uu(d))&&e.xsrfCookieName&&Iu.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&b.forEach(i.toJSON(),function(f,m){u.setRequestHeader(m,f)}),b.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Ci(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ci(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=g=>{u&&(n(!g||g.type?new Xt(null,e,u):g),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const h=Mu(d);if(h&&De.protocols.indexOf(h)===-1){n(new M("Unsupported protocol "+h+":",M.ERR_BAD_REQUEST,e));return}u.send(o||null)})},fr={http:yu,xhr:zu};b.forEach(fr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _a={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=b.isString(r)?fr[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new M(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(b.hasOwnProp(fr,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!b.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:fr};function hn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xt(null,e)}function ki(e){return hn(e),e.headers=Je.from(e.headers),e.data=pn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_a.getAdapter(e.adapter||vo.adapter)(e).then(function(n){return hn(e),n.data=pn.call(e,e.transformResponse,n),n.headers=Je.from(n.headers),n},function(n){return va(n)||(hn(e),n&&n.response&&(n.response.data=pn.call(e,e.transformResponse,n.response),n.response.headers=Je.from(n.response.headers))),Promise.reject(n)})}const Oi=e=>e instanceof Je?e.toJSON():e;function Rt(e,t){t=t||{};const r={};function n(u,d,l){return b.isPlainObject(u)&&b.isPlainObject(d)?b.merge.call({caseless:l},u,d):b.isPlainObject(d)?b.merge({},d):b.isArray(d)?d.slice():d}function o(u,d,l){if(b.isUndefined(d)){if(!b.isUndefined(u))return n(void 0,u,l)}else return n(u,d,l)}function i(u,d){if(!b.isUndefined(d))return n(void 0,d)}function s(u,d){if(b.isUndefined(d)){if(!b.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function a(u,d,l){if(l in t)return n(u,d);if(l in e)return n(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,d)=>o(Oi(u),Oi(d),!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(d){const l=c[d]||o,h=l(e[d],t[d],d);b.isUndefined(h)&&l!==a||(r[d]=h)}),r}const wa="1.5.0",bo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ti={};bo.transitional=function(t,r,n){function o(i,s){return"[Axios v"+wa+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new M(o(s," has been removed"+(r?" in "+r:"")),M.ERR_DEPRECATED);return r&&!Ti[s]&&(Ti[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function Wu(e,t,r){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new M("option "+i+" must be "+c,M.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}const Ln={assertOptions:Wu,validators:bo},tt=Ln.validators;class Er{constructor(t){this.defaults=t,this.interceptors={request:new Si,response:new Si}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Rt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Ln.assertOptions(n,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),o!=null&&(b.isFunction(o)?r.paramsSerializer={serialize:o}:Ln.assertOptions(o,{encode:tt.function,serialize:tt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&b.merge(i.common,i[r.method]);i&&b.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),r.headers=Je.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(c=c&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,l=0,h;if(!c){const f=[ki.bind(this),void 0];for(f.unshift.apply(f,a),f.push.apply(f,u),h=f.length,d=Promise.resolve(r);l<h;)d=d.then(f[l++],f[l++]);return d}h=a.length;let g=r;for(l=0;l<h;){const f=a[l++],m=a[l++];try{g=f(g)}catch(x){m.call(this,x);break}}try{d=ki.call(this,g)}catch(f){return Promise.reject(f)}for(l=0,h=u.length;l<h;)d=d.then(u[l++],u[l++]);return d}getUri(t){t=Rt(this.defaults,t);const r=ba(t.baseURL,t.url);return ma(r,t.params,t.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(t){Er.prototype[t]=function(r,n){return this.request(Rt(n||{},{method:t,url:r,data:(n||{}).data}))}});b.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,a){return this.request(Rt(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Er.prototype[t]=r(),Er.prototype[t+"Form"]=r(!0)});const pr=Er;class _o{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Xt(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new _o(function(o){t=o}),cancel:t}}}const qu=_o;function Gu(e){return function(r){return e.apply(null,r)}}function Ku(e){return b.isObject(e)&&e.isAxiosError===!0}const Nn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nn).forEach(([e,t])=>{Nn[t]=e});const Ju=Nn;function xa(e){const t=new pr(e),r=na(pr.prototype.request,t);return b.extend(r,pr.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return xa(Rt(e,o))},r}const ae=xa(vo);ae.Axios=pr;ae.CanceledError=Xt;ae.CancelToken=qu;ae.isCancel=va;ae.VERSION=wa;ae.toFormData=Kr;ae.AxiosError=M;ae.Cancel=ae.CanceledError;ae.all=function(t){return Promise.all(t)};ae.spread=Gu;ae.isAxiosError=Ku;ae.mergeConfig=Rt;ae.AxiosHeaders=Je;ae.formToJSON=e=>ga(b.isHTMLForm(e)?new FormData(e):e);ae.getAdapter=_a.getAdapter;ae.HttpStatusCode=Ju;ae.default=ae;const wo=ae,Yu=(e,{onRequest:t,onRequestError:r,onResponse:n,onResponseError:o})=>{e.interceptors.request.use(async i=>(t&&await t(i),i),async i=>{throw r&&await r(i),i}),e.interceptors.response.use(async i=>(n&&await n(i),i),async i=>{throw o&&await o(i),i})},Xu=({request:e})=>console.error("[API] Request error:",e),Qu=({response:e})=>{if(e){const{status:t,request:r,data:n}=e;console.error("[API] Response error:",t,r.responseURL,JSON.stringify(n))}},Sa=async e=>{var t;try{const r=await((t=e.response)==null?void 0:t.data).text();return JSON.parse(r)}catch{return{}}};let Ye;const Zu="/salary-packaging/admin/v1.0/catche/receipt-batch",ed=e=>`/salary-packaging/admin/v1.0/clients/${e.clientId}/reports/net-itc?year=${e.year}&month=${e.month}`,td=e=>`/salary-packaging/admin/v1.0/client-groups/${e.groupCode}/reports/net-itc?year=${e.year}&month=${e.month}`,rd=async(e,t)=>{const r=e==null?void 0:e.replace(/\/?$/,"");return Ye=wo.create({baseURL:`${r}`,timeout:15e3,headers:{Authorization:`Bearer ${t}`}}),Yu(Ye,{onRequestError:Xu,onResponseError:Qu}),Ye},nd=async e=>{if(!Ye)throw new Error("Api has not been initialized");const t=new FormData;return t.append("source",e.source),t.append("transactionFile",e.transactionsFile),(await Ye.post(`${Zu}`,t,{responseType:"blob"})).data},od=async e=>{if(!Ye)throw new Error("Api has not been initialized");return(await Ye.get(td(e),{responseType:"blob"})).data},id=async e=>{if(!Ye)throw new Error("Api has not been initialized");return(await Ye.get(ed(e),{responseType:"blob"})).data},sd=at("button",{target:"ev353g40"})({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)"}},";"),xo=({as:e,download:t,href:r,children:n,onClick:o,type:i})=>S(sd,{as:e||"button",download:t,href:r,type:i||"button",onClick:o},n),Ea=({blob:e,children:t,fileName:r})=>{const[n,o]=te();return re(()=>{const i=URL.createObjectURL(e);return o(i),()=>{URL.revokeObjectURL(i),o(void 0)}},[e]),S(xo,{as:"a",href:n??"#",download:r},t)},Ca=at("div",{target:"e7dk6uz0"})(()=>({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"}),";");var ad=Object.defineProperty,ld=(e,t,r)=>t in e?ad(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mn=(e,t,r)=>(ld(e,typeof t!="symbol"?t+"":t,r),r);let cd=class{constructor(){mn(this,"current",this.detect()),mn(this,"handoffState","pending"),mn(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"}},gt=new cd,Ce=(e,t)=>{gt.isServer?re(e,t):bt(e,t)};function He(e){let t=q(e);return Ce(()=>{t.current=e},[e]),t}function ka(e,t){let[r,n]=te(e),o=He(e);return Ce(()=>n(o.current),[o,n,...t]),r}function ud(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function st(){let e=[],t={addEventListener(r,n,o,i){return r.addEventListener(n,o,i),t.add(()=>r.removeEventListener(n,o,i))},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 ud(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let i=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:i})})},group(r){let n=st();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function $t(){let[e]=te(st);return re(()=>()=>e.dispose(),[e]),e}let H=function(e){let t=He(e);return D.useCallback((...r)=>t.current(...r),[t])};function dd(){let e=typeof document>"u";return"useSyncExternalStore"in gr?(t=>t.useSyncExternalStore)(gr)(()=>()=>{},()=>!1,()=>!e):!1}function So(){let e=dd(),[t,r]=te(gt.isHandoffComplete);return t&>.isHandoffComplete===!1&&r(!1),re(()=>{t!==!0&&r(!0)},[t]),re(()=>gt.handoff(),[]),e?!1:t}var Ai;let Yr=(Ai=D.useId)!=null?Ai:function(){let e=So(),[t,r]=D.useState(e?()=>gt.nextId():null);return Ce(()=>{t===null&&r(gt.nextId())},[t]),t!=null?""+t:void 0};function me(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,me),n}function Oa(e){return gt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Ri=["[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 fd=(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))(fd||{}),pd=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(pd||{}),hd=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(hd||{}),Eo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Eo||{});function Ta(e,t=0){var r;return e===((r=Oa(e))==null?void 0:r.body)?!1:me(t,{0(){return e.matches(Ri)},1(){let n=e;for(;n!==null;){if(n.matches(Ri))return!0;n=n.parentElement}return!1}})}var md=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(md||{});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 yd(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function tr(e,t,r){let n=He(t);re(()=>{function o(i){n.current(i)}return document.addEventListener(e,o,r),()=>document.removeEventListener(e,o,r)},[e,r])}function gd(e,t,r){let n=He(t);re(()=>{function o(i){n.current(i)}return window.addEventListener(e,o,r),()=>window.removeEventListener(e,o,r)},[e,r])}function vd(e,t,r=!0){let n=q(!1);re(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function o(s,a){if(!n.current||s.defaultPrevented)return;let c=a(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let u=function d(l){return typeof l=="function"?d(l()):Array.isArray(l)||l instanceof Set?l:[l]}(e);for(let d of u){if(d===null)continue;let l=d instanceof HTMLElement?d:d.current;if(l!=null&&l.contains(c)||s.composed&&s.composedPath().includes(l))return}return!Ta(c,Eo.Loose)&&c.tabIndex!==-1&&s.preventDefault(),t(s,c)}let i=q(null);tr("pointerdown",s=>{var a,c;n.current&&(i.current=((c=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:c[0])||s.target)},!0),tr("mousedown",s=>{var a,c;n.current&&(i.current=((c=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:c[0])||s.target)},!0),tr("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),tr("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),gd("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function $i(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 bd(e,t){let[r,n]=te(()=>$i(e));return Ce(()=>{n($i(e))},[e.type,e.as]),Ce(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let _d=Symbol();function _t(...e){let t=q(e);re(()=>{t.current=e},[e]);let r=H(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[_d]))?void 0:r}function wd(e){throw new Error("Unexpected object: "+e)}var _e=(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))(_e||{});function xd(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=n??-1,i=(()=>{switch(e.focus){case 0:return r.findIndex(s=>!t.resolveDisabled(s));case 1:{let s=r.slice().reverse().findIndex((a,c,u)=>o!==-1&&u.length-c-1>=o?!1:!t.resolveDisabled(a));return s===-1?s:r.length-1-s}case 2:return r.findIndex((s,a)=>a<=o?!1:!t.resolveDisabled(s));case 3:{let s=r.slice().reverse().findIndex(a=>!t.resolveDisabled(a));return s===-1?s:r.length-1-s}case 4:return r.findIndex(s=>t.resolveId(s)===e.id);case 5:return null;default:wd(e)}})();return i===-1?n:i}function Cr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var kr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(kr||{}),ot=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ot||{});function lt({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:s}){let a=Aa(t,e);if(i)return rr(a,r,n,s);let c=o??0;if(c&2){let{static:u=!1,...d}=a;if(u)return rr(d,r,n,s)}if(c&1){let{unmount:u=!0,...d}=a;return me(u?0:1,{0(){return null},1(){return rr({...d,hidden:!0,style:{display:"none"}},r,n,s)}})}return rr(a,r,n,s)}function rr(e,t={},r,n){let{as:o=r,children:i,refName:s="ref",...a}=yn(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let d={};if(t){let l=!1,h=[];for(let[g,f]of Object.entries(t))typeof f=="boolean"&&(l=!0),f===!0&&h.push(g);l&&(d["data-headlessui-state"]=h.join(" "))}if(o===X&&Object.keys(Dn(a)).length>0){if(!Pt(u)||Array.isArray(u)&&u.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(a).map(f=>` - ${f}`).join(`
|
|
13
11
|
`),"","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(f=>` - ${f}`).join(`
|
|
14
12
|
`)].join(`
|
|
15
|
-
`));let l=d.props,m=typeof(l==null?void 0:l.className)=="function"?(...f)=>Er(l==null?void 0:l.className(...f),a.className):Er(l==null?void 0:l.className,a.className),w=m?{className:m}:{};return Kn(d,Object.assign({},$a(d.props,Dn(mn(a,["ref"]))),u,c,Td(d.ref,c.ref),w))}return W(o,Object.assign({},mn(a,["ref"]),o!==Y&&c,o!==Y&&u),d)}function Td(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function $a(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];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](o,...i){let s=r[n];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function et(e){var t;return Object.assign(Ze(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Dn(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function mn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function Rd(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&&Ad(r)?!1:n}function Ad(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Pa(e={},t=null,r=[]){for(let[n,o]of Object.entries(e))La(r,Fa(t,n),o);return r}function Fa(e,t){return e?e+"["+t+"]":t}function La(e,t,r){if(Array.isArray(r))for(let[n,o]of r.entries())La(e,Fa(t,n.toString()),o);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,""]):Pa(r,t,e)}let $d="div";var Na=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Na||{});function Pd(e,t){let{features:r=1,...n}=e,o={ref:t,"aria-hidden":(r&2)===2?!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",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return lt({ourProps:o,theirProps:n,slot:{},defaultTag:$d,name:"Hidden"})}let Fd=et(Pd),Co=Qe(null);Co.displayName="OpenClosedContext";var xe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(xe||{});function ko(){return $e(Co)}function Da({value:e,children:t}){return D.createElement(Co.Provider,{value:e},t)}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 Ld(e,t,r){let[n,o]=te(r),i=e!==void 0,s=q(i),a=q(!1),c=q(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,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.")):!i&&s.current&&!c.current&&(c.current=!0,s.current=i,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.")),[i?e:n,H(d=>(i||o(d),t==null?void 0:t(d)))]}function Fi(e){return[e.screenX,e.screenY]}function Nd(){let e=q([-1,-1]);return{wasMoved(t){let r=Fi(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=Fi(t)}}}function Oo(){let e=q(!1);return Ce(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let Li=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Ni(e){var t,r;let n=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return n;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let s=i?(r=o.innerText)!=null?r:"":n;return Li.test(s)&&(s=s.replace(Li,"")),s}function Dd(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(o=>{let i=document.getElementById(o);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():Ni(i).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return Ni(e).trim()}function Id(e){let t=q(""),r=q("");return H(()=>{let n=e.current;if(!n)return"";let o=n.innerText;if(t.current===o)return r.current;let i=Dd(n).trim().toLowerCase();return t.current=o,r.current=i,i})}var Bd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Bd||{}),Vd=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Vd||{}),Md=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Md||{}),Ud=(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))(Ud||{});function yn(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=wd(t(e.options.slice()),i=>i.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return o===-1&&(o=null),{options:n,activeOptionIndex:o}}let Hd={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(o=>r(o.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=yn(e),o=Od(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:o,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(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(n))}),i=o?e.options.indexOf(o):-1;return i===-1||i===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:i,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=yn(e,o=>[...o,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=yn(e,n=>{let o=n.findIndex(i=>i.id===t.id);return o!==-1&&n.splice(o,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},To=Qe(null);To.displayName="ListboxActionsContext";function Qt(e){let t=$e(To);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Qt),r}return t}let Ro=Qe(null);Ro.displayName="ListboxDataContext";function Zt(e){let t=$e(Ro);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Zt),r}return t}function jd(e,t){return me(t.type,Hd,e,t)}let zd=Y;function Wd(e,t){let{value:r,defaultValue:n,form:o,name:i,onChange:s,by:a=(U,J)=>U===J,disabled:c=!1,horizontal:d=!1,multiple:u=!1,...l}=e;const m=d?"horizontal":"vertical";let w=_t(t),[f=u?[]:void 0,h]=Ld(r,s,n),[x,g]=Tr(jd,{dataRef:Mn(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=q({static:!1,hold:!1}),C=q(null),L=q(null),R=q(null),F=H(typeof a=="string"?(U,J)=>{let ce=a;return(U==null?void 0:U[ce])===(J==null?void 0:J[ce])}:a),A=pt(U=>me(B.mode,{1:()=>f.some(J=>F(J,U)),0:()=>F(f,U)}),[f]),B=Se(()=>({...x,value:f,disabled:c,mode:u?1:0,orientation:m,compare:F,isSelected:A,optionsPropsRef:v,labelRef:C,buttonRef:L,optionsRef:R}),[f,c,u,x]);Ce(()=>{x.dataRef.current=B},[B]),Sd([B.buttonRef,B.optionsRef],(U,J)=>{var ce;g({type:1}),Aa(J,Eo.Loose)||(U.preventDefault(),(ce=B.buttonRef.current)==null||ce.focus())},B.listboxState===0);let V=Se(()=>({open:B.listboxState===0,disabled:c,value:f}),[B,c,f]),Z=H(U=>{let J=B.options.find(ce=>ce.id===U);J&&ie(J.dataRef.current.value)}),ve=H(()=>{if(B.activeOptionIndex!==null){let{dataRef:U,id:J}=B.options[B.activeOptionIndex];ie(U.current.value),g({type:2,focus:_e.Specific,id:J})}}),I=H(()=>g({type:0})),N=H(()=>g({type:1})),Q=H((U,J,ce)=>U===_e.Specific?g({type:2,focus:_e.Specific,id:J,trigger:ce}):g({type:2,focus:U,trigger:ce})),le=H((U,J)=>(g({type:5,id:U,dataRef:J}),()=>g({type:6,id:U}))),ye=H(U=>(g({type:7,id:U}),()=>g({type:7,id:null}))),ie=H(U=>me(B.mode,{0(){return h==null?void 0:h(U)},1(){let J=B.value.slice(),ce=J.findIndex(ct=>F(ct,U));return ce===-1?J.push(U):J.splice(ce,1),h==null?void 0:h(J)}})),Pe=H(U=>g({type:3,value:U})),ze=H(()=>g({type:4})),Oe=Se(()=>({onChange:ie,registerOption:le,registerLabel:ye,goToOption:Q,closeListbox:N,openListbox:I,selectActiveOption:ve,selectOption:Z,search:Pe,clearSearch:ze}),[]),Fe={ref:w},We=q(null),Te=$t();return re(()=>{We.current&&n!==void 0&&Te.addEventListener(We.current,"reset",()=>{h==null||h(n)})},[We,h]),D.createElement(To.Provider,{value:Oe},D.createElement(Ro.Provider,{value:B},D.createElement(Da,{value:me(B.listboxState,{0:xe.Open,1:xe.Closed})},i!=null&&f!=null&&Pa({[i]:f}).map(([U,J],ce)=>D.createElement(Fd,{features:Na.Hidden,ref:ce===0?ct=>{var wt;We.current=(wt=ct==null?void 0:ct.closest("form"))!=null?wt:null}:void 0,...Dn({key:U,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:U,value:J})})),lt({ourProps:Fe,theirProps:l,slot:V,defaultTag:zd,name:"Listbox"}))))}let qd="button";function Gd(e,t){var r;let n=Jr(),{id:o=`headlessui-listbox-button-${n}`,...i}=e,s=Zt("Listbox.Button"),a=Qt("Listbox.Button"),c=_t(s.buttonRef,t),d=$t(),u=H(x=>{switch(x.key){case de.Space:case de.Enter:case de.ArrowDown:x.preventDefault(),a.openListbox(),d.nextFrame(()=>{s.value||a.goToOption(_e.First)});break;case de.ArrowUp:x.preventDefault(),a.openListbox(),d.nextFrame(()=>{s.value||a.goToOption(_e.Last)});break}}),l=H(x=>{switch(x.key){case de.Space:x.preventDefault();break}}),m=H(x=>{if(Rd(x.currentTarget))return x.preventDefault();s.listboxState===0?(a.closeListbox(),d.nextFrame(()=>{var g;return(g=s.buttonRef.current)==null?void 0:g.focus({preventScroll:!0})})):(x.preventDefault(),a.openListbox())}),w=Ta(()=>{if(s.labelId)return[s.labelId,o].join(" ")},[s.labelId,o]),f=Se(()=>({open:s.listboxState===0,disabled:s.disabled,value:s.value}),[s]),h={ref:c,id:o,type:Ed(e,s.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=s.optionsRef.current)==null?void 0:r.id,"aria-expanded":s.listboxState===0,"aria-labelledby":w,disabled:s.disabled,onKeyDown:u,onKeyUp:l,onClick:m};return lt({ourProps:h,theirProps:i,slot:f,defaultTag:qd,name:"Listbox.Button"})}let Kd="label";function Jd(e,t){let r=Jr(),{id:n=`headlessui-listbox-label-${r}`,...o}=e,i=Zt("Listbox.Label"),s=Qt("Listbox.Label"),a=_t(i.labelRef,t);Ce(()=>s.registerLabel(n),[n]);let c=H(()=>{var u;return(u=i.buttonRef.current)==null?void 0:u.focus({preventScroll:!0})}),d=Se(()=>({open:i.listboxState===0,disabled:i.disabled}),[i]);return lt({ourProps:{ref:a,id:n,onClick:c},theirProps:o,slot:d,defaultTag:Kd,name:"Listbox.Label"})}let Xd="ul",Yd=Cr.RenderStrategy|Cr.Static;function Qd(e,t){var r;let n=Jr(),{id:o=`headlessui-listbox-options-${n}`,...i}=e,s=Zt("Listbox.Options"),a=Qt("Listbox.Options"),c=_t(s.optionsRef,t),d=$t(),u=$t(),l=ko(),m=(()=>l!==null?(l&xe.Open)===xe.Open:s.listboxState===0)();re(()=>{var g;let v=s.optionsRef.current;v&&s.listboxState===0&&v!==((g=Ra(v))==null?void 0:g.activeElement)&&v.focus({preventScroll:!0})},[s.listboxState,s.optionsRef]);let w=H(g=>{switch(u.dispose(),g.key){case de.Space:if(s.searchQuery!=="")return g.preventDefault(),g.stopPropagation(),a.search(g.key);case de.Enter:if(g.preventDefault(),g.stopPropagation(),s.activeOptionIndex!==null){let{dataRef:v}=s.options[s.activeOptionIndex];a.onChange(v.current.value)}s.mode===0&&(a.closeListbox(),st().nextFrame(()=>{var v;return(v=s.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})}));break;case me(s.orientation,{vertical:de.ArrowDown,horizontal:de.ArrowRight}):return g.preventDefault(),g.stopPropagation(),a.goToOption(_e.Next);case me(s.orientation,{vertical:de.ArrowUp,horizontal:de.ArrowLeft}):return g.preventDefault(),g.stopPropagation(),a.goToOption(_e.Previous);case de.Home:case de.PageUp:return g.preventDefault(),g.stopPropagation(),a.goToOption(_e.First);case de.End:case de.PageDown:return g.preventDefault(),g.stopPropagation(),a.goToOption(_e.Last);case de.Escape:return g.preventDefault(),g.stopPropagation(),a.closeListbox(),d.nextFrame(()=>{var v;return(v=s.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})});case de.Tab:g.preventDefault(),g.stopPropagation();break;default:g.key.length===1&&(a.search(g.key),u.setTimeout(()=>a.clearSearch(),350));break}}),f=Ta(()=>{var g,v,C;return(C=(g=s.labelRef.current)==null?void 0:g.id)!=null?C:(v=s.buttonRef.current)==null?void 0:v.id},[s.labelRef.current,s.buttonRef.current]),h=Se(()=>({open:s.listboxState===0}),[s]),x={"aria-activedescendant":s.activeOptionIndex===null||(r=s.options[s.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":s.mode===1?!0:void 0,"aria-labelledby":f,"aria-orientation":s.orientation,id:o,onKeyDown:w,role:"listbox",tabIndex:0,ref:c};return lt({ourProps:x,theirProps:i,slot:h,defaultTag:Xd,features:Yd,visible:m,name:"Listbox.Options"})}let Zd="li";function ef(e,t){let r=Jr(),{id:n=`headlessui-listbox-option-${r}`,disabled:o=!1,value:i,...s}=e,a=Zt("Listbox.Option"),c=Qt("Listbox.Option"),d=a.activeOptionIndex!==null?a.options[a.activeOptionIndex].id===n:!1,u=a.isSelected(i),l=q(null),m=Id(l),w=He({disabled:o,value:i,domRef:l,get textValue(){return m()}}),f=_t(t,l);Ce(()=>{if(a.listboxState!==0||!d||a.activationTrigger===0)return;let F=st();return F.requestAnimationFrame(()=>{var A,B;(B=(A=l.current)==null?void 0:A.scrollIntoView)==null||B.call(A,{block:"nearest"})}),F.dispose},[l,d,a.listboxState,a.activationTrigger,a.activeOptionIndex]),Ce(()=>c.registerOption(n,w),[w,n]);let h=H(F=>{if(o)return F.preventDefault();c.onChange(i),a.mode===0&&(c.closeListbox(),st().nextFrame(()=>{var A;return(A=a.buttonRef.current)==null?void 0:A.focus({preventScroll:!0})}))}),x=H(()=>{if(o)return c.goToOption(_e.Nothing);c.goToOption(_e.Specific,n)}),g=Nd(),v=H(F=>g.update(F)),C=H(F=>{g.wasMoved(F)&&(o||d||c.goToOption(_e.Specific,n,0))}),L=H(F=>{g.wasMoved(F)&&(o||d&&c.goToOption(_e.Nothing))}),R=Se(()=>({active:d,selected:u,disabled:o}),[d,u,o]);return lt({ourProps:{id:n,ref:f,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":u,disabled:void 0,onClick:h,onFocus:x,onPointerEnter:v,onMouseEnter:v,onPointerMove:C,onMouseMove:C,onPointerLeave:L,onMouseLeave:L},theirProps:s,slot:R,defaultTag:Zd,name:"Listbox.Option"})}let tf=et(Wd),rf=et(Gd),nf=et(Jd),of=et(Qd),sf=et(ef),Mt=Object.assign(tf,{Button:rf,Label:nf,Options:of,Option:sf});function af(e=0){let[t,r]=te(e),n=Oo(),o=pt(c=>{n.current&&r(d=>d|c)},[t,n]),i=pt(c=>!!(t&c),[t]),s=pt(c=>{n.current&&r(d=>d&~c)},[r,n]),a=pt(c=>{n.current&&r(d=>d^c)},[r]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}function lf(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function gn(e,...t){e&&t.length>0&&e.classList.add(...t)}function vn(e,...t){e&&t.length>0&&e.classList.remove(...t)}function cf(e,t){let r=st();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,s]=[n,o].map(c=>{let[d=0]=c.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,l)=>l-u);return d}),a=i+s;if(a!==0){r.group(d=>{d.setTimeout(()=>{t(),d.dispose()},a),d.addEventListener(e,"transitionrun",u=>{u.target===u.currentTarget&&d.dispose()})});let c=r.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(t(),c())})}else t();return r.add(()=>t()),r.dispose}function uf(e,t,r,n){let o=r?"enter":"leave",i=st(),s=n!==void 0?lf(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=me(o,{enter:()=>t.enter,leave:()=>t.leave}),c=me(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=me(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return vn(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),gn(e,...t.base,...a,...d),i.nextFrame(()=>{vn(e,...t.base,...a,...d),gn(e,...t.base,...a,...c),cf(e,()=>(vn(e,...t.base,...a),gn(e,...t.base,...t.entered),s()))}),i.dispose}function df({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:i}){let s=Oo(),a=$t(),c=He(r);Ce(()=>{e&&(c.current="enter")},[e]),Ce(()=>{let d=st();a.add(d.dispose);let u=t.current;if(u&&c.current!=="idle"&&s.current)return d.dispose(),o.current(c.current),d.add(uf(u,n.current,c.current==="enter",()=>{d.dispose(),i.current(c.current)})),d.dispose},[r])}function rt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Xr=Qe(null);Xr.displayName="TransitionContext";var ff=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ff||{});function pf(){let e=$e(Xr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function hf(){let e=$e(Yr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Yr=Qe(null);Yr.displayName="NestingContext";function Qr(e){return"children"in e?Qr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Ia(e,t){let r=He(e),n=q([]),o=Oo(),i=$t(),s=H((w,f=ot.Hidden)=>{let h=n.current.findIndex(({el:x})=>x===w);h!==-1&&(me(f,{[ot.Unmount](){n.current.splice(h,1)},[ot.Hidden](){n.current[h].state="hidden"}}),i.microTask(()=>{var x;!Qr(n)&&o.current&&((x=r.current)==null||x.call(r))}))}),a=H(w=>{let f=n.current.find(({el:h})=>h===w);return f?f.state!=="visible"&&(f.state="visible"):n.current.push({el:w,state:"visible"}),()=>s(w,ot.Unmount)}),c=q([]),d=q(Promise.resolve()),u=q({enter:[],leave:[],idle:[]}),l=H((w,f,h)=>{c.current.splice(0),t&&(t.chains.current[f]=t.chains.current[f].filter(([x])=>x!==w)),t==null||t.chains.current[f].push([w,new Promise(x=>{c.current.push(x)})]),t==null||t.chains.current[f].push([w,new Promise(x=>{Promise.all(u.current[f].map(([g,v])=>v)).then(()=>x())})]),f==="enter"?d.current=d.current.then(()=>t==null?void 0:t.wait.current).then(()=>h(f)):h(f)}),m=H((w,f,h)=>{Promise.all(u.current[f].splice(0).map(([x,g])=>g)).then(()=>{var x;(x=c.current.shift())==null||x()}).then(()=>h(f))});return Se(()=>({children:n,register:a,unregister:s,onStart:l,onStop:m,wait:d,chains:u}),[a,s,n,l,m,u,d])}function mf(){}let yf=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Di(e){var t;let r={};for(let n of yf)r[n]=(t=e[n])!=null?t:mf;return r}function gf(e){let t=q(Di(e));return re(()=>{t.current=Di(e)},[e]),t}let vf="div",Ba=Cr.RenderStrategy;function bf(e,t){var r,n;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:c,enterFrom:d,enterTo:u,entered:l,leave:m,leaveFrom:w,leaveTo:f,...h}=e,x=q(null),g=_t(x,t),v=(r=h.unmount)==null||r?ot.Unmount:ot.Hidden,{show:C,appear:L,initial:R}=pf(),[F,A]=te(C?"visible":"hidden"),B=hf(),{register:V,unregister:Z}=B;re(()=>V(x),[V,x]),re(()=>{if(v===ot.Hidden&&x.current){if(C&&F!=="visible"){A("visible");return}return me(F,{hidden:()=>Z(x),visible:()=>V(x)})}},[F,x,V,Z,C,v]);let ve=He({base:rt(h.className),enter:rt(c),enterFrom:rt(d),enterTo:rt(u),entered:rt(l),leave:rt(m),leaveFrom:rt(w),leaveTo:rt(f)}),I=gf({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),N=So();re(()=>{if(N&&F==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,F,N]);let Q=R&&!L,le=L&&C&&R,ye=(()=>!N||Q?"idle":C?"enter":"leave")(),ie=af(0),Pe=H(Te=>me(Te,{enter:()=>{ie.addFlag(xe.Opening),I.current.beforeEnter()},leave:()=>{ie.addFlag(xe.Closing),I.current.beforeLeave()},idle:()=>{}})),ze=H(Te=>me(Te,{enter:()=>{ie.removeFlag(xe.Opening),I.current.afterEnter()},leave:()=>{ie.removeFlag(xe.Closing),I.current.afterLeave()},idle:()=>{}})),Oe=Ia(()=>{A("hidden"),Z(x)},B);df({immediate:le,container:x,classes:ve,direction:ye,onStart:He(Te=>{Oe.onStart(x,Te,Pe)}),onStop:He(Te=>{Oe.onStop(x,Te,ze),Te==="leave"&&!Qr(Oe)&&(A("hidden"),Z(x))})});let Fe=h,We={ref:g};return le?Fe={...Fe,className:Er(h.className,...ve.current.enter,...ve.current.enterFrom)}:(Fe.className=Er(h.className,(n=x.current)==null?void 0:n.className),Fe.className===""&&delete Fe.className),D.createElement(Yr.Provider,{value:Oe},D.createElement(Da,{value:me(F,{visible:xe.Open,hidden:xe.Closed})|ie.flags},lt({ourProps:We,theirProps:Fe,defaultTag:vf,features:Ba,visible:F==="visible",name:"Transition.Child"})))}function _f(e,t){let{show:r,appear:n=!1,unmount:o=!0,...i}=e,s=q(null),a=_t(s,t);So();let c=ko();if(r===void 0&&c!==null&&(r=(c&xe.Open)===xe.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,u]=te(r?"visible":"hidden"),l=Ia(()=>{u("hidden")}),[m,w]=te(!0),f=q([r]);Ce(()=>{m!==!1&&f.current[f.current.length-1]!==r&&(f.current.push(r),w(!1))},[f,r]);let h=Se(()=>({show:r,appear:n,initial:m}),[r,n,m]);re(()=>{if(r)u("visible");else if(!Qr(l))u("hidden");else{let C=s.current;if(!C)return;let L=C.getBoundingClientRect();L.x===0&&L.y===0&&L.width===0&&L.height===0&&u("hidden")}},[r,l]);let x={unmount:o},g=H(()=>{var C;m&&w(!1),(C=e.beforeEnter)==null||C.call(e)}),v=H(()=>{var C;m&&w(!1),(C=e.beforeLeave)==null||C.call(e)});return D.createElement(Yr.Provider,{value:l},D.createElement(Xr.Provider,{value:h},lt({ourProps:{...x,as:Y,children:D.createElement(Va,{ref:a,...x,...i,beforeEnter:g,beforeLeave:v})},theirProps:{},defaultTag:Y,features:Ba,visible:d==="visible",name:"Transition"})))}function wf(e,t){let r=$e(Xr)!==null,n=ko()!==null;return D.createElement(D.Fragment,null,!r&&n?D.createElement(In,{ref:t,...e}):D.createElement(Va,{ref:t,...e}))}let In=et(_f),Va=et(bf),xf=et(wf),Sf=Object.assign(In,{Child:xf,Root:In});const Ef=at(Mt.Button,{target:"e12f85wo1"})(()=>({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"}})," ",({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)"}},";"),Cf=at(Mt.Label,{target:"e12f85wo0"})(({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))"},";");function Ii(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Bi(e,t,r){var n=[],o=Hr(e,n,r);return n.length<2?r:o+t(n)}var kf=function(t){var r=Zn(t);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];var l=yt(d,r.registered,void 0);return jr(r,l,!1),r.key+"-"+l.name},o=function(){for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];var l=yt(d,r.registered),m="animation-"+l.name;return Ii(r,{name:l.name,styles:"@keyframes "+m+"{"+l.styles+"}"}),m},i=function(){for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];var l=yt(d,r.registered);Ii(r,l)},s=function(){for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];return Bi(r.registered,n,Of(d))};return{css:n,cx:s,injectGlobal:i,keyframes:o,hydrate:function(c){c.forEach(function(d){r.inserted[d]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Hr.bind(null,r.registered),merge:Bi.bind(null,r.registered,n)}},Of=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{i="";for(var s in o)o[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}}return r},Ma=kf({key:"css"}),bn=Ma.cx,_n=Ma.css;function Tf({title:e,titleId:t,...r},n){return W("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?W("title",{id:t},e):null,W("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))}const Rf=Ze(Tf),Af=Rf;function $f({title:e,titleId:t,...r},n){return W("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?W("title",{id:t},e):null,W("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))}const Pf=Ze($f),Ff=Pf,Bn=Ze(({inputLabel:e,items:t,value:r,className:n,onChange:o,error:i,helperText:s,variant:a},c)=>S("div",{className:n},S(Mt,{value:r||"",onChange:u=>{o(u)}},({open:u})=>{var l;return S(Y,null,S(Cf,{variant:a},e),S("div",{css:{position:"relative",marginTop:"0.5rem"}},S(Ef,{as:"button",ref:c,hasError:!!i},S("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"}},((l=t.find(m=>m.key==r))==null?void 0:l.displayValue)??"Select"),S("span",{css:{pointerEvents:"none",position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",paddingRight:"0.75rem"}},S(Af,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},"aria-hidden":"true"}))),S(Sf,{show:u,leave:bn(_n({name:"1sgcnq9",styles:"transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-duration:100ms"})),leaveFrom:bn(_n({name:"3ix1vd",styles:"opacity:1"})),leaveTo:bn(_n({name:"mws4fn",styles:"opacity:0"}))},S(Mt.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"}}},t.map(m=>S(Mt.Option,{key:m.key,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:m.key},S("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",'&[data-headlessui-state~="selected"]':{fontWeight:"600"},':where([data-headlessui-state~="selected"]) &':{fontWeight:"600"}}},m.displayValue),S("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))"}}},S(Ff,{css:{height:"1.25rem",width:"1.25rem"},"aria-hidden":"true"}))))))))}),(i==null?void 0:i.message)&&S("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))"}},i.message),s&&S("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}},s)));function kr(){return kr=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},kr.apply(this,arguments)}const Lf=[{key:"goCardless",displayValue:"GoCardless"},{key:"westpac",displayValue:"Westpac"}],Ua=()=>{const[e,t]=te(),[r,n]=te(!1),[o,i]=te(),{control:s,handleSubmit:a,watch:c}=na({mode:"onChange",defaultValues:{source:"goCardless"}});re(()=>{const u=c(()=>{t(void 0),i(void 0)});return()=>u.unsubscribe()},[c]);const d=async u=>{i(void 0),n(!0);try{const l=await ld(u);t(l),n(!1)}catch(l){if(n(!1),wo.isAxiosError(l)){const m=await Ca(l);l.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please ensure the uploaded file is valid and in the correct format. CorrelationId: ${m.correlationId??"Unknown"}`)}}};return S(Y,null,S("div",{css:{marginBottom:"1.25rem"}},S("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},"Create Catch-E Receipt Batch")),S("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))"}}},S("form",{onSubmit:a(d)},S(dt,{name:"source",control:s,render:({field:u})=>S(Bn,kr({inputLabel:"Source",css:{marginBottom:"1rem"},items:Lf},u))}),S(dt,{name:"transactionsFile",control:s,rules:{validate:{validFile:u=>u.name.split(".")[1]==="csv"||"File must be a '.csv'"},required:"Please upload a csv"},render:({field:u,fieldState:l})=>S(_c,kr({inputLabel:"Transactions"},u,{error:l.error}))}),S("div",{css:{marginTop:"2rem"}},r?S(Oa,null):S(xo,{type:"submit"},"Submit"))),S("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"}},o&&S("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"}},o),e&&S(ka,{blob:e,fileName:"receipt_batch.zip"},"Download"))))},Nf=at("button",{target:"e1tl4qq20"})({whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600"}," ",({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))"}},";"),Df=({tabs:e,currentTab:t,onChange:r,className:n})=>S("div",{className:n},S("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"}},S("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"},e.map(o=>S(Nf,{key:o.displayName,type:"button",onClick:()=>r(o.id),"aria-current":o.id===t?"page":void 0,isCurrent:o.id===t},o.displayName))))),Ha=(e,t)=>Array.from({length:t-e+1},(r,n)=>e+n),If=({className:e,inputLabel:t,items:r,value:n,onChange:o})=>{const i=s=>{const a=s.target;o(a.id)};return S("div",{className:e},S("label",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},t),S("fieldset",{css:{marginTop:"0.25rem"}},S("legend",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},t),S("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))"}}}},r.map(s=>S("div",{key:s.key,css:{display:"flex",alignItems:"center"}},S("input",{id:s.key,name:s.key,type:"radio",checked:n===s.key,onClick:i,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)"}}}),S("label",{htmlFor:s.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))"}},s.displayValue))))))},Bf=at("input",{target:"eiiy7i71"})(()=>({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"}})," ",({prefix:e})=>e?{paddingLeft:"1.75rem"}:{paddingLeft:"0.75rem"}," ",({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)"}},";"),Vf=at("div",{target:"eiiy7i70"})(({isHidden:e})=>e?{display:"none"}:{display:"block"},";"),Vi=Ze(({label:e,id:t,type:r,placeholder:n,value:o,className:i,onChange:s,onBlur:a,error:c,isHidden:d},u)=>{const l=w=>{w.target instanceof HTMLInputElement&&s(w.target.value.trim())},m=w=>{w.target instanceof HTMLInputElement&&a&&a(w.target.value.trim())};return S(Vf,{isHidden:d,className:i},S("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))"}},e),S("div",{css:{marginTop:"0.5rem"}},S(Bf,{type:r,value:o,name:t,id:t,placeholder:n,onChange:l,onBlur:m,hasError:!!c,ref:u})),(c==null?void 0:c.message)&&S("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))"}},c.message))});function ft(){return ft=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},ft.apply(this,arguments)}const Vn=new Date,Mf=new Intl.DateTimeFormat("en-us",{month:"short"}),Uf=Ha(1,12).map(e=>({key:e,displayValue:Mf.format(new Date().setMonth(e-1))})),Hf=Ha(2018,Vn.getFullYear()).map(e=>({key:e,displayValue:e.toString()})),jf=[{key:"GroupCode",displayValue:"Group code"},{key:"ClientId",displayValue:"Client Id"}],zf=()=>{const[e,t]=te(),[r,n]=te(!1),[o,i]=te(),{control:s,handleSubmit:a,watch:c}=na({mode:"onBlur",defaultValues:{year:Vn.getFullYear(),month:Vn.getMonth(),entityType:"GroupCode"}}),d=()=>c("entityType"),u=async l=>{i(void 0),n(!0);try{const m=l.entityType=="GroupCode"?await cd(l):await ud(l);t({blob:m,inputs:l}),n(!1)}catch(m){if(n(!1),wo.isAxiosError(m)){const w=await Ca(m);m.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please ensure the Group Code or Client Id provided is valid.. CorrelationId: ${w.correlationId??"Unknown"}`)}}};return S(Y,null,S("div",{css:{marginBottom:"1.25rem"}},S("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},"Create Monthly Net ITC Report")),S("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))"}}},S("form",{onSubmit:a(u)},S("div",{css:{marginBottom:"1rem",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem"}},S(dt,{name:"month",control:s,render:({field:l})=>S(Bn,ft({inputLabel:"Month",css:{gridColumn:"span 1 / span 1"},items:Uf},l))}),S(dt,{name:"year",control:s,render:({field:l})=>S(Bn,ft({inputLabel:"Year",css:{gridColumn:"span 1 / span 1"},items:Hf},l))})),S(dt,{name:"entityType",control:s,render:({field:l})=>S(If,ft({inputLabel:"Identifier type",css:{marginBottom:"1rem"},items:jf},l))}),S(dt,{name:"groupCode",control:s,rules:{validate:{requiresGroupCode:l=>d()!=="GroupCode"||!!l||"Group Code is required",validGroupCode:l=>d()!=="GroupCode"||/^[A-Z0-9]+$/.test(l)||"Group Code is not valid"}},render:({field:l,fieldState:m})=>S(Vi,ft({label:"Group code",id:"groupCode",type:"text",isHidden:d()!=="GroupCode",error:m.error},l))}),S(dt,{name:"clientId",control:s,rules:{validate:{requiresClientId:l=>d()!=="ClientId"||!!l||"Client Id is required"}},render:({field:l,fieldState:m})=>S(Vi,ft({label:"Client Id",id:"clientId",type:"number",isHidden:d()!=="ClientId",error:m.error},l))}),S("div",{css:{marginTop:"1rem"}},r?S(Oa,null):S(xo,{type:"submit"},"Submit"))),S("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"}},o&&S("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"}},o),(e==null?void 0:e.blob)&&S(ka,{blob:e.blob,fileName:`${e.inputs.entityType==="GroupCode"?e.inputs.groupCode:e.inputs.clientId}_${e.inputs.month}_${e.inputs.year}.csv`},"Download"))))},Mi=[{id:"receiptBatch",displayName:"Receipt Batch",component:Ua},{id:"netItc",displayName:"Net ITC",component:Y}],Wf=e=>{switch(e){case"receiptBatch":return S(Ua,null);case"netItc":return S(zf,null);default:return S(Y,null)}},qf=()=>{const[e,t]=te(Mi[0].id),r=Wf(e);return S("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)"}},S("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}}},S(Df,{tabs:Mi,currentTab:e,onChange:t})),S("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","@media (min-width: 640px)":{padding:"1.5rem"}}},r))},Gf=(e,t)=>{const[r,n]=te();return re(()=>{if(t&&t.current){if(document.getElementsByTagName(e).length<1)throw new Error("React Element is not connected to DOM yet. Component will unmount and remount to try again.");n(Zn({container:t.current,key:e}))}},[e,t]),{EmotionProvider:({children:i})=>r?S(dc,{value:r},i):S(Y,null)}},Kf=ao({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}),Jf=ao`
|
|
13
|
+
`));let l=u.props,h=typeof(l==null?void 0:l.className)=="function"?(...f)=>Cr(l==null?void 0:l.className(...f),a.className):Cr(l==null?void 0:l.className,a.className),g=h?{className:h}:{};return Kn(u,Object.assign({},Aa(u.props,Dn(yn(a,["ref"]))),d,c,Sd(u.ref,c.ref),g))}return W(o,Object.assign({},yn(a,["ref"]),o!==X&&c,o!==X&&d),u)}function Sd(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function Aa(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];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](o,...i){let s=r[n];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function et(e){var t;return Object.assign(Ze(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Dn(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function yn(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function Ed(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&&Cd(r)?!1:n}function Cd(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Ra(e={},t=null,r=[]){for(let[n,o]of Object.entries(e))Pa(r,$a(t,n),o);return r}function $a(e,t){return e?e+"["+t+"]":t}function Pa(e,t,r){if(Array.isArray(r))for(let[n,o]of r.entries())Pa(e,$a(t,n.toString()),o);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,""]):Ra(r,t,e)}let kd="div";var Fa=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Fa||{});function Od(e,t){let{features:r=1,...n}=e,o={ref:t,"aria-hidden":(r&2)===2?!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",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return lt({ourProps:o,theirProps:n,slot:{},defaultTag:kd,name:"Hidden"})}let Td=et(Od),Co=Qe(null);Co.displayName="OpenClosedContext";var xe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(xe||{});function ko(){return $e(Co)}function La({value:e,children:t}){return D.createElement(Co.Provider,{value:e},t)}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 Ad(e,t,r){let[n,o]=te(r),i=e!==void 0,s=q(i),a=q(!1),c=q(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,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.")):!i&&s.current&&!c.current&&(c.current=!0,s.current=i,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.")),[i?e:n,H(u=>(i||o(u),t==null?void 0:t(u)))]}function Pi(e){return[e.screenX,e.screenY]}function Rd(){let e=q([-1,-1]);return{wasMoved(t){let r=Pi(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=Pi(t)}}}function Oo(){let e=q(!1);return Ce(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let Fi=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Li(e){var t,r;let n=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return n;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let s=i?(r=o.innerText)!=null?r:"":n;return Fi.test(s)&&(s=s.replace(Fi,"")),s}function $d(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(o=>{let i=document.getElementById(o);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():Li(i).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return Li(e).trim()}function Pd(e){let t=q(""),r=q("");return H(()=>{let n=e.current;if(!n)return"";let o=n.innerText;if(t.current===o)return r.current;let i=$d(n).trim().toLowerCase();return t.current=o,r.current=i,i})}var Fd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Fd||{}),Ld=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ld||{}),Nd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Nd||{}),Dd=(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))(Dd||{});function gn(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=yd(t(e.options.slice()),i=>i.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return o===-1&&(o=null),{options:n,activeOptionIndex:o}}let Id={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(o=>r(o.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=gn(e),o=xd(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:o,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(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(n))}),i=o?e.options.indexOf(o):-1;return i===-1||i===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:i,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=gn(e,o=>[...o,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=gn(e,n=>{let o=n.findIndex(i=>i.id===t.id);return o!==-1&&n.splice(o,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},To=Qe(null);To.displayName="ListboxActionsContext";function Qt(e){let t=$e(To);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Qt),r}return t}let Ao=Qe(null);Ao.displayName="ListboxDataContext";function Zt(e){let t=$e(Ao);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Zt),r}return t}function Bd(e,t){return me(t.type,Id,e,t)}let Vd=X;function Ud(e,t){let{value:r,defaultValue:n,form:o,name:i,onChange:s,by:a=(U,J)=>U===J,disabled:c=!1,horizontal:u=!1,multiple:d=!1,...l}=e;const h=u?"horizontal":"vertical";let g=_t(t),[f=d?[]:void 0,m]=Ad(r,s,n),[x,v]=Ar(Bd,{dataRef:Un(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=q({static:!1,hold:!1}),O=q(null),L=q(null),A=q(null),F=H(typeof a=="string"?(U,J)=>{let ce=a;return(U==null?void 0:U[ce])===(J==null?void 0:J[ce])}:a),R=pt(U=>me(B.mode,{1:()=>f.some(J=>F(J,U)),0:()=>F(f,U)}),[f]),B=Se(()=>({...x,value:f,disabled:c,mode:d?1:0,orientation:h,compare:F,isSelected:R,optionsPropsRef:w,labelRef:O,buttonRef:L,optionsRef:A}),[f,c,d,x]);Ce(()=>{x.dataRef.current=B},[B]),vd([B.buttonRef,B.optionsRef],(U,J)=>{var ce;v({type:1}),Ta(J,Eo.Loose)||(U.preventDefault(),(ce=B.buttonRef.current)==null||ce.focus())},B.listboxState===0);let V=Se(()=>({open:B.listboxState===0,disabled:c,value:f}),[B,c,f]),Z=H(U=>{let J=B.options.find(ce=>ce.id===U);J&&ie(J.dataRef.current.value)}),ve=H(()=>{if(B.activeOptionIndex!==null){let{dataRef:U,id:J}=B.options[B.activeOptionIndex];ie(U.current.value),v({type:2,focus:_e.Specific,id:J})}}),I=H(()=>v({type:0})),N=H(()=>v({type:1})),Q=H((U,J,ce)=>U===_e.Specific?v({type:2,focus:_e.Specific,id:J,trigger:ce}):v({type:2,focus:U,trigger:ce})),le=H((U,J)=>(v({type:5,id:U,dataRef:J}),()=>v({type:6,id:U}))),ye=H(U=>(v({type:7,id:U}),()=>v({type:7,id:null}))),ie=H(U=>me(B.mode,{0(){return m==null?void 0:m(U)},1(){let J=B.value.slice(),ce=J.findIndex(ct=>F(ct,U));return ce===-1?J.push(U):J.splice(ce,1),m==null?void 0:m(J)}})),Pe=H(U=>v({type:3,value:U})),ze=H(()=>v({type:4})),Oe=Se(()=>({onChange:ie,registerOption:le,registerLabel:ye,goToOption:Q,closeListbox:N,openListbox:I,selectActiveOption:ve,selectOption:Z,search:Pe,clearSearch:ze}),[]),Fe={ref:g},We=q(null),Te=$t();return re(()=>{We.current&&n!==void 0&&Te.addEventListener(We.current,"reset",()=>{m==null||m(n)})},[We,m]),D.createElement(To.Provider,{value:Oe},D.createElement(Ao.Provider,{value:B},D.createElement(La,{value:me(B.listboxState,{0:xe.Open,1:xe.Closed})},i!=null&&f!=null&&Ra({[i]:f}).map(([U,J],ce)=>D.createElement(Td,{features:Fa.Hidden,ref:ce===0?ct=>{var wt;We.current=(wt=ct==null?void 0:ct.closest("form"))!=null?wt:null}:void 0,...Dn({key:U,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:U,value:J})})),lt({ourProps:Fe,theirProps:l,slot:V,defaultTag:Vd,name:"Listbox"}))))}let Md="button";function Hd(e,t){var r;let n=Yr(),{id:o=`headlessui-listbox-button-${n}`,...i}=e,s=Zt("Listbox.Button"),a=Qt("Listbox.Button"),c=_t(s.buttonRef,t),u=$t(),d=H(x=>{switch(x.key){case de.Space:case de.Enter:case de.ArrowDown:x.preventDefault(),a.openListbox(),u.nextFrame(()=>{s.value||a.goToOption(_e.First)});break;case de.ArrowUp:x.preventDefault(),a.openListbox(),u.nextFrame(()=>{s.value||a.goToOption(_e.Last)});break}}),l=H(x=>{switch(x.key){case de.Space:x.preventDefault();break}}),h=H(x=>{if(Ed(x.currentTarget))return x.preventDefault();s.listboxState===0?(a.closeListbox(),u.nextFrame(()=>{var v;return(v=s.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})})):(x.preventDefault(),a.openListbox())}),g=ka(()=>{if(s.labelId)return[s.labelId,o].join(" ")},[s.labelId,o]),f=Se(()=>({open:s.listboxState===0,disabled:s.disabled,value:s.value}),[s]),m={ref:c,id:o,type:bd(e,s.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=s.optionsRef.current)==null?void 0:r.id,"aria-expanded":s.listboxState===0,"aria-labelledby":g,disabled:s.disabled,onKeyDown:d,onKeyUp:l,onClick:h};return lt({ourProps:m,theirProps:i,slot:f,defaultTag:Md,name:"Listbox.Button"})}let jd="label";function zd(e,t){let r=Yr(),{id:n=`headlessui-listbox-label-${r}`,...o}=e,i=Zt("Listbox.Label"),s=Qt("Listbox.Label"),a=_t(i.labelRef,t);Ce(()=>s.registerLabel(n),[n]);let c=H(()=>{var d;return(d=i.buttonRef.current)==null?void 0:d.focus({preventScroll:!0})}),u=Se(()=>({open:i.listboxState===0,disabled:i.disabled}),[i]);return lt({ourProps:{ref:a,id:n,onClick:c},theirProps:o,slot:u,defaultTag:jd,name:"Listbox.Label"})}let Wd="ul",qd=kr.RenderStrategy|kr.Static;function Gd(e,t){var r;let n=Yr(),{id:o=`headlessui-listbox-options-${n}`,...i}=e,s=Zt("Listbox.Options"),a=Qt("Listbox.Options"),c=_t(s.optionsRef,t),u=$t(),d=$t(),l=ko(),h=(()=>l!==null?(l&xe.Open)===xe.Open:s.listboxState===0)();re(()=>{var v;let w=s.optionsRef.current;w&&s.listboxState===0&&w!==((v=Oa(w))==null?void 0:v.activeElement)&&w.focus({preventScroll:!0})},[s.listboxState,s.optionsRef]);let g=H(v=>{switch(d.dispose(),v.key){case de.Space:if(s.searchQuery!=="")return v.preventDefault(),v.stopPropagation(),a.search(v.key);case de.Enter:if(v.preventDefault(),v.stopPropagation(),s.activeOptionIndex!==null){let{dataRef:w}=s.options[s.activeOptionIndex];a.onChange(w.current.value)}s.mode===0&&(a.closeListbox(),st().nextFrame(()=>{var w;return(w=s.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})}));break;case me(s.orientation,{vertical:de.ArrowDown,horizontal:de.ArrowRight}):return v.preventDefault(),v.stopPropagation(),a.goToOption(_e.Next);case me(s.orientation,{vertical:de.ArrowUp,horizontal:de.ArrowLeft}):return v.preventDefault(),v.stopPropagation(),a.goToOption(_e.Previous);case de.Home:case de.PageUp:return v.preventDefault(),v.stopPropagation(),a.goToOption(_e.First);case de.End:case de.PageDown:return v.preventDefault(),v.stopPropagation(),a.goToOption(_e.Last);case de.Escape:return v.preventDefault(),v.stopPropagation(),a.closeListbox(),u.nextFrame(()=>{var w;return(w=s.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})});case de.Tab:v.preventDefault(),v.stopPropagation();break;default:v.key.length===1&&(a.search(v.key),d.setTimeout(()=>a.clearSearch(),350));break}}),f=ka(()=>{var v,w,O;return(O=(v=s.labelRef.current)==null?void 0:v.id)!=null?O:(w=s.buttonRef.current)==null?void 0:w.id},[s.labelRef.current,s.buttonRef.current]),m=Se(()=>({open:s.listboxState===0}),[s]),x={"aria-activedescendant":s.activeOptionIndex===null||(r=s.options[s.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":s.mode===1?!0:void 0,"aria-labelledby":f,"aria-orientation":s.orientation,id:o,onKeyDown:g,role:"listbox",tabIndex:0,ref:c};return lt({ourProps:x,theirProps:i,slot:m,defaultTag:Wd,features:qd,visible:h,name:"Listbox.Options"})}let Kd="li";function Jd(e,t){let r=Yr(),{id:n=`headlessui-listbox-option-${r}`,disabled:o=!1,value:i,...s}=e,a=Zt("Listbox.Option"),c=Qt("Listbox.Option"),u=a.activeOptionIndex!==null?a.options[a.activeOptionIndex].id===n:!1,d=a.isSelected(i),l=q(null),h=Pd(l),g=He({disabled:o,value:i,domRef:l,get textValue(){return h()}}),f=_t(t,l);Ce(()=>{if(a.listboxState!==0||!u||a.activationTrigger===0)return;let F=st();return F.requestAnimationFrame(()=>{var R,B;(B=(R=l.current)==null?void 0:R.scrollIntoView)==null||B.call(R,{block:"nearest"})}),F.dispose},[l,u,a.listboxState,a.activationTrigger,a.activeOptionIndex]),Ce(()=>c.registerOption(n,g),[g,n]);let m=H(F=>{if(o)return F.preventDefault();c.onChange(i),a.mode===0&&(c.closeListbox(),st().nextFrame(()=>{var R;return(R=a.buttonRef.current)==null?void 0:R.focus({preventScroll:!0})}))}),x=H(()=>{if(o)return c.goToOption(_e.Nothing);c.goToOption(_e.Specific,n)}),v=Rd(),w=H(F=>v.update(F)),O=H(F=>{v.wasMoved(F)&&(o||u||c.goToOption(_e.Specific,n,0))}),L=H(F=>{v.wasMoved(F)&&(o||u&&c.goToOption(_e.Nothing))}),A=Se(()=>({active:u,selected:d,disabled:o}),[u,d,o]);return lt({ourProps:{id:n,ref:f,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:m,onFocus:x,onPointerEnter:w,onMouseEnter:w,onPointerMove:O,onMouseMove:O,onPointerLeave:L,onMouseLeave:L},theirProps:s,slot:A,defaultTag:Kd,name:"Listbox.Option"})}let Yd=et(Ud),Xd=et(Hd),Qd=et(zd),Zd=et(Gd),ef=et(Jd),Ut=Object.assign(Yd,{Button:Xd,Label:Qd,Options:Zd,Option:ef});function tf(e=0){let[t,r]=te(e),n=Oo(),o=pt(c=>{n.current&&r(u=>u|c)},[t,n]),i=pt(c=>!!(t&c),[t]),s=pt(c=>{n.current&&r(u=>u&~c)},[r,n]),a=pt(c=>{n.current&&r(u=>u^c)},[r]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}function rf(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function vn(e,...t){e&&t.length>0&&e.classList.add(...t)}function bn(e,...t){e&&t.length>0&&e.classList.remove(...t)}function nf(e,t){let r=st();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,s]=[n,o].map(c=>{let[u=0]=c.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,l)=>l-d);return u}),a=i+s;if(a!==0){r.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&u.dispose()})});let c=r.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),c())})}else t();return r.add(()=>t()),r.dispose}function of(e,t,r,n){let o=r?"enter":"leave",i=st(),s=n!==void 0?rf(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=me(o,{enter:()=>t.enter,leave:()=>t.leave}),c=me(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=me(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return bn(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),vn(e,...t.base,...a,...u),i.nextFrame(()=>{bn(e,...t.base,...a,...u),vn(e,...t.base,...a,...c),nf(e,()=>(bn(e,...t.base,...a),vn(e,...t.base,...t.entered),s()))}),i.dispose}function sf({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:i}){let s=Oo(),a=$t(),c=He(r);Ce(()=>{e&&(c.current="enter")},[e]),Ce(()=>{let u=st();a.add(u.dispose);let d=t.current;if(d&&c.current!=="idle"&&s.current)return u.dispose(),o.current(c.current),u.add(of(d,n.current,c.current==="enter",()=>{u.dispose(),i.current(c.current)})),u.dispose},[r])}function rt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Xr=Qe(null);Xr.displayName="TransitionContext";var af=(e=>(e.Visible="visible",e.Hidden="hidden",e))(af||{});function lf(){let e=$e(Xr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function cf(){let e=$e(Qr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Qr=Qe(null);Qr.displayName="NestingContext";function Zr(e){return"children"in e?Zr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Na(e,t){let r=He(e),n=q([]),o=Oo(),i=$t(),s=H((g,f=ot.Hidden)=>{let m=n.current.findIndex(({el:x})=>x===g);m!==-1&&(me(f,{[ot.Unmount](){n.current.splice(m,1)},[ot.Hidden](){n.current[m].state="hidden"}}),i.microTask(()=>{var x;!Zr(n)&&o.current&&((x=r.current)==null||x.call(r))}))}),a=H(g=>{let f=n.current.find(({el:m})=>m===g);return f?f.state!=="visible"&&(f.state="visible"):n.current.push({el:g,state:"visible"}),()=>s(g,ot.Unmount)}),c=q([]),u=q(Promise.resolve()),d=q({enter:[],leave:[],idle:[]}),l=H((g,f,m)=>{c.current.splice(0),t&&(t.chains.current[f]=t.chains.current[f].filter(([x])=>x!==g)),t==null||t.chains.current[f].push([g,new Promise(x=>{c.current.push(x)})]),t==null||t.chains.current[f].push([g,new Promise(x=>{Promise.all(d.current[f].map(([v,w])=>w)).then(()=>x())})]),f==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>m(f)):m(f)}),h=H((g,f,m)=>{Promise.all(d.current[f].splice(0).map(([x,v])=>v)).then(()=>{var x;(x=c.current.shift())==null||x()}).then(()=>m(f))});return Se(()=>({children:n,register:a,unregister:s,onStart:l,onStop:h,wait:u,chains:d}),[a,s,n,l,h,d,u])}function uf(){}let df=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ni(e){var t;let r={};for(let n of df)r[n]=(t=e[n])!=null?t:uf;return r}function ff(e){let t=q(Ni(e));return re(()=>{t.current=Ni(e)},[e]),t}let pf="div",Da=kr.RenderStrategy;function hf(e,t){var r,n;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:c,enterFrom:u,enterTo:d,entered:l,leave:h,leaveFrom:g,leaveTo:f,...m}=e,x=q(null),v=_t(x,t),w=(r=m.unmount)==null||r?ot.Unmount:ot.Hidden,{show:O,appear:L,initial:A}=lf(),[F,R]=te(O?"visible":"hidden"),B=cf(),{register:V,unregister:Z}=B;re(()=>V(x),[V,x]),re(()=>{if(w===ot.Hidden&&x.current){if(O&&F!=="visible"){R("visible");return}return me(F,{hidden:()=>Z(x),visible:()=>V(x)})}},[F,x,V,Z,O,w]);let ve=He({base:rt(m.className),enter:rt(c),enterFrom:rt(u),enterTo:rt(d),entered:rt(l),leave:rt(h),leaveFrom:rt(g),leaveTo:rt(f)}),I=ff({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),N=So();re(()=>{if(N&&F==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,F,N]);let Q=A&&!L,le=L&&O&&A,ye=(()=>!N||Q?"idle":O?"enter":"leave")(),ie=tf(0),Pe=H(Te=>me(Te,{enter:()=>{ie.addFlag(xe.Opening),I.current.beforeEnter()},leave:()=>{ie.addFlag(xe.Closing),I.current.beforeLeave()},idle:()=>{}})),ze=H(Te=>me(Te,{enter:()=>{ie.removeFlag(xe.Opening),I.current.afterEnter()},leave:()=>{ie.removeFlag(xe.Closing),I.current.afterLeave()},idle:()=>{}})),Oe=Na(()=>{R("hidden"),Z(x)},B);sf({immediate:le,container:x,classes:ve,direction:ye,onStart:He(Te=>{Oe.onStart(x,Te,Pe)}),onStop:He(Te=>{Oe.onStop(x,Te,ze),Te==="leave"&&!Zr(Oe)&&(R("hidden"),Z(x))})});let Fe=m,We={ref:v};return le?Fe={...Fe,className:Cr(m.className,...ve.current.enter,...ve.current.enterFrom)}:(Fe.className=Cr(m.className,(n=x.current)==null?void 0:n.className),Fe.className===""&&delete Fe.className),D.createElement(Qr.Provider,{value:Oe},D.createElement(La,{value:me(F,{visible:xe.Open,hidden:xe.Closed})|ie.flags},lt({ourProps:We,theirProps:Fe,defaultTag:pf,features:Da,visible:F==="visible",name:"Transition.Child"})))}function mf(e,t){let{show:r,appear:n=!1,unmount:o=!0,...i}=e,s=q(null),a=_t(s,t);So();let c=ko();if(r===void 0&&c!==null&&(r=(c&xe.Open)===xe.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=te(r?"visible":"hidden"),l=Na(()=>{d("hidden")}),[h,g]=te(!0),f=q([r]);Ce(()=>{h!==!1&&f.current[f.current.length-1]!==r&&(f.current.push(r),g(!1))},[f,r]);let m=Se(()=>({show:r,appear:n,initial:h}),[r,n,h]);re(()=>{if(r)d("visible");else if(!Zr(l))d("hidden");else{let O=s.current;if(!O)return;let L=O.getBoundingClientRect();L.x===0&&L.y===0&&L.width===0&&L.height===0&&d("hidden")}},[r,l]);let x={unmount:o},v=H(()=>{var O;h&&g(!1),(O=e.beforeEnter)==null||O.call(e)}),w=H(()=>{var O;h&&g(!1),(O=e.beforeLeave)==null||O.call(e)});return D.createElement(Qr.Provider,{value:l},D.createElement(Xr.Provider,{value:m},lt({ourProps:{...x,as:X,children:D.createElement(Ia,{ref:a,...x,...i,beforeEnter:v,beforeLeave:w})},theirProps:{},defaultTag:X,features:Da,visible:u==="visible",name:"Transition"})))}function yf(e,t){let r=$e(Xr)!==null,n=ko()!==null;return D.createElement(D.Fragment,null,!r&&n?D.createElement(In,{ref:t,...e}):D.createElement(Ia,{ref:t,...e}))}let In=et(mf),Ia=et(hf),gf=et(yf),vf=Object.assign(In,{Child:gf,Root:In});const bf=at(Ut.Button,{target:"e12f85wo1"})(()=>({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"}})," ",({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)"}},";"),_f=at(Ut.Label,{target:"e12f85wo0"})(({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))"},";");function Di(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Ii(e,t,r){var n=[],o=jr(e,n,r);return n.length<2?r:o+t(n)}var wf=function(t){var r=Zn(t);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];var l=yt(u,r.registered,void 0);return zr(r,l,!1),r.key+"-"+l.name},o=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];var l=yt(u,r.registered),h="animation-"+l.name;return Di(r,{name:l.name,styles:"@keyframes "+h+"{"+l.styles+"}"}),h},i=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];var l=yt(u,r.registered);Di(r,l)},s=function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];return Ii(r.registered,n,xf(u))};return{css:n,cx:s,injectGlobal:i,keyframes:o,hydrate:function(c){c.forEach(function(u){r.inserted[u]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:jr.bind(null,r.registered),merge:Ii.bind(null,r.registered,n)}},xf=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{i="";for(var s in o)o[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}}return r},Ba=wf({key:"css"}),_n=Ba.cx,wn=Ba.css;function Sf({title:e,titleId:t,...r},n){return W("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?W("title",{id:t},e):null,W("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))}const Ef=Ze(Sf),Cf=Ef;function kf({title:e,titleId:t,...r},n){return W("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?W("title",{id:t},e):null,W("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))}const Of=Ze(kf),Tf=Of,Bn=Ze(({inputLabel:e,items:t,value:r,className:n,onChange:o,error:i,helperText:s,variant:a},c)=>S("div",{className:n},S(Ut,{value:r||"",onChange:d=>{o(d)}},({open:d})=>{var l;return S(X,null,S(_f,{variant:a},e),S("div",{css:{position:"relative",marginTop:"0.5rem"}},S(bf,{as:"button",ref:c,hasError:!!i},S("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"}},((l=t.find(h=>h.key==r))==null?void 0:l.displayValue)??"Select"),S("span",{css:{pointerEvents:"none",position:"absolute",top:"0px",bottom:"0px",right:"0px",display:"flex",alignItems:"center",paddingRight:"0.75rem"}},S(Cf,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},"aria-hidden":"true"}))),S(vf,{show:d,leave:_n(wn({name:"1sgcnq9",styles:"transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 1, 1);transition-duration:100ms"})),leaveFrom:_n(wn({name:"3ix1vd",styles:"opacity:1"})),leaveTo:_n(wn({name:"mws4fn",styles:"opacity:0"}))},S(Ut.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"}}},t.map(h=>S(Ut.Option,{key:h.key,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:h.key},S("span",{css:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",'&[data-headlessui-state~="selected"]':{fontWeight:"600"},':where([data-headlessui-state~="selected"]) &':{fontWeight:"600"}}},h.displayValue),S("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))"}}},S(Tf,{css:{height:"1.25rem",width:"1.25rem"},"aria-hidden":"true"}))))))))}),(i==null?void 0:i.message)&&S("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))"}},i.message),s&&S("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}},s)));function Or(){return Or=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},Or.apply(this,arguments)}const Af=[{key:"goCardless",displayValue:"GoCardless"},{key:"westpac",displayValue:"Westpac"}],Va=()=>{const[e,t]=te(),[r,n]=te(!1),[o,i]=te(),{control:s,handleSubmit:a,watch:c}=ra({mode:"onChange",defaultValues:{source:"goCardless"}});re(()=>{const d=c(()=>{t(void 0),i(void 0)});return()=>d.unsubscribe()},[c]);const u=async d=>{i(void 0),n(!0);try{const l=await nd(d);t(l),n(!1)}catch(l){if(n(!1),wo.isAxiosError(l)){const h=await Sa(l);l.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please ensure the uploaded file is valid and in the correct format. CorrelationId: ${h.correlationId??"Unknown"}`)}}};return S(X,null,S("div",{css:{marginBottom:"1.25rem"}},S("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},"Create Catch-E Receipt Batch")),S("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))"}}},S("form",{onSubmit:a(u)},S(dt,{name:"source",control:s,render:({field:d})=>S(Bn,Or({inputLabel:"Source",css:{marginBottom:"1rem"},items:Af},d))}),S(dt,{name:"transactionsFile",control:s,rules:{validate:{validFile:d=>d.name.split(".")[1]==="csv"||"File must be a '.csv'"},required:"Please upload a csv"},render:({field:d,fieldState:l})=>S(vc,Or({inputLabel:"Transactions"},d,{error:l.error}))}),S("div",{css:{marginTop:"2rem"}},r?S(Ca,null):S(xo,{type:"submit"},"Submit"))),S("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"}},o&&S("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"}},o),e&&S(Ea,{blob:e,fileName:"receipt_batch.zip"},"Download"))))},Rf=at("button",{target:"e1tl4qq20"})({whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600"}," ",({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))"}},";"),$f=({tabs:e,currentTab:t,onChange:r,className:n})=>S("div",{className:n},S("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"}},S("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"},e.map(o=>S(Rf,{key:o.displayName,type:"button",onClick:()=>r(o.id),"aria-current":o.id===t?"page":void 0,isCurrent:o.id===t},o.displayName))))),Ua=(e,t)=>Array.from({length:t-e+1},(r,n)=>e+n),Pf=({className:e,inputLabel:t,items:r,value:n,onChange:o})=>{const i=s=>{const a=s.target;o(a.id)};return S("div",{className:e},S("label",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},t),S("fieldset",{css:{marginTop:"0.25rem"}},S("legend",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},t),S("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))"}}}},r.map(s=>S("div",{key:s.key,css:{display:"flex",alignItems:"center"}},S("input",{id:s.key,name:s.key,type:"radio",checked:n===s.key,onClick:i,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)"}}}),S("label",{htmlFor:s.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))"}},s.displayValue))))))},Ff=at("input",{target:"eiiy7i71"})(()=>({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"}})," ",({prefix:e})=>e?{paddingLeft:"1.75rem"}:{paddingLeft:"0.75rem"}," ",({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)"}},";"),Lf=at("div",{target:"eiiy7i70"})(({isHidden:e})=>e?{display:"none"}:{display:"block"},";"),Bi=Ze(({label:e,id:t,type:r,placeholder:n,value:o,className:i,onChange:s,onBlur:a,error:c,isHidden:u},d)=>{const l=g=>{g.target instanceof HTMLInputElement&&s(g.target.value.trim())},h=g=>{g.target instanceof HTMLInputElement&&a&&a(g.target.value.trim())};return S(Lf,{isHidden:u,className:i},S("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))"}},e),S("div",{css:{marginTop:"0.5rem"}},S(Ff,{type:r,value:o,name:t,id:t,placeholder:n,onChange:l,onBlur:h,hasError:!!c,ref:d})),(c==null?void 0:c.message)&&S("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))"}},c.message))});function ft(){return ft=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},ft.apply(this,arguments)}const Vn=new Date,Nf=new Intl.DateTimeFormat("en-us",{month:"short"}),Df=Ua(1,12).map(e=>({key:e,displayValue:Nf.format(new Date().setMonth(e-1))})),If=Ua(2018,Vn.getFullYear()).map(e=>({key:e,displayValue:e.toString()})),Bf=[{key:"GroupCode",displayValue:"Group code"},{key:"ClientId",displayValue:"Client Id"}],Vf=()=>{const[e,t]=te(),[r,n]=te(!1),[o,i]=te(),{control:s,handleSubmit:a,watch:c}=ra({mode:"onBlur",defaultValues:{year:Vn.getFullYear(),month:Vn.getMonth(),entityType:"GroupCode"}}),u=()=>c("entityType"),d=async l=>{i(void 0),n(!0);try{const h=l.entityType=="GroupCode"?await od(l):await id(l);t({blob:h,inputs:l}),n(!1)}catch(h){if(n(!1),wo.isAxiosError(h)){const g=await Sa(h);h.status===401?i("Authenticated session expired. Please refresh the page to start a new session."):i(`Something went wrong. Please ensure the Group Code or Client Id provided is valid.. CorrelationId: ${g.correlationId??"Unknown"}`)}}};return S(X,null,S("div",{css:{marginBottom:"1.25rem"}},S("h1",{css:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}},"Create Monthly Net ITC Report")),S("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))"}}},S("form",{onSubmit:a(d)},S("div",{css:{marginBottom:"1rem",display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1rem"}},S(dt,{name:"month",control:s,render:({field:l})=>S(Bn,ft({inputLabel:"Month",css:{gridColumn:"span 1 / span 1"},items:Df},l))}),S(dt,{name:"year",control:s,render:({field:l})=>S(Bn,ft({inputLabel:"Year",css:{gridColumn:"span 1 / span 1"},items:If},l))})),S(dt,{name:"entityType",control:s,render:({field:l})=>S(Pf,ft({inputLabel:"Identifier type",css:{marginBottom:"1rem"},items:Bf},l))}),S(dt,{name:"groupCode",control:s,rules:{validate:{requiresGroupCode:l=>u()!=="GroupCode"||!!l||"Group Code is required",validGroupCode:l=>u()!=="GroupCode"||/^[A-Z0-9]+$/.test(l)||"Group Code is not valid"}},render:({field:l,fieldState:h})=>S(Bi,ft({label:"Group code",id:"groupCode",type:"text",isHidden:u()!=="GroupCode",error:h.error},l))}),S(dt,{name:"clientId",control:s,rules:{validate:{requiresClientId:l=>u()!=="ClientId"||!!l||"Client Id is required"}},render:({field:l,fieldState:h})=>S(Bi,ft({label:"Client Id",id:"clientId",type:"number",isHidden:u()!=="ClientId",error:h.error},l))}),S("div",{css:{marginTop:"1rem"}},r?S(Ca,null):S(xo,{type:"submit"},"Submit"))),S("div",{css:{marginTop:"1.25rem",paddingTop:"1.25rem"}},o&&S("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"}},o),(e==null?void 0:e.blob)&&S(Ea,{blob:e.blob,fileName:`${e.inputs.entityType==="GroupCode"?e.inputs.groupCode:e.inputs.clientId}_${e.inputs.month}_${e.inputs.year}.csv`},"Download"))))},Vi=[{id:"receiptBatch",displayName:"Receipt Batch",component:Va},{id:"netItc",displayName:"Net ITC",component:X}],Uf=e=>{switch(e){case"receiptBatch":return S(Va,null);case"netItc":return S(Vf,null);default:return S(X,null)}},Mf=()=>{const[e,t]=te(Vi[0].id),r=Uf(e);return S("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)"}},S("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"}}},S($f,{tabs:Vi,currentTab:e,onChange:t})),S("div",{css:{paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"1.25rem",paddingBottom:"1.25rem","@media (min-width: 640px)":{padding:"1.5rem"}}},r))},Hf=(e,t)=>{const[r,n]=te();return re(()=>{if(t&&t.current){if(document.getElementsByTagName(e).length<1)throw new Error("React Element is not connected to DOM yet. Component will unmount and remount to try again.");n(Zn({container:t.current,key:e}))}},[e,t]),{EmotionProvider:({children:i})=>r?S(cc,{value:r},i):S(X,null)}},jf=ao({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}),zf=ao`
|
|
16
14
|
:host {
|
|
17
15
|
--fl-color-primary-900: #000563;
|
|
18
16
|
--fl-color-primary-800: #031495;
|
|
@@ -28,6 +26,6 @@
|
|
|
28
26
|
|
|
29
27
|
font-family: Inter, 'Source Sans Pro', sans-serif;
|
|
30
28
|
}
|
|
31
|
-
`,
|
|
29
|
+
`,Wf=()=>S(X,null,S(sn,{styles:ao`
|
|
32
30
|
${{"*, ::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,/*!*/ /*!*/)"},"::before, ::after":{"--tw-content":"''"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:"4",fontFamily:'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontFeatureSettings:" normal",fontVariationSettings:" normal"},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',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",color:"inherit",margin:"0",padding:"0"},"button, select":{textTransform:"none"},"button, [type='button'], [type='reset'], [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,/*!*/ /*!*/)"},"[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")`},"[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"}}}
|
|
33
|
-
`}),S(
|
|
31
|
+
`}),S(sn,{styles:jf}),S(sn,{styles:zf})),qf=e=>{const t=q(null),{EmotionProvider:r}=Hf("salpac-finops",t);return re(()=>{rd(e["backend-url"],e["access-token"])},[e]),S(X,null,S("head",{ref:t}),S(r,null,S(Wf,null),S("body",null,S(Mf,null))))};el(qf,"salpac-finops",["backend-url","access-token"],{shadow:!0});
|