cemtrik-dependencies 1.0.140 → 1.0.142

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(R,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],u):(R=typeof globalThis<"u"?globalThis:R||self,u(R.MyApp={},R.React,R.ReactDOM))})(this,function(R,u,Tt){"use strict";function Sr(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const E=Sr(u),Ot=(e,n=!1)=>{function t(l){if(typeof l!="object"||l===null)return l;const o=Array.isArray(l)?[]:{};for(const i in l)l.hasOwnProperty(i)&&!n&&(o[i]=t(l[i]));return o}return e.map(l=>t(l))},dn=e=>/^(?:[^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*|"[^\n"]+")@(?:[^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,63}$/i.test(e);function I(...e){return e.filter(Boolean).join(" ")}const Cr=e=>{const n=e.split(" ");let t=e.slice(0,2);return n.length>1&&(t=`${e.at(0)}${n[n.length-1].slice(0,1)}`),t},Tr=e=>typeof e!="string"&&Promise.resolve(e)instanceof Promise,Or="The user aborted a request.",jr="signal is aborted without reason",Nr=({id:e,close:n,isPathsTest:t=!1,isTest:r=!1})=>{const l=u.useCallback(o=>{o.some(s=>s.getAttribute===void 0?!1:s.getAttribute("id")===e)||n()},[n,e]);u.useEffect(()=>{const o=i=>{const s=i.composedPath();s===void 0||t||(r&&(s[0].getAttribute=()=>e),l(s))};return window.addEventListener("click",o),()=>{window.removeEventListener("click",o)}},[l,t,r,e])};let De={};const kr=()=>{const[e,n]=u.useState({}),[t,r]=u.useState({}),[l,o]=u.useState([]);u.useEffect(()=>{De={}},[]);const i=h=>b=>{b.preventDefault(),b.stopPropagation(),h(e)},s=(h,b,m)=>{const{checked:g,value:v,name:x,type:y,id:w}=h.target,T={radio:w,checkbox:g};De={...m,...De,[x]:T[y]??v},n({...De,[x]:T[y]??v}),b({...De,[x]:T[y]??v})},a=u.useCallback((h,b)=>{De={...De,[h]:b},n(m=>({...m,[h]:b}))},[]),c=u.useCallback((h,b)=>{const m=b.filter(g=>h[g]===""||h[g]===void 0);return m.forEach(g=>r(v=>({...v,[g]:"Este campo es requerido"}))),o(m),m.length>0},[]);return{handleSubmit:i,handleChange:s,setValuesDefault:a,validateFields:c,errors:l,model:e,handleError:(h,b)=>{b.forEach(m=>r(g=>({...g,[m]:h}))),o(b)},messageError:t,setModel:n}},Fr=e=>{const[n,t]=u.useState(!0),[r,l]=u.useState(!1),o=u.useCallback((i,s)=>{const a=e.match(/[0-9]+/g);if(a===null)return;const[c]=a;s=Math.min(window.innerWidth,window.outerWidth);const p=i?s>=Number(c):s<=Number(c);l(p)},[e]);return u.useEffect(()=>{const i=/\(min-width:\s?[0-9]+px\)/gi.test(e),s=/\(max-width:\s?[0-9]+px\)/gi.test(e);if(!i&&!s&&t(!1),!i&&!s)return;const a=Math.min(window.innerWidth,window.outerWidth);o(i,a)},[e,o]),u.useEffect(()=>{if(!n)return;const i=Math.min(window.innerWidth,window.outerWidth);function s(){const a=/min-width/gi.test(e);o(a,i)}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[n,e,o]),r},jt=()=>{const[e,n]=u.useState({width:0,height:0});return u.useEffect(()=>{const t=()=>{const r=Math.min(window.innerWidth,window.outerWidth),l=Math.min(window.innerHeight,window.outerHeight);n({width:r,height:l})};return requestAnimationFrame(()=>t()),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),e};function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nt={exports:{}},Ye={};/**
1
+ (function(R,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],u):(R=typeof globalThis<"u"?globalThis:R||self,u(R.MyApp={},R.React,R.ReactDOM))})(this,function(R,u,Ct){"use strict";function Er(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const E=Er(u),Tt=(e,n=!1)=>{function t(o){if(typeof o!="object"||o===null)return o;const l=Array.isArray(o)?[]:{};for(const i in o)o.hasOwnProperty(i)&&!n&&(l[i]=t(o[i]));return l}return e.map(o=>t(o))},cn=e=>/^(?:[^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*|"[^\n"]+")@(?:[^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,63}$/i.test(e);function P(...e){return e.filter(Boolean).join(" ")}const Sr=e=>{const n=e.split(" ");let t=e.slice(0,2);return n.length>1&&(t=`${e.at(0)}${n[n.length-1].slice(0,1)}`),t},Cr=e=>typeof e!="string"&&Promise.resolve(e)instanceof Promise,Tr="The user aborted a request.",Or="signal is aborted without reason",jr=({id:e,close:n,isPathsTest:t=!1,isTest:r=!1})=>{const o=u.useCallback(l=>{l.some(s=>s.getAttribute===void 0?!1:s.getAttribute("id")===e)||n()},[n,e]);u.useEffect(()=>{const l=i=>{const s=i.composedPath();s===void 0||t||(r&&(s[0].getAttribute=()=>e),o(s))};return window.addEventListener("click",l),()=>{window.removeEventListener("click",l)}},[o,t,r,e])},Nr=()=>{const e=u.useRef({}),[n,t]=u.useState({}),[r,o]=u.useState({}),[l,i]=u.useState([]);u.useEffect(()=>{e.current={}},[]);const s=b=>f=>{f.preventDefault(),f.stopPropagation(),b(n)},a=(b,f,g)=>{const{checked:v,value:x,name:y,type:w,id:T}=b.target,k={radio:T,checkbox:v};e.current={...g,...e.current,[y]:k[w]??x},t({...e.current,[y]:k[w]??x}),f({...e.current,[y]:k[w]??x})},c=u.useCallback((b,f)=>{e.current={...e.current,[b]:f},t(g=>({...g,[b]:f}))},[]),p=u.useCallback((b,f)=>{const g=f.filter(v=>b[v]===""||b[v]===void 0);return g.forEach(v=>o(x=>({...x,[v]:"Este campo es requerido"}))),i(g),g.length>0},[]);return{handleSubmit:s,handleChange:a,setValuesDefault:c,validateFields:p,errors:l,model:n,handleError:(b,f)=>{f.forEach(g=>o(v=>({...v,[g]:b}))),i(f)},messageError:r,setModel:t}},kr=e=>{const[n,t]=u.useState(!0),[r,o]=u.useState(!1),l=u.useCallback((i,s)=>{const a=e.match(/[0-9]+/g);if(a===null)return;const[c]=a;s=Math.min(window.innerWidth,window.outerWidth);const p=i?s>=Number(c):s<=Number(c);o(p)},[e]);return u.useEffect(()=>{const i=/\(min-width:\s?[0-9]+px\)/gi.test(e),s=/\(max-width:\s?[0-9]+px\)/gi.test(e);if(!i&&!s&&t(!1),!i&&!s)return;const a=Math.min(window.innerWidth,window.outerWidth);l(i,a)},[e,l]),u.useEffect(()=>{if(!n)return;const i=Math.min(window.innerWidth,window.outerWidth);function s(){const a=/min-width/gi.test(e);l(a,i)}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[n,e,l]),r},Ot=()=>{const[e,n]=u.useState({width:0,height:0});return u.useEffect(()=>{const t=()=>{const r=Math.min(window.innerWidth,window.outerWidth),o=Math.min(window.innerHeight,window.outerHeight);n({width:r,height:o})};return requestAnimationFrame(()=>t()),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),e};function Fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt={exports:{}},Ve={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var fn;function Pr(){if(fn)return Ye;fn=1;var e=u,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,a,c){var p,h={},b=null,m=null;c!==void 0&&(b=""+c),a.key!==void 0&&(b=""+a.key),a.ref!==void 0&&(m=a.ref);for(p in a)r.call(a,p)&&!o.hasOwnProperty(p)&&(h[p]=a[p]);if(s&&s.defaultProps)for(p in a=s.defaultProps,a)h[p]===void 0&&(h[p]=a[p]);return{$$typeof:n,type:s,key:b,ref:m,props:h,_owner:l.current}}return Ye.Fragment=t,Ye.jsx=i,Ye.jsxs=i,Ye}var qe={};/**
9
+ */var dn;function Ir(){if(dn)return Ve;dn=1;var e=u,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function i(s,a,c){var p,h={},b=null,f=null;c!==void 0&&(b=""+c),a.key!==void 0&&(b=""+a.key),a.ref!==void 0&&(f=a.ref);for(p in a)r.call(a,p)&&!l.hasOwnProperty(p)&&(h[p]=a[p]);if(s&&s.defaultProps)for(p in a=s.defaultProps,a)h[p]===void 0&&(h[p]=a[p]);return{$$typeof:n,type:s,key:b,ref:f,props:h,_owner:o.current}}return Ve.Fragment=t,Ve.jsx=i,Ve.jsxs=i,Ve}var Ye={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,25 +14,25 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var mn;function $r(){return mn||(mn=1,process.env.NODE_ENV!=="production"&&function(){var e=u,n=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,v="@@iterator";function x(d){if(d===null||typeof d!="object")return null;var S=g&&d[g]||d[v];return typeof S=="function"?S:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(d){{for(var S=arguments.length,O=new Array(S>1?S-1:0),L=1;L<S;L++)O[L-1]=arguments[L];T("error",d,O)}}function T(d,S,O){{var L=y.ReactDebugCurrentFrame,ee=L.getStackAddendum();ee!==""&&(S+="%s",O=O.concat([ee]));var oe=O.map(function(Z){return String(Z)});oe.unshift("Warning: "+S),Function.prototype.apply.call(console[d],console,oe)}}var P=!1,k=!1,A=!1,K=!1,Y=!1,D;D=Symbol.for("react.module.reference");function _(d){return!!(typeof d=="string"||typeof d=="function"||d===r||d===o||Y||d===l||d===c||d===p||K||d===m||P||k||A||typeof d=="object"&&d!==null&&(d.$$typeof===b||d.$$typeof===h||d.$$typeof===i||d.$$typeof===s||d.$$typeof===a||d.$$typeof===D||d.getModuleId!==void 0))}function B(d,S,O){var L=d.displayName;if(L)return L;var ee=S.displayName||S.name||"";return ee!==""?O+"("+ee+")":O}function G(d){return d.displayName||"Context"}function le(d){if(d==null)return null;if(typeof d.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case r:return"Fragment";case t:return"Portal";case o:return"Profiler";case l:return"StrictMode";case c:return"Suspense";case p:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case s:var S=d;return G(S)+".Consumer";case i:var O=d;return G(O._context)+".Provider";case a:return B(d,d.render,"ForwardRef");case h:var L=d.displayName||null;return L!==null?L:le(d.type)||"Memo";case b:{var ee=d,oe=ee._payload,Z=ee._init;try{return le(Z(oe))}catch{return null}}}return null}var ae=Object.assign,C=0,re,q,J,N,M,W,Q;function pe(){}pe.__reactDisabledLog=!0;function ce(){{if(C===0){re=console.log,q=console.info,J=console.warn,N=console.error,M=console.group,W=console.groupCollapsed,Q=console.groupEnd;var d={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}C++}}function Te(){{if(C--,C===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ae({},d,{value:re}),info:ae({},d,{value:q}),warn:ae({},d,{value:J}),error:ae({},d,{value:N}),group:ae({},d,{value:M}),groupCollapsed:ae({},d,{value:W}),groupEnd:ae({},d,{value:Q})})}C<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=y.ReactCurrentDispatcher,$;function H(d,S,O){{if($===void 0)try{throw Error()}catch(ee){var L=ee.stack.trim().match(/\n( *(at )?)/);$=L&&L[1]||""}return`
18
- `+$+d}}var F=!1,U;{var z=typeof WeakMap=="function"?WeakMap:Map;U=new z}function he(d,S){if(!d||F)return"";{var O=U.get(d);if(O!==void 0)return O}var L;F=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=ye.current,ye.current=null,ce();try{if(S){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Fe){L=Fe}Reflect.construct(d,[],Z)}else{try{Z.call()}catch(Fe){L=Fe}d.call(Z.prototype)}}else{try{throw Error()}catch(Fe){L=Fe}d()}}catch(Fe){if(Fe&&L&&typeof Fe.stack=="string"){for(var V=Fe.stack.split(`
17
+ */var fn;function Pr(){return fn||(fn=1,process.env.NODE_ENV!=="production"&&function(){var e=u,n=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator,v="@@iterator";function x(d){if(d===null||typeof d!="object")return null;var S=g&&d[g]||d[v];return typeof S=="function"?S:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(d){{for(var S=arguments.length,O=new Array(S>1?S-1:0),L=1;L<S;L++)O[L-1]=arguments[L];T("error",d,O)}}function T(d,S,O){{var L=y.ReactDebugCurrentFrame,ee=L.getStackAddendum();ee!==""&&(S+="%s",O=O.concat([ee]));var oe=O.map(function(Z){return String(Z)});oe.unshift("Warning: "+S),Function.prototype.apply.call(console[d],console,oe)}}var k=!1,F=!1,A=!1,K=!1,Y=!1,D;D=Symbol.for("react.module.reference");function _(d){return!!(typeof d=="string"||typeof d=="function"||d===r||d===l||Y||d===o||d===c||d===p||K||d===f||k||F||A||typeof d=="object"&&d!==null&&(d.$$typeof===b||d.$$typeof===h||d.$$typeof===i||d.$$typeof===s||d.$$typeof===a||d.$$typeof===D||d.getModuleId!==void 0))}function B(d,S,O){var L=d.displayName;if(L)return L;var ee=S.displayName||S.name||"";return ee!==""?O+"("+ee+")":O}function G(d){return d.displayName||"Context"}function le(d){if(d==null)return null;if(typeof d.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case r:return"Fragment";case t:return"Portal";case l:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case p:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case s:var S=d;return G(S)+".Consumer";case i:var O=d;return G(O._context)+".Provider";case a:return B(d,d.render,"ForwardRef");case h:var L=d.displayName||null;return L!==null?L:le(d.type)||"Memo";case b:{var ee=d,oe=ee._payload,Z=ee._init;try{return le(Z(oe))}catch{return null}}}return null}var ae=Object.assign,C=0,re,q,J,N,M,W,Q;function pe(){}pe.__reactDisabledLog=!0;function ce(){{if(C===0){re=console.log,q=console.info,J=console.warn,N=console.error,M=console.group,W=console.groupCollapsed,Q=console.groupEnd;var d={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}C++}}function Te(){{if(C--,C===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ae({},d,{value:re}),info:ae({},d,{value:q}),warn:ae({},d,{value:J}),error:ae({},d,{value:N}),group:ae({},d,{value:M}),groupCollapsed:ae({},d,{value:W}),groupEnd:ae({},d,{value:Q})})}C<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=y.ReactCurrentDispatcher,$;function H(d,S,O){{if($===void 0)try{throw Error()}catch(ee){var L=ee.stack.trim().match(/\n( *(at )?)/);$=L&&L[1]||""}return`
18
+ `+$+d}}var I=!1,U;{var z=typeof WeakMap=="function"?WeakMap:Map;U=new z}function he(d,S){if(!d||I)return"";{var O=U.get(d);if(O!==void 0)return O}var L;I=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=ye.current,ye.current=null,ce();try{if(S){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Fe){L=Fe}Reflect.construct(d,[],Z)}else{try{Z.call()}catch(Fe){L=Fe}d.call(Z.prototype)}}else{try{throw Error()}catch(Fe){L=Fe}d()}}catch(Fe){if(Fe&&L&&typeof Fe.stack=="string"){for(var V=Fe.stack.split(`
19
19
  `),xe=L.stack.split(`
20
20
  `),me=V.length-1,ve=xe.length-1;me>=1&&ve>=0&&V[me]!==xe[ve];)ve--;for(;me>=1&&ve>=0;me--,ve--)if(V[me]!==xe[ve]){if(me!==1||ve!==1)do if(me--,ve--,ve<0||V[me]!==xe[ve]){var Ee=`
21
- `+V[me].replace(" at new "," at ");return d.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",d.displayName)),typeof d=="function"&&U.set(d,Ee),Ee}while(me>=1&&ve>=0);break}}}finally{F=!1,ye.current=oe,Te(),Error.prepareStackTrace=ee}var Ve=d?d.displayName||d.name:"",Er=Ve?H(Ve):"";return typeof d=="function"&&U.set(d,Er),Er}function ge(d,S,O){return he(d,!1)}function Ue(d){var S=d.prototype;return!!(S&&S.isReactComponent)}function Et(d,S,O){if(d==null)return"";if(typeof d=="function")return he(d,Ue(d));if(typeof d=="string")return H(d);switch(d){case c:return H("Suspense");case p:return H("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case a:return ge(d.render);case h:return Et(d.type,S,O);case b:{var L=d,ee=L._payload,oe=L._init;try{return Et(oe(ee),S,O)}catch{}}}return""}var St=Object.prototype.hasOwnProperty,cr={},dr=y.ReactDebugCurrentFrame;function Ct(d){if(d){var S=d._owner,O=Et(d.type,d._source,S?S.type:null);dr.setExtraStackFrame(O)}else dr.setExtraStackFrame(null)}function Us(d,S,O,L,ee){{var oe=Function.call.bind(St);for(var Z in d)if(oe(d,Z)){var V=void 0;try{if(typeof d[Z]!="function"){var xe=Error((L||"React class")+": "+O+" type `"+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[Z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xe.name="Invariant Violation",xe}V=d[Z](S,Z,L,O,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(me){V=me}V&&!(V instanceof Error)&&(Ct(ee),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",O,Z,typeof V),Ct(null)),V instanceof Error&&!(V.message in cr)&&(cr[V.message]=!0,Ct(ee),w("Failed %s type: %s",O,V.message),Ct(null))}}}var Hs=Array.isArray;function ln(d){return Hs(d)}function Vs(d){{var S=typeof Symbol=="function"&&Symbol.toStringTag,O=S&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O}}function Ys(d){try{return fr(d),!1}catch{return!0}}function fr(d){return""+d}function mr(d){if(Ys(d))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vs(d)),fr(d)}var st=y.ReactCurrentOwner,qs={key:!0,ref:!0,__self:!0,__source:!0},pr,hr,sn;sn={};function Gs(d){if(St.call(d,"ref")){var S=Object.getOwnPropertyDescriptor(d,"ref").get;if(S&&S.isReactWarning)return!1}return d.ref!==void 0}function Zs(d){if(St.call(d,"key")){var S=Object.getOwnPropertyDescriptor(d,"key").get;if(S&&S.isReactWarning)return!1}return d.key!==void 0}function Ks(d,S){if(typeof d.ref=="string"&&st.current&&S&&st.current.stateNode!==S){var O=le(st.current.type);sn[O]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',le(st.current.type),d.ref),sn[O]=!0)}}function Js(d,S){{var O=function(){pr||(pr=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",S))};O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}}function Qs(d,S){{var O=function(){hr||(hr=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",S))};O.isReactWarning=!0,Object.defineProperty(d,"ref",{get:O,configurable:!0})}}var Xs=function(d,S,O,L,ee,oe,Z){var V={$$typeof:n,type:d,key:S,ref:O,props:Z,_owner:oe};return V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(V,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(V,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V};function ea(d,S,O,L,ee){{var oe,Z={},V=null,xe=null;O!==void 0&&(mr(O),V=""+O),Zs(S)&&(mr(S.key),V=""+S.key),Gs(S)&&(xe=S.ref,Ks(S,ee));for(oe in S)St.call(S,oe)&&!qs.hasOwnProperty(oe)&&(Z[oe]=S[oe]);if(d&&d.defaultProps){var me=d.defaultProps;for(oe in me)Z[oe]===void 0&&(Z[oe]=me[oe])}if(V||xe){var ve=typeof d=="function"?d.displayName||d.name||"Unknown":d;V&&Js(Z,ve),xe&&Qs(Z,ve)}return Xs(d,V,xe,ee,L,st.current,Z)}}var an=y.ReactCurrentOwner,vr=y.ReactDebugCurrentFrame;function He(d){if(d){var S=d._owner,O=Et(d.type,d._source,S?S.type:null);vr.setExtraStackFrame(O)}else vr.setExtraStackFrame(null)}var un;un=!1;function cn(d){return typeof d=="object"&&d!==null&&d.$$typeof===n}function gr(){{if(an.current){var d=le(an.current.type);if(d)return`
21
+ `+V[me].replace(" at new "," at ");return d.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",d.displayName)),typeof d=="function"&&U.set(d,Ee),Ee}while(me>=1&&ve>=0);break}}}finally{I=!1,ye.current=oe,Te(),Error.prepareStackTrace=ee}var He=d?d.displayName||d.name:"",yr=He?H(He):"";return typeof d=="function"&&U.set(d,yr),yr}function ge(d,S,O){return he(d,!1)}function We(d){var S=d.prototype;return!!(S&&S.isReactComponent)}function yt(d,S,O){if(d==null)return"";if(typeof d=="function")return he(d,We(d));if(typeof d=="string")return H(d);switch(d){case c:return H("Suspense");case p:return H("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case a:return ge(d.render);case h:return yt(d.type,S,O);case b:{var L=d,ee=L._payload,oe=L._init;try{return yt(oe(ee),S,O)}catch{}}}return""}var Et=Object.prototype.hasOwnProperty,ur={},cr=y.ReactDebugCurrentFrame;function St(d){if(d){var S=d._owner,O=yt(d.type,d._source,S?S.type:null);cr.setExtraStackFrame(O)}else cr.setExtraStackFrame(null)}function Ws(d,S,O,L,ee){{var oe=Function.call.bind(Et);for(var Z in d)if(oe(d,Z)){var V=void 0;try{if(typeof d[Z]!="function"){var xe=Error((L||"React class")+": "+O+" type `"+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[Z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xe.name="Invariant Violation",xe}V=d[Z](S,Z,L,O,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(me){V=me}V&&!(V instanceof Error)&&(St(ee),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",O,Z,typeof V),St(null)),V instanceof Error&&!(V.message in ur)&&(ur[V.message]=!0,St(ee),w("Failed %s type: %s",O,V.message),St(null))}}}var Us=Array.isArray;function on(d){return Us(d)}function Hs(d){{var S=typeof Symbol=="function"&&Symbol.toStringTag,O=S&&d[Symbol.toStringTag]||d.constructor.name||"Object";return O}}function Vs(d){try{return dr(d),!1}catch{return!0}}function dr(d){return""+d}function fr(d){if(Vs(d))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Hs(d)),dr(d)}var it=y.ReactCurrentOwner,Ys={key:!0,ref:!0,__self:!0,__source:!0},mr,pr,ln;ln={};function qs(d){if(Et.call(d,"ref")){var S=Object.getOwnPropertyDescriptor(d,"ref").get;if(S&&S.isReactWarning)return!1}return d.ref!==void 0}function Gs(d){if(Et.call(d,"key")){var S=Object.getOwnPropertyDescriptor(d,"key").get;if(S&&S.isReactWarning)return!1}return d.key!==void 0}function Zs(d,S){if(typeof d.ref=="string"&&it.current&&S&&it.current.stateNode!==S){var O=le(it.current.type);ln[O]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',le(it.current.type),d.ref),ln[O]=!0)}}function Ks(d,S){{var O=function(){mr||(mr=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",S))};O.isReactWarning=!0,Object.defineProperty(d,"key",{get:O,configurable:!0})}}function Js(d,S){{var O=function(){pr||(pr=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",S))};O.isReactWarning=!0,Object.defineProperty(d,"ref",{get:O,configurable:!0})}}var Qs=function(d,S,O,L,ee,oe,Z){var V={$$typeof:n,type:d,key:S,ref:O,props:Z,_owner:oe};return V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(V,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(V,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V};function Xs(d,S,O,L,ee){{var oe,Z={},V=null,xe=null;O!==void 0&&(fr(O),V=""+O),Gs(S)&&(fr(S.key),V=""+S.key),qs(S)&&(xe=S.ref,Zs(S,ee));for(oe in S)Et.call(S,oe)&&!Ys.hasOwnProperty(oe)&&(Z[oe]=S[oe]);if(d&&d.defaultProps){var me=d.defaultProps;for(oe in me)Z[oe]===void 0&&(Z[oe]=me[oe])}if(V||xe){var ve=typeof d=="function"?d.displayName||d.name||"Unknown":d;V&&Ks(Z,ve),xe&&Js(Z,ve)}return Qs(d,V,xe,ee,L,it.current,Z)}}var sn=y.ReactCurrentOwner,hr=y.ReactDebugCurrentFrame;function Ue(d){if(d){var S=d._owner,O=yt(d.type,d._source,S?S.type:null);hr.setExtraStackFrame(O)}else hr.setExtraStackFrame(null)}var an;an=!1;function un(d){return typeof d=="object"&&d!==null&&d.$$typeof===n}function vr(){{if(sn.current){var d=le(sn.current.type);if(d)return`
22
22
 
23
- Check the render method of \``+d+"`."}return""}}function ta(d){return""}var br={};function na(d){{var S=gr();if(!S){var O=typeof d=="string"?d:d.displayName||d.name;O&&(S=`
23
+ Check the render method of \``+d+"`."}return""}}function ea(d){return""}var gr={};function ta(d){{var S=vr();if(!S){var O=typeof d=="string"?d:d.displayName||d.name;O&&(S=`
24
24
 
25
- Check the top-level render call using <`+O+">.")}return S}}function xr(d,S){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var O=na(S);if(br[O])return;br[O]=!0;var L="";d&&d._owner&&d._owner!==an.current&&(L=" It was passed a child from "+le(d._owner.type)+"."),He(d),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',O,L),He(null)}}function wr(d,S){{if(typeof d!="object")return;if(ln(d))for(var O=0;O<d.length;O++){var L=d[O];cn(L)&&xr(L,S)}else if(cn(d))d._store&&(d._store.validated=!0);else if(d){var ee=x(d);if(typeof ee=="function"&&ee!==d.entries)for(var oe=ee.call(d),Z;!(Z=oe.next()).done;)cn(Z.value)&&xr(Z.value,S)}}}function ra(d){{var S=d.type;if(S==null||typeof S=="string")return;var O;if(typeof S=="function")O=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===a||S.$$typeof===h))O=S.propTypes;else return;if(O){var L=le(S);Us(O,d.props,"prop",L,d)}else if(S.PropTypes!==void 0&&!un){un=!0;var ee=le(S);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function oa(d){{for(var S=Object.keys(d.props),O=0;O<S.length;O++){var L=S[O];if(L!=="children"&&L!=="key"){He(d),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),He(null);break}}d.ref!==null&&(He(d),w("Invalid attribute `ref` supplied to `React.Fragment`."),He(null))}}function yr(d,S,O,L,ee,oe){{var Z=_(d);if(!Z){var V="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(V+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xe=ta();xe?V+=xe:V+=gr();var me;d===null?me="null":ln(d)?me="array":d!==void 0&&d.$$typeof===n?(me="<"+(le(d.type)||"Unknown")+" />",V=" Did you accidentally export a JSX literal instead of a component?"):me=typeof d,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",me,V)}var ve=ea(d,S,O,ee,oe);if(ve==null)return ve;if(Z){var Ee=S.children;if(Ee!==void 0)if(L)if(ln(Ee)){for(var Ve=0;Ve<Ee.length;Ve++)wr(Ee[Ve],d);Object.freeze&&Object.freeze(Ee)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else wr(Ee,d)}return d===r?oa(ve):ra(ve),ve}}function la(d,S,O){return yr(d,S,O,!0)}function ia(d,S,O){return yr(d,S,O,!1)}var sa=ia,aa=la;qe.Fragment=r,qe.jsx=sa,qe.jsxs=aa}()),qe}process.env.NODE_ENV==="production"?Nt.exports=Pr():Nt.exports=$r();var f=Nt.exports;function Ge(e,n,t){let r=t.initialDeps??[],l;return()=>{var o,i,s,a;let c;t.key&&((o=t.debug)!=null&&o.call(t))&&(c=Date.now());const p=e();if(!(p.length!==r.length||p.some((m,g)=>r[g]!==m)))return l;r=p;let b;if(t.key&&((i=t.debug)!=null&&i.call(t))&&(b=Date.now()),l=n(...p),t.key&&((s=t.debug)!=null&&s.call(t))){const m=Math.round((Date.now()-c)*100)/100,g=Math.round((Date.now()-b)*100)/100,v=g/16,x=(y,w)=>{for(y=String(y);y.length<w;)y=" "+y;return y};console.info(`%c⏱ ${x(g,5)} /${x(m,5)} ms`,`
25
+ Check the top-level render call using <`+O+">.")}return S}}function br(d,S){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var O=ta(S);if(gr[O])return;gr[O]=!0;var L="";d&&d._owner&&d._owner!==sn.current&&(L=" It was passed a child from "+le(d._owner.type)+"."),Ue(d),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',O,L),Ue(null)}}function xr(d,S){{if(typeof d!="object")return;if(on(d))for(var O=0;O<d.length;O++){var L=d[O];un(L)&&br(L,S)}else if(un(d))d._store&&(d._store.validated=!0);else if(d){var ee=x(d);if(typeof ee=="function"&&ee!==d.entries)for(var oe=ee.call(d),Z;!(Z=oe.next()).done;)un(Z.value)&&br(Z.value,S)}}}function na(d){{var S=d.type;if(S==null||typeof S=="string")return;var O;if(typeof S=="function")O=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===a||S.$$typeof===h))O=S.propTypes;else return;if(O){var L=le(S);Ws(O,d.props,"prop",L,d)}else if(S.PropTypes!==void 0&&!an){an=!0;var ee=le(S);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ra(d){{for(var S=Object.keys(d.props),O=0;O<S.length;O++){var L=S[O];if(L!=="children"&&L!=="key"){Ue(d),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),Ue(null);break}}d.ref!==null&&(Ue(d),w("Invalid attribute `ref` supplied to `React.Fragment`."),Ue(null))}}function wr(d,S,O,L,ee,oe){{var Z=_(d);if(!Z){var V="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(V+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xe=ea();xe?V+=xe:V+=vr();var me;d===null?me="null":on(d)?me="array":d!==void 0&&d.$$typeof===n?(me="<"+(le(d.type)||"Unknown")+" />",V=" Did you accidentally export a JSX literal instead of a component?"):me=typeof d,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",me,V)}var ve=Xs(d,S,O,ee,oe);if(ve==null)return ve;if(Z){var Ee=S.children;if(Ee!==void 0)if(L)if(on(Ee)){for(var He=0;He<Ee.length;He++)xr(Ee[He],d);Object.freeze&&Object.freeze(Ee)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xr(Ee,d)}return d===r?ra(ve):na(ve),ve}}function oa(d,S,O){return wr(d,S,O,!0)}function la(d,S,O){return wr(d,S,O,!1)}var ia=la,sa=oa;Ye.Fragment=r,Ye.jsx=ia,Ye.jsxs=sa}()),Ye}process.env.NODE_ENV==="production"?jt.exports=Ir():jt.exports=Pr();var m=jt.exports;function qe(e,n,t){let r=t.initialDeps??[],o;return()=>{var l,i,s,a;let c;t.key&&((l=t.debug)!=null&&l.call(t))&&(c=Date.now());const p=e();if(!(p.length!==r.length||p.some((f,g)=>r[g]!==f)))return o;r=p;let b;if(t.key&&((i=t.debug)!=null&&i.call(t))&&(b=Date.now()),o=n(...p),t.key&&((s=t.debug)!=null&&s.call(t))){const f=Math.round((Date.now()-c)*100)/100,g=Math.round((Date.now()-b)*100)/100,v=g/16,x=(y,w)=>{for(y=String(y);y.length<w;)y=" "+y;return y};console.info(`%c⏱ ${x(g,5)} /${x(f,5)} ms`,`
26
26
  font-size: .6rem;
27
27
  font-weight: bold;
28
- color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(a=t==null?void 0:t.onChange)==null||a.call(t,l),l}}function kt(e,n){if(e===void 0)throw new Error("Unexpected undefined");return e}const Mr=(e,n)=>Math.abs(e-n)<1,Ar=(e,n,t)=>{let r;return function(...l){e.clearTimeout(r),r=e.setTimeout(()=>n.apply(this,l),t)}},Dr=e=>e,_r=e=>{const n=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let l=n;l<=t;l++)r.push(l);return r},Lr=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;const l=i=>{const{width:s,height:a}=i;n({width:Math.round(s),height:Math.round(a)})};if(l(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(i=>{const s=i[0];if(s!=null&&s.borderBoxSize){const a=s.borderBoxSize[0];if(a){l({width:a.inlineSize,height:a.blockSize});return}}l(t.getBoundingClientRect())});return o.observe(t,{box:"border-box"}),()=>{o.unobserve(t)}},pn={passive:!0},Rr=typeof window>"u"?!0:"onscrollend"in window,Br=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;let l=0;const o=Rr?()=>{}:Ar(r,()=>{n(l,!1)},e.options.isScrollingResetDelay),i=c=>()=>{l=t[e.options.horizontal?"scrollLeft":"scrollTop"],o(),n(l,c)},s=i(!0),a=i(!1);return a(),t.addEventListener("scroll",s,pn),t.addEventListener("scrollend",a,pn),()=>{t.removeEventListener("scroll",s),t.removeEventListener("scrollend",a)}},zr=(e,n,t)=>{if(n!=null&&n.borderBoxSize){const r=n.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Wr=(e,{adjustments:n=0,behavior:t},r)=>{var l,o;const i=e+n;(o=(l=r.scrollElement)==null?void 0:l.scrollTo)==null||o.call(l,{[r.options.horizontal?"left":"top"]:i,behavior:t})};class Ur{constructor(n){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(l=>{l.forEach(o=>{this._measureElement(o.target,o)})}));return{disconnect:()=>{var l;return(l=r())==null?void 0:l.disconnect()},observe:l=>{var o;return(o=r())==null?void 0:o.observe(l,{box:"border-box"})},unobserve:l=>{var o;return(o=r())==null?void 0:o.unobserve(l)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,l])=>{typeof l>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Dr,rangeExtractor:_r,onChange:()=>{},measureElement:zr,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...t}},this.notify=(t,r)=>{var l,o;const{startIndex:i,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},a=this.calculateRange();(t||i!==(a==null?void 0:a.startIndex)||s!==(a==null?void 0:a.endIndex))&&((o=(l=this.options).onChange)==null||o.call(l,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.notify(!1,!1);return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(l,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l;const i=this.isScrolling;this.isScrolling=o,this.notify(i!==o,o)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,r)=>{const l=new Map,o=new Map;for(let i=r-1;i>=0;i--){const s=t[i];if(l.has(s.lane))continue;const a=o.get(s.lane);if(a==null||s.end>a.end?o.set(s.lane,s):s.end<a.end&&l.set(s.lane,!0),l.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((i,s)=>i.end===s.end?i.index-s.index:i.end-s.end)[0]:void 0},this.getMeasurementOptions=Ge(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,l,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:l,getItemKey:o,enabled:i}),{key:!1}),this.getMeasurements=Ge(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:l,getItemKey:o,enabled:i},s)=>{var a;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const p=this.measurementsCache.slice(0,c);for(let h=c;h<t;h++){let b=(a=this.measurementsCache[h])==null?void 0:a.measureElement;b||(b=P=>{const k=o(h),A=this.elementsCache.get(k);if(!P){A&&(this.observer.unobserve(A),this.elementsCache.delete(k));return}A!==P&&(A&&this.observer.unobserve(A),this.observer.observe(P),this.elementsCache.set(k,P)),P.isConnected&&this.resizeItem(h,this.options.measureElement(P,void 0,this))});const m=o(h),g=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),v=g?g.end+this.options.gap:r+l,x=s.get(m),y=typeof x=="number"?x:this.options.estimateSize(h),w=v+y,T=g?g.lane:h%this.options.lanes;p[h]={index:h,start:v,size:y,end:w,key:m,lane:T,measureElement:b}}return this.measurementsCache=p,p},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Ge(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,r,l)=>this.range=t.length>0&&r>0?Hr({measurements:t,outerSize:r,scrollOffset:l}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Ge(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,r,l,o)=>r===null?[]:t({startIndex:r.startIndex,endIndex:r.endIndex,overscan:l,count:o}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,l=t.getAttribute(r);return l?parseInt(l,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const l=this.indexFromElement(t),o=this.getMeasurements()[l];if(!o||!t.isConnected){this.elementsCache.forEach((s,a)=>{s===t&&(this.observer.unobserve(t),this.elementsCache.delete(a))});return}const i=this.elementsCache.get(o.key);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(o.key,t)),this.resizeItem(l,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const l=this.getMeasurements()[t];if(!l)return;const o=this.itemSizeCache.get(l.key)??l.size,i=r-o;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(l,i,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",i),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,r)),this.notify(!0,!1))},this.measureElement=t=>{t&&this._measureElement(t,void 0)},this.getVirtualItems=Ge(()=>[this.getIndexes(),this.getMeasurements()],(t,r)=>{const l=[];for(let o=0,i=t.length;o<i;o++){const s=t[o],a=r[s];l.push(a)}return l},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return kt(r[hn(0,r.length-1,l=>kt(r[l]).start,t)])},this.getOffsetForAlignment=(t,r)=>{const l=this.getSize(),o=this.getScrollOffset();r==="auto"&&(t<=o?r="start":t>=o+l?r="end":r="start"),r==="start"?t=t:r==="end"?t=t-l:r==="center"&&(t=t-l/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-l;return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const l=this.getMeasurements()[t];if(!l)return;const o=this.getSize(),i=this.getScrollOffset();if(r==="auto")if(l.end>=i+o-this.options.scrollPaddingEnd)r="end";else if(l.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];const s=r==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:r="start",behavior:l}={})=>{this.cancelScrollToIndex(),l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:l})},this.scrollToIndex=(t,{align:r="auto",behavior:l}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),l==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(t,r);if(!o)return;const[i,s]=o;this._scrollToOffset(i,{adjustments:void 0,behavior:l}),l!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[c]=kt(this.getOffsetForIndex(t,s));Mr(c,this.getScrollOffset())||this.scrollToIndex(t,{align:s,behavior:l})}else this.scrollToIndex(t,{align:s,behavior:l})}))},this.scrollBy=(t,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let l;return r.length===0?l=this.options.paddingStart:l=this.options.lanes===1?((t=r[r.length-1])==null?void 0:t.end)??0:Math.max(...r.slice(-this.options.lanes).map(o=>o.end)),l-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:r,behavior:l})=>{this.options.scrollToFn(t,{behavior:l,adjustments:r},this)},this.measure=()=>{var t,r;this.itemSizeCache=new Map,(r=(t=this.options).onChange)==null||r.call(t,this,!1)},this.setOptions(n)}}const hn=(e,n,t,r)=>{for(;e<=n;){const l=(e+n)/2|0,o=t(l);if(o<r)e=l+1;else if(o>r)n=l-1;else return l}return e>0?e-1:0};function Hr({measurements:e,outerSize:n,scrollOffset:t}){const r=e.length-1,o=hn(0,r,s=>e[s].start,t);let i=o;for(;i<r&&e[i].end<t+n;)i++;return{startIndex:o,endIndex:i}}const Vr=typeof document<"u"?E.useLayoutEffect:E.useEffect;function Yr(e){const n=E.useReducer(()=>({}),{})[1],t={...e,onChange:(l,o)=>{var i;o?Tt.flushSync(n):n(),(i=e.onChange)==null||i.call(e,l,o)}},[r]=E.useState(()=>new Ur(t));return r.setOptions(t),E.useEffect(()=>r._didMount(),[]),Vr(()=>r._willUpdate()),r}function qr(e){return Yr({observeElementRect:Lr,observeElementOffset:Br,scrollToFn:Wr,...e})}var Gr=Object.defineProperty,Zr=(e,n,t)=>n in e?Gr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Ft=(e,n,t)=>(Zr(e,typeof n!="symbol"?n+"":n,t),t);let Kr=class{constructor(){Ft(this,"current",this.detect()),Ft(this,"handoffState","pending"),Ft(this,"currentId",0)}set(n){this.current!==n&&(this.handoffState="pending",this.currentId=0,this.current=n)}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"}},Oe=new Kr,te=(e,n)=>{Oe.isServer?u.useEffect(e,n):u.useLayoutEffect(e,n)};function Se(e){let n=u.useRef(e);return te(()=>{n.current=e},[e]),n}function It(e,n){let[t,r]=u.useState(e),l=Se(e);return te(()=>r(l.current),[l,r,...n]),t}let j=function(e){let n=Se(e);return u.useCallback((...t)=>n.current(...t),[n])};function vn(e,n,t){let[r,l]=u.useState(t),o=e!==void 0,i=u.useRef(o),s=u.useRef(!1),a=u.useRef(!1);return o&&!i.current&&!s.current?(s.current=!0,i.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&i.current&&!a.current&&(a.current=!0,i.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:r,j(c=>(o||l(c),n==null?void 0:n(c)))]}function at(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function we(){let e=[],n={addEventListener(t,r,l,o){return t.addEventListener(r,l,o),n.add(()=>t.removeEventListener(r,l,o))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(r))},nextFrame(...t){return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(...t){let r=setTimeout(...t);return n.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return at(()=>{r.current&&t[0]()}),n.add(()=>{r.current=!1})},style(t,r,l){let o=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:l}),this.add(()=>{Object.assign(t.style,{[r]:o})})},group(t){let r=we();return t(r),this.add(()=>r.dispose())},add(t){return e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let l of e.splice(r,1))l()}},dispose(){for(let t of e.splice(0))t()}};return n}function je(){let[e]=u.useState(we);return u.useEffect(()=>()=>e.dispose(),[e]),e}function Jr(){let e=typeof document>"u";return"useSyncExternalStore"in E?(n=>n.useSyncExternalStore)(E)(()=>()=>{},()=>!1,()=>!e):!1}function ze(){let e=Jr(),[n,t]=E.useState(Oe.isHandoffComplete);return n&&Oe.isHandoffComplete===!1&&t(!1),E.useEffect(()=>{n!==!0&&t(!0)},[n]),E.useEffect(()=>Oe.handoff(),[]),e?!1:n}var gn;let be=(gn=u.useId)!=null?gn:function(){let e=ze(),[n,t]=u.useState(e?()=>Oe.nextId():null);return te(()=>{n===null&&t(Oe.nextId())},[n]),n!=null?""+n:void 0};function ue(e,n,...t){if(e in n){let l=n[e];return typeof l=="function"?l(...t):l}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(l=>`"${l}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ue),r}function ut(e){return Oe.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Pt=["[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 Ne=(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))(Ne||{}),bn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(bn||{}),Qr=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Qr||{});function xn(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Pt)).sort((n,t)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var $t=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))($t||{});function Mt(e,n=0){var t;return e===((t=ut(e))==null?void 0:t.body)?!1:ue(n,{0(){return e.matches(Pt)},1(){let r=e;for(;r!==null;){if(r.matches(Pt))return!0;r=r.parentElement}return!1}})}function wn(e){let n=ut(e);we().nextFrame(()=>{n&&!Mt(n.activeElement,0)&&Ie(e)})}var Xr=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Xr||{});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 Ie(e){e==null||e.focus({preventScroll:!0})}let eo=["textarea","input"].join(",");function to(e){var n,t;return(t=(n=e==null?void 0:e.matches)==null?void 0:n.call(e,eo))!=null?t:!1}function At(e,n=t=>t){return e.slice().sort((t,r)=>{let l=n(t),o=n(r);if(l===null||o===null)return 0;let i=l.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function no(e,n){return Ze(xn(),n,{relativeTo:e})}function Ze(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:l=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?t?At(e):e:xn(e);l.length>0&&i.length>1&&(i=i.filter(m=>!l.includes(m))),r=r??o.activeElement;let s=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,i.indexOf(r))-1;if(n&4)return Math.max(0,i.indexOf(r))+1;if(n&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=n&32?{preventScroll:!0}:{},p=0,h=i.length,b;do{if(p>=h||p+h<=0)return 0;let m=a+p;if(n&16)m=(m+h)%h;else{if(m<0)return 3;if(m>=h)return 1}b=i[m],b==null||b.focus(c),p+=s}while(b!==o.activeElement);return n&6&&to(b)&&b.select(),2}function yn(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function ro(){return/Android/gi.test(window.navigator.userAgent)}function En(){return yn()||ro()}function ct(e,n,t){let r=Se(n);u.useEffect(()=>{function l(o){r.current(o)}return document.addEventListener(e,l,t),()=>document.removeEventListener(e,l,t)},[e,t])}function Sn(e,n,t){let r=Se(n);u.useEffect(()=>{function l(o){r.current(o)}return window.addEventListener(e,l,t),()=>window.removeEventListener(e,l,t)},[e,t])}function Dt(e,n,t=!0){let r=u.useRef(!1);u.useEffect(()=>{requestAnimationFrame(()=>{r.current=t})},[t]);function l(i,s){if(!r.current||i.defaultPrevented)return;let a=s(i);if(a===null||!a.getRootNode().contains(a)||!a.isConnected)return;let c=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(e);for(let p of c){if(p===null)continue;let h=p instanceof HTMLElement?p:p.current;if(h!=null&&h.contains(a)||i.composed&&i.composedPath().includes(h))return}return!Mt(a,$t.Loose)&&a.tabIndex!==-1&&i.preventDefault(),n(i,a)}let o=u.useRef(null);ct("pointerdown",i=>{var s,a;r.current&&(o.current=((a=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:a[0])||i.target)},!0),ct("mousedown",i=>{var s,a;r.current&&(o.current=((a=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:a[0])||i.target)},!0),ct("click",i=>{En()||o.current&&(l(i,()=>o.current),o.current=null)},!0),ct("touchend",i=>l(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Sn("blur",i=>l(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function _e(...e){return u.useMemo(()=>ut(...e),[...e])}function Cn(e){var n;if(e.type)return e.type;let t=(n=e.as)!=null?n:"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function _t(e,n){let[t,r]=u.useState(()=>Cn(e));return te(()=>{r(Cn(e))},[e.type,e.as]),te(()=>{t||n.current&&n.current instanceof HTMLButtonElement&&!n.current.hasAttribute("type")&&r("button")},[t,n]),t}let Tn=Symbol();function oo(e,n=!0){return Object.assign(e,{[Tn]:n})}function de(...e){let n=u.useRef(e);u.useEffect(()=>{n.current=e},[e]);let t=j(r=>{for(let l of n.current)l!=null&&(typeof l=="function"?l(r):l.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Tn]))?void 0:t}function On(e){return[e.screenX,e.screenY]}function jn(){let e=u.useRef([-1,-1]);return{wasMoved(n){let t=On(n);return e.current[0]===t[0]&&e.current[1]===t[1]?!1:(e.current=t,!0)},update(n){e.current=On(n)}}}function Nn({container:e,accept:n,walk:t,enabled:r=!0}){let l=u.useRef(n),o=u.useRef(t);u.useEffect(()=>{l.current=n,o.current=t},[n,t]),te(()=>{if(!e||!r)return;let i=ut(e);if(!i)return;let s=l.current,a=o.current,c=Object.assign(h=>s(h),{acceptNode:s}),p=i.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;p.nextNode();)a(p.currentNode)},[e,r,l,o])}function Ke(e,n){let t=u.useRef([]),r=j(e);u.useEffect(()=>{let l=[...t.current];for(let[o,i]of n.entries())if(t.current[o]!==i){let s=r(n,l);return t.current=n,s}},[r,...n])}function dt(...e){return Array.from(new Set(e.flatMap(n=>typeof n=="string"?n.split(" "):[]))).filter(Boolean).join(" ")}var Pe=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Pe||{}),$e=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))($e||{});function ie({ourProps:e,theirProps:n,slot:t,defaultTag:r,features:l,visible:o=!0,name:i,mergeRefs:s}){s=s??lo;let a=kn(n,e);if(o)return ft(a,t,r,i,s);let c=l??0;if(c&2){let{static:p=!1,...h}=a;if(p)return ft(h,t,r,i,s)}if(c&1){let{unmount:p=!0,...h}=a;return ue(p?0:1,{0(){return null},1(){return ft({...h,hidden:!0,style:{display:"none"}},t,r,i,s)}})}return ft(a,t,r,i,s)}function ft(e,n={},t,r,l){let{as:o=t,children:i,refName:s="ref",...a}=Lt(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},p=typeof i=="function"?i(n):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(n));let h={};if(n){let b=!1,m=[];for(let[g,v]of Object.entries(n))typeof v=="boolean"&&(b=!0),v===!0&&m.push(g);b&&(h["data-headlessui-state"]=m.join(" "))}if(o===u.Fragment&&Object.keys(mt(a)).length>0){if(!u.isValidElement(p)||Array.isArray(p)&&p.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(v=>` - ${v}`).join(`
28
+ color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(a=t==null?void 0:t.onChange)==null||a.call(t,o),o}}function Nt(e,n){if(e===void 0)throw new Error("Unexpected undefined");return e}const $r=(e,n)=>Math.abs(e-n)<1,Mr=(e,n,t)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>n.apply(this,o),t)}},Ar=e=>e,Dr=e=>{const n=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=n;o<=t;o++)r.push(o);return r},_r=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;const o=i=>{const{width:s,height:a}=i;n({width:Math.round(s),height:Math.round(a)})};if(o(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const l=new r.ResizeObserver(i=>{const s=i[0];if(s!=null&&s.borderBoxSize){const a=s.borderBoxSize[0];if(a){o({width:a.inlineSize,height:a.blockSize});return}}o(t.getBoundingClientRect())});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},mn={passive:!0},Lr=typeof window>"u"?!0:"onscrollend"in window,Rr=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;let o=0;const l=Lr?()=>{}:Mr(r,()=>{n(o,!1)},e.options.isScrollingResetDelay),i=c=>()=>{o=t[e.options.horizontal?"scrollLeft":"scrollTop"],l(),n(o,c)},s=i(!0),a=i(!1);return a(),t.addEventListener("scroll",s,mn),t.addEventListener("scrollend",a,mn),()=>{t.removeEventListener("scroll",s),t.removeEventListener("scrollend",a)}},Br=(e,n,t)=>{if(n!=null&&n.borderBoxSize){const r=n.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},zr=(e,{adjustments:n=0,behavior:t},r)=>{var o,l;const i=e+n;(l=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||l.call(o,{[r.options.horizontal?"left":"top"]:i,behavior:t})};class Wr{constructor(n){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(o=>{o.forEach(l=>{this._measureElement(l.target,l)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var l;return(l=r())==null?void 0:l.observe(o,{box:"border-box"})},unobserve:o=>{var l;return(l=r())==null?void 0:l.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,o])=>{typeof o>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ar,rangeExtractor:Dr,onChange:()=>{},measureElement:Br,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...t}},this.notify=(t,r)=>{var o,l;const{startIndex:i,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},a=this.calculateRange();(t||i!==(a==null?void 0:a.startIndex)||s!==(a==null?void 0:a.endIndex))&&((l=(o=this.options).onChange)==null||l.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.notify(!1,!1);return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,l)=>{this.scrollAdjustments=0,this.scrollDirection=l?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o;const i=this.isScrolling;this.isScrolling=l,this.notify(i!==l,l)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,r)=>{const o=new Map,l=new Map;for(let i=r-1;i>=0;i--){const s=t[i];if(o.has(s.lane))continue;const a=l.get(s.lane);if(a==null||s.end>a.end?l.set(s.lane,s):s.end<a.end&&o.set(s.lane,!0),o.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((i,s)=>i.end===s.end?i.index-s.index:i.end-s.end)[0]:void 0},this.getMeasurementOptions=qe(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,o,l,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:o,getItemKey:l,enabled:i}),{key:!1}),this.getMeasurements=qe(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:o,getItemKey:l,enabled:i},s)=>{var a;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const p=this.measurementsCache.slice(0,c);for(let h=c;h<t;h++){let b=(a=this.measurementsCache[h])==null?void 0:a.measureElement;b||(b=k=>{const F=l(h),A=this.elementsCache.get(F);if(!k){A&&(this.observer.unobserve(A),this.elementsCache.delete(F));return}A!==k&&(A&&this.observer.unobserve(A),this.observer.observe(k),this.elementsCache.set(F,k)),k.isConnected&&this.resizeItem(h,this.options.measureElement(k,void 0,this))});const f=l(h),g=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),v=g?g.end+this.options.gap:r+o,x=s.get(f),y=typeof x=="number"?x:this.options.estimateSize(h),w=v+y,T=g?g.lane:h%this.options.lanes;p[h]={index:h,start:v,size:y,end:w,key:f,lane:T,measureElement:b}}return this.measurementsCache=p,p},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=qe(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,r,o)=>this.range=t.length>0&&r>0?Ur({measurements:t,outerSize:r,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=qe(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,r,o,l)=>r===null?[]:t({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:l}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,o=t.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const o=this.indexFromElement(t),l=this.getMeasurements()[o];if(!l||!t.isConnected){this.elementsCache.forEach((s,a)=>{s===t&&(this.observer.unobserve(t),this.elementsCache.delete(a))});return}const i=this.elementsCache.get(l.key);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(l.key,t)),this.resizeItem(o,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const o=this.getMeasurements()[t];if(!o)return;const l=this.itemSizeCache.get(o.key)??o.size,i=r-l;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,i,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",i),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!0,!1))},this.measureElement=t=>{t&&this._measureElement(t,void 0)},this.getVirtualItems=qe(()=>[this.getIndexes(),this.getMeasurements()],(t,r)=>{const o=[];for(let l=0,i=t.length;l<i;l++){const s=t[l],a=r[s];o.push(a)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return Nt(r[pn(0,r.length-1,o=>Nt(r[o]).start,t)])},this.getOffsetForAlignment=(t,r)=>{const o=this.getSize(),l=this.getScrollOffset();r==="auto"&&(t<=l?r="start":t>=l+o?r="end":r="start"),r==="start"?t=t:r==="end"?t=t-o:r==="center"&&(t=t-o/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-o;return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const o=this.getMeasurements()[t];if(!o)return;const l=this.getSize(),i=this.getScrollOffset();if(r==="auto")if(o.end>=i+l-this.options.scrollPaddingEnd)r="end";else if(o.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];const s=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(t,{align:r="auto",behavior:o}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const l=this.getOffsetForIndex(t,r);if(!l)return;const[i,s]=l;this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[c]=Nt(this.getOffsetForIndex(t,s));$r(c,this.getScrollOffset())||this.scrollToIndex(t,{align:s,behavior:o})}else this.scrollToIndex(t,{align:s,behavior:o})}))},this.scrollBy=(t,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((t=r[r.length-1])==null?void 0:t.end)??0:Math.max(...r.slice(-this.options.lanes).map(l=>l.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:r,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:r},this)},this.measure=()=>{var t,r;this.itemSizeCache=new Map,(r=(t=this.options).onChange)==null||r.call(t,this,!1)},this.setOptions(n)}}const pn=(e,n,t,r)=>{for(;e<=n;){const o=(e+n)/2|0,l=t(o);if(l<r)e=o+1;else if(l>r)n=o-1;else return o}return e>0?e-1:0};function Ur({measurements:e,outerSize:n,scrollOffset:t}){const r=e.length-1,l=pn(0,r,s=>e[s].start,t);let i=l;for(;i<r&&e[i].end<t+n;)i++;return{startIndex:l,endIndex:i}}const Hr=typeof document<"u"?E.useLayoutEffect:E.useEffect;function Vr(e){const n=E.useReducer(()=>({}),{})[1],t={...e,onChange:(o,l)=>{var i;l?Ct.flushSync(n):n(),(i=e.onChange)==null||i.call(e,o,l)}},[r]=E.useState(()=>new Wr(t));return r.setOptions(t),E.useEffect(()=>r._didMount(),[]),Hr(()=>r._willUpdate()),r}function Yr(e){return Vr({observeElementRect:_r,observeElementOffset:Rr,scrollToFn:zr,...e})}var qr=Object.defineProperty,Gr=(e,n,t)=>n in e?qr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,kt=(e,n,t)=>(Gr(e,typeof n!="symbol"?n+"":n,t),t);let Zr=class{constructor(){kt(this,"current",this.detect()),kt(this,"handoffState","pending"),kt(this,"currentId",0)}set(n){this.current!==n&&(this.handoffState="pending",this.currentId=0,this.current=n)}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"}},Oe=new Zr,te=(e,n)=>{Oe.isServer?u.useEffect(e,n):u.useLayoutEffect(e,n)};function Se(e){let n=u.useRef(e);return te(()=>{n.current=e},[e]),n}function Ft(e,n){let[t,r]=u.useState(e),o=Se(e);return te(()=>r(o.current),[o,r,...n]),t}let j=function(e){let n=Se(e);return u.useCallback((...t)=>n.current(...t),[n])};function hn(e,n,t){let[r,o]=u.useState(t),l=e!==void 0,i=u.useRef(l),s=u.useRef(!1),a=u.useRef(!1);return l&&!i.current&&!s.current?(s.current=!0,i.current=l,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.")):!l&&i.current&&!a.current&&(a.current=!0,i.current=l,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.")),[l?e:r,j(c=>(l||o(c),n==null?void 0:n(c)))]}function st(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function we(){let e=[],n={addEventListener(t,r,o,l){return t.addEventListener(r,o,l),n.add(()=>t.removeEventListener(r,o,l))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(r))},nextFrame(...t){return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(...t){let r=setTimeout(...t);return n.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return st(()=>{r.current&&t[0]()}),n.add(()=>{r.current=!1})},style(t,r,o){let l=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:o}),this.add(()=>{Object.assign(t.style,{[r]:l})})},group(t){let r=we();return t(r),this.add(()=>r.dispose())},add(t){return e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let t of e.splice(0))t()}};return n}function je(){let[e]=u.useState(we);return u.useEffect(()=>()=>e.dispose(),[e]),e}function Kr(){let e=typeof document>"u";return"useSyncExternalStore"in E?(n=>n.useSyncExternalStore)(E)(()=>()=>{},()=>!1,()=>!e):!1}function Be(){let e=Kr(),[n,t]=E.useState(Oe.isHandoffComplete);return n&&Oe.isHandoffComplete===!1&&t(!1),E.useEffect(()=>{n!==!0&&t(!0)},[n]),E.useEffect(()=>Oe.handoff(),[]),e?!1:n}var vn;let be=(vn=u.useId)!=null?vn:function(){let e=Be(),[n,t]=u.useState(e?()=>Oe.nextId():null);return te(()=>{n===null&&t(Oe.nextId())},[n]),n!=null?""+n:void 0};function ue(e,n,...t){if(e in n){let o=n[e];return typeof o=="function"?o(...t):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ue),r}function at(e){return Oe.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let It=["[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 Ne=(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))(Ne||{}),gn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(gn||{}),Jr=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Jr||{});function bn(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(It)).sort((n,t)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var Pt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Pt||{});function $t(e,n=0){var t;return e===((t=at(e))==null?void 0:t.body)?!1:ue(n,{0(){return e.matches(It)},1(){let r=e;for(;r!==null;){if(r.matches(It))return!0;r=r.parentElement}return!1}})}function xn(e){let n=at(e);we().nextFrame(()=>{n&&!$t(n.activeElement,0)&&Ie(e)})}var Qr=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Qr||{});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 Ie(e){e==null||e.focus({preventScroll:!0})}let Xr=["textarea","input"].join(",");function eo(e){var n,t;return(t=(n=e==null?void 0:e.matches)==null?void 0:n.call(e,Xr))!=null?t:!1}function Mt(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),l=n(r);if(o===null||l===null)return 0;let i=o.compareDocumentPosition(l);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function to(e,n){return Ge(bn(),n,{relativeTo:e})}function Ge(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:o=[]}={}){let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?t?Mt(e):e:bn(e);o.length>0&&i.length>1&&(i=i.filter(f=>!o.includes(f))),r=r??l.activeElement;let s=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,i.indexOf(r))-1;if(n&4)return Math.max(0,i.indexOf(r))+1;if(n&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=n&32?{preventScroll:!0}:{},p=0,h=i.length,b;do{if(p>=h||p+h<=0)return 0;let f=a+p;if(n&16)f=(f+h)%h;else{if(f<0)return 3;if(f>=h)return 1}b=i[f],b==null||b.focus(c),p+=s}while(b!==l.activeElement);return n&6&&eo(b)&&b.select(),2}function wn(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function no(){return/Android/gi.test(window.navigator.userAgent)}function yn(){return wn()||no()}function ut(e,n,t){let r=Se(n);u.useEffect(()=>{function o(l){r.current(l)}return document.addEventListener(e,o,t),()=>document.removeEventListener(e,o,t)},[e,t])}function En(e,n,t){let r=Se(n);u.useEffect(()=>{function o(l){r.current(l)}return window.addEventListener(e,o,t),()=>window.removeEventListener(e,o,t)},[e,t])}function At(e,n,t=!0){let r=u.useRef(!1);u.useEffect(()=>{requestAnimationFrame(()=>{r.current=t})},[t]);function o(i,s){if(!r.current||i.defaultPrevented)return;let a=s(i);if(a===null||!a.getRootNode().contains(a)||!a.isConnected)return;let c=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(e);for(let p of c){if(p===null)continue;let h=p instanceof HTMLElement?p:p.current;if(h!=null&&h.contains(a)||i.composed&&i.composedPath().includes(h))return}return!$t(a,Pt.Loose)&&a.tabIndex!==-1&&i.preventDefault(),n(i,a)}let l=u.useRef(null);ut("pointerdown",i=>{var s,a;r.current&&(l.current=((a=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:a[0])||i.target)},!0),ut("mousedown",i=>{var s,a;r.current&&(l.current=((a=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:a[0])||i.target)},!0),ut("click",i=>{yn()||l.current&&(o(i,()=>l.current),l.current=null)},!0),ut("touchend",i=>o(i,()=>i.target instanceof HTMLElement?i.target:null),!0),En("blur",i=>o(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function De(...e){return u.useMemo(()=>at(...e),[...e])}function Sn(e){var n;if(e.type)return e.type;let t=(n=e.as)!=null?n:"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function Dt(e,n){let[t,r]=u.useState(()=>Sn(e));return te(()=>{r(Sn(e))},[e.type,e.as]),te(()=>{t||n.current&&n.current instanceof HTMLButtonElement&&!n.current.hasAttribute("type")&&r("button")},[t,n]),t}let Cn=Symbol();function ro(e,n=!0){return Object.assign(e,{[Cn]:n})}function de(...e){let n=u.useRef(e);u.useEffect(()=>{n.current=e},[e]);let t=j(r=>{for(let o of n.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Cn]))?void 0:t}function Tn(e){return[e.screenX,e.screenY]}function On(){let e=u.useRef([-1,-1]);return{wasMoved(n){let t=Tn(n);return e.current[0]===t[0]&&e.current[1]===t[1]?!1:(e.current=t,!0)},update(n){e.current=Tn(n)}}}function jn({container:e,accept:n,walk:t,enabled:r=!0}){let o=u.useRef(n),l=u.useRef(t);u.useEffect(()=>{o.current=n,l.current=t},[n,t]),te(()=>{if(!e||!r)return;let i=at(e);if(!i)return;let s=o.current,a=l.current,c=Object.assign(h=>s(h),{acceptNode:s}),p=i.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;p.nextNode();)a(p.currentNode)},[e,r,o,l])}function Ze(e,n){let t=u.useRef([]),r=j(e);u.useEffect(()=>{let o=[...t.current];for(let[l,i]of n.entries())if(t.current[l]!==i){let s=r(n,o);return t.current=n,s}},[r,...n])}function ct(...e){return Array.from(new Set(e.flatMap(n=>typeof n=="string"?n.split(" "):[]))).filter(Boolean).join(" ")}var Pe=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Pe||{}),$e=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))($e||{});function ie({ourProps:e,theirProps:n,slot:t,defaultTag:r,features:o,visible:l=!0,name:i,mergeRefs:s}){s=s??oo;let a=Nn(n,e);if(l)return dt(a,t,r,i,s);let c=o??0;if(c&2){let{static:p=!1,...h}=a;if(p)return dt(h,t,r,i,s)}if(c&1){let{unmount:p=!0,...h}=a;return ue(p?0:1,{0(){return null},1(){return dt({...h,hidden:!0,style:{display:"none"}},t,r,i,s)}})}return dt(a,t,r,i,s)}function dt(e,n={},t,r,o){let{as:l=t,children:i,refName:s="ref",...a}=_t(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},p=typeof i=="function"?i(n):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(n));let h={};if(n){let b=!1,f=[];for(let[g,v]of Object.entries(n))typeof v=="boolean"&&(b=!0),v===!0&&f.push(g);b&&(h["data-headlessui-state"]=f.join(" "))}if(l===u.Fragment&&Object.keys(ft(a)).length>0){if(!u.isValidElement(p)||Array.isArray(p)&&p.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(v=>` - ${v}`).join(`
29
29
  `),"","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(v=>` - ${v}`).join(`
30
30
  `)].join(`
31
- `));let b=p.props,m=typeof(b==null?void 0:b.className)=="function"?(...v)=>dt(b==null?void 0:b.className(...v),a.className):dt(b==null?void 0:b.className,a.className),g=m?{className:m}:{};return u.cloneElement(p,Object.assign({},kn(p.props,mt(Lt(a,["ref"]))),h,c,{ref:l(p.ref,c.ref)},g))}return u.createElement(o,Object.assign({},Lt(a,["ref"]),o!==u.Fragment&&c,o!==u.Fragment&&h),p)}function lo(...e){return e.every(n=>n==null)?void 0:n=>{for(let t of e)t!=null&&(typeof t=="function"?t(n):t.current=n)}}function kn(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},t={};for(let r of e)for(let l in r)l.startsWith("on")&&typeof r[l]=="function"?(t[l]!=null||(t[l]=[]),t[l].push(r[l])):n[l]=r[l];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(n,{[r](l,...o){let i=t[r];for(let s of i){if((l instanceof Event||(l==null?void 0:l.nativeEvent)instanceof Event)&&l.defaultPrevented)return;s(l,...o)}}});return n}function se(e){var n;return Object.assign(u.forwardRef(e),{displayName:(n=e.displayName)!=null?n:e.name})}function mt(e){let n=Object.assign({},e);for(let t in n)n[t]===void 0&&delete n[t];return n}function Lt(e,n=[]){let t=Object.assign({},e);for(let r of n)r in t&&delete t[r];return t}let io="div";var We=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(We||{});function so(e,n){var t;let{features:r=1,...l}=e,o={ref:n,"aria-hidden":(r&2)===2?!0:(t=l["aria-hidden"])!=null?t:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ie({ourProps:o,theirProps:l,slot:{},defaultTag:io,name:"Hidden"})}let Je=se(so),Rt=u.createContext(null);Rt.displayName="OpenClosedContext";var fe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(fe||{});function Qe(){return u.useContext(Rt)}function Bt({value:e,children:n}){return u.createElement(Rt.Provider,{value:e},n)}function ao(e){function n(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",n))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}let Ce=[];ao(()=>{function e(n){n.target instanceof HTMLElement&&n.target!==document.body&&Ce[0]!==n.target&&(Ce.unshift(n.target),Ce=Ce.filter(t=>t!=null&&t.isConnected),Ce.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function pt(e){let n=e.parentElement,t=null;for(;n&&!(n instanceof HTMLFieldSetElement);)n instanceof HTMLLegendElement&&(t=n),n=n.parentElement;let r=(n==null?void 0:n.getAttribute("disabled"))==="";return r&&uo(t)?!1:r}function uo(e){if(!e)return!1;let n=e.previousElementSibling;for(;n!==null;){if(n instanceof HTMLLegendElement)return!1;n=n.previousElementSibling}return!0}function co(e){throw new Error("Unexpected object: "+e)}var ne=(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))(ne||{});function zt(e,n){let t=n.resolveItems();if(t.length<=0)return null;let r=n.resolveActiveIndex(),l=r??-1;switch(e.focus){case 0:{for(let o=0;o<t.length;++o)if(!n.resolveDisabled(t[o],o,t))return o;return r}case 1:{for(let o=l-1;o>=0;--o)if(!n.resolveDisabled(t[o],o,t))return o;return r}case 2:{for(let o=l+1;o<t.length;++o)if(!n.resolveDisabled(t[o],o,t))return o;return r}case 3:{for(let o=t.length-1;o>=0;--o)if(!n.resolveDisabled(t[o],o,t))return o;return r}case 4:{for(let o=0;o<t.length;++o)if(n.resolveId(t[o],o,t)===e.id)return o;return r}case 5:return null;default:co(e)}}function Fn(e={},n=null,t=[]){for(let[r,l]of Object.entries(e))Pn(t,In(n,r),l);return t}function In(e,n){return e?e+"["+n+"]":n}function Pn(e,n,t){if(Array.isArray(t))for(let[r,l]of t.entries())Pn(e,In(n,r.toString()),l);else t instanceof Date?e.push([n,t.toISOString()]):typeof t=="boolean"?e.push([n,t?"1":"0"]):typeof t=="string"?e.push([n,t]):typeof t=="number"?e.push([n,`${t}`]):t==null?e.push([n,""]):Fn(t,n,e)}function fo(e){var n,t;let r=(n=e==null?void 0:e.form)!=null?n:e.closest("form");if(r){for(let l of r.elements)if(l!==e&&(l.tagName==="INPUT"&&l.type==="submit"||l.tagName==="BUTTON"&&l.type==="submit"||l.nodeName==="INPUT"&&l.type==="image")){l.click();return}(t=r.requestSubmit)==null||t.call(r)}}var X=(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))(X||{}),mo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(mo||{}),po=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(po||{}),ho=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(ho||{}),vo=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(vo||{});function Wt(e,n=t=>t){let t=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=n(e.options.slice()),l=r.length>0&&r[0].dataRef.current.order!==null?r.sort((i,s)=>i.dataRef.current.order-s.dataRef.current.order):At(r,i=>i.dataRef.current.domRef.current),o=t?l.indexOf(t):null;return o===-1&&(o=null),{options:l,activeOptionIndex:o}}let go={1(e){var n;return(n=e.dataRef.current)!=null&&n.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var n,t;if((n=e.dataRef.current)!=null&&n.disabled||e.comboboxState===0)return e;if((t=e.dataRef.current)!=null&&t.value){let r=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(r!==-1)return{...e,activeOptionIndex:r,comboboxState:0}}return{...e,comboboxState:0}},2(e,n){var t,r,l,o,i;if((t=e.dataRef.current)!=null&&t.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((l=e.dataRef.current)!=null&&l.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let p=n.focus===ne.Specific?n.idx:zt(n,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var b,m;return(m=(b=e.activeOptionIndex)!=null?b:e.virtual.options.findIndex(g=>!e.virtual.disabled(g)))!=null?m:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),h=(o=n.trigger)!=null?o:2;return e.activeOptionIndex===p&&e.activationTrigger===h?e:{...e,activeOptionIndex:p,activationTrigger:h}}let s=Wt(e);if(s.activeOptionIndex===null){let p=s.options.findIndex(h=>!h.dataRef.current.disabled);p!==-1&&(s.activeOptionIndex=p)}let a=n.focus===ne.Specific?n.idx:zt(n,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled}),c=(i=n.trigger)!=null?i:2;return e.activeOptionIndex===a&&e.activationTrigger===c?e:{...e,...s,activeOptionIndex:a,activationTrigger:c}},3:(e,n)=>{var t,r,l;if((t=e.dataRef.current)!=null&&t.virtual)return{...e,options:[...e.options,n.payload]};let o=n.payload,i=Wt(e,a=>(a.push(o),a));e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(n.payload.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(o));let s={...e,...i,activationTrigger:2};return(l=e.dataRef.current)!=null&&l.__demoMode&&e.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s},4:(e,n)=>{var t;if((t=e.dataRef.current)!=null&&t.virtual)return{...e,options:e.options.filter(l=>l.id!==n.id)};let r=Wt(e,l=>{let o=l.findIndex(i=>i.id===n.id);return o!==-1&&l.splice(o,1),l});return{...e,...r,activationTrigger:2}},5:(e,n)=>e.labelId===n.id?e:{...e,labelId:n.id},6:(e,n)=>e.activationTrigger===n.trigger?e:{...e,activationTrigger:n.trigger},7:(e,n)=>{var t;if(((t=e.virtual)==null?void 0:t.options)===n.options)return e;let r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let l=n.options.indexOf(e.virtual.options[e.activeOptionIndex]);l!==-1?r=l:r=null}return{...e,activeOptionIndex:r,virtual:Object.assign({},e.virtual,{options:n.options})}}},Ut=u.createContext(null);Ut.displayName="ComboboxActionsContext";function Xe(e){let n=u.useContext(Ut);if(n===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Xe),t}return n}let $n=u.createContext(null);function bo(e){var n;let t=Le("VirtualProvider"),[r,l]=u.useMemo(()=>{let a=t.optionsRef.current;if(!a)return[0,0];let c=window.getComputedStyle(a);return[parseFloat(c.paddingBlockStart||c.paddingTop),parseFloat(c.paddingBlockEnd||c.paddingBottom)]},[t.optionsRef.current]),o=qr({scrollPaddingStart:r,scrollPaddingEnd:l,count:t.virtual.options.length,estimateSize(){return 40},getScrollElement(){var a;return(a=t.optionsRef.current)!=null?a:null},overscan:12}),[i,s]=u.useState(0);return te(()=>{s(a=>a+1)},[(n=t.virtual)==null?void 0:n.options]),u.createElement($n.Provider,{value:o},u.createElement("div",{style:{position:"relative",width:"100%",height:`${o.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||t.activationTrigger===0)return;t.activeOptionIndex!==null&&t.virtual.options.length>t.activeOptionIndex&&o.scrollToIndex(t.activeOptionIndex)}}},o.getVirtualItems().map(a=>{var c;return u.createElement(u.Fragment,{key:a.key},u.cloneElement((c=e.children)==null?void 0:c.call(e,{option:t.virtual.options[a.index],open:t.comboboxState===0}),{key:`${i}-${a.key}`,"data-index":a.index,"aria-setsize":t.virtual.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}}))})))}let Ht=u.createContext(null);Ht.displayName="ComboboxDataContext";function Le(e){let n=u.useContext(Ht);if(n===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Le),t}return n}function xo(e,n){return ue(n.type,go,e,n)}let wo=u.Fragment;function yo(e,n){let{value:t,defaultValue:r,onChange:l,form:o,name:i,by:s=null,disabled:a=!1,__demoMode:c=!1,nullable:p=!1,multiple:h=!1,immediate:b=!1,virtual:m=null,...g}=e,v=!1,x=null,[y=h?[]:void 0,w]=vn(t,l,r),[T,P]=u.useReducer(xo,{dataRef:u.createRef(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),k=u.useRef(!1),A=u.useRef({static:!1,hold:!1}),K=u.useRef(null),Y=u.useRef(null),D=u.useRef(null),_=u.useRef(null),B=j(typeof s=="string"?(F,U)=>{let z=s;return(F==null?void 0:F[z])===(U==null?void 0:U[z])}:s??((F,U)=>F===U)),G=j(F=>T.options.findIndex(U=>B(U.dataRef.current.value,F))),le=u.useCallback(F=>ue(C.mode,{1:()=>y.some(U=>B(U,F)),0:()=>B(y,F)}),[y]),ae=j(F=>T.activeOptionIndex===G(F)),C=u.useMemo(()=>({...T,immediate:v,optionsPropsRef:A,labelRef:K,inputRef:Y,buttonRef:D,optionsRef:_,value:y,defaultValue:r,disabled:a,mode:h?1:0,virtual:T.virtual,get activeOptionIndex(){if(k.current&&T.activeOptionIndex===null&&T.options.length>0){let F=T.options.findIndex(U=>!U.dataRef.current.disabled);if(F!==-1)return F}return T.activeOptionIndex},calculateIndex:G,compare:B,isSelected:le,isActive:ae,nullable:p,__demoMode:c}),[y,r,a,h,p,c,T,x]);te(()=>{},[x,void 0]),te(()=>{T.dataRef.current=C},[C]),Dt([C.buttonRef,C.inputRef,C.optionsRef],()=>Te.closeCombobox(),C.comboboxState===0);let re=u.useMemo(()=>{var F,U,z;return{open:C.comboboxState===0,disabled:a,activeIndex:C.activeOptionIndex,activeOption:C.activeOptionIndex===null?null:C.virtual?C.virtual.options[(F=C.activeOptionIndex)!=null?F:0]:(z=(U=C.options[C.activeOptionIndex])==null?void 0:U.dataRef.current.value)!=null?z:null,value:y}},[C,a,y]),q=j(()=>{if(C.activeOptionIndex!==null){if(C.virtual)pe(C.virtual.options[C.activeOptionIndex]);else{let{dataRef:F}=C.options[C.activeOptionIndex];pe(F.current.value)}Te.goToOption(ne.Specific,C.activeOptionIndex)}}),J=j(()=>{P({type:0}),k.current=!0}),N=j(()=>{P({type:1}),k.current=!1}),M=j((F,U,z)=>(k.current=!1,F===ne.Specific?P({type:2,focus:ne.Specific,idx:U,trigger:z}):P({type:2,focus:F,trigger:z}))),W=j((F,U)=>(P({type:3,payload:{id:F,dataRef:U}}),()=>{C.isActive(U.current.value)&&(k.current=!0),P({type:4,id:F})})),Q=j(F=>(P({type:5,id:F}),()=>P({type:5,id:null}))),pe=j(F=>ue(C.mode,{0(){return w==null?void 0:w(F)},1(){let U=C.value.slice(),z=U.findIndex(he=>B(he,F));return z===-1?U.push(F):U.splice(z,1),w==null?void 0:w(U)}})),ce=j(F=>{P({type:6,trigger:F})}),Te=u.useMemo(()=>({onChange:pe,registerOption:W,registerLabel:Q,goToOption:M,closeCombobox:N,openCombobox:J,setActivationTrigger:ce,selectActiveOption:q}),[]),ye=n===null?{}:{ref:n},$=u.useRef(null),H=je();return u.useEffect(()=>{$.current&&r!==void 0&&H.addEventListener($.current,"reset",()=>{w==null||w(r)})},[$,w]),u.createElement(Ut.Provider,{value:Te},u.createElement(Ht.Provider,{value:C},u.createElement(Bt,{value:ue(C.comboboxState,{0:fe.Open,1:fe.Closed})},i!=null&&y!=null&&Fn({[i]:y}).map(([F,U],z)=>u.createElement(Je,{features:We.Hidden,ref:z===0?he=>{var ge;$.current=(ge=he==null?void 0:he.closest("form"))!=null?ge:null}:void 0,...mt({key:F,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:a,name:F,value:U})})),ie({ourProps:ye,theirProps:g,slot:re,defaultTag:wo,name:"Combobox"}))))}let Eo="input";function So(e,n){var t,r,l,o,i;let s=be(),{id:a=`headlessui-combobox-input-${s}`,onChange:c,displayValue:p,type:h="text",...b}=e,m=Le("Combobox.Input"),g=Xe("Combobox.Input"),v=de(m.inputRef,n),x=_e(m.inputRef),y=u.useRef(!1),w=je(),T=j(()=>{g.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),g.goToOption(ne.Nothing)}),P=function(){var C;return typeof p=="function"&&m.value!==void 0?(C=p(m.value))!=null?C:"":typeof m.value=="string"?m.value:""}();Ke(([C,re],[q,J])=>{if(y.current)return;let N=m.inputRef.current;N&&((J===0&&re===1||C!==q)&&(N.value=C),requestAnimationFrame(()=>{if(y.current||!N||(x==null?void 0:x.activeElement)!==N)return;let{selectionStart:M,selectionEnd:W}=N;Math.abs((W??0)-(M??0))===0&&M===0&&N.setSelectionRange(N.value.length,N.value.length)}))},[P,m.comboboxState,x]),Ke(([C],[re])=>{if(C===0&&re===1){if(y.current)return;let q=m.inputRef.current;if(!q)return;let J=q.value,{selectionStart:N,selectionEnd:M,selectionDirection:W}=q;q.value="",q.value=J,W!==null?q.setSelectionRange(N,M,W):q.setSelectionRange(N,M)}},[m.comboboxState]);let k=u.useRef(!1),A=j(()=>{k.current=!0}),K=j(()=>{w.nextFrame(()=>{k.current=!1})}),Y=j(C=>{switch(y.current=!0,C.key){case X.Enter:if(y.current=!1,m.comboboxState!==0||k.current)return;if(C.preventDefault(),C.stopPropagation(),m.activeOptionIndex===null){g.closeCombobox();return}g.selectActiveOption(),m.mode===0&&g.closeCombobox();break;case X.ArrowDown:return y.current=!1,C.preventDefault(),C.stopPropagation(),ue(m.comboboxState,{0:()=>g.goToOption(ne.Next),1:()=>g.openCombobox()});case X.ArrowUp:return y.current=!1,C.preventDefault(),C.stopPropagation(),ue(m.comboboxState,{0:()=>g.goToOption(ne.Previous),1:()=>{g.openCombobox(),w.nextFrame(()=>{m.value||g.goToOption(ne.Last)})}});case X.Home:if(C.shiftKey)break;return y.current=!1,C.preventDefault(),C.stopPropagation(),g.goToOption(ne.First);case X.PageUp:return y.current=!1,C.preventDefault(),C.stopPropagation(),g.goToOption(ne.First);case X.End:if(C.shiftKey)break;return y.current=!1,C.preventDefault(),C.stopPropagation(),g.goToOption(ne.Last);case X.PageDown:return y.current=!1,C.preventDefault(),C.stopPropagation(),g.goToOption(ne.Last);case X.Escape:return y.current=!1,m.comboboxState!==0?void 0:(C.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&C.stopPropagation(),m.nullable&&m.mode===0&&m.value===null&&T(),g.closeCombobox());case X.Tab:if(y.current=!1,m.comboboxState!==0)return;m.mode===0&&m.activationTrigger!==1&&g.selectActiveOption(),g.closeCombobox();break}}),D=j(C=>{c==null||c(C),m.nullable&&m.mode===0&&C.target.value===""&&T(),g.openCombobox()}),_=j(C=>{var re,q,J;let N=(re=C.relatedTarget)!=null?re:Ce.find(M=>M!==C.currentTarget);if(y.current=!1,!((q=m.optionsRef.current)!=null&&q.contains(N))&&!((J=m.buttonRef.current)!=null&&J.contains(N))&&m.comboboxState===0)return C.preventDefault(),m.mode===0&&(m.nullable&&m.value===null?T():m.activationTrigger!==1&&g.selectActiveOption()),g.closeCombobox()}),B=j(C=>{var re,q,J;let N=(re=C.relatedTarget)!=null?re:Ce.find(M=>M!==C.currentTarget);(q=m.buttonRef.current)!=null&&q.contains(N)||(J=m.optionsRef.current)!=null&&J.contains(N)||m.disabled||m.immediate&&m.comboboxState!==0&&(g.openCombobox(),w.nextFrame(()=>{g.setActivationTrigger(1)}))}),G=It(()=>{if(m.labelId)return[m.labelId].join(" ")},[m.labelId]),le=u.useMemo(()=>({open:m.comboboxState===0,disabled:m.disabled}),[m]),ae={ref:v,id:a,role:"combobox",type:h,"aria-controls":(t=m.optionsRef.current)==null?void 0:t.id,"aria-expanded":m.comboboxState===0,"aria-activedescendant":m.activeOptionIndex===null?void 0:m.virtual?(r=m.options.find(C=>{var re;return!((re=m.virtual)!=null&&re.disabled(C.dataRef.current.value))&&m.compare(C.dataRef.current.value,m.virtual.options[m.activeOptionIndex])}))==null?void 0:r.id:(l=m.options[m.activeOptionIndex])==null?void 0:l.id,"aria-labelledby":G,"aria-autocomplete":"list",defaultValue:(i=(o=e.defaultValue)!=null?o:m.defaultValue!==void 0?p==null?void 0:p(m.defaultValue):null)!=null?i:m.defaultValue,disabled:m.disabled,onCompositionStart:A,onCompositionEnd:K,onKeyDown:Y,onChange:D,onFocus:B,onBlur:_};return ie({ourProps:ae,theirProps:b,slot:le,defaultTag:Eo,name:"Combobox.Input"})}let Co="button";function To(e,n){var t;let r=Le("Combobox.Button"),l=Xe("Combobox.Button"),o=de(r.buttonRef,n),i=be(),{id:s=`headlessui-combobox-button-${i}`,...a}=e,c=je(),p=j(v=>{switch(v.key){case X.ArrowDown:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&l.openCombobox(),c.nextFrame(()=>{var x;return(x=r.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case X.ArrowUp:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&(l.openCombobox(),c.nextFrame(()=>{r.value||l.goToOption(ne.Last)})),c.nextFrame(()=>{var x;return(x=r.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case X.Escape:return r.comboboxState!==0?void 0:(v.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&v.stopPropagation(),l.closeCombobox(),c.nextFrame(()=>{var x;return(x=r.inputRef.current)==null?void 0:x.focus({preventScroll:!0})}));default:return}}),h=j(v=>{if(pt(v.currentTarget))return v.preventDefault();r.comboboxState===0?l.closeCombobox():(v.preventDefault(),l.openCombobox()),c.nextFrame(()=>{var x;return(x=r.inputRef.current)==null?void 0:x.focus({preventScroll:!0})})}),b=It(()=>{if(r.labelId)return[r.labelId,s].join(" ")},[r.labelId,s]),m=u.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),g={ref:o,id:s,type:_t(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(t=r.optionsRef.current)==null?void 0:t.id,"aria-expanded":r.comboboxState===0,"aria-labelledby":b,disabled:r.disabled,onClick:h,onKeyDown:p};return ie({ourProps:g,theirProps:a,slot:m,defaultTag:Co,name:"Combobox.Button"})}let Oo="label";function jo(e,n){let t=be(),{id:r=`headlessui-combobox-label-${t}`,...l}=e,o=Le("Combobox.Label"),i=Xe("Combobox.Label"),s=de(o.labelRef,n);te(()=>i.registerLabel(r),[r]);let a=j(()=>{var p;return(p=o.inputRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=u.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return ie({ourProps:{ref:s,id:r,onClick:a},theirProps:l,slot:c,defaultTag:Oo,name:"Combobox.Label"})}let No="ul",ko=Pe.RenderStrategy|Pe.Static;function Fo(e,n){let t=be(),{id:r=`headlessui-combobox-options-${t}`,hold:l=!1,...o}=e,i=Le("Combobox.Options"),s=de(i.optionsRef,n),a=Qe(),c=a!==null?(a&fe.Open)===fe.Open:i.comboboxState===0;te(()=>{var m;i.optionsPropsRef.current.static=(m=e.static)!=null?m:!1},[i.optionsPropsRef,e.static]),te(()=>{i.optionsPropsRef.current.hold=l},[i.optionsPropsRef,l]),Nn({container:i.optionsRef.current,enabled:i.comboboxState===0,accept(m){return m.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:m.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(m){m.setAttribute("role","none")}});let p=It(()=>{var m,g;return(g=i.labelId)!=null?g:(m=i.buttonRef.current)==null?void 0:m.id},[i.labelId,i.buttonRef.current]),h=u.useMemo(()=>({open:i.comboboxState===0,option:void 0}),[i]),b={"aria-labelledby":p,role:"listbox","aria-multiselectable":i.mode===1?!0:void 0,id:r,ref:s};return i.virtual&&i.comboboxState===0&&Object.assign(o,{children:u.createElement(bo,null,o.children)}),ie({ourProps:b,theirProps:o,slot:h,defaultTag:No,features:ko,visible:c,name:"Combobox.Options"})}let Io="li";function Po(e,n){var t;let r=be(),{id:l=`headlessui-combobox-option-${r}`,disabled:o=!1,value:i,order:s=null,...a}=e,c=Le("Combobox.Option"),p=Xe("Combobox.Option"),h=c.virtual?c.activeOptionIndex===c.calculateIndex(i):c.activeOptionIndex===null?!1:((t=c.options[c.activeOptionIndex])==null?void 0:t.id)===l,b=c.isSelected(i),m=u.useRef(null),g=Se({disabled:o,value:i,domRef:m,order:s}),v=u.useContext($n),x=de(n,m,v?v.measureElement:null),y=j(()=>p.onChange(i));te(()=>p.registerOption(l,g),[g,l]);let w=u.useRef(!(c.virtual||c.__demoMode));te(()=>{if(!c.virtual||!c.__demoMode)return;let _=we();return _.requestAnimationFrame(()=>{w.current=!0}),_.dispose},[c.virtual,c.__demoMode]),te(()=>{if(!w.current||c.comboboxState!==0||!h||c.activationTrigger===0)return;let _=we();return _.requestAnimationFrame(()=>{var B,G;(G=(B=m.current)==null?void 0:B.scrollIntoView)==null||G.call(B,{block:"nearest"})}),_.dispose},[m,h,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let T=j(_=>{var B;if(o||(B=c.virtual)!=null&&B.disabled(i))return _.preventDefault();y(),En()||requestAnimationFrame(()=>{var G;return(G=c.inputRef.current)==null?void 0:G.focus({preventScroll:!0})}),c.mode===0&&requestAnimationFrame(()=>p.closeCombobox())}),P=j(()=>{var _;if(o||(_=c.virtual)!=null&&_.disabled(i))return p.goToOption(ne.Nothing);let B=c.calculateIndex(i);p.goToOption(ne.Specific,B)}),k=jn(),A=j(_=>k.update(_)),K=j(_=>{var B;if(!k.wasMoved(_)||o||(B=c.virtual)!=null&&B.disabled(i)||h)return;let G=c.calculateIndex(i);p.goToOption(ne.Specific,G,0)}),Y=j(_=>{var B;k.wasMoved(_)&&(o||(B=c.virtual)!=null&&B.disabled(i)||h&&(c.optionsPropsRef.current.hold||p.goToOption(ne.Nothing)))}),D=u.useMemo(()=>({active:h,selected:b,disabled:o}),[h,b,o]);return ie({ourProps:{id:l,ref:x,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":b,disabled:void 0,onClick:T,onFocus:P,onPointerEnter:A,onMouseEnter:A,onPointerMove:K,onMouseMove:K,onPointerLeave:Y,onMouseLeave:Y},theirProps:a,slot:D,defaultTag:Io,name:"Combobox.Option"})}let $o=se(yo),Mo=se(To),Ao=se(So),Do=se(jo),_o=se(Fo),Lo=se(Po),ke=Object.assign($o,{Input:Ao,Button:Mo,Label:Do,Options:_o,Option:Lo});function Mn(e,n,t,r){let l=Se(t);u.useEffect(()=>{e=e??window;function o(i){l.current(i)}return e.addEventListener(n,o,r),()=>e.removeEventListener(n,o,r)},[e,n,r])}function et(){let e=u.useRef(!1);return te(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function An(e){let n=j(e),t=u.useRef(!1);u.useEffect(()=>(t.current=!1,()=>{t.current=!0,at(()=>{t.current&&n()})}),[n])}var tt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(tt||{});function Ro(){let e=u.useRef(0);return Sn("keydown",n=>{n.key==="Tab"&&(e.current=n.shiftKey?1:0)},!0),e}function Dn(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let n=new Set;for(let t of e.current)t.current instanceof HTMLElement&&n.add(t.current);return n}let Bo="div";var _n=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(_n||{});function zo(e,n){let t=u.useRef(null),r=de(t,n),{initialFocus:l,containers:o,features:i=30,...s}=e;ze()||(i=1);let a=_e(t);Ho({ownerDocument:a},!!(i&16));let c=Vo({ownerDocument:a,container:t,initialFocus:l},!!(i&2));Yo({ownerDocument:a,container:t,containers:o,previousActiveElement:c},!!(i&8));let p=Ro(),h=j(v=>{let x=t.current;x&&(y=>y())(()=>{ue(p.current,{[tt.Forwards]:()=>{Ze(x,Ne.First,{skipElements:[v.relatedTarget]})},[tt.Backwards]:()=>{Ze(x,Ne.Last,{skipElements:[v.relatedTarget]})}})})}),b=je(),m=u.useRef(!1),g={ref:r,onKeyDown(v){v.key=="Tab"&&(m.current=!0,b.requestAnimationFrame(()=>{m.current=!1}))},onBlur(v){let x=Dn(o);t.current instanceof HTMLElement&&x.add(t.current);let y=v.relatedTarget;y instanceof HTMLElement&&y.dataset.headlessuiFocusGuard!=="true"&&(Ln(x,y)||(m.current?Ze(t.current,ue(p.current,{[tt.Forwards]:()=>Ne.Next,[tt.Backwards]:()=>Ne.Previous})|Ne.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&Ie(v.target)))}};return u.createElement(u.Fragment,null,!!(i&4)&&u.createElement(Je,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:We.Focusable}),ie({ourProps:g,theirProps:s,defaultTag:Bo,name:"FocusTrap"}),!!(i&4)&&u.createElement(Je,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:We.Focusable}))}let Wo=se(zo),nt=Object.assign(Wo,{features:_n});function Uo(e=!0){let n=u.useRef(Ce.slice());return Ke(([t],[r])=>{r===!0&&t===!1&&at(()=>{n.current.splice(0)}),r===!1&&t===!0&&(n.current=Ce.slice())},[e,Ce,n]),j(()=>{var t;return(t=n.current.find(r=>r!=null&&r.isConnected))!=null?t:null})}function Ho({ownerDocument:e},n){let t=Uo(n);Ke(()=>{n||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Ie(t())},[n]),An(()=>{n&&Ie(t())})}function Vo({ownerDocument:e,container:n,initialFocus:t},r){let l=u.useRef(null),o=et();return Ke(()=>{if(!r)return;let i=n.current;i&&at(()=>{if(!o.current)return;let s=e==null?void 0:e.activeElement;if(t!=null&&t.current){if((t==null?void 0:t.current)===s){l.current=s;return}}else if(i.contains(s)){l.current=s;return}t!=null&&t.current?Ie(t.current):Ze(i,Ne.First)===bn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=e==null?void 0:e.activeElement})},[r]),l}function Yo({ownerDocument:e,container:n,containers:t,previousActiveElement:r},l){let o=et();Mn(e==null?void 0:e.defaultView,"focus",i=>{if(!l||!o.current)return;let s=Dn(t);n.current instanceof HTMLElement&&s.add(n.current);let a=r.current;if(!a)return;let c=i.target;c&&c instanceof HTMLElement?Ln(s,c)?(r.current=c,Ie(c)):(i.preventDefault(),i.stopPropagation(),Ie(a)):Ie(r.current)},!0)}function Ln(e,n){for(let t of e)if(t.contains(n))return!0;return!1}let Rn=u.createContext(!1);function qo(){return u.useContext(Rn)}function Vt(e){return u.createElement(Rn.Provider,{value:e.force},e.children)}function Go(e){let n=qo(),t=u.useContext(Bn),r=_e(e),[l,o]=u.useState(()=>{if(!n&&t!==null||Oe.isServer)return null;let i=r==null?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(r===null)return null;let s=r.createElement("div");return s.setAttribute("id","headlessui-portal-root"),r.body.appendChild(s)});return u.useEffect(()=>{l!==null&&(r!=null&&r.body.contains(l)||r==null||r.body.appendChild(l))},[l,r]),u.useEffect(()=>{n||t!==null&&o(t.current)},[t,o,n]),l}let Zo=u.Fragment;function Ko(e,n){let t=e,r=u.useRef(null),l=de(oo(p=>{r.current=p}),n),o=_e(r),i=Go(r),[s]=u.useState(()=>{var p;return Oe.isServer?null:(p=o==null?void 0:o.createElement("div"))!=null?p:null}),a=u.useContext(Yt),c=ze();return te(()=>{!i||!s||i.contains(s)||(s.setAttribute("data-headlessui-portal",""),i.appendChild(s))},[i,s]),te(()=>{if(s&&a)return a.register(s)},[a,s]),An(()=>{var p;!i||!s||(s instanceof Node&&i.contains(s)&&i.removeChild(s),i.childNodes.length<=0&&((p=i.parentElement)==null||p.removeChild(i)))}),c?!i||!s?null:Tt.createPortal(ie({ourProps:{ref:l},theirProps:t,defaultTag:Zo,name:"Portal"}),s):null}let Jo=u.Fragment,Bn=u.createContext(null);function Qo(e,n){let{target:t,...r}=e,l={ref:de(n)};return u.createElement(Bn.Provider,{value:t},ie({ourProps:l,theirProps:r,defaultTag:Jo,name:"Popover.Group"}))}let Yt=u.createContext(null);function Xo(){let e=u.useContext(Yt),n=u.useRef([]),t=j(o=>(n.current.push(o),e&&e.register(o),()=>r(o))),r=j(o=>{let i=n.current.indexOf(o);i!==-1&&n.current.splice(i,1),e&&e.unregister(o)}),l=u.useMemo(()=>({register:t,unregister:r,portals:n}),[t,r,n]);return[n,u.useMemo(()=>function({children:o}){return u.createElement(Yt.Provider,{value:l},o)},[l])]}let el=se(Ko),tl=se(Qo),qt=Object.assign(el,{Group:tl});function nl(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}const rl=typeof Object.is=="function"?Object.is:nl,{useState:ol,useEffect:ll,useLayoutEffect:il,useDebugValue:sl}=E;function al(e,n,t){const r=n(),[{inst:l},o]=ol({inst:{value:r,getSnapshot:n}});return il(()=>{l.value=r,l.getSnapshot=n,Gt(l)&&o({inst:l})},[e,r,n]),ll(()=>(Gt(l)&&o({inst:l}),e(()=>{Gt(l)&&o({inst:l})})),[e]),sl(r),r}function Gt(e){const n=e.getSnapshot,t=e.value;try{const r=n();return!rl(t,r)}catch{return!0}}function ul(e,n,t){return n()}const cl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dl=!cl,fl=dl?ul:al,ml="useSyncExternalStore"in E?(e=>e.useSyncExternalStore)(E):fl;function pl(e){return ml(e.subscribe,e.getSnapshot,e.getSnapshot)}function hl(e,n){let t=e(),r=new Set;return{getSnapshot(){return t},subscribe(l){return r.add(l),()=>r.delete(l)},dispatch(l,...o){let i=n[l].call(t,...o);i&&(t=i,r.forEach(s=>s()))}}}function vl(){let e;return{before({doc:n}){var t;let r=n.documentElement;e=((t=n.defaultView)!=null?t:window).innerWidth-r.clientWidth},after({doc:n,d:t}){let r=n.documentElement,l=r.clientWidth-r.offsetWidth,o=e-l;t.style(r,"paddingRight",`${o}px`)}}}function gl(){return yn()?{before({doc:e,d:n,meta:t}){function r(l){return t.containers.flatMap(o=>o()).some(o=>o.contains(l))}n.microTask(()=>{var l;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=we();s.style(e.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}let o=(l=window.scrollY)!=null?l:window.pageYOffset,i=null;n.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:c}=new URL(a.href),p=e.querySelector(c);p&&!r(p)&&(i=p)}catch{}},!0),n.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let a=s.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;n.style(a,"overscrollBehavior","contain")}else n.style(s.target,"touchAction","none")}),n.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let a=s.target;for(;a.parentElement&&a.dataset.headlessuiPortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()},{passive:!1}),n.add(()=>{var s;let a=(s=window.scrollY)!=null?s:window.pageYOffset;o!==a&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function bl(){return{before({doc:e,d:n}){n.style(e.documentElement,"overflow","hidden")}}}function xl(e){let n={};for(let t of e)Object.assign(n,t(n));return n}let Re=hl(()=>new Map,{PUSH(e,n){var t;let r=(t=this.get(e))!=null?t:{doc:e,count:0,d:we(),meta:new Set};return r.count++,r.meta.add(n),this.set(e,r),this},POP(e,n){let t=this.get(e);return t&&(t.count--,t.meta.delete(n)),this},SCROLL_PREVENT({doc:e,d:n,meta:t}){let r={doc:e,d:n,meta:xl(t)},l=[gl(),vl(),bl()];l.forEach(({before:o})=>o==null?void 0:o(r)),l.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Re.subscribe(()=>{let e=Re.getSnapshot(),n=new Map;for(let[t]of e)n.set(t,t.documentElement.style.overflow);for(let t of e.values()){let r=n.get(t.doc)==="hidden",l=t.count!==0;(l&&!r||!l&&r)&&Re.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&Re.dispatch("TEARDOWN",t)}});function wl(e,n,t){let r=pl(Re),l=e?r.get(e):void 0,o=l?l.count>0:!1;return te(()=>{if(!(!e||!n))return Re.dispatch("PUSH",e,t),()=>Re.dispatch("POP",e,t)},[n,e]),o}let Zt=new Map,rt=new Map;function zn(e,n=!0){te(()=>{var t;if(!n)return;let r=typeof e=="function"?e():e.current;if(!r)return;function l(){var i;if(!r)return;let s=(i=rt.get(r))!=null?i:1;if(s===1?rt.delete(r):rt.set(r,s-1),s!==1)return;let a=Zt.get(r);a&&(a["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",a["aria-hidden"]),r.inert=a.inert,Zt.delete(r))}let o=(t=rt.get(r))!=null?t:0;return rt.set(r,o+1),o!==0||(Zt.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),l},[e,n])}function yl({defaultContainers:e=[],portals:n,mainTreeNodeRef:t}={}){var r;let l=u.useRef((r=t==null?void 0:t.current)!=null?r:null),o=_e(l),i=j(()=>{var s,a,c;let p=[];for(let h of e)h!==null&&(h instanceof HTMLElement?p.push(h):"current"in h&&h.current instanceof HTMLElement&&p.push(h.current));if(n!=null&&n.current)for(let h of n.current)p.push(h);for(let h of(s=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?s:[])h!==document.body&&h!==document.head&&h instanceof HTMLElement&&h.id!=="headlessui-portal-root"&&(h.contains(l.current)||h.contains((c=(a=l.current)==null?void 0:a.getRootNode())==null?void 0:c.host)||p.some(b=>h.contains(b))||p.push(h));return p});return{resolveContainers:i,contains:j(s=>i().some(a=>a.contains(s))),mainTreeNodeRef:l,MainTreeNode:u.useMemo(()=>function(){return t!=null?null:u.createElement(Je,{features:We.Hidden,ref:l})},[l,t])}}let Kt=u.createContext(()=>{});Kt.displayName="StackContext";var Jt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Jt||{});function El(){return u.useContext(Kt)}function Sl({children:e,onUpdate:n,type:t,element:r,enabled:l}){let o=El(),i=j((...s)=>{n==null||n(...s),o(...s)});return te(()=>{let s=l===void 0||l===!0;return s&&i(0,t,r),()=>{s&&i(1,t,r)}},[i,t,r,l]),u.createElement(Kt.Provider,{value:i},e)}let Wn=u.createContext(null);function Un(){let e=u.useContext(Wn);if(e===null){let n=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Un),n}return e}function Hn(){let[e,n]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(t){let r=j(o=>(n(i=>[...i,o]),()=>n(i=>{let s=i.slice(),a=s.indexOf(o);return a!==-1&&s.splice(a,1),s}))),l=u.useMemo(()=>({register:r,slot:t.slot,name:t.name,props:t.props}),[r,t.slot,t.name,t.props]);return u.createElement(Wn.Provider,{value:l},t.children)},[n])]}let Cl="p";function Tl(e,n){let t=be(),{id:r=`headlessui-description-${t}`,...l}=e,o=Un(),i=de(n);te(()=>o.register(r),[r,o.register]);let s={ref:i,...o.props,id:r};return ie({ourProps:s,theirProps:l,slot:o.slot||{},defaultTag:Cl,name:o.name||"Description"})}let Ol=se(Tl),Vn=Object.assign(Ol,{});var jl=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(jl||{}),Nl=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Nl||{});let kl={0(e,n){return e.titleId===n.id?e:{...e,titleId:n.id}}},ht=u.createContext(null);ht.displayName="DialogContext";function ot(e){let n=u.useContext(ht);if(n===null){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ot),t}return n}function Fl(e,n,t=()=>[document.body]){wl(e,n,r=>{var l;return{containers:[...(l=r.containers)!=null?l:[],t]}})}function Il(e,n){return ue(n.type,kl,e,n)}let Pl="div",$l=Pe.RenderStrategy|Pe.Static;function Ml(e,n){let t=be(),{id:r=`headlessui-dialog-${t}`,open:l,onClose:o,initialFocus:i,role:s="dialog",__demoMode:a=!1,...c}=e,[p,h]=u.useState(0),b=u.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(b.current||(b.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let m=Qe();l===void 0&&m!==null&&(l=(m&fe.Open)===fe.Open);let g=u.useRef(null),v=de(g,n),x=_e(g),y=e.hasOwnProperty("open")||m!==null,w=e.hasOwnProperty("onClose");if(!y&&!w)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!w)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof l!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l}`);if(typeof o!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let T=l?0:1,[P,k]=u.useReducer(Il,{titleId:null,descriptionId:null,panelRef:u.createRef()}),A=j(()=>o(!1)),K=j(z=>k({type:0,id:z})),Y=ze()?a?!1:T===0:!1,D=p>1,_=u.useContext(ht)!==null,[B,G]=Xo(),le={get current(){var z;return(z=P.panelRef.current)!=null?z:g.current}},{resolveContainers:ae,mainTreeNodeRef:C,MainTreeNode:re}=yl({portals:B,defaultContainers:[le]}),q=D?"parent":"leaf",J=m!==null?(m&fe.Closing)===fe.Closing:!1,N=_||J?!1:Y,M=u.useCallback(()=>{var z,he;return(he=Array.from((z=x==null?void 0:x.querySelectorAll("body > *"))!=null?z:[]).find(ge=>ge.id==="headlessui-portal-root"?!1:ge.contains(C.current)&&ge instanceof HTMLElement))!=null?he:null},[C]);zn(M,N);let W=D?!0:Y,Q=u.useCallback(()=>{var z,he;return(he=Array.from((z=x==null?void 0:x.querySelectorAll("[data-headlessui-portal]"))!=null?z:[]).find(ge=>ge.contains(C.current)&&ge instanceof HTMLElement))!=null?he:null},[C]);zn(Q,W),Dt(ae,z=>{z.preventDefault(),A()},!(!Y||D));let ce=!(D||T!==0);Mn(x==null?void 0:x.defaultView,"keydown",z=>{ce&&(z.defaultPrevented||z.key===X.Escape&&(z.preventDefault(),z.stopPropagation(),A()))}),Fl(x,!(J||T!==0||_),ae),u.useEffect(()=>{if(T!==0||!g.current)return;let z=new ResizeObserver(he=>{for(let ge of he){let Ue=ge.target.getBoundingClientRect();Ue.x===0&&Ue.y===0&&Ue.width===0&&Ue.height===0&&A()}});return z.observe(g.current),()=>z.disconnect()},[T,g,A]);let[ye,$]=Hn(),H=u.useMemo(()=>[{dialogState:T,close:A,setTitleId:K},P],[T,P,A,K]),F=u.useMemo(()=>({open:T===0}),[T]),U={ref:v,id:r,role:s,"aria-modal":T===0?!0:void 0,"aria-labelledby":P.titleId,"aria-describedby":ye};return u.createElement(Sl,{type:"Dialog",enabled:T===0,element:g,onUpdate:j((z,he)=>{he==="Dialog"&&ue(z,{[Jt.Add]:()=>h(ge=>ge+1),[Jt.Remove]:()=>h(ge=>ge-1)})})},u.createElement(Vt,{force:!0},u.createElement(qt,null,u.createElement(ht.Provider,{value:H},u.createElement(qt.Group,{target:g},u.createElement(Vt,{force:!1},u.createElement($,{slot:F,name:"Dialog.Description"},u.createElement(nt,{initialFocus:i,containers:ae,features:Y?ue(q,{parent:nt.features.RestoreFocus,leaf:nt.features.All&~nt.features.FocusLock}):nt.features.None},u.createElement(G,null,ie({ourProps:U,theirProps:c,slot:F,defaultTag:Pl,features:$l,visible:T===0,name:"Dialog"}))))))))),u.createElement(re,null))}let Al="div";function Dl(e,n){let t=be(),{id:r=`headlessui-dialog-overlay-${t}`,...l}=e,[{dialogState:o,close:i}]=ot("Dialog.Overlay"),s=de(n),a=j(p=>{if(p.target===p.currentTarget){if(pt(p.currentTarget))return p.preventDefault();p.preventDefault(),p.stopPropagation(),i()}}),c=u.useMemo(()=>({open:o===0}),[o]);return ie({ourProps:{ref:s,id:r,"aria-hidden":!0,onClick:a},theirProps:l,slot:c,defaultTag:Al,name:"Dialog.Overlay"})}let _l="div";function Ll(e,n){let t=be(),{id:r=`headlessui-dialog-backdrop-${t}`,...l}=e,[{dialogState:o},i]=ot("Dialog.Backdrop"),s=de(n);u.useEffect(()=>{if(i.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[i.panelRef]);let a=u.useMemo(()=>({open:o===0}),[o]);return u.createElement(Vt,{force:!0},u.createElement(qt,null,ie({ourProps:{ref:s,id:r,"aria-hidden":!0},theirProps:l,slot:a,defaultTag:_l,name:"Dialog.Backdrop"})))}let Rl="div";function Bl(e,n){let t=be(),{id:r=`headlessui-dialog-panel-${t}`,...l}=e,[{dialogState:o},i]=ot("Dialog.Panel"),s=de(n,i.panelRef),a=u.useMemo(()=>({open:o===0}),[o]),c=j(p=>{p.stopPropagation()});return ie({ourProps:{ref:s,id:r,onClick:c},theirProps:l,slot:a,defaultTag:Rl,name:"Dialog.Panel"})}let zl="h2";function Wl(e,n){let t=be(),{id:r=`headlessui-dialog-title-${t}`,...l}=e,[{dialogState:o,setTitleId:i}]=ot("Dialog.Title"),s=de(n);u.useEffect(()=>(i(r),()=>i(null)),[r,i]);let a=u.useMemo(()=>({open:o===0}),[o]);return ie({ourProps:{ref:s,id:r},theirProps:l,slot:a,defaultTag:zl,name:"Dialog.Title"})}let Ul=se(Ml),Hl=se(Ll),Vl=se(Bl),Yl=se(Dl),ql=se(Wl),Yn=Object.assign(Ul,{Backdrop:Hl,Panel:Vl,Overlay:Yl,Title:ql,Description:Vn}),qn=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Gn(e){var n,t;let r=(n=e.innerText)!=null?n:"",l=e.cloneNode(!0);if(!(l instanceof HTMLElement))return r;let o=!1;for(let s of l.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let i=o?(t=l.innerText)!=null?t:"":r;return qn.test(i)&&(i=i.replace(qn,"")),i}function Gl(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let t=e.getAttribute("aria-labelledby");if(t){let r=t.split(" ").map(l=>{let o=document.getElementById(l);if(o){let i=o.getAttribute("aria-label");return typeof i=="string"?i.trim():Gn(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Gn(e).trim()}function Zl(e){let n=u.useRef(""),t=u.useRef("");return j(()=>{let r=e.current;if(!r)return"";let l=r.innerText;if(n.current===l)return t.current;let o=Gl(r).trim().toLowerCase();return n.current=l,t.current=o,o})}var Kl=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Kl||{}),Jl=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Jl||{}),Ql=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(Ql||{});function Qt(e,n=t=>t){let t=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=At(n(e.items.slice()),o=>o.dataRef.current.domRef.current),l=t?r.indexOf(t):null;return l===-1&&(l=null),{items:r,activeItemIndex:l}}let Xl={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},0(e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},2:(e,n)=>{var t;let r=Qt(e),l=zt(n,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:l,activationTrigger:(t=n.trigger)!=null?t:1}},3:(e,n)=>{let t=e.searchQuery!==""?0:1,r=e.searchQuery+n.value.toLowerCase(),l=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+t).concat(e.items.slice(0,e.activeItemIndex+t)):e.items).find(i=>{var s;return((s=i.dataRef.current.textValue)==null?void 0:s.startsWith(r))&&!i.dataRef.current.disabled}),o=l?e.items.indexOf(l):-1;return o===-1||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,n)=>{let t=Qt(e,r=>[...r,{id:n.id,dataRef:n.dataRef}]);return{...e,...t}},6:(e,n)=>{let t=Qt(e,r=>{let l=r.findIndex(o=>o.id===n.id);return l!==-1&&r.splice(l,1),r});return{...e,...t,activationTrigger:1}}},Xt=u.createContext(null);Xt.displayName="MenuContext";function vt(e){let n=u.useContext(Xt);if(n===null){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,vt),t}return n}function ei(e,n){return ue(n.type,Xl,e,n)}let ti=u.Fragment;function ni(e,n){let{__demoMode:t=!1,...r}=e,l=u.useReducer(ei,{__demoMode:t,menuState:t?0:1,buttonRef:u.createRef(),itemsRef:u.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsRef:i,buttonRef:s},a]=l,c=de(n);Dt([s,i],(m,g)=>{var v;a({type:1}),Mt(g,$t.Loose)||(m.preventDefault(),(v=s.current)==null||v.focus())},o===0);let p=j(()=>{a({type:1})}),h=u.useMemo(()=>({open:o===0,close:p}),[o,p]),b={ref:c};return u.createElement(Xt.Provider,{value:l},u.createElement(Bt,{value:ue(o,{0:fe.Open,1:fe.Closed})},ie({ourProps:b,theirProps:r,slot:h,defaultTag:ti,name:"Menu"})))}let ri="button";function oi(e,n){var t;let r=be(),{id:l=`headlessui-menu-button-${r}`,...o}=e,[i,s]=vt("Menu.Button"),a=de(i.buttonRef,n),c=je(),p=j(v=>{switch(v.key){case X.Space:case X.Enter:case X.ArrowDown:v.preventDefault(),v.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ne.First}));break;case X.ArrowUp:v.preventDefault(),v.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ne.Last}));break}}),h=j(v=>{switch(v.key){case X.Space:v.preventDefault();break}}),b=j(v=>{if(pt(v.currentTarget))return v.preventDefault();e.disabled||(i.menuState===0?(s({type:1}),c.nextFrame(()=>{var x;return(x=i.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})})):(v.preventDefault(),s({type:0})))}),m=u.useMemo(()=>({open:i.menuState===0}),[i]),g={ref:a,id:l,type:_t(e,i.buttonRef),"aria-haspopup":"menu","aria-controls":(t=i.itemsRef.current)==null?void 0:t.id,"aria-expanded":i.menuState===0,onKeyDown:p,onKeyUp:h,onClick:b};return ie({ourProps:g,theirProps:o,slot:m,defaultTag:ri,name:"Menu.Button"})}let li="div",ii=Pe.RenderStrategy|Pe.Static;function si(e,n){var t,r;let l=be(),{id:o=`headlessui-menu-items-${l}`,...i}=e,[s,a]=vt("Menu.Items"),c=de(s.itemsRef,n),p=_e(s.itemsRef),h=je(),b=Qe(),m=b!==null?(b&fe.Open)===fe.Open:s.menuState===0;u.useEffect(()=>{let w=s.itemsRef.current;w&&s.menuState===0&&w!==(p==null?void 0:p.activeElement)&&w.focus({preventScroll:!0})},[s.menuState,s.itemsRef,p]),Nn({container:s.itemsRef.current,enabled:s.menuState===0,accept(w){return w.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:w.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(w){w.setAttribute("role","none")}});let g=j(w=>{var T,P;switch(h.dispose(),w.key){case X.Space:if(s.searchQuery!=="")return w.preventDefault(),w.stopPropagation(),a({type:3,value:w.key});case X.Enter:if(w.preventDefault(),w.stopPropagation(),a({type:1}),s.activeItemIndex!==null){let{dataRef:k}=s.items[s.activeItemIndex];(P=(T=k.current)==null?void 0:T.domRef.current)==null||P.click()}wn(s.buttonRef.current);break;case X.ArrowDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ne.Next});case X.ArrowUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ne.Previous});case X.Home:case X.PageUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ne.First});case X.End:case X.PageDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ne.Last});case X.Escape:w.preventDefault(),w.stopPropagation(),a({type:1}),we().nextFrame(()=>{var k;return(k=s.buttonRef.current)==null?void 0:k.focus({preventScroll:!0})});break;case X.Tab:w.preventDefault(),w.stopPropagation(),a({type:1}),we().nextFrame(()=>{no(s.buttonRef.current,w.shiftKey?Ne.Previous:Ne.Next)});break;default:w.key.length===1&&(a({type:3,value:w.key}),h.setTimeout(()=>a({type:4}),350));break}}),v=j(w=>{switch(w.key){case X.Space:w.preventDefault();break}}),x=u.useMemo(()=>({open:s.menuState===0}),[s]),y={"aria-activedescendant":s.activeItemIndex===null||(t=s.items[s.activeItemIndex])==null?void 0:t.id,"aria-labelledby":(r=s.buttonRef.current)==null?void 0:r.id,id:o,onKeyDown:g,onKeyUp:v,role:"menu",tabIndex:0,ref:c};return ie({ourProps:y,theirProps:i,slot:x,defaultTag:li,features:ii,visible:m,name:"Menu.Items"})}let ai=u.Fragment;function ui(e,n){let t=be(),{id:r=`headlessui-menu-item-${t}`,disabled:l=!1,...o}=e,[i,s]=vt("Menu.Item"),a=i.activeItemIndex!==null?i.items[i.activeItemIndex].id===r:!1,c=u.useRef(null),p=de(n,c);te(()=>{if(i.__demoMode||i.menuState!==0||!a||i.activationTrigger===0)return;let k=we();return k.requestAnimationFrame(()=>{var A,K;(K=(A=c.current)==null?void 0:A.scrollIntoView)==null||K.call(A,{block:"nearest"})}),k.dispose},[i.__demoMode,c,a,i.menuState,i.activationTrigger,i.activeItemIndex]);let h=Zl(c),b=u.useRef({disabled:l,domRef:c,get textValue(){return h()}});te(()=>{b.current.disabled=l},[b,l]),te(()=>(s({type:5,id:r,dataRef:b}),()=>s({type:6,id:r})),[b,r]);let m=j(()=>{s({type:1})}),g=j(k=>{if(l)return k.preventDefault();s({type:1}),wn(i.buttonRef.current)}),v=j(()=>{if(l)return s({type:2,focus:ne.Nothing});s({type:2,focus:ne.Specific,id:r})}),x=jn(),y=j(k=>x.update(k)),w=j(k=>{x.wasMoved(k)&&(l||a||s({type:2,focus:ne.Specific,id:r,trigger:0}))}),T=j(k=>{x.wasMoved(k)&&(l||a&&s({type:2,focus:ne.Nothing}))}),P=u.useMemo(()=>({active:a,disabled:l,close:m}),[a,l,m]);return ie({ourProps:{id:r,ref:p,role:"menuitem",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,disabled:void 0,onClick:g,onFocus:v,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:T,onMouseLeave:T},theirProps:o,slot:P,defaultTag:ai,name:"Menu.Item"})}let ci=se(ni),di=se(oi),fi=se(si),mi=se(ui),gt=Object.assign(ci,{Button:di,Items:fi,Item:mi}),Zn=u.createContext(null);function Kn(){let e=u.useContext(Zn);if(e===null){let n=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Kn),n}return e}function pi(){let[e,n]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(t){let r=j(o=>(n(i=>[...i,o]),()=>n(i=>{let s=i.slice(),a=s.indexOf(o);return a!==-1&&s.splice(a,1),s}))),l=u.useMemo(()=>({register:r,slot:t.slot,name:t.name,props:t.props}),[r,t.slot,t.name,t.props]);return u.createElement(Zn.Provider,{value:l},t.children)},[n])]}let hi="label";function vi(e,n){let t=be(),{id:r=`headlessui-label-${t}`,passive:l=!1,...o}=e,i=Kn(),s=de(n);te(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return l&&("onClick"in a&&(delete a.htmlFor,delete a.onClick),"onClick"in o&&delete o.onClick),ie({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:hi,name:i.name||"Label"})}let gi=se(vi),bi=Object.assign(gi,{});function xi(e=0){let[n,t]=u.useState(e),r=et(),l=u.useCallback(a=>{r.current&&t(c=>c|a)},[n,r]),o=u.useCallback(a=>!!(n&a),[n]),i=u.useCallback(a=>{r.current&&t(c=>c&~a)},[t,r]),s=u.useCallback(a=>{r.current&&t(c=>c^a)},[t]);return{flags:n,addFlag:l,hasFlag:o,removeFlag:i,toggleFlag:s}}let en=u.createContext(null);en.displayName="GroupContext";let wi=u.Fragment;function yi(e){var n;let[t,r]=u.useState(null),[l,o]=pi(),[i,s]=Hn(),a=u.useMemo(()=>({switch:t,setSwitch:r,labelledby:l,describedby:i}),[t,r,l,i]),c={},p=e;return u.createElement(s,{name:"Switch.Description"},u.createElement(o,{name:"Switch.Label",props:{htmlFor:(n=a.switch)==null?void 0:n.id,onClick(h){t&&(h.currentTarget.tagName==="LABEL"&&h.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},u.createElement(en.Provider,{value:a},ie({ourProps:c,theirProps:p,defaultTag:wi,name:"Switch.Group"}))))}let Ei="button";function Si(e,n){var t;let r=be(),{id:l=`headlessui-switch-${r}`,checked:o,defaultChecked:i=!1,onChange:s,disabled:a=!1,name:c,value:p,form:h,...b}=e,m=u.useContext(en),g=u.useRef(null),v=de(g,n,m===null?null:m.setSwitch),[x,y]=vn(o,s,i),w=j(()=>y==null?void 0:y(!x)),T=j(D=>{if(pt(D.currentTarget))return D.preventDefault();D.preventDefault(),w()}),P=j(D=>{D.key===X.Space?(D.preventDefault(),w()):D.key===X.Enter&&fo(D.currentTarget)}),k=j(D=>D.preventDefault()),A=u.useMemo(()=>({checked:x}),[x]),K={id:l,ref:v,role:"switch",type:_t(e,g),tabIndex:e.tabIndex===-1?0:(t=e.tabIndex)!=null?t:0,"aria-checked":x,"aria-labelledby":m==null?void 0:m.labelledby,"aria-describedby":m==null?void 0:m.describedby,disabled:a,onClick:T,onKeyUp:P,onKeyPress:k},Y=je();return u.useEffect(()=>{var D;let _=(D=g.current)==null?void 0:D.closest("form");_&&i!==void 0&&Y.addEventListener(_,"reset",()=>{y(i)})},[g,y]),u.createElement(u.Fragment,null,c!=null&&x&&u.createElement(Je,{features:We.Hidden,...mt({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:a,form:h,checked:x,name:c,value:p})}),ie({ourProps:K,theirProps:b,slot:A,defaultTag:Ei,name:"Switch"}))}let Ci=se(Si),Ti=yi,Oi=Object.assign(Ci,{Group:Ti,Label:bi,Description:Vn});function ji(e){let n={called:!1};return(...t)=>{if(!n.called)return n.called=!0,e(...t)}}function tn(e,...n){e&&n.length>0&&e.classList.add(...n)}function nn(e,...n){e&&n.length>0&&e.classList.remove(...n)}function Ni(e,n){let t=we();if(!e)return t.dispose;let{transitionDuration:r,transitionDelay:l}=getComputedStyle(e),[o,i]=[r,l].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,h)=>h-p);return c}),s=o+i;if(s!==0){t.group(c=>{c.setTimeout(()=>{n(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let a=t.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(n(),a())})}else n();return t.add(()=>n()),t.dispose}function ki(e,n,t,r){let l=t?"enter":"leave",o=we(),i=r!==void 0?ji(r):()=>{};l==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=ue(l,{enter:()=>n.enter,leave:()=>n.leave}),a=ue(l,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),c=ue(l,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom});return nn(e,...n.base,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),tn(e,...n.base,...s,...c),o.nextFrame(()=>{nn(e,...n.base,...s,...c),tn(e,...n.base,...s,...a),Ni(e,()=>(nn(e,...n.base,...s),tn(e,...n.base,...n.entered),i()))}),o.dispose}function Fi({immediate:e,container:n,direction:t,classes:r,onStart:l,onStop:o}){let i=et(),s=je(),a=Se(t);te(()=>{e&&(a.current="enter")},[e]),te(()=>{let c=we();s.add(c.dispose);let p=n.current;if(p&&a.current!=="idle"&&i.current)return c.dispose(),l.current(a.current),c.add(ki(p,r.current,a.current==="enter",()=>{c.dispose(),o.current(a.current)})),c.dispose},[t])}function Me(e=""){return e.split(/\s+/).filter(n=>n.length>1)}let bt=u.createContext(null);bt.displayName="TransitionContext";var Ii=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ii||{});function Pi(){let e=u.useContext(bt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function $i(){let e=u.useContext(xt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let xt=u.createContext(null);xt.displayName="NestingContext";function wt(e){return"children"in e?wt(e.children):e.current.filter(({el:n})=>n.current!==null).filter(({state:n})=>n==="visible").length>0}function Jn(e,n){let t=Se(e),r=u.useRef([]),l=et(),o=je(),i=j((m,g=$e.Hidden)=>{let v=r.current.findIndex(({el:x})=>x===m);v!==-1&&(ue(g,{[$e.Unmount](){r.current.splice(v,1)},[$e.Hidden](){r.current[v].state="hidden"}}),o.microTask(()=>{var x;!wt(r)&&l.current&&((x=t.current)==null||x.call(t))}))}),s=j(m=>{let g=r.current.find(({el:v})=>v===m);return g?g.state!=="visible"&&(g.state="visible"):r.current.push({el:m,state:"visible"}),()=>i(m,$e.Unmount)}),a=u.useRef([]),c=u.useRef(Promise.resolve()),p=u.useRef({enter:[],leave:[],idle:[]}),h=j((m,g,v)=>{a.current.splice(0),n&&(n.chains.current[g]=n.chains.current[g].filter(([x])=>x!==m)),n==null||n.chains.current[g].push([m,new Promise(x=>{a.current.push(x)})]),n==null||n.chains.current[g].push([m,new Promise(x=>{Promise.all(p.current[g].map(([y,w])=>w)).then(()=>x())})]),g==="enter"?c.current=c.current.then(()=>n==null?void 0:n.wait.current).then(()=>v(g)):v(g)}),b=j((m,g,v)=>{Promise.all(p.current[g].splice(0).map(([x,y])=>y)).then(()=>{var x;(x=a.current.shift())==null||x()}).then(()=>v(g))});return u.useMemo(()=>({children:r,register:s,unregister:i,onStart:h,onStop:b,wait:c,chains:p}),[s,i,r,h,b,p,c])}function Mi(){}let Ai=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Qn(e){var n;let t={};for(let r of Ai)t[r]=(n=e[r])!=null?n:Mi;return t}function Di(e){let n=u.useRef(Qn(e));return u.useEffect(()=>{n.current=Qn(e)},[e]),n}let _i="div",Xn=Pe.RenderStrategy;function Li(e,n){var t,r;let{beforeEnter:l,afterEnter:o,beforeLeave:i,afterLeave:s,enter:a,enterFrom:c,enterTo:p,entered:h,leave:b,leaveFrom:m,leaveTo:g,...v}=e,x=u.useRef(null),y=de(x,n),w=(t=v.unmount)==null||t?$e.Unmount:$e.Hidden,{show:T,appear:P,initial:k}=Pi(),[A,K]=u.useState(T?"visible":"hidden"),Y=$i(),{register:D,unregister:_}=Y;u.useEffect(()=>D(x),[D,x]),u.useEffect(()=>{if(w===$e.Hidden&&x.current){if(T&&A!=="visible"){K("visible");return}return ue(A,{hidden:()=>_(x),visible:()=>D(x)})}},[A,x,D,_,T,w]);let B=Se({base:Me(v.className),enter:Me(a),enterFrom:Me(c),enterTo:Me(p),entered:Me(h),leave:Me(b),leaveFrom:Me(m),leaveTo:Me(g)}),G=Di({beforeEnter:l,afterEnter:o,beforeLeave:i,afterLeave:s}),le=ze();u.useEffect(()=>{if(le&&A==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,A,le]);let ae=k&&!P,C=P&&T&&k,re=!le||ae?"idle":T?"enter":"leave",q=xi(0),J=j(ce=>ue(ce,{enter:()=>{q.addFlag(fe.Opening),G.current.beforeEnter()},leave:()=>{q.addFlag(fe.Closing),G.current.beforeLeave()},idle:()=>{}})),N=j(ce=>ue(ce,{enter:()=>{q.removeFlag(fe.Opening),G.current.afterEnter()},leave:()=>{q.removeFlag(fe.Closing),G.current.afterLeave()},idle:()=>{}})),M=Jn(()=>{K("hidden"),_(x)},Y),W=u.useRef(!1);Fi({immediate:C,container:x,classes:B,direction:re,onStart:Se(ce=>{W.current=!0,M.onStart(x,ce,J)}),onStop:Se(ce=>{W.current=!1,M.onStop(x,ce,N),ce==="leave"&&!wt(M)&&(K("hidden"),_(x))})});let Q=v,pe={ref:y};return C?Q={...Q,className:dt(v.className,...B.current.enter,...B.current.enterFrom)}:W.current&&(Q.className=dt(v.className,(r=x.current)==null?void 0:r.className),Q.className===""&&delete Q.className),u.createElement(xt.Provider,{value:M},u.createElement(Bt,{value:ue(A,{visible:fe.Open,hidden:fe.Closed})|q.flags},ie({ourProps:pe,theirProps:Q,defaultTag:_i,features:Xn,visible:A==="visible",name:"Transition.Child"})))}function Ri(e,n){let{show:t,appear:r=!1,unmount:l=!0,...o}=e,i=u.useRef(null),s=de(i,n);ze();let a=Qe();if(t===void 0&&a!==null&&(t=(a&fe.Open)===fe.Open),![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,p]=u.useState(t?"visible":"hidden"),h=Jn(()=>{p("hidden")}),[b,m]=u.useState(!0),g=u.useRef([t]);te(()=>{b!==!1&&g.current[g.current.length-1]!==t&&(g.current.push(t),m(!1))},[g,t]);let v=u.useMemo(()=>({show:t,appear:r,initial:b}),[t,r,b]);u.useEffect(()=>{if(t)p("visible");else if(!wt(h))p("hidden");else{let T=i.current;if(!T)return;let P=T.getBoundingClientRect();P.x===0&&P.y===0&&P.width===0&&P.height===0&&p("hidden")}},[t,h]);let x={unmount:l},y=j(()=>{var T;b&&m(!1),(T=e.beforeEnter)==null||T.call(e)}),w=j(()=>{var T;b&&m(!1),(T=e.beforeLeave)==null||T.call(e)});return u.createElement(xt.Provider,{value:h},u.createElement(bt.Provider,{value:v},ie({ourProps:{...x,as:u.Fragment,children:u.createElement(er,{ref:s,...x,...o,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:u.Fragment,features:Xn,visible:c==="visible",name:"Transition"})))}function Bi(e,n){let t=u.useContext(bt)!==null,r=Qe()!==null;return u.createElement(u.Fragment,null,!t&&r?u.createElement(rn,{ref:n,...e}):u.createElement(er,{ref:n,...e}))}let rn=se(Ri),er=se(Li),zi=se(Bi),Be=Object.assign(rn,{Child:zi,Root:rn});function Wi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M18 10a.75.75 0 0 1-.75.75H4.66l2.1 1.95a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 1 1 1.02 1.1l-2.1 1.95h12.59A.75.75 0 0 1 18 10Z",clipRule:"evenodd"}))}const Ui=E.forwardRef(Wi);function Hi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M2 10a.75.75 0 0 1 .75-.75h12.59l-2.1-1.95a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.1-1.95H2.75A.75.75 0 0 1 2 10Z",clipRule:"evenodd"}))}const Vi=E.forwardRef(Hi);function Yi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const qi=E.forwardRef(Yi);function Gi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Zi=E.forwardRef(Gi);function Ki({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))}const Ji=E.forwardRef(Ki);function Qi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const tr=E.forwardRef(Qi);function Xi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const es=E.forwardRef(Xi);function ts({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z",clipRule:"evenodd"}))}const ns=E.forwardRef(ts);function rs({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",clipRule:"evenodd"}))}const os=E.forwardRef(rs),yt={warning:{color:"bg-yellow-50",icon:f.jsx(es,{className:"h-5 w-5 text-yellow-400","aria-hidden":"true"}),colorTitle:"text-yellow-800",colorText:"text-yellow-700"},error:{color:"bg-red-50",icon:f.jsx(os,{className:"h-5 w-5 text-red-400","aria-hidden":"true"}),colorTitle:"text-red-800",colorText:"text-red-700"},success:{color:"bg-green-50",icon:f.jsx(qi,{className:"h-5 w-5 text-green-400","aria-hidden":"true"}),colorTitle:"text-green-800",colorText:"text-green-700"},info:{color:"bg-blue-50",icon:f.jsx(ns,{className:"h-5 w-5 text-blue-400","aria-hidden":"true"}),colorTitle:"text-blue-800",colorText:"text-blue-700"}};let nr;const ls=({type:e="info",title:n,message:t,active:r=!1,time:l=1e3,dispatch:o})=>{const{width:i}=jt(),[s,a]=u.useState(!1);return u.useEffect(()=>r?(nr=window.setTimeout(()=>{a(!1),o({type:"ALERT",payload:{title:"",message:"",typeAlert:"",active:!1}})},l),a(!0)):(a(!1),()=>window.clearTimeout(nr)),[r,o,l]),f.jsx("div",{className:"fixed top-2.5 w-80 3xs:w-96",style:{left:`calc(50% - ${i<=470?"160px":"192px"})`,zIndex:"60"},children:f.jsx(Be,{as:u.Fragment,show:s,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:f.jsxs("div",{className:I("rounded-md p-4 text-center",yt[e].color),children:[f.jsxs("div",{className:"flex justify-center flex-shrink-0",children:[yt[e].icon,f.jsx("h3",{className:I("text-sm font-medium ml-3",yt[e].colorTitle),children:n})]}),f.jsx("div",{className:I("mt-2 text-sm",yt[e].colorText),children:f.jsx("p",{children:t})})]})})})};function is({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",clipRule:"evenodd"}))}const ss=E.forwardRef(is);function as({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z",clipRule:"evenodd"}))}const us=E.forwardRef(as);function cs({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{d:"M21.731 2.269a2.625 2.625 0 0 0-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 0 0 0-3.712ZM19.513 8.199l-3.712-3.712-8.4 8.4a5.25 5.25 0 0 0-1.32 2.214l-.8 2.685a.75.75 0 0 0 .933.933l2.685-.8a5.25 5.25 0 0 0 2.214-1.32l8.4-8.4Z"}),E.createElement("path",{d:"M5.25 5.25a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3V13.5a.75.75 0 0 0-1.5 0v5.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5V8.25a1.5 1.5 0 0 1 1.5-1.5h5.25a.75.75 0 0 0 0-1.5H5.25Z"}))}const ds=E.forwardRef(cs);function fs({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M1.5 6a2.25 2.25 0 0 1 2.25-2.25h16.5A2.25 2.25 0 0 1 22.5 6v12a2.25 2.25 0 0 1-2.25 2.25H3.75A2.25 2.25 0 0 1 1.5 18V6ZM3 16.06V18c0 .414.336.75.75.75h16.5A.75.75 0 0 0 21 18v-1.94l-2.69-2.689a1.5 1.5 0 0 0-2.12 0l-.88.879.97.97a.75.75 0 1 1-1.06 1.06l-5.16-5.159a1.5 1.5 0 0 0-2.12 0L3 16.061Zm10.125-7.81a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Z",clipRule:"evenodd"}))}const ms=E.forwardRef(fs);function ps({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0 0 21.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 0 0 3.065 7.097A9.716 9.716 0 0 0 12 21.75a9.716 9.716 0 0 0 6.685-2.653Zm-12.54-1.285A7.486 7.486 0 0 1 12 15a7.486 7.486 0 0 1 5.855 2.812A8.224 8.224 0 0 1 12 20.25a8.224 8.224 0 0 1-5.855-2.438ZM15.75 9a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z",clipRule:"evenodd"}))}const hs=E.forwardRef(ps);function vs({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const gs=E.forwardRef(vs),bs=({src:e,alt:n,width:t,height:r,className:l="",classNameIcon:o="",isIcon:i=!0,acronym:s=""})=>{function a(){if(typeof s!="string")return s;const c=s.toLowerCase(),p=c.split(" "),h=p[p.length-1];return c.charAt(0)+h.charAt(0)}return f.jsx(f.Fragment,{children:e?f.jsx("img",{src:e,alt:n,width:t,height:r,className:I(l!==""&&l),loading:"lazy",decoding:"async",style:{filter:"blur(5px)",transition:"filter 0.3s"},onLoad:c=>c.currentTarget.style.filter="none","data-testid":"img"}):i?f.jsx(hs,{className:I("bg-white text-default-5",o!==""?o:"w-7 h-7")}):f.jsx("div",{className:I("bg-gray-200 text-default-5 rounded-full font-bold uppercase flex justify-center items-center",o!==""?o:"w-7 h-7"),children:a()})})},xs=({steps:e,onClick:n})=>{const[t,r]=u.useState(0),l=o=>{r(o),n(o)};return f.jsx("nav",{className:"flex items-center justify-center w-full","aria-label":"Progress","data-testid":"bullets",children:f.jsx("ol",{role:"list",className:"flex items-center space-x-5",children:new Array(e).fill(1).map((o,i)=>f.jsx("li",{children:t!==i?f.jsx("div",{className:"cursor-pointer block h-2.5 w-2.5 rounded-full bg-gray-500 hover:bg-gray-600",onClick:()=>l(i),"data-testid":`step-${i}`,children:f.jsx("span",{className:"sr-only",children:"step"})}):f.jsxs("div",{className:"relative flex items-center justify-center cursor-pointer","aria-current":"step",children:[f.jsx("span",{className:"absolute flex h-5 w-5 p-px","aria-hidden":"true",children:f.jsx("span",{className:"h-full w-full rounded-full bg-gray-300"})}),f.jsx("span",{className:"relative block h-2.5 w-2.5 rounded-full bg-gray-500","aria-hidden":"true"}),f.jsx("span",{className:"sr-only",children:"step"})]})},i))})})};var rr={exports:{}};/*!
31
+ `));let b=p.props,f=typeof(b==null?void 0:b.className)=="function"?(...v)=>ct(b==null?void 0:b.className(...v),a.className):ct(b==null?void 0:b.className,a.className),g=f?{className:f}:{};return u.cloneElement(p,Object.assign({},Nn(p.props,ft(_t(a,["ref"]))),h,c,{ref:o(p.ref,c.ref)},g))}return u.createElement(l,Object.assign({},_t(a,["ref"]),l!==u.Fragment&&c,l!==u.Fragment&&h),p)}function oo(...e){return e.every(n=>n==null)?void 0:n=>{for(let t of e)t!=null&&(typeof t=="function"?t(n):t.current=n)}}function Nn(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},t={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(t[o]!=null||(t[o]=[]),t[o].push(r[o])):n[o]=r[o];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(n,{[r](o,...l){let i=t[r];for(let s of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...l)}}});return n}function se(e){var n;return Object.assign(u.forwardRef(e),{displayName:(n=e.displayName)!=null?n:e.name})}function ft(e){let n=Object.assign({},e);for(let t in n)n[t]===void 0&&delete n[t];return n}function _t(e,n=[]){let t=Object.assign({},e);for(let r of n)r in t&&delete t[r];return t}let lo="div";var ze=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ze||{});function io(e,n){var t;let{features:r=1,...o}=e,l={ref:n,"aria-hidden":(r&2)===2?!0:(t=o["aria-hidden"])!=null?t:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ie({ourProps:l,theirProps:o,slot:{},defaultTag:lo,name:"Hidden"})}let Ke=se(io),Lt=u.createContext(null);Lt.displayName="OpenClosedContext";var fe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(fe||{});function Je(){return u.useContext(Lt)}function Rt({value:e,children:n}){return u.createElement(Lt.Provider,{value:e},n)}function so(e){function n(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",n))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}let Ce=[];so(()=>{function e(n){n.target instanceof HTMLElement&&n.target!==document.body&&Ce[0]!==n.target&&(Ce.unshift(n.target),Ce=Ce.filter(t=>t!=null&&t.isConnected),Ce.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function mt(e){let n=e.parentElement,t=null;for(;n&&!(n instanceof HTMLFieldSetElement);)n instanceof HTMLLegendElement&&(t=n),n=n.parentElement;let r=(n==null?void 0:n.getAttribute("disabled"))==="";return r&&ao(t)?!1:r}function ao(e){if(!e)return!1;let n=e.previousElementSibling;for(;n!==null;){if(n instanceof HTMLLegendElement)return!1;n=n.previousElementSibling}return!0}function uo(e){throw new Error("Unexpected object: "+e)}var ne=(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))(ne||{});function Bt(e,n){let t=n.resolveItems();if(t.length<=0)return null;let r=n.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let l=0;l<t.length;++l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 1:{for(let l=o-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 2:{for(let l=o+1;l<t.length;++l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 3:{for(let l=t.length-1;l>=0;--l)if(!n.resolveDisabled(t[l],l,t))return l;return r}case 4:{for(let l=0;l<t.length;++l)if(n.resolveId(t[l],l,t)===e.id)return l;return r}case 5:return null;default:uo(e)}}function kn(e={},n=null,t=[]){for(let[r,o]of Object.entries(e))In(t,Fn(n,r),o);return t}function Fn(e,n){return e?e+"["+n+"]":n}function In(e,n,t){if(Array.isArray(t))for(let[r,o]of t.entries())In(e,Fn(n,r.toString()),o);else t instanceof Date?e.push([n,t.toISOString()]):typeof t=="boolean"?e.push([n,t?"1":"0"]):typeof t=="string"?e.push([n,t]):typeof t=="number"?e.push([n,`${t}`]):t==null?e.push([n,""]):kn(t,n,e)}function co(e){var n,t;let r=(n=e==null?void 0:e.form)!=null?n:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(t=r.requestSubmit)==null||t.call(r)}}var X=(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))(X||{}),fo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fo||{}),mo=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(mo||{}),po=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(po||{}),ho=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(ho||{});function zt(e,n=t=>t){let t=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=n(e.options.slice()),o=r.length>0&&r[0].dataRef.current.order!==null?r.sort((i,s)=>i.dataRef.current.order-s.dataRef.current.order):Mt(r,i=>i.dataRef.current.domRef.current),l=t?o.indexOf(t):null;return l===-1&&(l=null),{options:o,activeOptionIndex:l}}let vo={1(e){var n;return(n=e.dataRef.current)!=null&&n.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var n,t;if((n=e.dataRef.current)!=null&&n.disabled||e.comboboxState===0)return e;if((t=e.dataRef.current)!=null&&t.value){let r=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(r!==-1)return{...e,activeOptionIndex:r,comboboxState:0}}return{...e,comboboxState:0}},2(e,n){var t,r,o,l,i;if((t=e.dataRef.current)!=null&&t.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((o=e.dataRef.current)!=null&&o.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let p=n.focus===ne.Specific?n.idx:Bt(n,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var b,f;return(f=(b=e.activeOptionIndex)!=null?b:e.virtual.options.findIndex(g=>!e.virtual.disabled(g)))!=null?f:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),h=(l=n.trigger)!=null?l:2;return e.activeOptionIndex===p&&e.activationTrigger===h?e:{...e,activeOptionIndex:p,activationTrigger:h}}let s=zt(e);if(s.activeOptionIndex===null){let p=s.options.findIndex(h=>!h.dataRef.current.disabled);p!==-1&&(s.activeOptionIndex=p)}let a=n.focus===ne.Specific?n.idx:Bt(n,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled}),c=(i=n.trigger)!=null?i:2;return e.activeOptionIndex===a&&e.activationTrigger===c?e:{...e,...s,activeOptionIndex:a,activationTrigger:c}},3:(e,n)=>{var t,r,o;if((t=e.dataRef.current)!=null&&t.virtual)return{...e,options:[...e.options,n.payload]};let l=n.payload,i=zt(e,a=>(a.push(l),a));e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(n.payload.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(l));let s={...e,...i,activationTrigger:2};return(o=e.dataRef.current)!=null&&o.__demoMode&&e.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s},4:(e,n)=>{var t;if((t=e.dataRef.current)!=null&&t.virtual)return{...e,options:e.options.filter(o=>o.id!==n.id)};let r=zt(e,o=>{let l=o.findIndex(i=>i.id===n.id);return l!==-1&&o.splice(l,1),o});return{...e,...r,activationTrigger:2}},5:(e,n)=>e.labelId===n.id?e:{...e,labelId:n.id},6:(e,n)=>e.activationTrigger===n.trigger?e:{...e,activationTrigger:n.trigger},7:(e,n)=>{var t;if(((t=e.virtual)==null?void 0:t.options)===n.options)return e;let r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let o=n.options.indexOf(e.virtual.options[e.activeOptionIndex]);o!==-1?r=o:r=null}return{...e,activeOptionIndex:r,virtual:Object.assign({},e.virtual,{options:n.options})}}},Wt=u.createContext(null);Wt.displayName="ComboboxActionsContext";function Qe(e){let n=u.useContext(Wt);if(n===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Qe),t}return n}let Pn=u.createContext(null);function go(e){var n;let t=_e("VirtualProvider"),[r,o]=u.useMemo(()=>{let a=t.optionsRef.current;if(!a)return[0,0];let c=window.getComputedStyle(a);return[parseFloat(c.paddingBlockStart||c.paddingTop),parseFloat(c.paddingBlockEnd||c.paddingBottom)]},[t.optionsRef.current]),l=Yr({scrollPaddingStart:r,scrollPaddingEnd:o,count:t.virtual.options.length,estimateSize(){return 40},getScrollElement(){var a;return(a=t.optionsRef.current)!=null?a:null},overscan:12}),[i,s]=u.useState(0);return te(()=>{s(a=>a+1)},[(n=t.virtual)==null?void 0:n.options]),u.createElement(Pn.Provider,{value:l},u.createElement("div",{style:{position:"relative",width:"100%",height:`${l.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||t.activationTrigger===0)return;t.activeOptionIndex!==null&&t.virtual.options.length>t.activeOptionIndex&&l.scrollToIndex(t.activeOptionIndex)}}},l.getVirtualItems().map(a=>{var c;return u.createElement(u.Fragment,{key:a.key},u.cloneElement((c=e.children)==null?void 0:c.call(e,{option:t.virtual.options[a.index],open:t.comboboxState===0}),{key:`${i}-${a.key}`,"data-index":a.index,"aria-setsize":t.virtual.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}}))})))}let Ut=u.createContext(null);Ut.displayName="ComboboxDataContext";function _e(e){let n=u.useContext(Ut);if(n===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,_e),t}return n}function bo(e,n){return ue(n.type,vo,e,n)}let xo=u.Fragment;function wo(e,n){let{value:t,defaultValue:r,onChange:o,form:l,name:i,by:s=null,disabled:a=!1,__demoMode:c=!1,nullable:p=!1,multiple:h=!1,immediate:b=!1,virtual:f=null,...g}=e,v=!1,x=null,[y=h?[]:void 0,w]=hn(t,o,r),[T,k]=u.useReducer(bo,{dataRef:u.createRef(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),F=u.useRef(!1),A=u.useRef({static:!1,hold:!1}),K=u.useRef(null),Y=u.useRef(null),D=u.useRef(null),_=u.useRef(null),B=j(typeof s=="string"?(I,U)=>{let z=s;return(I==null?void 0:I[z])===(U==null?void 0:U[z])}:s??((I,U)=>I===U)),G=j(I=>T.options.findIndex(U=>B(U.dataRef.current.value,I))),le=u.useCallback(I=>ue(C.mode,{1:()=>y.some(U=>B(U,I)),0:()=>B(y,I)}),[y]),ae=j(I=>T.activeOptionIndex===G(I)),C=u.useMemo(()=>({...T,immediate:v,optionsPropsRef:A,labelRef:K,inputRef:Y,buttonRef:D,optionsRef:_,value:y,defaultValue:r,disabled:a,mode:h?1:0,virtual:T.virtual,get activeOptionIndex(){if(F.current&&T.activeOptionIndex===null&&T.options.length>0){let I=T.options.findIndex(U=>!U.dataRef.current.disabled);if(I!==-1)return I}return T.activeOptionIndex},calculateIndex:G,compare:B,isSelected:le,isActive:ae,nullable:p,__demoMode:c}),[y,r,a,h,p,c,T,x]);te(()=>{},[x,void 0]),te(()=>{T.dataRef.current=C},[C]),At([C.buttonRef,C.inputRef,C.optionsRef],()=>Te.closeCombobox(),C.comboboxState===0);let re=u.useMemo(()=>{var I,U,z;return{open:C.comboboxState===0,disabled:a,activeIndex:C.activeOptionIndex,activeOption:C.activeOptionIndex===null?null:C.virtual?C.virtual.options[(I=C.activeOptionIndex)!=null?I:0]:(z=(U=C.options[C.activeOptionIndex])==null?void 0:U.dataRef.current.value)!=null?z:null,value:y}},[C,a,y]),q=j(()=>{if(C.activeOptionIndex!==null){if(C.virtual)pe(C.virtual.options[C.activeOptionIndex]);else{let{dataRef:I}=C.options[C.activeOptionIndex];pe(I.current.value)}Te.goToOption(ne.Specific,C.activeOptionIndex)}}),J=j(()=>{k({type:0}),F.current=!0}),N=j(()=>{k({type:1}),F.current=!1}),M=j((I,U,z)=>(F.current=!1,I===ne.Specific?k({type:2,focus:ne.Specific,idx:U,trigger:z}):k({type:2,focus:I,trigger:z}))),W=j((I,U)=>(k({type:3,payload:{id:I,dataRef:U}}),()=>{C.isActive(U.current.value)&&(F.current=!0),k({type:4,id:I})})),Q=j(I=>(k({type:5,id:I}),()=>k({type:5,id:null}))),pe=j(I=>ue(C.mode,{0(){return w==null?void 0:w(I)},1(){let U=C.value.slice(),z=U.findIndex(he=>B(he,I));return z===-1?U.push(I):U.splice(z,1),w==null?void 0:w(U)}})),ce=j(I=>{k({type:6,trigger:I})}),Te=u.useMemo(()=>({onChange:pe,registerOption:W,registerLabel:Q,goToOption:M,closeCombobox:N,openCombobox:J,setActivationTrigger:ce,selectActiveOption:q}),[]),ye=n===null?{}:{ref:n},$=u.useRef(null),H=je();return u.useEffect(()=>{$.current&&r!==void 0&&H.addEventListener($.current,"reset",()=>{w==null||w(r)})},[$,w]),u.createElement(Wt.Provider,{value:Te},u.createElement(Ut.Provider,{value:C},u.createElement(Rt,{value:ue(C.comboboxState,{0:fe.Open,1:fe.Closed})},i!=null&&y!=null&&kn({[i]:y}).map(([I,U],z)=>u.createElement(Ke,{features:ze.Hidden,ref:z===0?he=>{var ge;$.current=(ge=he==null?void 0:he.closest("form"))!=null?ge:null}:void 0,...ft({key:I,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:l,disabled:a,name:I,value:U})})),ie({ourProps:ye,theirProps:g,slot:re,defaultTag:xo,name:"Combobox"}))))}let yo="input";function Eo(e,n){var t,r,o,l,i;let s=be(),{id:a=`headlessui-combobox-input-${s}`,onChange:c,displayValue:p,type:h="text",...b}=e,f=_e("Combobox.Input"),g=Qe("Combobox.Input"),v=de(f.inputRef,n),x=De(f.inputRef),y=u.useRef(!1),w=je(),T=j(()=>{g.onChange(null),f.optionsRef.current&&(f.optionsRef.current.scrollTop=0),g.goToOption(ne.Nothing)}),k=function(){var C;return typeof p=="function"&&f.value!==void 0?(C=p(f.value))!=null?C:"":typeof f.value=="string"?f.value:""}();Ze(([C,re],[q,J])=>{if(y.current)return;let N=f.inputRef.current;N&&((J===0&&re===1||C!==q)&&(N.value=C),requestAnimationFrame(()=>{if(y.current||!N||(x==null?void 0:x.activeElement)!==N)return;let{selectionStart:M,selectionEnd:W}=N;Math.abs((W??0)-(M??0))===0&&M===0&&N.setSelectionRange(N.value.length,N.value.length)}))},[k,f.comboboxState,x]),Ze(([C],[re])=>{if(C===0&&re===1){if(y.current)return;let q=f.inputRef.current;if(!q)return;let J=q.value,{selectionStart:N,selectionEnd:M,selectionDirection:W}=q;q.value="",q.value=J,W!==null?q.setSelectionRange(N,M,W):q.setSelectionRange(N,M)}},[f.comboboxState]);let F=u.useRef(!1),A=j(()=>{F.current=!0}),K=j(()=>{w.nextFrame(()=>{F.current=!1})}),Y=j(C=>{switch(y.current=!0,C.key){case X.Enter:if(y.current=!1,f.comboboxState!==0||F.current)return;if(C.preventDefault(),C.stopPropagation(),f.activeOptionIndex===null){g.closeCombobox();return}g.selectActiveOption(),f.mode===0&&g.closeCombobox();break;case X.ArrowDown:return y.current=!1,C.preventDefault(),C.stopPropagation(),ue(f.comboboxState,{0:()=>g.goToOption(ne.Next),1:()=>g.openCombobox()});case X.ArrowUp:return y.current=!1,C.preventDefault(),C.stopPropagation(),ue(f.comboboxState,{0:()=>g.goToOption(ne.Previous),1:()=>{g.openCombobox(),w.nextFrame(()=>{f.value||g.goToOption(ne.Last)})}});case X.Home:if(C.shiftKey)break;return y.current=!1,C.preventDefault(),C.stopPropagation(),g.goToOption(ne.First);case X.PageUp:return y.current=!1,C.preventDefault(),C.stopPropagation(),g.goToOption(ne.First);case X.End:if(C.shiftKey)break;return y.current=!1,C.preventDefault(),C.stopPropagation(),g.goToOption(ne.Last);case X.PageDown:return y.current=!1,C.preventDefault(),C.stopPropagation(),g.goToOption(ne.Last);case X.Escape:return y.current=!1,f.comboboxState!==0?void 0:(C.preventDefault(),f.optionsRef.current&&!f.optionsPropsRef.current.static&&C.stopPropagation(),f.nullable&&f.mode===0&&f.value===null&&T(),g.closeCombobox());case X.Tab:if(y.current=!1,f.comboboxState!==0)return;f.mode===0&&f.activationTrigger!==1&&g.selectActiveOption(),g.closeCombobox();break}}),D=j(C=>{c==null||c(C),f.nullable&&f.mode===0&&C.target.value===""&&T(),g.openCombobox()}),_=j(C=>{var re,q,J;let N=(re=C.relatedTarget)!=null?re:Ce.find(M=>M!==C.currentTarget);if(y.current=!1,!((q=f.optionsRef.current)!=null&&q.contains(N))&&!((J=f.buttonRef.current)!=null&&J.contains(N))&&f.comboboxState===0)return C.preventDefault(),f.mode===0&&(f.nullable&&f.value===null?T():f.activationTrigger!==1&&g.selectActiveOption()),g.closeCombobox()}),B=j(C=>{var re,q,J;let N=(re=C.relatedTarget)!=null?re:Ce.find(M=>M!==C.currentTarget);(q=f.buttonRef.current)!=null&&q.contains(N)||(J=f.optionsRef.current)!=null&&J.contains(N)||f.disabled||f.immediate&&f.comboboxState!==0&&(g.openCombobox(),w.nextFrame(()=>{g.setActivationTrigger(1)}))}),G=Ft(()=>{if(f.labelId)return[f.labelId].join(" ")},[f.labelId]),le=u.useMemo(()=>({open:f.comboboxState===0,disabled:f.disabled}),[f]),ae={ref:v,id:a,role:"combobox",type:h,"aria-controls":(t=f.optionsRef.current)==null?void 0:t.id,"aria-expanded":f.comboboxState===0,"aria-activedescendant":f.activeOptionIndex===null?void 0:f.virtual?(r=f.options.find(C=>{var re;return!((re=f.virtual)!=null&&re.disabled(C.dataRef.current.value))&&f.compare(C.dataRef.current.value,f.virtual.options[f.activeOptionIndex])}))==null?void 0:r.id:(o=f.options[f.activeOptionIndex])==null?void 0:o.id,"aria-labelledby":G,"aria-autocomplete":"list",defaultValue:(i=(l=e.defaultValue)!=null?l:f.defaultValue!==void 0?p==null?void 0:p(f.defaultValue):null)!=null?i:f.defaultValue,disabled:f.disabled,onCompositionStart:A,onCompositionEnd:K,onKeyDown:Y,onChange:D,onFocus:B,onBlur:_};return ie({ourProps:ae,theirProps:b,slot:le,defaultTag:yo,name:"Combobox.Input"})}let So="button";function Co(e,n){var t;let r=_e("Combobox.Button"),o=Qe("Combobox.Button"),l=de(r.buttonRef,n),i=be(),{id:s=`headlessui-combobox-button-${i}`,...a}=e,c=je(),p=j(v=>{switch(v.key){case X.ArrowDown:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&o.openCombobox(),c.nextFrame(()=>{var x;return(x=r.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case X.ArrowUp:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&(o.openCombobox(),c.nextFrame(()=>{r.value||o.goToOption(ne.Last)})),c.nextFrame(()=>{var x;return(x=r.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case X.Escape:return r.comboboxState!==0?void 0:(v.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&v.stopPropagation(),o.closeCombobox(),c.nextFrame(()=>{var x;return(x=r.inputRef.current)==null?void 0:x.focus({preventScroll:!0})}));default:return}}),h=j(v=>{if(mt(v.currentTarget))return v.preventDefault();r.comboboxState===0?o.closeCombobox():(v.preventDefault(),o.openCombobox()),c.nextFrame(()=>{var x;return(x=r.inputRef.current)==null?void 0:x.focus({preventScroll:!0})})}),b=Ft(()=>{if(r.labelId)return[r.labelId,s].join(" ")},[r.labelId,s]),f=u.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),g={ref:l,id:s,type:Dt(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(t=r.optionsRef.current)==null?void 0:t.id,"aria-expanded":r.comboboxState===0,"aria-labelledby":b,disabled:r.disabled,onClick:h,onKeyDown:p};return ie({ourProps:g,theirProps:a,slot:f,defaultTag:So,name:"Combobox.Button"})}let To="label";function Oo(e,n){let t=be(),{id:r=`headlessui-combobox-label-${t}`,...o}=e,l=_e("Combobox.Label"),i=Qe("Combobox.Label"),s=de(l.labelRef,n);te(()=>i.registerLabel(r),[r]);let a=j(()=>{var p;return(p=l.inputRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=u.useMemo(()=>({open:l.comboboxState===0,disabled:l.disabled}),[l]);return ie({ourProps:{ref:s,id:r,onClick:a},theirProps:o,slot:c,defaultTag:To,name:"Combobox.Label"})}let jo="ul",No=Pe.RenderStrategy|Pe.Static;function ko(e,n){let t=be(),{id:r=`headlessui-combobox-options-${t}`,hold:o=!1,...l}=e,i=_e("Combobox.Options"),s=de(i.optionsRef,n),a=Je(),c=a!==null?(a&fe.Open)===fe.Open:i.comboboxState===0;te(()=>{var f;i.optionsPropsRef.current.static=(f=e.static)!=null?f:!1},[i.optionsPropsRef,e.static]),te(()=>{i.optionsPropsRef.current.hold=o},[i.optionsPropsRef,o]),jn({container:i.optionsRef.current,enabled:i.comboboxState===0,accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});let p=Ft(()=>{var f,g;return(g=i.labelId)!=null?g:(f=i.buttonRef.current)==null?void 0:f.id},[i.labelId,i.buttonRef.current]),h=u.useMemo(()=>({open:i.comboboxState===0,option:void 0}),[i]),b={"aria-labelledby":p,role:"listbox","aria-multiselectable":i.mode===1?!0:void 0,id:r,ref:s};return i.virtual&&i.comboboxState===0&&Object.assign(l,{children:u.createElement(go,null,l.children)}),ie({ourProps:b,theirProps:l,slot:h,defaultTag:jo,features:No,visible:c,name:"Combobox.Options"})}let Fo="li";function Io(e,n){var t;let r=be(),{id:o=`headlessui-combobox-option-${r}`,disabled:l=!1,value:i,order:s=null,...a}=e,c=_e("Combobox.Option"),p=Qe("Combobox.Option"),h=c.virtual?c.activeOptionIndex===c.calculateIndex(i):c.activeOptionIndex===null?!1:((t=c.options[c.activeOptionIndex])==null?void 0:t.id)===o,b=c.isSelected(i),f=u.useRef(null),g=Se({disabled:l,value:i,domRef:f,order:s}),v=u.useContext(Pn),x=de(n,f,v?v.measureElement:null),y=j(()=>p.onChange(i));te(()=>p.registerOption(o,g),[g,o]);let w=u.useRef(!(c.virtual||c.__demoMode));te(()=>{if(!c.virtual||!c.__demoMode)return;let _=we();return _.requestAnimationFrame(()=>{w.current=!0}),_.dispose},[c.virtual,c.__demoMode]),te(()=>{if(!w.current||c.comboboxState!==0||!h||c.activationTrigger===0)return;let _=we();return _.requestAnimationFrame(()=>{var B,G;(G=(B=f.current)==null?void 0:B.scrollIntoView)==null||G.call(B,{block:"nearest"})}),_.dispose},[f,h,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let T=j(_=>{var B;if(l||(B=c.virtual)!=null&&B.disabled(i))return _.preventDefault();y(),yn()||requestAnimationFrame(()=>{var G;return(G=c.inputRef.current)==null?void 0:G.focus({preventScroll:!0})}),c.mode===0&&requestAnimationFrame(()=>p.closeCombobox())}),k=j(()=>{var _;if(l||(_=c.virtual)!=null&&_.disabled(i))return p.goToOption(ne.Nothing);let B=c.calculateIndex(i);p.goToOption(ne.Specific,B)}),F=On(),A=j(_=>F.update(_)),K=j(_=>{var B;if(!F.wasMoved(_)||l||(B=c.virtual)!=null&&B.disabled(i)||h)return;let G=c.calculateIndex(i);p.goToOption(ne.Specific,G,0)}),Y=j(_=>{var B;F.wasMoved(_)&&(l||(B=c.virtual)!=null&&B.disabled(i)||h&&(c.optionsPropsRef.current.hold||p.goToOption(ne.Nothing)))}),D=u.useMemo(()=>({active:h,selected:b,disabled:l}),[h,b,l]);return ie({ourProps:{id:o,ref:x,role:"option",tabIndex:l===!0?void 0:-1,"aria-disabled":l===!0?!0:void 0,"aria-selected":b,disabled:void 0,onClick:T,onFocus:k,onPointerEnter:A,onMouseEnter:A,onPointerMove:K,onMouseMove:K,onPointerLeave:Y,onMouseLeave:Y},theirProps:a,slot:D,defaultTag:Fo,name:"Combobox.Option"})}let Po=se(wo),$o=se(Co),Mo=se(Eo),Ao=se(Oo),Do=se(ko),_o=se(Io),ke=Object.assign(Po,{Input:Mo,Button:$o,Label:Ao,Options:Do,Option:_o});function $n(e,n,t,r){let o=Se(t);u.useEffect(()=>{e=e??window;function l(i){o.current(i)}return e.addEventListener(n,l,r),()=>e.removeEventListener(n,l,r)},[e,n,r])}function Xe(){let e=u.useRef(!1);return te(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Mn(e){let n=j(e),t=u.useRef(!1);u.useEffect(()=>(t.current=!1,()=>{t.current=!0,st(()=>{t.current&&n()})}),[n])}var et=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(et||{});function Lo(){let e=u.useRef(0);return En("keydown",n=>{n.key==="Tab"&&(e.current=n.shiftKey?1:0)},!0),e}function An(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let n=new Set;for(let t of e.current)t.current instanceof HTMLElement&&n.add(t.current);return n}let Ro="div";var Dn=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Dn||{});function Bo(e,n){let t=u.useRef(null),r=de(t,n),{initialFocus:o,containers:l,features:i=30,...s}=e;Be()||(i=1);let a=De(t);Uo({ownerDocument:a},!!(i&16));let c=Ho({ownerDocument:a,container:t,initialFocus:o},!!(i&2));Vo({ownerDocument:a,container:t,containers:l,previousActiveElement:c},!!(i&8));let p=Lo(),h=j(v=>{let x=t.current;x&&(y=>y())(()=>{ue(p.current,{[et.Forwards]:()=>{Ge(x,Ne.First,{skipElements:[v.relatedTarget]})},[et.Backwards]:()=>{Ge(x,Ne.Last,{skipElements:[v.relatedTarget]})}})})}),b=je(),f=u.useRef(!1),g={ref:r,onKeyDown(v){v.key=="Tab"&&(f.current=!0,b.requestAnimationFrame(()=>{f.current=!1}))},onBlur(v){let x=An(l);t.current instanceof HTMLElement&&x.add(t.current);let y=v.relatedTarget;y instanceof HTMLElement&&y.dataset.headlessuiFocusGuard!=="true"&&(_n(x,y)||(f.current?Ge(t.current,ue(p.current,{[et.Forwards]:()=>Ne.Next,[et.Backwards]:()=>Ne.Previous})|Ne.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&Ie(v.target)))}};return u.createElement(u.Fragment,null,!!(i&4)&&u.createElement(Ke,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:ze.Focusable}),ie({ourProps:g,theirProps:s,defaultTag:Ro,name:"FocusTrap"}),!!(i&4)&&u.createElement(Ke,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:ze.Focusable}))}let zo=se(Bo),tt=Object.assign(zo,{features:Dn});function Wo(e=!0){let n=u.useRef(Ce.slice());return Ze(([t],[r])=>{r===!0&&t===!1&&st(()=>{n.current.splice(0)}),r===!1&&t===!0&&(n.current=Ce.slice())},[e,Ce,n]),j(()=>{var t;return(t=n.current.find(r=>r!=null&&r.isConnected))!=null?t:null})}function Uo({ownerDocument:e},n){let t=Wo(n);Ze(()=>{n||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Ie(t())},[n]),Mn(()=>{n&&Ie(t())})}function Ho({ownerDocument:e,container:n,initialFocus:t},r){let o=u.useRef(null),l=Xe();return Ze(()=>{if(!r)return;let i=n.current;i&&st(()=>{if(!l.current)return;let s=e==null?void 0:e.activeElement;if(t!=null&&t.current){if((t==null?void 0:t.current)===s){o.current=s;return}}else if(i.contains(s)){o.current=s;return}t!=null&&t.current?Ie(t.current):Ge(i,Ne.First)===gn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function Vo({ownerDocument:e,container:n,containers:t,previousActiveElement:r},o){let l=Xe();$n(e==null?void 0:e.defaultView,"focus",i=>{if(!o||!l.current)return;let s=An(t);n.current instanceof HTMLElement&&s.add(n.current);let a=r.current;if(!a)return;let c=i.target;c&&c instanceof HTMLElement?_n(s,c)?(r.current=c,Ie(c)):(i.preventDefault(),i.stopPropagation(),Ie(a)):Ie(r.current)},!0)}function _n(e,n){for(let t of e)if(t.contains(n))return!0;return!1}let Ln=u.createContext(!1);function Yo(){return u.useContext(Ln)}function Ht(e){return u.createElement(Ln.Provider,{value:e.force},e.children)}function qo(e){let n=Yo(),t=u.useContext(Rn),r=De(e),[o,l]=u.useState(()=>{if(!n&&t!==null||Oe.isServer)return null;let i=r==null?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(r===null)return null;let s=r.createElement("div");return s.setAttribute("id","headlessui-portal-root"),r.body.appendChild(s)});return u.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),u.useEffect(()=>{n||t!==null&&l(t.current)},[t,l,n]),o}let Go=u.Fragment;function Zo(e,n){let t=e,r=u.useRef(null),o=de(ro(p=>{r.current=p}),n),l=De(r),i=qo(r),[s]=u.useState(()=>{var p;return Oe.isServer?null:(p=l==null?void 0:l.createElement("div"))!=null?p:null}),a=u.useContext(Vt),c=Be();return te(()=>{!i||!s||i.contains(s)||(s.setAttribute("data-headlessui-portal",""),i.appendChild(s))},[i,s]),te(()=>{if(s&&a)return a.register(s)},[a,s]),Mn(()=>{var p;!i||!s||(s instanceof Node&&i.contains(s)&&i.removeChild(s),i.childNodes.length<=0&&((p=i.parentElement)==null||p.removeChild(i)))}),c?!i||!s?null:Ct.createPortal(ie({ourProps:{ref:o},theirProps:t,defaultTag:Go,name:"Portal"}),s):null}let Ko=u.Fragment,Rn=u.createContext(null);function Jo(e,n){let{target:t,...r}=e,o={ref:de(n)};return u.createElement(Rn.Provider,{value:t},ie({ourProps:o,theirProps:r,defaultTag:Ko,name:"Popover.Group"}))}let Vt=u.createContext(null);function Qo(){let e=u.useContext(Vt),n=u.useRef([]),t=j(l=>(n.current.push(l),e&&e.register(l),()=>r(l))),r=j(l=>{let i=n.current.indexOf(l);i!==-1&&n.current.splice(i,1),e&&e.unregister(l)}),o=u.useMemo(()=>({register:t,unregister:r,portals:n}),[t,r,n]);return[n,u.useMemo(()=>function({children:l}){return u.createElement(Vt.Provider,{value:o},l)},[o])]}let Xo=se(Zo),el=se(Jo),Yt=Object.assign(Xo,{Group:el});function tl(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}const nl=typeof Object.is=="function"?Object.is:tl,{useState:rl,useEffect:ol,useLayoutEffect:ll,useDebugValue:il}=E;function sl(e,n,t){const r=n(),[{inst:o},l]=rl({inst:{value:r,getSnapshot:n}});return ll(()=>{o.value=r,o.getSnapshot=n,qt(o)&&l({inst:o})},[e,r,n]),ol(()=>(qt(o)&&l({inst:o}),e(()=>{qt(o)&&l({inst:o})})),[e]),il(r),r}function qt(e){const n=e.getSnapshot,t=e.value;try{const r=n();return!nl(t,r)}catch{return!0}}function al(e,n,t){return n()}const ul=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cl=!ul,dl=cl?al:sl,fl="useSyncExternalStore"in E?(e=>e.useSyncExternalStore)(E):dl;function ml(e){return fl(e.subscribe,e.getSnapshot,e.getSnapshot)}function pl(e,n){let t=e(),r=new Set;return{getSnapshot(){return t},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...l){let i=n[o].call(t,...l);i&&(t=i,r.forEach(s=>s()))}}}function hl(){let e;return{before({doc:n}){var t;let r=n.documentElement;e=((t=n.defaultView)!=null?t:window).innerWidth-r.clientWidth},after({doc:n,d:t}){let r=n.documentElement,o=r.clientWidth-r.offsetWidth,l=e-o;t.style(r,"paddingRight",`${l}px`)}}}function vl(){return wn()?{before({doc:e,d:n,meta:t}){function r(o){return t.containers.flatMap(l=>l()).some(l=>l.contains(o))}n.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=we();s.style(e.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}let l=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;n.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:c}=new URL(a.href),p=e.querySelector(c);p&&!r(p)&&(i=p)}catch{}},!0),n.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let a=s.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;n.style(a,"overscrollBehavior","contain")}else n.style(s.target,"touchAction","none")}),n.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let a=s.target;for(;a.parentElement&&a.dataset.headlessuiPortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()},{passive:!1}),n.add(()=>{var s;let a=(s=window.scrollY)!=null?s:window.pageYOffset;l!==a&&window.scrollTo(0,l),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function gl(){return{before({doc:e,d:n}){n.style(e.documentElement,"overflow","hidden")}}}function bl(e){let n={};for(let t of e)Object.assign(n,t(n));return n}let Le=pl(()=>new Map,{PUSH(e,n){var t;let r=(t=this.get(e))!=null?t:{doc:e,count:0,d:we(),meta:new Set};return r.count++,r.meta.add(n),this.set(e,r),this},POP(e,n){let t=this.get(e);return t&&(t.count--,t.meta.delete(n)),this},SCROLL_PREVENT({doc:e,d:n,meta:t}){let r={doc:e,d:n,meta:bl(t)},o=[vl(),hl(),gl()];o.forEach(({before:l})=>l==null?void 0:l(r)),o.forEach(({after:l})=>l==null?void 0:l(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Le.subscribe(()=>{let e=Le.getSnapshot(),n=new Map;for(let[t]of e)n.set(t,t.documentElement.style.overflow);for(let t of e.values()){let r=n.get(t.doc)==="hidden",o=t.count!==0;(o&&!r||!o&&r)&&Le.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&Le.dispatch("TEARDOWN",t)}});function xl(e,n,t){let r=ml(Le),o=e?r.get(e):void 0,l=o?o.count>0:!1;return te(()=>{if(!(!e||!n))return Le.dispatch("PUSH",e,t),()=>Le.dispatch("POP",e,t)},[n,e]),l}let Gt=new Map,nt=new Map;function Bn(e,n=!0){te(()=>{var t;if(!n)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var i;if(!r)return;let s=(i=nt.get(r))!=null?i:1;if(s===1?nt.delete(r):nt.set(r,s-1),s!==1)return;let a=Gt.get(r);a&&(a["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",a["aria-hidden"]),r.inert=a.inert,Gt.delete(r))}let l=(t=nt.get(r))!=null?t:0;return nt.set(r,l+1),l!==0||(Gt.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,n])}function wl({defaultContainers:e=[],portals:n,mainTreeNodeRef:t}={}){var r;let o=u.useRef((r=t==null?void 0:t.current)!=null?r:null),l=De(o),i=j(()=>{var s,a,c;let p=[];for(let h of e)h!==null&&(h instanceof HTMLElement?p.push(h):"current"in h&&h.current instanceof HTMLElement&&p.push(h.current));if(n!=null&&n.current)for(let h of n.current)p.push(h);for(let h of(s=l==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?s:[])h!==document.body&&h!==document.head&&h instanceof HTMLElement&&h.id!=="headlessui-portal-root"&&(h.contains(o.current)||h.contains((c=(a=o.current)==null?void 0:a.getRootNode())==null?void 0:c.host)||p.some(b=>h.contains(b))||p.push(h));return p});return{resolveContainers:i,contains:j(s=>i().some(a=>a.contains(s))),mainTreeNodeRef:o,MainTreeNode:u.useMemo(()=>function(){return t!=null?null:u.createElement(Ke,{features:ze.Hidden,ref:o})},[o,t])}}let Zt=u.createContext(()=>{});Zt.displayName="StackContext";var Kt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Kt||{});function yl(){return u.useContext(Zt)}function El({children:e,onUpdate:n,type:t,element:r,enabled:o}){let l=yl(),i=j((...s)=>{n==null||n(...s),l(...s)});return te(()=>{let s=o===void 0||o===!0;return s&&i(0,t,r),()=>{s&&i(1,t,r)}},[i,t,r,o]),u.createElement(Zt.Provider,{value:i},e)}let zn=u.createContext(null);function Wn(){let e=u.useContext(zn);if(e===null){let n=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Wn),n}return e}function Un(){let[e,n]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(t){let r=j(l=>(n(i=>[...i,l]),()=>n(i=>{let s=i.slice(),a=s.indexOf(l);return a!==-1&&s.splice(a,1),s}))),o=u.useMemo(()=>({register:r,slot:t.slot,name:t.name,props:t.props}),[r,t.slot,t.name,t.props]);return u.createElement(zn.Provider,{value:o},t.children)},[n])]}let Sl="p";function Cl(e,n){let t=be(),{id:r=`headlessui-description-${t}`,...o}=e,l=Wn(),i=de(n);te(()=>l.register(r),[r,l.register]);let s={ref:i,...l.props,id:r};return ie({ourProps:s,theirProps:o,slot:l.slot||{},defaultTag:Sl,name:l.name||"Description"})}let Tl=se(Cl),Hn=Object.assign(Tl,{});var Ol=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ol||{}),jl=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(jl||{});let Nl={0(e,n){return e.titleId===n.id?e:{...e,titleId:n.id}}},pt=u.createContext(null);pt.displayName="DialogContext";function rt(e){let n=u.useContext(pt);if(n===null){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,rt),t}return n}function kl(e,n,t=()=>[document.body]){xl(e,n,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],t]}})}function Fl(e,n){return ue(n.type,Nl,e,n)}let Il="div",Pl=Pe.RenderStrategy|Pe.Static;function $l(e,n){let t=be(),{id:r=`headlessui-dialog-${t}`,open:o,onClose:l,initialFocus:i,role:s="dialog",__demoMode:a=!1,...c}=e,[p,h]=u.useState(0),b=u.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(b.current||(b.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let f=Je();o===void 0&&f!==null&&(o=(f&fe.Open)===fe.Open);let g=u.useRef(null),v=de(g,n),x=De(g),y=e.hasOwnProperty("open")||f!==null,w=e.hasOwnProperty("onClose");if(!y&&!w)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!w)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof l!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${l}`);let T=o?0:1,[k,F]=u.useReducer(Fl,{titleId:null,descriptionId:null,panelRef:u.createRef()}),A=j(()=>l(!1)),K=j(z=>F({type:0,id:z})),Y=Be()?a?!1:T===0:!1,D=p>1,_=u.useContext(pt)!==null,[B,G]=Qo(),le={get current(){var z;return(z=k.panelRef.current)!=null?z:g.current}},{resolveContainers:ae,mainTreeNodeRef:C,MainTreeNode:re}=wl({portals:B,defaultContainers:[le]}),q=D?"parent":"leaf",J=f!==null?(f&fe.Closing)===fe.Closing:!1,N=_||J?!1:Y,M=u.useCallback(()=>{var z,he;return(he=Array.from((z=x==null?void 0:x.querySelectorAll("body > *"))!=null?z:[]).find(ge=>ge.id==="headlessui-portal-root"?!1:ge.contains(C.current)&&ge instanceof HTMLElement))!=null?he:null},[C]);Bn(M,N);let W=D?!0:Y,Q=u.useCallback(()=>{var z,he;return(he=Array.from((z=x==null?void 0:x.querySelectorAll("[data-headlessui-portal]"))!=null?z:[]).find(ge=>ge.contains(C.current)&&ge instanceof HTMLElement))!=null?he:null},[C]);Bn(Q,W),At(ae,z=>{z.preventDefault(),A()},!(!Y||D));let ce=!(D||T!==0);$n(x==null?void 0:x.defaultView,"keydown",z=>{ce&&(z.defaultPrevented||z.key===X.Escape&&(z.preventDefault(),z.stopPropagation(),A()))}),kl(x,!(J||T!==0||_),ae),u.useEffect(()=>{if(T!==0||!g.current)return;let z=new ResizeObserver(he=>{for(let ge of he){let We=ge.target.getBoundingClientRect();We.x===0&&We.y===0&&We.width===0&&We.height===0&&A()}});return z.observe(g.current),()=>z.disconnect()},[T,g,A]);let[ye,$]=Un(),H=u.useMemo(()=>[{dialogState:T,close:A,setTitleId:K},k],[T,k,A,K]),I=u.useMemo(()=>({open:T===0}),[T]),U={ref:v,id:r,role:s,"aria-modal":T===0?!0:void 0,"aria-labelledby":k.titleId,"aria-describedby":ye};return u.createElement(El,{type:"Dialog",enabled:T===0,element:g,onUpdate:j((z,he)=>{he==="Dialog"&&ue(z,{[Kt.Add]:()=>h(ge=>ge+1),[Kt.Remove]:()=>h(ge=>ge-1)})})},u.createElement(Ht,{force:!0},u.createElement(Yt,null,u.createElement(pt.Provider,{value:H},u.createElement(Yt.Group,{target:g},u.createElement(Ht,{force:!1},u.createElement($,{slot:I,name:"Dialog.Description"},u.createElement(tt,{initialFocus:i,containers:ae,features:Y?ue(q,{parent:tt.features.RestoreFocus,leaf:tt.features.All&~tt.features.FocusLock}):tt.features.None},u.createElement(G,null,ie({ourProps:U,theirProps:c,slot:I,defaultTag:Il,features:Pl,visible:T===0,name:"Dialog"}))))))))),u.createElement(re,null))}let Ml="div";function Al(e,n){let t=be(),{id:r=`headlessui-dialog-overlay-${t}`,...o}=e,[{dialogState:l,close:i}]=rt("Dialog.Overlay"),s=de(n),a=j(p=>{if(p.target===p.currentTarget){if(mt(p.currentTarget))return p.preventDefault();p.preventDefault(),p.stopPropagation(),i()}}),c=u.useMemo(()=>({open:l===0}),[l]);return ie({ourProps:{ref:s,id:r,"aria-hidden":!0,onClick:a},theirProps:o,slot:c,defaultTag:Ml,name:"Dialog.Overlay"})}let Dl="div";function _l(e,n){let t=be(),{id:r=`headlessui-dialog-backdrop-${t}`,...o}=e,[{dialogState:l},i]=rt("Dialog.Backdrop"),s=de(n);u.useEffect(()=>{if(i.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[i.panelRef]);let a=u.useMemo(()=>({open:l===0}),[l]);return u.createElement(Ht,{force:!0},u.createElement(Yt,null,ie({ourProps:{ref:s,id:r,"aria-hidden":!0},theirProps:o,slot:a,defaultTag:Dl,name:"Dialog.Backdrop"})))}let Ll="div";function Rl(e,n){let t=be(),{id:r=`headlessui-dialog-panel-${t}`,...o}=e,[{dialogState:l},i]=rt("Dialog.Panel"),s=de(n,i.panelRef),a=u.useMemo(()=>({open:l===0}),[l]),c=j(p=>{p.stopPropagation()});return ie({ourProps:{ref:s,id:r,onClick:c},theirProps:o,slot:a,defaultTag:Ll,name:"Dialog.Panel"})}let Bl="h2";function zl(e,n){let t=be(),{id:r=`headlessui-dialog-title-${t}`,...o}=e,[{dialogState:l,setTitleId:i}]=rt("Dialog.Title"),s=de(n);u.useEffect(()=>(i(r),()=>i(null)),[r,i]);let a=u.useMemo(()=>({open:l===0}),[l]);return ie({ourProps:{ref:s,id:r},theirProps:o,slot:a,defaultTag:Bl,name:"Dialog.Title"})}let Wl=se($l),Ul=se(_l),Hl=se(Rl),Vl=se(Al),Yl=se(zl),Vn=Object.assign(Wl,{Backdrop:Ul,Panel:Hl,Overlay:Vl,Title:Yl,Description:Hn}),Yn=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function qn(e){var n,t;let r=(n=e.innerText)!=null?n:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let l=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),l=!0;let i=l?(t=o.innerText)!=null?t:"":r;return Yn.test(i)&&(i=i.replace(Yn,"")),i}function ql(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let t=e.getAttribute("aria-labelledby");if(t){let r=t.split(" ").map(o=>{let l=document.getElementById(o);if(l){let i=l.getAttribute("aria-label");return typeof i=="string"?i.trim():qn(l).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return qn(e).trim()}function Gl(e){let n=u.useRef(""),t=u.useRef("");return j(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(n.current===o)return t.current;let l=ql(r).trim().toLowerCase();return n.current=o,t.current=l,l})}var Zl=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Zl||{}),Kl=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Kl||{}),Jl=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(Jl||{});function Jt(e,n=t=>t){let t=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=Mt(n(e.items.slice()),l=>l.dataRef.current.domRef.current),o=t?r.indexOf(t):null;return o===-1&&(o=null),{items:r,activeItemIndex:o}}let Ql={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},0(e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},2:(e,n)=>{var t;let r=Jt(e),o=Bt(n,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:l=>l.id,resolveDisabled:l=>l.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:o,activationTrigger:(t=n.trigger)!=null?t:1}},3:(e,n)=>{let t=e.searchQuery!==""?0:1,r=e.searchQuery+n.value.toLowerCase(),o=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+t).concat(e.items.slice(0,e.activeItemIndex+t)):e.items).find(i=>{var s;return((s=i.dataRef.current.textValue)==null?void 0:s.startsWith(r))&&!i.dataRef.current.disabled}),l=o?e.items.indexOf(o):-1;return l===-1||l===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:l,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,n)=>{let t=Jt(e,r=>[...r,{id:n.id,dataRef:n.dataRef}]);return{...e,...t}},6:(e,n)=>{let t=Jt(e,r=>{let o=r.findIndex(l=>l.id===n.id);return o!==-1&&r.splice(o,1),r});return{...e,...t,activationTrigger:1}}},Qt=u.createContext(null);Qt.displayName="MenuContext";function ht(e){let n=u.useContext(Qt);if(n===null){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ht),t}return n}function Xl(e,n){return ue(n.type,Ql,e,n)}let ei=u.Fragment;function ti(e,n){let{__demoMode:t=!1,...r}=e,o=u.useReducer(Xl,{__demoMode:t,menuState:t?0:1,buttonRef:u.createRef(),itemsRef:u.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:l,itemsRef:i,buttonRef:s},a]=o,c=de(n);At([s,i],(f,g)=>{var v;a({type:1}),$t(g,Pt.Loose)||(f.preventDefault(),(v=s.current)==null||v.focus())},l===0);let p=j(()=>{a({type:1})}),h=u.useMemo(()=>({open:l===0,close:p}),[l,p]),b={ref:c};return u.createElement(Qt.Provider,{value:o},u.createElement(Rt,{value:ue(l,{0:fe.Open,1:fe.Closed})},ie({ourProps:b,theirProps:r,slot:h,defaultTag:ei,name:"Menu"})))}let ni="button";function ri(e,n){var t;let r=be(),{id:o=`headlessui-menu-button-${r}`,...l}=e,[i,s]=ht("Menu.Button"),a=de(i.buttonRef,n),c=je(),p=j(v=>{switch(v.key){case X.Space:case X.Enter:case X.ArrowDown:v.preventDefault(),v.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ne.First}));break;case X.ArrowUp:v.preventDefault(),v.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ne.Last}));break}}),h=j(v=>{switch(v.key){case X.Space:v.preventDefault();break}}),b=j(v=>{if(mt(v.currentTarget))return v.preventDefault();e.disabled||(i.menuState===0?(s({type:1}),c.nextFrame(()=>{var x;return(x=i.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})})):(v.preventDefault(),s({type:0})))}),f=u.useMemo(()=>({open:i.menuState===0}),[i]),g={ref:a,id:o,type:Dt(e,i.buttonRef),"aria-haspopup":"menu","aria-controls":(t=i.itemsRef.current)==null?void 0:t.id,"aria-expanded":i.menuState===0,onKeyDown:p,onKeyUp:h,onClick:b};return ie({ourProps:g,theirProps:l,slot:f,defaultTag:ni,name:"Menu.Button"})}let oi="div",li=Pe.RenderStrategy|Pe.Static;function ii(e,n){var t,r;let o=be(),{id:l=`headlessui-menu-items-${o}`,...i}=e,[s,a]=ht("Menu.Items"),c=de(s.itemsRef,n),p=De(s.itemsRef),h=je(),b=Je(),f=b!==null?(b&fe.Open)===fe.Open:s.menuState===0;u.useEffect(()=>{let w=s.itemsRef.current;w&&s.menuState===0&&w!==(p==null?void 0:p.activeElement)&&w.focus({preventScroll:!0})},[s.menuState,s.itemsRef,p]),jn({container:s.itemsRef.current,enabled:s.menuState===0,accept(w){return w.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:w.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(w){w.setAttribute("role","none")}});let g=j(w=>{var T,k;switch(h.dispose(),w.key){case X.Space:if(s.searchQuery!=="")return w.preventDefault(),w.stopPropagation(),a({type:3,value:w.key});case X.Enter:if(w.preventDefault(),w.stopPropagation(),a({type:1}),s.activeItemIndex!==null){let{dataRef:F}=s.items[s.activeItemIndex];(k=(T=F.current)==null?void 0:T.domRef.current)==null||k.click()}xn(s.buttonRef.current);break;case X.ArrowDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ne.Next});case X.ArrowUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ne.Previous});case X.Home:case X.PageUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ne.First});case X.End:case X.PageDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ne.Last});case X.Escape:w.preventDefault(),w.stopPropagation(),a({type:1}),we().nextFrame(()=>{var F;return(F=s.buttonRef.current)==null?void 0:F.focus({preventScroll:!0})});break;case X.Tab:w.preventDefault(),w.stopPropagation(),a({type:1}),we().nextFrame(()=>{to(s.buttonRef.current,w.shiftKey?Ne.Previous:Ne.Next)});break;default:w.key.length===1&&(a({type:3,value:w.key}),h.setTimeout(()=>a({type:4}),350));break}}),v=j(w=>{switch(w.key){case X.Space:w.preventDefault();break}}),x=u.useMemo(()=>({open:s.menuState===0}),[s]),y={"aria-activedescendant":s.activeItemIndex===null||(t=s.items[s.activeItemIndex])==null?void 0:t.id,"aria-labelledby":(r=s.buttonRef.current)==null?void 0:r.id,id:l,onKeyDown:g,onKeyUp:v,role:"menu",tabIndex:0,ref:c};return ie({ourProps:y,theirProps:i,slot:x,defaultTag:oi,features:li,visible:f,name:"Menu.Items"})}let si=u.Fragment;function ai(e,n){let t=be(),{id:r=`headlessui-menu-item-${t}`,disabled:o=!1,...l}=e,[i,s]=ht("Menu.Item"),a=i.activeItemIndex!==null?i.items[i.activeItemIndex].id===r:!1,c=u.useRef(null),p=de(n,c);te(()=>{if(i.__demoMode||i.menuState!==0||!a||i.activationTrigger===0)return;let F=we();return F.requestAnimationFrame(()=>{var A,K;(K=(A=c.current)==null?void 0:A.scrollIntoView)==null||K.call(A,{block:"nearest"})}),F.dispose},[i.__demoMode,c,a,i.menuState,i.activationTrigger,i.activeItemIndex]);let h=Gl(c),b=u.useRef({disabled:o,domRef:c,get textValue(){return h()}});te(()=>{b.current.disabled=o},[b,o]),te(()=>(s({type:5,id:r,dataRef:b}),()=>s({type:6,id:r})),[b,r]);let f=j(()=>{s({type:1})}),g=j(F=>{if(o)return F.preventDefault();s({type:1}),xn(i.buttonRef.current)}),v=j(()=>{if(o)return s({type:2,focus:ne.Nothing});s({type:2,focus:ne.Specific,id:r})}),x=On(),y=j(F=>x.update(F)),w=j(F=>{x.wasMoved(F)&&(o||a||s({type:2,focus:ne.Specific,id:r,trigger:0}))}),T=j(F=>{x.wasMoved(F)&&(o||a&&s({type:2,focus:ne.Nothing}))}),k=u.useMemo(()=>({active:a,disabled:o,close:f}),[a,o,f]);return ie({ourProps:{id:r,ref:p,role:"menuitem",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,disabled:void 0,onClick:g,onFocus:v,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:T,onMouseLeave:T},theirProps:l,slot:k,defaultTag:si,name:"Menu.Item"})}let ui=se(ti),ci=se(ri),di=se(ii),fi=se(ai),vt=Object.assign(ui,{Button:ci,Items:di,Item:fi}),Gn=u.createContext(null);function Zn(){let e=u.useContext(Gn);if(e===null){let n=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Zn),n}return e}function mi(){let[e,n]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(t){let r=j(l=>(n(i=>[...i,l]),()=>n(i=>{let s=i.slice(),a=s.indexOf(l);return a!==-1&&s.splice(a,1),s}))),o=u.useMemo(()=>({register:r,slot:t.slot,name:t.name,props:t.props}),[r,t.slot,t.name,t.props]);return u.createElement(Gn.Provider,{value:o},t.children)},[n])]}let pi="label";function hi(e,n){let t=be(),{id:r=`headlessui-label-${t}`,passive:o=!1,...l}=e,i=Zn(),s=de(n);te(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return o&&("onClick"in a&&(delete a.htmlFor,delete a.onClick),"onClick"in l&&delete l.onClick),ie({ourProps:a,theirProps:l,slot:i.slot||{},defaultTag:pi,name:i.name||"Label"})}let vi=se(hi),gi=Object.assign(vi,{});function bi(e=0){let[n,t]=u.useState(e),r=Xe(),o=u.useCallback(a=>{r.current&&t(c=>c|a)},[n,r]),l=u.useCallback(a=>!!(n&a),[n]),i=u.useCallback(a=>{r.current&&t(c=>c&~a)},[t,r]),s=u.useCallback(a=>{r.current&&t(c=>c^a)},[t]);return{flags:n,addFlag:o,hasFlag:l,removeFlag:i,toggleFlag:s}}let Xt=u.createContext(null);Xt.displayName="GroupContext";let xi=u.Fragment;function wi(e){var n;let[t,r]=u.useState(null),[o,l]=mi(),[i,s]=Un(),a=u.useMemo(()=>({switch:t,setSwitch:r,labelledby:o,describedby:i}),[t,r,o,i]),c={},p=e;return u.createElement(s,{name:"Switch.Description"},u.createElement(l,{name:"Switch.Label",props:{htmlFor:(n=a.switch)==null?void 0:n.id,onClick(h){t&&(h.currentTarget.tagName==="LABEL"&&h.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},u.createElement(Xt.Provider,{value:a},ie({ourProps:c,theirProps:p,defaultTag:xi,name:"Switch.Group"}))))}let yi="button";function Ei(e,n){var t;let r=be(),{id:o=`headlessui-switch-${r}`,checked:l,defaultChecked:i=!1,onChange:s,disabled:a=!1,name:c,value:p,form:h,...b}=e,f=u.useContext(Xt),g=u.useRef(null),v=de(g,n,f===null?null:f.setSwitch),[x,y]=hn(l,s,i),w=j(()=>y==null?void 0:y(!x)),T=j(D=>{if(mt(D.currentTarget))return D.preventDefault();D.preventDefault(),w()}),k=j(D=>{D.key===X.Space?(D.preventDefault(),w()):D.key===X.Enter&&co(D.currentTarget)}),F=j(D=>D.preventDefault()),A=u.useMemo(()=>({checked:x}),[x]),K={id:o,ref:v,role:"switch",type:Dt(e,g),tabIndex:e.tabIndex===-1?0:(t=e.tabIndex)!=null?t:0,"aria-checked":x,"aria-labelledby":f==null?void 0:f.labelledby,"aria-describedby":f==null?void 0:f.describedby,disabled:a,onClick:T,onKeyUp:k,onKeyPress:F},Y=je();return u.useEffect(()=>{var D;let _=(D=g.current)==null?void 0:D.closest("form");_&&i!==void 0&&Y.addEventListener(_,"reset",()=>{y(i)})},[g,y]),u.createElement(u.Fragment,null,c!=null&&x&&u.createElement(Ke,{features:ze.Hidden,...ft({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:a,form:h,checked:x,name:c,value:p})}),ie({ourProps:K,theirProps:b,slot:A,defaultTag:yi,name:"Switch"}))}let Si=se(Ei),Ci=wi,Ti=Object.assign(Si,{Group:Ci,Label:gi,Description:Hn});function Oi(e){let n={called:!1};return(...t)=>{if(!n.called)return n.called=!0,e(...t)}}function en(e,...n){e&&n.length>0&&e.classList.add(...n)}function tn(e,...n){e&&n.length>0&&e.classList.remove(...n)}function ji(e,n){let t=we();if(!e)return t.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[l,i]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,h)=>h-p);return c}),s=l+i;if(s!==0){t.group(c=>{c.setTimeout(()=>{n(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let a=t.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(n(),a())})}else n();return t.add(()=>n()),t.dispose}function Ni(e,n,t,r){let o=t?"enter":"leave",l=we(),i=r!==void 0?Oi(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=ue(o,{enter:()=>n.enter,leave:()=>n.leave}),a=ue(o,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),c=ue(o,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom});return tn(e,...n.base,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),en(e,...n.base,...s,...c),l.nextFrame(()=>{tn(e,...n.base,...s,...c),en(e,...n.base,...s,...a),ji(e,()=>(tn(e,...n.base,...s),en(e,...n.base,...n.entered),i()))}),l.dispose}function ki({immediate:e,container:n,direction:t,classes:r,onStart:o,onStop:l}){let i=Xe(),s=je(),a=Se(t);te(()=>{e&&(a.current="enter")},[e]),te(()=>{let c=we();s.add(c.dispose);let p=n.current;if(p&&a.current!=="idle"&&i.current)return c.dispose(),o.current(a.current),c.add(Ni(p,r.current,a.current==="enter",()=>{c.dispose(),l.current(a.current)})),c.dispose},[t])}function Me(e=""){return e.split(/\s+/).filter(n=>n.length>1)}let gt=u.createContext(null);gt.displayName="TransitionContext";var Fi=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Fi||{});function Ii(){let e=u.useContext(gt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Pi(){let e=u.useContext(bt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let bt=u.createContext(null);bt.displayName="NestingContext";function xt(e){return"children"in e?xt(e.children):e.current.filter(({el:n})=>n.current!==null).filter(({state:n})=>n==="visible").length>0}function Kn(e,n){let t=Se(e),r=u.useRef([]),o=Xe(),l=je(),i=j((f,g=$e.Hidden)=>{let v=r.current.findIndex(({el:x})=>x===f);v!==-1&&(ue(g,{[$e.Unmount](){r.current.splice(v,1)},[$e.Hidden](){r.current[v].state="hidden"}}),l.microTask(()=>{var x;!xt(r)&&o.current&&((x=t.current)==null||x.call(t))}))}),s=j(f=>{let g=r.current.find(({el:v})=>v===f);return g?g.state!=="visible"&&(g.state="visible"):r.current.push({el:f,state:"visible"}),()=>i(f,$e.Unmount)}),a=u.useRef([]),c=u.useRef(Promise.resolve()),p=u.useRef({enter:[],leave:[],idle:[]}),h=j((f,g,v)=>{a.current.splice(0),n&&(n.chains.current[g]=n.chains.current[g].filter(([x])=>x!==f)),n==null||n.chains.current[g].push([f,new Promise(x=>{a.current.push(x)})]),n==null||n.chains.current[g].push([f,new Promise(x=>{Promise.all(p.current[g].map(([y,w])=>w)).then(()=>x())})]),g==="enter"?c.current=c.current.then(()=>n==null?void 0:n.wait.current).then(()=>v(g)):v(g)}),b=j((f,g,v)=>{Promise.all(p.current[g].splice(0).map(([x,y])=>y)).then(()=>{var x;(x=a.current.shift())==null||x()}).then(()=>v(g))});return u.useMemo(()=>({children:r,register:s,unregister:i,onStart:h,onStop:b,wait:c,chains:p}),[s,i,r,h,b,p,c])}function $i(){}let Mi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Jn(e){var n;let t={};for(let r of Mi)t[r]=(n=e[r])!=null?n:$i;return t}function Ai(e){let n=u.useRef(Jn(e));return u.useEffect(()=>{n.current=Jn(e)},[e]),n}let Di="div",Qn=Pe.RenderStrategy;function _i(e,n){var t,r;let{beforeEnter:o,afterEnter:l,beforeLeave:i,afterLeave:s,enter:a,enterFrom:c,enterTo:p,entered:h,leave:b,leaveFrom:f,leaveTo:g,...v}=e,x=u.useRef(null),y=de(x,n),w=(t=v.unmount)==null||t?$e.Unmount:$e.Hidden,{show:T,appear:k,initial:F}=Ii(),[A,K]=u.useState(T?"visible":"hidden"),Y=Pi(),{register:D,unregister:_}=Y;u.useEffect(()=>D(x),[D,x]),u.useEffect(()=>{if(w===$e.Hidden&&x.current){if(T&&A!=="visible"){K("visible");return}return ue(A,{hidden:()=>_(x),visible:()=>D(x)})}},[A,x,D,_,T,w]);let B=Se({base:Me(v.className),enter:Me(a),enterFrom:Me(c),enterTo:Me(p),entered:Me(h),leave:Me(b),leaveFrom:Me(f),leaveTo:Me(g)}),G=Ai({beforeEnter:o,afterEnter:l,beforeLeave:i,afterLeave:s}),le=Be();u.useEffect(()=>{if(le&&A==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,A,le]);let ae=F&&!k,C=k&&T&&F,re=!le||ae?"idle":T?"enter":"leave",q=bi(0),J=j(ce=>ue(ce,{enter:()=>{q.addFlag(fe.Opening),G.current.beforeEnter()},leave:()=>{q.addFlag(fe.Closing),G.current.beforeLeave()},idle:()=>{}})),N=j(ce=>ue(ce,{enter:()=>{q.removeFlag(fe.Opening),G.current.afterEnter()},leave:()=>{q.removeFlag(fe.Closing),G.current.afterLeave()},idle:()=>{}})),M=Kn(()=>{K("hidden"),_(x)},Y),W=u.useRef(!1);ki({immediate:C,container:x,classes:B,direction:re,onStart:Se(ce=>{W.current=!0,M.onStart(x,ce,J)}),onStop:Se(ce=>{W.current=!1,M.onStop(x,ce,N),ce==="leave"&&!xt(M)&&(K("hidden"),_(x))})});let Q=v,pe={ref:y};return C?Q={...Q,className:ct(v.className,...B.current.enter,...B.current.enterFrom)}:W.current&&(Q.className=ct(v.className,(r=x.current)==null?void 0:r.className),Q.className===""&&delete Q.className),u.createElement(bt.Provider,{value:M},u.createElement(Rt,{value:ue(A,{visible:fe.Open,hidden:fe.Closed})|q.flags},ie({ourProps:pe,theirProps:Q,defaultTag:Di,features:Qn,visible:A==="visible",name:"Transition.Child"})))}function Li(e,n){let{show:t,appear:r=!1,unmount:o=!0,...l}=e,i=u.useRef(null),s=de(i,n);Be();let a=Je();if(t===void 0&&a!==null&&(t=(a&fe.Open)===fe.Open),![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,p]=u.useState(t?"visible":"hidden"),h=Kn(()=>{p("hidden")}),[b,f]=u.useState(!0),g=u.useRef([t]);te(()=>{b!==!1&&g.current[g.current.length-1]!==t&&(g.current.push(t),f(!1))},[g,t]);let v=u.useMemo(()=>({show:t,appear:r,initial:b}),[t,r,b]);u.useEffect(()=>{if(t)p("visible");else if(!xt(h))p("hidden");else{let T=i.current;if(!T)return;let k=T.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&p("hidden")}},[t,h]);let x={unmount:o},y=j(()=>{var T;b&&f(!1),(T=e.beforeEnter)==null||T.call(e)}),w=j(()=>{var T;b&&f(!1),(T=e.beforeLeave)==null||T.call(e)});return u.createElement(bt.Provider,{value:h},u.createElement(gt.Provider,{value:v},ie({ourProps:{...x,as:u.Fragment,children:u.createElement(Xn,{ref:s,...x,...l,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:u.Fragment,features:Qn,visible:c==="visible",name:"Transition"})))}function Ri(e,n){let t=u.useContext(gt)!==null,r=Je()!==null;return u.createElement(u.Fragment,null,!t&&r?u.createElement(nn,{ref:n,...e}):u.createElement(Xn,{ref:n,...e}))}let nn=se(Li),Xn=se(_i),Bi=se(Ri),Re=Object.assign(nn,{Child:Bi,Root:nn});function zi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M18 10a.75.75 0 0 1-.75.75H4.66l2.1 1.95a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 1 1 1.02 1.1l-2.1 1.95h12.59A.75.75 0 0 1 18 10Z",clipRule:"evenodd"}))}const Wi=E.forwardRef(zi);function Ui({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M2 10a.75.75 0 0 1 .75-.75h12.59l-2.1-1.95a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.1-1.95H2.75A.75.75 0 0 1 2 10Z",clipRule:"evenodd"}))}const Hi=E.forwardRef(Ui);function Vi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const Yi=E.forwardRef(Vi);function qi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Gi=E.forwardRef(qi);function Zi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))}const Ki=E.forwardRef(Zi);function Ji({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const er=E.forwardRef(Ji);function Qi({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const Xi=E.forwardRef(Qi);function es({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z",clipRule:"evenodd"}))}const ts=E.forwardRef(es);function ns({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",clipRule:"evenodd"}))}const rs=E.forwardRef(ns),wt={warning:{color:"bg-yellow-50",icon:m.jsx(Xi,{className:"h-5 w-5 text-yellow-400","aria-hidden":"true"}),colorTitle:"text-yellow-800",colorText:"text-yellow-700"},error:{color:"bg-red-50",icon:m.jsx(rs,{className:"h-5 w-5 text-red-400","aria-hidden":"true"}),colorTitle:"text-red-800",colorText:"text-red-700"},success:{color:"bg-green-50",icon:m.jsx(Yi,{className:"h-5 w-5 text-green-400","aria-hidden":"true"}),colorTitle:"text-green-800",colorText:"text-green-700"},info:{color:"bg-blue-50",icon:m.jsx(ts,{className:"h-5 w-5 text-blue-400","aria-hidden":"true"}),colorTitle:"text-blue-800",colorText:"text-blue-700"}};let tr;const os=({type:e="info",title:n,message:t,active:r=!1,time:o=1e3,dispatch:l})=>{const{width:i}=Ot(),[s,a]=u.useState(!1);return u.useEffect(()=>r?(tr=window.setTimeout(()=>{a(!1),l({type:"ALERT",payload:{title:"",message:"",typeAlert:"",active:!1}})},o),a(!0)):(a(!1),()=>window.clearTimeout(tr)),[r,l,o]),m.jsx("div",{className:"fixed top-2.5 w-80 3xs:w-96",style:{left:`calc(50% - ${i<=470?"160px":"192px"})`,zIndex:"60"},children:m.jsx(Re,{as:u.Fragment,show:s,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:m.jsxs("div",{className:P("rounded-md p-4 text-center",wt[e].color),children:[m.jsxs("div",{className:"flex justify-center flex-shrink-0",children:[wt[e].icon,m.jsx("h3",{className:P("text-sm font-medium ml-3",wt[e].colorTitle),children:n})]}),m.jsx("div",{className:P("mt-2 text-sm",wt[e].colorText),children:m.jsx("p",{children:t})})]})})})};function ls({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",clipRule:"evenodd"}))}const is=E.forwardRef(ls);function ss({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z",clipRule:"evenodd"}))}const as=E.forwardRef(ss);function us({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{d:"M21.731 2.269a2.625 2.625 0 0 0-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 0 0 0-3.712ZM19.513 8.199l-3.712-3.712-8.4 8.4a5.25 5.25 0 0 0-1.32 2.214l-.8 2.685a.75.75 0 0 0 .933.933l2.685-.8a5.25 5.25 0 0 0 2.214-1.32l8.4-8.4Z"}),E.createElement("path",{d:"M5.25 5.25a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3V13.5a.75.75 0 0 0-1.5 0v5.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5V8.25a1.5 1.5 0 0 1 1.5-1.5h5.25a.75.75 0 0 0 0-1.5H5.25Z"}))}const cs=E.forwardRef(us);function ds({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M1.5 6a2.25 2.25 0 0 1 2.25-2.25h16.5A2.25 2.25 0 0 1 22.5 6v12a2.25 2.25 0 0 1-2.25 2.25H3.75A2.25 2.25 0 0 1 1.5 18V6ZM3 16.06V18c0 .414.336.75.75.75h16.5A.75.75 0 0 0 21 18v-1.94l-2.69-2.689a1.5 1.5 0 0 0-2.12 0l-.88.879.97.97a.75.75 0 1 1-1.06 1.06l-5.16-5.159a1.5 1.5 0 0 0-2.12 0L3 16.061Zm10.125-7.81a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Z",clipRule:"evenodd"}))}const fs=E.forwardRef(ds);function ms({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0 0 21.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 0 0 3.065 7.097A9.716 9.716 0 0 0 12 21.75a9.716 9.716 0 0 0 6.685-2.653Zm-12.54-1.285A7.486 7.486 0 0 1 12 15a7.486 7.486 0 0 1 5.855 2.812A8.224 8.224 0 0 1 12 20.25a8.224 8.224 0 0 1-5.855-2.438ZM15.75 9a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z",clipRule:"evenodd"}))}const ps=E.forwardRef(ms);function hs({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const vs=E.forwardRef(hs),gs=({src:e,alt:n,width:t,height:r,className:o="",classNameIcon:l="",isIcon:i=!0,acronym:s=""})=>{function a(){if(typeof s!="string")return s;const c=s.toLowerCase(),p=c.split(" "),h=p[p.length-1];return c.charAt(0)+h.charAt(0)}return m.jsx(m.Fragment,{children:e?m.jsx("img",{src:e,alt:n,width:t,height:r,className:P(o!==""&&o),loading:"lazy",decoding:"async",style:{filter:"blur(5px)",transition:"filter 0.3s"},onLoad:c=>c.currentTarget.style.filter="none","data-testid":"img"}):i?m.jsx(ps,{className:P("bg-white text-default-5",l!==""?l:"w-7 h-7")}):m.jsx("div",{className:P("bg-gray-200 text-default-5 rounded-full font-bold uppercase flex justify-center items-center",l!==""?l:"w-7 h-7"),children:a()})})},bs=({steps:e,onClick:n})=>{const[t,r]=u.useState(0),o=l=>{r(l),n(l)};return m.jsx("nav",{className:"flex items-center justify-center w-full","aria-label":"Progress","data-testid":"bullets",children:m.jsx("ol",{role:"list",className:"flex items-center space-x-5",children:new Array(e).fill(1).map((l,i)=>m.jsx("li",{children:t!==i?m.jsx("div",{className:"cursor-pointer block h-2.5 w-2.5 rounded-full bg-gray-500 hover:bg-gray-600",onClick:()=>o(i),"data-testid":`step-${i}`,children:m.jsx("span",{className:"sr-only",children:"step"})}):m.jsxs("div",{className:"relative flex items-center justify-center cursor-pointer","aria-current":"step",children:[m.jsx("span",{className:"absolute flex h-5 w-5 p-px","aria-hidden":"true",children:m.jsx("span",{className:"h-full w-full rounded-full bg-gray-300"})}),m.jsx("span",{className:"relative block h-2.5 w-2.5 rounded-full bg-gray-500","aria-hidden":"true"}),m.jsx("span",{className:"sr-only",children:"step"})]})},i))})})};var nr={exports:{}};/*!
32
32
  Copyright (c) 2018 Jed Watson.
33
33
  Licensed under the MIT License (MIT), see
34
34
  http://jedwatson.github.io/classnames
35
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=l(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)n.call(o,s)&&o[s]&&(i=l(i,s));return i}function l(o,i){return i?o?o+" "+i:o+i:o}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(rr);var ws=rr.exports;const Ae=Ir(ws),or=({className:e="text-sm w-full rounded-md",children:n,icon:t=null,edge:r=null,disabled:l=!1,type:o="button",onClick:i,id:s})=>{const a=Ae({"ml-2":r==="start"&&t!==null,"mr-2":r==="end"&&t!==null});return f.jsxs("button",{className:I("flex justify-center items-center bg-white px-3 py-7px font-medium leading-6 text-white shadow-sm ring-1 ring-inset ring-gray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 bg-gray-50",e),type:o,onClick:i,disabled:l,"data-testid":`button-outline-${s}`,id:`button-outline-${s}`,children:[r==="start"&&t!==null&&f.jsx("span",{children:t}),f.jsx("span",{className:I("flex",a),id:s,children:n}),r==="end"&&t!==null&&f.jsx("span",{children:t})]})},lr=({children:e,className:n="",icon:t=null,edge:r=null,disabled:l=!1,type:o="button",onClick:i,id:s})=>{const a=Ae({"ml-2":r==="start"&&t!==null,"mr-2":r==="end"&&t!==null});return f.jsxs("button",{className:`${n} flex justify-center items-center`,edge:r,type:o,onClick:i,disabled:l,"data-testid":`button-${s}`,children:[r==="start"&&t!==null&&f.jsx("span",{children:t}),f.jsx("span",{className:a,children:e}),r==="end"&&t!==null&&f.jsx("span",{children:t})]})},lt=({children:e,classNameButton:n="bg-indigo-600 hover:bg-indigo-700 focus-visible:outline-indigo-600 shadow-indigo-500 rounded font-semibold px-3 py-1.5 text-white w-full",classNameText:t="",icon:r=null,edge:l=null,disabled:o=!1,type:i="button",onClick:s,id:a,outline:c="0px 0px 0px 2px #6366F1, 0px 0px 0px 2px #FFF, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",classNameContainer:p=""})=>{const[h,b]=u.useState(!1),m=Ae({"ml-2":l==="start"&&r!==null,"mr-2":l==="end"&&r!==null}),g=()=>{s&&s()};return f.jsx("div",{className:I("rounded-md p-0.5",p!==""&&p),style:{boxShadow:h?c:"0px 0px 0px 0px #6366F1, 0px 0px 0px 0px #FFF, 0px 0px 0px 0px rgba(0, 0, 0, 0.05)",transition:"box-shadow .1s ease-in-out"},"data-testid":"container-button",children:f.jsxs("button",{className:I("flex justify-center items-center text-sm leading-6 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",o&&"text-white bg-gray-300 rounded focus:outline-none cursor-default",o?n.replace(/\bbg-\w+\b/g,""):n),type:i,onClick:g,onFocus:()=>b(!0),onBlur:()=>b(!1),disabled:o,"data-testid":`button-solid-${a}`,children:[l==="start"&&r!==null&&f.jsx("span",{className:"flex",children:r}),f.jsx("span",{className:I(t.length===0&&m,t.length!==0&&t),children:e}),l==="end"&&r!==null&&f.jsx("span",{children:r})]})})},ys=({label:e=null,checked:n=!1,onChange:t,id:r,className:l="",classNameCheckbox:o="h-4 w-4",style:i={},disabled:s=!1})=>{const[a,c]=u.useState(!1);return u.useEffect(()=>{c(n)},[n]),f.jsxs("div",{className:"flex items-center",style:i,"data-testid":`container-check-${r}`,children:[f.jsx("input",{checked:a,id:`${e}-${r}`,value:r,"aria-describedby":"comments-description",type:"checkbox",onChange:t,className:I("cursor-pointer rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",o!==""&&o),"data-testid":`checkbox-${r}`,disabled:s}),e!==null?f.jsx("label",{htmlFor:`${e}-${r}`,className:`ml-2.5 font-normal cursor-pointer ${l}`,id:`label-${r}`,"data-testid":"label",children:e}):null]})};function Es({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Ss=E.forwardRef(Es);function Cs({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const Ts=E.forwardRef(Cs);function Os({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const js=E.forwardRef(Os);function Ns({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const ks=E.forwardRef(Ns);function Fs({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const Is=E.forwardRef(Fs);function ir({children:e,className:n="sm:max-w-sm w-11/12 sm:my-8",classNameContainer:t="",isOpen:r=!1,setIsOpen:l,showIconSuccess:o=!0,showButton:i=!0,style:s={}}){return f.jsx(Be,{show:r,as:u.Fragment,children:f.jsxs(Yn,{as:"div",className:"relative z-50 relative",onClose:l,"data-testid":"modal",children:[f.jsx(Be.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-5",leave:"ease-in duration-200",leaveFrom:"opacity-5",leaveTo:"opacity-0",children:f.jsx("div",{className:"fixed inset-0 bg-opacity-40 bg-gray-900 transition-opacity","data-testid":"window-close",onClick:()=>l(!1)})}),f.jsx("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:f.jsx("div",{className:"flex min-h-full items-center justify-center xs:p-2 p-4 text-center sm:items-center sm:p-0",children:f.jsx(Be.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:f.jsxs(Yn.Panel,{className:I("relative transform rounded-lg bg-white px-4 pb-3 pt-5 text-left transition-all sm:w-full sm:pt-3 sm:px-3",n!==""&&n),style:s,children:[o&&f.jsx("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:f.jsx(Ss,{className:"h-6 w-6 text-green-600","aria-hidden":"true"})}),f.jsx("div",{className:I(t!==""&&t),"data-testid":"content",children:e}),i&&f.jsx("div",{className:"mt-5 sm:mt-6",children:f.jsx(lt,{id:"close-modal",onClick:()=>l(!1),children:"Cerrar"})}),f.jsx("button",{className:"opacity-0 absolute"})]})})})})]})})}const Ps=({isOpenModalConfirmation:e,setIsOpenModalConfirmation:n,close:t,title:r="¿Estás seguro de abandonar la creación de la acción?",description:l="La información se perderá si no creas la acción",classNameTitle:o="",classNameDescription:i=""})=>{const s=()=>{n(!1),t()};return f.jsxs(ir,{isOpen:e,setIsOpen:()=>n(),showButton:!1,showIconSuccess:!1,children:[f.jsx("p",{className:I("text-center text-sm",o!==""&&o),children:r}),f.jsx("p",{className:I("text-center text-sm",i!==""&&i),children:l}),f.jsxs("div",{className:"flex w-full justify-center mt-5",children:[f.jsx(or,{className:"rounded-md bg-white text-gray-500 text-sm shadow-sm ring-1 ring-inset ring-gray-300 bg-gray-50 w-24 h-9 mr-6",onClick:()=>n(),id:"cancel",children:"Cancelar"}),f.jsx(lt,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 focus-visible:outline-secondary-2 shadow-secondary-2 rounded py-1.5 text-white w-full px-5",outline:"0px 0px 0px 2px #3758F9, 0px 0px 0px 2px #243BBD, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",onClick:s,id:"confirmation",children:"Aceptar"})]})]})},$s=({className:e="",style:n={}})=>f.jsx("div",{className:I("w-px",e!==""&&e),style:n}),Ms=({onClick:e,id:n="",className:t=""})=>f.jsxs("div",{className:I("flex items-center text-default-5",t!==""&&t),"data-testid":n,children:[f.jsx(ss,{className:"w-3 h-3 3xs:w-4 3xs:h-4 stroke-current cursor-pointer","data-testid":"chevron-left-icon",onClick:e}),f.jsx("span",{onClick:e,className:"text-sm cursor-pointer","data-testid":"go-back",children:"Volver"})]}),on=({placeholder:e="",label:n="",htmlFor:t,type:r="text",name:l,handleChange:o,onClick:i=()=>{},value:s,isReadOnly:a=!1,isError:c=!1,helperText:p="",autocomplete:h="off",id:b,classNameLabel:m="",classNameContainerInput:g="",classNameContainer:v="",className:x="",icon:y=null,onKeyDown:w,onFocus:T,min:P,max:k})=>{const[A,K]=u.useState(!1),Y=Ae({"ring-red-300 focus:ring-red-300 text-red-900":c||A,"focus:ring-indigo-600 text-gray-500":!c&&!A}),D=_=>{if(o&&o(_),r!=="email")return;const{value:B}=_.target,G=dn(B);K(!G)};return f.jsxs("div",{"data-testid":`container-input-${b}`,className:v,children:[n!==""&&f.jsx("label",{htmlFor:t,className:I("block text-sm font-medium leading-6",m!==""?m:"text-gray-700"),"data-testid":`label-${b}`,children:n}),f.jsxs("div",{className:I("relative mt-1 rounded-md",g!==""&&g),children:[f.jsx("input",{id:b,name:l,type:r,autoComplete:h,placeholder:e,onChange:D,onClick:i,onKeyDown:w,onFocus:T,value:s,readOnly:a,"data-testid":`input-${b}`,min:P,className:I("block w-full rounded-md border-0 py-1.5 shadow-sm placeholder-gray-300 ring-1 ring-gray-300 ring-inset focus:ring-1 focus:ring-inset text-sm sm:leading-6",Y,x!==""&&x)}),y!==null&&f.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:y}),c&&y===null&&f.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:f.jsx(tr,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]}),p.length===0||!c?null:f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${b}`,children:p})]})};function it({className:e="w-6 h-6",color:n="#3730a3"}){return f.jsxs("svg",{className:I("fill-current animate-spin",e),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:n,strokeWidth:"4",fill:"none"}),f.jsx("path",{fill:n,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function As(){return f.jsxs("div",{className:"fixed top-0 left-0 right-0 bottom-0 w-full h-screen overflow-hidden bg-stone-600 opacity-75 flex flex-col items-center justify-center","data-testid":"spinner",style:{zIndex:60},children:[f.jsx("div",{className:"inline-block h-12 w-12 animate-[spinner-grow_0.75s_linear_infinite] rounded-full bg-current align-[-0.125em] opacity-0 motion-reduce:animate-[spinner-grow_1.5s_linear_infinite]",role:"status"}),f.jsx(it,{className:"w-8 h-8 animate-spin"})]})}const sr=({className:e="",classNameContainer:n="",children:t,message:r="",style:l={}})=>{const[o,i]=u.useState(!1),[s,a]=u.useState({top:0,left:0}),c=u.useRef(null),p=()=>{if(r==="")return;const m=c.current.getBoundingClientRect();a({top:m.bottom+window.scrollY,left:m.left+window.scrollX}),i(!0)},h=()=>{i(!1)},b=f.jsx(Be,{as:u.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",show:o,children:f.jsx("div",{className:I("absolute z-40 px-4 mt-0 sm:px-0",e!==""&&e),style:{top:s.top,left:s.left,position:"absolute"},children:f.jsx("div",{className:"bg-white p-2 text-center rounded-lg shadow-lg ring-1 ring-black ring-opacity-5",onMouseEnter:p,onMouseLeave:h,"data-testid":"message",children:r})})});return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:c,className:I("inline-block",n!==""&&n),onMouseEnter:p,onMouseLeave:h,"data-testid":"container-tooltip",style:l,children:t}),typeof window<"u"&&Tt.createPortal(b,document.body)]})},ar=({height:e="36px",style:n={},styleMenu:t={},label:r="",onChange:l,isReadOnly:o=!1,isError:i=!1,helperText:s="",name:a,id:c,className:p="",classNameLabel:h="",classNameInput:b="",options:m,value:g=-1,defaultValue:v={value:-1,label:"",iconStart:null,iconEnd:null},defaultLabel:x="label",defaultId:y="value",bgOptionSelect:w="bg-indigo-600",isSearch:T=!1,loading:P=!1,isSingleOptionAndFirstLoad:k=!0,isTest:A=!1})=>{const[K,Y]=u.useState(""),[D,_]=u.useState(v),[B,G]=u.useState(!1),[le,ae]=u.useState(!0);u.useEffect(()=>{if((m==null?void 0:m.length)!==1||!le)return;ae(!1);const[N]=m,M=N[y],W=N[x];_({value:M,label:W}),k&&l({target:{value:N,checked:!1,name:a,type:void 0,id:N[y]}})},[m,y,x,l,a,le,k]),u.useEffect(()=>{if(g===-1||(m==null?void 0:m.length)===0)return;const N=m==null?void 0:m.find(M=>M[y]===g);N&&_(N)},[g,m,y]),u.useEffect(()=>{g==="clear"&&(D[y]!==v[y]||D[x]!==v[x]||A)&&_(v)},[v,A,D,g,y,x]);const C=K===""?m:m.filter(N=>N[x].normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().includes(K.toLowerCase())),re=Ae({"ring-red-300 focus:ring-red-300 text-red-900":i&&!o,"text-gray-500":!i,"focus:ring-indigo-600":!i&&!o}),q=Ae({"text-red-400":i&&!o,"text-gray-400":!i}),J=N=>{_(N),l({target:{value:N,checked:!1,name:a,type:void 0,id:N[y]}})};return f.jsxs(ke,{as:"div",value:D,children:[f.jsx(ke.Label,{className:I("block text-sm font-medium leading-6 text-gray-500 mb-0.5",h!==""&&h),children:r}),f.jsxs("div",{className:I("relative",p!==""&&p),children:[f.jsx(sr,{className:"text-sm",classNameContainer:"w-full",message:D[x],children:f.jsxs(ke.Button,{className:"w-full","data-testid":`listbox-button-${c}`,children:[D.iconStart&&f.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2",children:D.iconStart}),f.jsx(ke.Input,{className:I("w-full rounded-md border-0 bg-white py-1.5 pr-10 text-gray-900 shadow-sm ring-1 ring-gray-300 sm:text-sm sm:leading-6 truncate block",!i&&!o&&"ring-inset focus:ring-inset focus:ring-2 focus:ring-indigo-600",o&&"focus:ring-gray-300",re,b!==""&&b),onChange:N=>Y(N.target.value.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),displayValue:N=>{var M;return(M=N[x])==null?void 0:M.trim()},autoComplete:"off",readOnly:!T||o,style:{height:e,...n},"data-testid":"input-search",onClick:()=>G(o?!1:!B),onBlur:()=>G(!1)})]})}),D.iconEnd&&f.jsx("span",{className:"absolute inset-y-0 right-4 flex items-center pr-4",children:D.iconEnd}),!o&&f.jsx(ke.Button,{className:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none",onClick:()=>G(o?!1:!B),"data-testid":"arrow-button",children:B?f.jsx(Ji,{className:I("h-5 w-5",q),"aria-hidden":"true"}):f.jsx(Zi,{className:I("h-5 w-5",q),"aria-hidden":"true"})}),!o&&f.jsx(f.Fragment,{children:P?f.jsx(ke.Options,{className:"absolute z-10 mt-1 max-h-60 w-full rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none flex justify-center items-center py-2",children:f.jsx(it,{})}):(C??[]).length>0?f.jsx(ke.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden",style:t,children:C.map((N,M)=>f.jsx(ke.Option,{value:N,className:I(N[y]===D[y]?`${w} text-white`:"text-gray-900",`relative cursor-default select-none p-2 hover:text-white hover:${w}`),"data-testid":`select-${c}-${N[y]}`,onClick:()=>J(N),children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{className:"flex items-center",children:[N.iconStart&&f.jsx("span",{className:"mr-2","aria-hidden":"true",children:N.iconStart}),f.jsx("span",{className:"font-normal hyphens-auto break-words overflow-hidden",children:N[x]})]}),N.iconEnd&&f.jsx("span",{className:"ml-2","aria-hidden":"true",children:N.iconEnd})]})},M))}):f.jsx(ke.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden flex justify-center items-center py-2",children:f.jsx("p",{"data-testid":"empty-options",children:"Sin opciones"})})})]}),s.length>0&&i&&f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${c}`,children:s})]})},Ds=({placeholder:e="",label:n="",htmlFor:t,name:r,handleChange:l,onClick:o=()=>{},value:i,valueSelect:s,isReadOnly:a=!1,isError:c=!1,helperText:p="",autocomplete:h="on",id:b,classNameLabel:m="",classNameContainer:g="",className:v="",onKeyDown:x,options:y,idSelect:w,isMarginLeft:T=!0,classNameSelect:P="w-20",type:k="text"})=>{const{width:A}=jt(),K=Ae({"ring-red-300 focus:ring-red-300 text-red-900":c,"focus:ring-indigo-600 text-gray-500":!c});return f.jsxs(f.Fragment,{children:[f.jsx("style",{children:`
35
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var l="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(l=o(l,r(s)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return t.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var i="";for(var s in l)n.call(l,s)&&l[s]&&(i=o(i,s));return i}function o(l,i){return i?l?l+" "+i:l+i:l}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(nr);var xs=nr.exports;const Ae=Fr(xs),rr=({className:e="text-sm w-full rounded-md",children:n,icon:t=null,edge:r=null,disabled:o=!1,type:l="button",onClick:i,id:s})=>{const a=Ae({"ml-2":r==="start"&&t!==null,"mr-2":r==="end"&&t!==null});return m.jsxs("button",{className:P("flex justify-center items-center bg-white px-3 py-7px font-medium leading-6 text-white shadow-sm ring-1 ring-inset ring-gray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 bg-gray-50",e),type:l,onClick:i,disabled:o,"data-testid":`button-outline-${s}`,id:`button-outline-${s}`,children:[r==="start"&&t!==null&&m.jsx("span",{children:t}),m.jsx("span",{className:P("flex",a),id:s,children:n}),r==="end"&&t!==null&&m.jsx("span",{children:t})]})},or=({children:e,className:n="",icon:t=null,edge:r=null,disabled:o=!1,type:l="button",onClick:i,id:s})=>{const a=Ae({"ml-2":r==="start"&&t!==null,"mr-2":r==="end"&&t!==null});return m.jsxs("button",{className:`${n} flex justify-center items-center`,edge:r,type:l,onClick:i,disabled:o,"data-testid":`button-${s}`,children:[r==="start"&&t!==null&&m.jsx("span",{children:t}),m.jsx("span",{className:a,children:e}),r==="end"&&t!==null&&m.jsx("span",{children:t})]})},ot=({children:e,classNameButton:n="bg-indigo-600 hover:bg-indigo-700 focus-visible:outline-indigo-600 shadow-indigo-500 rounded font-semibold px-3 py-1.5 text-white w-full",classNameText:t="",icon:r=null,edge:o=null,disabled:l=!1,type:i="button",onClick:s,id:a,outline:c="0px 0px 0px 2px #6366F1, 0px 0px 0px 2px #FFF, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",classNameContainer:p=""})=>{const[h,b]=u.useState(!1),f=Ae({"ml-2":o==="start"&&r!==null,"mr-2":o==="end"&&r!==null}),g=()=>{s&&s()};return m.jsx("div",{className:P("rounded-md p-0.5",p!==""&&p),style:{boxShadow:h?c:"0px 0px 0px 0px #6366F1, 0px 0px 0px 0px #FFF, 0px 0px 0px 0px rgba(0, 0, 0, 0.05)",transition:"box-shadow .1s ease-in-out"},"data-testid":"container-button",children:m.jsxs("button",{className:P("flex justify-center items-center text-sm leading-6 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",l&&"text-white bg-gray-300 rounded focus:outline-none cursor-default",l?n.replace(/\bbg-\w+\b/g,""):n),type:i,onClick:g,onFocus:()=>b(!0),onBlur:()=>b(!1),disabled:l,"data-testid":`button-solid-${a}`,children:[o==="start"&&r!==null&&m.jsx("span",{className:"flex",children:r}),m.jsx("span",{className:P(t.length===0&&f,t.length!==0&&t),children:e}),o==="end"&&r!==null&&m.jsx("span",{children:r})]})})},ws=({label:e=null,checked:n=!1,onChange:t,id:r,className:o="",classNameCheckbox:l="h-4 w-4",style:i={},disabled:s=!1})=>{const[a,c]=u.useState(!1);return u.useEffect(()=>{c(n)},[n]),m.jsxs("div",{className:"flex items-center",style:i,"data-testid":`container-check-${r}`,children:[m.jsx("input",{checked:a,id:`${e}-${r}`,value:r,"aria-describedby":"comments-description",type:"checkbox",onChange:t,className:P("cursor-pointer rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",l!==""&&l),"data-testid":`checkbox-${r}`,disabled:s}),e!==null?m.jsx("label",{htmlFor:`${e}-${r}`,className:`ml-2.5 font-normal cursor-pointer ${o}`,id:`label-${r}`,"data-testid":"label",children:e}):null]})};function ys({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Es=E.forwardRef(ys);function Ss({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const Cs=E.forwardRef(Ss);function Ts({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const Os=E.forwardRef(Ts);function js({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Ns=E.forwardRef(js);function ks({title:e,titleId:n,...t},r){return E.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?E.createElement("title",{id:n},e):null,E.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const Fs=E.forwardRef(ks);function lr({children:e,className:n="sm:max-w-sm w-11/12 sm:my-8",classNameContainer:t="",isOpen:r=!1,setIsOpen:o,showIconSuccess:l=!0,showButton:i=!0,style:s={}}){return m.jsx(Re,{show:r,as:u.Fragment,children:m.jsxs(Vn,{as:"div",className:"relative z-50 relative",onClose:o,"data-testid":"modal",children:[m.jsx(Re.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-5",leave:"ease-in duration-200",leaveFrom:"opacity-5",leaveTo:"opacity-0",children:m.jsx("div",{className:"fixed inset-0 bg-opacity-40 bg-gray-900 transition-opacity","data-testid":"window-close",onClick:()=>o(!1)})}),m.jsx("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:m.jsx("div",{className:"flex min-h-full items-center justify-center xs:p-2 p-4 text-center sm:items-center sm:p-0",children:m.jsx(Re.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:m.jsxs(Vn.Panel,{className:P("relative transform rounded-lg bg-white px-4 pb-3 pt-5 text-left transition-all sm:w-full sm:pt-3 sm:px-3",n!==""&&n),style:s,children:[l&&m.jsx("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:m.jsx(Es,{className:"h-6 w-6 text-green-600","aria-hidden":"true"})}),m.jsx("div",{className:P(t!==""&&t),"data-testid":"content",children:e}),i&&m.jsx("div",{className:"mt-5 sm:mt-6",children:m.jsx(ot,{id:"close-modal",onClick:()=>o(!1),children:"Cerrar"})}),m.jsx("button",{className:"opacity-0 absolute"})]})})})})]})})}const Is=({isOpenModalConfirmation:e,setIsOpenModalConfirmation:n,close:t,title:r="¿Estás seguro de abandonar la creación de la acción?",description:o="La información se perderá si no creas la acción",classNameTitle:l="",classNameDescription:i=""})=>{const s=()=>{n(!1),t()};return m.jsxs(lr,{isOpen:e,setIsOpen:()=>n(),showButton:!1,showIconSuccess:!1,children:[m.jsx("p",{className:P("text-center text-sm",l!==""&&l),children:r}),m.jsx("p",{className:P("text-center text-sm",i!==""&&i),children:o}),m.jsxs("div",{className:"flex w-full justify-center mt-5",children:[m.jsx(rr,{className:"rounded-md bg-white text-gray-500 text-sm shadow-sm ring-1 ring-inset ring-gray-300 bg-gray-50 w-24 h-9 mr-6",onClick:()=>n(),id:"cancel",children:"Cancelar"}),m.jsx(ot,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 focus-visible:outline-secondary-2 shadow-secondary-2 rounded py-1.5 text-white w-full px-5",outline:"0px 0px 0px 2px #3758F9, 0px 0px 0px 2px #243BBD, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",onClick:s,id:"confirmation",children:"Aceptar"})]})]})},Ps=({className:e="",style:n={}})=>m.jsx("div",{className:P("w-px",e!==""&&e),style:n}),$s=({onClick:e,id:n="",className:t=""})=>m.jsxs("div",{className:P("flex items-center text-default-5",t!==""&&t),"data-testid":n,children:[m.jsx(is,{className:"w-3 h-3 3xs:w-4 3xs:h-4 stroke-current cursor-pointer","data-testid":"chevron-left-icon",onClick:e}),m.jsx("span",{onClick:e,className:"text-sm cursor-pointer","data-testid":"go-back",children:"Volver"})]}),rn=({placeholder:e="",label:n="",htmlFor:t,type:r="text",name:o,handleChange:l,onClick:i=()=>{},value:s,isReadOnly:a=!1,isError:c=!1,helperText:p="",autocomplete:h="off",id:b,classNameLabel:f="",classNameContainerInput:g="",classNameContainer:v="",className:x="",icon:y=null,onKeyDown:w,onFocus:T,min:k,max:F})=>{const[A,K]=u.useState(!1),Y=Ae({"ring-red-300 focus:ring-red-300 text-red-900":c||A,"focus:ring-indigo-600 text-gray-500":!c&&!A}),D=_=>{if(l&&l(_),r!=="email")return;const{value:B}=_.target,G=cn(B);K(!G)};return m.jsxs("div",{"data-testid":`container-input-${b}`,className:v,children:[n!==""&&m.jsx("label",{htmlFor:t,className:P("block text-sm font-medium leading-6",f!==""?f:"text-gray-700"),"data-testid":`label-${b}`,children:n}),m.jsxs("div",{className:P("relative mt-1 rounded-md",g!==""&&g),children:[m.jsx("input",{id:b,name:o,type:r,autoComplete:h,placeholder:e,onChange:D,onClick:i,onKeyDown:w,onFocus:T,value:s,readOnly:a,"data-testid":`input-${b}`,min:k,className:P("block w-full rounded-md border-0 py-1.5 shadow-sm placeholder-gray-300 ring-1 ring-gray-300 ring-inset focus:ring-1 focus:ring-inset text-sm sm:leading-6",Y,x!==""&&x)}),y!==null&&m.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:y}),c&&y===null&&m.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:m.jsx(er,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]}),p.length===0||!c?null:m.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${b}`,children:p})]})};function lt({className:e="w-6 h-6",color:n="#3730a3"}){return m.jsxs("svg",{className:P("fill-current animate-spin",e),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:n,strokeWidth:"4",fill:"none"}),m.jsx("path",{fill:n,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function Ms(){return m.jsxs("div",{className:"fixed top-0 left-0 right-0 bottom-0 w-full h-screen overflow-hidden bg-stone-600 opacity-75 flex flex-col items-center justify-center","data-testid":"spinner",style:{zIndex:60},children:[m.jsx("div",{className:"inline-block h-12 w-12 animate-[spinner-grow_0.75s_linear_infinite] rounded-full bg-current align-[-0.125em] opacity-0 motion-reduce:animate-[spinner-grow_1.5s_linear_infinite]",role:"status"}),m.jsx(lt,{className:"w-8 h-8 animate-spin"})]})}const ir=({className:e="",classNameContainer:n="",children:t,message:r="",style:o={}})=>{const[l,i]=u.useState(!1),[s,a]=u.useState({top:0,left:0}),c=u.useRef(null),p=()=>{if(r==="")return;const f=c.current.getBoundingClientRect();a({top:f.bottom+window.scrollY,left:f.left+window.scrollX}),i(!0)},h=()=>{i(!1)},b=m.jsx(Re,{as:u.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",show:l,children:m.jsx("div",{className:P("absolute z-40 px-4 mt-0 sm:px-0",e!==""&&e),style:{top:s.top,left:s.left,position:"absolute"},children:m.jsx("div",{className:"bg-white p-2 text-center rounded-lg shadow-lg ring-1 ring-black ring-opacity-5",onMouseEnter:p,onMouseLeave:h,"data-testid":"message",children:r})})});return m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:c,className:P("inline-block",n!==""&&n),onMouseEnter:p,onMouseLeave:h,"data-testid":"container-tooltip",style:o,children:t}),typeof window<"u"&&Ct.createPortal(b,document.body)]})},sr=({height:e="36px",style:n={},styleMenu:t={},label:r="",onChange:o,isReadOnly:l=!1,isError:i=!1,helperText:s="",name:a,id:c,className:p="",classNameLabel:h="",classNameInput:b="",options:f,value:g=-1,defaultValue:v={value:-1,label:"",iconStart:null,iconEnd:null},defaultLabel:x="label",defaultId:y="value",bgOptionSelect:w="bg-indigo-600",isSearch:T=!1,loading:k=!1,isSingleOptionAndFirstLoad:F=!0,isTest:A=!1})=>{const[K,Y]=u.useState(""),[D,_]=u.useState(v),[B,G]=u.useState(!1),[le,ae]=u.useState(!0);u.useEffect(()=>{if((f==null?void 0:f.length)!==1||!le)return;ae(!1);const[N]=f,M=N[y],W=N[x];_({value:M,label:W}),F&&o({target:{value:N,checked:!1,name:a,type:void 0,id:N[y]}})},[f,y,x,o,a,le,F]),u.useEffect(()=>{if(g===-1||(f==null?void 0:f.length)===0)return;const N=f==null?void 0:f.find(M=>M[y]===g);N&&_(N)},[g,f,y]),u.useEffect(()=>{g==="clear"&&(D[y]!==v[y]||D[x]!==v[x]||A)&&_(v)},[v,A,D,g,y,x]);const C=K===""?f:f.filter(N=>N[x].normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().includes(K.toLowerCase())),re=Ae({"ring-red-300 focus:ring-red-300 text-red-900":i&&!l,"text-gray-500":!i,"focus:ring-indigo-600":!i&&!l}),q=Ae({"text-red-400":i&&!l,"text-gray-400":!i}),J=N=>{_(N),o({target:{value:N,checked:!1,name:a,type:void 0,id:N[y]}})};return m.jsxs(ke,{as:"div",value:D,children:[m.jsx(ke.Label,{className:P("block text-sm font-medium leading-6 text-gray-500 mb-0.5",h!==""&&h),children:r}),m.jsxs("div",{className:P("relative",p!==""&&p),children:[m.jsx(ir,{className:"text-sm",classNameContainer:"w-full",message:D[x],children:m.jsxs(ke.Button,{className:"w-full","data-testid":`listbox-button-${c}`,children:[D.iconStart&&m.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2",children:D.iconStart}),m.jsx(ke.Input,{className:P("w-full rounded-md border-0 bg-white py-1.5 pr-10 text-gray-900 shadow-sm ring-1 ring-gray-300 sm:text-sm sm:leading-6 truncate block",!i&&!l&&"ring-inset focus:ring-inset focus:ring-2 focus:ring-indigo-600",l&&"focus:ring-gray-300",re,b!==""&&b),onChange:N=>Y(N.target.value.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),displayValue:N=>{var M;return(M=N[x])==null?void 0:M.trim()},autoComplete:"off",readOnly:!T||l,style:{height:e,...n},"data-testid":"input-search",onClick:()=>G(l?!1:!B),onBlur:()=>G(!1)})]})}),D.iconEnd&&m.jsx("span",{className:"absolute inset-y-0 right-4 flex items-center pr-4",children:D.iconEnd}),!l&&m.jsx(ke.Button,{className:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none",onClick:()=>G(l?!1:!B),"data-testid":"arrow-button",children:B?m.jsx(Ki,{className:P("h-5 w-5",q),"aria-hidden":"true"}):m.jsx(Gi,{className:P("h-5 w-5",q),"aria-hidden":"true"})}),!l&&m.jsx(m.Fragment,{children:k?m.jsx(ke.Options,{className:"absolute z-10 mt-1 max-h-60 w-full rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none flex justify-center items-center py-2",children:m.jsx(lt,{})}):(C??[]).length>0?m.jsx(ke.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden",style:t,children:C.map((N,M)=>m.jsx(ke.Option,{value:N,className:P(N[y]===D[y]?`${w} text-white`:"text-gray-900",`relative cursor-default select-none p-2 hover:text-white hover:${w}`),"data-testid":`select-${c}-${N[y]}`,onClick:()=>J(N),children:m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsxs("div",{className:"flex items-center",children:[N.iconStart&&m.jsx("span",{className:"mr-2","aria-hidden":"true",children:N.iconStart}),m.jsx("span",{className:"font-normal hyphens-auto break-words overflow-hidden",children:N[x]})]}),N.iconEnd&&m.jsx("span",{className:"ml-2","aria-hidden":"true",children:N.iconEnd})]})},M))}):m.jsx(ke.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden flex justify-center items-center py-2",children:m.jsx("p",{"data-testid":"empty-options",children:"Sin opciones"})})})]}),s.length>0&&i&&m.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${c}`,children:s})]})},As=({placeholder:e="",label:n="",htmlFor:t,name:r,handleChange:o,onClick:l=()=>{},value:i,valueSelect:s,isReadOnly:a=!1,isError:c=!1,helperText:p="",autocomplete:h="on",id:b,classNameLabel:f="",classNameContainer:g="",className:v="",onKeyDown:x,options:y,idSelect:w,isMarginLeft:T=!0,classNameSelect:k="w-20",type:F="text"})=>{const{width:A}=Ot(),K=Ae({"ring-red-300 focus:ring-red-300 text-red-900":c,"focus:ring-indigo-600 text-gray-500":!c});return m.jsxs(m.Fragment,{children:[m.jsx("style",{children:`
36
36
  input[type="number"]::-webkit-inner-spin-button,
37
37
  input[type="number"]::-webkit-outer-spin-button {
38
38
  -webkit-appearance: none;
@@ -41,7 +41,7 @@ Check the top-level render call using <`+O+">.")}return S}}function xr(d,S){{if(
41
41
  input[type="number"] {
42
42
  -moz-appearance: textfield;
43
43
  }
44
- `}),f.jsxs("div",{"data-testid":`container-input-${b}`,className:g,children:[n!==""&&f.jsx("label",{htmlFor:t,className:I("block text-sm font-medium leading-6",m!==""?m:"text-gray-700"),"data-testid":`label-${b}`,children:n}),f.jsxs("div",{className:"relative mt-1 rounded-md shadow-sm",children:[f.jsx("div",{className:"absolute inset-y-0 -top-0.5 flex items-center",style:{left:"2px"},children:f.jsx(ar,{name:w,onChange:Y=>l(Y),id:w,options:y,value:s,isReadOnly:a,className:P,height:A<=640?"28px":"32px",classNameInput:I(T&&"ml-3.5"),style:{paddingRight:0,boxShadow:"none"},isDisabledFocus:!0})}),f.jsx("input",{id:b,name:r,type:k,autoComplete:h,placeholder:e,readOnly:a,"data-testid":`input-${b}`,onClick:o,onKeyDown:x,onChange:Y=>l(Y),value:i,className:I("block w-full rounded-md border-0 py-1.5 pl-24 shadow-sm placeholder-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-1 focus:ring-inset text-sm sm:leading-6",K,v!==""&&v)}),c&&f.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:f.jsx(tr,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]}),p.length===0||!c?null:f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${b}`,children:p})]})]})},_s=({setValuesDefault:e,status:n=!1,isReadOnly:t=!1,handleClick:r,text:l="",updateStatus:o=!1,id:i="",isHiddenText:s=!1,setForm:a,handleChange:c,textActive:p="Activo",textInactive:h="Inactivo"})=>{const[b,m]=u.useState(!1);u.useEffect(()=>{m(n),e("status",n),a(v=>({...v,status:n}))},[n,e,o,a]);const g=()=>{m(!b),e("status",!b),a(v=>({...v,status:!b})),c({target:{checked:!b,value:!b,name:"status",type:"",id:""}}),r&&r()};return f.jsxs("div",{className:"flex",children:[f.jsxs(Oi,{checked:b,onChange:g,className:I("group relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-success-1 focus:ring-offset-2 mt-1",b?"bg-success-1":"bg-gray-200"),"data-testid":`switch-${i}`,disabled:t,children:[f.jsx("span",{className:"sr-only",children:"Use setting"}),f.jsx("span",{"aria-hidden":"true",className:I("pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",b?"translate-x-full":"translate-x-0")})]}),l!==""?f.jsx("p",{className:I("text-sm font-medium text-gray-500 ml-2 self-end",s&&"hidden"),children:l}):f.jsx("p",{className:I("text-sm font-medium text-gray-500 ml-2 self-end",s&&"hidden"),"data-testid":"text-switch",children:b?p:h})]})};function Ls({label:e="",id:n,htmlFor:t="",classNameLabel:r="",className:l="",rows:o=4,name:i,placeholder:s="",helperText:a="",isReadOnly:c=!1,isError:p=!1,onChange:h,value:b,idInput:m,nameInput:g,placeholderInput:v="",isReadOnlyInput:x=!1,valueInput:y,infoTop:w=null,infoBottom:T=null,classNameInfoTop:P="h-4",classNameInfoBottom:k="h-2",isInputTitle:A=!1,hiddenBorder:K=!1}){const Y=Ae({"ring-red-300 focus:ring-red-300 text-red-900":p,"focus:ring-indigo-600 text-gray-700":!p});return f.jsxs(f.Fragment,{children:[e!==""&&f.jsx("label",{htmlFor:t,className:I("leading-6 block text-sm",r!==""&&r),children:e}),f.jsxs("div",{className:"relative overflow-x-hidden",children:[w!==null&&f.jsx("div",{className:"absolute top-2 left-3 w-full",children:w}),f.jsxs("div",{className:I("overflow-hidden rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-indigo-600 placeholder:text-gray-400 bg-white",Y),children:[w!==null&&f.jsx("div",{className:"py-2","aria-hidden":"true",children:f.jsx("div",{className:"py-px",children:f.jsx("div",{className:P})})}),A&&f.jsx("textarea",{name:g,id:m,className:"block w-full resize-none border-0 bg-transparent py-1.5 text-gray-400 placeholder:text-gray-400 focus:ring-0 text-sm",placeholder:v,value:y,onChange:h,rows:2,readOnly:x}),f.jsx("textarea",{placeholder:s,rows:o,name:i,id:n,className:I(A||K?"block w-full resize-none border-0 bg-transparent py-1.5 placeholder:text-gray-400 focus:ring-0":"block w-full rounded-md border-0 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset sm:leading-6",Y,l!==""&&l),readOnly:c,onChange:h,value:b,"data-testid":`textarea-${n}`}),T!==null&&f.jsx("div",{className:"py-2","aria-hidden":"true",children:f.jsx("div",{className:"py-px",children:f.jsx("div",{className:k})})})]}),T!==null&&f.jsx("div",{className:"absolute bottom-2 left-3 w-full",children:T})]}),a.length>0&&p&&f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${n}`,children:a})]})}const Rs=({children:e,data:n,className:t="",classNameTooltip:r="w-full",classNameMenu:l="",classNameMenuItems:o="",classNameContainerSearch:i="px-5",isSelectMultiple:s=!1,optionsSelect:a,propObject:c="name",propId:p="id",textNewItem:h="",defaultId:b=null,loading:m=!1,search:g=null,searchPlaceHolder:v="Buscar...",valueSearch:x=void 0,idsOptionSelect:y=null,isComponent:w,isSticky:T=!1,hiddenMenu:P=!1,id:k,onClick:A=()=>{},isRelative:K=!0,isMaxWidth:Y=!1,isTag:D=!1,isClear:_=!1,clear:B=null,applyButton:G=null,applyButtonText:le="Aplicar",tagsParent:ae=[],isReadOnly:C,isDisabledApplyButton:re=!0,isOpenMenu:q=void 0})=>{const[J,N]=u.useState(new Set),[M,W]=u.useState(new Map);u.useEffect(()=>{y!==null&&N(new Set(new Set(y)))},[y]),u.useEffect(()=>{if(ae.length===0)return;const $=new Map;ae.forEach(H=>$.set(H.id,H)),W($)},[ae]),u.useEffect(()=>{_&&(N(new Set),W(new Map),B&&B())},[B,_]);const Q=$=>{let H=new Map(M),F=new Set(J),U=null;if(b!==null&&($[p]===b&&(U=crypto.randomUUID()),U!==null&&($[p]=U),U!==null&&($[c]=$[c].replace(h,"").trim())),F.has($[p])?F.delete($[p]):F.add($[p]),H.has($[p])?H.delete($[p]):H.set($[p],$),!s){const z=Array.from(F),he=Array.from(H);z.shift(),he.shift(),F=F.size===2?new Set(z):F,H=H.size===2?new Map(he):H}a($,Array.from(F),U!==null),N(F),W(H)},pe=$=>{A($===!0?-1:k)},ce=$=>{const H=new Set(J),F=new Map(M);H.delete($[p]),F.delete($[p]),a($,Array.from(H)),N(H),W(F)},Te=()=>{if(J.size===0)return;const $=new Set(J),H=new Map(M);$.clear(),H.clear(),a(null,Array.from($)),N($),W(H)};function ye($){if(typeof $!="string")return $;const H=$.toLowerCase();return H.charAt(0).toUpperCase()+H.slice(1)}return f.jsxs(gt,{as:"div",className:I("inline-block text-left",K&&"relative",l!==""&&l),onClick:()=>pe(!0),"data-testid":`menu-${k}`,id:k,children:[f.jsx("style",{children:`
44
+ `}),m.jsxs("div",{"data-testid":`container-input-${b}`,className:g,children:[n!==""&&m.jsx("label",{htmlFor:t,className:P("block text-sm font-medium leading-6",f!==""?f:"text-gray-700"),"data-testid":`label-${b}`,children:n}),m.jsxs("div",{className:"relative mt-1 rounded-md shadow-sm",children:[m.jsx("div",{className:"absolute inset-y-0 -top-0.5 flex items-center",style:{left:"2px"},children:m.jsx(sr,{name:w,onChange:Y=>o(Y),id:w,options:y,value:s,isReadOnly:a,className:k,height:A<=640?"28px":"32px",classNameInput:P(T&&"ml-3.5"),style:{paddingRight:0,boxShadow:"none"},isDisabledFocus:!0})}),m.jsx("input",{id:b,name:r,type:F,autoComplete:h,placeholder:e,readOnly:a,"data-testid":`input-${b}`,onClick:l,onKeyDown:x,onChange:Y=>o(Y),value:i,className:P("block w-full rounded-md border-0 py-1.5 pl-24 shadow-sm placeholder-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-1 focus:ring-inset text-sm sm:leading-6",K,v!==""&&v)}),c&&m.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:m.jsx(er,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]}),p.length===0||!c?null:m.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${b}`,children:p})]})]})},Ds=({setValuesDefault:e,status:n=!1,isReadOnly:t=!1,handleClick:r,text:o="",updateStatus:l=!1,id:i="",isHiddenText:s=!1,setForm:a,handleChange:c,textActive:p="Activo",textInactive:h="Inactivo"})=>{const[b,f]=u.useState(!1);u.useEffect(()=>{f(n),e("status",n),a(v=>({...v,status:n}))},[n,e,l,a]);const g=()=>{f(!b),e("status",!b),a(v=>({...v,status:!b})),c({target:{checked:!b,value:!b,name:"status",type:"",id:""}}),r&&r()};return m.jsxs("div",{className:"flex",children:[m.jsxs(Ti,{checked:b,onChange:g,className:P("group relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-success-1 focus:ring-offset-2 mt-1",b?"bg-success-1":"bg-gray-200"),"data-testid":`switch-${i}`,disabled:t,children:[m.jsx("span",{className:"sr-only",children:"Use setting"}),m.jsx("span",{"aria-hidden":"true",className:P("pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",b?"translate-x-full":"translate-x-0")})]}),o!==""?m.jsx("p",{className:P("text-sm font-medium text-gray-500 ml-2 self-end",s&&"hidden"),children:o}):m.jsx("p",{className:P("text-sm font-medium text-gray-500 ml-2 self-end",s&&"hidden"),"data-testid":"text-switch",children:b?p:h})]})};function _s({label:e="",id:n,htmlFor:t="",classNameLabel:r="",className:o="",rows:l=4,name:i,placeholder:s="",helperText:a="",isReadOnly:c=!1,isError:p=!1,onChange:h,value:b,idInput:f,nameInput:g,placeholderInput:v="",isReadOnlyInput:x=!1,valueInput:y,infoTop:w=null,infoBottom:T=null,classNameInfoTop:k="h-4",classNameInfoBottom:F="h-2",isInputTitle:A=!1,hiddenBorder:K=!1}){const Y=Ae({"ring-red-300 focus:ring-red-300 text-red-900":p,"focus:ring-indigo-600 text-gray-700":!p});return m.jsxs(m.Fragment,{children:[e!==""&&m.jsx("label",{htmlFor:t,className:P("leading-6 block text-sm",r!==""&&r),children:e}),m.jsxs("div",{className:"relative overflow-x-hidden",children:[w!==null&&m.jsx("div",{className:"absolute top-2 left-3 w-full",children:w}),m.jsxs("div",{className:P("overflow-hidden rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-indigo-600 placeholder:text-gray-400 bg-white",Y),children:[w!==null&&m.jsx("div",{className:"py-2","aria-hidden":"true",children:m.jsx("div",{className:"py-px",children:m.jsx("div",{className:k})})}),A&&m.jsx("textarea",{name:g,id:f,className:"block w-full resize-none border-0 bg-transparent py-1.5 text-gray-400 placeholder:text-gray-400 focus:ring-0 text-sm",placeholder:v,value:y,onChange:h,rows:2,readOnly:x}),m.jsx("textarea",{placeholder:s,rows:l,name:i,id:n,className:P(A||K?"block w-full resize-none border-0 bg-transparent py-1.5 placeholder:text-gray-400 focus:ring-0":"block w-full rounded-md border-0 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset sm:leading-6",Y,o!==""&&o),readOnly:c,onChange:h,value:b,"data-testid":`textarea-${n}`}),T!==null&&m.jsx("div",{className:"py-2","aria-hidden":"true",children:m.jsx("div",{className:"py-px",children:m.jsx("div",{className:F})})})]}),T!==null&&m.jsx("div",{className:"absolute bottom-2 left-3 w-full",children:T})]}),a.length>0&&p&&m.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${n}`,children:a})]})}const Ls=({children:e,data:n,className:t="",classNameTooltip:r="w-full",classNameMenu:o="",classNameMenuItems:l="",classNameContainerSearch:i="px-5",isSelectMultiple:s=!1,optionsSelect:a,propObject:c="name",propId:p="id",textNewItem:h="",defaultId:b=null,loading:f=!1,search:g=null,searchPlaceHolder:v="Buscar...",valueSearch:x=void 0,idsOptionSelect:y=null,isComponent:w,isSticky:T=!1,hiddenMenu:k=!1,id:F,onClick:A=()=>{},isRelative:K=!0,isMaxWidth:Y=!1,isTag:D=!1,isClear:_=!1,clear:B=null,applyButton:G=null,applyButtonText:le="Aplicar",tagsParent:ae=[],isReadOnly:C,isDisabledApplyButton:re=!0,isOpenMenu:q=void 0})=>{const[J,N]=u.useState(new Set),[M,W]=u.useState(new Map);u.useEffect(()=>{y!==null&&N(new Set(new Set(y)))},[y]),u.useEffect(()=>{if(ae.length===0)return;const $=new Map;ae.forEach(H=>$.set(H.id,H)),W($)},[ae]),u.useEffect(()=>{_&&(N(new Set),W(new Map),B&&B())},[B,_]);const Q=$=>{let H=new Map(M),I=new Set(J),U=null;if(b!==null&&($[p]===b&&(U=crypto.randomUUID()),U!==null&&($[p]=U),U!==null&&($[c]=$[c].replace(h,"").trim())),I.has($[p])?I.delete($[p]):I.add($[p]),H.has($[p])?H.delete($[p]):H.set($[p],$),!s){const z=Array.from(I),he=Array.from(H);z.shift(),he.shift(),I=I.size===2?new Set(z):I,H=H.size===2?new Map(he):H}a($,Array.from(I),U!==null),N(I),W(H)},pe=$=>{A($===!0?-1:F)},ce=$=>{const H=new Set(J),I=new Map(M);H.delete($[p]),I.delete($[p]),a($,Array.from(H)),N(H),W(I)},Te=()=>{if(J.size===0)return;const $=new Set(J),H=new Map(M);$.clear(),H.clear(),a(null,Array.from($)),N($),W(H)};function ye($){if(typeof $!="string")return $;const H=$.toLowerCase();return H.charAt(0).toUpperCase()+H.slice(1)}return m.jsxs(vt,{as:"div",className:P("inline-block text-left",K&&"relative",o!==""&&o),onClick:()=>pe(!0),"data-testid":`menu-${F}`,id:F,children:[m.jsx("style",{children:`
45
45
  .blue {
46
46
  background-color: #3758F9;
47
47
  }
@@ -58,4 +58,4 @@ Check the top-level render call using <`+O+">.")}return S}}function xr(d,S){{if(
58
58
  width: 414px;
59
59
  }
60
60
  }
61
- `}),f.jsx(gt.Button,{as:"div",onClick:()=>pe(P),"data-testid":`menu-button-${k}`,children:e}),f.jsx("div",{className:I("absolute right-0 z-20",r,P&&"hidden",m&&"w-full"),children:f.jsx(Be,{as:u.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",show:q,children:f.jsx(gt.Items,{className:I("mt-1 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",m?"w-full":o===""&&"w-max",o!==""&&o),children:m?f.jsx("div",{className:"flex justify-center py-4",children:f.jsx(it,{})}):f.jsxs("div",{className:I(!w&&"pb-1",t!==""&&t,Y&&"w-custom"),"data-testid":"dropdown-menu",children:[f.jsxs("div",{className:"sticky top-0 bg-white w-full",children:[g!==null&&f.jsx("div",{className:I("py-2 w-full",i),children:f.jsx(on,{htmlFor:"search",id:`dropdown-search-${k}`,name:"search",type:"text",placeholder:v,handleChange:$=>g($,k),icon:v!==""&&f.jsx(us,{className:"w-4 h-4 text-indigo-300"}),className:"pl-5 pr-4 h-8",classNameContainerInput:"w-full",value:x,onKeyDown:$=>$.key===" "&&$.stopPropagation(),autocomplete:"off"})}),G!==null&&f.jsxs("div",{className:I("pt-1.5 justify-end flex items-center",i),children:[f.jsx(lt,{classNameButton:I("bg-gray-400 hover:bg-gray-400 font-medium px-2 py-1.5 rounded-md",J.size>0?"opacity-1 cursor-pointer":"opacity-0 cursor-default"),outline:"",classNameText:"text-xs text-white text-center",id:"delete",onClick:Te,children:"Descartar"}),f.jsx(lt,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 font-medium px-2 py-1.5 rounded-md",outline:J.size===0&&re?"":"0px 0px 0px 2px #3758F9, 0px 0px 0px 2px #243BBD, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",classNameText:"text-xs text-white text-center",id:"apply",disabled:J.size===0&&re,onClick:()=>G({id:k,items:Array.from(M.values())}),children:le})]})]}),D&&!C&&f.jsx("div",{className:"flex flex-wrap ml-7 pt-1",children:Array.from(M).map(($,H)=>f.jsx("div",{className:"mr-1",children:f.jsxs("span",{className:"inline-flex items-center gap-x-0.5 rounded-md bg-gray-100 px-2 py-1 text-xs font-medium text-gray-600 mb-1",children:[$[1][c],f.jsx("button",{type:"button",className:"p-0.5 rounded-sm bg-gray-100 hover:bg-gray-300",onClick:()=>ce($[1]),"data-testid":`tag-${$[0]}`,children:f.jsx(gs,{className:"h-2.5 w-2.5 stroke-gray-700/50 group-hover:stroke-gray-700/75"})})]})},$))}),f.jsx("div",{className:"divide-y divide-gray-100",children:(C?[]:n).map(($,H)=>f.jsx("div",{className:I(!w&&"py-1",T&&H===0&&"sticky top-0"),children:w?f.jsx("div",{onClick:F=>{F.preventDefault(),a()},"data-testid":`item-component-${H}`,children:$}):f.jsx(gt.Item,{children:f.jsx("span",{className:I(J.has($[p])&&"blue text-white",!J.has($[p])&&"text-gray-700 hover:bg-gray-100 hover:text-gray-900","block px-4 py-2 text-13 lg:text-sm cursor-pointer font-normal"),"data-testid":`item-${H}`,onClick:F=>{F.preventDefault(),Q($)},children:ye($[c])})})},H))})]})})})})]})},ur=50,Bs=({total:e,handleNext:n,handlePrev:t,handleSelectPage:r,page:l=null})=>{const[o,i]=u.useState(1),[s,a]=u.useState([]),[c,p]=u.useState([]),h=Math.ceil(e/ur);u.useEffect(()=>{const v=[];for(let x=1;x<=h;x++)v.push(x);p(v)},[h]),u.useEffect(()=>{let v=[];const x="...",y="... ",w=" ...";if(c.length<6)v=c;else if(o>=1&&o<=3)v=[1,2,3,4,x,c.length];else if(o===4)v=[...c.slice(0,5),x,c.length];else if(o>4&&o<c.length-2){const T=c.slice(o-2,o),P=c.slice(o,o+1);v=[1,y,...T,...P,w,c.length]}else if(o>c.length-3){const T=c.slice(c.length-4);v=[1,y,...T]}a(v)},[o,c]),u.useEffect(()=>{l!==null&&l!==o&&i(l)},[l,o]);const b=v=>{i(v),r(v)},m=()=>{i(o===1?o:o-1),o>1&&t(o-1)},g=()=>{o===c.length?i(o):i(o+1),o<c.length&&n(o+1)};return f.jsxs("nav",{className:"flex items-center justify-between border-t border-gray-200 px-4 sm:px-0",children:[f.jsx("div",{className:"-mt-px flex w-0 flex-1",children:f.jsxs("span",{className:"inline-flex items-center border-t-2 border-transparent pr-1 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer",onClick:m,"data-testid":"prev",children:[f.jsx(Ui,{className:"mr-3 h-5 w-5 text-gray-400","aria-hidden":"true"}),"Anterior"]})}),f.jsx("div",{className:"hidden md:-mt-px md:flex",children:s.map((v,x)=>f.jsx(lr,{className:I("inline-flex items-center border-t-2 px-4 pt-4 text-sm font-medium",o===v?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700"),"aria-current":"page",onClick:()=>v!=="..."&&v!==" ..."&&v!=="... "&&b(v),id:`page-${x+1}`,children:v},x))}),f.jsx("div",{className:"-mt-px flex w-0 flex-1 justify-end",children:f.jsxs("span",{className:"inline-flex items-center border-t-2 border-transparent pl-1 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer",onClick:g,"data-testid":"next",children:["Siguiente",f.jsx(Vi,{className:"ml-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]})})]})},zs=({setForm:e,setValuesDefault:n,className:t="",classNameContainer:r="",classNameContainerImg:l="",src:o=null,alt:i=null,width:s,height:a})=>{const c=p=>{const{files:h}=p.target,[b]=h,m=new FileReader;m.readAsDataURL(b),m.onload=function(){e(g=>({...g,photo:m.result})),n("photo",m.result)}};return f.jsxs("div",{className:I("col-span-full",r!==""&&r),children:[f.jsx("label",{htmlFor:"cover-photo",className:"block text-sm font-medium leading-6 text-gray-500",children:"Logo (Opcional)"}),f.jsxs("div",{className:I("mt-2 flex justify-center rounded-lg border-2 border-dotted border-gray-300 cursor-pointer relative",o===null&&"px-9 pt-6 pb-2.5",l!==""&&l),children:[o?f.jsx("img",{src:o,alt:i,width:s,height:a,className:I(t!==""&&t),loading:"lazy",decoding:"async",style:{filter:"blur(5px)",transition:"filter 0.3s",objectFit:"contain",height:a},onLoad:p=>p.currentTarget.style.filter="none","data-testid":"img"}):f.jsxs("div",{className:"text-center",children:[f.jsx(ms,{"aria-hidden":"true",className:"mx-auto h-12 w-12 text-gray-300"}),f.jsxs("div",{className:"mt-4 flex text-sm leading-6 text-gray-600",children:[f.jsx("label",{htmlFor:"file-upload",className:"relative cursor-pointer rounded-md bg-white font-semibold text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-600 focus-within:ring-offset-2 hover:text-indigo-500",children:f.jsx("span",{children:"Upload a file"})}),f.jsx("p",{className:"pl-1",children:"or drag and drop"})]}),f.jsx("p",{className:"text-xs leading-5 text-gray-600",children:"PNG, JPG, GIF up to 10MB"})]}),f.jsx("input",{id:"file-upload",name:"file-upload",type:"file",className:"absolute w-full h-full opacity-0 cursor-pointer",onChange:c})]})]})},Ws=({openDefault:e=!1,setForm:n,setValuesDefault:t,title:r,type:l,data:o,setData:i,Component:s,id:a,defaultData:c,dispatch:p,isAdd:h=!0,search:b=null,isPadding:m=!0,isReadOnly:g=!1,isEdit:v=!1,deleteItem:x=null,validateAdd:y=null,loading:w=!1,internalEdit:T=!0,isDataEmpty:P=!0,typeProp:k="value",setAdd:A=null,hasNoRecords:K=!0})=>{const[Y,D]=u.useState(!1),[_,B]=u.useState(!1),[,G]=u.useState(!1),[le,ae]=u.useState("");u.useEffect(()=>{D(e),G(g)},[e,g]);const C=({e:M,index:W})=>{const Q=Ot(o),{name:pe,value:ce}=M.target;!(y===null?!1:y({value:ce,copyData:Q,index:W}))&&(Q[W][pe]=ce),i(Q),t(a,Q),n(ye=>({...ye,[a]:Q}))},re=()=>{if(o.some(W=>Object.values(W).some(ce=>ce[k]===-1))||o.length===0)return p({type:"ALERT",payload:{title:"",message:"Todos los campos son requeridos",typeAlert:"warning",active:!0}});n(W=>({...W,data:o})),t(a,o),i([...o,c]),A&&A([...o,c])},q=({index:M,item:W})=>{if(o.length===1&&!v)return;const Q=Ot(o);Q.splice(M,1),n(pe=>({...pe,data:Q})),t(a,Q),i(Q),x&&x({index:M,item:W,data:Q}),M===o.length-1&&v&&Q.length===0&&(n(pe=>({...pe,data:Q})),t(a,Q),i([...Q,c]))},J=()=>{B(!_),G(!1)},N=()=>{if(o.length>1)return;if(o.length===0)return!0;const[M]=o,{rol:W,privileges:Q,limitedPrivileges:pe,...ce}=M;return Object.values(ce).every(ye=>Object.values(ye)[0]===-1)};return f.jsxs("div",{className:"divide-y divide-gray-200 rounded-lg bg-white shadow mt-7",children:[f.jsxs("div",{className:"px-4 py-3.5 sm:px-6 flex justify-between items-center cursor-pointer",onClick:()=>D(!Y),"data-testid":`open-accordion-${a}`,children:[f.jsx("p",{className:"text-gray-500 uppercase text-xs font-bold",children:r}),f.jsxs("div",{className:"flex items-center",children:[b&&f.jsx(on,{htmlFor:"search",id:"search",name:"search",type:"text",autoComplete:"search",placeholder:"Buscar...",handleChange:M=>{b(M),ae(M.target.value)},icon:f.jsx(ks,{className:"w-6 h-6 text-indigo-300"}),className:"h-9",classNameContainerInput:"w-52 2xs:w-64 max-w-64 mr-8 hidden sm:block",value:le,onClick:M=>M.stopPropagation(),onFocus:()=>D(!0)}),Y?f.jsx(js,{className:"w-5 h-5 text-default-5"}):f.jsx(Ts,{className:"w-5 h-5 text-default-5"})]})]}),f.jsx(Be,{as:u.Fragment,show:Y,enter:"transition duration-[400ms]",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"duration-200 transition ease-in-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:f.jsxs("div",{className:I("sm:mt-2.5 py-3.5 relative",m&&"px-4 sm:p-6"),children:[T&&!_&&f.jsx(ds,{className:"w-5 h-5 text-gray-400 cursor-pointer absolute right-4",onClick:J,"data-testid":`edit-role-${a}`}),w&&f.jsx("div",{className:"flex justify-center mt-5",children:f.jsx(it,{})}),P&&N()&&K&&!w&&(T?!_:!v)&&f.jsx("p",{className:"text-gray-800 text-center","data-testid":"records-empty",children:"No hay registros para mostrar"}),!w&&o.map((M,W)=>f.jsxs("div",{className:I("flex flex-col 3xs:flex-row mb-4",m&&"ml-0 3xs:ml-3"),children:[f.jsx(s,{item:M,index:W,handleChange:C,isEdit:T?_:v}),h&&(T?_:v)&&f.jsx("div",{style:{backgroundColor:"#B0B8BF",width:"25px",height:"25px"},className:I("rounded-full flex justify-center items-center mt-4 3xs:mt-7 ml-2 3xs:ml-5 self-start 3xs:self-center",o.length===1&&!v&&"opacity-0"),children:f.jsx(Is,{className:I("w-6 h-4",(o.length>1||v)&&"cursor-pointer"),style:{color:"#637381"},strokeWidth:2.5,onClick:()=>q({index:W,item:M}),"data-testid":`delete-item-${W}-${a}`})})]},W)),h&&(T?_:v)&&f.jsx("p",{className:"text-secondary-2 text-sm font-medium ml-3 cursor-pointer",onClick:re,"data-testid":`add-item-${a}`,style:{width:"fit-content"},children:`+ Añadir ${l}`})]})})]})};R.Accordion=Ws,R.Alert=ls,R.Avatar=bs,R.Bullets=xs,R.ButtonOutline=or,R.ButtonPagination=lr,R.ButtonSolid=lt,R.Checkbox=ys,R.ConfirmationAbandoningCreation=Ps,R.CoverPhoto=zs,R.Divider=$s,R.Dropdown=Rs,R.GoBack=Ms,R.Input=on,R.InputDropdown=Ds,R.MESSAGE_ABORT_CONTROLLER=Or,R.MESSAGE_SIGNAL_ABORTED_WITHOUT_REASON=jr,R.Modal=ir,R.Pagination=Bs,R.Select=ar,R.Spinner=As,R.SpinnerIcon=it,R.Switch=_s,R.Textarea=Ls,R.Tooltip=sr,R.classNames=I,R.copyOptions=Ot,R.generateAvatarInitials=Cr,R.isPromise=Tr,R.rowsPerPage=ur,R.useCloseModal=Nr,R.useForm=kr,R.useMediaQuery=Fr,R.useWindowDimensions=jt,R.validateEmail=dn,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
61
+ `}),m.jsx(vt.Button,{as:"div",onClick:()=>pe(k),"data-testid":`menu-button-${F}`,children:e}),m.jsx("div",{className:P("absolute right-0 z-20",r,k&&"hidden",f&&"w-full"),children:m.jsx(Re,{as:u.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",show:q,children:m.jsx(vt.Items,{className:P("mt-1 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",f?"w-full":l===""&&"w-max",l!==""&&l),children:f?m.jsx("div",{className:"flex justify-center py-4",children:m.jsx(lt,{})}):m.jsxs("div",{className:P(!w&&"pb-1",t!==""&&t,Y&&"w-custom"),"data-testid":"dropdown-menu",children:[m.jsxs("div",{className:"sticky top-0 bg-white w-full",children:[g!==null&&m.jsx("div",{className:P("py-2 w-full",i),children:m.jsx(rn,{htmlFor:"search",id:`dropdown-search-${F}`,name:"search",type:"text",placeholder:v,handleChange:$=>g($,F),icon:v!==""&&m.jsx(as,{className:"w-4 h-4 text-indigo-300"}),className:"pl-5 pr-4 h-8",classNameContainerInput:"w-full",value:x,onKeyDown:$=>$.key===" "&&$.stopPropagation(),autocomplete:"off"})}),G!==null&&m.jsxs("div",{className:P("pt-1.5 justify-end flex items-center",i),children:[m.jsx(ot,{classNameButton:P("bg-gray-400 hover:bg-gray-400 font-medium px-2 py-1.5 rounded-md",J.size>0?"opacity-1 cursor-pointer":"opacity-0 cursor-default"),outline:"",classNameText:"text-xs text-white text-center",id:"delete",onClick:Te,children:"Descartar"}),m.jsx(ot,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 font-medium px-2 py-1.5 rounded-md",outline:J.size===0&&re?"":"0px 0px 0px 2px #3758F9, 0px 0px 0px 2px #243BBD, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",classNameText:"text-xs text-white text-center",id:"apply",disabled:J.size===0&&re,onClick:()=>G({id:F,items:Array.from(M.values())}),children:le})]})]}),D&&!C&&m.jsx("div",{className:"flex flex-wrap ml-7 pt-1",children:Array.from(M).map(($,H)=>m.jsx("div",{className:"mr-1",children:m.jsxs("span",{className:"inline-flex items-center gap-x-0.5 rounded-md bg-gray-100 px-2 py-1 text-xs font-medium text-gray-600 mb-1",children:[$[1][c],m.jsx("button",{type:"button",className:"p-0.5 rounded-sm bg-gray-100 hover:bg-gray-300",onClick:()=>ce($[1]),"data-testid":`tag-${$[0]}`,children:m.jsx(vs,{className:"h-2.5 w-2.5 stroke-gray-700/50 group-hover:stroke-gray-700/75"})})]})},$))}),m.jsx("div",{className:"divide-y divide-gray-100",children:(C?[]:n).map(($,H)=>m.jsx("div",{className:P(!w&&"py-1",T&&H===0&&"sticky top-0"),children:w?m.jsx("div",{onClick:I=>{I.preventDefault(),a()},"data-testid":`item-component-${H}`,children:$}):m.jsx(vt.Item,{children:m.jsx("span",{className:P(J.has($[p])&&"blue text-white",!J.has($[p])&&"text-gray-700 hover:bg-gray-100 hover:text-gray-900","block px-4 py-2 text-13 lg:text-sm cursor-pointer font-normal"),"data-testid":`item-${H}`,onClick:I=>{I.preventDefault(),Q($)},children:ye($[c])})})},H))})]})})})})]})},ar=50,Rs=({total:e,handleNext:n,handlePrev:t,handleSelectPage:r,page:o=null})=>{const[l,i]=u.useState(1),[s,a]=u.useState([]),[c,p]=u.useState([]),h=Math.ceil(e/ar);u.useEffect(()=>{const v=[];for(let x=1;x<=h;x++)v.push(x);p(v)},[h]),u.useEffect(()=>{let v=[];const x="...",y="... ",w=" ...";if(c.length<6)v=c;else if(l>=1&&l<=3)v=[1,2,3,4,x,c.length];else if(l===4)v=[...c.slice(0,5),x,c.length];else if(l>4&&l<c.length-2){const T=c.slice(l-2,l),k=c.slice(l,l+1);v=[1,y,...T,...k,w,c.length]}else if(l>c.length-3){const T=c.slice(c.length-4);v=[1,y,...T]}a(v)},[l,c]),u.useEffect(()=>{o!==null&&o!==l&&i(o)},[o,l]);const b=v=>{i(v),r(v)},f=()=>{i(l===1?l:l-1),l>1&&t(l-1)},g=()=>{l===c.length?i(l):i(l+1),l<c.length&&n(l+1)};return m.jsxs("nav",{className:"flex items-center justify-between border-t border-gray-200 px-4 sm:px-0",children:[m.jsx("div",{className:"-mt-px flex w-0 flex-1",children:m.jsxs("span",{className:"inline-flex items-center border-t-2 border-transparent pr-1 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer",onClick:f,"data-testid":"prev",children:[m.jsx(Wi,{className:"mr-3 h-5 w-5 text-gray-400","aria-hidden":"true"}),"Anterior"]})}),m.jsx("div",{className:"hidden md:-mt-px md:flex",children:s.map((v,x)=>m.jsx(or,{className:P("inline-flex items-center border-t-2 px-4 pt-4 text-sm font-medium",l===v?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700"),"aria-current":"page",onClick:()=>v!=="..."&&v!==" ..."&&v!=="... "&&b(v),id:`page-${x+1}`,children:v},x))}),m.jsx("div",{className:"-mt-px flex w-0 flex-1 justify-end",children:m.jsxs("span",{className:"inline-flex items-center border-t-2 border-transparent pl-1 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer",onClick:g,"data-testid":"next",children:["Siguiente",m.jsx(Hi,{className:"ml-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]})})]})},Bs=({setForm:e,setValuesDefault:n,className:t="",classNameContainer:r="",classNameContainerImg:o="",src:l=null,alt:i=null,width:s,height:a})=>{const c=p=>{const{files:h}=p.target,[b]=h,f=new FileReader;f.readAsDataURL(b),f.onload=function(){e(g=>({...g,photo:f.result})),n("photo",f.result)}};return m.jsxs("div",{className:P("col-span-full",r!==""&&r),children:[m.jsx("label",{htmlFor:"cover-photo",className:"block text-sm font-medium leading-6 text-gray-500",children:"Logo (Opcional)"}),m.jsxs("div",{className:P("mt-2 flex justify-center rounded-lg border-2 border-dotted border-gray-300 cursor-pointer relative",l===null&&"px-9 pt-6 pb-2.5",o!==""&&o),children:[l?m.jsx("img",{src:l,alt:i,width:s,height:a,className:P(t!==""&&t),loading:"lazy",decoding:"async",style:{filter:"blur(5px)",transition:"filter 0.3s",objectFit:"contain",height:a},onLoad:p=>p.currentTarget.style.filter="none","data-testid":"img"}):m.jsxs("div",{className:"text-center",children:[m.jsx(fs,{"aria-hidden":"true",className:"mx-auto h-12 w-12 text-gray-300"}),m.jsxs("div",{className:"mt-4 flex text-sm leading-6 text-gray-600",children:[m.jsx("label",{htmlFor:"file-upload",className:"relative cursor-pointer rounded-md bg-white font-semibold text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-600 focus-within:ring-offset-2 hover:text-indigo-500",children:m.jsx("span",{children:"Upload a file"})}),m.jsx("p",{className:"pl-1",children:"or drag and drop"})]}),m.jsx("p",{className:"text-xs leading-5 text-gray-600",children:"PNG, JPG, GIF up to 10MB"})]}),m.jsx("input",{id:"file-upload",name:"file-upload",type:"file",className:"absolute w-full h-full opacity-0 cursor-pointer",onChange:c})]})]})},zs=({children:e,openDefault:n=!1,setForm:t,setValuesDefault:r,title:o,type:l,data:i,setData:s,id:a,defaultData:c,dispatch:p,isAdd:h=!0,search:b=null,isPadding:f=!0,isReadOnly:g=!1,isEdit:v=!1,deleteItem:x=null,validateAdd:y=null,loading:w=!1,internalEdit:T=!0,isDataEmpty:k=!0,typeProp:F="value",setAdd:A=null,hasNoRecords:K=!0})=>{const[Y,D]=u.useState(!1),[_,B]=u.useState(!1),[,G]=u.useState(!1),[le,ae]=u.useState("");u.useEffect(()=>{D(n),G(g)},[n,g]);const C=({e:M,index:W})=>{const Q=Tt(i),{name:pe,value:ce}=M.target;!(y===null?!1:y({value:ce,copyData:Q,index:W}))&&(Q[W][pe]=ce),s(Q),r(a,Q),t(ye=>({...ye,[a]:Q}))},re=()=>{if(i.some(W=>Object.values(W).some(ce=>ce[F]===-1))||i.length===0)return p({type:"ALERT",payload:{title:"",message:"Todos los campos son requeridos",typeAlert:"warning",active:!0}});t(W=>({...W,data:i})),r(a,i),s([...i,c]),A&&A([...i,c])},q=({index:M,item:W})=>{if(i.length===1&&!v)return;const Q=Tt(i);Q.splice(M,1),t(pe=>({...pe,data:Q})),r(a,Q),s(Q),x&&x({index:M,item:W,data:Q}),M===i.length-1&&v&&Q.length===0&&(t(pe=>({...pe,data:Q})),r(a,Q),s([...Q,c]))},J=()=>{B(!_),G(!1)},N=()=>{if(i.length>1)return;if(i.length===0)return!0;const[M]=i,{rol:W,privileges:Q,limitedPrivileges:pe,...ce}=M;return Object.values(ce).every(ye=>Object.values(ye)[0]===-1)};return m.jsxs("div",{className:"divide-y divide-gray-200 rounded-lg bg-white shadow mt-7",children:[m.jsxs("div",{className:"px-4 py-3.5 sm:px-6 flex justify-between items-center cursor-pointer",onClick:()=>D(!Y),"data-testid":`open-accordion-${a}`,children:[m.jsx("p",{className:"text-gray-500 uppercase text-xs font-bold",children:o}),m.jsxs("div",{className:"flex items-center",children:[b&&m.jsx(rn,{htmlFor:"search",id:"search",name:"search",type:"text",autoComplete:"search",placeholder:"Buscar...",handleChange:M=>{b(M),ae(M.target.value)},icon:m.jsx(Ns,{className:"w-6 h-6 text-indigo-300"}),className:"h-9",classNameContainerInput:"w-52 2xs:w-64 max-w-64 mr-8 hidden sm:block",value:le,onClick:M=>M.stopPropagation(),onFocus:()=>D(!0)}),Y?m.jsx(Os,{className:"w-5 h-5 text-default-5"}):m.jsx(Cs,{className:"w-5 h-5 text-default-5"})]})]}),m.jsx(Re,{as:u.Fragment,show:Y,enter:"transition duration-[400ms]",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"duration-200 transition ease-in-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:m.jsxs("div",{className:P("sm:mt-2.5 py-3.5 relative",f&&"px-4 sm:p-6"),children:[T&&!_&&m.jsx(cs,{className:"w-5 h-5 text-gray-400 cursor-pointer absolute right-4",onClick:J,"data-testid":`edit-role-${a}`}),w&&m.jsx("div",{className:"flex justify-center mt-5",children:m.jsx(lt,{})}),k&&N()&&K&&!w&&(T?!_:!v)&&m.jsx("p",{className:"text-gray-800 text-center","data-testid":"records-empty",children:"No hay registros para mostrar"}),!w&&i.map((M,W)=>m.jsxs("div",{className:P("flex flex-col 3xs:flex-row mb-4",f&&"ml-0 3xs:ml-3"),children:[typeof e=="function"?e({item:M,index:W,handleChange:C,isEdit:T?_:v}):e,h&&(T?_:v)&&m.jsx("div",{style:{backgroundColor:"#B0B8BF",width:"25px",height:"25px"},className:P("rounded-full flex justify-center items-center mt-4 3xs:mt-7 ml-2 3xs:ml-5 self-start 3xs:self-center",i.length===1&&!v&&"opacity-0"),children:m.jsx(Fs,{className:P("w-6 h-4",(i.length>1||v)&&"cursor-pointer"),style:{color:"#637381"},strokeWidth:2.5,onClick:()=>q({index:W,item:M}),"data-testid":`delete-item-${W}-${a}`})})]},W)),h&&(T?_:v)&&m.jsx("p",{className:"text-secondary-2 text-sm font-medium ml-3 cursor-pointer",onClick:re,"data-testid":`add-item-${a}`,style:{width:"fit-content"},children:`+ Añadir ${l}`})]})})]})};R.Accordion=zs,R.Alert=os,R.Avatar=gs,R.Bullets=bs,R.ButtonOutline=rr,R.ButtonPagination=or,R.ButtonSolid=ot,R.Checkbox=ws,R.ConfirmationAbandoningCreation=Is,R.CoverPhoto=Bs,R.Divider=Ps,R.Dropdown=Ls,R.GoBack=$s,R.Input=rn,R.InputDropdown=As,R.MESSAGE_ABORT_CONTROLLER=Tr,R.MESSAGE_SIGNAL_ABORTED_WITHOUT_REASON=Or,R.Modal=lr,R.Pagination=Rs,R.Select=sr,R.Spinner=Ms,R.SpinnerIcon=lt,R.Switch=Ds,R.Textarea=_s,R.Tooltip=ir,R.classNames=P,R.copyOptions=Tt,R.generateAvatarInitials=Sr,R.isPromise=Cr,R.rowsPerPage=ar,R.useCloseModal=jr,R.useForm=Nr,R.useMediaQuery=kr,R.useWindowDimensions=Ot,R.validateEmail=cn,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cemtrik-dependencies",
3
- "version": "1.0.140",
3
+ "version": "1.0.142",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "dev": "vite",