cemtrik-dependencies 1.0.130 → 1.0.132

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 +13 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(B,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):(B=typeof globalThis<"u"?globalThis:B||self,u(B.MyApp={},B.React,B.ReactDOM))})(this,function(B,u,cn){"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),Ct=(e,n=!1)=>{function t(o){if(typeof o!="object"||o===null)return o;const i=Array.isArray(o)?[]:{};for(const l in o)o.hasOwnProperty(l)&&!n&&(i[l]=t(o[l]));return i}return e.map(o=>t(o))},dn=e=>/^(?:[^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*|"[^\n"]+")@(?:[^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,63}$/i.test(e);function I(...e){return e.filter(Boolean).join(" ")}const Tr=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,Or="The user aborted a request.",jr="signal is aborted without reason",Nr=({id:e,close:n,isPathsTest:t=!1,isTest:r=!1})=>{const o=u.useCallback(i=>{i.some(s=>s.getAttribute===void 0?!1:s.getAttribute("id")===e)||n()},[n,e]);u.useEffect(()=>{const i=l=>{const s=l.composedPath();s===void 0||t||(r&&(s[0].getAttribute=()=>e),o(s))};return window.addEventListener("click",i),()=>{window.removeEventListener("click",i)}},[o,t,r,e])};let Ve={};const Fr=()=>{const[e,n]=u.useState({}),[t,r]=u.useState({}),[o,i]=u.useState([]);u.useEffect(()=>{Ve={}},[]);const l=h=>x=>{x.preventDefault(),x.stopPropagation(),h(e)},s=(h,x,p)=>{const{checked:v,value:g,name:b,type:y,id:w}=h.target,C={radio:w,checkbox:v};Ve={...p,...Ve,[b]:C[y]??g},n({...Ve,[b]:C[y]??g}),x({...Ve,[b]:C[y]??g})},a=u.useCallback((h,x)=>{n(p=>({...p,[h]:x}))},[]),c=u.useCallback((h,x)=>{const p=x.filter(v=>h[v]===""||h[v]===void 0);return p.forEach(v=>r(g=>({...g,[v]:"Este campo es requerido"}))),i(p),p.length>0},[]);return{handleSubmit:l,handleChange:s,setValuesDefault:a,validateFields:c,errors:o,model:e,handleError:(h,x)=>{x.forEach(p=>r(v=>({...v,[p]:h}))),i(x)},messageError:t,setModel:n}},Ir=e=>{const[n,t]=u.useState(!0),[r,o]=u.useState(!1),i=u.useCallback((l,s)=>{const a=e.match(/[0-9]+/g);if(a===null)return;const[c]=a;s=Math.min(window.innerWidth,window.outerWidth);const m=l?s>=Number(c):s<=Number(c);o(m)},[e]);return u.useEffect(()=>{const l=/\(min-width:\s?[0-9]+px\)/gi.test(e),s=/\(max-width:\s?[0-9]+px\)/gi.test(e);if(!l&&!s&&t(!1),!l&&!s)return;const a=Math.min(window.innerWidth,window.outerWidth);i(l,a)},[e,i]),u.useEffect(()=>{if(!n)return;const l=Math.min(window.innerWidth,window.outerWidth);function s(){const a=/min-width/gi.test(e);i(a,l)}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[n,e,i]),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 kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt={exports:{}},Ye={};/**
1
+ (function(B,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):(B=typeof globalThis<"u"?globalThis:B||self,u(B.MyApp={},B.React,B.ReactDOM))})(this,function(B,u,cn){"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),Ct=(e,n=!1)=>{function t(o){if(typeof o!="object"||o===null)return o;const i=Array.isArray(o)?[]:{};for(const l in o)o.hasOwnProperty(l)&&!n&&(i[l]=t(o[l]));return i}return e.map(o=>t(o))},dn=e=>/^(?:[^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*|"[^\n"]+")@(?:[^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,63}$/i.test(e);function I(...e){return e.filter(Boolean).join(" ")}const Tr=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,Or="The user aborted a request.",jr="signal is aborted without reason",Nr=({id:e,close:n,isPathsTest:t=!1,isTest:r=!1})=>{const o=u.useCallback(i=>{i.some(s=>s.getAttribute===void 0?!1:s.getAttribute("id")===e)||n()},[n,e]);u.useEffect(()=>{const i=l=>{const s=l.composedPath();s===void 0||t||(r&&(s[0].getAttribute=()=>e),o(s))};return window.addEventListener("click",i),()=>{window.removeEventListener("click",i)}},[o,t,r,e])};let De={};const Fr=()=>{const[e,n]=u.useState({}),[t,r]=u.useState({}),[o,i]=u.useState([]);u.useEffect(()=>{De={}},[]);const l=h=>x=>{x.preventDefault(),x.stopPropagation(),h(e)},s=(h,x,p)=>{const{checked:g,value:v,name:b,type:y,id:w}=h.target,C={radio:w,checkbox:g};De={...p,...De,[b]:C[y]??v},n({...De,[b]:C[y]??v}),x({...De,[b]:C[y]??v})},a=u.useCallback((h,x)=>{De={...De,[h]:x},n(p=>({...p,[h]:x}))},[]),c=u.useCallback((h,x)=>{const p=x.filter(g=>h[g]===""||h[g]===void 0);return p.forEach(g=>r(v=>({...v,[g]:"Este campo es requerido"}))),i(p),p.length>0},[]);return{handleSubmit:l,handleChange:s,setValuesDefault:a,validateFields:c,errors:o,model:e,handleError:(h,x)=>{x.forEach(p=>r(g=>({...g,[p]:h}))),i(x)},messageError:t,setModel:n}},Ir=e=>{const[n,t]=u.useState(!0),[r,o]=u.useState(!1),i=u.useCallback((l,s)=>{const a=e.match(/[0-9]+/g);if(a===null)return;const[c]=a;s=Math.min(window.innerWidth,window.outerWidth);const m=l?s>=Number(c):s<=Number(c);o(m)},[e]);return u.useEffect(()=>{const l=/\(min-width:\s?[0-9]+px\)/gi.test(e),s=/\(max-width:\s?[0-9]+px\)/gi.test(e);if(!l&&!s&&t(!1),!l&&!s)return;const a=Math.min(window.innerWidth,window.outerWidth);i(l,a)},[e,i]),u.useEffect(()=>{if(!n)return;const l=Math.min(window.innerWidth,window.outerWidth);function s(){const a=/min-width/gi.test(e);i(a,l)}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[n,e,i]),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 kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt={exports:{}},Ye={};/**
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 $r(){if(fn)return Ye;fn=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,i={key:!0,ref:!0,__self:!0,__source:!0};function l(s,a,c){var m,h={},x=null,p=null;c!==void 0&&(x=""+c),a.key!==void 0&&(x=""+a.key),a.ref!==void 0&&(p=a.ref);for(m in a)r.call(a,m)&&!i.hasOwnProperty(m)&&(h[m]=a[m]);if(s&&s.defaultProps)for(m in a=s.defaultProps,a)h[m]===void 0&&(h[m]=a[m]);return{$$typeof:n,type:s,key:x,ref:p,props:h,_owner:o.current}}return Ye.Fragment=t,Ye.jsx=l,Ye.jsxs=l,Ye}var qe={};/**
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,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(s,a,c){var m,h={},x=null,p=null;c!==void 0&&(x=""+c),a.key!==void 0&&(x=""+a.key),a.ref!==void 0&&(p=a.ref);for(m in a)r.call(a,m)&&!i.hasOwnProperty(m)&&(h[m]=a[m]);if(s&&s.defaultProps)for(m in a=s.defaultProps,a)h[m]===void 0&&(h[m]=a[m]);return{$$typeof:n,type:s,key:x,ref:p,props:h,_owner:o.current}}return Ye.Fragment=t,Ye.jsx=l,Ye.jsxs=l,Ye}var qe={};/**
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 Pr(){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"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),v=Symbol.iterator,g="@@iterator";function b(d){if(d===null||typeof d!="object")return null;var S=v&&d[v]||d[g];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,j=new Array(S>1?S-1:0),_=1;_<S;_++)j[_-1]=arguments[_];C("error",d,j)}}function C(d,S,j){{var _=y.ReactDebugCurrentFrame,Q=_.getStackAddendum();Q!==""&&(S+="%s",j=j.concat([Q]));var oe=j.map(function(Z){return String(Z)});oe.unshift("Warning: "+S),Function.prototype.apply.call(console[d],console,oe)}}var F=!1,$=!1,A=!1,Y=!1,q=!1,k;k=Symbol.for("react.module.reference");function L(d){return!!(typeof d=="string"||typeof d=="function"||d===r||d===i||q||d===o||d===c||d===m||Y||d===p||F||$||A||typeof d=="object"&&d!==null&&(d.$$typeof===x||d.$$typeof===h||d.$$typeof===l||d.$$typeof===s||d.$$typeof===a||d.$$typeof===k||d.getModuleId!==void 0))}function z(d,S,j){var _=d.displayName;if(_)return _;var Q=S.displayName||S.name||"";return Q!==""?j+"("+Q+")":j}function J(d){return d.displayName||"Context"}function ne(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 i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case m:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case s:var S=d;return J(S)+".Consumer";case l:var j=d;return J(j._context)+".Provider";case a:return z(d,d.render,"ForwardRef");case h:var _=d.displayName||null;return _!==null?_:ne(d.type)||"Memo";case x:{var Q=d,oe=Q._payload,Z=Q._init;try{return ne(Z(oe))}catch{return null}}}return null}var ue=Object.assign,T=0,re,R,te,O,P,U,ce;function he(){}he.__reactDisabledLog=!0;function ve(){{if(T===0){re=console.log,R=console.info,te=console.warn,O=console.error,P=console.group,U=console.groupCollapsed,ce=console.groupEnd;var d={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}T++}}function Te(){{if(T--,T===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},d,{value:re}),info:ue({},d,{value:R}),warn:ue({},d,{value:te}),error:ue({},d,{value:O}),group:ue({},d,{value:P}),groupCollapsed:ue({},d,{value:U}),groupEnd:ue({},d,{value:ce})})}T<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var M=y.ReactCurrentDispatcher,H;function se(d,S,j){{if(H===void 0)try{throw Error()}catch(Q){var _=Q.stack.trim().match(/\n( *(at )?)/);H=_&&_[1]||""}return`
18
- `+H+d}}var D=!1,G;{var W=typeof WeakMap=="function"?WeakMap:Map;G=new W}function ge(d,S){if(!d||D)return"";{var j=G.get(d);if(j!==void 0)return j}var _;D=!0;var Q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=M.current,M.current=null,ve();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(Ie){_=Ie}Reflect.construct(d,[],Z)}else{try{Z.call()}catch(Ie){_=Ie}d.call(Z.prototype)}}else{try{throw Error()}catch(Ie){_=Ie}d()}}catch(Ie){if(Ie&&_&&typeof Ie.stack=="string"){for(var V=Ie.stack.split(`
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"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator,v="@@iterator";function b(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,j=new Array(S>1?S-1:0),_=1;_<S;_++)j[_-1]=arguments[_];C("error",d,j)}}function C(d,S,j){{var _=y.ReactDebugCurrentFrame,Q=_.getStackAddendum();Q!==""&&(S+="%s",j=j.concat([Q]));var oe=j.map(function(Z){return String(Z)});oe.unshift("Warning: "+S),Function.prototype.apply.call(console[d],console,oe)}}var F=!1,P=!1,A=!1,Y=!1,q=!1,k;k=Symbol.for("react.module.reference");function L(d){return!!(typeof d=="string"||typeof d=="function"||d===r||d===i||q||d===o||d===c||d===m||Y||d===p||F||P||A||typeof d=="object"&&d!==null&&(d.$$typeof===x||d.$$typeof===h||d.$$typeof===l||d.$$typeof===s||d.$$typeof===a||d.$$typeof===k||d.getModuleId!==void 0))}function z(d,S,j){var _=d.displayName;if(_)return _;var Q=S.displayName||S.name||"";return Q!==""?j+"("+Q+")":j}function J(d){return d.displayName||"Context"}function ne(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 i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case m:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case s:var S=d;return J(S)+".Consumer";case l:var j=d;return J(j._context)+".Provider";case a:return z(d,d.render,"ForwardRef");case h:var _=d.displayName||null;return _!==null?_:ne(d.type)||"Memo";case x:{var Q=d,oe=Q._payload,Z=Q._init;try{return ne(Z(oe))}catch{return null}}}return null}var ue=Object.assign,T=0,re,R,te,O,M,U,ce;function he(){}he.__reactDisabledLog=!0;function ve(){{if(T===0){re=console.log,R=console.info,te=console.warn,O=console.error,M=console.group,U=console.groupCollapsed,ce=console.groupEnd;var d={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}T++}}function Ee(){{if(T--,T===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},d,{value:re}),info:ue({},d,{value:R}),warn:ue({},d,{value:te}),error:ue({},d,{value:O}),group:ue({},d,{value:M}),groupCollapsed:ue({},d,{value:U}),groupEnd:ue({},d,{value:ce})})}T<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $=y.ReactCurrentDispatcher,H;function se(d,S,j){{if(H===void 0)try{throw Error()}catch(Q){var _=Q.stack.trim().match(/\n( *(at )?)/);H=_&&_[1]||""}return`
18
+ `+H+d}}var D=!1,G;{var W=typeof WeakMap=="function"?WeakMap:Map;G=new W}function ge(d,S){if(!d||D)return"";{var j=G.get(d);if(j!==void 0)return j}var _;D=!0;var Q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=$.current,$.current=null,ve();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(Ie){_=Ie}Reflect.construct(d,[],Z)}else{try{Z.call()}catch(Ie){_=Ie}d.call(Z.prototype)}}else{try{throw Error()}catch(Ie){_=Ie}d()}}catch(Ie){if(Ie&&_&&typeof Ie.stack=="string"){for(var V=Ie.stack.split(`
19
19
  `),we=_.stack.split(`
20
- `),me=V.length-1,pe=we.length-1;me>=1&&pe>=0&&V[me]!==we[pe];)pe--;for(;me>=1&&pe>=0;me--,pe--)if(V[me]!==we[pe]){if(me!==1||pe!==1)do if(me--,pe--,pe<0||V[me]!==we[pe]){var Ee=`
21
- `+V[me].replace(" at new "," at ");return d.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",d.displayName)),typeof d=="function"&&G.set(d,Ee),Ee}while(me>=1&&pe>=0);break}}}finally{D=!1,M.current=oe,Te(),Error.prepareStackTrace=Q}var He=d?d.displayName||d.name:"",Er=He?se(He):"";return typeof d=="function"&&G.set(d,Er),Er}function be(d,S,j){return ge(d,!1)}function We(d){var S=d.prototype;return!!(S&&S.isReactComponent)}function Et(d,S,j){if(d==null)return"";if(typeof d=="function")return ge(d,We(d));if(typeof d=="string")return se(d);switch(d){case c:return se("Suspense");case m:return se("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case a:return be(d.render);case h:return Et(d.type,S,j);case x:{var _=d,Q=_._payload,oe=_._init;try{return Et(oe(Q),S,j)}catch{}}}return""}var St=Object.prototype.hasOwnProperty,cr={},dr=y.ReactDebugCurrentFrame;function Tt(d){if(d){var S=d._owner,j=Et(d.type,d._source,S?S.type:null);dr.setExtraStackFrame(j)}else dr.setExtraStackFrame(null)}function Us(d,S,j,_,Q){{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 we=Error((_||"React class")+": "+j+" 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 we.name="Invariant Violation",we}V=d[Z](S,Z,_,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(me){V=me}V&&!(V instanceof Error)&&(Tt(Q),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).",_||"React class",j,Z,typeof V),Tt(null)),V instanceof Error&&!(V.message in cr)&&(cr[V.message]=!0,Tt(Q),w("Failed %s type: %s",j,V.message),Tt(null))}}}var Hs=Array.isArray;function on(d){return Hs(d)}function Vs(d){{var S=typeof Symbol=="function"&&Symbol.toStringTag,j=S&&d[Symbol.toStringTag]||d.constructor.name||"Object";return j}}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,ln;ln={};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 j=ne(st.current.type);ln[j]||(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',ne(st.current.type),d.ref),ln[j]=!0)}}function Js(d,S){{var j=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))};j.isReactWarning=!0,Object.defineProperty(d,"key",{get:j,configurable:!0})}}function Qs(d,S){{var j=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))};j.isReactWarning=!0,Object.defineProperty(d,"ref",{get:j,configurable:!0})}}var Xs=function(d,S,j,_,Q,oe,Z){var V={$$typeof:n,type:d,key:S,ref:j,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:_}),Object.defineProperty(V,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Q}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V};function ea(d,S,j,_,Q){{var oe,Z={},V=null,we=null;j!==void 0&&(mr(j),V=""+j),Zs(S)&&(mr(S.key),V=""+S.key),Gs(S)&&(we=S.ref,Ks(S,Q));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||we){var pe=typeof d=="function"?d.displayName||d.name||"Unknown":d;V&&Js(Z,pe),we&&Qs(Z,pe)}return Xs(d,V,we,Q,_,st.current,Z)}}var sn=y.ReactCurrentOwner,vr=y.ReactDebugCurrentFrame;function Ue(d){if(d){var S=d._owner,j=Et(d.type,d._source,S?S.type:null);vr.setExtraStackFrame(j)}else vr.setExtraStackFrame(null)}var an;an=!1;function un(d){return typeof d=="object"&&d!==null&&d.$$typeof===n}function gr(){{if(sn.current){var d=ne(sn.current.type);if(d)return`
20
+ `),me=V.length-1,pe=we.length-1;me>=1&&pe>=0&&V[me]!==we[pe];)pe--;for(;me>=1&&pe>=0;me--,pe--)if(V[me]!==we[pe]){if(me!==1||pe!==1)do if(me--,pe--,pe<0||V[me]!==we[pe]){var Se=`
21
+ `+V[me].replace(" at new "," at ");return d.displayName&&Se.includes("<anonymous>")&&(Se=Se.replace("<anonymous>",d.displayName)),typeof d=="function"&&G.set(d,Se),Se}while(me>=1&&pe>=0);break}}}finally{D=!1,$.current=oe,Ee(),Error.prepareStackTrace=Q}var Ve=d?d.displayName||d.name:"",Er=Ve?se(Ve):"";return typeof d=="function"&&G.set(d,Er),Er}function be(d,S,j){return ge(d,!1)}function Ue(d){var S=d.prototype;return!!(S&&S.isReactComponent)}function Et(d,S,j){if(d==null)return"";if(typeof d=="function")return ge(d,Ue(d));if(typeof d=="string")return se(d);switch(d){case c:return se("Suspense");case m:return se("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case a:return be(d.render);case h:return Et(d.type,S,j);case x:{var _=d,Q=_._payload,oe=_._init;try{return Et(oe(Q),S,j)}catch{}}}return""}var St=Object.prototype.hasOwnProperty,cr={},dr=y.ReactDebugCurrentFrame;function Tt(d){if(d){var S=d._owner,j=Et(d.type,d._source,S?S.type:null);dr.setExtraStackFrame(j)}else dr.setExtraStackFrame(null)}function Us(d,S,j,_,Q){{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 we=Error((_||"React class")+": "+j+" 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 we.name="Invariant Violation",we}V=d[Z](S,Z,_,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(me){V=me}V&&!(V instanceof Error)&&(Tt(Q),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).",_||"React class",j,Z,typeof V),Tt(null)),V instanceof Error&&!(V.message in cr)&&(cr[V.message]=!0,Tt(Q),w("Failed %s type: %s",j,V.message),Tt(null))}}}var Hs=Array.isArray;function on(d){return Hs(d)}function Vs(d){{var S=typeof Symbol=="function"&&Symbol.toStringTag,j=S&&d[Symbol.toStringTag]||d.constructor.name||"Object";return j}}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,ln;ln={};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 j=ne(st.current.type);ln[j]||(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',ne(st.current.type),d.ref),ln[j]=!0)}}function Js(d,S){{var j=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))};j.isReactWarning=!0,Object.defineProperty(d,"key",{get:j,configurable:!0})}}function Qs(d,S){{var j=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))};j.isReactWarning=!0,Object.defineProperty(d,"ref",{get:j,configurable:!0})}}var Xs=function(d,S,j,_,Q,oe,Z){var V={$$typeof:n,type:d,key:S,ref:j,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:_}),Object.defineProperty(V,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Q}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V};function ea(d,S,j,_,Q){{var oe,Z={},V=null,we=null;j!==void 0&&(mr(j),V=""+j),Zs(S)&&(mr(S.key),V=""+S.key),Gs(S)&&(we=S.ref,Ks(S,Q));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||we){var pe=typeof d=="function"?d.displayName||d.name||"Unknown":d;V&&Js(Z,pe),we&&Qs(Z,pe)}return Xs(d,V,we,Q,_,st.current,Z)}}var sn=y.ReactCurrentOwner,vr=y.ReactDebugCurrentFrame;function He(d){if(d){var S=d._owner,j=Et(d.type,d._source,S?S.type:null);vr.setExtraStackFrame(j)}else vr.setExtraStackFrame(null)}var an;an=!1;function un(d){return typeof d=="object"&&d!==null&&d.$$typeof===n}function gr(){{if(sn.current){var d=ne(sn.current.type);if(d)return`
22
22
 
23
23
  Check the render method of \``+d+"`."}return""}}function ta(d){return""}var br={};function na(d){{var S=gr();if(!S){var j=typeof d=="string"?d:d.displayName||d.name;j&&(S=`
24
24
 
25
- Check the top-level render call using <`+j+">.")}return S}}function xr(d,S){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var j=na(S);if(br[j])return;br[j]=!0;var _="";d&&d._owner&&d._owner!==sn.current&&(_=" It was passed a child from "+ne(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.',j,_),Ue(null)}}function wr(d,S){{if(typeof d!="object")return;if(on(d))for(var j=0;j<d.length;j++){var _=d[j];un(_)&&xr(_,S)}else if(un(d))d._store&&(d._store.validated=!0);else if(d){var Q=b(d);if(typeof Q=="function"&&Q!==d.entries)for(var oe=Q.call(d),Z;!(Z=oe.next()).done;)un(Z.value)&&xr(Z.value,S)}}}function ra(d){{var S=d.type;if(S==null||typeof S=="string")return;var j;if(typeof S=="function")j=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===a||S.$$typeof===h))j=S.propTypes;else return;if(j){var _=ne(S);Us(j,d.props,"prop",_,d)}else if(S.PropTypes!==void 0&&!an){an=!0;var Q=ne(S);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Q||"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),j=0;j<S.length;j++){var _=S[j];if(_!=="children"&&_!=="key"){Ue(d),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),Ue(null);break}}d.ref!==null&&(Ue(d),w("Invalid attribute `ref` supplied to `React.Fragment`."),Ue(null))}}function yr(d,S,j,_,Q,oe){{var Z=L(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 we=ta();we?V+=we:V+=gr();var me;d===null?me="null":on(d)?me="array":d!==void 0&&d.$$typeof===n?(me="<"+(ne(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 pe=ea(d,S,j,Q,oe);if(pe==null)return pe;if(Z){var Ee=S.children;if(Ee!==void 0)if(_)if(on(Ee)){for(var He=0;He<Ee.length;He++)wr(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 wr(Ee,d)}return d===r?oa(pe):ra(pe),pe}}function ia(d,S,j){return yr(d,S,j,!0)}function la(d,S,j){return yr(d,S,j,!1)}var sa=la,aa=ia;qe.Fragment=r,qe.jsx=sa,qe.jsxs=aa}()),qe}process.env.NODE_ENV==="production"?jt.exports=$r():jt.exports=Pr();var f=jt.exports;function Ge(e,n,t){let r=t.initialDeps??[],o;return()=>{var i,l,s,a;let c;t.key&&((i=t.debug)!=null&&i.call(t))&&(c=Date.now());const m=e();if(!(m.length!==r.length||m.some((p,v)=>r[v]!==p)))return o;r=m;let x;if(t.key&&((l=t.debug)!=null&&l.call(t))&&(x=Date.now()),o=n(...m),t.key&&((s=t.debug)!=null&&s.call(t))){const p=Math.round((Date.now()-c)*100)/100,v=Math.round((Date.now()-x)*100)/100,g=v/16,b=(y,w)=>{for(y=String(y);y.length<w;)y=" "+y;return y};console.info(`%c⏱ ${b(v,5)} /${b(p,5)} ms`,`
25
+ Check the top-level render call using <`+j+">.")}return S}}function xr(d,S){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var j=na(S);if(br[j])return;br[j]=!0;var _="";d&&d._owner&&d._owner!==sn.current&&(_=" It was passed a child from "+ne(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.',j,_),He(null)}}function wr(d,S){{if(typeof d!="object")return;if(on(d))for(var j=0;j<d.length;j++){var _=d[j];un(_)&&xr(_,S)}else if(un(d))d._store&&(d._store.validated=!0);else if(d){var Q=b(d);if(typeof Q=="function"&&Q!==d.entries)for(var oe=Q.call(d),Z;!(Z=oe.next()).done;)un(Z.value)&&xr(Z.value,S)}}}function ra(d){{var S=d.type;if(S==null||typeof S=="string")return;var j;if(typeof S=="function")j=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===a||S.$$typeof===h))j=S.propTypes;else return;if(j){var _=ne(S);Us(j,d.props,"prop",_,d)}else if(S.PropTypes!==void 0&&!an){an=!0;var Q=ne(S);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Q||"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),j=0;j<S.length;j++){var _=S[j];if(_!=="children"&&_!=="key"){He(d),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),He(null);break}}d.ref!==null&&(He(d),w("Invalid attribute `ref` supplied to `React.Fragment`."),He(null))}}function yr(d,S,j,_,Q,oe){{var Z=L(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 we=ta();we?V+=we:V+=gr();var me;d===null?me="null":on(d)?me="array":d!==void 0&&d.$$typeof===n?(me="<"+(ne(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 pe=ea(d,S,j,Q,oe);if(pe==null)return pe;if(Z){var Se=S.children;if(Se!==void 0)if(_)if(on(Se)){for(var Ve=0;Ve<Se.length;Ve++)wr(Se[Ve],d);Object.freeze&&Object.freeze(Se)}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(Se,d)}return d===r?oa(pe):ra(pe),pe}}function ia(d,S,j){return yr(d,S,j,!0)}function la(d,S,j){return yr(d,S,j,!1)}var sa=la,aa=ia;qe.Fragment=r,qe.jsx=sa,qe.jsxs=aa}()),qe}process.env.NODE_ENV==="production"?jt.exports=Pr():jt.exports=$r();var f=jt.exports;function Ge(e,n,t){let r=t.initialDeps??[],o;return()=>{var i,l,s,a;let c;t.key&&((i=t.debug)!=null&&i.call(t))&&(c=Date.now());const m=e();if(!(m.length!==r.length||m.some((p,g)=>r[g]!==p)))return o;r=m;let x;if(t.key&&((l=t.debug)!=null&&l.call(t))&&(x=Date.now()),o=n(...m),t.key&&((s=t.debug)!=null&&s.call(t))){const p=Math.round((Date.now()-c)*100)/100,g=Math.round((Date.now()-x)*100)/100,v=g/16,b=(y,w)=>{for(y=String(y);y.length<w;)y=" "+y;return y};console.info(`%c⏱ ${b(g,5)} /${b(p,5)} ms`,`
26
26
  font-size: .6rem;
27
27
  font-weight: bold;
28
- color: hsl(${Math.max(0,Math.min(120-120*g,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 Mr=(e,n)=>Math.abs(e-n)<1,Ar=(e,n,t)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>n.apply(this,o),t)}},Dr=e=>e,Lr=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=l=>{const{width:s,height:a}=l;n({width:Math.round(s),height:Math.round(a)})};if(o(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(l=>{const s=l[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 i.observe(t,{box:"border-box"}),()=>{i.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 o=0;const i=Rr?()=>{}:Ar(r,()=>{n(o,!1)},e.options.isScrollingResetDelay),l=c=>()=>{o=t[e.options.horizontal?"scrollLeft":"scrollTop"],i(),n(o,c)},s=l(!0),a=l(!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 o,i;const l=e+n;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:l,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(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.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:Dr,rangeExtractor:Lr,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 o,i;const{startIndex:l,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},a=this.calculateRange();(t||l!==(a==null?void 0:a.startIndex)||s!==(a==null?void 0:a.endIndex))&&((i=(o=this.options).onChange)==null||i.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,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=i,this.notify(l!==i,i)}))}},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,i=new Map;for(let l=r-1;l>=0;l--){const s=t[l];if(o.has(s.lane))continue;const a=i.get(s.lane);if(a==null||s.end>a.end?i.set(s.lane,s):s.end<a.end&&o.set(s.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((l,s)=>l.end===s.end?l.index-s.index:l.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,o,i,l)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:l}),{key:!1}),this.getMeasurements=Ge(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:l},s)=>{var a;if(!l)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 m=this.measurementsCache.slice(0,c);for(let h=c;h<t;h++){let x=(a=this.measurementsCache[h])==null?void 0:a.measureElement;x||(x=F=>{const $=i(h),A=this.elementsCache.get($);if(!F){A&&(this.observer.unobserve(A),this.elementsCache.delete($));return}A!==F&&(A&&this.observer.unobserve(A),this.observer.observe(F),this.elementsCache.set($,F)),F.isConnected&&this.resizeItem(h,this.options.measureElement(F,void 0,this))});const p=i(h),v=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),g=v?v.end+this.options.gap:r+o,b=s.get(p),y=typeof b=="number"?b:this.options.estimateSize(h),w=g+y,C=v?v.lane:h%this.options.lanes;m[h]={index:h,start:g,size:y,end:w,key:p,lane:C,measureElement:x}}return this.measurementsCache=m,m},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Ge(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,r,o)=>this.range=t.length>0&&r>0?Hr({measurements:t,outerSize:r,scrollOffset:o}):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,o,i)=>r===null?[]:t({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:i}),{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),i=this.getMeasurements()[o];if(!i||!t.isConnected){this.elementsCache.forEach((s,a)=>{s===t&&(this.observer.unobserve(t),this.elementsCache.delete(a))});return}const l=this.elementsCache.get(i.key);l!==t&&(l&&this.observer.unobserve(l),this.observer.observe(t),this.elementsCache.set(i.key,t)),this.resizeItem(o,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const o=this.getMeasurements()[t];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,l=r-i;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,l,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,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=Ge(()=>[this.getIndexes(),this.getMeasurements()],(t,r)=>{const o=[];for(let i=0,l=t.length;i<l;i++){const s=t[i],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[hn(0,r.length-1,o=>Nt(r[o]).start,t)])},this.getOffsetForAlignment=(t,r)=>{const o=this.getSize(),i=this.getScrollOffset();r==="auto"&&(t<=i?r="start":t>=i+o?r="end":r="start"),r==="start"?t=t:r==="end"?t=t-o:r==="center"&&(t=t-o/2);const l=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[l]:this.scrollElement[l]: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 i=this.getSize(),l=this.getScrollOffset();if(r==="auto")if(o.end>=l+i-this.options.scrollPaddingEnd)r="end";else if(o.start<=l+this.options.scrollPaddingStart)r="start";else return[l,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 i=this.getOffsetForIndex(t,r);if(!i)return;const[l,s]=i;this._scrollToOffset(l,{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));Mr(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(i=>i.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 hn=(e,n,t,r)=>{for(;e<=n;){const o=(e+n)/2|0,i=t(o);if(i<r)e=o+1;else if(i>r)n=o-1;else return o}return e>0?e-1:0};function Hr({measurements:e,outerSize:n,scrollOffset:t}){const r=e.length-1,i=hn(0,r,s=>e[s].start,t);let l=i;for(;l<r&&e[l].end<t+n;)l++;return{startIndex:i,endIndex:l}}const Vr=typeof document<"u"?E.useLayoutEffect:E.useEffect;function Yr(e){const n=E.useReducer(()=>({}),{})[1],t={...e,onChange:(o,i)=>{var l;i?cn.flushSync(n):n(),(l=e.onChange)==null||l.call(e,o,i)}},[r]=E.useState(()=>new Ur(t));return r.setOptions(t),E.useEffect(()=>r._didMount(),[]),Vr(()=>r._willUpdate()),r}function qr(e){return Yr({observeElementRect:_r,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,X=(e,n)=>{Oe.isServer?u.useEffect(e,n):u.useLayoutEffect(e,n)};function Se(e){let n=u.useRef(e);return X(()=>{n.current=e},[e]),n}function It(e,n){let[t,r]=u.useState(e),o=Se(e);return X(()=>r(o.current),[o,r,...n]),t}let N=function(e){let n=Se(e);return u.useCallback((...t)=>n.current(...t),[n])};function vn(e,n,t){let[r,o]=u.useState(t),i=e!==void 0,l=u.useRef(i),s=u.useRef(!1),a=u.useRef(!1);return i&&!l.current&&!s.current?(s.current=!0,l.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&l.current&&!a.current&&(a.current=!0,l.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,N(c=>(i||o(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 ye(){let e=[],n={addEventListener(t,r,o,i){return t.addEventListener(r,o,i),n.add(()=>t.removeEventListener(r,o,i))},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,o){let i=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:o}),this.add(()=>{Object.assign(t.style,{[r]:i})})},group(t){let r=ye();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(ye);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 Be(){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 xe=(gn=u.useId)!=null?gn:function(){let e=Be(),[n,t]=u.useState(e?()=>Oe.nextId():null);return X(()=>{n===null&&t(Oe.nextId())},[n]),n!=null?""+n:void 0};function ae(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,ae),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 kt=["[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(kt)).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 Pt(e,n=0){var t;return e===((t=ut(e))==null?void 0:t.body)?!1:ae(n,{0(){return e.matches(kt)},1(){let r=e;for(;r!==null;){if(r.matches(kt))return!0;r=r.parentElement}return!1}})}function wn(e){let n=ut(e);ye().nextFrame(()=>{n&&!Pt(n.activeElement,0)&&ke(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 ke(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 Mt(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),i=n(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&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:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?t?Mt(e):e:xn(e);o.length>0&&l.length>1&&(l=l.filter(p=>!o.includes(p))),r=r??i.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,l.indexOf(r))-1;if(n&4)return Math.max(0,l.indexOf(r))+1;if(n&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=n&32?{preventScroll:!0}:{},m=0,h=l.length,x;do{if(m>=h||m+h<=0)return 0;let p=a+m;if(n&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}x=l[p],x==null||x.focus(c),m+=s}while(x!==i.activeElement);return n&6&&to(x)&&x.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 o(i){r.current(i)}return document.addEventListener(e,o,t),()=>document.removeEventListener(e,o,t)},[e,t])}function Sn(e,n,t){let r=Se(n);u.useEffect(()=>{function o(i){r.current(i)}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(l,s){if(!r.current||l.defaultPrevented)return;let a=s(l);if(a===null||!a.getRootNode().contains(a)||!a.isConnected)return;let c=function m(h){return typeof h=="function"?m(h()):Array.isArray(h)||h instanceof Set?h:[h]}(e);for(let m of c){if(m===null)continue;let h=m instanceof HTMLElement?m:m.current;if(h!=null&&h.contains(a)||l.composed&&l.composedPath().includes(h))return}return!Pt(a,$t.Loose)&&a.tabIndex!==-1&&l.preventDefault(),n(l,a)}let i=u.useRef(null);ct("pointerdown",l=>{var s,a;r.current&&(i.current=((a=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:a[0])||l.target)},!0),ct("mousedown",l=>{var s,a;r.current&&(i.current=((a=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:a[0])||l.target)},!0),ct("click",l=>{En()||i.current&&(o(l,()=>i.current),i.current=null)},!0),ct("touchend",l=>o(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Sn("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function De(...e){return u.useMemo(()=>ut(...e),[...e])}function Tn(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(()=>Tn(e));return X(()=>{r(Tn(e))},[e.type,e.as]),X(()=>{t||n.current&&n.current instanceof HTMLButtonElement&&!n.current.hasAttribute("type")&&r("button")},[t,n]),t}let Cn=Symbol();function oo(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=N(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 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 o=u.useRef(n),i=u.useRef(t);u.useEffect(()=>{o.current=n,i.current=t},[n,t]),X(()=>{if(!e||!r)return;let l=ut(e);if(!l)return;let s=o.current,a=i.current,c=Object.assign(h=>s(h),{acceptNode:s}),m=l.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;m.nextNode();)a(m.currentNode)},[e,r,o,i])}function Ke(e,n){let t=u.useRef([]),r=N(e);u.useEffect(()=>{let o=[...t.current];for(let[i,l]of n.entries())if(t.current[i]!==l){let s=r(n,o);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 $e=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))($e||{}),Pe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Pe||{});function ie({ourProps:e,theirProps:n,slot:t,defaultTag:r,features:o,visible:i=!0,name:l,mergeRefs:s}){s=s??io;let a=Fn(n,e);if(i)return ft(a,t,r,l,s);let c=o??0;if(c&2){let{static:m=!1,...h}=a;if(m)return ft(h,t,r,l,s)}if(c&1){let{unmount:m=!0,...h}=a;return ae(m?0:1,{0(){return null},1(){return ft({...h,hidden:!0,style:{display:"none"}},t,r,l,s)}})}return ft(a,t,r,l,s)}function ft(e,n={},t,r,o){let{as:i=t,children:l,refName:s="ref",...a}=Lt(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},m=typeof l=="function"?l(n):l;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(n));let h={};if(n){let x=!1,p=[];for(let[v,g]of Object.entries(n))typeof g=="boolean"&&(x=!0),g===!0&&p.push(v);x&&(h["data-headlessui-state"]=p.join(" "))}if(i===u.Fragment&&Object.keys(mt(a)).length>0){if(!u.isValidElement(m)||Array.isArray(m)&&m.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(g=>` - ${g}`).join(`
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(g=>` - ${g}`).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 Mr=(e,n)=>Math.abs(e-n)<1,Ar=(e,n,t)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>n.apply(this,o),t)}},Dr=e=>e,Lr=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=l=>{const{width:s,height:a}=l;n({width:Math.round(s),height:Math.round(a)})};if(o(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(l=>{const s=l[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 i.observe(t,{box:"border-box"}),()=>{i.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 o=0;const i=Rr?()=>{}:Ar(r,()=>{n(o,!1)},e.options.isScrollingResetDelay),l=c=>()=>{o=t[e.options.horizontal?"scrollLeft":"scrollTop"],i(),n(o,c)},s=l(!0),a=l(!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 o,i;const l=e+n;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:l,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(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.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:Dr,rangeExtractor:Lr,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 o,i;const{startIndex:l,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},a=this.calculateRange();(t||l!==(a==null?void 0:a.startIndex)||s!==(a==null?void 0:a.endIndex))&&((i=(o=this.options).onChange)==null||i.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,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=i,this.notify(l!==i,i)}))}},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,i=new Map;for(let l=r-1;l>=0;l--){const s=t[l];if(o.has(s.lane))continue;const a=i.get(s.lane);if(a==null||s.end>a.end?i.set(s.lane,s):s.end<a.end&&o.set(s.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((l,s)=>l.end===s.end?l.index-s.index:l.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,o,i,l)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:l}),{key:!1}),this.getMeasurements=Ge(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:l},s)=>{var a;if(!l)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 m=this.measurementsCache.slice(0,c);for(let h=c;h<t;h++){let x=(a=this.measurementsCache[h])==null?void 0:a.measureElement;x||(x=F=>{const P=i(h),A=this.elementsCache.get(P);if(!F){A&&(this.observer.unobserve(A),this.elementsCache.delete(P));return}A!==F&&(A&&this.observer.unobserve(A),this.observer.observe(F),this.elementsCache.set(P,F)),F.isConnected&&this.resizeItem(h,this.options.measureElement(F,void 0,this))});const p=i(h),g=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),v=g?g.end+this.options.gap:r+o,b=s.get(p),y=typeof b=="number"?b:this.options.estimateSize(h),w=v+y,C=g?g.lane:h%this.options.lanes;m[h]={index:h,start:v,size:y,end:w,key:p,lane:C,measureElement:x}}return this.measurementsCache=m,m},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Ge(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,r,o)=>this.range=t.length>0&&r>0?Hr({measurements:t,outerSize:r,scrollOffset:o}):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,o,i)=>r===null?[]:t({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:i}),{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),i=this.getMeasurements()[o];if(!i||!t.isConnected){this.elementsCache.forEach((s,a)=>{s===t&&(this.observer.unobserve(t),this.elementsCache.delete(a))});return}const l=this.elementsCache.get(i.key);l!==t&&(l&&this.observer.unobserve(l),this.observer.observe(t),this.elementsCache.set(i.key,t)),this.resizeItem(o,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const o=this.getMeasurements()[t];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,l=r-i;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,l,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,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=Ge(()=>[this.getIndexes(),this.getMeasurements()],(t,r)=>{const o=[];for(let i=0,l=t.length;i<l;i++){const s=t[i],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[hn(0,r.length-1,o=>Nt(r[o]).start,t)])},this.getOffsetForAlignment=(t,r)=>{const o=this.getSize(),i=this.getScrollOffset();r==="auto"&&(t<=i?r="start":t>=i+o?r="end":r="start"),r==="start"?t=t:r==="end"?t=t-o:r==="center"&&(t=t-o/2);const l=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[l]:this.scrollElement[l]: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 i=this.getSize(),l=this.getScrollOffset();if(r==="auto")if(o.end>=l+i-this.options.scrollPaddingEnd)r="end";else if(o.start<=l+this.options.scrollPaddingStart)r="start";else return[l,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 i=this.getOffsetForIndex(t,r);if(!i)return;const[l,s]=i;this._scrollToOffset(l,{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));Mr(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(i=>i.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 hn=(e,n,t,r)=>{for(;e<=n;){const o=(e+n)/2|0,i=t(o);if(i<r)e=o+1;else if(i>r)n=o-1;else return o}return e>0?e-1:0};function Hr({measurements:e,outerSize:n,scrollOffset:t}){const r=e.length-1,i=hn(0,r,s=>e[s].start,t);let l=i;for(;l<r&&e[l].end<t+n;)l++;return{startIndex:i,endIndex:l}}const Vr=typeof document<"u"?E.useLayoutEffect:E.useEffect;function Yr(e){const n=E.useReducer(()=>({}),{})[1],t={...e,onChange:(o,i)=>{var l;i?cn.flushSync(n):n(),(l=e.onChange)==null||l.call(e,o,i)}},[r]=E.useState(()=>new Ur(t));return r.setOptions(t),E.useEffect(()=>r._didMount(),[]),Vr(()=>r._willUpdate()),r}function qr(e){return Yr({observeElementRect:_r,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,X=(e,n)=>{Oe.isServer?u.useEffect(e,n):u.useLayoutEffect(e,n)};function Te(e){let n=u.useRef(e);return X(()=>{n.current=e},[e]),n}function It(e,n){let[t,r]=u.useState(e),o=Te(e);return X(()=>r(o.current),[o,r,...n]),t}let N=function(e){let n=Te(e);return u.useCallback((...t)=>n.current(...t),[n])};function vn(e,n,t){let[r,o]=u.useState(t),i=e!==void 0,l=u.useRef(i),s=u.useRef(!1),a=u.useRef(!1);return i&&!l.current&&!s.current?(s.current=!0,l.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&l.current&&!a.current&&(a.current=!0,l.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,N(c=>(i||o(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 ye(){let e=[],n={addEventListener(t,r,o,i){return t.addEventListener(r,o,i),n.add(()=>t.removeEventListener(r,o,i))},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,o){let i=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:o}),this.add(()=>{Object.assign(t.style,{[r]:i})})},group(t){let r=ye();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(ye);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 xe=(gn=u.useId)!=null?gn:function(){let e=ze(),[n,t]=u.useState(e?()=>Oe.nextId():null);return X(()=>{n===null&&t(Oe.nextId())},[n]),n!=null?""+n:void 0};function ae(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,ae),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 kt=["[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(kt)).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=ut(e))==null?void 0:t.body)?!1:ae(n,{0(){return e.matches(kt)},1(){let r=e;for(;r!==null;){if(r.matches(kt))return!0;r=r.parentElement}return!1}})}function wn(e){let n=ut(e);ye().nextFrame(()=>{n&&!$t(n.activeElement,0)&&ke(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 ke(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 Mt(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),i=n(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&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:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?t?Mt(e):e:xn(e);o.length>0&&l.length>1&&(l=l.filter(p=>!o.includes(p))),r=r??i.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,l.indexOf(r))-1;if(n&4)return Math.max(0,l.indexOf(r))+1;if(n&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=n&32?{preventScroll:!0}:{},m=0,h=l.length,x;do{if(m>=h||m+h<=0)return 0;let p=a+m;if(n&16)p=(p+h)%h;else{if(p<0)return 3;if(p>=h)return 1}x=l[p],x==null||x.focus(c),m+=s}while(x!==i.activeElement);return n&6&&to(x)&&x.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=Te(n);u.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,t),()=>document.removeEventListener(e,o,t)},[e,t])}function Sn(e,n,t){let r=Te(n);u.useEffect(()=>{function o(i){r.current(i)}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(l,s){if(!r.current||l.defaultPrevented)return;let a=s(l);if(a===null||!a.getRootNode().contains(a)||!a.isConnected)return;let c=function m(h){return typeof h=="function"?m(h()):Array.isArray(h)||h instanceof Set?h:[h]}(e);for(let m of c){if(m===null)continue;let h=m instanceof HTMLElement?m:m.current;if(h!=null&&h.contains(a)||l.composed&&l.composedPath().includes(h))return}return!$t(a,Pt.Loose)&&a.tabIndex!==-1&&l.preventDefault(),n(l,a)}let i=u.useRef(null);ct("pointerdown",l=>{var s,a;r.current&&(i.current=((a=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:a[0])||l.target)},!0),ct("mousedown",l=>{var s,a;r.current&&(i.current=((a=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:a[0])||l.target)},!0),ct("click",l=>{En()||i.current&&(o(l,()=>i.current),i.current=null)},!0),ct("touchend",l=>o(l,()=>l.target instanceof HTMLElement?l.target:null),!0),Sn("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Le(...e){return u.useMemo(()=>ut(...e),[...e])}function Tn(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(()=>Tn(e));return X(()=>{r(Tn(e))},[e.type,e.as]),X(()=>{t||n.current&&n.current instanceof HTMLButtonElement&&!n.current.hasAttribute("type")&&r("button")},[t,n]),t}let Cn=Symbol();function oo(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=N(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 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 o=u.useRef(n),i=u.useRef(t);u.useEffect(()=>{o.current=n,i.current=t},[n,t]),X(()=>{if(!e||!r)return;let l=ut(e);if(!l)return;let s=o.current,a=i.current,c=Object.assign(h=>s(h),{acceptNode:s}),m=l.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;m.nextNode();)a(m.currentNode)},[e,r,o,i])}function Ke(e,n){let t=u.useRef([]),r=N(e);u.useEffect(()=>{let o=[...t.current];for(let[i,l]of n.entries())if(t.current[i]!==l){let s=r(n,o);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:o,visible:i=!0,name:l,mergeRefs:s}){s=s??io;let a=Fn(n,e);if(i)return ft(a,t,r,l,s);let c=o??0;if(c&2){let{static:m=!1,...h}=a;if(m)return ft(h,t,r,l,s)}if(c&1){let{unmount:m=!0,...h}=a;return ae(m?0:1,{0(){return null},1(){return ft({...h,hidden:!0,style:{display:"none"}},t,r,l,s)}})}return ft(a,t,r,l,s)}function ft(e,n={},t,r,o){let{as:i=t,children:l,refName:s="ref",...a}=Lt(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},m=typeof l=="function"?l(n):l;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(n));let h={};if(n){let x=!1,p=[];for(let[g,v]of Object.entries(n))typeof v=="boolean"&&(x=!0),v===!0&&p.push(g);x&&(h["data-headlessui-state"]=p.join(" "))}if(i===u.Fragment&&Object.keys(mt(a)).length>0){if(!u.isValidElement(m)||Array.isArray(m)&&m.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
+ `),"","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 x=m.props,p=typeof(x==null?void 0:x.className)=="function"?(...g)=>dt(x==null?void 0:x.className(...g),a.className):dt(x==null?void 0:x.className,a.className),v=p?{className:p}:{};return u.cloneElement(m,Object.assign({},Fn(m.props,mt(Lt(a,["ref"]))),h,c,{ref:o(m.ref,c.ref)},v))}return u.createElement(i,Object.assign({},Lt(a,["ref"]),i!==u.Fragment&&c,i!==u.Fragment&&h),m)}function io(...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 Fn(...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,...i){let l=t[r];for(let s of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return n}function le(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 lo="div";var ze=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ze||{});function so(e,n){var t;let{features:r=1,...o}=e,i={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:i,theirProps:o,slot:{},defaultTag:lo,name:"Hidden"})}let Je=le(so),_t=u.createContext(null);_t.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(_t)}function Rt({value:e,children:n}){return u.createElement(_t.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 ee=(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))(ee||{});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 i=0;i<t.length;++i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 1:{for(let i=o-1;i>=0;--i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 2:{for(let i=o+1;i<t.length;++i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 3:{for(let i=t.length-1;i>=0;--i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 4:{for(let i=0;i<t.length;++i)if(n.resolveId(t[i],i,t)===e.id)return i;return r}case 5:return null;default:co(e)}}function In(e={},n=null,t=[]){for(let[r,o]of Object.entries(e))$n(t,kn(n,r),o);return t}function kn(e,n){return e?e+"["+n+"]":n}function $n(e,n,t){if(Array.isArray(t))for(let[r,o]of t.entries())$n(e,kn(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,""]):In(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 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 K=(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))(K||{}),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 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((l,s)=>l.dataRef.current.order-s.dataRef.current.order):Mt(r,l=>l.dataRef.current.domRef.current),i=t?o.indexOf(t):null;return i===-1&&(i=null),{options:o,activeOptionIndex:i}}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,o,i,l;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 m=n.focus===ee.Specific?n.idx:Bt(n,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var x,p;return(p=(x=e.activeOptionIndex)!=null?x:e.virtual.options.findIndex(v=>!e.virtual.disabled(v)))!=null?p:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),h=(i=n.trigger)!=null?i:2;return e.activeOptionIndex===m&&e.activationTrigger===h?e:{...e,activeOptionIndex:m,activationTrigger:h}}let s=zt(e);if(s.activeOptionIndex===null){let m=s.options.findIndex(h=>!h.dataRef.current.disabled);m!==-1&&(s.activeOptionIndex=m)}let a=n.focus===ee.Specific?n.idx:Bt(n,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled}),c=(l=n.trigger)!=null?l: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 i=n.payload,l=zt(e,a=>(a.push(i),a));e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(n.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(i));let s={...e,...l,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 i=o.findIndex(l=>l.id===n.id);return i!==-1&&o.splice(i,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 Xe(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,Xe),t}return n}let Pn=u.createContext(null);function bo(e){var n;let t=Le("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]),i=qr({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}),[l,s]=u.useState(0);return X(()=>{s(a=>a+1)},[(n=t.virtual)==null?void 0:n.options]),u.createElement(Pn.Provider,{value:i},u.createElement("div",{style:{position:"relative",width:"100%",height:`${i.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&&i.scrollToIndex(t.activeOptionIndex)}}},i.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:`${l}-${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 Le(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,Le),t}return n}function xo(e,n){return ae(n.type,go,e,n)}let wo=u.Fragment;function yo(e,n){let{value:t,defaultValue:r,onChange:o,form:i,name:l,by:s=null,disabled:a=!1,__demoMode:c=!1,nullable:m=!1,multiple:h=!1,immediate:x=!1,virtual:p=null,...v}=e,g=!1,b=null,[y=h?[]:void 0,w]=vn(t,o,r),[C,F]=u.useReducer(xo,{dataRef:u.createRef(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),$=u.useRef(!1),A=u.useRef({static:!1,hold:!1}),Y=u.useRef(null),q=u.useRef(null),k=u.useRef(null),L=u.useRef(null),z=N(typeof s=="string"?(D,G)=>{let W=s;return(D==null?void 0:D[W])===(G==null?void 0:G[W])}:s??((D,G)=>D===G)),J=N(D=>C.options.findIndex(G=>z(G.dataRef.current.value,D))),ne=u.useCallback(D=>ae(T.mode,{1:()=>y.some(G=>z(G,D)),0:()=>z(y,D)}),[y]),ue=N(D=>C.activeOptionIndex===J(D)),T=u.useMemo(()=>({...C,immediate:g,optionsPropsRef:A,labelRef:Y,inputRef:q,buttonRef:k,optionsRef:L,value:y,defaultValue:r,disabled:a,mode:h?1:0,virtual:C.virtual,get activeOptionIndex(){if($.current&&C.activeOptionIndex===null&&C.options.length>0){let D=C.options.findIndex(G=>!G.dataRef.current.disabled);if(D!==-1)return D}return C.activeOptionIndex},calculateIndex:J,compare:z,isSelected:ne,isActive:ue,nullable:m,__demoMode:c}),[y,r,a,h,m,c,C,b]);X(()=>{},[b,void 0]),X(()=>{C.dataRef.current=T},[T]),At([T.buttonRef,T.inputRef,T.optionsRef],()=>Te.closeCombobox(),T.comboboxState===0);let re=u.useMemo(()=>{var D,G,W;return{open:T.comboboxState===0,disabled:a,activeIndex:T.activeOptionIndex,activeOption:T.activeOptionIndex===null?null:T.virtual?T.virtual.options[(D=T.activeOptionIndex)!=null?D:0]:(W=(G=T.options[T.activeOptionIndex])==null?void 0:G.dataRef.current.value)!=null?W:null,value:y}},[T,a,y]),R=N(()=>{if(T.activeOptionIndex!==null){if(T.virtual)he(T.virtual.options[T.activeOptionIndex]);else{let{dataRef:D}=T.options[T.activeOptionIndex];he(D.current.value)}Te.goToOption(ee.Specific,T.activeOptionIndex)}}),te=N(()=>{F({type:0}),$.current=!0}),O=N(()=>{F({type:1}),$.current=!1}),P=N((D,G,W)=>($.current=!1,D===ee.Specific?F({type:2,focus:ee.Specific,idx:G,trigger:W}):F({type:2,focus:D,trigger:W}))),U=N((D,G)=>(F({type:3,payload:{id:D,dataRef:G}}),()=>{T.isActive(G.current.value)&&($.current=!0),F({type:4,id:D})})),ce=N(D=>(F({type:5,id:D}),()=>F({type:5,id:null}))),he=N(D=>ae(T.mode,{0(){return w==null?void 0:w(D)},1(){let G=T.value.slice(),W=G.findIndex(ge=>z(ge,D));return W===-1?G.push(D):G.splice(W,1),w==null?void 0:w(G)}})),ve=N(D=>{F({type:6,trigger:D})}),Te=u.useMemo(()=>({onChange:he,registerOption:U,registerLabel:ce,goToOption:P,closeCombobox:O,openCombobox:te,setActivationTrigger:ve,selectActiveOption:R}),[]),M=n===null?{}:{ref:n},H=u.useRef(null),se=je();return u.useEffect(()=>{H.current&&r!==void 0&&se.addEventListener(H.current,"reset",()=>{w==null||w(r)})},[H,w]),u.createElement(Wt.Provider,{value:Te},u.createElement(Ut.Provider,{value:T},u.createElement(Rt,{value:ae(T.comboboxState,{0:fe.Open,1:fe.Closed})},l!=null&&y!=null&&In({[l]:y}).map(([D,G],W)=>u.createElement(Je,{features:ze.Hidden,ref:W===0?ge=>{var be;H.current=(be=ge==null?void 0:ge.closest("form"))!=null?be:null}:void 0,...mt({key:D,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:a,name:D,value:G})})),ie({ourProps:M,theirProps:v,slot:re,defaultTag:wo,name:"Combobox"}))))}let Eo="input";function So(e,n){var t,r,o,i,l;let s=xe(),{id:a=`headlessui-combobox-input-${s}`,onChange:c,displayValue:m,type:h="text",...x}=e,p=Le("Combobox.Input"),v=Xe("Combobox.Input"),g=de(p.inputRef,n),b=De(p.inputRef),y=u.useRef(!1),w=je(),C=N(()=>{v.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),v.goToOption(ee.Nothing)}),F=function(){var T;return typeof m=="function"&&p.value!==void 0?(T=m(p.value))!=null?T:"":typeof p.value=="string"?p.value:""}();Ke(([T,re],[R,te])=>{if(y.current)return;let O=p.inputRef.current;O&&((te===0&&re===1||T!==R)&&(O.value=T),requestAnimationFrame(()=>{if(y.current||!O||(b==null?void 0:b.activeElement)!==O)return;let{selectionStart:P,selectionEnd:U}=O;Math.abs((U??0)-(P??0))===0&&P===0&&O.setSelectionRange(O.value.length,O.value.length)}))},[F,p.comboboxState,b]),Ke(([T],[re])=>{if(T===0&&re===1){if(y.current)return;let R=p.inputRef.current;if(!R)return;let te=R.value,{selectionStart:O,selectionEnd:P,selectionDirection:U}=R;R.value="",R.value=te,U!==null?R.setSelectionRange(O,P,U):R.setSelectionRange(O,P)}},[p.comboboxState]);let $=u.useRef(!1),A=N(()=>{$.current=!0}),Y=N(()=>{w.nextFrame(()=>{$.current=!1})}),q=N(T=>{switch(y.current=!0,T.key){case K.Enter:if(y.current=!1,p.comboboxState!==0||$.current)return;if(T.preventDefault(),T.stopPropagation(),p.activeOptionIndex===null){v.closeCombobox();return}v.selectActiveOption(),p.mode===0&&v.closeCombobox();break;case K.ArrowDown:return y.current=!1,T.preventDefault(),T.stopPropagation(),ae(p.comboboxState,{0:()=>v.goToOption(ee.Next),1:()=>v.openCombobox()});case K.ArrowUp:return y.current=!1,T.preventDefault(),T.stopPropagation(),ae(p.comboboxState,{0:()=>v.goToOption(ee.Previous),1:()=>{v.openCombobox(),w.nextFrame(()=>{p.value||v.goToOption(ee.Last)})}});case K.Home:if(T.shiftKey)break;return y.current=!1,T.preventDefault(),T.stopPropagation(),v.goToOption(ee.First);case K.PageUp:return y.current=!1,T.preventDefault(),T.stopPropagation(),v.goToOption(ee.First);case K.End:if(T.shiftKey)break;return y.current=!1,T.preventDefault(),T.stopPropagation(),v.goToOption(ee.Last);case K.PageDown:return y.current=!1,T.preventDefault(),T.stopPropagation(),v.goToOption(ee.Last);case K.Escape:return y.current=!1,p.comboboxState!==0?void 0:(T.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&T.stopPropagation(),p.nullable&&p.mode===0&&p.value===null&&C(),v.closeCombobox());case K.Tab:if(y.current=!1,p.comboboxState!==0)return;p.mode===0&&p.activationTrigger!==1&&v.selectActiveOption(),v.closeCombobox();break}}),k=N(T=>{c==null||c(T),p.nullable&&p.mode===0&&T.target.value===""&&C(),v.openCombobox()}),L=N(T=>{var re,R,te;let O=(re=T.relatedTarget)!=null?re:Ce.find(P=>P!==T.currentTarget);if(y.current=!1,!((R=p.optionsRef.current)!=null&&R.contains(O))&&!((te=p.buttonRef.current)!=null&&te.contains(O))&&p.comboboxState===0)return T.preventDefault(),p.mode===0&&(p.nullable&&p.value===null?C():p.activationTrigger!==1&&v.selectActiveOption()),v.closeCombobox()}),z=N(T=>{var re,R,te;let O=(re=T.relatedTarget)!=null?re:Ce.find(P=>P!==T.currentTarget);(R=p.buttonRef.current)!=null&&R.contains(O)||(te=p.optionsRef.current)!=null&&te.contains(O)||p.disabled||p.immediate&&p.comboboxState!==0&&(v.openCombobox(),w.nextFrame(()=>{v.setActivationTrigger(1)}))}),J=It(()=>{if(p.labelId)return[p.labelId].join(" ")},[p.labelId]),ne=u.useMemo(()=>({open:p.comboboxState===0,disabled:p.disabled}),[p]),ue={ref:g,id:a,role:"combobox",type:h,"aria-controls":(t=p.optionsRef.current)==null?void 0:t.id,"aria-expanded":p.comboboxState===0,"aria-activedescendant":p.activeOptionIndex===null?void 0:p.virtual?(r=p.options.find(T=>{var re;return!((re=p.virtual)!=null&&re.disabled(T.dataRef.current.value))&&p.compare(T.dataRef.current.value,p.virtual.options[p.activeOptionIndex])}))==null?void 0:r.id:(o=p.options[p.activeOptionIndex])==null?void 0:o.id,"aria-labelledby":J,"aria-autocomplete":"list",defaultValue:(l=(i=e.defaultValue)!=null?i:p.defaultValue!==void 0?m==null?void 0:m(p.defaultValue):null)!=null?l:p.defaultValue,disabled:p.disabled,onCompositionStart:A,onCompositionEnd:Y,onKeyDown:q,onChange:k,onFocus:z,onBlur:L};return ie({ourProps:ue,theirProps:x,slot:ne,defaultTag:Eo,name:"Combobox.Input"})}let To="button";function Co(e,n){var t;let r=Le("Combobox.Button"),o=Xe("Combobox.Button"),i=de(r.buttonRef,n),l=xe(),{id:s=`headlessui-combobox-button-${l}`,...a}=e,c=je(),m=N(g=>{switch(g.key){case K.ArrowDown:return g.preventDefault(),g.stopPropagation(),r.comboboxState===1&&o.openCombobox(),c.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})});case K.ArrowUp:return g.preventDefault(),g.stopPropagation(),r.comboboxState===1&&(o.openCombobox(),c.nextFrame(()=>{r.value||o.goToOption(ee.Last)})),c.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})});case K.Escape:return r.comboboxState!==0?void 0:(g.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&g.stopPropagation(),o.closeCombobox(),c.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})}));default:return}}),h=N(g=>{if(pt(g.currentTarget))return g.preventDefault();r.comboboxState===0?o.closeCombobox():(g.preventDefault(),o.openCombobox()),c.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})})}),x=It(()=>{if(r.labelId)return[r.labelId,s].join(" ")},[r.labelId,s]),p=u.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),v={ref:i,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":x,disabled:r.disabled,onClick:h,onKeyDown:m};return ie({ourProps:v,theirProps:a,slot:p,defaultTag:To,name:"Combobox.Button"})}let Oo="label";function jo(e,n){let t=xe(),{id:r=`headlessui-combobox-label-${t}`,...o}=e,i=Le("Combobox.Label"),l=Xe("Combobox.Label"),s=de(i.labelRef,n);X(()=>l.registerLabel(r),[r]);let a=N(()=>{var m;return(m=i.inputRef.current)==null?void 0:m.focus({preventScroll:!0})}),c=u.useMemo(()=>({open:i.comboboxState===0,disabled:i.disabled}),[i]);return ie({ourProps:{ref:s,id:r,onClick:a},theirProps:o,slot:c,defaultTag:Oo,name:"Combobox.Label"})}let No="ul",Fo=$e.RenderStrategy|$e.Static;function Io(e,n){let t=xe(),{id:r=`headlessui-combobox-options-${t}`,hold:o=!1,...i}=e,l=Le("Combobox.Options"),s=de(l.optionsRef,n),a=Qe(),c=a!==null?(a&fe.Open)===fe.Open:l.comboboxState===0;X(()=>{var p;l.optionsPropsRef.current.static=(p=e.static)!=null?p:!1},[l.optionsPropsRef,e.static]),X(()=>{l.optionsPropsRef.current.hold=o},[l.optionsPropsRef,o]),Nn({container:l.optionsRef.current,enabled:l.comboboxState===0,accept(p){return p.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:p.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute("role","none")}});let m=It(()=>{var p,v;return(v=l.labelId)!=null?v:(p=l.buttonRef.current)==null?void 0:p.id},[l.labelId,l.buttonRef.current]),h=u.useMemo(()=>({open:l.comboboxState===0,option:void 0}),[l]),x={"aria-labelledby":m,role:"listbox","aria-multiselectable":l.mode===1?!0:void 0,id:r,ref:s};return l.virtual&&l.comboboxState===0&&Object.assign(i,{children:u.createElement(bo,null,i.children)}),ie({ourProps:x,theirProps:i,slot:h,defaultTag:No,features:Fo,visible:c,name:"Combobox.Options"})}let ko="li";function $o(e,n){var t;let r=xe(),{id:o=`headlessui-combobox-option-${r}`,disabled:i=!1,value:l,order:s=null,...a}=e,c=Le("Combobox.Option"),m=Xe("Combobox.Option"),h=c.virtual?c.activeOptionIndex===c.calculateIndex(l):c.activeOptionIndex===null?!1:((t=c.options[c.activeOptionIndex])==null?void 0:t.id)===o,x=c.isSelected(l),p=u.useRef(null),v=Se({disabled:i,value:l,domRef:p,order:s}),g=u.useContext(Pn),b=de(n,p,g?g.measureElement:null),y=N(()=>m.onChange(l));X(()=>m.registerOption(o,v),[v,o]);let w=u.useRef(!(c.virtual||c.__demoMode));X(()=>{if(!c.virtual||!c.__demoMode)return;let L=ye();return L.requestAnimationFrame(()=>{w.current=!0}),L.dispose},[c.virtual,c.__demoMode]),X(()=>{if(!w.current||c.comboboxState!==0||!h||c.activationTrigger===0)return;let L=ye();return L.requestAnimationFrame(()=>{var z,J;(J=(z=p.current)==null?void 0:z.scrollIntoView)==null||J.call(z,{block:"nearest"})}),L.dispose},[p,h,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let C=N(L=>{var z;if(i||(z=c.virtual)!=null&&z.disabled(l))return L.preventDefault();y(),En()||requestAnimationFrame(()=>{var J;return(J=c.inputRef.current)==null?void 0:J.focus({preventScroll:!0})}),c.mode===0&&requestAnimationFrame(()=>m.closeCombobox())}),F=N(()=>{var L;if(i||(L=c.virtual)!=null&&L.disabled(l))return m.goToOption(ee.Nothing);let z=c.calculateIndex(l);m.goToOption(ee.Specific,z)}),$=jn(),A=N(L=>$.update(L)),Y=N(L=>{var z;if(!$.wasMoved(L)||i||(z=c.virtual)!=null&&z.disabled(l)||h)return;let J=c.calculateIndex(l);m.goToOption(ee.Specific,J,0)}),q=N(L=>{var z;$.wasMoved(L)&&(i||(z=c.virtual)!=null&&z.disabled(l)||h&&(c.optionsPropsRef.current.hold||m.goToOption(ee.Nothing)))}),k=u.useMemo(()=>({active:h,selected:x,disabled:i}),[h,x,i]);return ie({ourProps:{id:o,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":x,disabled:void 0,onClick:C,onFocus:F,onPointerEnter:A,onMouseEnter:A,onPointerMove:Y,onMouseMove:Y,onPointerLeave:q,onMouseLeave:q},theirProps:a,slot:k,defaultTag:ko,name:"Combobox.Option"})}let Po=le(yo),Mo=le(Co),Ao=le(So),Do=le(jo),Lo=le(Io),_o=le($o),Fe=Object.assign(Po,{Input:Ao,Button:Mo,Label:Do,Options:Lo,Option:_o});function Mn(e,n,t,r){let o=Se(t);u.useEffect(()=>{e=e??window;function i(l){o.current(l)}return e.addEventListener(n,i,r),()=>e.removeEventListener(n,i,r)},[e,n,r])}function et(){let e=u.useRef(!1);return X(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function An(e){let n=N(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 Ln=(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))(Ln||{});function zo(e,n){let t=u.useRef(null),r=de(t,n),{initialFocus:o,containers:i,features:l=30,...s}=e;Be()||(l=1);let a=De(t);Ho({ownerDocument:a},!!(l&16));let c=Vo({ownerDocument:a,container:t,initialFocus:o},!!(l&2));Yo({ownerDocument:a,container:t,containers:i,previousActiveElement:c},!!(l&8));let m=Ro(),h=N(g=>{let b=t.current;b&&(y=>y())(()=>{ae(m.current,{[tt.Forwards]:()=>{Ze(b,Ne.First,{skipElements:[g.relatedTarget]})},[tt.Backwards]:()=>{Ze(b,Ne.Last,{skipElements:[g.relatedTarget]})}})})}),x=je(),p=u.useRef(!1),v={ref:r,onKeyDown(g){g.key=="Tab"&&(p.current=!0,x.requestAnimationFrame(()=>{p.current=!1}))},onBlur(g){let b=Dn(i);t.current instanceof HTMLElement&&b.add(t.current);let y=g.relatedTarget;y instanceof HTMLElement&&y.dataset.headlessuiFocusGuard!=="true"&&(_n(b,y)||(p.current?Ze(t.current,ae(m.current,{[tt.Forwards]:()=>Ne.Next,[tt.Backwards]:()=>Ne.Previous})|Ne.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&ke(g.target)))}};return u.createElement(u.Fragment,null,!!(l&4)&&u.createElement(Je,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:ze.Focusable}),ie({ourProps:v,theirProps:s,defaultTag:Bo,name:"FocusTrap"}),!!(l&4)&&u.createElement(Je,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:ze.Focusable}))}let Wo=le(zo),nt=Object.assign(Wo,{features:Ln});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]),N(()=>{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)&&ke(t())},[n]),An(()=>{n&&ke(t())})}function Vo({ownerDocument:e,container:n,initialFocus:t},r){let o=u.useRef(null),i=et();return Ke(()=>{if(!r)return;let l=n.current;l&&at(()=>{if(!i.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(l.contains(s)){o.current=s;return}t!=null&&t.current?ke(t.current):Ze(l,Ne.First)===bn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function Yo({ownerDocument:e,container:n,containers:t,previousActiveElement:r},o){let i=et();Mn(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!i.current)return;let s=Dn(t);n.current instanceof HTMLElement&&s.add(n.current);let a=r.current;if(!a)return;let c=l.target;c&&c instanceof HTMLElement?_n(s,c)?(r.current=c,ke(c)):(l.preventDefault(),l.stopPropagation(),ke(a)):ke(r.current)},!0)}function _n(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 Ht(e){return u.createElement(Rn.Provider,{value:e.force},e.children)}function Go(e){let n=qo(),t=u.useContext(Bn),r=De(e),[o,i]=u.useState(()=>{if(!n&&t!==null||Oe.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;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&&i(t.current)},[t,i,n]),o}let Zo=u.Fragment;function Ko(e,n){let t=e,r=u.useRef(null),o=de(oo(m=>{r.current=m}),n),i=De(r),l=Go(r),[s]=u.useState(()=>{var m;return Oe.isServer?null:(m=i==null?void 0:i.createElement("div"))!=null?m:null}),a=u.useContext(Vt),c=Be();return X(()=>{!l||!s||l.contains(s)||(s.setAttribute("data-headlessui-portal",""),l.appendChild(s))},[l,s]),X(()=>{if(s&&a)return a.register(s)},[a,s]),An(()=>{var m;!l||!s||(s instanceof Node&&l.contains(s)&&l.removeChild(s),l.childNodes.length<=0&&((m=l.parentElement)==null||m.removeChild(l)))}),c?!l||!s?null:cn.createPortal(ie({ourProps:{ref:o},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,o={ref:de(n)};return u.createElement(Bn.Provider,{value:t},ie({ourProps:o,theirProps:r,defaultTag:Jo,name:"Popover.Group"}))}let Vt=u.createContext(null);function Xo(){let e=u.useContext(Vt),n=u.useRef([]),t=N(i=>(n.current.push(i),e&&e.register(i),()=>r(i))),r=N(i=>{let l=n.current.indexOf(i);l!==-1&&n.current.splice(l,1),e&&e.unregister(i)}),o=u.useMemo(()=>({register:t,unregister:r,portals:n}),[t,r,n]);return[n,u.useMemo(()=>function({children:i}){return u.createElement(Vt.Provider,{value:o},i)},[o])]}let ei=le(Ko),ti=le(Qo),Yt=Object.assign(ei,{Group:ti});function ni(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}const ri=typeof Object.is=="function"?Object.is:ni,{useState:oi,useEffect:ii,useLayoutEffect:li,useDebugValue:si}=E;function ai(e,n,t){const r=n(),[{inst:o},i]=oi({inst:{value:r,getSnapshot:n}});return li(()=>{o.value=r,o.getSnapshot=n,qt(o)&&i({inst:o})},[e,r,n]),ii(()=>(qt(o)&&i({inst:o}),e(()=>{qt(o)&&i({inst:o})})),[e]),si(r),r}function qt(e){const n=e.getSnapshot,t=e.value;try{const r=n();return!ri(t,r)}catch{return!0}}function ui(e,n,t){return n()}const ci=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",di=!ci,fi=di?ui:ai,mi="useSyncExternalStore"in E?(e=>e.useSyncExternalStore)(E):fi;function pi(e){return mi(e.subscribe,e.getSnapshot,e.getSnapshot)}function hi(e,n){let t=e(),r=new Set;return{getSnapshot(){return t},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=n[o].call(t,...i);l&&(t=l,r.forEach(s=>s()))}}}function vi(){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,i=e-o;t.style(r,"paddingRight",`${i}px`)}}}function gi(){return yn()?{before({doc:e,d:n,meta:t}){function r(o){return t.containers.flatMap(i=>i()).some(i=>i.contains(o))}n.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=ye();s.style(e.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=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),m=e.querySelector(c);m&&!r(m)&&(l=m)}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;i!==a&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function bi(){return{before({doc:e,d:n}){n.style(e.documentElement,"overflow","hidden")}}}function xi(e){let n={};for(let t of e)Object.assign(n,t(n));return n}let _e=hi(()=>new Map,{PUSH(e,n){var t;let r=(t=this.get(e))!=null?t:{doc:e,count:0,d:ye(),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:xi(t)},o=[gi(),vi(),bi()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});_e.subscribe(()=>{let e=_e.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)&&_e.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&_e.dispatch("TEARDOWN",t)}});function wi(e,n,t){let r=pi(_e),o=e?r.get(e):void 0,i=o?o.count>0:!1;return X(()=>{if(!(!e||!n))return _e.dispatch("PUSH",e,t),()=>_e.dispatch("POP",e,t)},[n,e]),i}let Gt=new Map,rt=new Map;function zn(e,n=!0){X(()=>{var t;if(!n)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var l;if(!r)return;let s=(l=rt.get(r))!=null?l:1;if(s===1?rt.delete(r):rt.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 i=(t=rt.get(r))!=null?t:0;return rt.set(r,i+1),i!==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 yi({defaultContainers:e=[],portals:n,mainTreeNodeRef:t}={}){var r;let o=u.useRef((r=t==null?void 0:t.current)!=null?r:null),i=De(o),l=N(()=>{var s,a,c;let m=[];for(let h of e)h!==null&&(h instanceof HTMLElement?m.push(h):"current"in h&&h.current instanceof HTMLElement&&m.push(h.current));if(n!=null&&n.current)for(let h of n.current)m.push(h);for(let h of(s=i==null?void 0:i.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)||m.some(x=>h.contains(x))||m.push(h));return m});return{resolveContainers:l,contains:N(s=>l().some(a=>a.contains(s))),mainTreeNodeRef:o,MainTreeNode:u.useMemo(()=>function(){return t!=null?null:u.createElement(Je,{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 Ei(){return u.useContext(Zt)}function Si({children:e,onUpdate:n,type:t,element:r,enabled:o}){let i=Ei(),l=N((...s)=>{n==null||n(...s),i(...s)});return X(()=>{let s=o===void 0||o===!0;return s&&l(0,t,r),()=>{s&&l(1,t,r)}},[l,t,r,o]),u.createElement(Zt.Provider,{value:l},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=N(i=>(n(l=>[...l,i]),()=>n(l=>{let s=l.slice(),a=s.indexOf(i);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(Wn.Provider,{value:o},t.children)},[n])]}let Ti="p";function Ci(e,n){let t=xe(),{id:r=`headlessui-description-${t}`,...o}=e,i=Un(),l=de(n);X(()=>i.register(r),[r,i.register]);let s={ref:l,...i.props,id:r};return ie({ourProps:s,theirProps:o,slot:i.slot||{},defaultTag:Ti,name:i.name||"Description"})}let Oi=le(Ci),Vn=Object.assign(Oi,{});var ji=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ji||{}),Ni=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ni||{});let Fi={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 Ii(e,n,t=()=>[document.body]){wi(e,n,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],t]}})}function ki(e,n){return ae(n.type,Fi,e,n)}let $i="div",Pi=$e.RenderStrategy|$e.Static;function Mi(e,n){let t=xe(),{id:r=`headlessui-dialog-${t}`,open:o,onClose:i,initialFocus:l,role:s="dialog",__demoMode:a=!1,...c}=e,[m,h]=u.useState(0),x=u.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(x.current||(x.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=Qe();o===void 0&&p!==null&&(o=(p&fe.Open)===fe.Open);let v=u.useRef(null),g=de(v,n),b=De(v),y=e.hasOwnProperty("open")||p!==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 i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let C=o?0:1,[F,$]=u.useReducer(ki,{titleId:null,descriptionId:null,panelRef:u.createRef()}),A=N(()=>i(!1)),Y=N(W=>$({type:0,id:W})),q=Be()?a?!1:C===0:!1,k=m>1,L=u.useContext(ht)!==null,[z,J]=Xo(),ne={get current(){var W;return(W=F.panelRef.current)!=null?W:v.current}},{resolveContainers:ue,mainTreeNodeRef:T,MainTreeNode:re}=yi({portals:z,defaultContainers:[ne]}),R=k?"parent":"leaf",te=p!==null?(p&fe.Closing)===fe.Closing:!1,O=L||te?!1:q,P=u.useCallback(()=>{var W,ge;return(ge=Array.from((W=b==null?void 0:b.querySelectorAll("body > *"))!=null?W:[]).find(be=>be.id==="headlessui-portal-root"?!1:be.contains(T.current)&&be instanceof HTMLElement))!=null?ge:null},[T]);zn(P,O);let U=k?!0:q,ce=u.useCallback(()=>{var W,ge;return(ge=Array.from((W=b==null?void 0:b.querySelectorAll("[data-headlessui-portal]"))!=null?W:[]).find(be=>be.contains(T.current)&&be instanceof HTMLElement))!=null?ge:null},[T]);zn(ce,U),At(ue,W=>{W.preventDefault(),A()},!(!q||k));let ve=!(k||C!==0);Mn(b==null?void 0:b.defaultView,"keydown",W=>{ve&&(W.defaultPrevented||W.key===K.Escape&&(W.preventDefault(),W.stopPropagation(),A()))}),Ii(b,!(te||C!==0||L),ue),u.useEffect(()=>{if(C!==0||!v.current)return;let W=new ResizeObserver(ge=>{for(let be of ge){let We=be.target.getBoundingClientRect();We.x===0&&We.y===0&&We.width===0&&We.height===0&&A()}});return W.observe(v.current),()=>W.disconnect()},[C,v,A]);let[M,H]=Hn(),se=u.useMemo(()=>[{dialogState:C,close:A,setTitleId:Y},F],[C,F,A,Y]),D=u.useMemo(()=>({open:C===0}),[C]),G={ref:g,id:r,role:s,"aria-modal":C===0?!0:void 0,"aria-labelledby":F.titleId,"aria-describedby":M};return u.createElement(Si,{type:"Dialog",enabled:C===0,element:v,onUpdate:N((W,ge)=>{ge==="Dialog"&&ae(W,{[Kt.Add]:()=>h(be=>be+1),[Kt.Remove]:()=>h(be=>be-1)})})},u.createElement(Ht,{force:!0},u.createElement(Yt,null,u.createElement(ht.Provider,{value:se},u.createElement(Yt.Group,{target:v},u.createElement(Ht,{force:!1},u.createElement(H,{slot:D,name:"Dialog.Description"},u.createElement(nt,{initialFocus:l,containers:ue,features:q?ae(R,{parent:nt.features.RestoreFocus,leaf:nt.features.All&~nt.features.FocusLock}):nt.features.None},u.createElement(J,null,ie({ourProps:G,theirProps:c,slot:D,defaultTag:$i,features:Pi,visible:C===0,name:"Dialog"}))))))))),u.createElement(re,null))}let Ai="div";function Di(e,n){let t=xe(),{id:r=`headlessui-dialog-overlay-${t}`,...o}=e,[{dialogState:i,close:l}]=ot("Dialog.Overlay"),s=de(n),a=N(m=>{if(m.target===m.currentTarget){if(pt(m.currentTarget))return m.preventDefault();m.preventDefault(),m.stopPropagation(),l()}}),c=u.useMemo(()=>({open:i===0}),[i]);return ie({ourProps:{ref:s,id:r,"aria-hidden":!0,onClick:a},theirProps:o,slot:c,defaultTag:Ai,name:"Dialog.Overlay"})}let Li="div";function _i(e,n){let t=xe(),{id:r=`headlessui-dialog-backdrop-${t}`,...o}=e,[{dialogState:i},l]=ot("Dialog.Backdrop"),s=de(n);u.useEffect(()=>{if(l.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[l.panelRef]);let a=u.useMemo(()=>({open:i===0}),[i]);return u.createElement(Ht,{force:!0},u.createElement(Yt,null,ie({ourProps:{ref:s,id:r,"aria-hidden":!0},theirProps:o,slot:a,defaultTag:Li,name:"Dialog.Backdrop"})))}let Ri="div";function Bi(e,n){let t=xe(),{id:r=`headlessui-dialog-panel-${t}`,...o}=e,[{dialogState:i},l]=ot("Dialog.Panel"),s=de(n,l.panelRef),a=u.useMemo(()=>({open:i===0}),[i]),c=N(m=>{m.stopPropagation()});return ie({ourProps:{ref:s,id:r,onClick:c},theirProps:o,slot:a,defaultTag:Ri,name:"Dialog.Panel"})}let zi="h2";function Wi(e,n){let t=xe(),{id:r=`headlessui-dialog-title-${t}`,...o}=e,[{dialogState:i,setTitleId:l}]=ot("Dialog.Title"),s=de(n);u.useEffect(()=>(l(r),()=>l(null)),[r,l]);let a=u.useMemo(()=>({open:i===0}),[i]);return ie({ourProps:{ref:s,id:r},theirProps:o,slot:a,defaultTag:zi,name:"Dialog.Title"})}let Ui=le(Mi),Hi=le(_i),Vi=le(Bi),Yi=le(Di),qi=le(Wi),Yn=Object.assign(Ui,{Backdrop:Hi,Panel:Vi,Overlay:Yi,Title:qi,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:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let l=i?(t=o.innerText)!=null?t:"":r;return qn.test(l)&&(l=l.replace(qn,"")),l}function Gi(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 i=document.getElementById(o);if(i){let l=i.getAttribute("aria-label");return typeof l=="string"?l.trim():Gn(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Gn(e).trim()}function Zi(e){let n=u.useRef(""),t=u.useRef("");return N(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(n.current===o)return t.current;let i=Gi(r).trim().toLowerCase();return n.current=o,t.current=i,i})}var Ki=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ki||{}),Ji=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ji||{}),Qi=(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))(Qi||{});function Jt(e,n=t=>t){let t=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=Mt(n(e.items.slice()),i=>i.dataRef.current.domRef.current),o=t?r.indexOf(t):null;return o===-1&&(o=null),{items:r,activeItemIndex:o}}let Xi={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:i=>i.id,resolveDisabled:i=>i.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(l=>{var s;return((s=l.dataRef.current.textValue)==null?void 0:s.startsWith(r))&&!l.dataRef.current.disabled}),i=o?e.items.indexOf(o):-1;return i===-1||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,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(i=>i.id===n.id);return o!==-1&&r.splice(o,1),r});return{...e,...t,activationTrigger:1}}},Qt=u.createContext(null);Qt.displayName="MenuContext";function vt(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,vt),t}return n}function el(e,n){return ae(n.type,Xi,e,n)}let tl=u.Fragment;function nl(e,n){let{__demoMode:t=!1,...r}=e,o=u.useReducer(el,{__demoMode:t,menuState:t?0:1,buttonRef:u.createRef(),itemsRef:u.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:l,buttonRef:s},a]=o,c=de(n);At([s,l],(p,v)=>{var g;a({type:1}),Pt(v,$t.Loose)||(p.preventDefault(),(g=s.current)==null||g.focus())},i===0);let m=N(()=>{a({type:1})}),h=u.useMemo(()=>({open:i===0,close:m}),[i,m]),x={ref:c};return u.createElement(Qt.Provider,{value:o},u.createElement(Rt,{value:ae(i,{0:fe.Open,1:fe.Closed})},ie({ourProps:x,theirProps:r,slot:h,defaultTag:tl,name:"Menu"})))}let rl="button";function ol(e,n){var t;let r=xe(),{id:o=`headlessui-menu-button-${r}`,...i}=e,[l,s]=vt("Menu.Button"),a=de(l.buttonRef,n),c=je(),m=N(g=>{switch(g.key){case K.Space:case K.Enter:case K.ArrowDown:g.preventDefault(),g.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ee.First}));break;case K.ArrowUp:g.preventDefault(),g.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ee.Last}));break}}),h=N(g=>{switch(g.key){case K.Space:g.preventDefault();break}}),x=N(g=>{if(pt(g.currentTarget))return g.preventDefault();e.disabled||(l.menuState===0?(s({type:1}),c.nextFrame(()=>{var b;return(b=l.buttonRef.current)==null?void 0:b.focus({preventScroll:!0})})):(g.preventDefault(),s({type:0})))}),p=u.useMemo(()=>({open:l.menuState===0}),[l]),v={ref:a,id:o,type:Dt(e,l.buttonRef),"aria-haspopup":"menu","aria-controls":(t=l.itemsRef.current)==null?void 0:t.id,"aria-expanded":l.menuState===0,onKeyDown:m,onKeyUp:h,onClick:x};return ie({ourProps:v,theirProps:i,slot:p,defaultTag:rl,name:"Menu.Button"})}let il="div",ll=$e.RenderStrategy|$e.Static;function sl(e,n){var t,r;let o=xe(),{id:i=`headlessui-menu-items-${o}`,...l}=e,[s,a]=vt("Menu.Items"),c=de(s.itemsRef,n),m=De(s.itemsRef),h=je(),x=Qe(),p=x!==null?(x&fe.Open)===fe.Open:s.menuState===0;u.useEffect(()=>{let w=s.itemsRef.current;w&&s.menuState===0&&w!==(m==null?void 0:m.activeElement)&&w.focus({preventScroll:!0})},[s.menuState,s.itemsRef,m]),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 v=N(w=>{var C,F;switch(h.dispose(),w.key){case K.Space:if(s.searchQuery!=="")return w.preventDefault(),w.stopPropagation(),a({type:3,value:w.key});case K.Enter:if(w.preventDefault(),w.stopPropagation(),a({type:1}),s.activeItemIndex!==null){let{dataRef:$}=s.items[s.activeItemIndex];(F=(C=$.current)==null?void 0:C.domRef.current)==null||F.click()}wn(s.buttonRef.current);break;case K.ArrowDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ee.Next});case K.ArrowUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ee.Previous});case K.Home:case K.PageUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ee.First});case K.End:case K.PageDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ee.Last});case K.Escape:w.preventDefault(),w.stopPropagation(),a({type:1}),ye().nextFrame(()=>{var $;return($=s.buttonRef.current)==null?void 0:$.focus({preventScroll:!0})});break;case K.Tab:w.preventDefault(),w.stopPropagation(),a({type:1}),ye().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}}),g=N(w=>{switch(w.key){case K.Space:w.preventDefault();break}}),b=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:i,onKeyDown:v,onKeyUp:g,role:"menu",tabIndex:0,ref:c};return ie({ourProps:y,theirProps:l,slot:b,defaultTag:il,features:ll,visible:p,name:"Menu.Items"})}let al=u.Fragment;function ul(e,n){let t=xe(),{id:r=`headlessui-menu-item-${t}`,disabled:o=!1,...i}=e,[l,s]=vt("Menu.Item"),a=l.activeItemIndex!==null?l.items[l.activeItemIndex].id===r:!1,c=u.useRef(null),m=de(n,c);X(()=>{if(l.__demoMode||l.menuState!==0||!a||l.activationTrigger===0)return;let $=ye();return $.requestAnimationFrame(()=>{var A,Y;(Y=(A=c.current)==null?void 0:A.scrollIntoView)==null||Y.call(A,{block:"nearest"})}),$.dispose},[l.__demoMode,c,a,l.menuState,l.activationTrigger,l.activeItemIndex]);let h=Zi(c),x=u.useRef({disabled:o,domRef:c,get textValue(){return h()}});X(()=>{x.current.disabled=o},[x,o]),X(()=>(s({type:5,id:r,dataRef:x}),()=>s({type:6,id:r})),[x,r]);let p=N(()=>{s({type:1})}),v=N($=>{if(o)return $.preventDefault();s({type:1}),wn(l.buttonRef.current)}),g=N(()=>{if(o)return s({type:2,focus:ee.Nothing});s({type:2,focus:ee.Specific,id:r})}),b=jn(),y=N($=>b.update($)),w=N($=>{b.wasMoved($)&&(o||a||s({type:2,focus:ee.Specific,id:r,trigger:0}))}),C=N($=>{b.wasMoved($)&&(o||a&&s({type:2,focus:ee.Nothing}))}),F=u.useMemo(()=>({active:a,disabled:o,close:p}),[a,o,p]);return ie({ourProps:{id:r,ref:m,role:"menuitem",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,disabled:void 0,onClick:v,onFocus:g,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:C,onMouseLeave:C},theirProps:i,slot:F,defaultTag:al,name:"Menu.Item"})}let cl=le(nl),dl=le(ol),fl=le(sl),ml=le(ul),gt=Object.assign(cl,{Button:dl,Items:fl,Item:ml}),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 pl(){let[e,n]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(t){let r=N(i=>(n(l=>[...l,i]),()=>n(l=>{let s=l.slice(),a=s.indexOf(i);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 hl="label";function vl(e,n){let t=xe(),{id:r=`headlessui-label-${t}`,passive:o=!1,...i}=e,l=Kn(),s=de(n);X(()=>l.register(r),[r,l.register]);let a={ref:s,...l.props,id:r};return o&&("onClick"in a&&(delete a.htmlFor,delete a.onClick),"onClick"in i&&delete i.onClick),ie({ourProps:a,theirProps:i,slot:l.slot||{},defaultTag:hl,name:l.name||"Label"})}let gl=le(vl),bl=Object.assign(gl,{});function xl(e=0){let[n,t]=u.useState(e),r=et(),o=u.useCallback(a=>{r.current&&t(c=>c|a)},[n,r]),i=u.useCallback(a=>!!(n&a),[n]),l=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:i,removeFlag:l,toggleFlag:s}}let Xt=u.createContext(null);Xt.displayName="GroupContext";let wl=u.Fragment;function yl(e){var n;let[t,r]=u.useState(null),[o,i]=pl(),[l,s]=Hn(),a=u.useMemo(()=>({switch:t,setSwitch:r,labelledby:o,describedby:l}),[t,r,o,l]),c={},m=e;return u.createElement(s,{name:"Switch.Description"},u.createElement(i,{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:m,defaultTag:wl,name:"Switch.Group"}))))}let El="button";function Sl(e,n){var t;let r=xe(),{id:o=`headlessui-switch-${r}`,checked:i,defaultChecked:l=!1,onChange:s,disabled:a=!1,name:c,value:m,form:h,...x}=e,p=u.useContext(Xt),v=u.useRef(null),g=de(v,n,p===null?null:p.setSwitch),[b,y]=vn(i,s,l),w=N(()=>y==null?void 0:y(!b)),C=N(k=>{if(pt(k.currentTarget))return k.preventDefault();k.preventDefault(),w()}),F=N(k=>{k.key===K.Space?(k.preventDefault(),w()):k.key===K.Enter&&fo(k.currentTarget)}),$=N(k=>k.preventDefault()),A=u.useMemo(()=>({checked:b}),[b]),Y={id:o,ref:g,role:"switch",type:Dt(e,v),tabIndex:e.tabIndex===-1?0:(t=e.tabIndex)!=null?t:0,"aria-checked":b,"aria-labelledby":p==null?void 0:p.labelledby,"aria-describedby":p==null?void 0:p.describedby,disabled:a,onClick:C,onKeyUp:F,onKeyPress:$},q=je();return u.useEffect(()=>{var k;let L=(k=v.current)==null?void 0:k.closest("form");L&&l!==void 0&&q.addEventListener(L,"reset",()=>{y(l)})},[v,y]),u.createElement(u.Fragment,null,c!=null&&b&&u.createElement(Je,{features:ze.Hidden,...mt({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:a,form:h,checked:b,name:c,value:m})}),ie({ourProps:Y,theirProps:x,slot:A,defaultTag:El,name:"Switch"}))}let Tl=le(Sl),Cl=yl,Ol=Object.assign(Tl,{Group:Cl,Label:bl,Description:Vn});function jl(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 Nl(e,n){let t=ye();if(!e)return t.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(m=>m.includes("ms")?parseFloat(m):parseFloat(m)*1e3).sort((m,h)=>h-m);return c}),s=i+l;if(s!==0){t.group(c=>{c.setTimeout(()=>{n(),c.dispose()},s),c.addEventListener(e,"transitionrun",m=>{m.target===m.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 Fl(e,n,t,r){let o=t?"enter":"leave",i=ye(),l=r!==void 0?jl(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=ae(o,{enter:()=>n.enter,leave:()=>n.leave}),a=ae(o,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),c=ae(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),i.nextFrame(()=>{tn(e,...n.base,...s,...c),en(e,...n.base,...s,...a),Nl(e,()=>(tn(e,...n.base,...s),en(e,...n.base,...n.entered),l()))}),i.dispose}function Il({immediate:e,container:n,direction:t,classes:r,onStart:o,onStop:i}){let l=et(),s=je(),a=Se(t);X(()=>{e&&(a.current="enter")},[e]),X(()=>{let c=ye();s.add(c.dispose);let m=n.current;if(m&&a.current!=="idle"&&l.current)return c.dispose(),o.current(a.current),c.add(Fl(m,r.current,a.current==="enter",()=>{c.dispose(),i.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 kl=(e=>(e.Visible="visible",e.Hidden="hidden",e))(kl||{});function $l(){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 Pl(){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([]),o=et(),i=je(),l=N((p,v=Pe.Hidden)=>{let g=r.current.findIndex(({el:b})=>b===p);g!==-1&&(ae(v,{[Pe.Unmount](){r.current.splice(g,1)},[Pe.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var b;!wt(r)&&o.current&&((b=t.current)==null||b.call(t))}))}),s=N(p=>{let v=r.current.find(({el:g})=>g===p);return v?v.state!=="visible"&&(v.state="visible"):r.current.push({el:p,state:"visible"}),()=>l(p,Pe.Unmount)}),a=u.useRef([]),c=u.useRef(Promise.resolve()),m=u.useRef({enter:[],leave:[],idle:[]}),h=N((p,v,g)=>{a.current.splice(0),n&&(n.chains.current[v]=n.chains.current[v].filter(([b])=>b!==p)),n==null||n.chains.current[v].push([p,new Promise(b=>{a.current.push(b)})]),n==null||n.chains.current[v].push([p,new Promise(b=>{Promise.all(m.current[v].map(([y,w])=>w)).then(()=>b())})]),v==="enter"?c.current=c.current.then(()=>n==null?void 0:n.wait.current).then(()=>g(v)):g(v)}),x=N((p,v,g)=>{Promise.all(m.current[v].splice(0).map(([b,y])=>y)).then(()=>{var b;(b=a.current.shift())==null||b()}).then(()=>g(v))});return u.useMemo(()=>({children:r,register:s,unregister:l,onStart:h,onStop:x,wait:c,chains:m}),[s,l,r,h,x,m,c])}function Ml(){}let Al=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Qn(e){var n;let t={};for(let r of Al)t[r]=(n=e[r])!=null?n:Ml;return t}function Dl(e){let n=u.useRef(Qn(e));return u.useEffect(()=>{n.current=Qn(e)},[e]),n}let Ll="div",Xn=$e.RenderStrategy;function _l(e,n){var t,r;let{beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:s,enter:a,enterFrom:c,enterTo:m,entered:h,leave:x,leaveFrom:p,leaveTo:v,...g}=e,b=u.useRef(null),y=de(b,n),w=(t=g.unmount)==null||t?Pe.Unmount:Pe.Hidden,{show:C,appear:F,initial:$}=$l(),[A,Y]=u.useState(C?"visible":"hidden"),q=Pl(),{register:k,unregister:L}=q;u.useEffect(()=>k(b),[k,b]),u.useEffect(()=>{if(w===Pe.Hidden&&b.current){if(C&&A!=="visible"){Y("visible");return}return ae(A,{hidden:()=>L(b),visible:()=>k(b)})}},[A,b,k,L,C,w]);let z=Se({base:Me(g.className),enter:Me(a),enterFrom:Me(c),enterTo:Me(m),entered:Me(h),leave:Me(x),leaveFrom:Me(p),leaveTo:Me(v)}),J=Dl({beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:s}),ne=Be();u.useEffect(()=>{if(ne&&A==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,A,ne]);let ue=$&&!F,T=F&&C&&$,re=!ne||ue?"idle":C?"enter":"leave",R=xl(0),te=N(ve=>ae(ve,{enter:()=>{R.addFlag(fe.Opening),J.current.beforeEnter()},leave:()=>{R.addFlag(fe.Closing),J.current.beforeLeave()},idle:()=>{}})),O=N(ve=>ae(ve,{enter:()=>{R.removeFlag(fe.Opening),J.current.afterEnter()},leave:()=>{R.removeFlag(fe.Closing),J.current.afterLeave()},idle:()=>{}})),P=Jn(()=>{Y("hidden"),L(b)},q),U=u.useRef(!1);Il({immediate:T,container:b,classes:z,direction:re,onStart:Se(ve=>{U.current=!0,P.onStart(b,ve,te)}),onStop:Se(ve=>{U.current=!1,P.onStop(b,ve,O),ve==="leave"&&!wt(P)&&(Y("hidden"),L(b))})});let ce=g,he={ref:y};return T?ce={...ce,className:dt(g.className,...z.current.enter,...z.current.enterFrom)}:U.current&&(ce.className=dt(g.className,(r=b.current)==null?void 0:r.className),ce.className===""&&delete ce.className),u.createElement(xt.Provider,{value:P},u.createElement(Rt,{value:ae(A,{visible:fe.Open,hidden:fe.Closed})|R.flags},ie({ourProps:he,theirProps:ce,defaultTag:Ll,features:Xn,visible:A==="visible",name:"Transition.Child"})))}function Rl(e,n){let{show:t,appear:r=!1,unmount:o=!0,...i}=e,l=u.useRef(null),s=de(l,n);Be();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,m]=u.useState(t?"visible":"hidden"),h=Jn(()=>{m("hidden")}),[x,p]=u.useState(!0),v=u.useRef([t]);X(()=>{x!==!1&&v.current[v.current.length-1]!==t&&(v.current.push(t),p(!1))},[v,t]);let g=u.useMemo(()=>({show:t,appear:r,initial:x}),[t,r,x]);u.useEffect(()=>{if(t)m("visible");else if(!wt(h))m("hidden");else{let C=l.current;if(!C)return;let F=C.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&m("hidden")}},[t,h]);let b={unmount:o},y=N(()=>{var C;x&&p(!1),(C=e.beforeEnter)==null||C.call(e)}),w=N(()=>{var C;x&&p(!1),(C=e.beforeLeave)==null||C.call(e)});return u.createElement(xt.Provider,{value:h},u.createElement(bt.Provider,{value:g},ie({ourProps:{...b,as:u.Fragment,children:u.createElement(er,{ref:s,...b,...i,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:u.Fragment,features:Xn,visible:c==="visible",name:"Transition"})))}function Bl(e,n){let t=u.useContext(bt)!==null,r=Qe()!==null;return u.createElement(u.Fragment,null,!t&&r?u.createElement(nn,{ref:n,...e}):u.createElement(er,{ref:n,...e}))}let nn=le(Rl),er=le(_l),zl=le(Bl),Re=Object.assign(nn,{Child:zl,Root:nn});function Wl({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 Ul=E.forwardRef(Wl);function Hl({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 Vl=E.forwardRef(Hl);function Yl({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 ql=E.forwardRef(Yl);function Gl({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 Zl=E.forwardRef(Gl);function Kl({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 Jl=E.forwardRef(Kl);function Ql({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(Ql);function Xl({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(Xl);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(ql,{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 is=({type:e="info",title:n,message:t,active:r=!1,time:o=1e3,dispatch:i})=>{const{width:l}=Ot(),[s,a]=u.useState(!1);return u.useEffect(()=>r?(nr=window.setTimeout(()=>{a(!1),i({type:"ALERT",payload:{title:"",message:"",typeAlert:"",active:!1}})},o),a(!0)):(a(!1),()=>window.clearTimeout(nr)),[r,i,o]),f.jsx("div",{className:"fixed top-2.5 w-80 3xs:w-96",style:{left:`calc(50% - ${l<=470?"160px":"192px"})`,zIndex:"60"},children:f.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: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 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 ss=E.forwardRef(ls);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:o="",classNameIcon:i="",isIcon:l=!0,acronym:s=""})=>{function a(){if(typeof s!="string")return s;const c=s.toLowerCase(),m=c.split(" "),h=m[m.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(o!==""&&o),loading:"lazy",decoding:"async",style:{filter:"blur(5px)",transition:"filter 0.3s"},onLoad:c=>c.currentTarget.style.filter="none","data-testid":"img"}):l?f.jsx(hs,{className:I("bg-white text-default-5",i!==""?i:"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",i!==""?i:"w-7 h-7"),children:a()})})},xs=({steps:e,onClick:n})=>{const[t,r]=u.useState(0),o=i=>{r(i),n(i)};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((i,l)=>f.jsx("li",{children:t!==l?f.jsx("div",{className:"cursor-pointer block h-2.5 w-2.5 rounded-full bg-gray-500 hover:bg-gray-600",onClick:()=>o(l),"data-testid":`step-${l}`,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"})]})},l))})})};var rr={exports:{}};/*!
31
+ `));let x=m.props,p=typeof(x==null?void 0:x.className)=="function"?(...v)=>dt(x==null?void 0:x.className(...v),a.className):dt(x==null?void 0:x.className,a.className),g=p?{className:p}:{};return u.cloneElement(m,Object.assign({},Fn(m.props,mt(Lt(a,["ref"]))),h,c,{ref:o(m.ref,c.ref)},g))}return u.createElement(i,Object.assign({},Lt(a,["ref"]),i!==u.Fragment&&c,i!==u.Fragment&&h),m)}function io(...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 Fn(...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,...i){let l=t[r];for(let s of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return n}function le(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 lo="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,...o}=e,i={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:i,theirProps:o,slot:{},defaultTag:lo,name:"Hidden"})}let Je=le(so),_t=u.createContext(null);_t.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(_t)}function Rt({value:e,children:n}){return u.createElement(_t.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 ee=(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))(ee||{});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 i=0;i<t.length;++i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 1:{for(let i=o-1;i>=0;--i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 2:{for(let i=o+1;i<t.length;++i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 3:{for(let i=t.length-1;i>=0;--i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 4:{for(let i=0;i<t.length;++i)if(n.resolveId(t[i],i,t)===e.id)return i;return r}case 5:return null;default:co(e)}}function In(e={},n=null,t=[]){for(let[r,o]of Object.entries(e))Pn(t,kn(n,r),o);return t}function kn(e,n){return e?e+"["+n+"]":n}function Pn(e,n,t){if(Array.isArray(t))for(let[r,o]of t.entries())Pn(e,kn(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,""]):In(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 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 K=(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))(K||{}),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 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((l,s)=>l.dataRef.current.order-s.dataRef.current.order):Mt(r,l=>l.dataRef.current.domRef.current),i=t?o.indexOf(t):null;return i===-1&&(i=null),{options:o,activeOptionIndex:i}}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,o,i,l;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 m=n.focus===ee.Specific?n.idx:Bt(n,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var x,p;return(p=(x=e.activeOptionIndex)!=null?x:e.virtual.options.findIndex(g=>!e.virtual.disabled(g)))!=null?p:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),h=(i=n.trigger)!=null?i:2;return e.activeOptionIndex===m&&e.activationTrigger===h?e:{...e,activeOptionIndex:m,activationTrigger:h}}let s=zt(e);if(s.activeOptionIndex===null){let m=s.options.findIndex(h=>!h.dataRef.current.disabled);m!==-1&&(s.activeOptionIndex=m)}let a=n.focus===ee.Specific?n.idx:Bt(n,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled}),c=(l=n.trigger)!=null?l: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 i=n.payload,l=zt(e,a=>(a.push(i),a));e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(n.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(i));let s={...e,...l,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 i=o.findIndex(l=>l.id===n.id);return i!==-1&&o.splice(i,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 Xe(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,Xe),t}return n}let $n=u.createContext(null);function bo(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]),i=qr({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}),[l,s]=u.useState(0);return X(()=>{s(a=>a+1)},[(n=t.virtual)==null?void 0:n.options]),u.createElement($n.Provider,{value:i},u.createElement("div",{style:{position:"relative",width:"100%",height:`${i.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&&i.scrollToIndex(t.activeOptionIndex)}}},i.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:`${l}-${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 xo(e,n){return ae(n.type,go,e,n)}let wo=u.Fragment;function yo(e,n){let{value:t,defaultValue:r,onChange:o,form:i,name:l,by:s=null,disabled:a=!1,__demoMode:c=!1,nullable:m=!1,multiple:h=!1,immediate:x=!1,virtual:p=null,...g}=e,v=!1,b=null,[y=h?[]:void 0,w]=vn(t,o,r),[C,F]=u.useReducer(xo,{dataRef:u.createRef(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),P=u.useRef(!1),A=u.useRef({static:!1,hold:!1}),Y=u.useRef(null),q=u.useRef(null),k=u.useRef(null),L=u.useRef(null),z=N(typeof s=="string"?(D,G)=>{let W=s;return(D==null?void 0:D[W])===(G==null?void 0:G[W])}:s??((D,G)=>D===G)),J=N(D=>C.options.findIndex(G=>z(G.dataRef.current.value,D))),ne=u.useCallback(D=>ae(T.mode,{1:()=>y.some(G=>z(G,D)),0:()=>z(y,D)}),[y]),ue=N(D=>C.activeOptionIndex===J(D)),T=u.useMemo(()=>({...C,immediate:v,optionsPropsRef:A,labelRef:Y,inputRef:q,buttonRef:k,optionsRef:L,value:y,defaultValue:r,disabled:a,mode:h?1:0,virtual:C.virtual,get activeOptionIndex(){if(P.current&&C.activeOptionIndex===null&&C.options.length>0){let D=C.options.findIndex(G=>!G.dataRef.current.disabled);if(D!==-1)return D}return C.activeOptionIndex},calculateIndex:J,compare:z,isSelected:ne,isActive:ue,nullable:m,__demoMode:c}),[y,r,a,h,m,c,C,b]);X(()=>{},[b,void 0]),X(()=>{C.dataRef.current=T},[T]),At([T.buttonRef,T.inputRef,T.optionsRef],()=>Ee.closeCombobox(),T.comboboxState===0);let re=u.useMemo(()=>{var D,G,W;return{open:T.comboboxState===0,disabled:a,activeIndex:T.activeOptionIndex,activeOption:T.activeOptionIndex===null?null:T.virtual?T.virtual.options[(D=T.activeOptionIndex)!=null?D:0]:(W=(G=T.options[T.activeOptionIndex])==null?void 0:G.dataRef.current.value)!=null?W:null,value:y}},[T,a,y]),R=N(()=>{if(T.activeOptionIndex!==null){if(T.virtual)he(T.virtual.options[T.activeOptionIndex]);else{let{dataRef:D}=T.options[T.activeOptionIndex];he(D.current.value)}Ee.goToOption(ee.Specific,T.activeOptionIndex)}}),te=N(()=>{F({type:0}),P.current=!0}),O=N(()=>{F({type:1}),P.current=!1}),M=N((D,G,W)=>(P.current=!1,D===ee.Specific?F({type:2,focus:ee.Specific,idx:G,trigger:W}):F({type:2,focus:D,trigger:W}))),U=N((D,G)=>(F({type:3,payload:{id:D,dataRef:G}}),()=>{T.isActive(G.current.value)&&(P.current=!0),F({type:4,id:D})})),ce=N(D=>(F({type:5,id:D}),()=>F({type:5,id:null}))),he=N(D=>ae(T.mode,{0(){return w==null?void 0:w(D)},1(){let G=T.value.slice(),W=G.findIndex(ge=>z(ge,D));return W===-1?G.push(D):G.splice(W,1),w==null?void 0:w(G)}})),ve=N(D=>{F({type:6,trigger:D})}),Ee=u.useMemo(()=>({onChange:he,registerOption:U,registerLabel:ce,goToOption:M,closeCombobox:O,openCombobox:te,setActivationTrigger:ve,selectActiveOption:R}),[]),$=n===null?{}:{ref:n},H=u.useRef(null),se=je();return u.useEffect(()=>{H.current&&r!==void 0&&se.addEventListener(H.current,"reset",()=>{w==null||w(r)})},[H,w]),u.createElement(Wt.Provider,{value:Ee},u.createElement(Ut.Provider,{value:T},u.createElement(Rt,{value:ae(T.comboboxState,{0:fe.Open,1:fe.Closed})},l!=null&&y!=null&&In({[l]:y}).map(([D,G],W)=>u.createElement(Je,{features:We.Hidden,ref:W===0?ge=>{var be;H.current=(be=ge==null?void 0:ge.closest("form"))!=null?be:null}:void 0,...mt({key:D,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:a,name:D,value:G})})),ie({ourProps:$,theirProps:g,slot:re,defaultTag:wo,name:"Combobox"}))))}let Eo="input";function So(e,n){var t,r,o,i,l;let s=xe(),{id:a=`headlessui-combobox-input-${s}`,onChange:c,displayValue:m,type:h="text",...x}=e,p=_e("Combobox.Input"),g=Xe("Combobox.Input"),v=de(p.inputRef,n),b=Le(p.inputRef),y=u.useRef(!1),w=je(),C=N(()=>{g.onChange(null),p.optionsRef.current&&(p.optionsRef.current.scrollTop=0),g.goToOption(ee.Nothing)}),F=function(){var T;return typeof m=="function"&&p.value!==void 0?(T=m(p.value))!=null?T:"":typeof p.value=="string"?p.value:""}();Ke(([T,re],[R,te])=>{if(y.current)return;let O=p.inputRef.current;O&&((te===0&&re===1||T!==R)&&(O.value=T),requestAnimationFrame(()=>{if(y.current||!O||(b==null?void 0:b.activeElement)!==O)return;let{selectionStart:M,selectionEnd:U}=O;Math.abs((U??0)-(M??0))===0&&M===0&&O.setSelectionRange(O.value.length,O.value.length)}))},[F,p.comboboxState,b]),Ke(([T],[re])=>{if(T===0&&re===1){if(y.current)return;let R=p.inputRef.current;if(!R)return;let te=R.value,{selectionStart:O,selectionEnd:M,selectionDirection:U}=R;R.value="",R.value=te,U!==null?R.setSelectionRange(O,M,U):R.setSelectionRange(O,M)}},[p.comboboxState]);let P=u.useRef(!1),A=N(()=>{P.current=!0}),Y=N(()=>{w.nextFrame(()=>{P.current=!1})}),q=N(T=>{switch(y.current=!0,T.key){case K.Enter:if(y.current=!1,p.comboboxState!==0||P.current)return;if(T.preventDefault(),T.stopPropagation(),p.activeOptionIndex===null){g.closeCombobox();return}g.selectActiveOption(),p.mode===0&&g.closeCombobox();break;case K.ArrowDown:return y.current=!1,T.preventDefault(),T.stopPropagation(),ae(p.comboboxState,{0:()=>g.goToOption(ee.Next),1:()=>g.openCombobox()});case K.ArrowUp:return y.current=!1,T.preventDefault(),T.stopPropagation(),ae(p.comboboxState,{0:()=>g.goToOption(ee.Previous),1:()=>{g.openCombobox(),w.nextFrame(()=>{p.value||g.goToOption(ee.Last)})}});case K.Home:if(T.shiftKey)break;return y.current=!1,T.preventDefault(),T.stopPropagation(),g.goToOption(ee.First);case K.PageUp:return y.current=!1,T.preventDefault(),T.stopPropagation(),g.goToOption(ee.First);case K.End:if(T.shiftKey)break;return y.current=!1,T.preventDefault(),T.stopPropagation(),g.goToOption(ee.Last);case K.PageDown:return y.current=!1,T.preventDefault(),T.stopPropagation(),g.goToOption(ee.Last);case K.Escape:return y.current=!1,p.comboboxState!==0?void 0:(T.preventDefault(),p.optionsRef.current&&!p.optionsPropsRef.current.static&&T.stopPropagation(),p.nullable&&p.mode===0&&p.value===null&&C(),g.closeCombobox());case K.Tab:if(y.current=!1,p.comboboxState!==0)return;p.mode===0&&p.activationTrigger!==1&&g.selectActiveOption(),g.closeCombobox();break}}),k=N(T=>{c==null||c(T),p.nullable&&p.mode===0&&T.target.value===""&&C(),g.openCombobox()}),L=N(T=>{var re,R,te;let O=(re=T.relatedTarget)!=null?re:Ce.find(M=>M!==T.currentTarget);if(y.current=!1,!((R=p.optionsRef.current)!=null&&R.contains(O))&&!((te=p.buttonRef.current)!=null&&te.contains(O))&&p.comboboxState===0)return T.preventDefault(),p.mode===0&&(p.nullable&&p.value===null?C():p.activationTrigger!==1&&g.selectActiveOption()),g.closeCombobox()}),z=N(T=>{var re,R,te;let O=(re=T.relatedTarget)!=null?re:Ce.find(M=>M!==T.currentTarget);(R=p.buttonRef.current)!=null&&R.contains(O)||(te=p.optionsRef.current)!=null&&te.contains(O)||p.disabled||p.immediate&&p.comboboxState!==0&&(g.openCombobox(),w.nextFrame(()=>{g.setActivationTrigger(1)}))}),J=It(()=>{if(p.labelId)return[p.labelId].join(" ")},[p.labelId]),ne=u.useMemo(()=>({open:p.comboboxState===0,disabled:p.disabled}),[p]),ue={ref:v,id:a,role:"combobox",type:h,"aria-controls":(t=p.optionsRef.current)==null?void 0:t.id,"aria-expanded":p.comboboxState===0,"aria-activedescendant":p.activeOptionIndex===null?void 0:p.virtual?(r=p.options.find(T=>{var re;return!((re=p.virtual)!=null&&re.disabled(T.dataRef.current.value))&&p.compare(T.dataRef.current.value,p.virtual.options[p.activeOptionIndex])}))==null?void 0:r.id:(o=p.options[p.activeOptionIndex])==null?void 0:o.id,"aria-labelledby":J,"aria-autocomplete":"list",defaultValue:(l=(i=e.defaultValue)!=null?i:p.defaultValue!==void 0?m==null?void 0:m(p.defaultValue):null)!=null?l:p.defaultValue,disabled:p.disabled,onCompositionStart:A,onCompositionEnd:Y,onKeyDown:q,onChange:k,onFocus:z,onBlur:L};return ie({ourProps:ue,theirProps:x,slot:ne,defaultTag:Eo,name:"Combobox.Input"})}let To="button";function Co(e,n){var t;let r=_e("Combobox.Button"),o=Xe("Combobox.Button"),i=de(r.buttonRef,n),l=xe(),{id:s=`headlessui-combobox-button-${l}`,...a}=e,c=je(),m=N(v=>{switch(v.key){case K.ArrowDown:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&o.openCombobox(),c.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})});case K.ArrowUp:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&(o.openCombobox(),c.nextFrame(()=>{r.value||o.goToOption(ee.Last)})),c.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})});case K.Escape:return r.comboboxState!==0?void 0:(v.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&v.stopPropagation(),o.closeCombobox(),c.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})}));default:return}}),h=N(v=>{if(pt(v.currentTarget))return v.preventDefault();r.comboboxState===0?o.closeCombobox():(v.preventDefault(),o.openCombobox()),c.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})})}),x=It(()=>{if(r.labelId)return[r.labelId,s].join(" ")},[r.labelId,s]),p=u.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),g={ref:i,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":x,disabled:r.disabled,onClick:h,onKeyDown:m};return ie({ourProps:g,theirProps:a,slot:p,defaultTag:To,name:"Combobox.Button"})}let Oo="label";function jo(e,n){let t=xe(),{id:r=`headlessui-combobox-label-${t}`,...o}=e,i=_e("Combobox.Label"),l=Xe("Combobox.Label"),s=de(i.labelRef,n);X(()=>l.registerLabel(r),[r]);let a=N(()=>{var m;return(m=i.inputRef.current)==null?void 0:m.focus({preventScroll:!0})}),c=u.useMemo(()=>({open:i.comboboxState===0,disabled:i.disabled}),[i]);return ie({ourProps:{ref:s,id:r,onClick:a},theirProps:o,slot:c,defaultTag:Oo,name:"Combobox.Label"})}let No="ul",Fo=Pe.RenderStrategy|Pe.Static;function Io(e,n){let t=xe(),{id:r=`headlessui-combobox-options-${t}`,hold:o=!1,...i}=e,l=_e("Combobox.Options"),s=de(l.optionsRef,n),a=Qe(),c=a!==null?(a&fe.Open)===fe.Open:l.comboboxState===0;X(()=>{var p;l.optionsPropsRef.current.static=(p=e.static)!=null?p:!1},[l.optionsPropsRef,e.static]),X(()=>{l.optionsPropsRef.current.hold=o},[l.optionsPropsRef,o]),Nn({container:l.optionsRef.current,enabled:l.comboboxState===0,accept(p){return p.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:p.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute("role","none")}});let m=It(()=>{var p,g;return(g=l.labelId)!=null?g:(p=l.buttonRef.current)==null?void 0:p.id},[l.labelId,l.buttonRef.current]),h=u.useMemo(()=>({open:l.comboboxState===0,option:void 0}),[l]),x={"aria-labelledby":m,role:"listbox","aria-multiselectable":l.mode===1?!0:void 0,id:r,ref:s};return l.virtual&&l.comboboxState===0&&Object.assign(i,{children:u.createElement(bo,null,i.children)}),ie({ourProps:x,theirProps:i,slot:h,defaultTag:No,features:Fo,visible:c,name:"Combobox.Options"})}let ko="li";function Po(e,n){var t;let r=xe(),{id:o=`headlessui-combobox-option-${r}`,disabled:i=!1,value:l,order:s=null,...a}=e,c=_e("Combobox.Option"),m=Xe("Combobox.Option"),h=c.virtual?c.activeOptionIndex===c.calculateIndex(l):c.activeOptionIndex===null?!1:((t=c.options[c.activeOptionIndex])==null?void 0:t.id)===o,x=c.isSelected(l),p=u.useRef(null),g=Te({disabled:i,value:l,domRef:p,order:s}),v=u.useContext($n),b=de(n,p,v?v.measureElement:null),y=N(()=>m.onChange(l));X(()=>m.registerOption(o,g),[g,o]);let w=u.useRef(!(c.virtual||c.__demoMode));X(()=>{if(!c.virtual||!c.__demoMode)return;let L=ye();return L.requestAnimationFrame(()=>{w.current=!0}),L.dispose},[c.virtual,c.__demoMode]),X(()=>{if(!w.current||c.comboboxState!==0||!h||c.activationTrigger===0)return;let L=ye();return L.requestAnimationFrame(()=>{var z,J;(J=(z=p.current)==null?void 0:z.scrollIntoView)==null||J.call(z,{block:"nearest"})}),L.dispose},[p,h,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let C=N(L=>{var z;if(i||(z=c.virtual)!=null&&z.disabled(l))return L.preventDefault();y(),En()||requestAnimationFrame(()=>{var J;return(J=c.inputRef.current)==null?void 0:J.focus({preventScroll:!0})}),c.mode===0&&requestAnimationFrame(()=>m.closeCombobox())}),F=N(()=>{var L;if(i||(L=c.virtual)!=null&&L.disabled(l))return m.goToOption(ee.Nothing);let z=c.calculateIndex(l);m.goToOption(ee.Specific,z)}),P=jn(),A=N(L=>P.update(L)),Y=N(L=>{var z;if(!P.wasMoved(L)||i||(z=c.virtual)!=null&&z.disabled(l)||h)return;let J=c.calculateIndex(l);m.goToOption(ee.Specific,J,0)}),q=N(L=>{var z;P.wasMoved(L)&&(i||(z=c.virtual)!=null&&z.disabled(l)||h&&(c.optionsPropsRef.current.hold||m.goToOption(ee.Nothing)))}),k=u.useMemo(()=>({active:h,selected:x,disabled:i}),[h,x,i]);return ie({ourProps:{id:o,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":x,disabled:void 0,onClick:C,onFocus:F,onPointerEnter:A,onMouseEnter:A,onPointerMove:Y,onMouseMove:Y,onPointerLeave:q,onMouseLeave:q},theirProps:a,slot:k,defaultTag:ko,name:"Combobox.Option"})}let $o=le(yo),Mo=le(Co),Ao=le(So),Do=le(jo),Lo=le(Io),_o=le(Po),Fe=Object.assign($o,{Input:Ao,Button:Mo,Label:Do,Options:Lo,Option:_o});function Mn(e,n,t,r){let o=Te(t);u.useEffect(()=>{e=e??window;function i(l){o.current(l)}return e.addEventListener(n,i,r),()=>e.removeEventListener(n,i,r)},[e,n,r])}function et(){let e=u.useRef(!1);return X(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function An(e){let n=N(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 Ln=(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))(Ln||{});function zo(e,n){let t=u.useRef(null),r=de(t,n),{initialFocus:o,containers:i,features:l=30,...s}=e;ze()||(l=1);let a=Le(t);Ho({ownerDocument:a},!!(l&16));let c=Vo({ownerDocument:a,container:t,initialFocus:o},!!(l&2));Yo({ownerDocument:a,container:t,containers:i,previousActiveElement:c},!!(l&8));let m=Ro(),h=N(v=>{let b=t.current;b&&(y=>y())(()=>{ae(m.current,{[tt.Forwards]:()=>{Ze(b,Ne.First,{skipElements:[v.relatedTarget]})},[tt.Backwards]:()=>{Ze(b,Ne.Last,{skipElements:[v.relatedTarget]})}})})}),x=je(),p=u.useRef(!1),g={ref:r,onKeyDown(v){v.key=="Tab"&&(p.current=!0,x.requestAnimationFrame(()=>{p.current=!1}))},onBlur(v){let b=Dn(i);t.current instanceof HTMLElement&&b.add(t.current);let y=v.relatedTarget;y instanceof HTMLElement&&y.dataset.headlessuiFocusGuard!=="true"&&(_n(b,y)||(p.current?Ze(t.current,ae(m.current,{[tt.Forwards]:()=>Ne.Next,[tt.Backwards]:()=>Ne.Previous})|Ne.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&ke(v.target)))}};return u.createElement(u.Fragment,null,!!(l&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"}),!!(l&4)&&u.createElement(Je,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:We.Focusable}))}let Wo=le(zo),nt=Object.assign(Wo,{features:Ln});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]),N(()=>{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)&&ke(t())},[n]),An(()=>{n&&ke(t())})}function Vo({ownerDocument:e,container:n,initialFocus:t},r){let o=u.useRef(null),i=et();return Ke(()=>{if(!r)return;let l=n.current;l&&at(()=>{if(!i.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(l.contains(s)){o.current=s;return}t!=null&&t.current?ke(t.current):Ze(l,Ne.First)===bn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function Yo({ownerDocument:e,container:n,containers:t,previousActiveElement:r},o){let i=et();Mn(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!i.current)return;let s=Dn(t);n.current instanceof HTMLElement&&s.add(n.current);let a=r.current;if(!a)return;let c=l.target;c&&c instanceof HTMLElement?_n(s,c)?(r.current=c,ke(c)):(l.preventDefault(),l.stopPropagation(),ke(a)):ke(r.current)},!0)}function _n(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 Ht(e){return u.createElement(Rn.Provider,{value:e.force},e.children)}function Go(e){let n=qo(),t=u.useContext(Bn),r=Le(e),[o,i]=u.useState(()=>{if(!n&&t!==null||Oe.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;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&&i(t.current)},[t,i,n]),o}let Zo=u.Fragment;function Ko(e,n){let t=e,r=u.useRef(null),o=de(oo(m=>{r.current=m}),n),i=Le(r),l=Go(r),[s]=u.useState(()=>{var m;return Oe.isServer?null:(m=i==null?void 0:i.createElement("div"))!=null?m:null}),a=u.useContext(Vt),c=ze();return X(()=>{!l||!s||l.contains(s)||(s.setAttribute("data-headlessui-portal",""),l.appendChild(s))},[l,s]),X(()=>{if(s&&a)return a.register(s)},[a,s]),An(()=>{var m;!l||!s||(s instanceof Node&&l.contains(s)&&l.removeChild(s),l.childNodes.length<=0&&((m=l.parentElement)==null||m.removeChild(l)))}),c?!l||!s?null:cn.createPortal(ie({ourProps:{ref:o},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,o={ref:de(n)};return u.createElement(Bn.Provider,{value:t},ie({ourProps:o,theirProps:r,defaultTag:Jo,name:"Popover.Group"}))}let Vt=u.createContext(null);function Xo(){let e=u.useContext(Vt),n=u.useRef([]),t=N(i=>(n.current.push(i),e&&e.register(i),()=>r(i))),r=N(i=>{let l=n.current.indexOf(i);l!==-1&&n.current.splice(l,1),e&&e.unregister(i)}),o=u.useMemo(()=>({register:t,unregister:r,portals:n}),[t,r,n]);return[n,u.useMemo(()=>function({children:i}){return u.createElement(Vt.Provider,{value:o},i)},[o])]}let ei=le(Ko),ti=le(Qo),Yt=Object.assign(ei,{Group:ti});function ni(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}const ri=typeof Object.is=="function"?Object.is:ni,{useState:oi,useEffect:ii,useLayoutEffect:li,useDebugValue:si}=E;function ai(e,n,t){const r=n(),[{inst:o},i]=oi({inst:{value:r,getSnapshot:n}});return li(()=>{o.value=r,o.getSnapshot=n,qt(o)&&i({inst:o})},[e,r,n]),ii(()=>(qt(o)&&i({inst:o}),e(()=>{qt(o)&&i({inst:o})})),[e]),si(r),r}function qt(e){const n=e.getSnapshot,t=e.value;try{const r=n();return!ri(t,r)}catch{return!0}}function ui(e,n,t){return n()}const ci=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",di=!ci,fi=di?ui:ai,mi="useSyncExternalStore"in E?(e=>e.useSyncExternalStore)(E):fi;function pi(e){return mi(e.subscribe,e.getSnapshot,e.getSnapshot)}function hi(e,n){let t=e(),r=new Set;return{getSnapshot(){return t},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=n[o].call(t,...i);l&&(t=l,r.forEach(s=>s()))}}}function vi(){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,i=e-o;t.style(r,"paddingRight",`${i}px`)}}}function gi(){return yn()?{before({doc:e,d:n,meta:t}){function r(o){return t.containers.flatMap(i=>i()).some(i=>i.contains(o))}n.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=ye();s.style(e.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=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),m=e.querySelector(c);m&&!r(m)&&(l=m)}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;i!==a&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function bi(){return{before({doc:e,d:n}){n.style(e.documentElement,"overflow","hidden")}}}function xi(e){let n={};for(let t of e)Object.assign(n,t(n));return n}let Re=hi(()=>new Map,{PUSH(e,n){var t;let r=(t=this.get(e))!=null?t:{doc:e,count:0,d:ye(),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:xi(t)},o=[gi(),vi(),bi()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(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",o=t.count!==0;(o&&!r||!o&&r)&&Re.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&Re.dispatch("TEARDOWN",t)}});function wi(e,n,t){let r=pi(Re),o=e?r.get(e):void 0,i=o?o.count>0:!1;return X(()=>{if(!(!e||!n))return Re.dispatch("PUSH",e,t),()=>Re.dispatch("POP",e,t)},[n,e]),i}let Gt=new Map,rt=new Map;function zn(e,n=!0){X(()=>{var t;if(!n)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var l;if(!r)return;let s=(l=rt.get(r))!=null?l:1;if(s===1?rt.delete(r):rt.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 i=(t=rt.get(r))!=null?t:0;return rt.set(r,i+1),i!==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 yi({defaultContainers:e=[],portals:n,mainTreeNodeRef:t}={}){var r;let o=u.useRef((r=t==null?void 0:t.current)!=null?r:null),i=Le(o),l=N(()=>{var s,a,c;let m=[];for(let h of e)h!==null&&(h instanceof HTMLElement?m.push(h):"current"in h&&h.current instanceof HTMLElement&&m.push(h.current));if(n!=null&&n.current)for(let h of n.current)m.push(h);for(let h of(s=i==null?void 0:i.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)||m.some(x=>h.contains(x))||m.push(h));return m});return{resolveContainers:l,contains:N(s=>l().some(a=>a.contains(s))),mainTreeNodeRef:o,MainTreeNode:u.useMemo(()=>function(){return t!=null?null:u.createElement(Je,{features:We.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 Ei(){return u.useContext(Zt)}function Si({children:e,onUpdate:n,type:t,element:r,enabled:o}){let i=Ei(),l=N((...s)=>{n==null||n(...s),i(...s)});return X(()=>{let s=o===void 0||o===!0;return s&&l(0,t,r),()=>{s&&l(1,t,r)}},[l,t,r,o]),u.createElement(Zt.Provider,{value:l},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=N(i=>(n(l=>[...l,i]),()=>n(l=>{let s=l.slice(),a=s.indexOf(i);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(Wn.Provider,{value:o},t.children)},[n])]}let Ti="p";function Ci(e,n){let t=xe(),{id:r=`headlessui-description-${t}`,...o}=e,i=Un(),l=de(n);X(()=>i.register(r),[r,i.register]);let s={ref:l,...i.props,id:r};return ie({ourProps:s,theirProps:o,slot:i.slot||{},defaultTag:Ti,name:i.name||"Description"})}let Oi=le(Ci),Vn=Object.assign(Oi,{});var ji=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ji||{}),Ni=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ni||{});let Fi={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 Ii(e,n,t=()=>[document.body]){wi(e,n,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],t]}})}function ki(e,n){return ae(n.type,Fi,e,n)}let Pi="div",$i=Pe.RenderStrategy|Pe.Static;function Mi(e,n){let t=xe(),{id:r=`headlessui-dialog-${t}`,open:o,onClose:i,initialFocus:l,role:s="dialog",__demoMode:a=!1,...c}=e,[m,h]=u.useState(0),x=u.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(x.current||(x.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=Qe();o===void 0&&p!==null&&(o=(p&fe.Open)===fe.Open);let g=u.useRef(null),v=de(g,n),b=Le(g),y=e.hasOwnProperty("open")||p!==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 i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let C=o?0:1,[F,P]=u.useReducer(ki,{titleId:null,descriptionId:null,panelRef:u.createRef()}),A=N(()=>i(!1)),Y=N(W=>P({type:0,id:W})),q=ze()?a?!1:C===0:!1,k=m>1,L=u.useContext(ht)!==null,[z,J]=Xo(),ne={get current(){var W;return(W=F.panelRef.current)!=null?W:g.current}},{resolveContainers:ue,mainTreeNodeRef:T,MainTreeNode:re}=yi({portals:z,defaultContainers:[ne]}),R=k?"parent":"leaf",te=p!==null?(p&fe.Closing)===fe.Closing:!1,O=L||te?!1:q,M=u.useCallback(()=>{var W,ge;return(ge=Array.from((W=b==null?void 0:b.querySelectorAll("body > *"))!=null?W:[]).find(be=>be.id==="headlessui-portal-root"?!1:be.contains(T.current)&&be instanceof HTMLElement))!=null?ge:null},[T]);zn(M,O);let U=k?!0:q,ce=u.useCallback(()=>{var W,ge;return(ge=Array.from((W=b==null?void 0:b.querySelectorAll("[data-headlessui-portal]"))!=null?W:[]).find(be=>be.contains(T.current)&&be instanceof HTMLElement))!=null?ge:null},[T]);zn(ce,U),At(ue,W=>{W.preventDefault(),A()},!(!q||k));let ve=!(k||C!==0);Mn(b==null?void 0:b.defaultView,"keydown",W=>{ve&&(W.defaultPrevented||W.key===K.Escape&&(W.preventDefault(),W.stopPropagation(),A()))}),Ii(b,!(te||C!==0||L),ue),u.useEffect(()=>{if(C!==0||!g.current)return;let W=new ResizeObserver(ge=>{for(let be of ge){let Ue=be.target.getBoundingClientRect();Ue.x===0&&Ue.y===0&&Ue.width===0&&Ue.height===0&&A()}});return W.observe(g.current),()=>W.disconnect()},[C,g,A]);let[$,H]=Hn(),se=u.useMemo(()=>[{dialogState:C,close:A,setTitleId:Y},F],[C,F,A,Y]),D=u.useMemo(()=>({open:C===0}),[C]),G={ref:v,id:r,role:s,"aria-modal":C===0?!0:void 0,"aria-labelledby":F.titleId,"aria-describedby":$};return u.createElement(Si,{type:"Dialog",enabled:C===0,element:g,onUpdate:N((W,ge)=>{ge==="Dialog"&&ae(W,{[Kt.Add]:()=>h(be=>be+1),[Kt.Remove]:()=>h(be=>be-1)})})},u.createElement(Ht,{force:!0},u.createElement(Yt,null,u.createElement(ht.Provider,{value:se},u.createElement(Yt.Group,{target:g},u.createElement(Ht,{force:!1},u.createElement(H,{slot:D,name:"Dialog.Description"},u.createElement(nt,{initialFocus:l,containers:ue,features:q?ae(R,{parent:nt.features.RestoreFocus,leaf:nt.features.All&~nt.features.FocusLock}):nt.features.None},u.createElement(J,null,ie({ourProps:G,theirProps:c,slot:D,defaultTag:Pi,features:$i,visible:C===0,name:"Dialog"}))))))))),u.createElement(re,null))}let Ai="div";function Di(e,n){let t=xe(),{id:r=`headlessui-dialog-overlay-${t}`,...o}=e,[{dialogState:i,close:l}]=ot("Dialog.Overlay"),s=de(n),a=N(m=>{if(m.target===m.currentTarget){if(pt(m.currentTarget))return m.preventDefault();m.preventDefault(),m.stopPropagation(),l()}}),c=u.useMemo(()=>({open:i===0}),[i]);return ie({ourProps:{ref:s,id:r,"aria-hidden":!0,onClick:a},theirProps:o,slot:c,defaultTag:Ai,name:"Dialog.Overlay"})}let Li="div";function _i(e,n){let t=xe(),{id:r=`headlessui-dialog-backdrop-${t}`,...o}=e,[{dialogState:i},l]=ot("Dialog.Backdrop"),s=de(n);u.useEffect(()=>{if(l.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[l.panelRef]);let a=u.useMemo(()=>({open:i===0}),[i]);return u.createElement(Ht,{force:!0},u.createElement(Yt,null,ie({ourProps:{ref:s,id:r,"aria-hidden":!0},theirProps:o,slot:a,defaultTag:Li,name:"Dialog.Backdrop"})))}let Ri="div";function Bi(e,n){let t=xe(),{id:r=`headlessui-dialog-panel-${t}`,...o}=e,[{dialogState:i},l]=ot("Dialog.Panel"),s=de(n,l.panelRef),a=u.useMemo(()=>({open:i===0}),[i]),c=N(m=>{m.stopPropagation()});return ie({ourProps:{ref:s,id:r,onClick:c},theirProps:o,slot:a,defaultTag:Ri,name:"Dialog.Panel"})}let zi="h2";function Wi(e,n){let t=xe(),{id:r=`headlessui-dialog-title-${t}`,...o}=e,[{dialogState:i,setTitleId:l}]=ot("Dialog.Title"),s=de(n);u.useEffect(()=>(l(r),()=>l(null)),[r,l]);let a=u.useMemo(()=>({open:i===0}),[i]);return ie({ourProps:{ref:s,id:r},theirProps:o,slot:a,defaultTag:zi,name:"Dialog.Title"})}let Ui=le(Mi),Hi=le(_i),Vi=le(Bi),Yi=le(Di),qi=le(Wi),Yn=Object.assign(Ui,{Backdrop:Hi,Panel:Vi,Overlay:Yi,Title:qi,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:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let l=i?(t=o.innerText)!=null?t:"":r;return qn.test(l)&&(l=l.replace(qn,"")),l}function Gi(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 i=document.getElementById(o);if(i){let l=i.getAttribute("aria-label");return typeof l=="string"?l.trim():Gn(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Gn(e).trim()}function Zi(e){let n=u.useRef(""),t=u.useRef("");return N(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(n.current===o)return t.current;let i=Gi(r).trim().toLowerCase();return n.current=o,t.current=i,i})}var Ki=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ki||{}),Ji=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ji||{}),Qi=(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))(Qi||{});function Jt(e,n=t=>t){let t=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=Mt(n(e.items.slice()),i=>i.dataRef.current.domRef.current),o=t?r.indexOf(t):null;return o===-1&&(o=null),{items:r,activeItemIndex:o}}let Xi={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:i=>i.id,resolveDisabled:i=>i.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(l=>{var s;return((s=l.dataRef.current.textValue)==null?void 0:s.startsWith(r))&&!l.dataRef.current.disabled}),i=o?e.items.indexOf(o):-1;return i===-1||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,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(i=>i.id===n.id);return o!==-1&&r.splice(o,1),r});return{...e,...t,activationTrigger:1}}},Qt=u.createContext(null);Qt.displayName="MenuContext";function vt(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,vt),t}return n}function el(e,n){return ae(n.type,Xi,e,n)}let tl=u.Fragment;function nl(e,n){let{__demoMode:t=!1,...r}=e,o=u.useReducer(el,{__demoMode:t,menuState:t?0:1,buttonRef:u.createRef(),itemsRef:u.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:l,buttonRef:s},a]=o,c=de(n);At([s,l],(p,g)=>{var v;a({type:1}),$t(g,Pt.Loose)||(p.preventDefault(),(v=s.current)==null||v.focus())},i===0);let m=N(()=>{a({type:1})}),h=u.useMemo(()=>({open:i===0,close:m}),[i,m]),x={ref:c};return u.createElement(Qt.Provider,{value:o},u.createElement(Rt,{value:ae(i,{0:fe.Open,1:fe.Closed})},ie({ourProps:x,theirProps:r,slot:h,defaultTag:tl,name:"Menu"})))}let rl="button";function ol(e,n){var t;let r=xe(),{id:o=`headlessui-menu-button-${r}`,...i}=e,[l,s]=vt("Menu.Button"),a=de(l.buttonRef,n),c=je(),m=N(v=>{switch(v.key){case K.Space:case K.Enter:case K.ArrowDown:v.preventDefault(),v.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ee.First}));break;case K.ArrowUp:v.preventDefault(),v.stopPropagation(),s({type:0}),c.nextFrame(()=>s({type:2,focus:ee.Last}));break}}),h=N(v=>{switch(v.key){case K.Space:v.preventDefault();break}}),x=N(v=>{if(pt(v.currentTarget))return v.preventDefault();e.disabled||(l.menuState===0?(s({type:1}),c.nextFrame(()=>{var b;return(b=l.buttonRef.current)==null?void 0:b.focus({preventScroll:!0})})):(v.preventDefault(),s({type:0})))}),p=u.useMemo(()=>({open:l.menuState===0}),[l]),g={ref:a,id:o,type:Dt(e,l.buttonRef),"aria-haspopup":"menu","aria-controls":(t=l.itemsRef.current)==null?void 0:t.id,"aria-expanded":l.menuState===0,onKeyDown:m,onKeyUp:h,onClick:x};return ie({ourProps:g,theirProps:i,slot:p,defaultTag:rl,name:"Menu.Button"})}let il="div",ll=Pe.RenderStrategy|Pe.Static;function sl(e,n){var t,r;let o=xe(),{id:i=`headlessui-menu-items-${o}`,...l}=e,[s,a]=vt("Menu.Items"),c=de(s.itemsRef,n),m=Le(s.itemsRef),h=je(),x=Qe(),p=x!==null?(x&fe.Open)===fe.Open:s.menuState===0;u.useEffect(()=>{let w=s.itemsRef.current;w&&s.menuState===0&&w!==(m==null?void 0:m.activeElement)&&w.focus({preventScroll:!0})},[s.menuState,s.itemsRef,m]),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=N(w=>{var C,F;switch(h.dispose(),w.key){case K.Space:if(s.searchQuery!=="")return w.preventDefault(),w.stopPropagation(),a({type:3,value:w.key});case K.Enter:if(w.preventDefault(),w.stopPropagation(),a({type:1}),s.activeItemIndex!==null){let{dataRef:P}=s.items[s.activeItemIndex];(F=(C=P.current)==null?void 0:C.domRef.current)==null||F.click()}wn(s.buttonRef.current);break;case K.ArrowDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ee.Next});case K.ArrowUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ee.Previous});case K.Home:case K.PageUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ee.First});case K.End:case K.PageDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:ee.Last});case K.Escape:w.preventDefault(),w.stopPropagation(),a({type:1}),ye().nextFrame(()=>{var P;return(P=s.buttonRef.current)==null?void 0:P.focus({preventScroll:!0})});break;case K.Tab:w.preventDefault(),w.stopPropagation(),a({type:1}),ye().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=N(w=>{switch(w.key){case K.Space:w.preventDefault();break}}),b=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:i,onKeyDown:g,onKeyUp:v,role:"menu",tabIndex:0,ref:c};return ie({ourProps:y,theirProps:l,slot:b,defaultTag:il,features:ll,visible:p,name:"Menu.Items"})}let al=u.Fragment;function ul(e,n){let t=xe(),{id:r=`headlessui-menu-item-${t}`,disabled:o=!1,...i}=e,[l,s]=vt("Menu.Item"),a=l.activeItemIndex!==null?l.items[l.activeItemIndex].id===r:!1,c=u.useRef(null),m=de(n,c);X(()=>{if(l.__demoMode||l.menuState!==0||!a||l.activationTrigger===0)return;let P=ye();return P.requestAnimationFrame(()=>{var A,Y;(Y=(A=c.current)==null?void 0:A.scrollIntoView)==null||Y.call(A,{block:"nearest"})}),P.dispose},[l.__demoMode,c,a,l.menuState,l.activationTrigger,l.activeItemIndex]);let h=Zi(c),x=u.useRef({disabled:o,domRef:c,get textValue(){return h()}});X(()=>{x.current.disabled=o},[x,o]),X(()=>(s({type:5,id:r,dataRef:x}),()=>s({type:6,id:r})),[x,r]);let p=N(()=>{s({type:1})}),g=N(P=>{if(o)return P.preventDefault();s({type:1}),wn(l.buttonRef.current)}),v=N(()=>{if(o)return s({type:2,focus:ee.Nothing});s({type:2,focus:ee.Specific,id:r})}),b=jn(),y=N(P=>b.update(P)),w=N(P=>{b.wasMoved(P)&&(o||a||s({type:2,focus:ee.Specific,id:r,trigger:0}))}),C=N(P=>{b.wasMoved(P)&&(o||a&&s({type:2,focus:ee.Nothing}))}),F=u.useMemo(()=>({active:a,disabled:o,close:p}),[a,o,p]);return ie({ourProps:{id:r,ref:m,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:C,onMouseLeave:C},theirProps:i,slot:F,defaultTag:al,name:"Menu.Item"})}let cl=le(nl),dl=le(ol),fl=le(sl),ml=le(ul),gt=Object.assign(cl,{Button:dl,Items:fl,Item:ml}),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 pl(){let[e,n]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(t){let r=N(i=>(n(l=>[...l,i]),()=>n(l=>{let s=l.slice(),a=s.indexOf(i);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 hl="label";function vl(e,n){let t=xe(),{id:r=`headlessui-label-${t}`,passive:o=!1,...i}=e,l=Kn(),s=de(n);X(()=>l.register(r),[r,l.register]);let a={ref:s,...l.props,id:r};return o&&("onClick"in a&&(delete a.htmlFor,delete a.onClick),"onClick"in i&&delete i.onClick),ie({ourProps:a,theirProps:i,slot:l.slot||{},defaultTag:hl,name:l.name||"Label"})}let gl=le(vl),bl=Object.assign(gl,{});function xl(e=0){let[n,t]=u.useState(e),r=et(),o=u.useCallback(a=>{r.current&&t(c=>c|a)},[n,r]),i=u.useCallback(a=>!!(n&a),[n]),l=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:i,removeFlag:l,toggleFlag:s}}let Xt=u.createContext(null);Xt.displayName="GroupContext";let wl=u.Fragment;function yl(e){var n;let[t,r]=u.useState(null),[o,i]=pl(),[l,s]=Hn(),a=u.useMemo(()=>({switch:t,setSwitch:r,labelledby:o,describedby:l}),[t,r,o,l]),c={},m=e;return u.createElement(s,{name:"Switch.Description"},u.createElement(i,{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:m,defaultTag:wl,name:"Switch.Group"}))))}let El="button";function Sl(e,n){var t;let r=xe(),{id:o=`headlessui-switch-${r}`,checked:i,defaultChecked:l=!1,onChange:s,disabled:a=!1,name:c,value:m,form:h,...x}=e,p=u.useContext(Xt),g=u.useRef(null),v=de(g,n,p===null?null:p.setSwitch),[b,y]=vn(i,s,l),w=N(()=>y==null?void 0:y(!b)),C=N(k=>{if(pt(k.currentTarget))return k.preventDefault();k.preventDefault(),w()}),F=N(k=>{k.key===K.Space?(k.preventDefault(),w()):k.key===K.Enter&&fo(k.currentTarget)}),P=N(k=>k.preventDefault()),A=u.useMemo(()=>({checked:b}),[b]),Y={id:o,ref:v,role:"switch",type:Dt(e,g),tabIndex:e.tabIndex===-1?0:(t=e.tabIndex)!=null?t:0,"aria-checked":b,"aria-labelledby":p==null?void 0:p.labelledby,"aria-describedby":p==null?void 0:p.describedby,disabled:a,onClick:C,onKeyUp:F,onKeyPress:P},q=je();return u.useEffect(()=>{var k;let L=(k=g.current)==null?void 0:k.closest("form");L&&l!==void 0&&q.addEventListener(L,"reset",()=>{y(l)})},[g,y]),u.createElement(u.Fragment,null,c!=null&&b&&u.createElement(Je,{features:We.Hidden,...mt({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:a,form:h,checked:b,name:c,value:m})}),ie({ourProps:Y,theirProps:x,slot:A,defaultTag:El,name:"Switch"}))}let Tl=le(Sl),Cl=yl,Ol=Object.assign(Tl,{Group:Cl,Label:bl,Description:Vn});function jl(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 Nl(e,n){let t=ye();if(!e)return t.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(m=>m.includes("ms")?parseFloat(m):parseFloat(m)*1e3).sort((m,h)=>h-m);return c}),s=i+l;if(s!==0){t.group(c=>{c.setTimeout(()=>{n(),c.dispose()},s),c.addEventListener(e,"transitionrun",m=>{m.target===m.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 Fl(e,n,t,r){let o=t?"enter":"leave",i=ye(),l=r!==void 0?jl(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=ae(o,{enter:()=>n.enter,leave:()=>n.leave}),a=ae(o,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),c=ae(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),i.nextFrame(()=>{tn(e,...n.base,...s,...c),en(e,...n.base,...s,...a),Nl(e,()=>(tn(e,...n.base,...s),en(e,...n.base,...n.entered),l()))}),i.dispose}function Il({immediate:e,container:n,direction:t,classes:r,onStart:o,onStop:i}){let l=et(),s=je(),a=Te(t);X(()=>{e&&(a.current="enter")},[e]),X(()=>{let c=ye();s.add(c.dispose);let m=n.current;if(m&&a.current!=="idle"&&l.current)return c.dispose(),o.current(a.current),c.add(Fl(m,r.current,a.current==="enter",()=>{c.dispose(),i.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 kl=(e=>(e.Visible="visible",e.Hidden="hidden",e))(kl||{});function Pl(){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 $l(){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=Te(e),r=u.useRef([]),o=et(),i=je(),l=N((p,g=$e.Hidden)=>{let v=r.current.findIndex(({el:b})=>b===p);v!==-1&&(ae(g,{[$e.Unmount](){r.current.splice(v,1)},[$e.Hidden](){r.current[v].state="hidden"}}),i.microTask(()=>{var b;!wt(r)&&o.current&&((b=t.current)==null||b.call(t))}))}),s=N(p=>{let g=r.current.find(({el:v})=>v===p);return g?g.state!=="visible"&&(g.state="visible"):r.current.push({el:p,state:"visible"}),()=>l(p,$e.Unmount)}),a=u.useRef([]),c=u.useRef(Promise.resolve()),m=u.useRef({enter:[],leave:[],idle:[]}),h=N((p,g,v)=>{a.current.splice(0),n&&(n.chains.current[g]=n.chains.current[g].filter(([b])=>b!==p)),n==null||n.chains.current[g].push([p,new Promise(b=>{a.current.push(b)})]),n==null||n.chains.current[g].push([p,new Promise(b=>{Promise.all(m.current[g].map(([y,w])=>w)).then(()=>b())})]),g==="enter"?c.current=c.current.then(()=>n==null?void 0:n.wait.current).then(()=>v(g)):v(g)}),x=N((p,g,v)=>{Promise.all(m.current[g].splice(0).map(([b,y])=>y)).then(()=>{var b;(b=a.current.shift())==null||b()}).then(()=>v(g))});return u.useMemo(()=>({children:r,register:s,unregister:l,onStart:h,onStop:x,wait:c,chains:m}),[s,l,r,h,x,m,c])}function Ml(){}let Al=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Qn(e){var n;let t={};for(let r of Al)t[r]=(n=e[r])!=null?n:Ml;return t}function Dl(e){let n=u.useRef(Qn(e));return u.useEffect(()=>{n.current=Qn(e)},[e]),n}let Ll="div",Xn=Pe.RenderStrategy;function _l(e,n){var t,r;let{beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:s,enter:a,enterFrom:c,enterTo:m,entered:h,leave:x,leaveFrom:p,leaveTo:g,...v}=e,b=u.useRef(null),y=de(b,n),w=(t=v.unmount)==null||t?$e.Unmount:$e.Hidden,{show:C,appear:F,initial:P}=Pl(),[A,Y]=u.useState(C?"visible":"hidden"),q=$l(),{register:k,unregister:L}=q;u.useEffect(()=>k(b),[k,b]),u.useEffect(()=>{if(w===$e.Hidden&&b.current){if(C&&A!=="visible"){Y("visible");return}return ae(A,{hidden:()=>L(b),visible:()=>k(b)})}},[A,b,k,L,C,w]);let z=Te({base:Me(v.className),enter:Me(a),enterFrom:Me(c),enterTo:Me(m),entered:Me(h),leave:Me(x),leaveFrom:Me(p),leaveTo:Me(g)}),J=Dl({beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:s}),ne=ze();u.useEffect(()=>{if(ne&&A==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,A,ne]);let ue=P&&!F,T=F&&C&&P,re=!ne||ue?"idle":C?"enter":"leave",R=xl(0),te=N(ve=>ae(ve,{enter:()=>{R.addFlag(fe.Opening),J.current.beforeEnter()},leave:()=>{R.addFlag(fe.Closing),J.current.beforeLeave()},idle:()=>{}})),O=N(ve=>ae(ve,{enter:()=>{R.removeFlag(fe.Opening),J.current.afterEnter()},leave:()=>{R.removeFlag(fe.Closing),J.current.afterLeave()},idle:()=>{}})),M=Jn(()=>{Y("hidden"),L(b)},q),U=u.useRef(!1);Il({immediate:T,container:b,classes:z,direction:re,onStart:Te(ve=>{U.current=!0,M.onStart(b,ve,te)}),onStop:Te(ve=>{U.current=!1,M.onStop(b,ve,O),ve==="leave"&&!wt(M)&&(Y("hidden"),L(b))})});let ce=v,he={ref:y};return T?ce={...ce,className:dt(v.className,...z.current.enter,...z.current.enterFrom)}:U.current&&(ce.className=dt(v.className,(r=b.current)==null?void 0:r.className),ce.className===""&&delete ce.className),u.createElement(xt.Provider,{value:M},u.createElement(Rt,{value:ae(A,{visible:fe.Open,hidden:fe.Closed})|R.flags},ie({ourProps:he,theirProps:ce,defaultTag:Ll,features:Xn,visible:A==="visible",name:"Transition.Child"})))}function Rl(e,n){let{show:t,appear:r=!1,unmount:o=!0,...i}=e,l=u.useRef(null),s=de(l,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,m]=u.useState(t?"visible":"hidden"),h=Jn(()=>{m("hidden")}),[x,p]=u.useState(!0),g=u.useRef([t]);X(()=>{x!==!1&&g.current[g.current.length-1]!==t&&(g.current.push(t),p(!1))},[g,t]);let v=u.useMemo(()=>({show:t,appear:r,initial:x}),[t,r,x]);u.useEffect(()=>{if(t)m("visible");else if(!wt(h))m("hidden");else{let C=l.current;if(!C)return;let F=C.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&m("hidden")}},[t,h]);let b={unmount:o},y=N(()=>{var C;x&&p(!1),(C=e.beforeEnter)==null||C.call(e)}),w=N(()=>{var C;x&&p(!1),(C=e.beforeLeave)==null||C.call(e)});return u.createElement(xt.Provider,{value:h},u.createElement(bt.Provider,{value:v},ie({ourProps:{...b,as:u.Fragment,children:u.createElement(er,{ref:s,...b,...i,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:u.Fragment,features:Xn,visible:c==="visible",name:"Transition"})))}function Bl(e,n){let t=u.useContext(bt)!==null,r=Qe()!==null;return u.createElement(u.Fragment,null,!t&&r?u.createElement(nn,{ref:n,...e}):u.createElement(er,{ref:n,...e}))}let nn=le(Rl),er=le(_l),zl=le(Bl),Be=Object.assign(nn,{Child:zl,Root:nn});function Wl({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 Ul=E.forwardRef(Wl);function Hl({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 Vl=E.forwardRef(Hl);function Yl({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 ql=E.forwardRef(Yl);function Gl({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 Zl=E.forwardRef(Gl);function Kl({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 Jl=E.forwardRef(Kl);function Ql({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(Ql);function Xl({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(Xl);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(ql,{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 is=({type:e="info",title:n,message:t,active:r=!1,time:o=1e3,dispatch:i})=>{const{width:l}=Ot(),[s,a]=u.useState(!1);return u.useEffect(()=>r?(nr=window.setTimeout(()=>{a(!1),i({type:"ALERT",payload:{title:"",message:"",typeAlert:"",active:!1}})},o),a(!0)):(a(!1),()=>window.clearTimeout(nr)),[r,i,o]),f.jsx("div",{className:"fixed top-2.5 w-80 3xs:w-96",style:{left:`calc(50% - ${l<=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 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 ss=E.forwardRef(ls);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:o="",classNameIcon:i="",isIcon:l=!0,acronym:s=""})=>{function a(){if(typeof s!="string")return s;const c=s.toLowerCase(),m=c.split(" "),h=m[m.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(o!==""&&o),loading:"lazy",decoding:"async",style:{filter:"blur(5px)",transition:"filter 0.3s"},onLoad:c=>c.currentTarget.style.filter="none","data-testid":"img"}):l?f.jsx(hs,{className:I("bg-white text-default-5",i!==""?i:"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",i!==""?i:"w-7 h-7"),children:a()})})},xs=({steps:e,onClick:n})=>{const[t,r]=u.useState(0),o=i=>{r(i),n(i)};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((i,l)=>f.jsx("li",{children:t!==l?f.jsx("div",{className:"cursor-pointer block h-2.5 w-2.5 rounded-full bg-gray-500 hover:bg-gray-600",onClick:()=>o(l),"data-testid":`step-${l}`,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"})]})},l))})})};var rr={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 i="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var s in i)n.call(i,s)&&i[s]&&(l=o(l,s));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(rr);var ws=rr.exports;const Ae=kr(ws),or=({className:e="text-sm w-full rounded-md",children:n,icon:t=null,edge:r=null,disabled:o=!1,type:i="button",onClick:l,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:i,onClick:l,disabled:o,"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})]})},ir=({children:e,className:n="",icon:t=null,edge:r=null,disabled:o=!1,type:i="button",onClick:l,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:i,onClick:l,disabled:o,"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})]})},it=({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:i=!1,type:l="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:m=""})=>{const[h,x]=u.useState(!1),p=Ae({"ml-2":o==="start"&&r!==null,"mr-2":o==="end"&&r!==null}),v=()=>{s&&s()};return f.jsx("div",{className:I("rounded-md p-0.5",m!==""&&m),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",i&&"text-white bg-gray-300 rounded focus:outline-none cursor-default",i?n.replace(/\bbg-\w+\b/g,""):n),type:l,onClick:v,onFocus:()=>x(!0),onBlur:()=>x(!1),disabled:i,"data-testid":`button-solid-${a}`,children:[o==="start"&&r!==null&&f.jsx("span",{className:"flex",children:r}),f.jsx("span",{className:I(t.length===0&&p,t.length!==0&&t),children:e}),o==="end"&&r!==null&&f.jsx("span",{children:r})]})})},ys=({label:e=null,checked:n=!1,onChange:t,id:r,className:o="",classNameCheckbox:i="h-4 w-4",style:l={},disabled:s=!1})=>{const[a,c]=u.useState(!1);return u.useEffect(()=>{c(n)},[n]),f.jsxs("div",{className:"flex items-center",style:l,"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",i!==""&&i),"data-testid":`checkbox-${r}`,disabled:s}),e!==null?f.jsx("label",{htmlFor:`${e}-${r}`,className:`ml-2.5 font-normal cursor-pointer ${o}`,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 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:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const Cs=E.forwardRef(Ts);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 Fs=E.forwardRef(Ns);function Is({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 ks=E.forwardRef(Is);function lr({children:e,className:n="sm:max-w-sm w-11/12 sm:my-8",classNameContainer:t="",isOpen:r=!1,setIsOpen:o,showIconSuccess:i=!0,showButton:l=!0,style:s={}}){return f.jsx(Re,{show:r,as:u.Fragment,children:f.jsxs(Yn,{as:"div",className:"relative z-50 relative",onClose:o,"data-testid":"modal",children:[f.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:f.jsx("div",{className:"fixed inset-0 bg-opacity-40 bg-gray-900 transition-opacity","data-testid":"window-close",onClick:()=>o(!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(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: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:[i&&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}),l&&f.jsx("div",{className:"mt-5 sm:mt-6",children:f.jsx(it,{id:"close-modal",onClick:()=>o(!1),children:"Cerrar"})}),f.jsx("button",{className:"opacity-0 absolute"})]})})})})]})})}const $s=({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:i="",classNameDescription:l=""})=>{const s=()=>{n(!1),t()};return f.jsxs(lr,{isOpen:e,setIsOpen:()=>n(),showButton:!1,showIconSuccess:!1,children:[f.jsx("p",{className:I("text-center text-sm",i!==""&&i),children:r}),f.jsx("p",{className:I("text-center text-sm",l!==""&&l),children:o}),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(it,{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={}})=>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"})]}),rn=({placeholder:e="",label:n="",htmlFor:t,type:r="text",name:o,handleChange:i,onClick:l=()=>{},value:s,isReadOnly:a=!1,isError:c=!1,helperText:m="",autocomplete:h="off",id:x,classNameLabel:p="",classNameContainerInput:v="",classNameContainer:g="",className:b="",icon:y=null,onKeyDown:w,onFocus:C,min:F,max:$})=>{const[A,Y]=u.useState(!1),q=Ae({"ring-red-300 focus:ring-red-300 text-red-900":c||A,"focus:ring-indigo-600 text-gray-500":!c&&!A}),k=L=>{if(i&&i(L),r!=="email")return;const{value:z}=L.target,J=dn(z);Y(!J)};return f.jsxs("div",{"data-testid":`container-input-${x}`,className:g,children:[n!==""&&f.jsx("label",{htmlFor:t,className:I("block text-sm font-medium leading-6",p!==""?p:"text-gray-700"),"data-testid":`label-${x}`,children:n}),f.jsxs("div",{className:I("relative mt-1 rounded-md",v!==""&&v),children:[f.jsx("input",{id:x,name:o,type:r,autoComplete:h,placeholder:e,onChange:k,onClick:l,onKeyDown:w,onFocus:C,value:s,readOnly:a,"data-testid":`input-${x}`,min:F,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",q,b!==""&&b)}),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"})})]}),m.length===0||!c?null:f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${x}`,children:m})]})};function lt({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(lt,{className:"w-8 h-8 animate-spin"})]})}const sr=({className:e="",classNameContainer:n="",children:t,message:r=""})=>{const[o,i]=u.useState(!1),l=()=>{r!==""&&i(!0)},s=()=>{i(!1)};return f.jsx("div",{className:"relative",children:f.jsxs("div",{onMouseLeave:s.bind(null,o),"data-testid":"container-tooltip",children:[f.jsx("div",{className:I("text-white group bg-orange-700 rounded-md inline-flex items-center text-base font-medium hover:text-opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",!o&&"text-opacity-90",n!==""&&n),onMouseEnter:l.bind(null,o),onMouseLeave:s.bind(null,o),"data-testid":"open-tooltip",children:t}),f.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:o,children:f.jsx("div",{className:I("absolute z-20 px-4 mt-0 sm:px-0",e!==""&&e),children:f.jsx("div",{className:"bg-white p-2 text-center rounded-lg shadow-lg ring-1 ring-black ring-opacity-5",onMouseEnter:l.bind(null,o),onMouseLeave:s.bind(null,o),"data-testid":"message",children:r})})})]})})},ar=({height:e="36px",style:n={},styleMenu:t={},label:r="",onChange:o,isReadOnly:i=!1,isError:l=!1,helperText:s="",name:a,id:c,className:m="",classNameLabel:h="",classNameInput:x="",options:p,value:v=-1,defaultValue:g={value:-1,label:"",iconStart:null,iconEnd:null},defaultLabel:b="label",defaultId:y="value",bgOptionSelect:w="bg-indigo-600",isSearch:C=!1,loading:F=!1,isSingleOptionAndFirstLoad:$=!0,isTest:A=!1})=>{const[Y,q]=u.useState(""),[k,L]=u.useState(g),[z,J]=u.useState(!1),[ne,ue]=u.useState(!0);u.useEffect(()=>{if((p==null?void 0:p.length)!==1||!ne)return;ue(!1);const[O]=p,P=O[y],U=O[b];L({value:P,label:U}),$&&o({target:{value:O,checked:!1,name:a,type:void 0,id:O[y]}})},[p,y,b,o,a,ne,$]),u.useEffect(()=>{if(v===-1||(p==null?void 0:p.length)===0)return;const O=p==null?void 0:p.find(P=>P[y]===v);O&&L(O)},[v,p,y]),u.useEffect(()=>{v==="clear"&&(k[y]!==g[y]||k[b]!==g[b]||A)&&L(g)},[g,A,k,v,y,b]);const T=Y===""?p:p.filter(O=>O[b].normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().includes(Y.toLowerCase())),re=Ae({"ring-red-300 focus:ring-red-300 text-red-900":l&&!i,"text-gray-500":!l,"focus:ring-indigo-600":!l&&!i}),R=Ae({"text-red-400":l&&!i,"text-gray-400":!l}),te=O=>{L(O),o({target:{value:O,checked:!1,name:a,type:void 0,id:O[y]}})};return f.jsxs(Fe,{as:"div",value:k,children:[f.jsx(Fe.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",m!==""&&m),children:[f.jsx(sr,{className:"text-sm",classNameContainer:"w-full",message:k[b],children:f.jsxs(Fe.Button,{className:"w-full","data-testid":`listbox-button-${c}`,children:[k.iconStart&&f.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2",children:k.iconStart}),f.jsx(Fe.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",!l&&!i&&"ring-inset focus:ring-inset focus:ring-2 focus:ring-indigo-600",i&&"focus:ring-gray-300",re,x!==""&&x),onChange:O=>q(O.target.value.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),displayValue:O=>{var P;return(P=O[b])==null?void 0:P.trim()},autoComplete:"off",readOnly:!C||i,style:{height:e,...n},"data-testid":"input-search",onClick:()=>J(i?!1:!z),onBlur:()=>J(!1)})]})}),k.iconEnd&&f.jsx("span",{className:"absolute inset-y-0 right-4 flex items-center pr-4",children:k.iconEnd}),!i&&f.jsx(Fe.Button,{className:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none",onClick:()=>J(i?!1:!z),"data-testid":"arrow-button",children:z?f.jsx(Jl,{className:I("h-5 w-5",R),"aria-hidden":"true"}):f.jsx(Zl,{className:I("h-5 w-5",R),"aria-hidden":"true"})}),!i&&f.jsx(f.Fragment,{children:F?f.jsx(Fe.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(lt,{})}):(T??[]).length>0?f.jsx(Fe.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:T.map((O,P)=>f.jsx(Fe.Option,{value:O,className:I(O[y]===k[y]?`${w} text-white`:"text-gray-900",`relative cursor-default select-none p-2 hover:text-white hover:${w}`),"data-testid":`select-${c}-${O[y]}`,onClick:()=>te(O),children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{className:"flex items-center",children:[O.iconStart&&f.jsx("span",{className:"mr-2","aria-hidden":"true",children:O.iconStart}),f.jsx("span",{className:"font-normal hyphens-auto break-words overflow-hidden",children:O[b]})]}),O.iconEnd&&f.jsx("span",{className:"ml-2","aria-hidden":"true",children:O.iconEnd})]})},P))}):f.jsx(Fe.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&&l&&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:o,onClick:i=()=>{},value:l,valueSelect:s,isReadOnly:a=!1,isError:c=!1,helperText:m="",autocomplete:h="on",id:x,classNameLabel:p="",classNameContainer:v="",className:g="",onKeyDown:b,options:y,idSelect:w,isMarginLeft:C=!0,classNameSelect:F="w-20",type:$="text"})=>{const{width:A}=Ot(),Y=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 i="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var s in i)n.call(i,s)&&i[s]&&(l=o(l,s));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(rr);var ws=rr.exports;const Ae=kr(ws),or=({className:e="text-sm w-full rounded-md",children:n,icon:t=null,edge:r=null,disabled:o=!1,type:i="button",onClick:l,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:i,onClick:l,disabled:o,"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})]})},ir=({children:e,className:n="",icon:t=null,edge:r=null,disabled:o=!1,type:i="button",onClick:l,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:i,onClick:l,disabled:o,"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})]})},it=({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:i=!1,type:l="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:m=""})=>{const[h,x]=u.useState(!1),p=Ae({"ml-2":o==="start"&&r!==null,"mr-2":o==="end"&&r!==null}),g=()=>{s&&s()};return f.jsx("div",{className:I("rounded-md p-0.5",m!==""&&m),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",i&&"text-white bg-gray-300 rounded focus:outline-none cursor-default",i?n.replace(/\bbg-\w+\b/g,""):n),type:l,onClick:g,onFocus:()=>x(!0),onBlur:()=>x(!1),disabled:i,"data-testid":`button-solid-${a}`,children:[o==="start"&&r!==null&&f.jsx("span",{className:"flex",children:r}),f.jsx("span",{className:I(t.length===0&&p,t.length!==0&&t),children:e}),o==="end"&&r!==null&&f.jsx("span",{children:r})]})})},ys=({label:e=null,checked:n=!1,onChange:t,id:r,className:o="",classNameCheckbox:i="h-4 w-4",style:l={},disabled:s=!1})=>{const[a,c]=u.useState(!1);return u.useEffect(()=>{c(n)},[n]),f.jsxs("div",{className:"flex items-center",style:l,"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",i!==""&&i),"data-testid":`checkbox-${r}`,disabled:s}),e!==null?f.jsx("label",{htmlFor:`${e}-${r}`,className:`ml-2.5 font-normal cursor-pointer ${o}`,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 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:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const Cs=E.forwardRef(Ts);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 Fs=E.forwardRef(Ns);function Is({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 ks=E.forwardRef(Is);function lr({children:e,className:n="sm:max-w-sm w-11/12 sm:my-8",classNameContainer:t="",isOpen:r=!1,setIsOpen:o,showIconSuccess:i=!0,showButton:l=!0,style:s={}}){return f.jsx(Be,{show:r,as:u.Fragment,children:f.jsxs(Yn,{as:"div",className:"relative z-50 relative",onClose:o,"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:()=>o(!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:[i&&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}),l&&f.jsx("div",{className:"mt-5 sm:mt-6",children:f.jsx(it,{id:"close-modal",onClick:()=>o(!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:o="La información se perderá si no creas la acción",classNameTitle:i="",classNameDescription:l=""})=>{const s=()=>{n(!1),t()};return f.jsxs(lr,{isOpen:e,setIsOpen:()=>n(),showButton:!1,showIconSuccess:!1,children:[f.jsx("p",{className:I("text-center text-sm",i!==""&&i),children:r}),f.jsx("p",{className:I("text-center text-sm",l!==""&&l),children:o}),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(it,{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"})]}),rn=({placeholder:e="",label:n="",htmlFor:t,type:r="text",name:o,handleChange:i,onClick:l=()=>{},value:s,isReadOnly:a=!1,isError:c=!1,helperText:m="",autocomplete:h="off",id:x,classNameLabel:p="",classNameContainerInput:g="",classNameContainer:v="",className:b="",icon:y=null,onKeyDown:w,onFocus:C,min:F,max:P})=>{const[A,Y]=u.useState(!1),q=Ae({"ring-red-300 focus:ring-red-300 text-red-900":c||A,"focus:ring-indigo-600 text-gray-500":!c&&!A}),k=L=>{if(i&&i(L),r!=="email")return;const{value:z}=L.target,J=dn(z);Y(!J)};return f.jsxs("div",{"data-testid":`container-input-${x}`,className:v,children:[n!==""&&f.jsx("label",{htmlFor:t,className:I("block text-sm font-medium leading-6",p!==""?p:"text-gray-700"),"data-testid":`label-${x}`,children:n}),f.jsxs("div",{className:I("relative mt-1 rounded-md",g!==""&&g),children:[f.jsx("input",{id:x,name:o,type:r,autoComplete:h,placeholder:e,onChange:k,onClick:l,onKeyDown:w,onFocus:C,value:s,readOnly:a,"data-testid":`input-${x}`,min:F,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",q,b!==""&&b)}),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"})})]}),m.length===0||!c?null:f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${x}`,children:m})]})};function lt({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(lt,{className:"w-8 h-8 animate-spin"})]})}const sr=({className:e="",classNameContainer:n="",children:t,message:r=""})=>{const[o,i]=u.useState(!1),l=()=>{r!==""&&i(!0)},s=()=>{i(!1)};return f.jsx("div",{className:"relative",children:f.jsxs("div",{onMouseLeave:s.bind(null,o),"data-testid":"container-tooltip",children:[f.jsx("div",{className:I("text-white group bg-orange-700 rounded-md inline-flex items-center text-base font-medium hover:text-opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",!o&&"text-opacity-90",n!==""&&n),onMouseEnter:l.bind(null,o),onMouseLeave:s.bind(null,o),"data-testid":"open-tooltip",children:t}),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-20 px-4 mt-0 sm:px-0",e!==""&&e),children:f.jsx("div",{className:"bg-white p-2 text-center rounded-lg shadow-lg ring-1 ring-black ring-opacity-5",onMouseEnter:l.bind(null,o),onMouseLeave:s.bind(null,o),"data-testid":"message",children:r})})})]})})},ar=({height:e="36px",style:n={},styleMenu:t={},label:r="",onChange:o,isReadOnly:i=!1,isError:l=!1,helperText:s="",name:a,id:c,className:m="",classNameLabel:h="",classNameInput:x="",options:p,value:g=-1,defaultValue:v={value:-1,label:"",iconStart:null,iconEnd:null},defaultLabel:b="label",defaultId:y="value",bgOptionSelect:w="bg-indigo-600",isSearch:C=!1,loading:F=!1,isSingleOptionAndFirstLoad:P=!0,isTest:A=!1})=>{const[Y,q]=u.useState(""),[k,L]=u.useState(v),[z,J]=u.useState(!1),[ne,ue]=u.useState(!0);u.useEffect(()=>{if((p==null?void 0:p.length)!==1||!ne)return;ue(!1);const[O]=p,M=O[y],U=O[b];L({value:M,label:U}),P&&o({target:{value:O,checked:!1,name:a,type:void 0,id:O[y]}})},[p,y,b,o,a,ne,P]),u.useEffect(()=>{if(g===-1||(p==null?void 0:p.length)===0)return;const O=p==null?void 0:p.find(M=>M[y]===g);O&&L(O)},[g,p,y]),u.useEffect(()=>{g==="clear"&&(k[y]!==v[y]||k[b]!==v[b]||A)&&L(v)},[v,A,k,g,y,b]);const T=Y===""?p:p.filter(O=>O[b].normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().includes(Y.toLowerCase())),re=Ae({"ring-red-300 focus:ring-red-300 text-red-900":l&&!i,"text-gray-500":!l,"focus:ring-indigo-600":!l&&!i}),R=Ae({"text-red-400":l&&!i,"text-gray-400":!l}),te=O=>{L(O),o({target:{value:O,checked:!1,name:a,type:void 0,id:O[y]}})};return f.jsxs(Fe,{as:"div",value:k,children:[f.jsx(Fe.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",m!==""&&m),children:[f.jsx(sr,{className:"text-sm",classNameContainer:"w-full",message:k[b],children:f.jsxs(Fe.Button,{className:"w-full","data-testid":`listbox-button-${c}`,children:[k.iconStart&&f.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2",children:k.iconStart}),f.jsx(Fe.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",!l&&!i&&"ring-inset focus:ring-inset focus:ring-2 focus:ring-indigo-600",i&&"focus:ring-gray-300",re,x!==""&&x),onChange:O=>q(O.target.value.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),displayValue:O=>{var M;return(M=O[b])==null?void 0:M.trim()},autoComplete:"off",readOnly:!C||i,style:{height:e,...n},"data-testid":"input-search",onClick:()=>J(i?!1:!z),onBlur:()=>J(!1)})]})}),k.iconEnd&&f.jsx("span",{className:"absolute inset-y-0 right-4 flex items-center pr-4",children:k.iconEnd}),!i&&f.jsx(Fe.Button,{className:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none",onClick:()=>J(i?!1:!z),"data-testid":"arrow-button",children:z?f.jsx(Jl,{className:I("h-5 w-5",R),"aria-hidden":"true"}):f.jsx(Zl,{className:I("h-5 w-5",R),"aria-hidden":"true"})}),!i&&f.jsx(f.Fragment,{children:F?f.jsx(Fe.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(lt,{})}):(T??[]).length>0?f.jsx(Fe.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:T.map((O,M)=>f.jsx(Fe.Option,{value:O,className:I(O[y]===k[y]?`${w} text-white`:"text-gray-900",`relative cursor-default select-none p-2 hover:text-white hover:${w}`),"data-testid":`select-${c}-${O[y]}`,onClick:()=>te(O),children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{className:"flex items-center",children:[O.iconStart&&f.jsx("span",{className:"mr-2","aria-hidden":"true",children:O.iconStart}),f.jsx("span",{className:"font-normal hyphens-auto break-words overflow-hidden",children:O[b]})]}),O.iconEnd&&f.jsx("span",{className:"ml-2","aria-hidden":"true",children:O.iconEnd})]})},M))}):f.jsx(Fe.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&&l&&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:o,onClick:i=()=>{},value:l,valueSelect:s,isReadOnly:a=!1,isError:c=!1,helperText:m="",autocomplete:h="on",id:x,classNameLabel:p="",classNameContainer:g="",className:v="",onKeyDown:b,options:y,idSelect:w,isMarginLeft:C=!0,classNameSelect:F="w-20",type:P="text"})=>{const{width:A}=Ot(),Y=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:`
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 <`+j+">.")}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-${x}`,className:v,children:[n!==""&&f.jsx("label",{htmlFor:t,className:I("block text-sm font-medium leading-6",p!==""?p:"text-gray-700"),"data-testid":`label-${x}`,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:q=>o(q),id:w,options:y,value:s,isReadOnly:a,className:F,height:A<=640?"28px":"32px",classNameInput:I(C&&"ml-3.5"),style:{paddingRight:0,boxShadow:"none"},isDisabledFocus:!0})}),f.jsx("input",{id:x,name:r,type:$,autoComplete:h,placeholder:e,readOnly:a,"data-testid":`input-${x}`,onClick:i,onKeyDown:b,onChange:q=>o(q),value:l,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",Y,g!==""&&g)}),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"})})]}),m.length===0||!c?null:f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${x}`,children:m})]})]})},Ls=({setValuesDefault:e,status:n=!1,isReadOnly:t=!1,handleClick:r,text:o="",updateStatus:i=!1,id:l="",isHiddenText:s=!1,setForm:a,handleChange:c})=>{const[m,h]=u.useState(!1);u.useEffect(()=>{h(n),e("status",n),a(p=>({...p,status:n}))},[n,e,i,a]);const x=()=>{h(!m),e("status",!m),a(p=>({...p,status:!m})),c({target:{checked:!m,value:!m,name:"status",type:"",id:""}}),r&&r()};return f.jsxs("div",{className:"flex",children:[f.jsxs(Ol,{checked:m,onChange:x,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",m?"bg-success-1":"bg-gray-200"),"data-testid":`switch-${l}`,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",m?"translate-x-full":"translate-x-0")})]}),o!==""?f.jsx("p",{className:I("text-sm font-medium text-gray-500 ml-2 self-end",s&&"hidden"),children:o}):f.jsx("p",{className:I("text-sm font-medium text-gray-500 ml-2 self-end",s&&"hidden"),"data-testid":"text-switch",children:m?"Activo":"Inactivo"})]})};function _s({label:e="",id:n,htmlFor:t="",classNameLabel:r="",className:o="",rows:i=4,name:l,placeholder:s="",helperText:a="",isReadOnly:c=!1,isError:m=!1,onChange:h,value:x,idInput:p,nameInput:v,placeholderInput:g="",isReadOnlyInput:b=!1,valueInput:y,infoTop:w=null,infoBottom:C=null,classNameInfoTop:F="h-4",classNameInfoBottom:$="h-2",isInputTitle:A=!1,hiddenBorder:Y=!1}){const q=Ae({"ring-red-300 focus:ring-red-300 text-red-900":m,"focus:ring-indigo-600 text-gray-700":!m});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",q),children:[w!==null&&f.jsx("div",{className:"py-2","aria-hidden":"true",children:f.jsx("div",{className:"py-px",children:f.jsx("div",{className:F})})}),A&&f.jsx("textarea",{name:v,id:p,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:g,value:y,onChange:h,rows:2,readOnly:b}),f.jsx("textarea",{placeholder:s,rows:i,name:l,id:n,className:I(A||Y?"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",q,o!==""&&o),readOnly:c,onChange:h,value:x,"data-testid":`textarea-${n}`}),C!==null&&f.jsx("div",{className:"py-2","aria-hidden":"true",children:f.jsx("div",{className:"py-px",children:f.jsx("div",{className:$})})})]}),C!==null&&f.jsx("div",{className:"absolute bottom-2 left-3 w-full",children:C})]}),a.length>0&&m&&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:o="",classNameMenuItems:i="",classNameContainerSearch:l="px-5",isSelectMultiple:s=!1,optionsSelect:a,propObject:c="name",propId:m="id",textNewItem:h="",defaultId:x=null,loading:p=!1,search:v=null,searchPlaceHolder:g="Buscar...",valueSearch:b=void 0,idsOptionSelect:y=null,isComponent:w,hiddenMenu:C=!1,id:F,onClick:$=()=>{},isRelative:A=!0,isMaxWidth:Y=!1,isTag:q=!1,isClear:k=!1,clear:L=null,applyButton:z=null,applyButtonText:J="Aplicar",tagsParent:ne=[],isReadOnly:ue,isDisabledApplyButton:T=!0,isOpenMenu:re=void 0})=>{const[R,te]=u.useState(new Set),[O,P]=u.useState(new Map);u.useEffect(()=>{y!==null&&te(new Set(new Set(y)))},[y]),u.useEffect(()=>{if(ne.length===0)return;const M=new Map;ne.forEach(H=>M.set(H.id,H)),P(M)},[ne]),u.useEffect(()=>{k&&(te(new Set),P(new Map),L&&L())},[L,k]);const U=M=>{let H=new Map(O),se=new Set(R),D=null;if(x!==null&&(M[m]===x&&(D=crypto.randomUUID()),D!==null&&(M[m]=D),D!==null&&(M[c]=M[c].replace(h,"").trim())),se.has(M[m])?se.delete(M[m]):se.add(M[m]),H.has(M[m])?H.delete(M[m]):H.set(M[m],M),!s){const G=Array.from(se),W=Array.from(H);G.shift(),W.shift(),se=se.size===2?new Set(G):se,H=H.size===2?new Map(W):H}a(M,Array.from(se),D!==null),te(se),P(H)},ce=M=>{$(M===!0?-1:F)},he=M=>{const H=new Set(R),se=new Map(O);H.delete(M[m]),se.delete(M[m]),a(M,Array.from(H)),te(H),P(se)},ve=()=>{if(R.size===0)return;const M=new Set(R),H=new Map(O);M.clear(),H.clear(),a(null,Array.from(M)),te(M),P(H)};function Te(M){if(typeof M!="string")return M;const H=M.toLowerCase();return H.charAt(0).toUpperCase()+H.slice(1)}return f.jsxs(gt,{as:"div",className:I("inline-block text-left",A&&"relative",o!==""&&o),onClick:()=>ce(!0),"data-testid":`menu-${F}`,id:F,children:[f.jsx("style",{children:`
44
+ `}),f.jsxs("div",{"data-testid":`container-input-${x}`,className:g,children:[n!==""&&f.jsx("label",{htmlFor:t,className:I("block text-sm font-medium leading-6",p!==""?p:"text-gray-700"),"data-testid":`label-${x}`,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:q=>o(q),id:w,options:y,value:s,isReadOnly:a,className:F,height:A<=640?"28px":"32px",classNameInput:I(C&&"ml-3.5"),style:{paddingRight:0,boxShadow:"none"},isDisabledFocus:!0})}),f.jsx("input",{id:x,name:r,type:P,autoComplete:h,placeholder:e,readOnly:a,"data-testid":`input-${x}`,onClick:i,onKeyDown:b,onChange:q=>o(q),value:l,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",Y,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"})})]}),m.length===0||!c?null:f.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${x}`,children:m})]})]})},Ls=({setValuesDefault:e,status:n=!1,isReadOnly:t=!1,handleClick:r,text:o="",updateStatus:i=!1,id:l="",isHiddenText:s=!1,setForm:a,handleChange:c})=>{const[m,h]=u.useState(!1);u.useEffect(()=>{h(n),e("status",n),a(p=>({...p,status:n}))},[n,e,i,a]);const x=()=>{h(!m),e("status",!m),a(p=>({...p,status:!m})),c({target:{checked:!m,value:!m,name:"status",type:"",id:""}}),r&&r()};return f.jsxs("div",{className:"flex",children:[f.jsxs(Ol,{checked:m,onChange:x,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",m?"bg-success-1":"bg-gray-200"),"data-testid":`switch-${l}`,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",m?"translate-x-full":"translate-x-0")})]}),o!==""?f.jsx("p",{className:I("text-sm font-medium text-gray-500 ml-2 self-end",s&&"hidden"),children:o}):f.jsx("p",{className:I("text-sm font-medium text-gray-500 ml-2 self-end",s&&"hidden"),"data-testid":"text-switch",children:m?"Activo":"Inactivo"})]})};function _s({label:e="",id:n,htmlFor:t="",classNameLabel:r="",className:o="",rows:i=4,name:l,placeholder:s="",helperText:a="",isReadOnly:c=!1,isError:m=!1,onChange:h,value:x,idInput:p,nameInput:g,placeholderInput:v="",isReadOnlyInput:b=!1,valueInput:y,infoTop:w=null,infoBottom:C=null,classNameInfoTop:F="h-4",classNameInfoBottom:P="h-2",isInputTitle:A=!1,hiddenBorder:Y=!1}){const q=Ae({"ring-red-300 focus:ring-red-300 text-red-900":m,"focus:ring-indigo-600 text-gray-700":!m});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",q),children:[w!==null&&f.jsx("div",{className:"py-2","aria-hidden":"true",children:f.jsx("div",{className:"py-px",children:f.jsx("div",{className:F})})}),A&&f.jsx("textarea",{name:g,id:p,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:b}),f.jsx("textarea",{placeholder:s,rows:i,name:l,id:n,className:I(A||Y?"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",q,o!==""&&o),readOnly:c,onChange:h,value:x,"data-testid":`textarea-${n}`}),C!==null&&f.jsx("div",{className:"py-2","aria-hidden":"true",children:f.jsx("div",{className:"py-px",children:f.jsx("div",{className:P})})})]}),C!==null&&f.jsx("div",{className:"absolute bottom-2 left-3 w-full",children:C})]}),a.length>0&&m&&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:o="",classNameMenuItems:i="",classNameContainerSearch:l="px-5",isSelectMultiple:s=!1,optionsSelect:a,propObject:c="name",propId:m="id",textNewItem:h="",defaultId:x=null,loading:p=!1,search:g=null,searchPlaceHolder:v="Buscar...",valueSearch:b=void 0,idsOptionSelect:y=null,isComponent:w,hiddenMenu:C=!1,id:F,onClick:P=()=>{},isRelative:A=!0,isMaxWidth:Y=!1,isTag:q=!1,isClear:k=!1,clear:L=null,applyButton:z=null,applyButtonText:J="Aplicar",tagsParent:ne=[],isReadOnly:ue,isDisabledApplyButton:T=!0,isOpenMenu:re=void 0})=>{const[R,te]=u.useState(new Set),[O,M]=u.useState(new Map);u.useEffect(()=>{y!==null&&te(new Set(new Set(y)))},[y]),u.useEffect(()=>{if(ne.length===0)return;const $=new Map;ne.forEach(H=>$.set(H.id,H)),M($)},[ne]),u.useEffect(()=>{k&&(te(new Set),M(new Map),L&&L())},[L,k]);const U=$=>{let H=new Map(O),se=new Set(R),D=null;if(x!==null&&($[m]===x&&(D=crypto.randomUUID()),D!==null&&($[m]=D),D!==null&&($[c]=$[c].replace(h,"").trim())),se.has($[m])?se.delete($[m]):se.add($[m]),H.has($[m])?H.delete($[m]):H.set($[m],$),!s){const G=Array.from(se),W=Array.from(H);G.shift(),W.shift(),se=se.size===2?new Set(G):se,H=H.size===2?new Map(W):H}a($,Array.from(se),D!==null),te(se),M(H)},ce=$=>{P($===!0?-1:F)},he=$=>{const H=new Set(R),se=new Map(O);H.delete($[m]),se.delete($[m]),a($,Array.from(H)),te(H),M(se)},ve=()=>{if(R.size===0)return;const $=new Set(R),H=new Map(O);$.clear(),H.clear(),a(null,Array.from($)),te($),M(H)};function Ee($){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",A&&"relative",o!==""&&o),onClick:()=>ce(!0),"data-testid":`menu-${F}`,id:F,children:[f.jsx("style",{children:`
45
45
  .blue {
46
46
  background-color: #3758F9;
47
47
  }
@@ -58,4 +58,4 @@ Check the top-level render call using <`+j+">.")}return S}}function xr(d,S){{if(
58
58
  width: 414px;
59
59
  }
60
60
  }
61
- `}),f.jsx(gt.Button,{as:"div",onClick:()=>ce(C),"data-testid":`menu-button-${F}`,children:e}),f.jsx("div",{className:I("absolute right-0 z-20",r,C&&"hidden",p&&"w-full"),children:f.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:re,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",p?"w-full":i===""&&"w-max",i!==""&&i),children:p?f.jsx("div",{className:"flex justify-center py-4",children:f.jsx(lt,{})}):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:[v!==null&&f.jsx("div",{className:I("py-2 w-full",l),children:f.jsx(rn,{htmlFor:"search",id:`dropdown-search-${F}`,name:"search",type:"text",placeholder:g,handleChange:M=>v(M,F),icon:g!==""&&f.jsx(us,{className:"w-4 h-4 text-indigo-300"}),className:"pl-5 pr-4 h-8",classNameContainerInput:"w-full",value:b,onKeyDown:M=>M.key===" "&&M.stopPropagation(),autocomplete:"off"})}),z!==null&&f.jsxs("div",{className:I("pt-1.5 justify-end flex items-center",l),children:[f.jsx(it,{classNameButton:I("bg-gray-400 hover:bg-gray-400 font-medium px-2 py-1.5 rounded-md",R.size>0?"opacity-1 cursor-pointer":"opacity-0 cursor-default"),outline:"",classNameText:"text-xs text-white text-center",id:"delete",onClick:ve,children:"Descartar"}),f.jsx(it,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 font-medium px-2 py-1.5 rounded-md",outline:R.size===0&&T?"":"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:R.size===0&&T,onClick:()=>z({id:F,items:Array.from(O.values())}),children:J})]})]}),q&&!ue&&f.jsx("div",{className:"flex flex-wrap ml-7 pt-1",children:Array.from(O).map((M,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:[M[1][c],f.jsx("button",{type:"button",className:"p-0.5 rounded-sm bg-gray-100 hover:bg-gray-300",onClick:()=>he(M[1]),"data-testid":`tag-${M[0]}`,children:f.jsx(gs,{className:"h-2.5 w-2.5 stroke-gray-700/50 group-hover:stroke-gray-700/75"})})]})},M))}),f.jsx("div",{className:"divide-y divide-gray-100",children:(ue?[]:n).map((M,H)=>f.jsx("div",{className:I(!w&&"py-1"),children:w?f.jsx("div",{onClick:se=>{se.preventDefault(),a()},"data-testid":`item-component-${H}`,children:M}):f.jsx(gt.Item,{children:f.jsx("span",{className:I(R.has(M[m])&&"blue text-white",!R.has(M[m])&&"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:se=>{se.preventDefault(),U(M)},children:Te(M[c])})})},H))})]})})})})]})},ur=50,Bs=({total:e,handleNext:n,handlePrev:t,handleSelectPage:r,page:o=null})=>{const[i,l]=u.useState(1),[s,a]=u.useState([]),[c,m]=u.useState([]),h=Math.ceil(e/ur);u.useEffect(()=>{const g=[];for(let b=1;b<=h;b++)g.push(b);m(g)},[h]),u.useEffect(()=>{let g=[];const b="...",y="... ",w=" ...";if(c.length<6)g=c;else if(i>=1&&i<=3)g=[1,2,3,4,b,c.length];else if(i===4)g=[...c.slice(0,5),b,c.length];else if(i>4&&i<c.length-2){const C=c.slice(i-2,i),F=c.slice(i,i+1);g=[1,y,...C,...F,w,c.length]}else if(i>c.length-3){const C=c.slice(c.length-4);g=[1,y,...C]}a(g)},[i,c]),u.useEffect(()=>{o!==null&&o!==i&&l(o)},[o,i]);const x=g=>{l(g),r(g)},p=()=>{l(i===1?i:i-1),i>1&&t(i-1)},v=()=>{i===c.length?l(i):l(i+1),i<c.length&&n(i+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:p,"data-testid":"prev",children:[f.jsx(Ul,{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((g,b)=>f.jsx(ir,{className:I("inline-flex items-center border-t-2 px-4 pt-4 text-sm font-medium",i===g?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700"),"aria-current":"page",onClick:()=>g!=="..."&&g!==" ..."&&g!=="... "&&x(g),id:`page-${b+1}`,children:g},b))}),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:v,"data-testid":"next",children:["Siguiente",f.jsx(Vl,{className:"ml-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]})})]})},zs=({setForm:e,setValuesDefault:n,className:t="",classNameContainer:r="",classNameContainerImg:o="",src:i=null,alt:l=null,width:s,height:a})=>{const c=m=>{const{files:h}=m.target,[x]=h,p=new FileReader;p.readAsDataURL(x),p.onload=function(){e(v=>({...v,photo:p.result})),n("photo",p.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",i===null&&"px-9 pt-6 pb-2.5",o!==""&&o),children:[i?f.jsx("img",{src:i,alt:l,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:m=>m.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:o,data:i,setData:l,Component:s,id:a,defaultData:c,dispatch:m,isAdd:h=!0,search:x=null,isPadding:p=!0,isReadOnly:v=!1,isEdit:g=!1,deleteItem:b=null,validateAdd:y=null,loading:w=!1,internalEdit:C=!0,isDataEmpty:F=!0,typeProp:$="value",setAdd:A=null})=>{const[Y,q]=u.useState(!1),[k,L]=u.useState(!1),[,z]=u.useState(!1),[J,ne]=u.useState("");u.useEffect(()=>{q(e),z(v)},[e,v]);const ue=({e:O,index:P})=>{const U=Ct(i),{name:ce,value:he}=O.target;!(y===null?!1:y({value:he,copyData:U,index:P}))&&(U[P][ce]=he),l(U),t(a,U),n(Te=>({...Te,[a]:U}))},T=()=>{if(i.some(P=>Object.values(P).some(he=>he[$]===-1))||i.length===0)return m({type:"ALERT",payload:{title:"",message:"Todos los campos son requeridos",typeAlert:"warning",active:!0}});n(P=>({...P,data:i})),t(a,i),l([...i,c]),A&&A([...i,c])},re=({index:O,item:P})=>{const U=Ct(i);U.splice(O,1),n(ce=>({...ce,copyData:U})),t(a,U),l(U),b&&b({index:O,item:P,data:U}),O===i.length-1&&(n(ce=>({...ce,data:U})),t(a,U),l([...U,c]))},R=()=>{L(!k),z(!1)},te=()=>{if(i.length>1||i.length===0)return;const[O]=i,{rol:P,...U}=O;return Object.values(U).every((he,ve)=>Object.values(he)[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:()=>q(!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:[x&&f.jsx(rn,{htmlFor:"search",id:"search",name:"search",type:"text",autoComplete:"search",placeholder:"Buscar...",handleChange:O=>{x(O),ne(O.target.value)},icon:f.jsx(Fs,{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:J,onClick:O=>O.stopPropagation(),onFocus:()=>q(!0)}),Y?f.jsx(js,{className:"w-5 h-5 text-default-5"}):f.jsx(Cs,{className:"w-5 h-5 text-default-5"})]})]}),f.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:f.jsxs("div",{className:I("sm:mt-2.5 py-3.5 relative",p&&"px-4 sm:p-6"),children:[C&&!k&&f.jsx(ds,{className:"w-5 h-5 text-gray-400 cursor-pointer absolute right-4",onClick:R,"data-testid":`edit-role-${a}`}),w&&f.jsx("div",{className:"flex justify-center mt-5",children:f.jsx(lt,{})}),F&&te()&&!w&&(C?!k:!g)&&f.jsx("p",{className:"text-gray-800 text-center","data-testid":"records-empty",children:"No hay registros para mostrar"}),!w&&i.map((O,P)=>f.jsxs("div",{className:I("flex flex-col 3xs:flex-row mb-4",p&&"ml-0 3xs:ml-3"),children:[f.jsx(s,{item:O,index:P,handleChange:ue,isEdit:C?k:g}),h&&(C?k:g)&&f.jsx("div",{style:{backgroundColor:"#B0B8BF",width:"25px",height:"25px"},className:"rounded-full flex justify-center items-center mt-4 3xs:mt-7 ml-2 3xs:ml-5 self-start 3xs:self-center",children:f.jsx(ks,{className:"w-6 h-4 cursor-pointer",style:{color:"#637381"},strokeWidth:2.5,onClick:()=>re({index:P,item:O}),"data-testid":`delete-item-${P}-${a}`})})]},P)),h&&(C?k:g)&&f.jsx("p",{className:"text-secondary-2 text-sm font-medium ml-3 cursor-pointer",onClick:T,"data-testid":`add-item-${a}`,children:`+ Añadir ${o}`})]})})]})};B.Accordion=Ws,B.Alert=is,B.Avatar=bs,B.Bullets=xs,B.ButtonOutline=or,B.ButtonPagination=ir,B.ButtonSolid=it,B.Checkbox=ys,B.ConfirmationAbandoningCreation=$s,B.CoverPhoto=zs,B.Divider=Ps,B.Dropdown=Rs,B.GoBack=Ms,B.Input=rn,B.InputDropdown=Ds,B.MESSAGE_ABORT_CONTROLLER=Or,B.MESSAGE_SIGNAL_ABORTED_WITHOUT_REASON=jr,B.Modal=lr,B.Pagination=Bs,B.Select=ar,B.Spinner=As,B.SpinnerIcon=lt,B.Switch=Ls,B.Textarea=_s,B.Tooltip=sr,B.classNames=I,B.copyOptions=Ct,B.generateAvatarInitials=Tr,B.isPromise=Cr,B.rowsPerPage=ur,B.useCloseModal=Nr,B.useForm=Fr,B.useMediaQuery=Ir,B.useWindowDimensions=Ot,B.validateEmail=dn,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
61
+ `}),f.jsx(gt.Button,{as:"div",onClick:()=>ce(C),"data-testid":`menu-button-${F}`,children:e}),f.jsx("div",{className:I("absolute right-0 z-20",r,C&&"hidden",p&&"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:re,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",p?"w-full":i===""&&"w-max",i!==""&&i),children:p?f.jsx("div",{className:"flex justify-center py-4",children:f.jsx(lt,{})}):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",l),children:f.jsx(rn,{htmlFor:"search",id:`dropdown-search-${F}`,name:"search",type:"text",placeholder:v,handleChange:$=>g($,F),icon:v!==""&&f.jsx(us,{className:"w-4 h-4 text-indigo-300"}),className:"pl-5 pr-4 h-8",classNameContainerInput:"w-full",value:b,onKeyDown:$=>$.key===" "&&$.stopPropagation(),autocomplete:"off"})}),z!==null&&f.jsxs("div",{className:I("pt-1.5 justify-end flex items-center",l),children:[f.jsx(it,{classNameButton:I("bg-gray-400 hover:bg-gray-400 font-medium px-2 py-1.5 rounded-md",R.size>0?"opacity-1 cursor-pointer":"opacity-0 cursor-default"),outline:"",classNameText:"text-xs text-white text-center",id:"delete",onClick:ve,children:"Descartar"}),f.jsx(it,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 font-medium px-2 py-1.5 rounded-md",outline:R.size===0&&T?"":"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:R.size===0&&T,onClick:()=>z({id:F,items:Array.from(O.values())}),children:J})]})]}),q&&!ue&&f.jsx("div",{className:"flex flex-wrap ml-7 pt-1",children:Array.from(O).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:()=>he($[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:(ue?[]:n).map(($,H)=>f.jsx("div",{className:I(!w&&"py-1"),children:w?f.jsx("div",{onClick:se=>{se.preventDefault(),a()},"data-testid":`item-component-${H}`,children:$}):f.jsx(gt.Item,{children:f.jsx("span",{className:I(R.has($[m])&&"blue text-white",!R.has($[m])&&"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:se=>{se.preventDefault(),U($)},children:Ee($[c])})})},H))})]})})})})]})},ur=50,Bs=({total:e,handleNext:n,handlePrev:t,handleSelectPage:r,page:o=null})=>{const[i,l]=u.useState(1),[s,a]=u.useState([]),[c,m]=u.useState([]),h=Math.ceil(e/ur);u.useEffect(()=>{const v=[];for(let b=1;b<=h;b++)v.push(b);m(v)},[h]),u.useEffect(()=>{let v=[];const b="...",y="... ",w=" ...";if(c.length<6)v=c;else if(i>=1&&i<=3)v=[1,2,3,4,b,c.length];else if(i===4)v=[...c.slice(0,5),b,c.length];else if(i>4&&i<c.length-2){const C=c.slice(i-2,i),F=c.slice(i,i+1);v=[1,y,...C,...F,w,c.length]}else if(i>c.length-3){const C=c.slice(c.length-4);v=[1,y,...C]}a(v)},[i,c]),u.useEffect(()=>{o!==null&&o!==i&&l(o)},[o,i]);const x=v=>{l(v),r(v)},p=()=>{l(i===1?i:i-1),i>1&&t(i-1)},g=()=>{i===c.length?l(i):l(i+1),i<c.length&&n(i+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:p,"data-testid":"prev",children:[f.jsx(Ul,{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,b)=>f.jsx(ir,{className:I("inline-flex items-center border-t-2 px-4 pt-4 text-sm font-medium",i===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!=="... "&&x(v),id:`page-${b+1}`,children:v},b))}),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(Vl,{className:"ml-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]})})]})},zs=({setForm:e,setValuesDefault:n,className:t="",classNameContainer:r="",classNameContainerImg:o="",src:i=null,alt:l=null,width:s,height:a})=>{const c=m=>{const{files:h}=m.target,[x]=h,p=new FileReader;p.readAsDataURL(x),p.onload=function(){e(g=>({...g,photo:p.result})),n("photo",p.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",i===null&&"px-9 pt-6 pb-2.5",o!==""&&o),children:[i?f.jsx("img",{src:i,alt:l,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:m=>m.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:o,data:i,setData:l,Component:s,id:a,defaultData:c,dispatch:m,isAdd:h=!0,search:x=null,isPadding:p=!0,isReadOnly:g=!1,isEdit:v=!1,deleteItem:b=null,validateAdd:y=null,loading:w=!1,internalEdit:C=!0,isDataEmpty:F=!0,typeProp:P="value",setAdd:A=null})=>{const[Y,q]=u.useState(!1),[k,L]=u.useState(!1),[,z]=u.useState(!1),[J,ne]=u.useState("");u.useEffect(()=>{q(e),z(g)},[e,g]);const ue=({e:O,index:M})=>{const U=Ct(i),{name:ce,value:he}=O.target;!(y===null?!1:y({value:he,copyData:U,index:M}))&&(U[M][ce]=he),l(U),t(a,U),n(Ee=>({...Ee,[a]:U}))},T=()=>{if(i.some(M=>Object.values(M).some(he=>he[P]===-1))||i.length===0)return m({type:"ALERT",payload:{title:"",message:"Todos los campos son requeridos",typeAlert:"warning",active:!0}});n(M=>({...M,data:i})),t(a,i),l([...i,c]),A&&A([...i,c])},re=({index:O,item:M})=>{if(i.length===1&&!v)return;const U=Ct(i);U.splice(O,1),n(ce=>({...ce,data:U})),t(a,U),l(U),b&&b({index:O,item:M,data:U}),O===i.length-1&&v&&U.length===0&&(n(ce=>({...ce,data:U})),t(a,U),l([...U,c]))},R=()=>{L(!k),z(!1)},te=()=>{if(i.length>1)return;if(i.length===0)return!0;const[O]=i,{rol:M,privileges:U,limitedPrivileges:ce,...he}=O;return Object.values(he).every(Ee=>Object.values(Ee)[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:()=>q(!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:[x&&f.jsx(rn,{htmlFor:"search",id:"search",name:"search",type:"text",autoComplete:"search",placeholder:"Buscar...",handleChange:O=>{x(O),ne(O.target.value)},icon:f.jsx(Fs,{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:J,onClick:O=>O.stopPropagation(),onFocus:()=>q(!0)}),Y?f.jsx(js,{className:"w-5 h-5 text-default-5"}):f.jsx(Cs,{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",p&&"px-4 sm:p-6"),children:[C&&!k&&f.jsx(ds,{className:"w-5 h-5 text-gray-400 cursor-pointer absolute right-4",onClick:R,"data-testid":`edit-role-${a}`}),w&&f.jsx("div",{className:"flex justify-center mt-5",children:f.jsx(lt,{})}),F&&te()&&!w&&(C?!k:!v)&&f.jsx("p",{className:"text-gray-800 text-center","data-testid":"records-empty",children:"No hay registros para mostrar"}),!w&&i.map((O,M)=>f.jsxs("div",{className:I("flex flex-col 3xs:flex-row mb-4",p&&"ml-0 3xs:ml-3"),children:[f.jsx(s,{item:O,index:M,handleChange:ue,isEdit:C?k:v}),h&&(C?k: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",i.length===1&&!v&&"opacity-0"),children:f.jsx(ks,{className:I("w-6 h-4",(i.length>1||v)&&"cursor-pointer"),style:{color:"#637381"},strokeWidth:2.5,onClick:()=>re({index:M,item:O}),"data-testid":`delete-item-${M}-${a}`})})]},M)),h&&(C?k:v)&&f.jsx("p",{className:"text-secondary-2 text-sm font-medium ml-3 cursor-pointer",onClick:T,"data-testid":`add-item-${a}`,style:{width:"fit-content"},children:`+ Añadir ${o}`})]})})]})};B.Accordion=Ws,B.Alert=is,B.Avatar=bs,B.Bullets=xs,B.ButtonOutline=or,B.ButtonPagination=ir,B.ButtonSolid=it,B.Checkbox=ys,B.ConfirmationAbandoningCreation=Ps,B.CoverPhoto=zs,B.Divider=$s,B.Dropdown=Rs,B.GoBack=Ms,B.Input=rn,B.InputDropdown=Ds,B.MESSAGE_ABORT_CONTROLLER=Or,B.MESSAGE_SIGNAL_ABORTED_WITHOUT_REASON=jr,B.Modal=lr,B.Pagination=Bs,B.Select=ar,B.Spinner=As,B.SpinnerIcon=lt,B.Switch=Ls,B.Textarea=_s,B.Tooltip=sr,B.classNames=I,B.copyOptions=Ct,B.generateAvatarInitials=Tr,B.isPromise=Cr,B.rowsPerPage=ur,B.useCloseModal=Nr,B.useForm=Fr,B.useMediaQuery=Ir,B.useWindowDimensions=Ot,B.validateEmail=dn,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cemtrik-dependencies",
3
- "version": "1.0.130",
3
+ "version": "1.0.132",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "dev": "vite",