ui-mathilde-web 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(te,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],g):(te=typeof globalThis<"u"?globalThis:te||self,g(te["ui-mathilde-web"]={},te.jsxRuntime,te.React,te.ReactDOM))})(this,function(te,g,k,Wa){"use strict";var IC=Object.defineProperty;var LC=(te,g,k)=>g in te?IC(te,g,{enumerable:!0,configurable:!0,writable:!0,value:k}):te[g]=k;var ee=(te,g,k)=>LC(te,typeof g!="symbol"?g+"":g,k);var Ii,nr,Ha;function Va(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const C=Va(k),Ug=Va(Wa),Qn={"mth-btn-default":"button-module__mth-btn-default__cda3k",mthBtnDefault:"button-module__mth-btn-default__cda3k","mth-btn-border":"button-module__mth-btn-border__-pdSm",mthBtnBorder:"button-module__mth-btn-border__-pdSm","mth-btn":"button-module__mth-btn__LkrNk",mthBtn:"button-module__mth-btn__LkrNk","mth-btn-full":"button-module__mth-btn-full__7QycJ",mthBtnFull:"button-module__mth-btn-full__7QycJ"},Kg=({txtBtn:t,typeButton:e,full:r,onClick:n,disabled:o,type:i,leftIcon:s,rightIcon:a,iconSize:l=20})=>g.jsx("div",{className:`${r?Qn["mth-btn-full"]:""}`,children:g.jsxs("button",{type:i,className:`${Qn["mth-btn"]} ${Qn[`mth-btn-${e}`]} ${r?Qn["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:n,disabled:o,children:[s&&g.jsx(s,{size:l}),t,a&&g.jsx(a,{size:l})]})}),eo={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},qg=({label:t,value:e,checked:r,onChange:n})=>g.jsxs("label",{className:eo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",value:e,checked:r,onChange:n}),g.jsx("span",{className:eo.checkmark}),t&&g.jsx("span",{className:"ml-2",children:t})]}),Rt=({src:t,alt:e,width:r,height:n,classIm:o})=>g.jsx("img",{className:o,src:t,alt:e,width:r,height:n}),Ra=k.forwardRef(({placeholder:t,label:e,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>g.jsxs("div",{className:"mb-5",children:[e&&g.jsx("label",{className:" mb-1 block font-semibold",children:e}),g.jsx("input",{ref:l,type:n,placeholder:t,className:`w-full border p-2 ${o||""}`,maxLength:i,onChange:s,...a}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Ra.displayName="InputForm";var Ya={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ua=k.createContext&&k.createContext(Ya),Gg=["attr","size","title"];function Xg(t,e){if(t==null)return{};var r=Zg(t,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Zg(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(r[o]=t[o]);return r}function to(){return to=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},to.apply(this,arguments)}function Ka(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ro(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ka(Object(r),!0).forEach(function(n){Jg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Jg(t,e,r){return e=Qg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qg(t){var e=ep(t,"string");return typeof e=="symbol"?e:String(e)}function ep(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qa(t){return t&&t.map((e,r)=>k.createElement(e.tag,ro({key:r},e.attr),qa(e.child)))}function ge(t){return e=>k.createElement(tp,to({attr:ro({},t.attr)},e),qa(t.child))}function tp(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=Xg(t,Gg),a=o||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),k.createElement("svg",to({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:ro(ro({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&k.createElement("title",null,i),t.children)};return Ua!==void 0?k.createElement(Ua.Consumer,null,r=>e(r)):e(Ya)}function rp(t){return ge({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function np(t){return ge({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(t)}function op(t){return ge({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(t)}function ip(t){return ge({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(t)}function sp(t){return ge({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(t)}function ap(t){return ge({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"},child:[]}]})(t)}function lp(t){return ge({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(t)}const cp={"mth-password":"passwordInput-module__mth-password__R6DoN"},Fi=({placeholder:t,onChange:e,value:r,...n})=>{const[o,i]=k.useState(!1),s=()=>{i(!o)};return g.jsx("div",{className:"mb-5",children:g.jsxs("div",{className:"relative inline-block w-full",children:[g.jsx("input",{type:o?"text":"password",value:r,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...n}),g.jsx("button",{type:"button",onClick:s,className:cp["mth-password"],children:o?g.jsx(ip,{}):g.jsx(sp,{})})]})})},Ga={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},Xa=({start:t,end:e,current:r})=>{const n=(r-t)/(e-t)*100;return g.jsxs("div",{className:"relative h-4 w-full overflow-hidden rounded-full bg-gray-200",children:[g.jsx("div",{className:`absolute left-0 top-0 h-full rounded-full ${n<50?Ga["progress-no-check"]:Ga["progress-check"]}`,style:{width:`${Math.min(n,100)}%`}}),g.jsx("div",{className:"absolute inset-0 flex items-center px-2",children:g.jsxs("span",{className:"z-10 text-sm font-medium text-gray-900",children:[r.toFixed(2),"%"]})})]})},Za=k.forwardRef(({options:t,label:e,error:r,value:n,onChange:o,...i},s)=>g.jsxs("div",{className:"mb-5",children:[e&&g.jsx("label",{className:"mb-1 block font-semibold",children:e}),g.jsxs("select",{ref:s,className:"w-full rounded border p-2",value:n,onChange:o,...i,children:[g.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(a=>g.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Za.displayName="SelectForm";const dp={conversiones:"https://ftp.mathilde-ads.com/151-a05ae956a2c7caeb6f6d8952cac41a24.svg",click:"https://ftp.mathilde-ads.com/151-81ace0b5242dabee10930b76df01d43b.svg",impresiones:"https://ftp.mathilde-ads.com/151-b50587f350bafb8f19a9308325b45467.svg",porcentaje:"https://ftp.mathilde-ads.com/151-846076c2407128d25fffa4f35342d415.svg",vistas:"https://ftp.mathilde-ads.com/151-2b68ef020e57a0986c576b16607d85dd.svg"},up=({logo:t,number:e,title:r,start:n,end:o,current:i})=>{const s=a=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(a);return g.jsxs("div",{className:"flex flex-col border bg-white px-3.5 py-7",children:[g.jsx("div",{className:"flex justify-end",children:g.jsx(Rt,{src:dp[t]||"",alt:"Icon",width:30,height:30})}),g.jsx("h2",{className:"my-3 font-bold",children:r}),g.jsx("small",{className:"text-3xl",children:s(e)}),g.jsx("div",{className:"mt-2 w-full",children:g.jsx(Xa,{start:n,end:o,current:i})})]})};/*!
1
+ (function(te,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],g):(te=typeof globalThis<"u"?globalThis:te||self,g(te["ui-mathilde-web"]={},te.jsxRuntime,te.React,te.ReactDOM))})(this,function(te,g,k,Wa){"use strict";var FC=Object.defineProperty;var zC=(te,g,k)=>g in te?FC(te,g,{enumerable:!0,configurable:!0,writable:!0,value:k}):te[g]=k;var ee=(te,g,k)=>zC(te,typeof g!="symbol"?g+"":g,k);var Ii,nr,Ha;function Va(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const C=Va(k),Ug=Va(Wa),Qn={"mth-btn-default":"button-module__mth-btn-default__cda3k",mthBtnDefault:"button-module__mth-btn-default__cda3k","mth-btn-border":"button-module__mth-btn-border__-pdSm",mthBtnBorder:"button-module__mth-btn-border__-pdSm","mth-btn":"button-module__mth-btn__LkrNk",mthBtn:"button-module__mth-btn__LkrNk","mth-btn-full":"button-module__mth-btn-full__7QycJ",mthBtnFull:"button-module__mth-btn-full__7QycJ"},Kg=({txtBtn:t,typeButton:e,full:r,onClick:n,disabled:o,type:i,leftIcon:s,rightIcon:a,iconSize:l=20})=>g.jsx("div",{className:`${r?Qn["mth-btn-full"]:""}`,children:g.jsxs("button",{type:i,className:`${Qn["mth-btn"]} ${Qn[`mth-btn-${e}`]} ${r?Qn["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:n,disabled:o,children:[s&&g.jsx(s,{size:l}),t,a&&g.jsx(a,{size:l})]})}),eo={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},qg=({label:t,value:e,checked:r,onChange:n})=>g.jsxs("label",{className:eo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",value:e,checked:r,onChange:n}),g.jsx("span",{className:eo.checkmark}),t&&g.jsx("span",{className:"ml-2",children:t})]}),Rt=({src:t,alt:e,width:r,height:n,classIm:o})=>g.jsx("img",{className:o,src:t,alt:e,width:r,height:n}),Ra=k.forwardRef(({placeholder:t,label:e,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>g.jsxs("div",{className:"mb-5",children:[e&&g.jsx("label",{className:" mb-1 block font-semibold",children:e}),g.jsx("input",{ref:l,type:n,placeholder:t,className:`w-full border p-2 ${o||""}`,maxLength:i,onChange:s,...a}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Ra.displayName="InputForm";var Ya={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ua=k.createContext&&k.createContext(Ya),Gg=["attr","size","title"];function Xg(t,e){if(t==null)return{};var r=Zg(t,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Zg(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(r[o]=t[o]);return r}function to(){return to=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},to.apply(this,arguments)}function Ka(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ro(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ka(Object(r),!0).forEach(function(n){Jg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Jg(t,e,r){return e=Qg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qg(t){var e=ep(t,"string");return typeof e=="symbol"?e:String(e)}function ep(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qa(t){return t&&t.map((e,r)=>k.createElement(e.tag,ro({key:r},e.attr),qa(e.child)))}function ge(t){return e=>k.createElement(tp,to({attr:ro({},t.attr)},e),qa(t.child))}function tp(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=Xg(t,Gg),a=o||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),k.createElement("svg",to({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:ro(ro({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&k.createElement("title",null,i),t.children)};return Ua!==void 0?k.createElement(Ua.Consumer,null,r=>e(r)):e(Ya)}function rp(t){return ge({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function np(t){return ge({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(t)}function op(t){return ge({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(t)}function ip(t){return ge({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(t)}function sp(t){return ge({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(t)}function ap(t){return ge({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"},child:[]}]})(t)}function lp(t){return ge({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(t)}const cp={"mth-password":"passwordInput-module__mth-password__R6DoN"},Fi=({placeholder:t,onChange:e,value:r,...n})=>{const[o,i]=k.useState(!1),s=()=>{i(!o)};return g.jsx("div",{className:"mb-5",children:g.jsxs("div",{className:"relative inline-block w-full",children:[g.jsx("input",{type:o?"text":"password",value:r,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...n}),g.jsx("button",{type:"button",onClick:s,className:cp["mth-password"],children:o?g.jsx(ip,{}):g.jsx(sp,{})})]})})},Ga={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},Xa=({start:t,end:e,current:r})=>{const n=(r-t)/(e-t)*100;return g.jsxs("div",{className:"relative h-4 w-full overflow-hidden rounded-full bg-gray-200",children:[g.jsx("div",{className:`absolute left-0 top-0 h-full rounded-full ${n<50?Ga["progress-no-check"]:Ga["progress-check"]}`,style:{width:`${Math.min(n,100)}%`}}),g.jsx("div",{className:"absolute inset-0 flex items-center px-2",children:g.jsxs("span",{className:"z-10 text-sm font-medium text-gray-900",children:[r.toFixed(2),"%"]})})]})},Za=k.forwardRef(({options:t,label:e,error:r,value:n,onChange:o,...i},s)=>g.jsxs("div",{className:"mb-5",children:[e&&g.jsx("label",{className:"mb-1 block font-semibold",children:e}),g.jsxs("select",{ref:s,className:"w-full rounded border p-2",value:n,onChange:o,...i,children:[g.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(a=>g.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Za.displayName="SelectForm";const dp={conversiones:"https://ftp.mathilde-ads.com/151-a05ae956a2c7caeb6f6d8952cac41a24.svg",click:"https://ftp.mathilde-ads.com/151-81ace0b5242dabee10930b76df01d43b.svg",impresiones:"https://ftp.mathilde-ads.com/151-b50587f350bafb8f19a9308325b45467.svg",porcentaje:"https://ftp.mathilde-ads.com/151-846076c2407128d25fffa4f35342d415.svg",vistas:"https://ftp.mathilde-ads.com/151-2b68ef020e57a0986c576b16607d85dd.svg"},up=({logo:t,number:e,title:r,start:n,end:o,current:i})=>{const s=a=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(a);return g.jsxs("div",{className:"flex flex-col border bg-white px-3.5 py-7",children:[g.jsx("div",{className:"flex justify-end",children:g.jsx(Rt,{src:dp[t]||"",alt:"Icon",width:30,height:30})}),g.jsx("h2",{className:"my-3 font-bold",children:r}),g.jsx("small",{className:"text-3xl",children:s(e)}),g.jsx("div",{className:"mt-2 w-full",children:g.jsx(Xa,{start:n,end:o,current:i})})]})};/*!
2
2
  * @kurkle/color v0.3.4
3
3
  * https://github.com/kurkle/color#readme
4
4
  * (c) 2024 Jukka Kurkela
@@ -488,16 +488,16 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
488
488
  * @license MIT
489
489
  */function Be(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ft(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function $s({pathname:t="/",search:e="",hash:r=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function js(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substring(r),t=t.substring(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substring(n),t=t.substring(0,n)),t&&(e.pathname=t)}return e}function vu(t,e,r="/"){return Kx(t,e,r,!1)}function Kx(t,e,r,n){let o=typeof e=="string"?js(e):e,i=Zt(o.pathname||"/",r);if(i==null)return null;let s=xu(t);qx(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=iw(i);a=nw(s[l],c,n)}return a}function xu(t,e=[],r=[],n=""){let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Be(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length));let c=zt([n,l.relativePath]),d=r.concat(l);i.children&&i.children.length>0&&(Be(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),xu(i.children,e,d,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:tw(c,i.index),routesMeta:d})};return t.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of wu(i.path))o(i,s,l)}),e}function wu(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let s=wu(n.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function qx(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:rw(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Gx=/^:[\w-]+$/,Xx=3,Zx=2,Jx=1,Qx=10,ew=-2,ku=t=>t==="*";function tw(t,e){let r=t.split("/"),n=r.length;return r.some(ku)&&(n+=ew),e&&(n+=Zx),r.filter(o=>!ku(o)).reduce((o,i)=>o+(Gx.test(i)?Xx:i===""?Jx:Qx),n)}function rw(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function nw(t,e,r=!1){let{routesMeta:n}=t,o={},i="/",s=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,d=i==="/"?e:e.slice(i.length)||"/",u=ti({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&r&&!n[n.length-1].route.index&&(u=ti({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!u)return null;Object.assign(o,u.params),s.push({params:o,pathname:zt([i,u.pathname]),pathnameBase:cw(zt([i,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(i=zt([i,u.pathnameBase]))}return s}function ti(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=ow(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:n.reduce((c,{paramName:d,isOptional:u},f)=>{if(d==="*"){let p=a[f]||"";s=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const h=a[f];return u&&!h?c[d]=void 0:c[d]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:t}}function ow(t,e=!1,r=!0){Ft(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function iw(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ft(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Zt(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function sw(t,e="/"){let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?js(t):t;return{pathname:r?r.startsWith("/")?r:aw(r,e):e,search:dw(n),hash:uw(o)}}function aw(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Hs(t,e,r,n){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lw(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Cu(t){let e=lw(t);return e.map((r,n)=>n===e.length-1?r.pathname:r.pathnameBase)}function _u(t,e,r,n=!1){let o;typeof t=="string"?o=js(t):(o={...t},Be(!o.pathname||!o.pathname.includes("?"),Hs("?","pathname","search",o)),Be(!o.pathname||!o.pathname.includes("#"),Hs("#","pathname","hash",o)),Be(!o.search||!o.search.includes("#"),Hs("#","search","hash",o)));let i=t===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=r;else{let u=e.length-1;if(!n&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),u-=1;o.pathname=f.join("/")}a=u>=0?e[u]:"/"}let l=sw(o,a),c=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var zt=t=>t.join("/").replace(/\/\/+/g,"/"),cw=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),dw=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,uw=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function fw(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Su=["POST","PUT","PATCH","DELETE"];new Set(Su);var hw=["GET",...Su];new Set(hw);var jr=C.createContext(null);jr.displayName="DataRouter";var ri=C.createContext(null);ri.displayName="DataRouterState";var Eu=C.createContext({isTransitioning:!1});Eu.displayName="ViewTransition";var gw=C.createContext(new Map);gw.displayName="Fetchers";var pw=C.createContext(null);pw.displayName="Await";var Bt=C.createContext(null);Bt.displayName="Navigation";var Ws=C.createContext(null);Ws.displayName="Location";var $t=C.createContext({outlet:null,matches:[],isDataRoute:!1});$t.displayName="Route";var Vs=C.createContext(null);Vs.displayName="RouteError";function mw(t,{relative:e}={}){Be(ni(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=C.useContext(Bt),{hash:o,pathname:i,search:s}=Bn(t,{relative:e}),a=i;return r!=="/"&&(a=i==="/"?r:zt([r,i])),n.createHref({pathname:a,search:s,hash:o})}function ni(){return C.useContext(Ws)!=null}function yr(){return Be(ni(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Ws).location}var Ou="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tu(t){C.useContext(Bt).static||C.useLayoutEffect(t)}function bw(){let{isDataRoute:t}=C.useContext($t);return t?Mw():yw()}function yw(){Be(ni(),"useNavigate() may be used only in the context of a <Router> component.");let t=C.useContext(jr),{basename:e,navigator:r}=C.useContext(Bt),{matches:n}=C.useContext($t),{pathname:o}=yr(),i=JSON.stringify(Cu(n)),s=C.useRef(!1);return Tu(()=>{s.current=!0}),C.useCallback((l,c={})=>{if(Ft(s.current,Ou),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=_u(l,JSON.parse(i),o,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:zt([e,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[e,r,i,o,t])}C.createContext(null);function Bn(t,{relative:e}={}){let{matches:r}=C.useContext($t),{pathname:n}=yr(),o=JSON.stringify(Cu(r));return C.useMemo(()=>_u(t,JSON.parse(o),n,e==="path"),[t,o,n,e])}function vw(t,e,r,n){Be(ni(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:i}=C.useContext(Bt),{matches:s}=C.useContext($t),a=s[s.length-1],l=a?a.params:{},c=a?a.pathname:"/",d=a?a.pathnameBase:"/",u=a&&a.route;{let y=u&&u.path||"";Mu(c,!u||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
490
490
 
491
- Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=yr(),h;h=f;let p=h.pathname||"/",m=p;if(d!=="/"){let y=d.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=!i&&r&&r.matches&&r.matches.length>0?r.matches:vu(t,{pathname:m});return Ft(u||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Ft(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),_w(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:zt([d,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?d:zt([d,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),s,r,n)}function xw(){let t=Nw(),e=fw(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:i},"ErrorBoundary")," or"," ",C.createElement("code",{style:i},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},e),r?C.createElement("pre",{style:o},r):null,s)}var ww=C.createElement(xw,null),kw=class extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?C.createElement($t.Provider,{value:this.props.routeContext},C.createElement(Vs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cw({routeContext:t,match:e,children:r}){let n=C.useContext(jr);return n&&n.static&&n.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=e.route.id),C.createElement($t.Provider,{value:t},r)}function _w(t,e=[],r=null,n=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,i=r==null?void 0:r.errors;if(i!=null){let l=o.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);Be(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let s=!1,a=-1;if(r)for(let l=0;l<o.length;l++){let c=o[l];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(a=l),c.route.id){let{loaderData:d,errors:u}=r,f=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!u||u[c.route.id]===void 0);if(c.route.lazy||f){s=!0,a>=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((l,c,d)=>{let u,f=!1,h=null,p=null;r&&(u=i&&c.route.id?i[c.route.id]:void 0,h=c.route.errorElement||ww,s&&(a<0&&d===0?(Mu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):a===d&&(f=!0,p=c.route.hydrateFallbackElement||null)));let m=e.concat(o.slice(0,d+1)),b=()=>{let v;return u?v=h:f?v=p:c.route.Component?v=C.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=l,C.createElement(Cw,{match:c,routeContext:{outlet:l,matches:m,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?C.createElement(kw,{location:r.location,revalidation:r.revalidation,component:h,error:u,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function Rs(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sw(t){let e=C.useContext(jr);return Be(e,Rs(t)),e}function Ew(t){let e=C.useContext(ri);return Be(e,Rs(t)),e}function Ow(t){let e=C.useContext($t);return Be(e,Rs(t)),e}function Ys(t){let e=Ow(t),r=e.matches[e.matches.length-1];return Be(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Tw(){return Ys("useRouteId")}function Nw(){var n;let t=C.useContext(Vs),e=Ew("useRouteError"),r=Ys("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function Mw(){let{router:t}=Sw("useNavigate"),e=Ys("useNavigate"),r=C.useRef(!1);return Tu(()=>{r.current=!0}),C.useCallback(async(o,i={})=>{Ft(r.current,Ou),r.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var Nu={};function Mu(t,e,r){!e&&!Nu[t]&&(Nu[t]=!0,Ft(!1,r))}C.memo(Pw);function Pw({routes:t,future:e,state:r}){return vw(t,void 0,r,e)}var oi="get",ii="application/x-www-form-urlencoded";function si(t){return t!=null&&typeof t.tagName=="string"}function Aw(t){return si(t)&&t.tagName.toLowerCase()==="button"}function Dw(t){return si(t)&&t.tagName.toLowerCase()==="form"}function Iw(t){return si(t)&&t.tagName.toLowerCase()==="input"}function Lw(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Fw(t,e){return t.button===0&&(!e||e==="_self")&&!Lw(t)}var ai=null;function zw(){if(ai===null)try{new FormData(document.createElement("form"),0),ai=!1}catch{ai=!0}return ai}var Bw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Us(t){return t!=null&&!Bw.has(t)?(Ft(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ii}"`),null):t}function $w(t,e){let r,n,o,i,s;if(Dw(t)){let a=t.getAttribute("action");n=a?Zt(a,e):null,r=t.getAttribute("method")||oi,o=Us(t.getAttribute("enctype"))||ii,i=new FormData(t)}else if(Aw(t)||Iw(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(n=l?Zt(l,e):null,r=t.getAttribute("formmethod")||a.getAttribute("method")||oi,o=Us(t.getAttribute("formenctype"))||Us(a.getAttribute("enctype"))||ii,i=new FormData(a,t),!zw()){let{name:c,type:d,value:u}=t;if(d==="image"){let f=c?`${c}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else c&&i.append(c,u)}}else{if(si(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=oi,n=null,o=ii,s=t}return i&&o==="text/plain"&&(s=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:s}}function Ks(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}async function jw(t,e){if(t.id in e)return e[t.id];try{let r=await import(t.module);return e[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Hw(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Ww(t,e,r){let n=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let s=await jw(i,r);return s.links?s.links():[]}return[]}));return Uw(n.flat(1).filter(Hw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Pu(t,e,r,n,o,i){let s=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,a=(l,c)=>{var d;return r[c].pathname!==l.pathname||((d=r[c].route.path)==null?void 0:d.endsWith("*"))&&r[c].params["*"]!==l.params["*"]};return i==="assets"?e.filter((l,c)=>s(l,c)||a(l,c)):i==="data"?e.filter((l,c)=>{var u;let d=n.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((u=r[0])==null?void 0:u.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Vw(t,e,{includeHydrateFallback:r}={}){return Rw(t.map(n=>{let o=e.routes[n.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Rw(t){return[...new Set(t)]}function Yw(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function Uw(t,e){let r=new Set;return new Set(e),t.reduce((n,o)=>{let i=JSON.stringify(Yw(o));return r.has(i)||(r.add(i),n.push({key:i,link:o})),n},[])}function Kw(t,e){let r=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r.pathname==="/"?r.pathname="_root.data":e&&Zt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Au(){let t=C.useContext(jr);return Ks(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function qw(){let t=C.useContext(ri);return Ks(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var qs=C.createContext(void 0);qs.displayName="FrameworkContext";function Du(){let t=C.useContext(qs);return Ks(t,"You must render this element inside a <HydratedRouter> element"),t}function Gw(t,e){let r=C.useContext(qs),[n,o]=C.useState(!1),[i,s]=C.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:u}=e,f=C.useRef(null);C.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let m=v=>{v.forEach(y=>{s(y.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return f.current&&b.observe(f.current),()=>{b.disconnect()}}},[t]),C.useEffect(()=>{if(n){let m=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(m)}}},[n]);let h=()=>{o(!0)},p=()=>{o(!1),s(!1)};return r?t!=="intent"?[i,f,{}]:[i,f,{onFocus:$n(a,h),onBlur:$n(l,p),onMouseEnter:$n(c,h),onMouseLeave:$n(d,p),onTouchStart:$n(u,h)}]:[!1,f,{}]}function $n(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function Xw({page:t,...e}){let{router:r}=Au(),n=C.useMemo(()=>vu(r.routes,t,r.basename),[r.routes,t,r.basename]);return n?C.createElement(Jw,{page:t,matches:n,...e}):null}function Zw(t){let{manifest:e,routeModules:r}=Du(),[n,o]=C.useState([]);return C.useEffect(()=>{let i=!1;return Ww(t,e,r).then(s=>{i||o(s)}),()=>{i=!0}},[t,e,r]),n}function Jw({page:t,matches:e,...r}){let n=yr(),{manifest:o,routeModules:i}=Du(),{basename:s}=Au(),{loaderData:a,matches:l}=qw(),c=C.useMemo(()=>Pu(t,e,l,o,n,"data"),[t,e,l,o,n]),d=C.useMemo(()=>Pu(t,e,l,o,n,"assets"),[t,e,l,o,n]),u=C.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let p=new Set,m=!1;if(e.forEach(v=>{var _;let y=o.routes[v.route.id];!y||!y.hasLoader||(!c.some(x=>x.route.id===v.route.id)&&v.route.id in a&&((_=i[v.route.id])!=null&&_.shouldRevalidate)||y.hasClientLoader?m=!0:p.add(v.route.id))}),p.size===0)return[];let b=Kw(t,s);return m&&p.size>0&&b.searchParams.set("_routes",e.filter(v=>p.has(v.route.id)).map(v=>v.route.id).join(",")),[b.pathname+b.search]},[s,a,n,o,c,e,t,i]),f=C.useMemo(()=>Vw(d,o),[d,o]),h=Zw(d);return C.createElement(C.Fragment,null,u.map(p=>C.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...r})),f.map(p=>C.createElement("link",{key:p,rel:"modulepreload",href:p,...r})),h.map(({key:p,link:m})=>C.createElement("link",{key:p,...m})))}function Qw(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var Iu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Iu&&(window.__reactRouterVersion="7.4.0")}catch{}var Lu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hr=C.forwardRef(function({onClick:e,discover:r="render",prefetch:n="none",relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:d,viewTransition:u,...f},h){let{basename:p}=C.useContext(Bt),m=typeof c=="string"&&Lu.test(c),b,v=!1;if(typeof c=="string"&&m&&(b=c,Iu))try{let N=new URL(window.location.href),E=c.startsWith("//")?new URL(N.protocol+c):new URL(c),I=Zt(E.pathname,p);E.origin===N.origin&&I!=null?c=I+E.search+E.hash:v=!0}catch{Ft(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=mw(c,{relative:o}),[_,x,w]=Gw(n,f),S=n1(c,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,viewTransition:u});function T(N){e&&e(N),N.defaultPrevented||S(N)}let M=C.createElement("a",{...f,...w,href:b||y,onClick:v||i?e:T,ref:Qw(h,x),target:l,"data-discover":!m&&r==="render"?"true":void 0});return _&&!m?C.createElement(C.Fragment,null,M,C.createElement(Xw,{page:y})):M});Hr.displayName="Link";var e1=C.forwardRef(function({"aria-current":e="page",caseSensitive:r=!1,className:n="",end:o=!1,style:i,to:s,viewTransition:a,children:l,...c},d){let u=Bn(s,{relative:c.relative}),f=yr(),h=C.useContext(ri),{navigator:p,basename:m}=C.useContext(Bt),b=h!=null&&l1(u)&&a===!0,v=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,y=f.pathname,_=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;r||(y=y.toLowerCase(),_=_?_.toLowerCase():null,v=v.toLowerCase()),_&&m&&(_=Zt(_,m)||_);const x=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let w=y===v||!o&&y.startsWith(v)&&y.charAt(x)==="/",S=_!=null&&(_===v||!o&&_.startsWith(v)&&_.charAt(v.length)==="/"),T={isActive:w,isPending:S,isTransitioning:b},M=w?e:void 0,N;typeof n=="function"?N=n(T):N=[n,w?"active":null,S?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let E=typeof i=="function"?i(T):i;return C.createElement(Hr,{...c,"aria-current":M,className:N,ref:d,style:E,to:s,viewTransition:a},typeof l=="function"?l(T):l)});e1.displayName="NavLink";var t1=C.forwardRef(({discover:t="render",fetcherKey:e,navigate:r,reloadDocument:n,replace:o,state:i,method:s=oi,action:a,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,...f},h)=>{let p=s1(),m=a1(a,{relative:c}),b=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&Lu.test(a),y=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let x=_.nativeEvent.submitter,w=(x==null?void 0:x.getAttribute("formmethod"))||s;p(x||_.currentTarget,{fetcherKey:e,method:w,navigate:r,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:u})};return C.createElement("form",{ref:h,method:b,action:m,onSubmit:n?l:y,...f,"data-discover":!v&&t==="render"?"true":void 0})});t1.displayName="Form";function r1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fu(t){let e=C.useContext(jr);return Be(e,r1(t)),e}function n1(t,{target:e,replace:r,state:n,preventScrollReset:o,relative:i,viewTransition:s}={}){let a=bw(),l=yr(),c=Bn(t,{relative:i});return C.useCallback(d=>{if(Fw(d,e)){d.preventDefault();let u=r!==void 0?r:$s(l)===$s(c);a(t,{replace:u,state:n,preventScrollReset:o,relative:i,viewTransition:s})}},[l,a,c,r,n,e,t,o,i,s])}var o1=0,i1=()=>`__${String(++o1)}__`;function s1(){let{router:t}=Fu("useSubmit"),{basename:e}=C.useContext(Bt),r=Tw();return C.useCallback(async(n,o={})=>{let{action:i,method:s,encType:a,formData:l,body:c}=$w(n,e);if(o.navigate===!1){let d=o.fetcherKey||i1();await t.fetch(d,r,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||s,formEncType:o.encType||a,flushSync:o.flushSync})}else await t.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||s,formEncType:o.encType||a,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[t,e,r])}function a1(t,{relative:e}={}){let{basename:r}=C.useContext(Bt),n=C.useContext($t);Be(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),i={...Bn(t||".",{relative:e})},s=yr();if(t==null){i.search=s.search;let a=new URLSearchParams(i.search),l=a.getAll("index");if(l.some(d=>d==="")){a.delete("index"),l.filter(u=>u).forEach(u=>a.append("index",u));let d=a.toString();i.search=d?`?${d}`:""}}return(!t||t===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:zt([r,i.pathname])),$s(i)}function l1(t,e={}){let r=C.useContext(Eu);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Fu("useViewTransitionState"),o=Bn(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Zt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Zt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ti(o.pathname,s)!=null||ti(o.pathname,i)!=null}new TextEncoder;const c1=()=>{const[t,e]=k.useState(!0),[r,n]=k.useState(null),o=()=>{r||e(!1)},i=()=>{r||e(!0)},s=a=>{n(r===a?null:a)};return g.jsx("div",{className:"fixed left-0 top-0 z-40 h-full",children:g.jsxs("div",{className:"flex flex-col",onMouseEnter:o,onMouseLeave:i,children:[g.jsxs(av,{collapsed:t,rootStyles:{[`.${xe.container}`]:{backgroundColor:"#483FFF",color:"#483FFF",height:"100vh",display:"flex",flexDirection:"column"}},children:[g.jsx(Hr,{to:"/dashboard",children:g.jsx("div",{children:g.jsx(Rt,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/151-5f18f5b0ce0f79b3c7e3ffbd4828ec14.png",alt:"Logo Mathilde ads",width:74,height:74})})}),g.jsxs(dv,{children:[g.jsxs($r,{icon:g.jsx(ap,{className:"text-2xl"}),onClick:()=>s("campanas"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Campañas"," "]}),g.jsx(Hr,{to:"https://dsp.mathilde-ads.com/login",children:g.jsxs($r,{icon:g.jsx(Dx,{className:"text-xl"}),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Medios"," "]})}),g.jsxs($r,{icon:g.jsx(lp,{className:"text-xl"}),onClick:()=>s("audiencias"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Audiencias"," "]}),g.jsxs($r,{icon:g.jsx(Lx,{className:"text-xl"}),onClick:()=>s("reportes"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Reportes"," "]}),g.jsxs($r,{icon:g.jsx(Ix,{className:"text-xl"}),onClick:()=>s("facturacion"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Facturación"," "]}),g.jsx(Hr,{to:"/settings",children:g.jsxs($r,{icon:g.jsx(Fx,{className:"text-xl"}),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Configuración"," "]})})]}),g.jsx("div",{className:"mt-auto self-end p-4",children:g.jsx("div",{className:"flex justify-center rounded-lg bg-white p-2",children:g.jsx("button",{className:"cursor-pointer text-3xl",style:{color:"#483FFF"},children:g.jsx(zb,{})})})})]}),g.jsx(Ar,{width:"40%",isOpen:r==="campanas",onClose:()=>n(null),children:g.jsxs("div",{className:"flex flex-col p-10",children:[g.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"w-3/6 p-2",children:g.jsx(ei,{image:{type:"image",name:"medios-propios"},title:"Medios Propios",description:"Crea y administra campañas a los usuarios que ingresan a tus canales."})}),g.jsx("div",{className:"w-3/6 p-2",children:g.jsx(Hr,{to:"/thirdPartyCampaign",children:g.jsx(ei,{image:{type:"image",name:"medios-pagos"},title:"Medios Pagos",description:"Activa campañas de Marketing Digital usando inventario de Redes Sociales y Google."})})})]})]})}),g.jsx(Ar,{isOpen:r==="audiencias",onClose:()=>n(null),children:g.jsx("h2",{children:"Audiencias"})}),g.jsx(Ar,{isOpen:r==="reportes",onClose:()=>n(null),children:g.jsx("h2",{children:"Reportes"})}),g.jsx(Ar,{isOpen:r==="facturacion",onClose:()=>n(null),children:g.jsx("h2",{children:"Facturación"})}),g.jsx(Ar,{isOpen:r==="configuracion",onClose:()=>n(null),children:g.jsx("h2",{children:"Configuración"})})]})})};function d1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"},child:[]}]})(t)}function u1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function f1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"},child:[]}]})(t)}function zu(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function Bu(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function $u(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function h1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"},child:[]}]})(t)}function g1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"},child:[]}]})(t)}function p1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function ju(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},child:[]}]})(t)}function m1(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},child:[]}]})(t)}function Hu(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},child:[]}]})(t)}function b1(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"},child:[]}]})(t)}function y1(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},child:[]}]})(t)}const Gs="-";function v1(t){const e=w1(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;function o(s){const a=s.split(Gs);return a[0]===""&&a.length!==1&&a.shift(),Wu(a,e)||x1(s)}function i(s,a){const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function Wu(t,e){var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?Wu(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Gs);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const Vu=/^\[(.+)\]$/;function x1(t){if(Vu.test(t)){const e=Vu.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}function w1(t){const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return C1(Object.entries(t.classGroups),r).forEach(([i,s])=>{Xs(s,n,i,e)}),n}function Xs(t,e,r,n){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:Ru(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(k1(o)){Xs(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Xs(s,Ru(e,i),r,n)})})}function Ru(t,e){let r=t;return e.split(Gs).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function k1(t){return t.isThemeGetter}function C1(t,e){return e?t.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[e+s,a])):i);return[r,o]}):t}function _1(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;function o(i,s){r.set(i,s),e++,e>t&&(e=0,n=r,r=new Map)}return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}}const Yu="!";function S1(t){const e=t.separator,r=e.length===1,n=e[0],o=e.length;return function(s){const a=[];let l=0,c=0,d;for(let m=0;m<s.length;m++){let b=s[m];if(l===0){if(b===n&&(r||s.slice(m,m+o)===e)){a.push(s.slice(c,m)),c=m+o;continue}if(b==="/"){d=m;continue}}b==="["?l++:b==="]"&&l--}const u=a.length===0?s:s.substring(c),f=u.startsWith(Yu),h=f?u.substring(1):u,p=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}}}function E1(t){if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e}function O1(t){return{cache:_1(t.cacheSize),splitModifiers:S1(t),...v1(t)}}const T1=/\s+/;function N1(t,e){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=new Set;return t.trim().split(T1).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=r(s);let u=n(d?c.substring(0,d):c),f=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:s};if(u=n(c),!u)return{isTailwindClass:!1,originalClassName:s};f=!1}const h=E1(a).join(":");return{isTailwindClass:!0,modifierId:l?h+Yu:h,classGroupId:u,originalClassName:s,hasPostfixModifier:f}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=s,d=a+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(u=>i.add(a+u)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function M1(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Uu(e))&&(n&&(n+=" "),n+=r);return n}function Uu(t){if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Uu(t[n]))&&(r&&(r+=" "),r+=e);return r}function P1(t,...e){let r,n,o,i=s;function s(l){const c=e.reduce((d,u)=>u(d),t());return r=O1(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const d=N1(l,r);return o(l,d),d}return function(){return i(M1.apply(null,arguments))}}function ye(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const Ku=/^\[(?:([a-z-]+):)?(.+)\]$/i,A1=/^\d+\/\d+$/,D1=new Set(["px","full","screen"]),I1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,L1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,F1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,z1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,B1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function jt(t){return vr(t)||D1.has(t)||A1.test(t)}function Jt(t){return Wr(t,"length",U1)}function vr(t){return!!t&&!Number.isNaN(Number(t))}function li(t){return Wr(t,"number",vr)}function jn(t){return!!t&&Number.isInteger(Number(t))}function $1(t){return t.endsWith("%")&&vr(t.slice(0,-1))}function Z(t){return Ku.test(t)}function Qt(t){return I1.test(t)}const j1=new Set(["length","size","percentage"]);function H1(t){return Wr(t,j1,qu)}function W1(t){return Wr(t,"position",qu)}const V1=new Set(["image","url"]);function R1(t){return Wr(t,V1,q1)}function Y1(t){return Wr(t,"",K1)}function Hn(){return!0}function Wr(t,e,r){const n=Ku.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1}function U1(t){return L1.test(t)&&!F1.test(t)}function qu(){return!1}function K1(t){return z1.test(t)}function q1(t){return B1.test(t)}function G1(){const t=ye("colors"),e=ye("spacing"),r=ye("blur"),n=ye("brightness"),o=ye("borderColor"),i=ye("borderRadius"),s=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),d=ye("hueRotate"),u=ye("invert"),f=ye("gap"),h=ye("gradientColorStops"),p=ye("gradientColorStopPositions"),m=ye("inset"),b=ye("margin"),v=ye("opacity"),y=ye("padding"),_=ye("saturate"),x=ye("scale"),w=ye("sepia"),S=ye("skew"),T=ye("space"),M=ye("translate"),N=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Z,e],A=()=>[Z,e],D=()=>["",jt,Jt],O=()=>["auto",vr,Z],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],B=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",Z],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[vr,li],V=()=>[vr,Z];return{cacheSize:500,separator:":",theme:{colors:[Hn],spacing:[jt,Jt],blur:["none","",Qt,Z],brightness:W(),borderColor:[t],borderRadius:["none","","full",Qt,Z],borderSpacing:A(),borderWidth:D(),contrast:W(),grayscale:j(),hueRotate:V(),invert:j(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[$1,Jt],inset:I(),margin:I(),opacity:W(),padding:A(),saturate:W(),scale:W(),sepia:j(),skew:V(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[Qt]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),Z]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",jn,Z]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",jn,Z]}],"grid-cols":[{"grid-cols":[Hn]}],"col-start-end":[{col:["auto",{span:["full",jn,Z]},Z]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Hn]}],"row-start-end":[{row:["auto",{span:[jn,Z]},Z]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,e]}],"min-w":[{"min-w":[Z,e,"min","max","fit"]}],"max-w":[{"max-w":[Z,e,"none","full","min","max","fit","prose",{screen:[Qt]},Qt]}],h:[{h:[Z,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Qt,Jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",li]}],"font-family":[{font:[Hn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",vr,li]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jt,Jt]}],"underline-offset":[{"underline-offset":["auto",jt,Z]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),W1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",H1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R1]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[jt,Z]}],"outline-w":[{outline:[jt,Jt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[jt,Jt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Qt,Y1]}],"shadow-color":[{shadow:[Hn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":z()}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Qt,Z]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[_]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[jn,Z]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[jt,Jt,li]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const F=P1(G1);function xr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Wn(t){if(!xr(t))return t;const e={};for(const r in t)e[r]=Wn(t[r]);return e}function H(t,e){if(xr(e)&&Object.keys(e).length===0)return Wn({...t,...e});const r={...t,...e};if(xr(e)&&xr(t))for(const n in e)xr(e[n])&&n in t&&xr(t[n])?r[n]=H(t[n],e[n]):r[n]=xr(e[n])?Wn(e[n]):e[n];return r}function UC(t){return t}const X1={root:{base:"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700",flush:{off:"rounded-lg border",on:"border-b"}},content:{base:"p-5 first:rounded-t-lg last:rounded-b-lg dark:bg-gray-900"},title:{arrow:{base:"h-6 w-6 shrink-0",open:{off:"",on:"rotate-180"}},base:"flex w-full items-center justify-between p-5 text-left font-medium text-gray-500 first:rounded-t-lg last:rounded-b-lg dark:text-gray-400",flush:{off:"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800",on:"bg-transparent dark:bg-transparent"},heading:"",open:{off:"",on:"bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-white"}}},Z1={base:"flex flex-col gap-2 p-4 text-sm",borderAccent:"border-t-4",closeButton:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2",icon:"h-5 w-5",color:{info:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",gray:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white",failure:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",success:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",warning:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",red:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",green:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",yellow:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",blue:"bg-blue-100 text-blue-500 hover:bg-blue-200 focus:ring-blue-400 dark:bg-blue-200 dark:text-blue-600 dark:hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",pink:"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300",lime:"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300",dark:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300",indigo:"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300",purple:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300",teal:"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300",light:"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white"}},color:{info:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",gray:"border-gray-500 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300",failure:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",success:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",warning:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",red:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",green:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",yellow:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",blue:"border-blue-500 bg-blue-100 text-blue-700 dark:bg-blue-200 dark:text-blue-800",cyan:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",pink:"border-pink-500 bg-pink-100 text-pink-700 dark:bg-pink-200 dark:text-pink-800",lime:"border-lime-500 bg-lime-100 text-lime-700 dark:bg-lime-200 dark:text-lime-800",dark:"border-gray-600 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:text-gray-300",indigo:"border-indigo-500 bg-indigo-100 text-indigo-700 dark:bg-indigo-200 dark:text-indigo-800",purple:"border-purple-500 bg-purple-100 text-purple-700 dark:bg-purple-200 dark:text-purple-800",teal:"border-teal-500 bg-teal-100 text-teal-700 dark:bg-teal-200 dark:text-teal-800",light:"border-gray-400 bg-gray-50 text-gray-600 dark:bg-gray-500 dark:text-gray-200"},icon:"mr-3 inline h-5 w-5 flex-shrink-0",rounded:"rounded-lg",wrapper:"flex items-center"},J1={root:{base:"flex items-center justify-center space-x-4 rounded",bordered:"p-1 ring-2",rounded:"rounded-full",color:{dark:"ring-gray-800 dark:ring-gray-800",failure:"ring-red-500 dark:ring-red-700",gray:"ring-gray-500 dark:ring-gray-400",info:"ring-cyan-400 dark:ring-cyan-800",light:"ring-gray-300 dark:ring-gray-500",purple:"ring-purple-500 dark:ring-purple-600",success:"ring-green-500 dark:ring-green-500",warning:"ring-yellow-300 dark:ring-yellow-500",pink:"ring-pink-500 dark:ring-pink-500"},img:{base:"rounded",off:"relative overflow-hidden bg-gray-100 dark:bg-gray-600",on:"",placeholder:"absolute -bottom-1 h-auto w-auto text-gray-400"},size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-20 w-20",xl:"h-36 w-36"},stacked:"ring-2 ring-gray-300 dark:ring-gray-500",statusPosition:{"bottom-left":"-bottom-1 -left-1","bottom-center":"-bottom-1","bottom-right":"-bottom-1 -right-1","top-left":"-left-1 -top-1","top-center":"-top-1","top-right":"-right-1 -top-1","center-right":"-right-1",center:"","center-left":"-left-1"},status:{away:"bg-yellow-400",base:"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800",busy:"bg-red-400",offline:"bg-gray-400",online:"bg-green-400"},initials:{text:"font-medium text-gray-600 dark:text-gray-300",base:"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 dark:bg-gray-600"}},group:{base:"flex -space-x-4"},groupCounter:{base:"relative flex h-10 w-10 items-center justify-center rounded-full bg-gray-700 text-xs font-medium text-white ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500"}},Q1={root:{base:"flex h-fit items-center gap-1 font-semibold",color:{info:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-800 dark:group-hover:bg-cyan-300",gray:"bg-gray-100 text-gray-800 group-hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:group-hover:bg-gray-600",failure:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",success:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",warning:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300",indigo:"bg-indigo-100 text-indigo-800 group-hover:bg-indigo-200 dark:bg-indigo-200 dark:text-indigo-900 dark:group-hover:bg-indigo-300",purple:"bg-purple-100 text-purple-800 group-hover:bg-purple-200 dark:bg-purple-200 dark:text-purple-900 dark:group-hover:bg-purple-300",pink:"bg-pink-100 text-pink-800 group-hover:bg-pink-200 dark:bg-pink-200 dark:text-pink-900 dark:group-hover:bg-pink-300",blue:"bg-blue-100 text-blue-800 group-hover:bg-blue-200 dark:bg-blue-200 dark:text-blue-900 dark:group-hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-900 dark:group-hover:bg-cyan-300",dark:"bg-gray-600 text-gray-100 group-hover:bg-gray-500 dark:bg-gray-900 dark:text-gray-200 dark:group-hover:bg-gray-700",light:"bg-gray-200 text-gray-800 group-hover:bg-gray-300 dark:bg-gray-400 dark:text-gray-900 dark:group-hover:bg-gray-500",green:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",lime:"bg-lime-100 text-lime-800 group-hover:bg-lime-200 dark:bg-lime-200 dark:text-lime-900 dark:group-hover:bg-lime-300",red:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",teal:"bg-teal-100 text-teal-800 group-hover:bg-teal-200 dark:bg-teal-200 dark:text-teal-900 dark:group-hover:bg-teal-300",yellow:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300"},href:"group",size:{xs:"p-1 text-xs",sm:"p-1.5 text-sm"}},icon:{off:"rounded px-2 py-0.5",on:"rounded-full p-1.5",size:{xs:"h-3 w-3",sm:"h-3.5 w-3.5"}}},ek={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},tk={root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}},rk={base:"group relative flex items-stretch justify-center p-0.5 text-center font-medium transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] focus:z-10 focus:outline-none",fullSized:"w-full",color:{dark:"border border-transparent bg-gray-800 text-white focus:ring-4 focus:ring-gray-300 enabled:hover:bg-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-gray-800 dark:enabled:hover:bg-gray-700",failure:"border border-transparent bg-red-700 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-800 dark:bg-red-600 dark:focus:ring-red-900 dark:enabled:hover:bg-red-700",gray:":ring-cyan-700 border border-gray-200 bg-white text-gray-900 focus:text-cyan-700 focus:ring-4 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 dark:border-gray-600 dark:bg-transparent dark:text-gray-400 dark:enabled:hover:bg-gray-700 dark:enabled:hover:text-white",info:"border border-transparent bg-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-800 dark:bg-cyan-600 dark:focus:ring-cyan-800 dark:enabled:hover:bg-cyan-700",light:"border border-gray-300 bg-white text-gray-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-600 dark:text-white dark:focus:ring-gray-700 dark:enabled:hover:border-gray-700 dark:enabled:hover:bg-gray-700",purple:"border border-transparent bg-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-purple-800 dark:bg-purple-600 dark:focus:ring-purple-900 dark:enabled:hover:bg-purple-700",success:"border border-transparent bg-green-700 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-800 dark:bg-green-600 dark:focus:ring-green-800 dark:enabled:hover:bg-green-700",warning:"border border-transparent bg-yellow-400 text-white focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-500 dark:focus:ring-yellow-900",blue:"border border-transparent bg-blue-700 text-white focus:ring-4 focus:ring-blue-300 enabled:hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"border border-cyan-300 bg-white text-cyan-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-100 dark:border-cyan-600 dark:bg-cyan-600 dark:text-white dark:focus:ring-cyan-700 dark:enabled:hover:border-cyan-700 dark:enabled:hover:bg-cyan-700",green:"border border-green-300 bg-white text-green-900 focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-100 dark:border-green-600 dark:bg-green-600 dark:text-white dark:focus:ring-green-700 dark:enabled:hover:border-green-700 dark:enabled:hover:bg-green-700",indigo:"border border-indigo-300 bg-white text-indigo-900 focus:ring-4 focus:ring-indigo-300 enabled:hover:bg-indigo-100 dark:border-indigo-600 dark:bg-indigo-600 dark:text-white dark:focus:ring-indigo-700 dark:enabled:hover:border-indigo-700 dark:enabled:hover:bg-indigo-700",lime:"border border-lime-300 bg-white text-lime-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-lime-100 dark:border-lime-600 dark:bg-lime-600 dark:text-white dark:focus:ring-lime-700 dark:enabled:hover:border-lime-700 dark:enabled:hover:bg-lime-700",pink:"border border-pink-300 bg-white text-pink-900 focus:ring-4 focus:ring-pink-300 enabled:hover:bg-pink-100 dark:border-pink-600 dark:bg-pink-600 dark:text-white dark:focus:ring-pink-700 dark:enabled:hover:border-pink-700 dark:enabled:hover:bg-pink-700",red:"border border-red-300 bg-white text-red-900 focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-100 dark:border-red-600 dark:bg-red-600 dark:text-white dark:focus:ring-red-700 dark:enabled:hover:border-red-700 dark:enabled:hover:bg-red-700",teal:"border border-teal-300 bg-white text-teal-900 focus:ring-4 focus:ring-teal-300 enabled:hover:bg-teal-100 dark:border-teal-600 dark:bg-teal-600 dark:text-white dark:focus:ring-teal-700 dark:enabled:hover:border-teal-700 dark:enabled:hover:bg-teal-700",yellow:"border border-yellow-300 bg-white text-yellow-900 focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-100 dark:border-yellow-600 dark:bg-yellow-600 dark:text-white dark:focus:ring-yellow-700 dark:enabled:hover:border-yellow-700 dark:enabled:hover:bg-yellow-700"},disabled:"cursor-not-allowed opacity-50",isProcessing:"cursor-wait",spinnerSlot:"absolute top-0 flex h-full items-center",spinnerLeftPosition:{xs:"left-2",sm:"left-3",md:"left-4",lg:"left-5",xl:"left-6"},gradient:{cyan:"bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800",failure:"bg-gradient-to-r from-red-400 via-red-500 to-red-600 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-gradient-to-br dark:focus:ring-red-800",info:"bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800 ",lime:"bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 text-gray-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-gradient-to-br dark:focus:ring-lime-800",pink:"bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 text-white focus:ring-4 focus:ring-pink-300 enabled:hover:bg-gradient-to-br dark:focus:ring-pink-800",purple:"bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-gradient-to-br dark:focus:ring-purple-800",success:"bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-gradient-to-br dark:focus:ring-green-800",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 text-white focus:ring-4 focus:ring-teal-300 enabled:hover:bg-gradient-to-br dark:focus:ring-teal-800"},gradientDuoTone:{cyanToBlue:"bg-gradient-to-r from-cyan-500 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",greenToBlue:"bg-gradient-to-br from-green-400 to-cyan-600 text-white focus:ring-4 focus:ring-green-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-green-800",pinkToOrange:"bg-gradient-to-br from-pink-500 to-orange-400 text-white focus:ring-4 focus:ring-pink-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-pink-800",purpleToBlue:"bg-gradient-to-br from-purple-600 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",purpleToPink:"bg-gradient-to-r from-purple-500 to-pink-500 text-white focus:ring-4 focus:ring-purple-200 enabled:hover:bg-gradient-to-l dark:focus:ring-purple-800",redToYellow:"bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 text-gray-900 focus:ring-4 focus:ring-red-100 enabled:hover:bg-gradient-to-bl dark:focus:ring-red-400",tealToLime:"bg-gradient-to-r from-teal-200 to-lime-200 text-gray-900 focus:ring-4 focus:ring-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 dark:focus:ring-teal-700"},inner:{base:"flex items-stretch transition-all duration-200",position:{none:"",start:"rounded-r-none",middle:"rounded-none",end:"rounded-l-none"},outline:"border border-transparent",isProcessingPadding:{xs:"pl-8",sm:"pl-10",md:"pl-12",lg:"pl-16",xl:"pl-20"}},label:"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800",outline:{color:{gray:"border border-gray-900 dark:border-white",default:"border-0",light:""},off:"",on:"flex w-full justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-enabled:group-hover:bg-opacity-0 group-enabled:group-hover:text-inherit dark:bg-gray-900 dark:text-white",pill:{off:"rounded-md",on:"rounded-full"}},pill:{off:"rounded-lg",on:"rounded-full"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-2.5 text-base",xl:"px-6 py-3 text-base"}},nk={base:"inline-flex",position:{none:"",start:"rounded-r-none focus:ring-2",middle:"rounded-none border-l-0 pl-0 focus:ring-2",end:"rounded-l-none border-l-0 pl-0 focus:ring-2"}},ok={root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}},ik={root:{base:"relative h-full w-full",leftControl:"absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none",rightControl:"absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none"},indicators:{active:{off:"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800",on:"bg-white dark:bg-gray-800"},base:"h-3 w-3 rounded-full",wrapper:"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3"},item:{base:"absolute left-1/2 top-1/2 block w-full -translate-x-1/2 -translate-y-1/2",wrapper:{off:"w-full flex-shrink-0 transform cursor-default snap-center",on:"w-full flex-shrink-0 transform cursor-grab snap-center"}},control:{base:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10",icon:"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6"},scrollContainer:{base:"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg",snap:"snap-x"}},sk={root:{base:"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700",color:{default:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-gray-800 dark:focus:ring-cyan-600",dark:"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800",failure:"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900",gray:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",info:"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800",light:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",purple:"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600",success:"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800",warning:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400",blue:"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700",cyan:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600",green:"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600",indigo:"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700",pink:"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600",red:"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600",teal:"text-teal-600 focus:ring-teal-600 dark:ring-offset-teal-600 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400"}}},ak={root:{base:"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",icon:"h-5 w-5"}},lk={root:{base:"relative"},popup:{root:{base:"absolute top-10 z-50 block pt-2",inline:"relative top-0 z-auto",inner:"inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700"},header:{base:"",title:"px-2 py-3 text-center font-semibold text-gray-900 dark:text-white",selectors:{base:"mb-2 flex justify-between",button:{base:"rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",prev:"",next:"",view:""}}},view:{base:"p-1"},footer:{base:"mt-2 flex space-x-2",button:{base:"w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-cyan-300",today:"bg-cyan-700 text-white hover:bg-cyan-800 dark:bg-cyan-600 dark:hover:bg-cyan-700",clear:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600"}}},views:{days:{header:{base:"mb-1 grid grid-cols-7",title:"h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400"},items:{base:"grid w-64 grid-cols-7",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600 ",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},months:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},years:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},decades:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}}}},ck={arrowIcon:"ml-2 h-4 w-4",content:"py-1 focus:outline-none",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"},dk={root:{base:"flex"},field:{base:"relative w-full",input:{base:"block w-full overflow-hidden rounded-lg border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},uk={input:{default:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"}},success:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"}},error:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"}}},label:{default:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"}},success:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500"}},error:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500"}}},helperText:{default:"mt-2 text-xs text-gray-600 dark:text-gray-400",success:"mt-2 text-xs text-green-600 dark:text-green-400",error:"mt-2 text-xs text-red-600 dark:text-red-400"}},fk={root:{base:"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between",container:"w-full p-6",bgDark:"bg-gray-800"},groupLink:{base:"flex flex-wrap text-sm text-gray-500 dark:text-white",link:{base:"me-4 last:mr-0 md:mr-6",href:"hover:underline"},col:"flex-col space-y-4"},icon:{base:"text-gray-500 dark:hover:text-white",size:"h-5 w-5"},title:{base:"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white"},divider:{base:"my-6 w-full border-gray-200 dark:border-gray-700 sm:mx-auto lg:my-8"},copyright:{base:"text-sm text-gray-500 dark:text-gray-400 sm:text-center",href:"ml-1 hover:underline",span:"ml-1"},brand:{base:"mb-4 flex items-center sm:mb-0",img:"mr-3 h-8",span:"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white"}},hk={root:{base:"mt-2 text-sm",colors:{gray:"text-gray-500 dark:text-gray-400",info:"text-cyan-700 dark:text-cyan-800",success:"text-green-600 dark:text-green-500",failure:"text-red-600 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600"}}},gk={root:{base:"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100",icon:"inline-block"}},pk={root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},mk={root:{base:"list-inside space-y-1 text-gray-500 dark:text-gray-400",ordered:{off:"list-disc",on:"list-decimal"},horizontal:"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0",unstyled:"list-none",nested:"mt-2 ps-5"},item:{withIcon:{off:"",on:"flex items-center"},icon:"me-2 h-3.5 w-3.5 flex-shrink-0"}},bk={root:{base:"list-none rounded-lg border border-gray-200 bg-white text-left text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white"},item:{base:"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0",link:{base:"flex w-full items-center border-b border-gray-200 px-4 py-2 dark:border-gray-600",active:{off:"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500",on:"bg-cyan-700 text-white dark:bg-gray-800"},disabled:{off:"",on:"cursor-not-allowed bg-gray-100 text-gray-900 hover:bg-gray-100 hover:text-gray-900 focus:text-gray-900"},href:{off:"",on:""},icon:"mr-2 h-4 w-4 fill-current"}}},yk={root:{base:"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full p-4 md:h-auto",inner:"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700"},body:{base:"flex-1 overflow-auto p-6",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600",popup:"border-b-0 p-2",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}},vk={root:{base:"bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",rounded:{on:"rounded",off:""},bordered:{on:"border",off:""},inner:{base:"mx-auto flex flex-wrap items-center justify-between",fluid:{on:"",off:"container"}}},brand:{base:"flex items-center"},collapse:{base:"w-full md:block md:w-auto",list:"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium",hidden:{on:"hidden",off:""}},link:{base:"block py-2 pl-3 pr-4 md:p-0",active:{on:"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700",off:"border-b border-gray-100 text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white"},disabled:{on:"text-gray-400 hover:cursor-not-allowed dark:text-gray-600",off:""}},toggle:{base:"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden",icon:"h-6 w-6 shrink-0"}},xk={base:"",layout:{table:{base:"text-sm text-gray-700 dark:text-gray-400",span:"font-semibold text-gray-900 dark:text-white"}},pages:{base:"xs:mt-0 mt-2 inline-flex items-center -space-x-px",showIcon:"inline-flex",previous:{base:"ml-0 rounded-l-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},next:{base:"rounded-r-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},selector:{base:"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",active:"bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",disabled:"cursor-not-allowed opacity-50"}}},wk={base:"absolute z-20 inline-block w-max max-w-[100vw] bg-white outline-none border border-gray-200 rounded-lg shadow-sm dark:border-gray-600 dark:bg-gray-800",content:"z-10 overflow-hidden rounded-[7px]",arrow:{base:"absolute h-2 w-2 z-0 rotate-45 mix-blend-lighten bg-white border border-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:mix-blend-color",placement:"-4px"}},kk={base:"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",label:"mb-1 flex justify-between font-medium dark:text-white",bar:"space-x-2 rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100",color:{dark:"bg-gray-600 dark:bg-gray-300",blue:"bg-blue-600",red:"bg-red-600 dark:bg-red-500",green:"bg-green-600 dark:bg-green-500",yellow:"bg-yellow-400",indigo:"bg-indigo-600 dark:bg-indigo-500",purple:"bg-purple-600 dark:bg-purple-500",cyan:"bg-cyan-600",gray:"bg-gray-500",lime:"bg-lime-600",pink:"bg-pink-500",teal:"bg-teal-600"},size:{sm:"h-1.5",md:"h-2.5",lg:"h-4",xl:"h-6"}},Ck={root:{base:"h-4 w-4 border border-gray-300 text-cyan-600 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600"}},_k={root:{base:"flex"},field:{base:"relative w-full",input:{base:"w-full cursor-pointer appearance-none rounded-lg bg-gray-200 dark:bg-gray-700",sizes:{sm:"h-1",md:"h-2",lg:"h-3"}}}},Sk={root:{base:"flex items-center"},star:{empty:"text-gray-300 dark:text-gray-500",filled:"text-yellow-400",sizes:{sm:"h-5 w-5",md:"h-7 w-7",lg:"h-10 w-10"}}},Ek={base:"flex items-center",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500",progress:{base:"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700",fill:"h-5 rounded bg-yellow-400",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500"}},Ok={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},Tk={root:{base:"h-full",collapsed:{on:"w-16",off:"w-64"},inner:"h-full overflow-y-auto overflow-x-hidden rounded bg-gray-50 px-3 py-4 dark:bg-gray-800"},collapse:{button:"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",icon:{base:"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",open:{off:"",on:"text-gray-900"}},label:{base:"ml-3 flex-1 whitespace-nowrap text-left",icon:{base:"h-6 w-6 transition delay-0 ease-in-out",open:{on:"rotate-180",off:""}}},list:"space-y-2 py-2"},cta:{base:"mt-6 rounded-lg bg-gray-100 p-4 dark:bg-gray-700",color:{blue:"bg-cyan-50 dark:bg-cyan-900",dark:"bg-dark-50 dark:bg-dark-900",failure:"bg-red-50 dark:bg-red-900",gray:"bg-alternative-50 dark:bg-alternative-900",green:"bg-green-50 dark:bg-green-900",light:"bg-light-50 dark:bg-light-900",red:"bg-red-50 dark:bg-red-900",purple:"bg-purple-50 dark:bg-purple-900",success:"bg-green-50 dark:bg-green-900",yellow:"bg-yellow-50 dark:bg-yellow-900",warning:"bg-yellow-50 dark:bg-yellow-900"}},item:{base:"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",active:"bg-gray-100 dark:bg-gray-700",collapsed:{insideCollapse:"group w-full pl-8 transition duration-75",noIcon:"font-bold"},content:{base:"flex-1 whitespace-nowrap px-3"},icon:{base:"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",active:"text-gray-700 dark:text-gray-100"},label:"",listItem:""},items:{base:""},itemGroup:{base:"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700"},logo:{base:"mb-5 flex items-center pl-2.5",collapsed:{on:"hidden",off:"self-center whitespace-nowrap text-xl font-semibold dark:text-white"},img:"mr-3 h-6 sm:h-7"}},Nk={base:"inline animate-spin text-gray-200",color:{failure:"fill-red-600",gray:"fill-gray-600",info:"fill-cyan-600",pink:"fill-pink-600",purple:"fill-purple-600",success:"fill-green-500",warning:"fill-yellow-400"},light:{off:{base:"dark:text-gray-600",color:{failure:"",gray:"dark:fill-gray-300",info:"",pink:"",purple:"",success:"",warning:""}},on:{base:"",color:{failure:"",gray:"",info:"",pink:"",purple:"",success:"",warning:""}}},size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},Mk={root:{base:"w-full text-left text-sm text-gray-500 dark:text-gray-400",shadow:"absolute left-0 top-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-black",wrapper:"relative"},body:{base:"group/body",cell:{base:"px-6 py-4 group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg"}},head:{base:"group/head text-xs uppercase text-gray-700 dark:text-gray-400",cell:{base:"bg-gray-50 px-6 py-3 group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg dark:bg-gray-700"}},row:{base:"group/row",hovered:"hover:bg-gray-50 dark:hover:bg-gray-600",striped:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700"}},Pk={base:"flex flex-col gap-2",tablist:{base:"flex text-center",styles:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none focus:ring-4 focus:ring-cyan-300 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",styles:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"active rounded-t-lg border-b-2 border-cyan-600 text-cyan-600 dark:border-cyan-500 dark:text-cyan-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-cyan-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"active rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",styles:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"},Ak={base:"block w-full rounded-lg border text-sm disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}},Dk={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},Ik={root:{direction:{horizontal:"sm:flex",vertical:"relative border-l border-gray-200 dark:border-gray-700"}},item:{root:{horizontal:"relative mb-6 sm:mb-0",vertical:"mb-10 ml-6"},content:{root:{base:"mt-3 sm:pr-8"},body:{base:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},time:{base:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"},title:{base:"text-lg font-semibold text-gray-900 dark:text-white"}},point:{horizontal:"flex items-center",line:"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex",marker:{base:{horizontal:"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700",vertical:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"},icon:{base:"h-3 w-3 text-cyan-600 dark:text-cyan-300",wrapper:"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900"}},vertical:""}}},Lk={root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},Fk={root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4",md:"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5",lg:"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6"}}},zk={target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"},Bk={theme:Wn({accordion:X1,alert:Z1,avatar:J1,badge:Q1,blockquote:ek,breadcrumb:tk,button:rk,buttonGroup:nk,card:ok,carousel:ik,checkbox:sk,datepicker:lk,darkThemeToggle:ak,dropdown:ck,fileInput:dk,floatingLabel:uk,footer:fk,helperText:hk,kbd:gk,label:pk,listGroup:bk,list:mk,modal:yk,navbar:vk,pagination:xk,popover:wk,progress:kk,radio:Ck,rangeSlider:_k,rating:Sk,ratingAdvanced:Ek,select:Ok,textInput:Dk,textarea:Ak,toggleSwitch:Fk,sidebar:Tk,spinner:Nk,table:Mk,tabs:Pk,timeline:Ik,toast:Lk,tooltip:zk})};function q(){return Wn(Bk.theme)}const Gu=k.createContext(void 0);function Xu(){const t=k.useContext(Gu);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Zu=({children:t,className:e,theme:r={},...n})=>{const{isOpen:o}=Xu(),i=H(q().accordion.content,r);return g.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:t})},Ju=({children:t,...e})=>{const{alwaysOpen:r}=e,[n,o]=k.useState(e.isOpen),i=r?{...e,isOpen:n,setOpen:()=>o(!n)}:e;return g.jsx(Gu.Provider,{value:i,children:t})},Qu=({as:t="h2",children:e,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=Xu(),c=()=>typeof l<"u"&&l(),d=H(q().accordion.title,n);return g.jsxs("button",{className:F(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[g.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),i&&g.jsx(i,{"aria-hidden":!0,className:F(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},ef=({alwaysOpen:t=!1,arrowIcon:e=zu,children:r,flush:n=!1,collapseAll:o=!1,className:i,theme:s={},...a})=>{const[l,c]=k.useState(o?-1:0),d=k.useMemo(()=>k.Children.map(r,(f,h)=>k.cloneElement(f,{alwaysOpen:t,arrowIcon:e,flush:n,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,r,n,l]),u=H(q().accordion.root,s);return g.jsx("div",{className:F(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};ef.displayName="Accordion",Ju.displayName="Accordion.Panel",Qu.displayName="Accordion.Title",Zu.displayName="Accordion.Content",Object.assign(ef,{Panel:Ju,Title:Qu,Content:Zu});const tf=({children:t,className:e,theme:r={},...n})=>{const o=H(q().avatar.group,r);return g.jsx("div",{"data-testid":"avatar-group-element",className:F(o.base,e),...n,children:t})};tf.displayName="Avatar.Group";const rf=({className:t,href:e,theme:r={},total:n,...o})=>{const i=H(q().avatar.groupCounter,r);return g.jsxs("a",{href:e,className:F(i.base,t),...o,children:["+",n]})};rf.displayName="Avatar.GroupCounter";const nf=({alt:t="",bordered:e=!1,children:r,className:n,color:o="light",img:i,placeholderInitials:s="",rounded:a=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const p=H(q().avatar,f),m=F(p.root.img.base,e&&p.root.bordered,e&&p.root.color[o],a&&p.root.rounded,c&&p.root.stacked,p.root.img.on,p.root.size[l]),b={className:F(m,p.root.img.on),"data-testid":"flowbite-avatar-img"};return g.jsxs("div",{className:F(p.root.base,n),"data-testid":"flowbite-avatar",...h,children:[g.jsxs("div",{className:"relative",children:[i?typeof i=="string"?g.jsx("img",{alt:t,src:i,...b}):i({alt:t,...b}):s?g.jsx("div",{className:F(p.root.img.off,p.root.initials.base,c&&p.root.stacked,e&&p.root.bordered,e&&p.root.color[o],p.root.size[l],a&&p.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:g.jsx("span",{className:F(p.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):g.jsx("div",{className:F(m,p.root.img.off),"data-testid":"flowbite-avatar-img",children:g.jsx("svg",{className:p.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),d&&g.jsx("span",{"data-testid":"flowbite-avatar-status",className:F(p.root.status.base,p.root.status[d],p.root.statusPosition[u])})]}),r&&g.jsx("div",{children:r})]})};nf.displayName="Avatar",Object.assign(nf,{Group:tf,Counter:rf});const of=({children:t,color:e="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=H(q().badge,s),c=()=>g.jsxs("span",{className:F(l.root.base,l.root.color[e],l.root.size[o],l.icon[n?"on":"off"],i),"data-testid":"flowbite-badge",...a,children:[n&&g.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),t&&g.jsx("span",{children:t})]});return r?g.jsx("a",{className:l.root.href,href:r,children:g.jsx(c,{})}):g.jsx(c,{})};of.displayName="Badge";const sf=({className:t,color:e="info",light:r,size:n="md",theme:o={},...i})=>{const s=H(q().spinner,o);return g.jsx("span",{role:"status",...i,children:g.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:F(s.base,s.color[e],s.light[r?"on":"off"].base,s.light[r?"on":"off"].color[e],s.size[n],t),children:[g.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),g.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})};sf.displayName="Spinner";const Zs=k.forwardRef(({children:t,as:e,href:r,type:n="button",...o},i)=>{const s=e||(r?"a":"button");return k.createElement(s,{ref:i,href:r,type:n,...o},t)});Zs.displayName="ButtonBaseComponent";const af=(t,e,r)=>k.Children.map(t,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:af(n.props.children,e,r),positionInGroup:lf(o,k.Children.count(t))}):k.cloneElement(n,{outline:e,pill:r,positionInGroup:lf(o,k.Children.count(t))}):n),lf=(t,e)=>t===0?"start":t===e-1?"end":"middle",cf=({children:t,className:e,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>af(t,r,n),[t,r,n]),a=H(q().buttonGroup,o);return g.jsx("div",{className:F(a.base,e),role:"group",...i,children:s})};cf.displayName="Button.Group";const df=k.forwardRef(({children:t,className:e,color:r="info",disabled:n,fullSized:o,isProcessing:i=!1,processingLabel:s="Loading...",processingSpinner:a,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:p="md",theme:m={},...b},v)=>{const{buttonGroup:y,button:_}=q(),x=H(_,m),w=b;return g.jsx(Zs,{ref:v,disabled:n,className:F(x.base,n&&x.disabled,!l&&!c&&x.color[r],l&&!c&&x.gradientDuoTone[l],!l&&c&&x.gradient[c],u&&(x.outline.color[r]??x.outline.color.default),x.pill[f?"on":"off"],o&&x.fullSized,y.position[h],e),...w,children:g.jsx("span",{className:F(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&f?"on":"off"],x.size[p],u&&!x.outline.color[r]&&x.inner.outline,i&&x.isProcessing,i&&x.inner.isProcessingPadding[p],x.inner.position[h]),children:g.jsxs(g.Fragment,{children:[i&&g.jsx("span",{className:F(x.spinnerSlot,x.spinnerLeftPosition[p]),children:a||g.jsx(sf,{size:p})}),typeof t<"u"?t:g.jsx("span",{"data-testid":"flowbite-button-label",className:F(x.label),children:i?s:d})]})})})});df.displayName="Button";const uf=Object.assign(df,{Group:cf}),ff=({children:t,...e})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return g.jsx(uf,{onClick:r,...e,children:t})};ff.displayName="Banner.CollapseButton";const hf=({children:t,...e})=>g.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});hf.displayName="Banner",Object.assign(hf,{CollapseButton:ff});const gf=k.forwardRef(({children:t,className:e,href:r,icon:n,theme:o={},...i},s)=>{const a=typeof r<"u",l=a?"a":"span",c=H(q().breadcrumb.item,o);return g.jsxs("li",{className:F(c.base,e),...i,children:[g.jsx(Hu,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),g.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&g.jsx(n,{"aria-hidden":!0,className:c.icon}),t]})]})});gf.displayName="Breadcrumb.Item";const pf=({children:t,className:e,theme:r={},...n})=>{const o=H(q().breadcrumb.root,r);return g.jsx("nav",{"aria-label":"Breadcrumb",className:F(o.base,e),...n,children:g.jsx("ol",{className:o.list,children:t})})};pf.displayName="Breadcrumb",Object.assign(pf,{Item:gf});var mf={exports:{}};/*!
491
+ Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=yr(),h;h=f;let p=h.pathname||"/",m=p;if(d!=="/"){let y=d.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=!i&&r&&r.matches&&r.matches.length>0?r.matches:vu(t,{pathname:m});return Ft(u||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Ft(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),_w(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:zt([d,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?d:zt([d,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),s,r,n)}function xw(){let t=Nw(),e=fw(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:i},"ErrorBoundary")," or"," ",C.createElement("code",{style:i},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},e),r?C.createElement("pre",{style:o},r):null,s)}var ww=C.createElement(xw,null),kw=class extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return this.state.error!==void 0?C.createElement($t.Provider,{value:this.props.routeContext},C.createElement(Vs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Cw({routeContext:t,match:e,children:r}){let n=C.useContext(jr);return n&&n.static&&n.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=e.route.id),C.createElement($t.Provider,{value:t},r)}function _w(t,e=[],r=null,n=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,i=r==null?void 0:r.errors;if(i!=null){let l=o.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);Be(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let s=!1,a=-1;if(r)for(let l=0;l<o.length;l++){let c=o[l];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(a=l),c.route.id){let{loaderData:d,errors:u}=r,f=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!u||u[c.route.id]===void 0);if(c.route.lazy||f){s=!0,a>=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((l,c,d)=>{let u,f=!1,h=null,p=null;r&&(u=i&&c.route.id?i[c.route.id]:void 0,h=c.route.errorElement||ww,s&&(a<0&&d===0?(Mu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,p=null):a===d&&(f=!0,p=c.route.hydrateFallbackElement||null)));let m=e.concat(o.slice(0,d+1)),b=()=>{let v;return u?v=h:f?v=p:c.route.Component?v=C.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=l,C.createElement(Cw,{match:c,routeContext:{outlet:l,matches:m,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?C.createElement(kw,{location:r.location,revalidation:r.revalidation,component:h,error:u,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function Rs(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sw(t){let e=C.useContext(jr);return Be(e,Rs(t)),e}function Ew(t){let e=C.useContext(ri);return Be(e,Rs(t)),e}function Ow(t){let e=C.useContext($t);return Be(e,Rs(t)),e}function Ys(t){let e=Ow(t),r=e.matches[e.matches.length-1];return Be(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Tw(){return Ys("useRouteId")}function Nw(){var n;let t=C.useContext(Vs),e=Ew("useRouteError"),r=Ys("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function Mw(){let{router:t}=Sw("useNavigate"),e=Ys("useNavigate"),r=C.useRef(!1);return Tu(()=>{r.current=!0}),C.useCallback(async(o,i={})=>{Ft(r.current,Ou),r.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var Nu={};function Mu(t,e,r){!e&&!Nu[t]&&(Nu[t]=!0,Ft(!1,r))}C.memo(Pw);function Pw({routes:t,future:e,state:r}){return vw(t,void 0,r,e)}var oi="get",ii="application/x-www-form-urlencoded";function si(t){return t!=null&&typeof t.tagName=="string"}function Aw(t){return si(t)&&t.tagName.toLowerCase()==="button"}function Dw(t){return si(t)&&t.tagName.toLowerCase()==="form"}function Iw(t){return si(t)&&t.tagName.toLowerCase()==="input"}function Lw(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Fw(t,e){return t.button===0&&(!e||e==="_self")&&!Lw(t)}var ai=null;function zw(){if(ai===null)try{new FormData(document.createElement("form"),0),ai=!1}catch{ai=!0}return ai}var Bw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Us(t){return t!=null&&!Bw.has(t)?(Ft(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ii}"`),null):t}function $w(t,e){let r,n,o,i,s;if(Dw(t)){let a=t.getAttribute("action");n=a?Zt(a,e):null,r=t.getAttribute("method")||oi,o=Us(t.getAttribute("enctype"))||ii,i=new FormData(t)}else if(Aw(t)||Iw(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(n=l?Zt(l,e):null,r=t.getAttribute("formmethod")||a.getAttribute("method")||oi,o=Us(t.getAttribute("formenctype"))||Us(a.getAttribute("enctype"))||ii,i=new FormData(a,t),!zw()){let{name:c,type:d,value:u}=t;if(d==="image"){let f=c?`${c}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else c&&i.append(c,u)}}else{if(si(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=oi,n=null,o=ii,s=t}return i&&o==="text/plain"&&(s=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:s}}function Ks(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}async function jw(t,e){if(t.id in e)return e[t.id];try{let r=await import(t.module);return e[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Hw(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Ww(t,e,r){let n=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let s=await jw(i,r);return s.links?s.links():[]}return[]}));return Uw(n.flat(1).filter(Hw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Pu(t,e,r,n,o,i){let s=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,a=(l,c)=>{var d;return r[c].pathname!==l.pathname||((d=r[c].route.path)==null?void 0:d.endsWith("*"))&&r[c].params["*"]!==l.params["*"]};return i==="assets"?e.filter((l,c)=>s(l,c)||a(l,c)):i==="data"?e.filter((l,c)=>{var u;let d=n.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((u=r[0])==null?void 0:u.params)||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Vw(t,e,{includeHydrateFallback:r}={}){return Rw(t.map(n=>{let o=e.routes[n.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Rw(t){return[...new Set(t)]}function Yw(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function Uw(t,e){let r=new Set;return new Set(e),t.reduce((n,o)=>{let i=JSON.stringify(Yw(o));return r.has(i)||(r.add(i),n.push({key:i,link:o})),n},[])}function Kw(t,e){let r=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r.pathname==="/"?r.pathname="_root.data":e&&Zt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Au(){let t=C.useContext(jr);return Ks(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function qw(){let t=C.useContext(ri);return Ks(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var qs=C.createContext(void 0);qs.displayName="FrameworkContext";function Du(){let t=C.useContext(qs);return Ks(t,"You must render this element inside a <HydratedRouter> element"),t}function Gw(t,e){let r=C.useContext(qs),[n,o]=C.useState(!1),[i,s]=C.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:u}=e,f=C.useRef(null);C.useEffect(()=>{if(t==="render"&&s(!0),t==="viewport"){let m=v=>{v.forEach(y=>{s(y.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return f.current&&b.observe(f.current),()=>{b.disconnect()}}},[t]),C.useEffect(()=>{if(n){let m=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(m)}}},[n]);let h=()=>{o(!0)},p=()=>{o(!1),s(!1)};return r?t!=="intent"?[i,f,{}]:[i,f,{onFocus:$n(a,h),onBlur:$n(l,p),onMouseEnter:$n(c,h),onMouseLeave:$n(d,p),onTouchStart:$n(u,h)}]:[!1,f,{}]}function $n(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function Xw({page:t,...e}){let{router:r}=Au(),n=C.useMemo(()=>vu(r.routes,t,r.basename),[r.routes,t,r.basename]);return n?C.createElement(Jw,{page:t,matches:n,...e}):null}function Zw(t){let{manifest:e,routeModules:r}=Du(),[n,o]=C.useState([]);return C.useEffect(()=>{let i=!1;return Ww(t,e,r).then(s=>{i||o(s)}),()=>{i=!0}},[t,e,r]),n}function Jw({page:t,matches:e,...r}){let n=yr(),{manifest:o,routeModules:i}=Du(),{basename:s}=Au(),{loaderData:a,matches:l}=qw(),c=C.useMemo(()=>Pu(t,e,l,o,n,"data"),[t,e,l,o,n]),d=C.useMemo(()=>Pu(t,e,l,o,n,"assets"),[t,e,l,o,n]),u=C.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let p=new Set,m=!1;if(e.forEach(v=>{var _;let y=o.routes[v.route.id];!y||!y.hasLoader||(!c.some(x=>x.route.id===v.route.id)&&v.route.id in a&&((_=i[v.route.id])!=null&&_.shouldRevalidate)||y.hasClientLoader?m=!0:p.add(v.route.id))}),p.size===0)return[];let b=Kw(t,s);return m&&p.size>0&&b.searchParams.set("_routes",e.filter(v=>p.has(v.route.id)).map(v=>v.route.id).join(",")),[b.pathname+b.search]},[s,a,n,o,c,e,t,i]),f=C.useMemo(()=>Vw(d,o),[d,o]),h=Zw(d);return C.createElement(C.Fragment,null,u.map(p=>C.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...r})),f.map(p=>C.createElement("link",{key:p,rel:"modulepreload",href:p,...r})),h.map(({key:p,link:m})=>C.createElement("link",{key:p,...m})))}function Qw(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var Iu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Iu&&(window.__reactRouterVersion="7.4.0")}catch{}var Lu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hr=C.forwardRef(function({onClick:e,discover:r="render",prefetch:n="none",relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:d,viewTransition:u,...f},h){let{basename:p}=C.useContext(Bt),m=typeof c=="string"&&Lu.test(c),b,v=!1;if(typeof c=="string"&&m&&(b=c,Iu))try{let N=new URL(window.location.href),E=c.startsWith("//")?new URL(N.protocol+c):new URL(c),I=Zt(E.pathname,p);E.origin===N.origin&&I!=null?c=I+E.search+E.hash:v=!0}catch{Ft(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=mw(c,{relative:o}),[_,x,w]=Gw(n,f),S=n1(c,{replace:s,state:a,target:l,preventScrollReset:d,relative:o,viewTransition:u});function T(N){e&&e(N),N.defaultPrevented||S(N)}let M=C.createElement("a",{...f,...w,href:b||y,onClick:v||i?e:T,ref:Qw(h,x),target:l,"data-discover":!m&&r==="render"?"true":void 0});return _&&!m?C.createElement(C.Fragment,null,M,C.createElement(Xw,{page:y})):M});Hr.displayName="Link";var e1=C.forwardRef(function({"aria-current":e="page",caseSensitive:r=!1,className:n="",end:o=!1,style:i,to:s,viewTransition:a,children:l,...c},d){let u=Bn(s,{relative:c.relative}),f=yr(),h=C.useContext(ri),{navigator:p,basename:m}=C.useContext(Bt),b=h!=null&&l1(u)&&a===!0,v=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,y=f.pathname,_=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;r||(y=y.toLowerCase(),_=_?_.toLowerCase():null,v=v.toLowerCase()),_&&m&&(_=Zt(_,m)||_);const x=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let w=y===v||!o&&y.startsWith(v)&&y.charAt(x)==="/",S=_!=null&&(_===v||!o&&_.startsWith(v)&&_.charAt(v.length)==="/"),T={isActive:w,isPending:S,isTransitioning:b},M=w?e:void 0,N;typeof n=="function"?N=n(T):N=[n,w?"active":null,S?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let E=typeof i=="function"?i(T):i;return C.createElement(Hr,{...c,"aria-current":M,className:N,ref:d,style:E,to:s,viewTransition:a},typeof l=="function"?l(T):l)});e1.displayName="NavLink";var t1=C.forwardRef(({discover:t="render",fetcherKey:e,navigate:r,reloadDocument:n,replace:o,state:i,method:s=oi,action:a,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,...f},h)=>{let p=s1(),m=a1(a,{relative:c}),b=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&Lu.test(a),y=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let x=_.nativeEvent.submitter,w=(x==null?void 0:x.getAttribute("formmethod"))||s;p(x||_.currentTarget,{fetcherKey:e,method:w,navigate:r,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:u})};return C.createElement("form",{ref:h,method:b,action:m,onSubmit:n?l:y,...f,"data-discover":!v&&t==="render"?"true":void 0})});t1.displayName="Form";function r1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fu(t){let e=C.useContext(jr);return Be(e,r1(t)),e}function n1(t,{target:e,replace:r,state:n,preventScrollReset:o,relative:i,viewTransition:s}={}){let a=bw(),l=yr(),c=Bn(t,{relative:i});return C.useCallback(d=>{if(Fw(d,e)){d.preventDefault();let u=r!==void 0?r:$s(l)===$s(c);a(t,{replace:u,state:n,preventScrollReset:o,relative:i,viewTransition:s})}},[l,a,c,r,n,e,t,o,i,s])}var o1=0,i1=()=>`__${String(++o1)}__`;function s1(){let{router:t}=Fu("useSubmit"),{basename:e}=C.useContext(Bt),r=Tw();return C.useCallback(async(n,o={})=>{let{action:i,method:s,encType:a,formData:l,body:c}=$w(n,e);if(o.navigate===!1){let d=o.fetcherKey||i1();await t.fetch(d,r,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||s,formEncType:o.encType||a,flushSync:o.flushSync})}else await t.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||s,formEncType:o.encType||a,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[t,e,r])}function a1(t,{relative:e}={}){let{basename:r}=C.useContext(Bt),n=C.useContext($t);Be(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),i={...Bn(t||".",{relative:e})},s=yr();if(t==null){i.search=s.search;let a=new URLSearchParams(i.search),l=a.getAll("index");if(l.some(d=>d==="")){a.delete("index"),l.filter(u=>u).forEach(u=>a.append("index",u));let d=a.toString();i.search=d?`?${d}`:""}}return(!t||t===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:zt([r,i.pathname])),$s(i)}function l1(t,e={}){let r=C.useContext(Eu);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Fu("useViewTransitionState"),o=Bn(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Zt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Zt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ti(o.pathname,s)!=null||ti(o.pathname,i)!=null}new TextEncoder;const c1=()=>{const[t,e]=k.useState(!0),[r,n]=k.useState(null),o=()=>{r||e(!1)},i=()=>{r||e(!0)},s=a=>{n(r===a?null:a)};return g.jsx("div",{className:"fixed left-0 top-0 z-40 h-full",children:g.jsxs("div",{className:"flex flex-col",onMouseEnter:o,onMouseLeave:i,children:[g.jsxs(av,{collapsed:t,rootStyles:{[`.${xe.container}`]:{backgroundColor:"#483FFF",color:"#483FFF",height:"100vh",display:"flex",flexDirection:"column"}},children:[g.jsx(Hr,{to:"/dashboard",children:g.jsx("div",{children:g.jsx(Rt,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/151-5f18f5b0ce0f79b3c7e3ffbd4828ec14.png",alt:"Logo Mathilde ads",width:74,height:74})})}),g.jsxs(dv,{children:[g.jsxs($r,{icon:g.jsx(ap,{className:"text-2xl"}),onClick:()=>s("campanas"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Campañas"," "]}),g.jsx(Hr,{to:"https://dsp.mathilde-ads.com/login",children:g.jsxs($r,{icon:g.jsx(Dx,{className:"text-xl"}),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Medios"," "]})}),g.jsxs($r,{icon:g.jsx(lp,{className:"text-xl"}),onClick:()=>s("audiencias"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Audiencias"," "]}),g.jsxs($r,{icon:g.jsx(Lx,{className:"text-xl"}),onClick:()=>s("reportes"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Reportes"," "]}),g.jsxs($r,{icon:g.jsx(Ix,{className:"text-xl"}),onClick:()=>s("facturacion"),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Facturación"," "]}),g.jsx(Hr,{to:"/settings",children:g.jsxs($r,{icon:g.jsx(Fx,{className:"text-xl"}),className:"mx-2 my-1 rounded-lg bg-white hover:bg-opacity-90",rootStyles:{button:{width:t?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:t?"0 0.25rem":"0 0.5rem",color:"#483FFF","&:hover":{color:"#483FFF"}}},children:[" ","Configuración"," "]})})]}),g.jsx("div",{className:"mt-auto self-end p-4",children:g.jsx("div",{className:"flex justify-center rounded-lg bg-white p-2",children:g.jsx("button",{className:"cursor-pointer text-3xl",style:{color:"#483FFF"},children:g.jsx(zb,{})})})})]}),g.jsx(Ar,{width:"40%",isOpen:r==="campanas",onClose:()=>n(null),children:g.jsxs("div",{className:"flex flex-col p-10",children:[g.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"w-3/6 p-2",children:g.jsx(ei,{image:{type:"image",name:"medios-propios"},title:"Medios Propios",description:"Crea y administra campañas a los usuarios que ingresan a tus canales."})}),g.jsx("div",{className:"w-3/6 p-2",children:g.jsx(Hr,{to:"/thirdPartyCampaign",children:g.jsx(ei,{image:{type:"image",name:"medios-pagos"},title:"Medios Pagos",description:"Activa campañas de Marketing Digital usando inventario de Redes Sociales y Google."})})})]})]})}),g.jsx(Ar,{isOpen:r==="audiencias",onClose:()=>n(null),children:g.jsx("h2",{children:"Audiencias"})}),g.jsx(Ar,{isOpen:r==="reportes",onClose:()=>n(null),children:g.jsx("h2",{children:"Reportes"})}),g.jsx(Ar,{isOpen:r==="facturacion",onClose:()=>n(null),children:g.jsx("h2",{children:"Facturación"})}),g.jsx(Ar,{isOpen:r==="configuracion",onClose:()=>n(null),children:g.jsx("h2",{children:"Configuración"})})]})})};function d1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"},child:[]}]})(t)}function u1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function f1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"},child:[]}]})(t)}function zu(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function Bu(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function $u(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function h1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"},child:[]}]})(t)}function g1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"},child:[]}]})(t)}function p1(t){return ge({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function ju(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},child:[]}]})(t)}function m1(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},child:[]}]})(t)}function Hu(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},child:[]}]})(t)}function b1(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"},child:[]}]})(t)}function y1(t){return ge({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},child:[]}]})(t)}const Gs="-";function v1(t){const e=w1(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;function o(s){const a=s.split(Gs);return a[0]===""&&a.length!==1&&a.shift(),Wu(a,e)||x1(s)}function i(s,a){const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function Wu(t,e){var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?Wu(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Gs);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const Vu=/^\[(.+)\]$/;function x1(t){if(Vu.test(t)){const e=Vu.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}function w1(t){const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return C1(Object.entries(t.classGroups),r).forEach(([i,s])=>{Xs(s,n,i,e)}),n}function Xs(t,e,r,n){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:Ru(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(k1(o)){Xs(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Xs(s,Ru(e,i),r,n)})})}function Ru(t,e){let r=t;return e.split(Gs).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function k1(t){return t.isThemeGetter}function C1(t,e){return e?t.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[e+s,a])):i);return[r,o]}):t}function _1(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;function o(i,s){r.set(i,s),e++,e>t&&(e=0,n=r,r=new Map)}return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}}const Yu="!";function S1(t){const e=t.separator,r=e.length===1,n=e[0],o=e.length;return function(s){const a=[];let l=0,c=0,d;for(let m=0;m<s.length;m++){let b=s[m];if(l===0){if(b===n&&(r||s.slice(m,m+o)===e)){a.push(s.slice(c,m)),c=m+o;continue}if(b==="/"){d=m;continue}}b==="["?l++:b==="]"&&l--}const u=a.length===0?s:s.substring(c),f=u.startsWith(Yu),h=f?u.substring(1):u,p=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}}}function E1(t){if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e}function O1(t){return{cache:_1(t.cacheSize),splitModifiers:S1(t),...v1(t)}}const T1=/\s+/;function N1(t,e){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=new Set;return t.trim().split(T1).map(s=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=r(s);let u=n(d?c.substring(0,d):c),f=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:s};if(u=n(c),!u)return{isTailwindClass:!1,originalClassName:s};f=!1}const h=E1(a).join(":");return{isTailwindClass:!0,modifierId:l?h+Yu:h,classGroupId:u,originalClassName:s,hasPostfixModifier:f}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=s,d=a+l;return i.has(d)?!1:(i.add(d),o(l,c).forEach(u=>i.add(a+u)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function M1(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Uu(e))&&(n&&(n+=" "),n+=r);return n}function Uu(t){if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Uu(t[n]))&&(r&&(r+=" "),r+=e);return r}function P1(t,...e){let r,n,o,i=s;function s(l){const c=e.reduce((d,u)=>u(d),t());return r=O1(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const d=N1(l,r);return o(l,d),d}return function(){return i(M1.apply(null,arguments))}}function ye(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const Ku=/^\[(?:([a-z-]+):)?(.+)\]$/i,A1=/^\d+\/\d+$/,D1=new Set(["px","full","screen"]),I1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,L1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,F1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,z1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,B1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function jt(t){return vr(t)||D1.has(t)||A1.test(t)}function Jt(t){return Wr(t,"length",U1)}function vr(t){return!!t&&!Number.isNaN(Number(t))}function li(t){return Wr(t,"number",vr)}function jn(t){return!!t&&Number.isInteger(Number(t))}function $1(t){return t.endsWith("%")&&vr(t.slice(0,-1))}function Z(t){return Ku.test(t)}function Qt(t){return I1.test(t)}const j1=new Set(["length","size","percentage"]);function H1(t){return Wr(t,j1,qu)}function W1(t){return Wr(t,"position",qu)}const V1=new Set(["image","url"]);function R1(t){return Wr(t,V1,q1)}function Y1(t){return Wr(t,"",K1)}function Hn(){return!0}function Wr(t,e,r){const n=Ku.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1}function U1(t){return L1.test(t)&&!F1.test(t)}function qu(){return!1}function K1(t){return z1.test(t)}function q1(t){return B1.test(t)}function G1(){const t=ye("colors"),e=ye("spacing"),r=ye("blur"),n=ye("brightness"),o=ye("borderColor"),i=ye("borderRadius"),s=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),d=ye("hueRotate"),u=ye("invert"),f=ye("gap"),h=ye("gradientColorStops"),p=ye("gradientColorStopPositions"),m=ye("inset"),b=ye("margin"),v=ye("opacity"),y=ye("padding"),_=ye("saturate"),x=ye("scale"),w=ye("sepia"),S=ye("skew"),T=ye("space"),M=ye("translate"),N=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Z,e],A=()=>[Z,e],D=()=>["",jt,Jt],O=()=>["auto",vr,Z],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],B=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",Z],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[vr,li],V=()=>[vr,Z];return{cacheSize:500,separator:":",theme:{colors:[Hn],spacing:[jt,Jt],blur:["none","",Qt,Z],brightness:W(),borderColor:[t],borderRadius:["none","","full",Qt,Z],borderSpacing:A(),borderWidth:D(),contrast:W(),grayscale:j(),hueRotate:V(),invert:j(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[$1,Jt],inset:I(),margin:I(),opacity:W(),padding:A(),saturate:W(),scale:W(),sepia:j(),skew:V(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[Qt]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),Z]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",jn,Z]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",jn,Z]}],"grid-cols":[{"grid-cols":[Hn]}],"col-start-end":[{col:["auto",{span:["full",jn,Z]},Z]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Hn]}],"row-start-end":[{row:["auto",{span:[jn,Z]},Z]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,e]}],"min-w":[{"min-w":[Z,e,"min","max","fit"]}],"max-w":[{"max-w":[Z,e,"none","full","min","max","fit","prose",{screen:[Qt]},Qt]}],h:[{h:[Z,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Qt,Jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",li]}],"font-family":[{font:[Hn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",vr,li]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jt,Jt]}],"underline-offset":[{"underline-offset":["auto",jt,Z]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),W1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",H1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R1]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[jt,Z]}],"outline-w":[{outline:[jt,Jt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[jt,Jt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Qt,Y1]}],"shadow-color":[{shadow:[Hn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":z()}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Qt,Z]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[_]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[jn,Z]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[jt,Jt,li]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const F=P1(G1);function xr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Wn(t){if(!xr(t))return t;const e={};for(const r in t)e[r]=Wn(t[r]);return e}function H(t,e){if(xr(e)&&Object.keys(e).length===0)return Wn({...t,...e});const r={...t,...e};if(xr(e)&&xr(t))for(const n in e)xr(e[n])&&n in t&&xr(t[n])?r[n]=H(t[n],e[n]):r[n]=xr(e[n])?Wn(e[n]):e[n];return r}function qC(t){return t}const X1={root:{base:"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700",flush:{off:"rounded-lg border",on:"border-b"}},content:{base:"p-5 first:rounded-t-lg last:rounded-b-lg dark:bg-gray-900"},title:{arrow:{base:"h-6 w-6 shrink-0",open:{off:"",on:"rotate-180"}},base:"flex w-full items-center justify-between p-5 text-left font-medium text-gray-500 first:rounded-t-lg last:rounded-b-lg dark:text-gray-400",flush:{off:"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800",on:"bg-transparent dark:bg-transparent"},heading:"",open:{off:"",on:"bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-white"}}},Z1={base:"flex flex-col gap-2 p-4 text-sm",borderAccent:"border-t-4",closeButton:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2",icon:"h-5 w-5",color:{info:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",gray:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white",failure:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",success:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",warning:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",red:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",green:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",yellow:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",blue:"bg-blue-100 text-blue-500 hover:bg-blue-200 focus:ring-blue-400 dark:bg-blue-200 dark:text-blue-600 dark:hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",pink:"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300",lime:"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300",dark:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300",indigo:"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300",purple:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300",teal:"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300",light:"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white"}},color:{info:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",gray:"border-gray-500 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300",failure:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",success:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",warning:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",red:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",green:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",yellow:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",blue:"border-blue-500 bg-blue-100 text-blue-700 dark:bg-blue-200 dark:text-blue-800",cyan:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",pink:"border-pink-500 bg-pink-100 text-pink-700 dark:bg-pink-200 dark:text-pink-800",lime:"border-lime-500 bg-lime-100 text-lime-700 dark:bg-lime-200 dark:text-lime-800",dark:"border-gray-600 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:text-gray-300",indigo:"border-indigo-500 bg-indigo-100 text-indigo-700 dark:bg-indigo-200 dark:text-indigo-800",purple:"border-purple-500 bg-purple-100 text-purple-700 dark:bg-purple-200 dark:text-purple-800",teal:"border-teal-500 bg-teal-100 text-teal-700 dark:bg-teal-200 dark:text-teal-800",light:"border-gray-400 bg-gray-50 text-gray-600 dark:bg-gray-500 dark:text-gray-200"},icon:"mr-3 inline h-5 w-5 flex-shrink-0",rounded:"rounded-lg",wrapper:"flex items-center"},J1={root:{base:"flex items-center justify-center space-x-4 rounded",bordered:"p-1 ring-2",rounded:"rounded-full",color:{dark:"ring-gray-800 dark:ring-gray-800",failure:"ring-red-500 dark:ring-red-700",gray:"ring-gray-500 dark:ring-gray-400",info:"ring-cyan-400 dark:ring-cyan-800",light:"ring-gray-300 dark:ring-gray-500",purple:"ring-purple-500 dark:ring-purple-600",success:"ring-green-500 dark:ring-green-500",warning:"ring-yellow-300 dark:ring-yellow-500",pink:"ring-pink-500 dark:ring-pink-500"},img:{base:"rounded",off:"relative overflow-hidden bg-gray-100 dark:bg-gray-600",on:"",placeholder:"absolute -bottom-1 h-auto w-auto text-gray-400"},size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-20 w-20",xl:"h-36 w-36"},stacked:"ring-2 ring-gray-300 dark:ring-gray-500",statusPosition:{"bottom-left":"-bottom-1 -left-1","bottom-center":"-bottom-1","bottom-right":"-bottom-1 -right-1","top-left":"-left-1 -top-1","top-center":"-top-1","top-right":"-right-1 -top-1","center-right":"-right-1",center:"","center-left":"-left-1"},status:{away:"bg-yellow-400",base:"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800",busy:"bg-red-400",offline:"bg-gray-400",online:"bg-green-400"},initials:{text:"font-medium text-gray-600 dark:text-gray-300",base:"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 dark:bg-gray-600"}},group:{base:"flex -space-x-4"},groupCounter:{base:"relative flex h-10 w-10 items-center justify-center rounded-full bg-gray-700 text-xs font-medium text-white ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500"}},Q1={root:{base:"flex h-fit items-center gap-1 font-semibold",color:{info:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-800 dark:group-hover:bg-cyan-300",gray:"bg-gray-100 text-gray-800 group-hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:group-hover:bg-gray-600",failure:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",success:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",warning:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300",indigo:"bg-indigo-100 text-indigo-800 group-hover:bg-indigo-200 dark:bg-indigo-200 dark:text-indigo-900 dark:group-hover:bg-indigo-300",purple:"bg-purple-100 text-purple-800 group-hover:bg-purple-200 dark:bg-purple-200 dark:text-purple-900 dark:group-hover:bg-purple-300",pink:"bg-pink-100 text-pink-800 group-hover:bg-pink-200 dark:bg-pink-200 dark:text-pink-900 dark:group-hover:bg-pink-300",blue:"bg-blue-100 text-blue-800 group-hover:bg-blue-200 dark:bg-blue-200 dark:text-blue-900 dark:group-hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-900 dark:group-hover:bg-cyan-300",dark:"bg-gray-600 text-gray-100 group-hover:bg-gray-500 dark:bg-gray-900 dark:text-gray-200 dark:group-hover:bg-gray-700",light:"bg-gray-200 text-gray-800 group-hover:bg-gray-300 dark:bg-gray-400 dark:text-gray-900 dark:group-hover:bg-gray-500",green:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",lime:"bg-lime-100 text-lime-800 group-hover:bg-lime-200 dark:bg-lime-200 dark:text-lime-900 dark:group-hover:bg-lime-300",red:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",teal:"bg-teal-100 text-teal-800 group-hover:bg-teal-200 dark:bg-teal-200 dark:text-teal-900 dark:group-hover:bg-teal-300",yellow:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300"},href:"group",size:{xs:"p-1 text-xs",sm:"p-1.5 text-sm"}},icon:{off:"rounded px-2 py-0.5",on:"rounded-full p-1.5",size:{xs:"h-3 w-3",sm:"h-3.5 w-3.5"}}},ek={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},tk={root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}},rk={base:"group relative flex items-stretch justify-center p-0.5 text-center font-medium transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] focus:z-10 focus:outline-none",fullSized:"w-full",color:{dark:"border border-transparent bg-gray-800 text-white focus:ring-4 focus:ring-gray-300 enabled:hover:bg-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-gray-800 dark:enabled:hover:bg-gray-700",failure:"border border-transparent bg-red-700 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-800 dark:bg-red-600 dark:focus:ring-red-900 dark:enabled:hover:bg-red-700",gray:":ring-cyan-700 border border-gray-200 bg-white text-gray-900 focus:text-cyan-700 focus:ring-4 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 dark:border-gray-600 dark:bg-transparent dark:text-gray-400 dark:enabled:hover:bg-gray-700 dark:enabled:hover:text-white",info:"border border-transparent bg-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-800 dark:bg-cyan-600 dark:focus:ring-cyan-800 dark:enabled:hover:bg-cyan-700",light:"border border-gray-300 bg-white text-gray-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-600 dark:text-white dark:focus:ring-gray-700 dark:enabled:hover:border-gray-700 dark:enabled:hover:bg-gray-700",purple:"border border-transparent bg-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-purple-800 dark:bg-purple-600 dark:focus:ring-purple-900 dark:enabled:hover:bg-purple-700",success:"border border-transparent bg-green-700 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-800 dark:bg-green-600 dark:focus:ring-green-800 dark:enabled:hover:bg-green-700",warning:"border border-transparent bg-yellow-400 text-white focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-500 dark:focus:ring-yellow-900",blue:"border border-transparent bg-blue-700 text-white focus:ring-4 focus:ring-blue-300 enabled:hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"border border-cyan-300 bg-white text-cyan-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-100 dark:border-cyan-600 dark:bg-cyan-600 dark:text-white dark:focus:ring-cyan-700 dark:enabled:hover:border-cyan-700 dark:enabled:hover:bg-cyan-700",green:"border border-green-300 bg-white text-green-900 focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-100 dark:border-green-600 dark:bg-green-600 dark:text-white dark:focus:ring-green-700 dark:enabled:hover:border-green-700 dark:enabled:hover:bg-green-700",indigo:"border border-indigo-300 bg-white text-indigo-900 focus:ring-4 focus:ring-indigo-300 enabled:hover:bg-indigo-100 dark:border-indigo-600 dark:bg-indigo-600 dark:text-white dark:focus:ring-indigo-700 dark:enabled:hover:border-indigo-700 dark:enabled:hover:bg-indigo-700",lime:"border border-lime-300 bg-white text-lime-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-lime-100 dark:border-lime-600 dark:bg-lime-600 dark:text-white dark:focus:ring-lime-700 dark:enabled:hover:border-lime-700 dark:enabled:hover:bg-lime-700",pink:"border border-pink-300 bg-white text-pink-900 focus:ring-4 focus:ring-pink-300 enabled:hover:bg-pink-100 dark:border-pink-600 dark:bg-pink-600 dark:text-white dark:focus:ring-pink-700 dark:enabled:hover:border-pink-700 dark:enabled:hover:bg-pink-700",red:"border border-red-300 bg-white text-red-900 focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-100 dark:border-red-600 dark:bg-red-600 dark:text-white dark:focus:ring-red-700 dark:enabled:hover:border-red-700 dark:enabled:hover:bg-red-700",teal:"border border-teal-300 bg-white text-teal-900 focus:ring-4 focus:ring-teal-300 enabled:hover:bg-teal-100 dark:border-teal-600 dark:bg-teal-600 dark:text-white dark:focus:ring-teal-700 dark:enabled:hover:border-teal-700 dark:enabled:hover:bg-teal-700",yellow:"border border-yellow-300 bg-white text-yellow-900 focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-100 dark:border-yellow-600 dark:bg-yellow-600 dark:text-white dark:focus:ring-yellow-700 dark:enabled:hover:border-yellow-700 dark:enabled:hover:bg-yellow-700"},disabled:"cursor-not-allowed opacity-50",isProcessing:"cursor-wait",spinnerSlot:"absolute top-0 flex h-full items-center",spinnerLeftPosition:{xs:"left-2",sm:"left-3",md:"left-4",lg:"left-5",xl:"left-6"},gradient:{cyan:"bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800",failure:"bg-gradient-to-r from-red-400 via-red-500 to-red-600 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-gradient-to-br dark:focus:ring-red-800",info:"bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800 ",lime:"bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 text-gray-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-gradient-to-br dark:focus:ring-lime-800",pink:"bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 text-white focus:ring-4 focus:ring-pink-300 enabled:hover:bg-gradient-to-br dark:focus:ring-pink-800",purple:"bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-gradient-to-br dark:focus:ring-purple-800",success:"bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-gradient-to-br dark:focus:ring-green-800",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 text-white focus:ring-4 focus:ring-teal-300 enabled:hover:bg-gradient-to-br dark:focus:ring-teal-800"},gradientDuoTone:{cyanToBlue:"bg-gradient-to-r from-cyan-500 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",greenToBlue:"bg-gradient-to-br from-green-400 to-cyan-600 text-white focus:ring-4 focus:ring-green-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-green-800",pinkToOrange:"bg-gradient-to-br from-pink-500 to-orange-400 text-white focus:ring-4 focus:ring-pink-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-pink-800",purpleToBlue:"bg-gradient-to-br from-purple-600 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",purpleToPink:"bg-gradient-to-r from-purple-500 to-pink-500 text-white focus:ring-4 focus:ring-purple-200 enabled:hover:bg-gradient-to-l dark:focus:ring-purple-800",redToYellow:"bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 text-gray-900 focus:ring-4 focus:ring-red-100 enabled:hover:bg-gradient-to-bl dark:focus:ring-red-400",tealToLime:"bg-gradient-to-r from-teal-200 to-lime-200 text-gray-900 focus:ring-4 focus:ring-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 dark:focus:ring-teal-700"},inner:{base:"flex items-stretch transition-all duration-200",position:{none:"",start:"rounded-r-none",middle:"rounded-none",end:"rounded-l-none"},outline:"border border-transparent",isProcessingPadding:{xs:"pl-8",sm:"pl-10",md:"pl-12",lg:"pl-16",xl:"pl-20"}},label:"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800",outline:{color:{gray:"border border-gray-900 dark:border-white",default:"border-0",light:""},off:"",on:"flex w-full justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-enabled:group-hover:bg-opacity-0 group-enabled:group-hover:text-inherit dark:bg-gray-900 dark:text-white",pill:{off:"rounded-md",on:"rounded-full"}},pill:{off:"rounded-lg",on:"rounded-full"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-2.5 text-base",xl:"px-6 py-3 text-base"}},nk={base:"inline-flex",position:{none:"",start:"rounded-r-none focus:ring-2",middle:"rounded-none border-l-0 pl-0 focus:ring-2",end:"rounded-l-none border-l-0 pl-0 focus:ring-2"}},ok={root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}},ik={root:{base:"relative h-full w-full",leftControl:"absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none",rightControl:"absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none"},indicators:{active:{off:"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800",on:"bg-white dark:bg-gray-800"},base:"h-3 w-3 rounded-full",wrapper:"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3"},item:{base:"absolute left-1/2 top-1/2 block w-full -translate-x-1/2 -translate-y-1/2",wrapper:{off:"w-full flex-shrink-0 transform cursor-default snap-center",on:"w-full flex-shrink-0 transform cursor-grab snap-center"}},control:{base:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10",icon:"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6"},scrollContainer:{base:"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg",snap:"snap-x"}},sk={root:{base:"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700",color:{default:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-gray-800 dark:focus:ring-cyan-600",dark:"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800",failure:"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900",gray:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",info:"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800",light:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",purple:"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600",success:"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800",warning:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400",blue:"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700",cyan:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600",green:"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600",indigo:"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700",pink:"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600",red:"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600",teal:"text-teal-600 focus:ring-teal-600 dark:ring-offset-teal-600 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400"}}},ak={root:{base:"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",icon:"h-5 w-5"}},lk={root:{base:"relative"},popup:{root:{base:"absolute top-10 z-50 block pt-2",inline:"relative top-0 z-auto",inner:"inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700"},header:{base:"",title:"px-2 py-3 text-center font-semibold text-gray-900 dark:text-white",selectors:{base:"mb-2 flex justify-between",button:{base:"rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",prev:"",next:"",view:""}}},view:{base:"p-1"},footer:{base:"mt-2 flex space-x-2",button:{base:"w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-cyan-300",today:"bg-cyan-700 text-white hover:bg-cyan-800 dark:bg-cyan-600 dark:hover:bg-cyan-700",clear:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600"}}},views:{days:{header:{base:"mb-1 grid grid-cols-7",title:"h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400"},items:{base:"grid w-64 grid-cols-7",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600 ",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},months:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},years:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},decades:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}}}},ck={arrowIcon:"ml-2 h-4 w-4",content:"py-1 focus:outline-none",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"},dk={root:{base:"flex"},field:{base:"relative w-full",input:{base:"block w-full overflow-hidden rounded-lg border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},uk={input:{default:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"}},success:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"}},error:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"}}},label:{default:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"}},success:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500"}},error:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500"}}},helperText:{default:"mt-2 text-xs text-gray-600 dark:text-gray-400",success:"mt-2 text-xs text-green-600 dark:text-green-400",error:"mt-2 text-xs text-red-600 dark:text-red-400"}},fk={root:{base:"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between",container:"w-full p-6",bgDark:"bg-gray-800"},groupLink:{base:"flex flex-wrap text-sm text-gray-500 dark:text-white",link:{base:"me-4 last:mr-0 md:mr-6",href:"hover:underline"},col:"flex-col space-y-4"},icon:{base:"text-gray-500 dark:hover:text-white",size:"h-5 w-5"},title:{base:"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white"},divider:{base:"my-6 w-full border-gray-200 dark:border-gray-700 sm:mx-auto lg:my-8"},copyright:{base:"text-sm text-gray-500 dark:text-gray-400 sm:text-center",href:"ml-1 hover:underline",span:"ml-1"},brand:{base:"mb-4 flex items-center sm:mb-0",img:"mr-3 h-8",span:"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white"}},hk={root:{base:"mt-2 text-sm",colors:{gray:"text-gray-500 dark:text-gray-400",info:"text-cyan-700 dark:text-cyan-800",success:"text-green-600 dark:text-green-500",failure:"text-red-600 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600"}}},gk={root:{base:"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100",icon:"inline-block"}},pk={root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},mk={root:{base:"list-inside space-y-1 text-gray-500 dark:text-gray-400",ordered:{off:"list-disc",on:"list-decimal"},horizontal:"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0",unstyled:"list-none",nested:"mt-2 ps-5"},item:{withIcon:{off:"",on:"flex items-center"},icon:"me-2 h-3.5 w-3.5 flex-shrink-0"}},bk={root:{base:"list-none rounded-lg border border-gray-200 bg-white text-left text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white"},item:{base:"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0",link:{base:"flex w-full items-center border-b border-gray-200 px-4 py-2 dark:border-gray-600",active:{off:"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500",on:"bg-cyan-700 text-white dark:bg-gray-800"},disabled:{off:"",on:"cursor-not-allowed bg-gray-100 text-gray-900 hover:bg-gray-100 hover:text-gray-900 focus:text-gray-900"},href:{off:"",on:""},icon:"mr-2 h-4 w-4 fill-current"}}},yk={root:{base:"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full p-4 md:h-auto",inner:"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700"},body:{base:"flex-1 overflow-auto p-6",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600",popup:"border-b-0 p-2",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}},vk={root:{base:"bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",rounded:{on:"rounded",off:""},bordered:{on:"border",off:""},inner:{base:"mx-auto flex flex-wrap items-center justify-between",fluid:{on:"",off:"container"}}},brand:{base:"flex items-center"},collapse:{base:"w-full md:block md:w-auto",list:"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium",hidden:{on:"hidden",off:""}},link:{base:"block py-2 pl-3 pr-4 md:p-0",active:{on:"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700",off:"border-b border-gray-100 text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white"},disabled:{on:"text-gray-400 hover:cursor-not-allowed dark:text-gray-600",off:""}},toggle:{base:"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden",icon:"h-6 w-6 shrink-0"}},xk={base:"",layout:{table:{base:"text-sm text-gray-700 dark:text-gray-400",span:"font-semibold text-gray-900 dark:text-white"}},pages:{base:"xs:mt-0 mt-2 inline-flex items-center -space-x-px",showIcon:"inline-flex",previous:{base:"ml-0 rounded-l-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},next:{base:"rounded-r-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},selector:{base:"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",active:"bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",disabled:"cursor-not-allowed opacity-50"}}},wk={base:"absolute z-20 inline-block w-max max-w-[100vw] bg-white outline-none border border-gray-200 rounded-lg shadow-sm dark:border-gray-600 dark:bg-gray-800",content:"z-10 overflow-hidden rounded-[7px]",arrow:{base:"absolute h-2 w-2 z-0 rotate-45 mix-blend-lighten bg-white border border-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:mix-blend-color",placement:"-4px"}},kk={base:"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",label:"mb-1 flex justify-between font-medium dark:text-white",bar:"space-x-2 rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100",color:{dark:"bg-gray-600 dark:bg-gray-300",blue:"bg-blue-600",red:"bg-red-600 dark:bg-red-500",green:"bg-green-600 dark:bg-green-500",yellow:"bg-yellow-400",indigo:"bg-indigo-600 dark:bg-indigo-500",purple:"bg-purple-600 dark:bg-purple-500",cyan:"bg-cyan-600",gray:"bg-gray-500",lime:"bg-lime-600",pink:"bg-pink-500",teal:"bg-teal-600"},size:{sm:"h-1.5",md:"h-2.5",lg:"h-4",xl:"h-6"}},Ck={root:{base:"h-4 w-4 border border-gray-300 text-cyan-600 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600"}},_k={root:{base:"flex"},field:{base:"relative w-full",input:{base:"w-full cursor-pointer appearance-none rounded-lg bg-gray-200 dark:bg-gray-700",sizes:{sm:"h-1",md:"h-2",lg:"h-3"}}}},Sk={root:{base:"flex items-center"},star:{empty:"text-gray-300 dark:text-gray-500",filled:"text-yellow-400",sizes:{sm:"h-5 w-5",md:"h-7 w-7",lg:"h-10 w-10"}}},Ek={base:"flex items-center",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500",progress:{base:"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700",fill:"h-5 rounded bg-yellow-400",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500"}},Ok={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},Tk={root:{base:"h-full",collapsed:{on:"w-16",off:"w-64"},inner:"h-full overflow-y-auto overflow-x-hidden rounded bg-gray-50 px-3 py-4 dark:bg-gray-800"},collapse:{button:"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",icon:{base:"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",open:{off:"",on:"text-gray-900"}},label:{base:"ml-3 flex-1 whitespace-nowrap text-left",icon:{base:"h-6 w-6 transition delay-0 ease-in-out",open:{on:"rotate-180",off:""}}},list:"space-y-2 py-2"},cta:{base:"mt-6 rounded-lg bg-gray-100 p-4 dark:bg-gray-700",color:{blue:"bg-cyan-50 dark:bg-cyan-900",dark:"bg-dark-50 dark:bg-dark-900",failure:"bg-red-50 dark:bg-red-900",gray:"bg-alternative-50 dark:bg-alternative-900",green:"bg-green-50 dark:bg-green-900",light:"bg-light-50 dark:bg-light-900",red:"bg-red-50 dark:bg-red-900",purple:"bg-purple-50 dark:bg-purple-900",success:"bg-green-50 dark:bg-green-900",yellow:"bg-yellow-50 dark:bg-yellow-900",warning:"bg-yellow-50 dark:bg-yellow-900"}},item:{base:"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",active:"bg-gray-100 dark:bg-gray-700",collapsed:{insideCollapse:"group w-full pl-8 transition duration-75",noIcon:"font-bold"},content:{base:"flex-1 whitespace-nowrap px-3"},icon:{base:"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",active:"text-gray-700 dark:text-gray-100"},label:"",listItem:""},items:{base:""},itemGroup:{base:"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700"},logo:{base:"mb-5 flex items-center pl-2.5",collapsed:{on:"hidden",off:"self-center whitespace-nowrap text-xl font-semibold dark:text-white"},img:"mr-3 h-6 sm:h-7"}},Nk={base:"inline animate-spin text-gray-200",color:{failure:"fill-red-600",gray:"fill-gray-600",info:"fill-cyan-600",pink:"fill-pink-600",purple:"fill-purple-600",success:"fill-green-500",warning:"fill-yellow-400"},light:{off:{base:"dark:text-gray-600",color:{failure:"",gray:"dark:fill-gray-300",info:"",pink:"",purple:"",success:"",warning:""}},on:{base:"",color:{failure:"",gray:"",info:"",pink:"",purple:"",success:"",warning:""}}},size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},Mk={root:{base:"w-full text-left text-sm text-gray-500 dark:text-gray-400",shadow:"absolute left-0 top-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-black",wrapper:"relative"},body:{base:"group/body",cell:{base:"px-6 py-4 group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg"}},head:{base:"group/head text-xs uppercase text-gray-700 dark:text-gray-400",cell:{base:"bg-gray-50 px-6 py-3 group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg dark:bg-gray-700"}},row:{base:"group/row",hovered:"hover:bg-gray-50 dark:hover:bg-gray-600",striped:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700"}},Pk={base:"flex flex-col gap-2",tablist:{base:"flex text-center",styles:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none focus:ring-4 focus:ring-cyan-300 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",styles:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"active rounded-t-lg border-b-2 border-cyan-600 text-cyan-600 dark:border-cyan-500 dark:text-cyan-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-cyan-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"active rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",styles:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"},Ak={base:"block w-full rounded-lg border text-sm disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}},Dk={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},Ik={root:{direction:{horizontal:"sm:flex",vertical:"relative border-l border-gray-200 dark:border-gray-700"}},item:{root:{horizontal:"relative mb-6 sm:mb-0",vertical:"mb-10 ml-6"},content:{root:{base:"mt-3 sm:pr-8"},body:{base:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},time:{base:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"},title:{base:"text-lg font-semibold text-gray-900 dark:text-white"}},point:{horizontal:"flex items-center",line:"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex",marker:{base:{horizontal:"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700",vertical:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"},icon:{base:"h-3 w-3 text-cyan-600 dark:text-cyan-300",wrapper:"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900"}},vertical:""}}},Lk={root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},Fk={root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4",md:"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5",lg:"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6"}}},zk={target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"},Bk={theme:Wn({accordion:X1,alert:Z1,avatar:J1,badge:Q1,blockquote:ek,breadcrumb:tk,button:rk,buttonGroup:nk,card:ok,carousel:ik,checkbox:sk,datepicker:lk,darkThemeToggle:ak,dropdown:ck,fileInput:dk,floatingLabel:uk,footer:fk,helperText:hk,kbd:gk,label:pk,listGroup:bk,list:mk,modal:yk,navbar:vk,pagination:xk,popover:wk,progress:kk,radio:Ck,rangeSlider:_k,rating:Sk,ratingAdvanced:Ek,select:Ok,textInput:Dk,textarea:Ak,toggleSwitch:Fk,sidebar:Tk,spinner:Nk,table:Mk,tabs:Pk,timeline:Ik,toast:Lk,tooltip:zk})};function q(){return Wn(Bk.theme)}const Gu=k.createContext(void 0);function Xu(){const t=k.useContext(Gu);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Zu=({children:t,className:e,theme:r={},...n})=>{const{isOpen:o}=Xu(),i=H(q().accordion.content,r);return g.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:t})},Ju=({children:t,...e})=>{const{alwaysOpen:r}=e,[n,o]=k.useState(e.isOpen),i=r?{...e,isOpen:n,setOpen:()=>o(!n)}:e;return g.jsx(Gu.Provider,{value:i,children:t})},Qu=({as:t="h2",children:e,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=Xu(),c=()=>typeof l<"u"&&l(),d=H(q().accordion.title,n);return g.jsxs("button",{className:F(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[g.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),i&&g.jsx(i,{"aria-hidden":!0,className:F(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},ef=({alwaysOpen:t=!1,arrowIcon:e=zu,children:r,flush:n=!1,collapseAll:o=!1,className:i,theme:s={},...a})=>{const[l,c]=k.useState(o?-1:0),d=k.useMemo(()=>k.Children.map(r,(f,h)=>k.cloneElement(f,{alwaysOpen:t,arrowIcon:e,flush:n,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,r,n,l]),u=H(q().accordion.root,s);return g.jsx("div",{className:F(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};ef.displayName="Accordion",Ju.displayName="Accordion.Panel",Qu.displayName="Accordion.Title",Zu.displayName="Accordion.Content",Object.assign(ef,{Panel:Ju,Title:Qu,Content:Zu});const tf=({children:t,className:e,theme:r={},...n})=>{const o=H(q().avatar.group,r);return g.jsx("div",{"data-testid":"avatar-group-element",className:F(o.base,e),...n,children:t})};tf.displayName="Avatar.Group";const rf=({className:t,href:e,theme:r={},total:n,...o})=>{const i=H(q().avatar.groupCounter,r);return g.jsxs("a",{href:e,className:F(i.base,t),...o,children:["+",n]})};rf.displayName="Avatar.GroupCounter";const nf=({alt:t="",bordered:e=!1,children:r,className:n,color:o="light",img:i,placeholderInitials:s="",rounded:a=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const p=H(q().avatar,f),m=F(p.root.img.base,e&&p.root.bordered,e&&p.root.color[o],a&&p.root.rounded,c&&p.root.stacked,p.root.img.on,p.root.size[l]),b={className:F(m,p.root.img.on),"data-testid":"flowbite-avatar-img"};return g.jsxs("div",{className:F(p.root.base,n),"data-testid":"flowbite-avatar",...h,children:[g.jsxs("div",{className:"relative",children:[i?typeof i=="string"?g.jsx("img",{alt:t,src:i,...b}):i({alt:t,...b}):s?g.jsx("div",{className:F(p.root.img.off,p.root.initials.base,c&&p.root.stacked,e&&p.root.bordered,e&&p.root.color[o],p.root.size[l],a&&p.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:g.jsx("span",{className:F(p.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):g.jsx("div",{className:F(m,p.root.img.off),"data-testid":"flowbite-avatar-img",children:g.jsx("svg",{className:p.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),d&&g.jsx("span",{"data-testid":"flowbite-avatar-status",className:F(p.root.status.base,p.root.status[d],p.root.statusPosition[u])})]}),r&&g.jsx("div",{children:r})]})};nf.displayName="Avatar",Object.assign(nf,{Group:tf,Counter:rf});const of=({children:t,color:e="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=H(q().badge,s),c=()=>g.jsxs("span",{className:F(l.root.base,l.root.color[e],l.root.size[o],l.icon[n?"on":"off"],i),"data-testid":"flowbite-badge",...a,children:[n&&g.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),t&&g.jsx("span",{children:t})]});return r?g.jsx("a",{className:l.root.href,href:r,children:g.jsx(c,{})}):g.jsx(c,{})};of.displayName="Badge";const sf=({className:t,color:e="info",light:r,size:n="md",theme:o={},...i})=>{const s=H(q().spinner,o);return g.jsx("span",{role:"status",...i,children:g.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:F(s.base,s.color[e],s.light[r?"on":"off"].base,s.light[r?"on":"off"].color[e],s.size[n],t),children:[g.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),g.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})};sf.displayName="Spinner";const Zs=k.forwardRef(({children:t,as:e,href:r,type:n="button",...o},i)=>{const s=e||(r?"a":"button");return k.createElement(s,{ref:i,href:r,type:n,...o},t)});Zs.displayName="ButtonBaseComponent";const af=(t,e,r)=>k.Children.map(t,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:af(n.props.children,e,r),positionInGroup:lf(o,k.Children.count(t))}):k.cloneElement(n,{outline:e,pill:r,positionInGroup:lf(o,k.Children.count(t))}):n),lf=(t,e)=>t===0?"start":t===e-1?"end":"middle",cf=({children:t,className:e,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>af(t,r,n),[t,r,n]),a=H(q().buttonGroup,o);return g.jsx("div",{className:F(a.base,e),role:"group",...i,children:s})};cf.displayName="Button.Group";const df=k.forwardRef(({children:t,className:e,color:r="info",disabled:n,fullSized:o,isProcessing:i=!1,processingLabel:s="Loading...",processingSpinner:a,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:p="md",theme:m={},...b},v)=>{const{buttonGroup:y,button:_}=q(),x=H(_,m),w=b;return g.jsx(Zs,{ref:v,disabled:n,className:F(x.base,n&&x.disabled,!l&&!c&&x.color[r],l&&!c&&x.gradientDuoTone[l],!l&&c&&x.gradient[c],u&&(x.outline.color[r]??x.outline.color.default),x.pill[f?"on":"off"],o&&x.fullSized,y.position[h],e),...w,children:g.jsx("span",{className:F(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&f?"on":"off"],x.size[p],u&&!x.outline.color[r]&&x.inner.outline,i&&x.isProcessing,i&&x.inner.isProcessingPadding[p],x.inner.position[h]),children:g.jsxs(g.Fragment,{children:[i&&g.jsx("span",{className:F(x.spinnerSlot,x.spinnerLeftPosition[p]),children:a||g.jsx(sf,{size:p})}),typeof t<"u"?t:g.jsx("span",{"data-testid":"flowbite-button-label",className:F(x.label),children:i?s:d})]})})})});df.displayName="Button";const uf=Object.assign(df,{Group:cf}),ff=({children:t,...e})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return g.jsx(uf,{onClick:r,...e,children:t})};ff.displayName="Banner.CollapseButton";const hf=({children:t,...e})=>g.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});hf.displayName="Banner",Object.assign(hf,{CollapseButton:ff});const gf=k.forwardRef(({children:t,className:e,href:r,icon:n,theme:o={},...i},s)=>{const a=typeof r<"u",l=a?"a":"span",c=H(q().breadcrumb.item,o);return g.jsxs("li",{className:F(c.base,e),...i,children:[g.jsx(Hu,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),g.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&g.jsx(n,{"aria-hidden":!0,className:c.icon}),t]})]})});gf.displayName="Breadcrumb.Item";const pf=({children:t,className:e,theme:r={},...n})=>{const o=H(q().breadcrumb.root,r);return g.jsx("nav",{"aria-label":"Breadcrumb",className:F(o.base,e),...n,children:g.jsx("ol",{className:o.list,children:t})})};pf.displayName="Breadcrumb",Object.assign(pf,{Item:gf});var mf={exports:{}};/*!
492
492
  Copyright (c) 2018 Jed Watson.
493
493
  Licensed under the MIT License (MIT), see
494
494
  http://jedwatson.github.io/classnames
495
495
  */(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(i=o(i,n(a)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var a in i)e.call(i,a)&&i[a]&&(s=o(s,a));return s}function o(i,s){return s?i?i+" "+s:i+s:i}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(mf);var $k=mf.exports;const jk=mu($k);var Js={exports:{}};function bf(t,e=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(e<0)throw new RangeError("`wait` must not be negative.");const{immediate:n}=typeof r=="boolean"?{immediate:r}:r;let o,i,s,a,l;function c(){const u=Date.now()-a;if(u<e&&u>=0)s=setTimeout(c,e-u);else if(s=void 0,!n){const f=o,h=i;o=void 0,i=void 0,l=t.apply(f,h)}}const d=function(...u){if(o&&this!==o)throw new Error("Debounced method called with different contexts.");o=this,i=u,a=Date.now();const f=n&&!s;if(s||(s=setTimeout(c,e)),f){const h=o,p=i;o=void 0,i=void 0,l=t.apply(h,p)}return l};return d.clear=()=>{s&&(clearTimeout(s),s=void 0)},d.flush=()=>{if(!s)return;const u=o,f=i;o=void 0,i=void 0,l=t.apply(u,f),clearTimeout(s),s=void 0},d}Js.exports.debounce=bf,Js.exports=bf;var Hk=Js.exports;const Wk=mu(Hk);var Vk=Object.defineProperty,Rk=(t,e,r)=>e in t?Vk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Me=(t,e,r)=>(Rk(t,typeof e!="symbol"?e+"":e,r),r);const Yk=300,Uk=0;class Kk extends k.PureComponent{constructor(e){super(e),Me(this,"container"),Me(this,"scrolling"),Me(this,"started"),Me(this,"pressed"),Me(this,"isMobile",!1),Me(this,"internal"),Me(this,"scrollLeft"),Me(this,"scrollTop"),Me(this,"clientX"),Me(this,"clientY"),Me(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),Me(this,"onScroll",()=>{const r=this.container.current;(r.scrollLeft!==this.scrollLeft||r.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),Me(this,"onTouchStart",r=>{const{nativeMobileScroll:n}=this.props;if(this.isDraggable(r.target))if(this.internal=!0,n&&this.scrolling)this.pressed=!0;else{const o=r.touches[0];this.processClick(o.clientX,o.clientY),!n&&this.props.stopPropagation&&r.stopPropagation()}}),Me(this,"onTouchEnd",()=>{const{nativeMobileScroll:r}=this.props;this.pressed&&(this.started&&(!this.scrolling||!r)?this.processEnd():this.pressed=!1,this.forceUpdate())}),Me(this,"onTouchMove",r=>{const{nativeMobileScroll:n}=this.props;if(this.pressed&&(!n||!this.isMobile)){const o=r.touches[0];o&&this.processMove(o.clientX,o.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation()}}),Me(this,"onMouseDown",r=>{var n,o;this.isDraggable(r.target)&&this.isScrollable()&&(this.internal=!0,((o=(n=this.props)==null?void 0:n.buttons)==null?void 0:o.indexOf(r.button))!==-1&&(this.processClick(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation()))}),Me(this,"onMouseMove",r=>{this.pressed&&(this.processMove(r.clientX,r.clientY),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),Me(this,"onMouseUp",r=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(r)),r.preventDefault(),this.props.stopPropagation&&r.stopPropagation())}),this.container=k.createRef(),this.onEndScroll=Wk(this.onEndScroll,Yk),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,r=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),r.addEventListener("touchstart",this.onTouchStart,{passive:!1}),r.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())}componentWillUnmount(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)}getElement(){return this.container.current}isMobileDevice(){return typeof window.orientation<"u"||navigator.userAgent.indexOf("IEMobile")!==-1}isDraggable(e){const r=this.props.ignoreElements;if(r){const n=e.closest(r);return n===null||n.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,r){const n=this.container.current;this.scrollLeft=n==null?void 0:n.scrollLeft,this.scrollTop=n==null?void 0:n.scrollTop,this.clientX=e,this.clientY=r,this.pressed=!0}processStart(e=!0){const{onStartScroll:r}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),r&&r({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){const{onScroll:e}=this.props;e&&e({external:!this.internal})}else this.processStart(!1)}processMove(e,r){const{horizontal:n,vertical:o,activationDistance:i,onScroll:s}=this.props,a=this.container.current;this.started?(n&&(a.scrollLeft-=e-this.clientX),o&&(a.scrollTop-=r-this.clientY),s&&s({external:!this.internal}),this.clientX=e,this.clientY=r,this.scrollLeft=a.scrollLeft,this.scrollTop=a.scrollTop):(n&&Math.abs(e-this.clientX)>i||o&&Math.abs(r-this.clientY)>i)&&(this.clientX=e,this.clientY=r,this.processStart())}processEnd(){const{onEndScroll:e}=this.props;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(e){[this.container,this.props.innerRef].forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)})}render(){const{children:e,draggingClassName:r,className:n,style:o,hideScrollbars:i}=this.props;return g.jsx("div",{className:jk(n,this.pressed&&r,{"!scroll-auto [&>*]:pointer-events-none [&>*]:cursor-grab":this.pressed,"overflow-auto":this.isMobile,"overflow-hidden !overflow-x-hidden [overflow:-moz-scrollbars-none] [scrollbar-width:none]":i,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":i}),style:o,ref:this.getRef,onScroll:this.onScroll,children:e})}}Me(Kk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[Uk]});const qk=k.forwardRef(({className:t,color:e="default",theme:r={},...n},o)=>{const i=H(q().checkbox,r);return g.jsx("input",{ref:o,type:"checkbox",className:F(i.root.base,i.root.color[e],t),...n})});qk.displayName="Checkbox";const Vn=({children:t,className:e,color:r="default",theme:n={},value:o,...i})=>{const s=H(q().helperText,n);return g.jsx("p",{className:F(s.root.base,s.root.colors[r],e),...i,children:o??t??""})};Vn.displayName="HelperText";const Qs=k.forwardRef(({addon:t,className:e,color:r="gray",helperText:n,icon:o,rightIcon:i,shadow:s,sizing:a="md",theme:l={},type:c="text",...d},u)=>{const f=H(q().textInput,l);return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:F(f.base,e),children:[t&&g.jsx("span",{className:f.addon,children:t}),g.jsxs("div",{className:f.field.base,children:[o&&g.jsx("div",{className:f.field.icon.base,children:g.jsx(o,{className:f.field.icon.svg})}),i&&g.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:g.jsx(i,{className:f.field.rightIcon.svg})}),g.jsx("input",{className:F(f.field.input.base,f.field.input.colors[r],f.field.input.sizes[a],f.field.input.withIcon[o?"on":"off"],f.field.input.withRightIcon[i?"on":"off"],f.field.input.withAddon[t?"on":"off"],f.field.input.withShadow[s?"on":"off"]),type:c,...d,ref:u})]})]}),n&&g.jsx(Vn,{color:r,children:n})]})});Qs.displayName="TextInput";const yf=k.createContext(void 0);function ci(){const t=k.useContext(yf);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var ve=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(ve||{}),vf=(t=>(t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t))(vf||{});const Rn=(t,e,r)=>{const n=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&r){const o=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n>=o&&n<=i}if(e){const o=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return n>=o}if(r){const o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n<=o}return!0},di=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),Gk=(t,e,r)=>(Rn(t,e,r)||(e&&t<e?t=e:r&&t>r&&(t=r)),t),Xk=(t,e)=>{const r=new Date(t.getFullYear(),t.getMonth(),1);let o=r.getDay()-e;return o<0&&(o+=7),ea(r,-o)},Zk=(t,e)=>{const r=[],n=new Date(0);n.setDate(n.getDate()-n.getDay()+e);const o=new Intl.DateTimeFormat(t,{weekday:"short"});for(let i=0;i<7;i++)r.push(o.format(ea(n,i)));return r},ea=(t,e)=>{const r=new Date(t);return r.setDate(r.getDate()+e),r},Jk=(t,e)=>{const r=new Date(t);return r.setMonth(r.getMonth()+e),r},Vr=(t,e)=>{const r=new Date(t);return r.setFullYear(r.getFullYear()+e),r},Yn=(t,e,r)=>{let n={day:"numeric",month:"long",year:"numeric"};return r&&(n=r),new Intl.DateTimeFormat(t,n).format(e)},Rr=(t,e)=>{const r=t.getFullYear();return Math.floor(r/e)*e},Qk=(t,e)=>{const r=t.getFullYear(),n=e+9;return r>=e&&r<=n},e2=({theme:t={}})=>{const{theme:e,weekStart:r,minDate:n,maxDate:o,viewDate:i,selectedDate:s,changeSelectedDate:a,language:l}=ci(),c=H(e.views.days,t),d=Zk(l,r),u=Xk(i,r);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:c.header.base,children:d.map((f,h)=>g.jsx("span",{className:c.header.title,children:f},h))}),g.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const p=ea(u,h),m=Yn(l,p,{day:"numeric"}),b=di(s,p),v=!Rn(p,n,o);return g.jsx("button",{disabled:v,type:"button",className:F(c.items.item.base,b&&c.items.item.selected,v&&c.items.item.disabled),onClick:()=>{v||a(p,!0)},children:m},h)})})]})},t2=({theme:t={}})=>{const{theme:e,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=ci(),s=H(e.views.decades,t);return g.jsx("div",{className:s.items.base,children:[...Array(12)].map((a,l)=>{const d=Rr(n,100)-10+l*10,u=new Date(d,0,1),f=Vr(u,9),h=Qk(n,d),p=!Rn(n,u,f);return g.jsx("button",{disabled:p,type:"button",className:F(s.items.item.base,h&&s.items.item.selected,p&&s.items.item.disabled),onClick:()=>{p||(o(Vr(n,d-r.getFullYear())),i(ve.Years))},children:d},l)})})},r2=({theme:t={}})=>{const{theme:e,minDate:r,maxDate:n,selectedDate:o,viewDate:i,language:s,setViewDate:a,setView:l}=ci(),c=H(e.views.months,t);return g.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(i.getTime());f.setMonth(u);const h=Yn(s,f,{month:"short"}),p=di(o,f),m=!Rn(f,r,n);return g.jsx("button",{disabled:m,type:"button",className:F(c.items.item.base,p&&c.items.item.selected,m&&c.items.item.disabled),onClick:()=>{m||(a(f),l(ve.Days))},children:h},u)})})},n2=({theme:t={}})=>{const{theme:e,selectedDate:r,minDate:n,maxDate:o,viewDate:i,setViewDate:s,setView:a}=ci(),l=H(e.views.years,t);return g.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=Rr(i,10)-1+d*1,h=new Date(i.getTime());h.setFullYear(f);const p=di(r,h),m=!Rn(h,n,o);return g.jsx("button",{disabled:m,type:"button",className:F(l.items.item.base,p&&l.items.item.selected,m&&l.items.item.disabled),onClick:()=>{m||(s(h),a(ve.Months))},children:f},d)})})},o2=({title:t,open:e,inline:r=!1,autoHide:n=!0,showClearButton:o=!0,labelClearButton:i="Clear",showTodayButton:s=!0,labelTodayButton:a="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:f=vf.Sunday,className:h,theme:p={},onSelectedDateChanged:m,...b},v)=>{const y=H(q().datepicker,p);l=Gk(l,c,d);const[_,x]=k.useState(e),[w,S]=k.useState(ve.Days),[T,M]=k.useState(l),[N,E]=k.useState(l),I=k.useRef(null),A=k.useRef(null),D=(j,$)=>{M(j),m&&m(j),n&&w===ve.Days&&$==!0&&!r&&x(!1)},O=()=>{D(l,!0),l&&E(l)};k.useImperativeHandle(v,()=>({focus(){var j;(j=I.current)==null||j.focus()},clear(){O()}}));const P=j=>{switch(j){case ve.Decades:return g.jsx(t2,{theme:y.views.decades});case ve.Years:return g.jsx(n2,{theme:y.views.years});case ve.Months:return g.jsx(r2,{theme:y.views.months});case ve.Days:default:return g.jsx(e2,{theme:y.views.days})}},L=()=>{switch(w){case ve.Days:return ve.Months;case ve.Months:return ve.Years;case ve.Years:return ve.Decades}return w},z=()=>{switch(w){case ve.Decades:return`${Rr(N,100)} - ${Rr(N,100)+90}`;case ve.Years:return`${Rr(N,10)} - ${Rr(N,10)+9}`;case ve.Months:return Yn(u,N,{year:"numeric"});case ve.Days:default:return Yn(u,N,{month:"long",year:"numeric"})}},B=(j,$,W)=>{switch(j){case ve.Days:return new Date(Jk($,W));case ve.Months:return new Date(Vr($,W));case ve.Years:return new Date(Vr($,W*10));case ve.Decades:return new Date(Vr($,W*100));default:return new Date(Vr($,W*10))}};return k.useEffect(()=>{const j=$=>{var Y,U;const W=(Y=A==null?void 0:A.current)==null?void 0:Y.contains($.target),V=(U=I==null?void 0:I.current)==null?void 0:U.contains($.target);!W&&!V&&x(!1)};return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[I,A,x]),g.jsx(yf.Provider,{value:{theme:y,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:_,setIsOpen:x,view:w,setView:S,viewDate:N,setViewDate:E,selectedDate:T,setSelectedDate:M,changeSelectedDate:D},children:g.jsxs("div",{className:F(y.root.base,h),children:[!r&&g.jsx(Qs,{theme:y.root.input,icon:f1,ref:I,onFocus:()=>{di(N,T)||E(T),x(!0)},value:T&&Yn(u,T),readOnly:!0,...b}),(_||r)&&g.jsx("div",{ref:A,className:F(y.popup.root.base,r&&y.popup.root.inline),children:g.jsxs("div",{className:y.popup.root.inner,children:[g.jsxs("div",{className:y.popup.header.base,children:[t&&g.jsx("div",{className:y.popup.header.title,children:t}),g.jsxs("div",{className:y.popup.header.selectors.base,children:[g.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.prev),onClick:()=>E(B(w,N,-1)),children:g.jsx(d1,{})}),g.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>S(L()),children:z()}),g.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.next),onClick:()=>E(B(w,N,1)),children:g.jsx(u1,{})})]})]}),g.jsx("div",{className:y.popup.view.base,children:P(w)}),(o||s)&&g.jsxs("div",{className:y.popup.footer.base,children:[s&&g.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.today),onClick:()=>{const j=new Date;D(j,!0),E(j)},children:a}),o&&g.jsx("button",{type:"button",className:F(y.popup.footer.button.base,y.popup.footer.button.clear),onClick:()=>{D(l,!0),l&&E(l)},children:i})]})]})})]})})},i2=k.forwardRef(o2);i2.displayName="Datepicker";function ui(){return typeof window<"u"}function wr(t){return xf(t)?(t.nodeName||"").toLowerCase():"#document"}function Qe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function St(t){var e;return(e=(xf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xf(t){return ui()?t instanceof Node||t instanceof Qe(t).Node:!1}function pe(t){return ui()?t instanceof Element||t instanceof Qe(t).Element:!1}function $e(t){return ui()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function ta(t){return!ui()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qe(t).ShadowRoot}function Un(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=ut(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}function s2(t){return["table","td","th"].includes(wr(t))}function fi(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function ra(t){const e=na(),r=pe(t)?ut(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function a2(t){let e=Ht(t);for(;$e(e)&&!er(e);){if(ra(e))return e;if(fi(e))return null;e=Ht(e)}return null}function na(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function er(t){return["html","body","#document"].includes(wr(t))}function ut(t){return Qe(t).getComputedStyle(t)}function hi(t){return pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ht(t){if(wr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ta(t)&&t.host||St(t);return ta(e)?e.host:e}function wf(t){const e=Ht(t);return er(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&Un(e)?e:wf(e)}function tr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=wf(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Qe(o);if(i){const a=oa(s);return e.concat(s,s.visualViewport||[],Un(o)?o:[],a&&r?tr(a):[])}return e.concat(o,tr(o,[],r))}function oa(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Et(t){let e=t.activeElement;for(;((r=e)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;e=e.shadowRoot.activeElement}return e}function Se(t,e){if(!t||!e)return!1;const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&ta(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function ia(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function kf(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:r,version:n}=e;return r+"/"+n}).join(" "):navigator.userAgent}function Cf(t){return t.mozInputSource===0&&t.isTrusted?!0:la()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function sa(t){return l2()?!1:!la()&&t.width===0&&t.height===0||la()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function aa(){return/apple/i.test(navigator.vendor)}function la(){const t=/android/i;return t.test(ia())||t.test(kf())}function _f(){return ia().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function l2(){return kf().includes("jsdom/")}function gi(t,e){const r=["mouse","pen"];return e||r.push("",void 0),r.includes(t)}function c2(t){return"nativeEvent"in t}function d2(t){return t.matches("html,body")}function Ue(t){return(t==null?void 0:t.ownerDocument)||document}function ca(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const r=t;return r.target!=null&&e.contains(r.target)}function rr(t){return"composedPath"in t?t.composedPath()[0]:t.target}const u2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function da(t){return $e(t)&&t.matches(u2)}function je(t){t.preventDefault(),t.stopPropagation()}function Sf(t){return t?t.getAttribute("role")==="combobox"&&da(t):!1}const f2=["top","right","bottom","left"],Ef=["start","end"],Of=f2.reduce((t,e)=>t.concat(e,e+"-"+Ef[0],e+"-"+Ef[1]),[]),Yr=Math.min,kr=Math.max,pi=Math.round,Ur=Math.floor,Ot=t=>({x:t,y:t}),h2={left:"right",right:"left",bottom:"top",top:"bottom"},g2={start:"end",end:"start"};function ua(t,e,r){return kr(t,Yr(e,r))}function Kr(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function Tt(t){return t.split("-")[1]}function Tf(t){return t==="x"?"y":"x"}function fa(t){return t==="y"?"height":"width"}function mi(t){return["top","bottom"].includes(Wt(t))?"y":"x"}function ha(t){return Tf(mi(t))}function Nf(t,e,r){r===void 0&&(r=!1);const n=Tt(t),o=ha(t),i=fa(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=yi(s)),[s,yi(s)]}function p2(t){const e=yi(t);return[bi(t),e,bi(e)]}function bi(t){return t.replace(/start|end/g,e=>g2[e])}function m2(t,e,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?o:n:e?n:o;case"left":case"right":return e?i:s;default:return[]}}function b2(t,e,r,n){const o=Tt(t);let i=m2(Wt(t),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(bi)))),i}function yi(t){return t.replace(/left|right|bottom|top/g,e=>h2[e])}function y2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Mf(t){return typeof t!="number"?y2(t):{top:t,right:t,bottom:t,left:t}}function vi(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function Pf(t,e,r){let{reference:n,floating:o}=t;const i=mi(e),s=ha(e),a=fa(s),l=Wt(e),c=i==="y",d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,f=n[a]/2-o[a]/2;let h;switch(l){case"top":h={x:d,y:n.y-o.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:u};break;case"left":h={x:n.x-o.width,y:u};break;default:h={x:n.x,y:n.y}}switch(Tt(e)){case"start":h[s]-=f*(r&&c?-1:1);break;case"end":h[s]+=f*(r&&c?-1:1);break}return h}const v2=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Pf(c,n,l),f=n,h={},p=0;for(let m=0;m<a.length;m++){const{name:b,fn:v}=a[m],{x:y,y:_,data:x,reset:w}=await v({x:d,y:u,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:t,floating:e}});d=y??d,u=_??u,h={...h,[b]:{...h[b],...x}},w&&p<=50&&(p++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):w.rects),{x:d,y:u}=Pf(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function ga(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=Kr(e,t),p=Mf(h),b=a[f?u==="floating"?"reference":"floating":u],v=vi(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),y=u==="floating"?{...s.floating,x:n,y:o}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},w=vi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-w.top+p.top)/x.y,bottom:(w.bottom-v.bottom+p.bottom)/x.y,left:(v.left-w.left+p.left)/x.x,right:(w.right-v.right+p.right)/x.x}}const x2=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:d=0}=Kr(t,e)||{};if(c==null)return{};const u=Mf(d),f={x:r,y:n},h=ha(o),p=fa(h),m=await s.getDimensions(c),b=h==="y",v=b?"top":"left",y=b?"bottom":"right",_=b?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[h]-f[h]-i.floating[p],w=f[h]-i.reference[h],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=S?S[_]:0;(!T||!await(s.isElement==null?void 0:s.isElement(S)))&&(T=a.floating[_]||i.floating[p]);const M=x/2-w/2,N=T/2-m[p]/2-1,E=Yr(u[v],N),I=Yr(u[y],N),A=E,D=T-m[p]-I,O=T/2-m[p]/2+M,P=ua(A,O,D),L=!l.arrow&&Tt(o)!=null&&O!==P&&i.reference[p]/2-(O<A?E:I)-m[p]/2<0,z=L?O<A?O-A:O-D:0;return{[h]:f[h]+z,data:{[h]:P,centerOffset:O-P-z,...L&&{alignmentOffset:z}},reset:L}}});function w2(t,e,r){return(t?[...r.filter(o=>Tt(o)===t),...r.filter(o=>Tt(o)!==t)]:r.filter(o=>Wt(o)===o)).filter(o=>t?Tt(o)===t||(e?bi(o)!==o:!1):!0)}const k2=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,o;const{rects:i,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:f=Of,autoAlignment:h=!0,...p}=Kr(t,e),m=u!==void 0||f===Of?w2(u||null,h,f):f,b=await ga(e,p),v=((r=s.autoPlacement)==null?void 0:r.index)||0,y=m[v];if(y==null)return{};const _=Nf(y,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==y)return{reset:{placement:m[0]}};const x=[b[Wt(y)],b[_[0]],b[_[1]]],w=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:y,overflows:x}],S=m[v+1];if(S)return{data:{index:v+1,overflows:w},reset:{placement:S}};const T=w.map(E=>{const I=Tt(E.placement);return[E.placement,I&&d?E.overflows.slice(0,2).reduce((A,D)=>A+D,0):E.overflows[0],E.overflows]}).sort((E,I)=>E[1]-I[1]),N=((o=T.filter(E=>E[2].slice(0,Tt(E[0])?2:3).every(I=>I<=0))[0])==null?void 0:o[0])||T[0][0];return N!==a?{data:{index:v+1,overflows:w},reset:{placement:N}}:{}}}},C2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...b}=Kr(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=Wt(o),y=Wt(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=f||(y||!m?[yi(a)]:p2(a));!f&&p!=="none"&&x.push(...b2(a,m,p,_));const w=[a,...x],S=await ga(e,b),T=[];let M=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&T.push(S[v]),u){const A=Nf(o,s,_);T.push(S[A[0]],S[A[1]])}if(M=[...M,{placement:o,overflows:T}],!T.every(A=>A<=0)){var N,E;const A=(((N=i.flip)==null?void 0:N.index)||0)+1,D=w[A];if(D)return{data:{index:A,overflows:M},reset:{placement:D}};let O=(E=M.filter(P=>P.overflows[0]<=0).sort((P,L)=>P.overflows[1]-L.overflows[1])[0])==null?void 0:E.placement;if(!O)switch(h){case"bestFit":{var I;const P=(I=M.map(L=>[L.placement,L.overflows.filter(z=>z>0).reduce((z,B)=>z+B,0)]).sort((L,z)=>L[1]-z[1])[0])==null?void 0:I[0];P&&(O=P);break}case"initialPlacement":O=a;break}if(o!==O)return{reset:{placement:O}}}return{}}}};async function _2(t,e){const{placement:r,platform:n,elements:o}=t,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Wt(r),a=Tt(r),l=mi(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=Kr(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const S2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=e,l=await _2(e,t);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},E2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:v,y}=b;return{x:v,y}}},...l}=Kr(t,e),c={x:r,y:n},d=await ga(e,l),u=mi(Wt(o)),f=Tf(u);let h=c[f],p=c[u];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+d[b],_=h-d[v];h=ua(y,h,_)}if(s){const b=u==="y"?"top":"left",v=u==="y"?"bottom":"right",y=p+d[b],_=p-d[v];p=ua(y,p,_)}const m=a.fn({...e,[f]:h,[u]:p});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function Af(t){const e=ut(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=$e(t),i=o?t.offsetWidth:r,s=o?t.offsetHeight:n,a=pi(r)!==i||pi(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function pa(t){return pe(t)?t:t.contextElement}function qr(t){const e=pa(t);if(!$e(e))return Ot(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=Af(e);let s=(i?pi(r.width):r.width)/n,a=(i?pi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const O2=Ot(0);function Df(t){const e=Qe(t);return!na()||!e.visualViewport?O2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function T2(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Qe(t)?!1:e}function Cr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=pa(t);let s=Ot(1);e&&(n?pe(n)&&(s=qr(n)):s=qr(t));const a=T2(i,r,n)?Df(i):Ot(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const f=Qe(i),h=n&&pe(n)?Qe(n):n;let p=f,m=oa(p);for(;m&&n&&h!==p;){const b=qr(m),v=m.getBoundingClientRect(),y=ut(m),_=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*b.x,x=v.top+(m.clientTop+parseFloat(y.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=_,c+=x,p=Qe(m),m=oa(p)}}return vi({width:d,height:u,x:l,y:c})}function ma(t,e){const r=hi(t).scrollLeft;return e?e.left+r:Cr(St(t)).left+r}function If(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:ma(t,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function N2(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const i=o==="fixed",s=St(n),a=e?fi(e.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Ot(1);const d=Ot(0),u=$e(n);if((u||!u&&!i)&&((wr(n)!=="body"||Un(s))&&(l=hi(n)),$e(n))){const h=Cr(n);c=qr(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?If(s,l,!0):Ot(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-l.scrollTop*c.y+d.y+f.y}}function M2(t){return Array.from(t.getClientRects())}function P2(t){const e=St(t),r=hi(t),n=t.ownerDocument.body,o=kr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=kr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ma(t);const a=-r.scrollTop;return ut(n).direction==="rtl"&&(s+=kr(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function A2(t,e){const r=Qe(t),n=St(t),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=na();(!c||c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function D2(t,e){const r=Cr(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=$e(t)?qr(t):Ot(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function Lf(t,e,r){let n;if(e==="viewport")n=A2(t,r);else if(e==="document")n=P2(St(t));else if(pe(e))n=D2(e,r);else{const o=Df(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return vi(n)}function Ff(t,e){const r=Ht(t);return r===e||!pe(r)||er(r)?!1:ut(r).position==="fixed"||Ff(r,e)}function I2(t,e){const r=e.get(t);if(r)return r;let n=tr(t,[],!1).filter(a=>pe(a)&&wr(a)!=="body"),o=null;const i=ut(t).position==="fixed";let s=i?Ht(t):t;for(;pe(s)&&!er(s);){const a=ut(s),l=ra(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Un(s)&&!l&&Ff(t,s))?n=n.filter(d=>d!==s):o=a,s=Ht(s)}return e.set(t,n),n}function L2(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const s=[...r==="clippingAncestors"?fi(e)?[]:I2(e,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=Lf(e,d,o);return c.top=kr(u.top,c.top),c.right=Yr(u.right,c.right),c.bottom=Yr(u.bottom,c.bottom),c.left=kr(u.left,c.left),c},Lf(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function F2(t){const{width:e,height:r}=Af(t);return{width:e,height:r}}function z2(t,e,r){const n=$e(e),o=St(e),i=r==="fixed",s=Cr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Ot(0);if(n||!n&&!i)if((wr(e)!=="body"||Un(o))&&(a=hi(e)),n){const f=Cr(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=ma(o));const c=o&&!n&&!i?If(o,a):Ot(0),d=s.left+a.scrollLeft-l.x-c.x,u=s.top+a.scrollTop-l.y-c.y;return{x:d,y:u,width:s.width,height:s.height}}function ba(t){return ut(t).position==="static"}function zf(t,e){if(!$e(t)||ut(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return St(t)===r&&(r=r.ownerDocument.body),r}function Bf(t,e){const r=Qe(t);if(fi(t))return r;if(!$e(t)){let o=Ht(t);for(;o&&!er(o);){if(pe(o)&&!ba(o))return o;o=Ht(o)}return r}let n=zf(t,e);for(;n&&s2(n)&&ba(n);)n=zf(n,e);return n&&er(n)&&ba(n)&&!ra(n)?r:n||a2(t)||r}const B2=async function(t){const e=this.getOffsetParent||Bf,r=this.getDimensions,n=await r(t.floating);return{reference:z2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function $2(t){return ut(t).direction==="rtl"}const j2={convertOffsetParentRelativeRectToViewportRelativeRect:N2,getDocumentElement:St,getClippingRect:L2,getOffsetParent:Bf,getElementRects:B2,getClientRects:M2,getDimensions:F2,getScale:qr,isElement:pe,isRTL:$2};function $f(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function H2(t,e){let r=null,n;const o=St(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=t.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(a||e(),!f||!h)return;const p=Ur(u),m=Ur(o.clientWidth-(d+f)),b=Ur(o.clientHeight-(u+h)),v=Ur(d),_={rootMargin:-p+"px "+-m+"px "+-b+"px "+-v+"px",threshold:kr(0,Yr(1,l))||1};let x=!0;function w(S){const T=S[0].intersectionRatio;if(T!==l){if(!x)return s();T?s(!1,T):n=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!$f(c,t.getBoundingClientRect())&&s(),x=!1}try{r=new IntersectionObserver(w,{..._,root:o.ownerDocument})}catch{r=new IntersectionObserver(w,_)}r.observe(t)}return s(!0),i}function jf(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=pa(t),d=o||i?[...c?tr(c):[],...tr(e)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const u=c&&a?H2(c,r):null;let f=-1,h=null;s&&(h=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(e)})),r()}),c&&!l&&h.observe(c),h.observe(e));let p,m=l?Cr(t):null;l&&b();function b(){const v=Cr(t);m&&!$f(m,v)&&r(),m=v,p=requestAnimationFrame(b)}return r(),()=>{var v;d.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),u==null||u(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const W2=S2,V2=k2,R2=E2,Y2=C2,Hf=x2,U2=(t,e,r)=>{const n=new Map,o={platform:j2,...r},i={...o.platform,_c:n};return v2(t,e,{...o,platform:i})};var xi=typeof document<"u"?k.useLayoutEffect:k.useEffect;function wi(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!wi(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&t.$$typeof)&&!wi(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Wf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vf(t,e){const r=Wf(t);return Math.round(e*r)/r}function ya(t){const e=C.useRef(t);return xi(()=>{e.current=t}),e}function K2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[d,u]=C.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=C.useState(n);wi(f,n)||h(n);const[p,m]=C.useState(null),[b,v]=C.useState(null),y=C.useCallback(B=>{B!==S.current&&(S.current=B,m(B))},[]),_=C.useCallback(B=>{B!==T.current&&(T.current=B,v(B))},[]),x=i||p,w=s||b,S=C.useRef(null),T=C.useRef(null),M=C.useRef(d),N=l!=null,E=ya(l),I=ya(o),A=ya(c),D=C.useCallback(()=>{if(!S.current||!T.current)return;const B={placement:e,strategy:r,middleware:f};I.current&&(B.platform=I.current),U2(S.current,T.current,B).then(j=>{const $={...j,isPositioned:A.current!==!1};O.current&&!wi(M.current,$)&&(M.current=$,Ug.flushSync(()=>{u($)}))})},[f,e,r,I,A]);xi(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(B=>({...B,isPositioned:!1})))},[c]);const O=C.useRef(!1);xi(()=>(O.current=!0,()=>{O.current=!1}),[]),xi(()=>{if(x&&(S.current=x),w&&(T.current=w),x&&w){if(E.current)return E.current(x,w,D);D()}},[x,w,D,E,N]);const P=C.useMemo(()=>({reference:S,floating:T,setReference:y,setFloating:_}),[y,_]),L=C.useMemo(()=>({reference:x,floating:w}),[x,w]),z=C.useMemo(()=>{const B={position:r,left:0,top:0};if(!L.floating)return B;const j=Vf(L.floating,d.x),$=Vf(L.floating,d.y);return a?{...B,transform:"translate("+j+"px, "+$+"px)",...Wf(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:j,top:$}},[r,a,L.floating,d.x,d.y]);return C.useMemo(()=>({...d,update:D,refs:P,elements:L,floatingStyles:z}),[d,D,P,L,z])}const q2=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Hf({element:n.current,padding:o}).fn(r):{}:n?Hf({element:n,padding:o}).fn(r):{}}}},G2=(t,e)=>({...W2(t),options:[t,e]}),X2=(t,e)=>({...R2(t),options:[t,e]}),Z2=(t,e)=>({...Y2(t),options:[t,e]}),J2=(t,e)=>({...V2(t),options:[t,e]}),Q2=(t,e)=>({...q2(t),options:[t,e]});/*!
496
496
  * tabbable 6.2.0
497
497
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
498
- */var e5=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ki=e5.join(","),Rf=typeof Element>"u",Gr=Rf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ci=!Rf&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},_i=function t(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=o===""||o==="true",s=i||r&&e&&t(e.parentNode);return s},t5=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},r5=function(e,r,n){if(_i(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(ki));return r&&Gr.call(e,ki)&&o.unshift(e),o=o.filter(n),o},n5=function t(e,r,n){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!_i(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=t(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var d=Gr.call(s,ki);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!_i(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&f){var h=t(u===!0?s.children:u.children,!0,n);n.flatten?o.push.apply(o,h):o.push({scopeParent:s,candidates:h})}else i.unshift.apply(i,s.children)}}return o},Yf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Uf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||t5(e))&&!Yf(e)?0:e.tabIndex},o5=function(e,r){var n=Uf(e);return n<0&&r&&!Yf(e)?0:n},i5=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Kf=function(e){return e.tagName==="INPUT"},s5=function(e){return Kf(e)&&e.type==="hidden"},a5=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},l5=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},c5=function(e){if(!e.name)return!0;var r=e.form||Ci(e),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(e.name));else try{o=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=l5(o,e.form);return!i||i===e},d5=function(e){return Kf(e)&&e.type==="radio"},u5=function(e){return d5(e)&&!c5(e)},f5=function(e){var r,n=e&&Ci(e),o=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==e){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&o;){var c,d,u;n=Ci(o),o=(c=n)===null||c===void 0?void 0:c.host,i=!!((d=o)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return i},qf=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},h5=function(e,r){var n=r.displayCheck,o=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=Gr.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(Gr.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var l=e.parentElement,c=Ci(e);if(l&&!l.shadowRoot&&o(l)===!0)return qf(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(f5(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return qf(e);return!1},g5=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return Gr.call(r,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}r=r.parentElement}return!1},p5=function(e,r){return!(r.disabled||_i(r)||s5(r)||h5(r,e)||a5(r)||g5(r))},va=function(e,r){return!(u5(r)||Uf(r)<0||!p5(e,r))},m5=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},b5=function t(e){var r=[],n=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=o5(a,s),c=s?t(o.candidates):a;l===0?s?r.push.apply(r,c):r.push(a):n.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),n.sort(i5).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},Si=function(e,r){r=r||{};var n;return r.getShadowRoot?n=n5([e],r.includeContainer,{filter:va.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:m5}):n=r5(e,r.includeContainer,va.bind(null,r)),b5(n)},y5=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Gr.call(e,ki)===!1?!1:va(r,e)};function Gf(t){return C.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})},t)}const v5=C.useInsertionEffect||(t=>t());function Nt(t){const e=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return v5(()=>{e.current=t}),C.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}const xa="ArrowUp",Kn="ArrowDown",Xr="ArrowLeft",Zr="ArrowRight";function Ei(t,e,r){return Math.floor(t/e)!==r}function qn(t,e){return e<0||e>=t.current.length}function wa(t,e){return Ye(t,{disabledIndices:e})}function Xf(t,e){return Ye(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function Ye(t,e){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=e===void 0?{}:e;const s=t.current,a=o?c=>o.includes(c):c=>{const d=s[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=r;do l+=n?-i:i;while(l>=0&&l<=s.length-1&&a(l));return l}function x5(t,e){let{event:r,orientation:n,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(r.key===xa){if(d&&je(r),c===-1)u=l;else if(u=Ye(t,{startingIndex:u,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<a||u<0)){const f=c%i,h=l%i,p=l-(h-f);h===f?u=l:u=h>f?p:p-i}qn(t,u)&&(u=c)}if(r.key===Kn&&(d&&je(r),c===-1?u=a:(u=Ye(t,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(u=Ye(t,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),qn(t,u)&&(u=c)),n==="both"){const f=Ur(c/i);r.key===Zr&&(d&&je(r),c%i!==i-1?(u=Ye(t,{startingIndex:c,disabledIndices:s}),o&&Ei(u,i,f)&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s})),Ei(u,i,f)&&(u=c)),r.key===Xr&&(d&&je(r),c%i!==0?(u=Ye(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Ei(u,i,f)&&(u=Ye(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),Ei(u,i,f)&&(u=c));const h=Ur(l/i)===f;qn(t,u)&&(o&&h?u=r.key===Xr?l:Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function w5(t,e,r){const n=[];let o=0;return t.forEach((i,s)=>{let{width:a,height:l}=i;if(a>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let c=!1;for(r&&(o=0);!c;){const d=[];for(let u=0;u<a;u++)for(let f=0;f<l;f++)d.push(o+u+f*e);o%e+a<=e&&d.every(u=>n[u]==null)?(d.forEach(u=>{n[u]=s}),c=!0):o++}}),[...n]}function k5(t,e,r,n,o){if(t===-1)return-1;const i=r.indexOf(t);switch(o){case"tl":return i;case"tr":return i+e[t].width-1;case"bl":return i+(e[t].height-1)*n;case"br":return r.lastIndexOf(t)}}function C5(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}let Zf=0;function Vt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Zf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Zf=requestAnimationFrame(i)}var me=typeof document<"u"?k.useLayoutEffect:k.useEffect;function _5(t,e){const r=t.compareDocumentPosition(e);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function S5(t,e){if(t.size!==e.size)return!1;for(const[r,n]of t.entries())if(n!==e.get(r))return!1;return!0}const Jf=C.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function E5(t){let{children:e,elementsRef:r,labelsRef:n}=t;const[o,i]=C.useState(()=>new Map),s=C.useCallback(l=>{i(c=>new Map(c).set(l,null))},[]),a=C.useCallback(l=>{i(c=>{const d=new Map(c);return d.delete(l),d})},[]);return me(()=>{const l=new Map(o);Array.from(l.keys()).sort(_5).forEach((d,u)=>{l.set(d,u)}),S5(o,l)||i(l)},[o]),C.createElement(Jf.Provider,{value:C.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},e)}function O5(t){let{label:e}=t===void 0?{}:t;const[r,n]=C.useState(null),o=C.useRef(null),{register:i,unregister:s,map:a,elementsRef:l,labelsRef:c}=C.useContext(Jf),d=C.useCallback(u=>{if(o.current=u,r!==null&&(l.current[r]=u,c)){var f;const h=e!==void 0;c.current[r]=h?e:(f=u==null?void 0:u.textContent)!=null?f:null}},[r,l,c,e]);return me(()=>{const u=o.current;if(u)return i(u),()=>{s(u)}},[i,s]),me(()=>{const u=o.current?a.get(o.current):null;u!=null&&n(u)},[a]),C.useMemo(()=>({ref:d,index:r??-1}),[r,d])}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gn.apply(this,arguments)}let ka=!1,T5=0;const Qf=()=>"floating-ui-"+T5++;function N5(){const[t,e]=C.useState(()=>ka?Qf():void 0);return me(()=>{t==null&&e(Qf())},[]),C.useEffect(()=>{ka||(ka=!0)},[]),t}const Oi=C.useId||N5;function M5(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(o=>o(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){var n;t.set(e,((n=t.get(e))==null?void 0:n.filter(o=>o!==r))||[])}}}const P5=C.createContext(null),A5=C.createContext(null),Ti=()=>{var t;return((t=C.useContext(P5))==null?void 0:t.id)||null},Xn=()=>C.useContext(A5);function _r(t){return"data-floating-ui-"+t}function Mt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const eh=_r("safe-polygon");function Ca(t,e,r){return r&&!gi(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function D5(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:{domReference:s,floating:a},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:p=!0}=e,m=Xn(),b=Ti(),v=Mt(u),y=Mt(d),_=C.useRef(),x=C.useRef(),w=C.useRef(),S=C.useRef(),T=C.useRef(!0),M=C.useRef(!1),N=C.useRef(()=>{}),E=C.useCallback(()=>{var O;const P=(O=o.current.openEvent)==null?void 0:O.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[o]);C.useEffect(()=>{if(!c)return;function O(P){let{open:L}=P;L||(clearTimeout(x.current),clearTimeout(S.current),T.current=!0)}return i.on("openchange",O),()=>{i.off("openchange",O)}},[c,i]),C.useEffect(()=>{if(!c||!v.current||!r)return;function O(L){E()&&n(!1,L,"hover")}const P=Ue(a).documentElement;return P.addEventListener("mouseleave",O),()=>{P.removeEventListener("mouseleave",O)}},[a,r,n,c,v,E]);const I=C.useCallback(function(O,P,L){P===void 0&&(P=!0),L===void 0&&(L="hover");const z=Ca(y.current,"close",_.current);z&&!w.current?(clearTimeout(x.current),x.current=setTimeout(()=>n(!1,O,L),z)):P&&(clearTimeout(x.current),n(!1,O,L))},[y,n]),A=C.useCallback(()=>{N.current(),w.current=void 0},[]),D=C.useCallback(()=>{if(M.current){const O=Ue(l.floating.current).body;O.style.pointerEvents="",O.removeAttribute(eh),M.current=!1}},[l]);return C.useEffect(()=>{if(!c)return;function O(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function P(B){if(clearTimeout(x.current),T.current=!1,f&&!gi(_.current)||h>0&&Ca(y.current,"open")===0)return;const j=Ca(y.current,"open",_.current);j?x.current=setTimeout(()=>{n(!0,B,"hover")},j):n(!0,B,"hover")}function L(B){if(O())return;N.current();const j=Ue(a);if(clearTimeout(S.current),v.current){r||clearTimeout(x.current),w.current=v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B,!0,"safe-polygon")}});const W=w.current;j.addEventListener("mousemove",W),N.current=()=>{j.removeEventListener("mousemove",W)};return}(_.current==="touch"?!Se(a,B.relatedTarget):!0)&&I(B)}function z(B){O()||v.current==null||v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B)}})(B)}if(pe(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),p&&B.addEventListener("mousemove",P,{once:!0}),B.addEventListener("mouseenter",P),B.addEventListener("mouseleave",L),()=>{r&&B.removeEventListener("mouseleave",z),a==null||a.removeEventListener("mouseleave",z),p&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,p,I,A,D,n,r,m,y,v,o]),me(()=>{var O;if(c&&r&&(O=v.current)!=null&&O.__options.blockPointerEvents&&E()){const L=Ue(a).body;if(L.setAttribute(eh,""),L.style.pointerEvents="none",M.current=!0,pe(s)&&a){var P;const z=s,B=m==null||(P=m.nodesRef.current.find(j=>j.id===b))==null||(P=P.context)==null?void 0:P.elements.floating;return B&&(B.style.pointerEvents=""),z.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{z.style.pointerEvents="",a.style.pointerEvents=""}}}},[c,r,b,a,s,m,v,E]),me(()=>{r||(_.current=void 0,A(),D())},[r,A,D]),C.useEffect(()=>()=>{A(),clearTimeout(x.current),clearTimeout(S.current),D()},[c,s,A,D]),C.useMemo(()=>{if(!c)return{};function O(P){_.current=P.pointerType}return{reference:{onPointerDown:O,onPointerEnter:O,onMouseMove(P){r||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{T.current||n(!0,P.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(P){I(P.nativeEvent,!1)}}}},[c,h,r,n,I])}function I5(t,e){var r;let n=[],o=(r=t.find(i=>i.id===e))==null?void 0:r.parentId;for(;o;){const i=t.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Sr(t,e){let r=t.filter(o=>{var i;return o.parentId===e&&((i=o.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=t.filter(o=>{var i;return(i=n)==null?void 0:i.some(s=>{var a;return o.parentId===s.id&&((a=o.context)==null?void 0:a.open)})}),r=r.concat(n);return r}function L5(t,e){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),Sr(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Jr=new WeakMap,Ni=new WeakSet,Mi={},_a=0;const F5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,th=t=>t&&(t.host||th(t.parentNode)),z5=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=th(r);return t.contains(n)?n:null}).filter(r=>r!=null);function B5(t,e,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=z5(e,t),a=new Set,l=new Set(s),c=[];Mi[o]||(Mi[o]=new WeakMap);const d=Mi[o];s.forEach(u),f(e),a.clear();function u(h){!h||a.has(h)||(a.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,p=>{if(a.has(p))f(p);else{const m=i?p.getAttribute(i):null,b=m!==null&&m!=="false",v=(Jr.get(p)||0)+1,y=(d.get(p)||0)+1;Jr.set(p,v),d.set(p,y),c.push(p),v===1&&b&&Ni.add(p),y===1&&p.setAttribute(o,""),!b&&i&&p.setAttribute(i,"true")}})}return _a++,()=>{c.forEach(h=>{const p=(Jr.get(h)||0)-1,m=(d.get(h)||0)-1;Jr.set(h,p),d.set(h,m),p||(!Ni.has(h)&&i&&h.removeAttribute(i),Ni.delete(h)),m||h.removeAttribute(o)}),_a--,_a||(Jr=new WeakMap,Jr=new WeakMap,Ni=new WeakSet,Mi={})}}function rh(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=Ue(t[0]).body;return B5(t.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,e,r)}const Zn=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nh(t,e){const r=Si(t,Zn());e==="prev"&&r.reverse();const n=r.indexOf(Et(Ue(t)));return r.slice(n+1)[0]}function oh(){return nh(document.body,"next")}function ih(){return nh(document.body,"prev")}function Jn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Se(r,n)}function $5(t){Si(t,Zn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function j5(t){t.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const Sa={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let H5;function sh(t){t.key==="Tab"&&(t.target,clearTimeout(H5))}const Pi=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(aa()&&o("button"),document.addEventListener("keydown",sh),()=>{document.removeEventListener("keydown",sh)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[_r("focus-guard")]:"",style:Sa};return C.createElement("span",Gn({},e,i))}),ah=C.createContext(null),lh=_r("portal");function W5(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Oi(),s=ch(),a=C.useRef(null);return me(()=>()=>{n==null||n.remove(),queueMicrotask(()=>{a.current=null})},[n]),me(()=>{if(a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=i,c.setAttribute(lh,""),l.appendChild(c),a.current=c,o(c)},[e,i]),me(()=>{if(a.current)return;let l=r||(s==null?void 0:s.portalNode);l&&!pe(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=i,d.setAttribute(lh,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[e,r,i,s]),n}function V5(t){let{children:e,id:r,root:n=null,preserveTabOrder:o=!0}=t;const i=W5({id:r,root:n}),[s,a]=C.useState(null),l=C.useRef(null),c=C.useRef(null),d=C.useRef(null),u=C.useRef(null),f=!!s&&!s.modal&&s.open&&o&&!!(n||i);return C.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function h(p){i&&Jn(p)&&(p.type==="focusin"?j5:$5)(i)}return i.addEventListener("focusin",h,!0),i.addEventListener("focusout",h,!0),()=>{i.removeEventListener("focusin",h,!0),i.removeEventListener("focusout",h,!0)}},[i,o,s==null?void 0:s.modal]),C.createElement(ah.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&C.createElement(Pi,{"data-type":"outside",ref:l,onFocus:h=>{if(Jn(h,i)){var p;(p=d.current)==null||p.focus()}else{const m=ih()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:Sa}),i&&Wa.createPortal(e,i),f&&i&&C.createElement(Pi,{"data-type":"outside",ref:c,onFocus:h=>{if(Jn(h,i)){var p;(p=u.current)==null||p.focus()}else{const m=oh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const ch=()=>C.useContext(ah),R5=20;let Er=[];function Ea(t){Er=Er.filter(r=>r.isConnected);let e=t;if(!(!e||wr(e)==="body")){if(!y5(e,Zn())){const r=Si(e,Zn())[0];if(!r)return;e=r}Er.push(e),Er.length>R5&&(Er=Er.slice(-20))}}function dh(){return Er.slice().reverse().find(t=>t.isConnected)}const Y5=C.forwardRef(function(e,r){return C.createElement("button",Gn({},e,{type:"button",ref:r,tabIndex:-1,style:Sa}))});function uh(t){const{context:e,children:r,disabled:n=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:f,nodeId:h,onOpenChange:p,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Sf(v)&&_,w=F5()?i:!0,S=Mt(o),T=Mt(s),M=Mt(a),N=Xn(),E=ch(),I=C.useRef(null),A=C.useRef(null),D=C.useRef(!1),O=C.useRef(!1),P=E!=null,L=C.useCallback(function($){return $===void 0&&($=y),$?Si($,Zn()):[]},[y]),z=C.useCallback($=>{const W=L($);return S.current.map(V=>v&&V==="reference"?v:y&&V==="floating"?y:W).filter(Boolean).flat()},[v,y,S,L]);C.useEffect(()=>{if(n||!l)return;function $(V){if(V.key==="Tab"){Se(y,Et(Ue(y)))&&L().length===0&&!x&&je(V);const Y=z(),U=rr(V);S.current[0]==="reference"&&U===v&&(je(V),V.shiftKey?Vt(Y[Y.length-1]):Vt(Y[1])),S.current[1]==="floating"&&U===y&&V.shiftKey&&(je(V),Vt(Y[0]))}}const W=Ue(y);return W.addEventListener("keydown",$),()=>{W.removeEventListener("keydown",$)}},[n,v,y,l,S,x,L,z]),C.useEffect(()=>{if(n||!d)return;function $(){O.current=!0,setTimeout(()=>{O.current=!1})}function W(V){const Y=V.relatedTarget;queueMicrotask(()=>{const U=!(Se(v,Y)||Se(y,Y)||Se(Y,y)||Se(E==null?void 0:E.portalNode,Y)||Y!=null&&Y.hasAttribute(_r("focus-guard"))||N&&(Sr(N.nodesRef.current,h).find(K=>{var G,de;return Se((G=K.context)==null?void 0:G.elements.floating,Y)||Se((de=K.context)==null?void 0:de.elements.domReference,Y)})||I5(N.nodesRef.current,h).find(K=>{var G,de;return((G=K.context)==null?void 0:G.elements.floating)===Y||((de=K.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==dh()&&(D.current=!0,p(!1,V))})}if(y&&$e(v))return v.addEventListener("focusout",W),v.addEventListener("pointerdown",$),!l&&y.addEventListener("focusout",W),()=>{v.removeEventListener("focusout",W),v.removeEventListener("pointerdown",$),!l&&y.removeEventListener("focusout",W)}},[n,v,y,l,h,N,E,p,d]),C.useEffect(()=>{var $;if(n)return;const W=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+_r("portal")+"]"))||[]);if(y){const V=[y,...W,I.current,A.current,S.current.includes("reference")||x?v:null].filter(U=>U!=null),Y=l||x?rh(V,w,!w):rh(V);return()=>{Y()}}},[n,v,y,l,S,E,x,w]),me(()=>{if(n||!y)return;const $=Ue(y),W=Et($);queueMicrotask(()=>{const V=z(y),Y=T.current,U=(typeof Y=="number"?V[Y]:Y.current)||y,K=Se(y,W);!_&&!K&&u&&Vt(U,{preventScroll:U===y})})},[n,u,y,_,z,T]),me(()=>{if(n||!y)return;let $=!1;const W=Ue(y),V=Et(W),Y=b.current;Ea(V);function U(K){let{reason:G,event:de,nested:X}=K;G==="escape-key"&&f.domReference.current&&Ea(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,$=!0):D.current=!(Cf(de)||sa(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const K=Et(W),G=Se(y,K)||N&&Sr(N.nodesRef.current,h).some(oe=>{var Ie;return Se((Ie=oe.context)==null?void 0:Ie.elements.floating,K)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Ea(f.domReference.current);const X=dh();M.current&&!D.current&&$e(X)&&(!(X!==K&&K!==W.body)||G)&&Vt(X,{cancelPrevious:!1,preventScroll:$})}},[n,y,M,b,f,m,N,h]),me(()=>{if(!(n||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:p,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,p,f,d]),me(()=>{if(n||!y||typeof MutationObserver!="function"||_)return;const $=()=>{const V=y.getAttribute("tabindex");S.current.includes("floating")||Et(Ue(y))!==f.domReference.current&&L().length===0?V!=="0"&&y.setAttribute("tabindex","0"):V!=="-1"&&y.setAttribute("tabindex","-1")};$();const W=new MutationObserver($);return W.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{W.disconnect()}},[n,y,f,S,L,_]);function B($){return n||!c||!l?null:C.createElement(Y5,{ref:$==="start"?I:A,onClick:W=>p(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(P||l);return C.createElement(C.Fragment,null,j&&C.createElement(Pi,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:$=>{if(l){const V=z();Vt(o[0]==="reference"?V[0]:V[V.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(D.current=!1,Jn($,E.portalNode)){const V=oh()||v;V==null||V.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Pi,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:$=>{if(l)Vt(z()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(D.current=!0),Jn($,E.portalNode)){const V=ih()||v;V==null||V.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const Oa=new Set,U5=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Oi();return me(()=>{if(!n)return;Oa.add(i);const s=/iP(hone|ad|od)|iOS/.test(ia()),a=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=a.left?parseFloat(a.left):window.pageXOffset,f=a.top?parseFloat(a.top):window.pageYOffset;if(a.overflow="hidden",d&&(a[c]=d+"px"),s){var h,p;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{Oa.delete(i),Oa.size===0&&(Object.assign(a,{overflow:"",[c]:""}),s&&(Object.assign(a,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[i,n]),C.createElement("div",Gn({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function fh(t){return $e(t.target)&&t.target.tagName==="BUTTON"}function hh(t){return da(t)}function gh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=t,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=C.useRef(),f=C.useRef(!1);return C.useMemo(()=>s?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(gi(u.current,!0)&&c||a!=="click"&&(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?n(!1,h.nativeEvent,"click"):(h.preventDefault(),n(!0,h.nativeEvent,"click"))))},onClick(h){if(a==="mousedown"&&u.current){u.current=void 0;return}gi(u.current,!0)&&c||(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?n(!1,h.nativeEvent,"click"):n(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||fh(h))&&(h.key===" "&&!hh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||fh(h)||hh(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const K5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},q5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ph=t=>{var e,r;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(r=t==null?void 0:t.outsidePress)!=null?r:!0}};function mh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,nodeId:o,elements:{reference:i,domReference:s,floating:a},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:v}=e,y=Xn(),_=Nt(typeof u=="function"?u:()=>!1),x=typeof u=="function"?_:u,w=C.useRef(!1),S=C.useRef(!1),{escapeKey:T,outsidePress:M}=ph(b),{escapeKey:N,outsidePress:E}=ph(v),I=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?Sr(y.nodesRef.current,o):[];if(!T&&(P.stopPropagation(),L.length>0)){let z=!0;if(L.forEach(B=>{var j;if((j=B.context)!=null&&j.open&&!B.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}n(!1,c2(P)?P.nativeEvent:P,"escape-key")}),A=Nt(P=>{var L;const z=()=>{var B;I(P),(B=rr(P))==null||B.removeEventListener("keydown",z)};(L=rr(P))==null||L.addEventListener("keydown",z)}),D=Nt(P=>{const L=w.current;w.current=!1;const z=S.current;if(S.current=!1,f==="click"&&z||L||typeof x=="function"&&!x(P))return;const B=rr(P),j="["+_r("inert")+"]",$=Ue(a).querySelectorAll(j);let W=pe(B)?B:null;for(;W&&!er(W);){const U=Ht(W);if(er(U)||!pe(U))break;W=U}if($.length&&pe(B)&&!d2(B)&&!Se(B,a)&&Array.from($).every(U=>!Se(W,U)))return;if($e(B)&&a){const U=B.clientWidth>0&&B.scrollWidth>B.clientWidth,K=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=K&&P.offsetX>B.clientWidth;if(K&&ut(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const V=y&&Sr(y.nodesRef.current,o).some(U=>{var K;return ca(P,(K=U.context)==null?void 0:K.elements.floating)});if(ca(P,a)||ca(P,s)||V)return;const Y=y?Sr(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(K=>{var G;if((G=K.context)!=null&&G.open&&!K.context.dataRef.current.__outsidePressBubbles){U=!1;return}}),!U)return}n(!1,P,"outside-press")}),O=Nt(P=>{var L;const z=()=>{var B;D(P),(B=rr(P))==null||B.removeEventListener(f,z)};(L=rr(P))==null||L.addEventListener(f,z)});return C.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=M;function P(B){n(!1,B,"ancestor-scroll")}const L=Ue(a);d&&L.addEventListener("keydown",N?A:I,N),x&&L.addEventListener(f,E?O:D,E);let z=[];return m&&(pe(s)&&(z=tr(s)),pe(a)&&(z=z.concat(tr(a))),!pe(i)&&i&&i.contextElement&&(z=z.concat(tr(i.contextElement)))),z=z.filter(B=>{var j;return B!==((j=L.defaultView)==null?void 0:j.visualViewport)}),z.forEach(B=>{B.addEventListener("scroll",P,{passive:!0})}),()=>{d&&L.removeEventListener("keydown",N?A:I,N),x&&L.removeEventListener(f,E?O:D,E),z.forEach(B=>{B.removeEventListener("scroll",P)})}},[l,a,s,i,d,x,f,r,n,m,c,T,M,I,N,A,D,E,O]),C.useEffect(()=>{w.current=!1},[x,f]),C.useMemo(()=>c?{reference:{onKeyDown:I,[K5[p]]:P=>{h&&n(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:I,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[q5[f]]:()=>{w.current=!0}}}:{},[c,h,f,p,n,I])}let Ta;process.env.NODE_ENV!=="production"&&(Ta=new Set);function bh(t){var e;t===void 0&&(t={});const{open:r=!1,onOpenChange:n,nodeId:o}=t;if(process.env.NODE_ENV!=="production"){var i;const M="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((i=t.elements)!=null&&i.reference&&!pe(t.elements.reference)){var s;if(!((s=Ta)!=null&&s.has(M))){var a;(a=Ta)==null||a.add(M),console.error(M)}}}const[l,c]=C.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=K2(t),f=Xn(),h=Ti()!=null,p=Nt((M,N,E)=>{M&&(b.current.openEvent=N),v.emit("openchange",{open:M,event:N,reason:E,nested:h}),n==null||n(M,N,E)}),m=C.useRef(null),b=C.useRef({}),v=C.useState(()=>M5())[0],y=Oi(),_=C.useCallback(M=>{const N=pe(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(N)},[u.refs]),x=C.useCallback(M=>{(pe(M)||M===null)&&(m.current=M,c(M)),(pe(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!pe(M))&&u.refs.setReference(M)},[u.refs]),w=C.useMemo(()=>({...u.refs,setReference:x,setPositionReference:_,domReference:m}),[u.refs,x,_]),S=C.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),T=C.useMemo(()=>({...u,refs:w,elements:S,dataRef:b,nodeId:o,floatingId:y,events:v,open:r,onOpenChange:p}),[u,o,y,v,r,p,w,S]);return me(()=>{const M=f==null?void 0:f.nodesRef.current.find(N=>N.id===o);M&&(M.context=T)}),C.useMemo(()=>({...u,context:T,refs:w,elements:S}),[u,w,S,T])}function G5(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,events:o,refs:i,elements:{domReference:s}}=t,{enabled:a=!0,visibleOnly:l=!0}=e,c=C.useRef(!1),d=C.useRef(),u=C.useRef(!0);return C.useEffect(()=>{if(!a)return;const f=Qe(s);function h(){!r&&$e(s)&&s===Et(Ue(s))&&(c.current=!0)}function p(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",p,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",p,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:p}=h;(p==="reference-press"||p==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,a]),C.useEffect(()=>()=>{clearTimeout(d.current)},[]),C.useMemo(()=>a?{reference:{onPointerDown(f){sa(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=rr(f.nativeEvent);if(l&&pe(h))try{if(aa()&&_f())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!da(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,p=pe(h)&&h.hasAttribute(_r("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const m=Et(s?s.ownerDocument:document);!h&&m===s||Se(i.floating.current,m)||Se(s,m)||p||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const yh="active",vh="selected";function Na(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[yh]:s,[vh]:a,...l}=t;i=l}return{...r==="floating"&&{tabIndex:-1},...i,...e.map(s=>{const a=s?s[r]:null;return typeof a=="function"?t?a(t):null:a}).concat(t).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(o&&[yh,vh].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var u;(u=n.get(c))==null||u.push(d),s[c]=function(){for(var f,h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...p)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function xh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Na(i,t,"reference"),e),n=C.useCallback(i=>Na(i,t,"floating"),e),o=C.useCallback(i=>Na(i,t,"item"),t.map(i=>i==null?void 0:i.item));return C.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let wh=!1;function Ai(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function kh(t,e){return Ai(e,t===xa||t===Kn,t===Xr||t===Zr)}function Ma(t,e,r){return Ai(e,t===Kn,r?t===Xr:t===Zr)||t==="Enter"||t===" "||t===""}function X5(t,e,r){return Ai(e,r?t===Xr:t===Zr,t===Kn)}function Ch(t,e,r){return Ai(e,r?t===Zr:t===Xr,t===xa)}function Z5(t,e){const{open:r,onOpenChange:n,refs:o,elements:{domReference:i,floating:s}}=t,{listRef:a,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:p=!1,rtl:m=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:_=!0,disabledIndices:x=void 0,orientation:w="vertical",cols:S=1,scrollItemIntoView:T=!0,virtualItemRef:M,itemSizes:N,dense:E=!1}=e;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const I=Ti(),A=Xn(),D=Nt(c),O=C.useRef(v),P=C.useRef(u??-1),L=C.useRef(null),z=C.useRef(!0),B=C.useRef(D),j=C.useRef(!!s),$=C.useRef(!1),W=C.useRef(!1),V=Mt(x),Y=Mt(r),U=Mt(T),[K,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(J,Ee,le){le===void 0&&(le=!1);const re=J.current[Ee.current];re&&(b?(G(re.id),A==null||A.events.emit("virtualfocus",re),M&&(M.current=re)):Vt(re,{preventScroll:!0,sync:_f()&&aa()?wh||$.current:!1}),requestAnimationFrame(()=>{const he=U.current;he&&re&&(le||!z.current)&&(re.scrollIntoView==null||re.scrollIntoView(typeof he=="boolean"?{block:"nearest",inline:"nearest"}:he))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return wh=!0,!1}})},[]),me(()=>{d&&(r&&s?O.current&&u!=null&&(W.current=!0,P.current=u,D(u)):j.current&&(P.current=-1,B.current(null)))},[d,r,s,u,D]),me(()=>{if(d&&r&&s)if(l==null){if($.current=!1,u!=null)return;if(j.current&&(P.current=-1,oe(a,P)),!j.current&&O.current&&(L.current!=null||O.current===!0&&L.current==null)){let J=0;const Ee=()=>{a.current[0]==null?(J<2&&(J?requestAnimationFrame:queueMicrotask)(Ee),J++):(P.current=L.current==null||Ma(L.current,w,m)||p?wa(a,V.current):Xf(a,V.current),L.current=null,D(P.current))};Ee()}}else qn(a,l)||(P.current=l,oe(a,P,W.current),W.current=!1)},[d,r,s,l,u,p,a,w,m,D,oe,V]),me(()=>{var J;if(!d||s||!A||b||!j.current)return;const Ee=A.nodesRef.current,le=(J=Ee.find(Q=>Q.id===I))==null||(J=J.context)==null?void 0:J.elements.floating,re=Et(Ue(s)),he=Ee.some(Q=>Q.context&&Se(Q.context.elements.floating,re));le&&!he&&z.current&&le.focus({preventScroll:!0})},[d,s,A,I,b]),me(()=>{if(!d||!A||!b||I)return;function J(Ee){X(Ee.id),M&&(M.current=Ee)}return A.events.on("virtualfocus",J),()=>{A.events.off("virtualfocus",J)}},[d,A,b,I,M]),me(()=>{B.current=D,j.current=!!s}),me(()=>{r||(L.current=null)},[r]);const Ie=l!=null,He=C.useMemo(()=>{function J(le){if(!r)return;const re=a.current.indexOf(le);re!==-1&&D(re)}return{onFocus(le){let{currentTarget:re}=le;J(re)},onClick:le=>{let{currentTarget:re}=le;return re.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:re}=le;J(re)},onPointerLeave(le){let{pointerType:re}=le;!z.current||re==="touch"||(P.current=-1,oe(a,P),D(null),b||Vt(o.floating.current,{preventScroll:!0}))}}}},[r,o,oe,y,a,D,b]);return C.useMemo(()=>{if(!d)return{};const J=V.current;function Ee(R){if(z.current=!1,$.current=!0,!Y.current&&R.currentTarget===o.floating.current)return;if(p&&Ch(R.key,w,m)){je(R),n(!1,R.nativeEvent,"list-navigation"),$e(i)&&!b&&i.focus();return}const Oe=P.current,ie=wa(a,J),ke=Xf(a,J);if(R.key==="Home"&&(je(R),P.current=ie,D(P.current)),R.key==="End"&&(je(R),P.current=ke,D(P.current)),S>1){const Le=N||Array.from({length:a.current.length},()=>({width:1,height:1})),Pe=w5(Le,S,E),ft=Pe.findIndex(ot=>ot!=null&&!(J!=null&&J.includes(ot))),yt=Pe.reduce((ot,or,it)=>or!=null&&!(J!=null&&J.includes(or))?it:ot,-1);if(P.current=Pe[x5({current:Pe.map(ot=>ot!=null?a.current[ot]:null)},{event:R,orientation:w,loop:h,cols:S,disabledIndices:C5([...J||[],void 0],Pe),minIndex:ft,maxIndex:yt,prevIndex:k5(P.current,Le,Pe,S,R.key===Kn?"bl":R.key===Zr?"tr":"tl"),stopEvent:!0})],D(P.current),w==="both")return}if(kh(R.key,w)){if(je(R),r&&!b&&Et(R.currentTarget.ownerDocument)===R.currentTarget){P.current=Ma(R.key,w,m)?ie:ke,D(P.current);return}Ma(R.key,w,m)?h?P.current=Oe>=ke?f&&Oe!==a.current.length?-1:ie:Ye(a,{startingIndex:Oe,disabledIndices:J}):P.current=Math.min(ke,Ye(a,{startingIndex:Oe,disabledIndices:J})):h?P.current=Oe<=ie?f&&Oe!==-1?a.current.length:ke:Ye(a,{startingIndex:Oe,decrement:!0,disabledIndices:J}):P.current=Math.max(ie,Ye(a,{startingIndex:Oe,decrement:!0,disabledIndices:J})),qn(a,P.current)?D(null):D(P.current)}}function le(R){v==="auto"&&Cf(R.nativeEvent)&&(O.current=!0)}function re(R){O.current=v,v==="auto"&&sa(R.nativeEvent)&&(O.current=!0)}const he=b&&r&&Ie&&{"aria-activedescendant":de||K},Q=a.current.find(R=>(R==null?void 0:R.id)===K);return{reference:{...he,onKeyDown(R){z.current=!1;const Oe=R.key.indexOf("Arrow")===0,ie=X5(R.key,w,m),ke=Ch(R.key,w,m),Le=kh(R.key,w),Pe=(p?ie:Le)||R.key==="Enter"||R.key.trim()==="";if(b&&r){const or=A==null?void 0:A.nodesRef.current.find(Li=>Li.parentId==null),it=A&&or?L5(A.nodesRef.current,or.id):null;if(Oe&&it&&M){const Li=new KeyboardEvent("keydown",{key:R.key,bubbles:!0});if(ie||ke){var ft,yt;const DC=((ft=it.context)==null?void 0:ft.elements.domReference)===R.currentTarget,Yg=ke&&!DC?(yt=it.context)==null?void 0:yt.elements.domReference:ie?Q:null;Yg&&(je(R),Yg.dispatchEvent(Li),X(void 0))}if(Le&&it.context&&it.context.open&&it.parentId&&R.currentTarget!==it.context.elements.domReference){var ot;je(R),(ot=it.context.elements.domReference)==null||ot.dispatchEvent(Li);return}}return Ee(R)}if(!(!r&&!_&&Oe)){if(Pe&&(L.current=p&&Le?null:R.key),p){ie&&(je(R),r?(P.current=wa(a,J),D(P.current)):n(!0,R.nativeEvent,"list-navigation"));return}Le&&(u!=null&&(P.current=u),je(R),!r&&_?n(!0,R.nativeEvent,"list-navigation"):Ee(R),r&&D(P.current))}},onFocus(){r&&D(null)},onPointerDown:re,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Sf(i)&&he,onKeyDown:Ee,onPointerMove(){z.current=!0}},item:He}},[i,o,K,de,V,Y,a,d,w,m,b,r,Ie,p,u,_,f,S,h,v,D,n,He,A,M,N,E])}const J5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function _h(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(r=J5.get(s))!=null?r:s,l=Oi(),d=Ti()!=null;return C.useMemo(()=>{if(!i)return{};const u={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?{reference:{["aria-"+(s==="label"?"labelledby":"describedby")]:n?o:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&d&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...a==="menu"&&{"aria-labelledby":l}},item(f){let{active:h,selected:p}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&p};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function Q5(t,e){var r;const{open:n,dataRef:o}=t,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=e,p=C.useRef(),m=C.useRef(""),b=C.useRef((r=h??s)!=null?r:-1),v=C.useRef(null),y=Nt(a),_=Nt(l),x=Mt(d),w=Mt(f);return me(()=>{n&&(clearTimeout(p.current),v.current=null,m.current="")},[n]),me(()=>{if(n&&m.current===""){var S;b.current=(S=h??s)!=null?S:-1}},[n,h,s]),C.useMemo(()=>{if(!c)return{};function S(N){N?o.current.typing||(o.current.typing=N,_(N)):o.current.typing&&(o.current.typing=N,_(N))}function T(N,E,I){const A=x.current?x.current(E,I):E.find(D=>(D==null?void 0:D.toLocaleLowerCase().indexOf(I.toLocaleLowerCase()))===0);return A?N.indexOf(A):-1}function M(N){const E=i.current;if(m.current.length>0&&m.current[0]!==" "&&(T(E,E,m.current)===-1?S(!1):N.key===" "&&je(N)),E==null||w.current.includes(N.key)||N.key.length!==1||N.ctrlKey||N.metaKey||N.altKey)return;n&&N.key!==" "&&(je(N),S(!0)),E.every(O=>{var P,L;return O?((P=O[0])==null?void 0:P.toLocaleLowerCase())!==((L=O[1])==null?void 0:L.toLocaleLowerCase()):!0})&&m.current===N.key&&(m.current="",b.current=v.current),m.current+=N.key,clearTimeout(p.current),p.current=setTimeout(()=>{m.current="",b.current=v.current,S(!1)},u);const A=b.current,D=T(E,[...E.slice((A||0)+1),...E.slice(0,(A||0)+1)],m.current);D!==-1?(y(D),v.current=D):N.key!==" "&&(m.current="",S(!1))}return{reference:{onKeyDown:M},floating:{onKeyDown:M,onKeyUp(N){N.key===" "&&S(!1)}}}},[c,n,o,i,u,w,x,y,_])}function Sh(t,e){const[r,n]=t;let o=!1;const i=e.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=e[s]||[0,0],[d,u]=e[a]||[0,0];c>=n!=u>=n&&r<=(d-l)*(n-c)/(u-c)+l&&(o=!o)}return o}function eC(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function tC(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=t;let o,i=!1,s=null,a=null,l=performance.now();function c(u,f){const h=performance.now(),p=h-l;if(s===null||a===null||p===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/p;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:p,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||p==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,M=[S,T],N=rr(x),E=x.type==="mouseleave",I=Se(m.floating,N),A=Se(m.domReference,N),D=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=p.split("-")[0],L=f>O.right-O.width/2,z=h>O.bottom-O.height/2,B=eC(M,D),j=O.width>D.width,$=O.height>D.height,W=(j?D:O).left,V=(j?D:O).right,Y=($?D:O).top,U=($?D:O).bottom;if(I&&(i=!0,!E))return;if(A&&(i=!1),A&&!E){i=!0;return}if(E&&pe(x.relatedTarget)&&Se(m.floating,x.relatedTarget)||y&&Sr(y.nodesRef.current,v).some(de=>{let{context:X}=de;return X==null?void 0:X.open}))return;if(P==="top"&&h>=D.bottom-1||P==="bottom"&&h<=D.top+1||P==="left"&&f>=D.right-1||P==="right"&&f<=D.left+1)return w();let K=[];switch(P){case"top":K=[[W,D.top+1],[W,O.bottom-1],[V,O.bottom-1],[V,D.top+1]];break;case"bottom":K=[[W,O.top+1],[W,D.bottom-1],[V,D.bottom-1],[V,O.top+1]];break;case"left":K=[[O.right-1,U],[O.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":K=[[D.right-1,U],[D.right-1,Y],[O.left+1,Y],[O.left+1,U]];break}function G(de){let[X,oe]=de;switch(P){case"top":{const Ie=[j?X+e/2:L?X+e*4:X-e*4,oe+e+1],He=[j?X-e/2:L?X+e*4:X-e*4,oe+e+1],J=[[O.left,L||j?O.bottom-e:O.top],[O.right,L?j?O.bottom-e:O.top:O.bottom-e]];return[Ie,He,...J]}case"bottom":{const Ie=[j?X+e/2:L?X+e*4:X-e*4,oe-e],He=[j?X-e/2:L?X+e*4:X-e*4,oe-e],J=[[O.left,L||j?O.top+e:O.bottom],[O.right,L?j?O.top+e:O.bottom:O.top+e]];return[Ie,He,...J]}case"left":{const Ie=[X+e+1,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X+e+1,$?oe-e/2:z?oe+e*4:oe-e*4];return[...[[z||$?O.right-e:O.left,O.top],[z?$?O.right-e:O.left:O.right-e,O.bottom]],Ie,He]}case"right":{const Ie=[X-e,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X-e,$?oe-e/2:z?oe+e*4:oe-e*4],J=[[z||$?O.left+e:O.right,O.top],[z?$?O.left+e:O.right:O.left+e,O.bottom]];return[Ie,He,...J]}}}if(!Sh([S,T],K)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Sh([S,T],G([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const rC=({arrowRef:t,placement:e})=>{const r=[];return r.push(G2(8)),r.push(e==="auto"?J2():Z2()),r.push(X2({padding:8})),t!=null&&t.current&&r.push(Q2({element:t.current})),r},nC=({placement:t})=>t==="auto"?void 0:t,oC=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],Eh=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>bh({placement:nC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:jf,middleware:rC({placement:r,arrowRef:e})}),Oh=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>xh([gh(t,{enabled:e==="click"}),D5(t,{enabled:e==="hover",handleClose:tC()}),mh(t),_h(t,{role:r}),...n]),Th=k.createContext(void 0);function Pa(){const t=k.useContext(Th);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Aa=({className:t,theme:e={},...r})=>{const{theme:n}=Pa(),o=e.divider??n.floating.divider;return g.jsx("div",{className:F(o,t),...r})},Nh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Pa(),i=r.header??o.floating.header;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:F(i,e),...n,children:t}),g.jsx(Aa,{})]})},Mh=k.forwardRef(({children:t,className:e,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=O5({label:typeof t=="string"?t:void 0}),c=Gf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:p}=Pa(),m=u===l,b=H(d.floating.item,o),v=i;return g.jsx("li",{role:"menuitem",className:b.container,children:g.jsxs(Zs,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&p(null)}}),tabIndex:m?0:-1,children:[r&&g.jsx(r,{className:b.icon}),t]})})});Mh.displayName="DropdownItem";const iC={top:b1,right:Hu,bottom:ju,left:m1},sC=({refs:t,children:e,inline:r,theme:n,disabled:o,setButtonWidth:i,getReferenceProps:s,renderTrigger:a,...l})=>{const c=t.reference,d=s();if(k.useEffect(()=>{c.current&&(i==null||i(c.current.clientWidth))},[c,i]),a){const u=a(n);return k.cloneElement(u,{ref:t.setReference,disabled:o,...d,...u.props})}return r?g.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):g.jsx(uf,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Ph=({children:t,className:e,dismissOnClick:r=!0,theme:n={},renderTrigger:o,...i})=>{const[s,a]=k.useState(!1),[l,c]=k.useState(null),[d,u]=k.useState(null),[f,h]=k.useState(void 0),p=k.useRef([]),m=k.useRef([]),b=H(q().dropdown,n),v=i,y=i["data-testid"]||"flowbite-dropdown-target",{placement:_=i.inline?"bottom-start":"bottom",trigger:x="click",label:w,inline:S,arrowIcon:T=!0,...M}=v,N=k.useCallback($=>{u($),a(!1)},[]),E=k.useCallback($=>{s?c($):N($)},[s,N]),{context:I,floatingStyles:A,refs:D}=Eh({open:s,setOpen:a,placement:_}),O=Z5(I,{listRef:p,activeIndex:l,selectedIndex:d,onNavigate:c}),P=Q5(I,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Oh({context:I,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return iC[$]??ju},[_]);return g.jsxs(Th.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:N},children:[g.jsxs(sC,{...M,refs:D,inline:S,theme:b,"data-testid":y,className:F(b.floating.target,M.className),setButtonWidth:h,getReferenceProps:L,renderTrigger:o,children:[w,T&&g.jsx(j,{className:b.arrowIcon})]}),s&&g.jsx(uh,{context:I,modal:!1,children:g.jsx("div",{ref:D.setFloating,style:{...A,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":s,...z({className:F(b.floating.base,b.floating.animation,"duration-100",!s&&b.floating.hidden,b.floating.style.auto,e)}),children:g.jsx(E5,{elementsRef:p,labelsRef:m,children:g.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Ph.displayName="Dropdown",Nh.displayName="Dropdown.Header",Aa.displayName="Dropdown.Divider",Object.assign(Ph,{Item:Mh,Header:Nh,Divider:Aa});const Ah=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=H(q().fileInput,o);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:F(a.root.base,t),children:g.jsx("div",{className:a.field.base,children:g.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&g.jsx(Vn,{color:e,children:r})]})});Ah.displayName="FileInput";const aC=k.forwardRef(({label:t,helperText:e,color:r="default",sizing:n="md",variant:o,disabled:i=!1,theme:s={},className:a,...l},c)=>{const d=k.useId(),u=H(q().floatingLabel,s);return g.jsxs("div",{children:[g.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[g.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:F(u.input[r][o][n],a),placeholder:" ","data-testid":"floating-label",disabled:i,...l,ref:c}),g.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),g.jsx("p",{id:"outlined_helper_text"+d,className:F(u.helperText[r],a),children:e})]})});aC.displayName="FloatingLabel";const Dh=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=H(q().footer.brand,s);return g.jsx("div",{children:n?g.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[g.jsx("img",{alt:t,src:i,className:l.img}),g.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):g.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:i,className:F(l.img,e),...a})})},Ih=({by:t,className:e,href:r,theme:n={},year:o,...i})=>{const s=H(q().footer.copyright,n);return g.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?g.jsx("a",{href:r,className:s.href,children:t}):g.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Lh=({className:t,theme:e={},...r})=>{const n=H(q().footer.divider,e);return g.jsx("hr",{"data-testid":"footer-divider",className:F(n.base,t),...r})},Fh=({ariaLabel:t,className:e,href:r,icon:n,theme:o={},...i})=>{const s=H(q().footer.icon,o);return g.jsx("div",{children:r?g.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:g.jsx(n,{className:s.size})}):g.jsx(n,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},zh=({as:t="a",children:e,className:r,href:n,theme:o={},...i})=>{const s=H(q().footer.groupLink.link,o);return g.jsx("li",{className:F(s.base,r),children:g.jsx(t,{href:n,className:s.href,...i,children:e})})},Bh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=H(q().footer.groupLink,n);return g.jsx("ul",{"data-testid":"footer-groupLink",className:F(i.base,r&&i.col,e),...o,children:t})},$h=({as:t="h2",className:e,theme:r={},title:n,...o})=>{const i=H(q().footer.title,r);return g.jsx(t,{"data-testid":"flowbite-footer-title",className:F(i.base,e),...o,children:n})},jh=({bgDark:t=!1,children:e,className:r,container:n=!1,theme:o={},...i})=>{const s=H(q().footer,o);return g.jsx("footer",{"data-testid":"flowbite-footer",className:F(s.root.base,t&&s.root.bgDark,n&&s.root.container,r),...i,children:e})};jh.displayName="Footer",Ih.displayName="Footer.Copyright",zh.displayName="Footer.Link",Dh.displayName="Footer.Brand",Bh.displayName="Footer.LinkGroup",Fh.displayName="Footer.Icon",$h.displayName="Footer.Title",Lh.displayName="Footer.Divider",Object.assign(jh,{Copyright:Ih,Link:zh,LinkGroup:Bh,Brand:Dh,Icon:Fh,Title:$h,Divider:Lh});const Hh=({children:t,className:e,color:r="default",disabled:n=!1,theme:o={},value:i,...s})=>{const a=H(q().label,o);return g.jsx("label",{className:F(a.root.base,a.root.colors[r],n&&a.root.disabled,e),"data-testid":"flowbite-label",...s,children:i??t??""})};Hh.displayName="Label";const Wh=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=H(q().list.item,n);return g.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&g.jsx(r,{className:F(i.icon)}),t]})},Vh=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=H(q().list,s),c=o?"ol":"ul";return g.jsx(c,{className:F(l.root.base,l.root.ordered[o?"on":"off"],r&&l.root.unstyled,n&&l.root.nested,i&&l.root.horizontal,e),...a,children:t})};Vh.displayName="List",Wh.displayName="List.Item",Object.assign(Vh,{Item:Wh});const Rh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=H(q().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return g.jsx("li",{className:F(c.base,r),children:g.jsxs(u,{href:n,onClick:i,type:d?void 0:"button",disabled:a,className:F(c.link.active[t?"on":"off"],c.link.disabled[a?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[o&&g.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Yh=({children:t,className:e,theme:r={},...n})=>{const o=H(q().listGroup,r);return g.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Yh.displayName="ListGroup",Rh.displayName="ListGroup.Item",Object.assign(Yh,{Item:Rh});const Uh=k.createContext(void 0);function Da(){const t=k.useContext(Uh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Kh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Da(),s=H(o.body,r);return g.jsx("div",{className:F(s.base,i&&[s.popup],e),...n,children:t})},qh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Da(),s=H(o.footer,r);return g.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Gh=({as:t="h3",children:e,className:r,theme:n={},id:o,...i})=>{const s=k.useId(),a=o||s,{theme:l,popup:c,onClose:d,setHeaderId:u}=Da(),f=H(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),g.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[g.jsx(t,{id:a,className:f.title,children:e}),g.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:g.jsx(y1,{"aria-hidden":!0,className:f.close.icon})})]})},Xh=k.forwardRef(({children:t,className:e,dismissible:r=!1,onClose:n,popup:o,position:i="center",root:s,show:a,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,p]=k.useState(void 0),m=H(q().modal,c),{context:b}=bh({open:a,onOpenChange:()=>n&&n()}),v=Gf([b.refs.setFloating,f]),y=gh(b),_=mh(b,{outsidePressEvent:"mousedown",enabled:r}),x=_h(b),{getFloatingProps:w}=xh([y,_,x]);return a?g.jsx(Uh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:p},children:g.jsx(V5,{root:s,children:g.jsx(U5,{lockScroll:!0,"data-testid":"modal-overlay",className:F(m.root.base,m.root.positions[i],a?m.root.show.on:m.root.show.off,e),...u,children:g.jsx(uh,{context:b,initialFocus:d,children:g.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:g.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Xh.displayName="Modal",Gh.displayName="Modal.Header",Kh.displayName="Modal.Body",qh.displayName="Modal.Footer",Object.assign(Xh,{Header:Gh,Body:Kh,Footer:qh});const Zh=k.createContext(void 0);function Di(){const t=k.useContext(Zh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Jh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Di(),s=H(i.brand,n);return g.jsx(t,{className:F(s.base,r),...o,children:e})},Qh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Di(),s=H(o.collapse,r);return g.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:g.jsx("ul",{className:s.list,children:t})})},eg=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Di(),d=H(l.link,i),u=f=>{c(!1),s==null||s(f)};return g.jsx("li",{children:g.jsx(e,{className:F(d.base,t&&d.active.on,!t&&!r&&d.active.off,d.disabled[r?"on":"off"],o),onClick:u,...a,children:n})})},tg=({barIcon:t=rp,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Di(),a=H(o.toggle,r),l=()=>{s(!i)};return g.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[g.jsx("span",{className:"sr-only",children:"Open main menu"}),g.jsx(t,{"aria-hidden":!0,className:a.icon})]})},rg=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=H(q().navbar,s);return g.jsx(Zh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:g.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:g.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};rg.displayName="Navbar",Jh.displayName="Navbar.Brand",Qh.displayName="Navbar.Collapse",eg.displayName="Navbar.Link",tg.displayName="Navbar.Toggle",Object.assign(rg,{Brand:Jh,Collapse:Qh,Link:eg,Toggle:tg});const lC=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),Ia=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=H(q().pagination,o);return g.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};Ia.displayName="Pagination.Button";const La=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=H(q().pagination,n);return g.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};La.displayName="Pagination.Navigation";const ng=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>g.jsx(Ia,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=H(q().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),p=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return g.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&g.jsxs("div",{className:u.layout.table.base,children:["Showing ",g.jsx("span",{className:u.layout.table.span,children:h})," to ",g.jsx("span",{className:u.layout.table.span,children:f})," of ",g.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),g.jsxs("ul",{className:u.pages.base,children:[g.jsx("li",{children:g.jsxs(La,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&g.jsx(Bu,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&lC(h,f).map(b=>g.jsx("li",{"aria-current":b===e?"page":void 0,children:s({className:F(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>o(b),children:b})},b)),g.jsx("li",{children:g.jsxs(La,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:p,disabled:e===c,children:[n,a&&g.jsx($u,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};ng.displayName="Pagination",Object.assign(ng,{Button:Ia});const cC=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=H(q().radio,e);return g.jsx("input",{ref:n,type:"radio",className:F(o.root.base,t),...r})});cC.displayName="Radio";const dC=k.forwardRef(({className:t,sizing:e="md",theme:r={},...n},o)=>{const i=H(q().rangeSlider,r);return g.jsx(g.Fragment,{children:g.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:g.jsx("div",{className:i.field.base,children:g.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});dC.displayName="RangeSlider";const og=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=H(q().ratingAdvanced,n);return g.jsxs("div",{className:F(i.base,e),...o,children:[g.jsx("span",{className:i.label,children:t}),g.jsx("div",{className:i.progress.base,children:g.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),g.jsx("span",{className:i.progress.label,children:`${r}%`})]})},ig=k.createContext(void 0);function uC(){const t=k.useContext(ig);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const sg=({className:t,filled:e=!0,starIcon:r=g1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=uC(),a=H(i.star,n);return g.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},ag=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=H(q().rating,n);return g.jsx(ig.Provider,{value:{theme:i,size:r},children:g.jsx("div",{className:F(i.root.base,e),...o,children:t})})};ag.displayName="Rating",sg.displayName="Rating.Star",og.displayName="Rating.Advanced",Object.assign(ag,{Star:sg,Advanced:og});const fC=k.forwardRef(({addon:t,children:e,className:r,color:n="gray",helperText:o,icon:i,shadow:s,sizing:a="md",theme:l={},...c},d)=>{const u=H(q().select,l);return g.jsxs("div",{className:F(u.base,r),children:[t&&g.jsx("span",{className:u.addon,children:t}),g.jsxs("div",{className:u.field.base,children:[i&&g.jsx("div",{className:u.field.icon.base,children:g.jsx(i,{className:u.field.icon.svg})}),g.jsx("select",{className:F(u.field.select.base,u.field.select.colors[n],u.field.select.sizes[a],u.field.select.withIcon[i?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[s?"on":"off"]),...c,ref:d,children:e}),o&&g.jsx(Vn,{color:n,children:o})]})]})});fC.displayName="Select";const hC=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a,trigger:l="hover",minWidth:c,...d})=>{const u=k.useRef(null),[f,h]=k.useState(!1),p=Eh({open:f,placement:i,arrowRef:u,setOpen:h}),{context:m,middlewareData:{arrow:{x:b,y:v}={}},refs:y,strategy:_,update:x,x:w,y:S}=p,T=G5(m),{getFloatingProps:M,getReferenceProps:N}=Oh({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return jf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...N(),children:r}),g.jsxs("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...M({className:F(a.base,t&&`${a.animation} ${t}`,!f&&a.hidden,a.style[s],n),style:{position:_,top:S??" ",left:w??" ",minWidth:c},...d}),children:[g.jsx("div",{className:a.content,children:o}),e&&g.jsx("div",{className:F(a.arrow.base,s==="dark"&&a.arrow.style.dark,s==="light"&&a.arrow.style.light,s==="auto"&&a.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:v??" ",left:b??" ",right:" ",bottom:" ",[oC({placement:p.placement})]:a.arrow.placement},children:" "})]})]})},Fa=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a={},trigger:l="hover",...c})=>{const d=H(q().tooltip,a);return g.jsx(hC,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};Fa.displayName="Tooltip";const lg=k.createContext(void 0);function Qr(){const t=k.useContext(lg);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const za=k.createContext(void 0);function gC(){const t=k.useContext(za);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const cg=({children:t,className:e,icon:r,label:n,chevronIcon:o=zu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=Qr(),p=H(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>g.jsx("li",{children:h&&!d?g.jsx(Fa,{content:n,placement:"right",children:b}):b});return g.jsxs(m,{children:[g.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(p.button,e),...l,children:[r&&g.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(p.icon.base,p.icon.open[d?"on":"off"])}),h?g.jsx("span",{className:"sr-only",children:n}):g.jsxs(g.Fragment,{children:[g.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:p.label.base,children:n}),i?i(p,d):g.jsx(o,{"aria-hidden":!0,className:F(p.label.icon.base,p.label.icon.open[d?"on":"off"])})]})]}),g.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:p.list,children:g.jsx(za.Provider,{value:{isInsideCollapse:!0},children:t})})]})};cg.displayName="Sidebar.Collapse";const dg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=Qr(),a=H(i.cta,n);return g.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};dg.displayName="Sidebar.CTA";const pC=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>g.jsx("li",{...i,children:r?g.jsx(Fa,{content:g.jsx(ug,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),ug=({id:t,theme:e,children:r})=>g.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),fg=k.forwardRef(({active:t,as:e="a",children:r,className:n,icon:o,label:i,labelColor:s="info",theme:a={},...l},c)=>{var m,b,v,y;const d=k.useId(),{theme:u,isCollapsed:f}=Qr(),{isInsideCollapse:h}=gC(),p=H(u.item,a);return g.jsx(pC,{theme:p,className:p.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:g.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(p.base,t&&p.active,!f&&h&&((m=p.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&g.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=p.icon)==null?void 0:b.base,t&&((v=p.icon)==null?void 0:v.active))}),f&&!o&&g.jsx("span",{className:(y=p.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&g.jsx(ug,{id:d,theme:p,children:r}),!f&&i&&g.jsx(of,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:p.label,children:i})]})})});fg.displayName="Sidebar.Item";const hg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.itemGroup,r);return g.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:g.jsx(za.Provider,{value:{isInsideCollapse:!1},children:t})})};hg.displayName="Sidebar.ItemGroup";const gg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.items,r);return g.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};gg.displayName="Sidebar.Items";const pg=({children:t,className:e,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=Qr(),d=H(l.logo,i);return g.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[g.jsx("img",{alt:o,src:n,className:d.img}),g.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};pg.displayName="Sidebar.Logo";const mg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=H(q().sidebar,o);return g.jsx(lg.Provider,{value:{theme:a,isCollapsed:n},children:g.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:g.jsx("div",{className:a.root.inner,children:t})})})};mg.displayName="Sidebar",Object.assign(mg,{Collapse:cg,CTA:dg,Item:fg,Items:gg,ItemGroup:hg,Logo:pg});const bg=k.createContext(void 0);function mC(){const t=k.useContext(bg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const yg=k.createContext(void 0);function Ba(){const t=k.useContext(yg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Ba(),s=H(i.body,r);return g.jsx(bg.Provider,{value:{theme:s},children:g.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});vg.displayName="Table.Body";const xg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=mC(),s=H(i.cell,r);return g.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});xg.displayName="Table.Cell";const wg=k.createContext(void 0);function bC(){const t=k.useContext(wg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const kg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Ba(),s=H(i.head,r);return g.jsx(wg.Provider,{value:{theme:s},children:g.jsx("thead",{className:F(s.base,e),ref:o,...n,children:g.jsx("tr",{children:t})})})});kg.displayName="Table.Head";const Cg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=bC(),s=H(i.cell,r);return g.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});Cg.displayName="Table.HeadCell";const _g=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=Ba(),l=H(i.row,r);return g.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});_g.displayName="Table.Row";const Sg=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=H(q().table,o);return g.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:g.jsxs(yg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[g.jsx("div",{className:F(a.root.shadow,e)}),g.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});Sg.displayName="Table";const en=Object.assign(Sg,{Head:kg,Body:vg,Row:_g,Cell:xg,HeadCell:Cg}),Eg=({children:t,className:e})=>g.jsx("div",{className:e,children:t});Eg.displayName="Tabs.Item";const Og=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=H(q().tabs,o),l=k.useId(),c=k.useMemo(()=>k.Children.map(k.Children.toArray(t),({props:x})=>x),[t]),d=k.useRef([]),[u,f]=k.useState(Math.max(0,c.findIndex(x=>x.active))),[h,p]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),p(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&p(Math.max(0,h-1)),x.key==="ArrowRight"&&p(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),p(w))},y=a.tablist.tabitem.styles[n],_=a.tabitemcontainer.styles[n];return k.useEffect(()=>{var x;(x=d.current[h])==null||x.focus()},[h]),k.useImperativeHandle(s,()=>({setActiveTab:m})),g.jsxs("div",{className:F(a.base,e),children:[g.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>g.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:F(a.tablist.tabitem.base,y.base,w===u&&y.active.on,w!==u&&!x.disabled&&y.active.off),disabled:x.disabled,id:`${l}-tab-${w}`,onClick:()=>b({target:w}),onKeyDown:S=>v({event:S,target:w}),ref:S=>d.current[w]=S,role:"tab",tabIndex:w===h?0:-1,style:{zIndex:w===h?2:1},children:[x.icon&&g.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),g.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>g.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:a.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:x.children},w))})]})});Og.displayName="Tabs",Object.assign(Og,{Item:Eg});const yC=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=H(q().textarea,o);return g.jsxs(g.Fragment,{children:[g.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&g.jsx(Vn,{color:e,children:r})]})});yC.displayName="Textarea";const Tg=k.createContext(void 0);function $a(){const t=k.useContext(Tg);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Ng=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=$a(),i=H(o.body,r);return g.jsx("div",{className:F(i.base,e),...n,children:t})},Mg=k.createContext(void 0);function ja(){const t=k.useContext(Mg);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Pg=k.createContext(void 0);function Ag(){const t=k.useContext(Pg);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Dg=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=ja(),{theme:i}=Ag(),s=H(i.content,r);return g.jsx(Tg.Provider,{value:{theme:s},children:g.jsx("div",{"data-testid":"timeline-content",className:F(o&&s.root.base,e),...n,children:t})})},Ig=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=ja(),s=H(o.item,r);return g.jsx(Pg.Provider,{value:{theme:s},children:g.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Lg=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=ja(),{theme:s}=Ag(),a=H(s.point,n);return g.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?g.jsx("span",{className:F(a.marker.icon.wrapper),children:g.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):g.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&g.jsx("div",{className:F(a.line)})]})},Fg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=$a(),i=H(o.time,r);return g.jsx("time",{className:F(i.base,e),...n,children:t})},zg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=$a(),s=H(i.title,n);return g.jsx(t,{className:F(s.base,r),...o,children:e})},Bg=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=H(q().timeline,n);return g.jsx(Mg.Provider,{value:{theme:i,horizontal:r},children:g.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};Bg.displayName="Timeline",Ig.displayName="Timeline.Item",Lg.displayName="Timeline.Point",Dg.displayName="Timeline.Content",Fg.displayName="Timeline.Time",zg.displayName="Timeline.Title",Ng.displayName="Timeline.Body",Object.assign(Bg,{Item:Ig,Point:Lg,Content:Dg,Time:Fg,Title:zg,Body:Ng});const $g=k.createContext(void 0);function vC(){const t=k.useContext($g);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const jg=({className:t,onClick:e,theme:r={},xIcon:n=p1,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=vC(),f=H(s.toggle,r),h=p=>{if(e&&e(p),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return g.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:g.jsx(n,{"aria-hidden":!0,className:f.icon})})},xC={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Hg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=H(q().toast,n);return a?null:g.jsx($g.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:g.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,xC[r],i&&c.root.closed,e),...o,children:t})})};Hg.displayName="Toast",jg.displayName="Toast.Toggle",Object.assign(Hg,{Toggle:jg});const wC=k.forwardRef(({checked:t,className:e,color:r="blue",sizing:n="md",disabled:o,label:i,name:s,onChange:a,theme:l={},...c},d)=>{const u=k.useId(),f=H(q().toggleSwitch,l),h=()=>a(!t),p=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return g.jsxs(g.Fragment,{children:[s&&t?g.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,g.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:p,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[g.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:F(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[r],f.toggle.sizes[n])}),i!=null&&i.length?g.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});wC.displayName="ToggleSwitch";const kC=({currentPage:t,totalPages:e,onPageChange:r})=>g.jsxs("div",{className:"flex items-center justify-center gap-4",children:[g.jsx("button",{onClick:()=>r(t-1),disabled:t===1,className:"p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:g.jsx(Bu,{className:"h-5 w-5"})}),g.jsxs("span",{className:"text-sm text-gray-700",children:[t," de ",e]}),g.jsx("button",{onClick:()=>r(t+1),disabled:t===e,className:"p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:g.jsx($u,{className:"h-5 w-5"})})]}),CC=({columns:t,data:e,showSearch:r=!1,itemsPerPage:n=5,title:o})=>{const[i,s]=C.useState(""),[a,l]=C.useState(1),c=C.useMemo(()=>i.trim()?e.filter(f=>t.some(h=>{const p=f[h.relation];return p!=null&&String(p).toLowerCase().includes(i.toLowerCase().trim())})):e,[e,i,t]),d=C.useMemo(()=>{const f=(a-1)*n,h=f+n;return c.slice(f,h)},[c,a,n]),u=Math.ceil(c.length/n);return g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-4 flex items-center justify-between",children:o&&g.jsx("h2",{className:"text-xl font-bold",children:o})}),g.jsxs("div",{className:"mb-4 flex",children:[r&&g.jsx("div",{className:"w-1/2",children:g.jsx(Qs,{rightIcon:h1,placeholder:"Buscar",value:i,onChange:f=>s(f.target.value)})}),u>1&&g.jsx("div",{className:"flex w-full justify-end",children:g.jsx(kC,{currentPage:a,totalPages:u,onPageChange:l})})]}),g.jsx("div",{className:"overflow-x-auto",children:g.jsxs(en,{striped:!0,children:[g.jsx(en.Head,{children:t.map((f,h)=>g.jsx(en.HeadCell,{children:f.header},h))}),g.jsx("hr",{}),g.jsx(en.Body,{className:"divide-y",children:d.map((f,h)=>g.jsx(en.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:t.map((p,m)=>{const b=f[p.relation];return g.jsx(en.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:p.cell?p.cell(f):b!=null?String(b):""},m)})},h))})]})})]})},Wg={"m-image-container":"layoutOutside-module__m-image-container__sCvFu","m-image":"layoutOutside-module__m-image__kZHyH"},_C=()=>g.jsxs("div",{className:"mt-32",children:[g.jsx(Rt,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/151-41415c0c026df82dbb391c09db474cfa.png",alt:"Logo Mathilde ads",width:400,height:250}),g.jsx("div",{className:Wg["m-image-container"],children:g.jsx(Rt,{classIm:Wg["m-image"],src:"https://ftp.mathilde-ads.com/151-3f28d319ba5adbe318c58ef38b858e50.png",alt:"Logo Mathilde ads",width:400,height:300})})]}),SC=({onOpenModal:t,checked:e,onChange:r,label:n,...o})=>{const i=()=>{e||t(),r(!1)};return g.jsx("div",{className:"mb-5",children:g.jsxs("label",{className:eo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),g.jsx("span",{className:eo.checkmark}),n&&g.jsx("span",{children:n})]})})},Vg=({validations:t})=>{const e=({isValid:n})=>g.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${n?"text-green-500 dark:text-green-400":"text-gray-500 dark:text-gray-400"} shrink-0`,"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:g.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),r=[{key:"hasMinLength",text:"Debe ser minimo de 8 caracteres"},{key:"hasNumber",text:"Debe tener minimo un numero"},{key:"hasUpperCase",text:"Debe tener minimo una letra mayuscula"},{key:"hasLowerCase",text:"Debe tener minimo una letra minuscula"},{key:"hasSpecialChar",text:"Debe tener minimo un caracter especial"}];return g.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:r.map(({key:n,text:o})=>g.jsxs("li",{className:"flex items-center",children:[g.jsx(e,{isValid:t[n]}),o]},n))})},EC=()=>{const[t,e]=k.useState(""),[r,n]=k.useState(""),[o,i]=k.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});k.useEffect(()=>{i({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const s=()=>t.trim()&&r.trim()&&t===r&&Object.values(o).every(l=>l);return{password:t,setPassword:e,confirmPassword:r,setConfirmPassword:n,showError:()=>!s()&&t.trim()&&r.trim(),validations:o}},OC=({formik:t})=>{const{password:e,setPassword:r,confirmPassword:n,setConfirmPassword:o,validations:i}=EC();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"block",children:[g.jsx(Fi,{placeholder:"Contraseña",value:e,onChange:s=>{r(s.target.value),t.setFieldValue("password",s.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),g.jsxs("div",{className:"block",children:[g.jsx(Fi,{placeholder:"Confirmar contraseña",value:n,onChange:s=>{o(s.target.value),t.setFieldValue("confirmPassword",s.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),g.jsx(Vg,{validations:i})]})},TC=({items:t})=>{const[e,r]=k.useState([]),n=i=>{r(s=>s.includes(i)?s.filter(a=>a!==i):[...s,i])},o=(i,s=0)=>g.jsx("ul",{className:"list-none space-y-2",children:i.map(a=>{const l=a.subItems&&a.subItems.length>0,c=e.includes(a.id);return g.jsxs("li",{className:`
498
+ */var e5=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ki=e5.join(","),Rf=typeof Element>"u",Gr=Rf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ci=!Rf&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},_i=function t(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=o===""||o==="true",s=i||r&&e&&t(e.parentNode);return s},t5=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},r5=function(e,r,n){if(_i(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(ki));return r&&Gr.call(e,ki)&&o.unshift(e),o=o.filter(n),o},n5=function t(e,r,n){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!_i(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=t(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var d=Gr.call(s,ki);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!_i(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&f){var h=t(u===!0?s.children:u.children,!0,n);n.flatten?o.push.apply(o,h):o.push({scopeParent:s,candidates:h})}else i.unshift.apply(i,s.children)}}return o},Yf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Uf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||t5(e))&&!Yf(e)?0:e.tabIndex},o5=function(e,r){var n=Uf(e);return n<0&&r&&!Yf(e)?0:n},i5=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Kf=function(e){return e.tagName==="INPUT"},s5=function(e){return Kf(e)&&e.type==="hidden"},a5=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},l5=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},c5=function(e){if(!e.name)return!0;var r=e.form||Ci(e),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(e.name));else try{o=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=l5(o,e.form);return!i||i===e},d5=function(e){return Kf(e)&&e.type==="radio"},u5=function(e){return d5(e)&&!c5(e)},f5=function(e){var r,n=e&&Ci(e),o=(r=n)===null||r===void 0?void 0:r.host,i=!1;if(n&&n!==e){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&o;){var c,d,u;n=Ci(o),o=(c=n)===null||c===void 0?void 0:c.host,i=!!((d=o)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return i},qf=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},h5=function(e,r){var n=r.displayCheck,o=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=Gr.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(Gr.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var l=e.parentElement,c=Ci(e);if(l&&!l.shadowRoot&&o(l)===!0)return qf(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(f5(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return qf(e);return!1},g5=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return Gr.call(r,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}r=r.parentElement}return!1},p5=function(e,r){return!(r.disabled||_i(r)||s5(r)||h5(r,e)||a5(r)||g5(r))},va=function(e,r){return!(u5(r)||Uf(r)<0||!p5(e,r))},m5=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},b5=function t(e){var r=[],n=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=o5(a,s),c=s?t(o.candidates):a;l===0?s?r.push.apply(r,c):r.push(a):n.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),n.sort(i5).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},Si=function(e,r){r=r||{};var n;return r.getShadowRoot?n=n5([e],r.includeContainer,{filter:va.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:m5}):n=r5(e,r.includeContainer,va.bind(null,r)),b5(n)},y5=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Gr.call(e,ki)===!1?!1:va(r,e)};function Gf(t){return C.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})},t)}const v5=C.useInsertionEffect||(t=>t());function Nt(t){const e=C.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return v5(()=>{e.current=t}),C.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}const xa="ArrowUp",Kn="ArrowDown",Xr="ArrowLeft",Zr="ArrowRight";function Ei(t,e,r){return Math.floor(t/e)!==r}function qn(t,e){return e<0||e>=t.current.length}function wa(t,e){return Ye(t,{disabledIndices:e})}function Xf(t,e){return Ye(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function Ye(t,e){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=e===void 0?{}:e;const s=t.current,a=o?c=>o.includes(c):c=>{const d=s[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=r;do l+=n?-i:i;while(l>=0&&l<=s.length-1&&a(l));return l}function x5(t,e){let{event:r,orientation:n,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(r.key===xa){if(d&&je(r),c===-1)u=l;else if(u=Ye(t,{startingIndex:u,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<a||u<0)){const f=c%i,h=l%i,p=l-(h-f);h===f?u=l:u=h>f?p:p-i}qn(t,u)&&(u=c)}if(r.key===Kn&&(d&&je(r),c===-1?u=a:(u=Ye(t,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(u=Ye(t,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),qn(t,u)&&(u=c)),n==="both"){const f=Ur(c/i);r.key===Zr&&(d&&je(r),c%i!==i-1?(u=Ye(t,{startingIndex:c,disabledIndices:s}),o&&Ei(u,i,f)&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s})),Ei(u,i,f)&&(u=c)),r.key===Xr&&(d&&je(r),c%i!==0?(u=Ye(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Ei(u,i,f)&&(u=Ye(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),Ei(u,i,f)&&(u=c));const h=Ur(l/i)===f;qn(t,u)&&(o&&h?u=r.key===Xr?l:Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function w5(t,e,r){const n=[];let o=0;return t.forEach((i,s)=>{let{width:a,height:l}=i;if(a>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let c=!1;for(r&&(o=0);!c;){const d=[];for(let u=0;u<a;u++)for(let f=0;f<l;f++)d.push(o+u+f*e);o%e+a<=e&&d.every(u=>n[u]==null)?(d.forEach(u=>{n[u]=s}),c=!0):o++}}),[...n]}function k5(t,e,r,n,o){if(t===-1)return-1;const i=r.indexOf(t);switch(o){case"tl":return i;case"tr":return i+e[t].width-1;case"bl":return i+(e[t].height-1)*n;case"br":return r.lastIndexOf(t)}}function C5(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}let Zf=0;function Vt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Zf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Zf=requestAnimationFrame(i)}var me=typeof document<"u"?k.useLayoutEffect:k.useEffect;function _5(t,e){const r=t.compareDocumentPosition(e);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function S5(t,e){if(t.size!==e.size)return!1;for(const[r,n]of t.entries())if(n!==e.get(r))return!1;return!0}const Jf=C.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function E5(t){let{children:e,elementsRef:r,labelsRef:n}=t;const[o,i]=C.useState(()=>new Map),s=C.useCallback(l=>{i(c=>new Map(c).set(l,null))},[]),a=C.useCallback(l=>{i(c=>{const d=new Map(c);return d.delete(l),d})},[]);return me(()=>{const l=new Map(o);Array.from(l.keys()).sort(_5).forEach((d,u)=>{l.set(d,u)}),S5(o,l)||i(l)},[o]),C.createElement(Jf.Provider,{value:C.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},e)}function O5(t){let{label:e}=t===void 0?{}:t;const[r,n]=C.useState(null),o=C.useRef(null),{register:i,unregister:s,map:a,elementsRef:l,labelsRef:c}=C.useContext(Jf),d=C.useCallback(u=>{if(o.current=u,r!==null&&(l.current[r]=u,c)){var f;const h=e!==void 0;c.current[r]=h?e:(f=u==null?void 0:u.textContent)!=null?f:null}},[r,l,c,e]);return me(()=>{const u=o.current;if(u)return i(u),()=>{s(u)}},[i,s]),me(()=>{const u=o.current?a.get(o.current):null;u!=null&&n(u)},[a]),C.useMemo(()=>({ref:d,index:r??-1}),[r,d])}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gn.apply(this,arguments)}let ka=!1,T5=0;const Qf=()=>"floating-ui-"+T5++;function N5(){const[t,e]=C.useState(()=>ka?Qf():void 0);return me(()=>{t==null&&e(Qf())},[]),C.useEffect(()=>{ka||(ka=!0)},[]),t}const Oi=C.useId||N5;function M5(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(o=>o(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){var n;t.set(e,((n=t.get(e))==null?void 0:n.filter(o=>o!==r))||[])}}}const P5=C.createContext(null),A5=C.createContext(null),Ti=()=>{var t;return((t=C.useContext(P5))==null?void 0:t.id)||null},Xn=()=>C.useContext(A5);function _r(t){return"data-floating-ui-"+t}function Mt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const eh=_r("safe-polygon");function Ca(t,e,r){return r&&!gi(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function D5(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:{domReference:s,floating:a},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:p=!0}=e,m=Xn(),b=Ti(),v=Mt(u),y=Mt(d),_=C.useRef(),x=C.useRef(),w=C.useRef(),S=C.useRef(),T=C.useRef(!0),M=C.useRef(!1),N=C.useRef(()=>{}),E=C.useCallback(()=>{var O;const P=(O=o.current.openEvent)==null?void 0:O.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[o]);C.useEffect(()=>{if(!c)return;function O(P){let{open:L}=P;L||(clearTimeout(x.current),clearTimeout(S.current),T.current=!0)}return i.on("openchange",O),()=>{i.off("openchange",O)}},[c,i]),C.useEffect(()=>{if(!c||!v.current||!r)return;function O(L){E()&&n(!1,L,"hover")}const P=Ue(a).documentElement;return P.addEventListener("mouseleave",O),()=>{P.removeEventListener("mouseleave",O)}},[a,r,n,c,v,E]);const I=C.useCallback(function(O,P,L){P===void 0&&(P=!0),L===void 0&&(L="hover");const z=Ca(y.current,"close",_.current);z&&!w.current?(clearTimeout(x.current),x.current=setTimeout(()=>n(!1,O,L),z)):P&&(clearTimeout(x.current),n(!1,O,L))},[y,n]),A=C.useCallback(()=>{N.current(),w.current=void 0},[]),D=C.useCallback(()=>{if(M.current){const O=Ue(l.floating.current).body;O.style.pointerEvents="",O.removeAttribute(eh),M.current=!1}},[l]);return C.useEffect(()=>{if(!c)return;function O(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function P(B){if(clearTimeout(x.current),T.current=!1,f&&!gi(_.current)||h>0&&Ca(y.current,"open")===0)return;const j=Ca(y.current,"open",_.current);j?x.current=setTimeout(()=>{n(!0,B,"hover")},j):n(!0,B,"hover")}function L(B){if(O())return;N.current();const j=Ue(a);if(clearTimeout(S.current),v.current){r||clearTimeout(x.current),w.current=v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B,!0,"safe-polygon")}});const W=w.current;j.addEventListener("mousemove",W),N.current=()=>{j.removeEventListener("mousemove",W)};return}(_.current==="touch"?!Se(a,B.relatedTarget):!0)&&I(B)}function z(B){O()||v.current==null||v.current({...t,tree:m,x:B.clientX,y:B.clientY,onClose(){D(),A(),I(B)}})(B)}if(pe(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),p&&B.addEventListener("mousemove",P,{once:!0}),B.addEventListener("mouseenter",P),B.addEventListener("mouseleave",L),()=>{r&&B.removeEventListener("mouseleave",z),a==null||a.removeEventListener("mouseleave",z),p&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,p,I,A,D,n,r,m,y,v,o]),me(()=>{var O;if(c&&r&&(O=v.current)!=null&&O.__options.blockPointerEvents&&E()){const L=Ue(a).body;if(L.setAttribute(eh,""),L.style.pointerEvents="none",M.current=!0,pe(s)&&a){var P;const z=s,B=m==null||(P=m.nodesRef.current.find(j=>j.id===b))==null||(P=P.context)==null?void 0:P.elements.floating;return B&&(B.style.pointerEvents=""),z.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{z.style.pointerEvents="",a.style.pointerEvents=""}}}},[c,r,b,a,s,m,v,E]),me(()=>{r||(_.current=void 0,A(),D())},[r,A,D]),C.useEffect(()=>()=>{A(),clearTimeout(x.current),clearTimeout(S.current),D()},[c,s,A,D]),C.useMemo(()=>{if(!c)return{};function O(P){_.current=P.pointerType}return{reference:{onPointerDown:O,onPointerEnter:O,onMouseMove(P){r||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{T.current||n(!0,P.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(P){I(P.nativeEvent,!1)}}}},[c,h,r,n,I])}function I5(t,e){var r;let n=[],o=(r=t.find(i=>i.id===e))==null?void 0:r.parentId;for(;o;){const i=t.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Sr(t,e){let r=t.filter(o=>{var i;return o.parentId===e&&((i=o.context)==null?void 0:i.open)}),n=r;for(;n.length;)n=t.filter(o=>{var i;return(i=n)==null?void 0:i.some(s=>{var a;return o.parentId===s.id&&((a=o.context)==null?void 0:a.open)})}),r=r.concat(n);return r}function L5(t,e){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),Sr(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Jr=new WeakMap,Ni=new WeakSet,Mi={},_a=0;const F5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,th=t=>t&&(t.host||th(t.parentNode)),z5=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=th(r);return t.contains(n)?n:null}).filter(r=>r!=null);function B5(t,e,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=z5(e,t),a=new Set,l=new Set(s),c=[];Mi[o]||(Mi[o]=new WeakMap);const d=Mi[o];s.forEach(u),f(e),a.clear();function u(h){!h||a.has(h)||(a.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,p=>{if(a.has(p))f(p);else{const m=i?p.getAttribute(i):null,b=m!==null&&m!=="false",v=(Jr.get(p)||0)+1,y=(d.get(p)||0)+1;Jr.set(p,v),d.set(p,y),c.push(p),v===1&&b&&Ni.add(p),y===1&&p.setAttribute(o,""),!b&&i&&p.setAttribute(i,"true")}})}return _a++,()=>{c.forEach(h=>{const p=(Jr.get(h)||0)-1,m=(d.get(h)||0)-1;Jr.set(h,p),d.set(h,m),p||(!Ni.has(h)&&i&&h.removeAttribute(i),Ni.delete(h)),m||h.removeAttribute(o)}),_a--,_a||(Jr=new WeakMap,Jr=new WeakMap,Ni=new WeakSet,Mi={})}}function rh(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=Ue(t[0]).body;return B5(t.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,e,r)}const Zn=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nh(t,e){const r=Si(t,Zn());e==="prev"&&r.reverse();const n=r.indexOf(Et(Ue(t)));return r.slice(n+1)[0]}function oh(){return nh(document.body,"next")}function ih(){return nh(document.body,"prev")}function Jn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Se(r,n)}function $5(t){Si(t,Zn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function j5(t){t.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const Sa={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let H5;function sh(t){t.key==="Tab"&&(t.target,clearTimeout(H5))}const Pi=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(aa()&&o("button"),document.addEventListener("keydown",sh),()=>{document.removeEventListener("keydown",sh)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[_r("focus-guard")]:"",style:Sa};return C.createElement("span",Gn({},e,i))}),ah=C.createContext(null),lh=_r("portal");function W5(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Oi(),s=ch(),a=C.useRef(null);return me(()=>()=>{n==null||n.remove(),queueMicrotask(()=>{a.current=null})},[n]),me(()=>{if(a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=i,c.setAttribute(lh,""),l.appendChild(c),a.current=c,o(c)},[e,i]),me(()=>{if(a.current)return;let l=r||(s==null?void 0:s.portalNode);l&&!pe(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=i,d.setAttribute(lh,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[e,r,i,s]),n}function V5(t){let{children:e,id:r,root:n=null,preserveTabOrder:o=!0}=t;const i=W5({id:r,root:n}),[s,a]=C.useState(null),l=C.useRef(null),c=C.useRef(null),d=C.useRef(null),u=C.useRef(null),f=!!s&&!s.modal&&s.open&&o&&!!(n||i);return C.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function h(p){i&&Jn(p)&&(p.type==="focusin"?j5:$5)(i)}return i.addEventListener("focusin",h,!0),i.addEventListener("focusout",h,!0),()=>{i.removeEventListener("focusin",h,!0),i.removeEventListener("focusout",h,!0)}},[i,o,s==null?void 0:s.modal]),C.createElement(ah.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&C.createElement(Pi,{"data-type":"outside",ref:l,onFocus:h=>{if(Jn(h,i)){var p;(p=d.current)==null||p.focus()}else{const m=ih()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:Sa}),i&&Wa.createPortal(e,i),f&&i&&C.createElement(Pi,{"data-type":"outside",ref:c,onFocus:h=>{if(Jn(h,i)){var p;(p=u.current)==null||p.focus()}else{const m=oh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const ch=()=>C.useContext(ah),R5=20;let Er=[];function Ea(t){Er=Er.filter(r=>r.isConnected);let e=t;if(!(!e||wr(e)==="body")){if(!y5(e,Zn())){const r=Si(e,Zn())[0];if(!r)return;e=r}Er.push(e),Er.length>R5&&(Er=Er.slice(-20))}}function dh(){return Er.slice().reverse().find(t=>t.isConnected)}const Y5=C.forwardRef(function(e,r){return C.createElement("button",Gn({},e,{type:"button",ref:r,tabIndex:-1,style:Sa}))});function uh(t){const{context:e,children:r,disabled:n=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:f,nodeId:h,onOpenChange:p,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Sf(v)&&_,w=F5()?i:!0,S=Mt(o),T=Mt(s),M=Mt(a),N=Xn(),E=ch(),I=C.useRef(null),A=C.useRef(null),D=C.useRef(!1),O=C.useRef(!1),P=E!=null,L=C.useCallback(function($){return $===void 0&&($=y),$?Si($,Zn()):[]},[y]),z=C.useCallback($=>{const W=L($);return S.current.map(V=>v&&V==="reference"?v:y&&V==="floating"?y:W).filter(Boolean).flat()},[v,y,S,L]);C.useEffect(()=>{if(n||!l)return;function $(V){if(V.key==="Tab"){Se(y,Et(Ue(y)))&&L().length===0&&!x&&je(V);const Y=z(),U=rr(V);S.current[0]==="reference"&&U===v&&(je(V),V.shiftKey?Vt(Y[Y.length-1]):Vt(Y[1])),S.current[1]==="floating"&&U===y&&V.shiftKey&&(je(V),Vt(Y[0]))}}const W=Ue(y);return W.addEventListener("keydown",$),()=>{W.removeEventListener("keydown",$)}},[n,v,y,l,S,x,L,z]),C.useEffect(()=>{if(n||!d)return;function $(){O.current=!0,setTimeout(()=>{O.current=!1})}function W(V){const Y=V.relatedTarget;queueMicrotask(()=>{const U=!(Se(v,Y)||Se(y,Y)||Se(Y,y)||Se(E==null?void 0:E.portalNode,Y)||Y!=null&&Y.hasAttribute(_r("focus-guard"))||N&&(Sr(N.nodesRef.current,h).find(K=>{var G,de;return Se((G=K.context)==null?void 0:G.elements.floating,Y)||Se((de=K.context)==null?void 0:de.elements.domReference,Y)})||I5(N.nodesRef.current,h).find(K=>{var G,de;return((G=K.context)==null?void 0:G.elements.floating)===Y||((de=K.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==dh()&&(D.current=!0,p(!1,V))})}if(y&&$e(v))return v.addEventListener("focusout",W),v.addEventListener("pointerdown",$),!l&&y.addEventListener("focusout",W),()=>{v.removeEventListener("focusout",W),v.removeEventListener("pointerdown",$),!l&&y.removeEventListener("focusout",W)}},[n,v,y,l,h,N,E,p,d]),C.useEffect(()=>{var $;if(n)return;const W=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+_r("portal")+"]"))||[]);if(y){const V=[y,...W,I.current,A.current,S.current.includes("reference")||x?v:null].filter(U=>U!=null),Y=l||x?rh(V,w,!w):rh(V);return()=>{Y()}}},[n,v,y,l,S,E,x,w]),me(()=>{if(n||!y)return;const $=Ue(y),W=Et($);queueMicrotask(()=>{const V=z(y),Y=T.current,U=(typeof Y=="number"?V[Y]:Y.current)||y,K=Se(y,W);!_&&!K&&u&&Vt(U,{preventScroll:U===y})})},[n,u,y,_,z,T]),me(()=>{if(n||!y)return;let $=!1;const W=Ue(y),V=Et(W),Y=b.current;Ea(V);function U(K){let{reason:G,event:de,nested:X}=K;G==="escape-key"&&f.domReference.current&&Ea(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,$=!0):D.current=!(Cf(de)||sa(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const K=Et(W),G=Se(y,K)||N&&Sr(N.nodesRef.current,h).some(oe=>{var Ie;return Se((Ie=oe.context)==null?void 0:Ie.elements.floating,K)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Ea(f.domReference.current);const X=dh();M.current&&!D.current&&$e(X)&&(!(X!==K&&K!==W.body)||G)&&Vt(X,{cancelPrevious:!1,preventScroll:$})}},[n,y,M,b,f,m,N,h]),me(()=>{if(!(n||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:p,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,p,f,d]),me(()=>{if(n||!y||typeof MutationObserver!="function"||_)return;const $=()=>{const V=y.getAttribute("tabindex");S.current.includes("floating")||Et(Ue(y))!==f.domReference.current&&L().length===0?V!=="0"&&y.setAttribute("tabindex","0"):V!=="-1"&&y.setAttribute("tabindex","-1")};$();const W=new MutationObserver($);return W.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{W.disconnect()}},[n,y,f,S,L,_]);function B($){return n||!c||!l?null:C.createElement(Y5,{ref:$==="start"?I:A,onClick:W=>p(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(P||l);return C.createElement(C.Fragment,null,j&&C.createElement(Pi,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:$=>{if(l){const V=z();Vt(o[0]==="reference"?V[0]:V[V.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(D.current=!1,Jn($,E.portalNode)){const V=oh()||v;V==null||V.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Pi,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:$=>{if(l)Vt(z()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(D.current=!0),Jn($,E.portalNode)){const V=ih()||v;V==null||V.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const Oa=new Set,U5=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Oi();return me(()=>{if(!n)return;Oa.add(i);const s=/iP(hone|ad|od)|iOS/.test(ia()),a=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=a.left?parseFloat(a.left):window.pageXOffset,f=a.top?parseFloat(a.top):window.pageYOffset;if(a.overflow="hidden",d&&(a[c]=d+"px"),s){var h,p;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{Oa.delete(i),Oa.size===0&&(Object.assign(a,{overflow:"",[c]:""}),s&&(Object.assign(a,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[i,n]),C.createElement("div",Gn({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function fh(t){return $e(t.target)&&t.target.tagName==="BUTTON"}function hh(t){return da(t)}function gh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=t,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=C.useRef(),f=C.useRef(!1);return C.useMemo(()=>s?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(gi(u.current,!0)&&c||a!=="click"&&(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?n(!1,h.nativeEvent,"click"):(h.preventDefault(),n(!0,h.nativeEvent,"click"))))},onClick(h){if(a==="mousedown"&&u.current){u.current=void 0;return}gi(u.current,!0)&&c||(r&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?n(!1,h.nativeEvent,"click"):n(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||fh(h))&&(h.key===" "&&!hh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||fh(h)||hh(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const K5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},q5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ph=t=>{var e,r;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(r=t==null?void 0:t.outsidePress)!=null?r:!0}};function mh(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,nodeId:o,elements:{reference:i,domReference:s,floating:a},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:v}=e,y=Xn(),_=Nt(typeof u=="function"?u:()=>!1),x=typeof u=="function"?_:u,w=C.useRef(!1),S=C.useRef(!1),{escapeKey:T,outsidePress:M}=ph(b),{escapeKey:N,outsidePress:E}=ph(v),I=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?Sr(y.nodesRef.current,o):[];if(!T&&(P.stopPropagation(),L.length>0)){let z=!0;if(L.forEach(B=>{var j;if((j=B.context)!=null&&j.open&&!B.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}n(!1,c2(P)?P.nativeEvent:P,"escape-key")}),A=Nt(P=>{var L;const z=()=>{var B;I(P),(B=rr(P))==null||B.removeEventListener("keydown",z)};(L=rr(P))==null||L.addEventListener("keydown",z)}),D=Nt(P=>{const L=w.current;w.current=!1;const z=S.current;if(S.current=!1,f==="click"&&z||L||typeof x=="function"&&!x(P))return;const B=rr(P),j="["+_r("inert")+"]",$=Ue(a).querySelectorAll(j);let W=pe(B)?B:null;for(;W&&!er(W);){const U=Ht(W);if(er(U)||!pe(U))break;W=U}if($.length&&pe(B)&&!d2(B)&&!Se(B,a)&&Array.from($).every(U=>!Se(W,U)))return;if($e(B)&&a){const U=B.clientWidth>0&&B.scrollWidth>B.clientWidth,K=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=K&&P.offsetX>B.clientWidth;if(K&&ut(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const V=y&&Sr(y.nodesRef.current,o).some(U=>{var K;return ca(P,(K=U.context)==null?void 0:K.elements.floating)});if(ca(P,a)||ca(P,s)||V)return;const Y=y?Sr(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(K=>{var G;if((G=K.context)!=null&&G.open&&!K.context.dataRef.current.__outsidePressBubbles){U=!1;return}}),!U)return}n(!1,P,"outside-press")}),O=Nt(P=>{var L;const z=()=>{var B;D(P),(B=rr(P))==null||B.removeEventListener(f,z)};(L=rr(P))==null||L.addEventListener(f,z)});return C.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=M;function P(B){n(!1,B,"ancestor-scroll")}const L=Ue(a);d&&L.addEventListener("keydown",N?A:I,N),x&&L.addEventListener(f,E?O:D,E);let z=[];return m&&(pe(s)&&(z=tr(s)),pe(a)&&(z=z.concat(tr(a))),!pe(i)&&i&&i.contextElement&&(z=z.concat(tr(i.contextElement)))),z=z.filter(B=>{var j;return B!==((j=L.defaultView)==null?void 0:j.visualViewport)}),z.forEach(B=>{B.addEventListener("scroll",P,{passive:!0})}),()=>{d&&L.removeEventListener("keydown",N?A:I,N),x&&L.removeEventListener(f,E?O:D,E),z.forEach(B=>{B.removeEventListener("scroll",P)})}},[l,a,s,i,d,x,f,r,n,m,c,T,M,I,N,A,D,E,O]),C.useEffect(()=>{w.current=!1},[x,f]),C.useMemo(()=>c?{reference:{onKeyDown:I,[K5[p]]:P=>{h&&n(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:I,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[q5[f]]:()=>{w.current=!0}}}:{},[c,h,f,p,n,I])}let Ta;process.env.NODE_ENV!=="production"&&(Ta=new Set);function bh(t){var e;t===void 0&&(t={});const{open:r=!1,onOpenChange:n,nodeId:o}=t;if(process.env.NODE_ENV!=="production"){var i;const M="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((i=t.elements)!=null&&i.reference&&!pe(t.elements.reference)){var s;if(!((s=Ta)!=null&&s.has(M))){var a;(a=Ta)==null||a.add(M),console.error(M)}}}const[l,c]=C.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=K2(t),f=Xn(),h=Ti()!=null,p=Nt((M,N,E)=>{M&&(b.current.openEvent=N),v.emit("openchange",{open:M,event:N,reason:E,nested:h}),n==null||n(M,N,E)}),m=C.useRef(null),b=C.useRef({}),v=C.useState(()=>M5())[0],y=Oi(),_=C.useCallback(M=>{const N=pe(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(N)},[u.refs]),x=C.useCallback(M=>{(pe(M)||M===null)&&(m.current=M,c(M)),(pe(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!pe(M))&&u.refs.setReference(M)},[u.refs]),w=C.useMemo(()=>({...u.refs,setReference:x,setPositionReference:_,domReference:m}),[u.refs,x,_]),S=C.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),T=C.useMemo(()=>({...u,refs:w,elements:S,dataRef:b,nodeId:o,floatingId:y,events:v,open:r,onOpenChange:p}),[u,o,y,v,r,p,w,S]);return me(()=>{const M=f==null?void 0:f.nodesRef.current.find(N=>N.id===o);M&&(M.context=T)}),C.useMemo(()=>({...u,context:T,refs:w,elements:S}),[u,w,S,T])}function G5(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,events:o,refs:i,elements:{domReference:s}}=t,{enabled:a=!0,visibleOnly:l=!0}=e,c=C.useRef(!1),d=C.useRef(),u=C.useRef(!0);return C.useEffect(()=>{if(!a)return;const f=Qe(s);function h(){!r&&$e(s)&&s===Et(Ue(s))&&(c.current=!0)}function p(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",p,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",p,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:p}=h;(p==="reference-press"||p==="escape-key")&&(c.current=!0)}return o.on("openchange",f),()=>{o.off("openchange",f)}},[o,a]),C.useEffect(()=>()=>{clearTimeout(d.current)},[]),C.useMemo(()=>a?{reference:{onPointerDown(f){sa(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=rr(f.nativeEvent);if(l&&pe(h))try{if(aa()&&_f())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!da(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,p=pe(h)&&h.hasAttribute(_r("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const m=Et(s?s.ownerDocument:document);!h&&m===s||Se(i.floating.current,m)||Se(s,m)||p||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const yh="active",vh="selected";function Na(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[yh]:s,[vh]:a,...l}=t;i=l}return{...r==="floating"&&{tabIndex:-1},...i,...e.map(s=>{const a=s?s[r]:null;return typeof a=="function"?t?a(t):null:a}).concat(t).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(o&&[yh,vh].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof d=="function"){var u;(u=n.get(c))==null||u.push(d),s[c]=function(){for(var f,h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...p)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function xh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Na(i,t,"reference"),e),n=C.useCallback(i=>Na(i,t,"floating"),e),o=C.useCallback(i=>Na(i,t,"item"),t.map(i=>i==null?void 0:i.item));return C.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])}let wh=!1;function Ai(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function kh(t,e){return Ai(e,t===xa||t===Kn,t===Xr||t===Zr)}function Ma(t,e,r){return Ai(e,t===Kn,r?t===Xr:t===Zr)||t==="Enter"||t===" "||t===""}function X5(t,e,r){return Ai(e,r?t===Xr:t===Zr,t===Kn)}function Ch(t,e,r){return Ai(e,r?t===Zr:t===Xr,t===xa)}function Z5(t,e){const{open:r,onOpenChange:n,refs:o,elements:{domReference:i,floating:s}}=t,{listRef:a,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:p=!1,rtl:m=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:_=!0,disabledIndices:x=void 0,orientation:w="vertical",cols:S=1,scrollItemIntoView:T=!0,virtualItemRef:M,itemSizes:N,dense:E=!1}=e;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const I=Ti(),A=Xn(),D=Nt(c),O=C.useRef(v),P=C.useRef(u??-1),L=C.useRef(null),z=C.useRef(!0),B=C.useRef(D),j=C.useRef(!!s),$=C.useRef(!1),W=C.useRef(!1),V=Mt(x),Y=Mt(r),U=Mt(T),[K,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(J,Ee,le){le===void 0&&(le=!1);const re=J.current[Ee.current];re&&(b?(G(re.id),A==null||A.events.emit("virtualfocus",re),M&&(M.current=re)):Vt(re,{preventScroll:!0,sync:_f()&&aa()?wh||$.current:!1}),requestAnimationFrame(()=>{const he=U.current;he&&re&&(le||!z.current)&&(re.scrollIntoView==null||re.scrollIntoView(typeof he=="boolean"?{block:"nearest",inline:"nearest"}:he))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return wh=!0,!1}})},[]),me(()=>{d&&(r&&s?O.current&&u!=null&&(W.current=!0,P.current=u,D(u)):j.current&&(P.current=-1,B.current(null)))},[d,r,s,u,D]),me(()=>{if(d&&r&&s)if(l==null){if($.current=!1,u!=null)return;if(j.current&&(P.current=-1,oe(a,P)),!j.current&&O.current&&(L.current!=null||O.current===!0&&L.current==null)){let J=0;const Ee=()=>{a.current[0]==null?(J<2&&(J?requestAnimationFrame:queueMicrotask)(Ee),J++):(P.current=L.current==null||Ma(L.current,w,m)||p?wa(a,V.current):Xf(a,V.current),L.current=null,D(P.current))};Ee()}}else qn(a,l)||(P.current=l,oe(a,P,W.current),W.current=!1)},[d,r,s,l,u,p,a,w,m,D,oe,V]),me(()=>{var J;if(!d||s||!A||b||!j.current)return;const Ee=A.nodesRef.current,le=(J=Ee.find(Q=>Q.id===I))==null||(J=J.context)==null?void 0:J.elements.floating,re=Et(Ue(s)),he=Ee.some(Q=>Q.context&&Se(Q.context.elements.floating,re));le&&!he&&z.current&&le.focus({preventScroll:!0})},[d,s,A,I,b]),me(()=>{if(!d||!A||!b||I)return;function J(Ee){X(Ee.id),M&&(M.current=Ee)}return A.events.on("virtualfocus",J),()=>{A.events.off("virtualfocus",J)}},[d,A,b,I,M]),me(()=>{B.current=D,j.current=!!s}),me(()=>{r||(L.current=null)},[r]);const Ie=l!=null,He=C.useMemo(()=>{function J(le){if(!r)return;const re=a.current.indexOf(le);re!==-1&&D(re)}return{onFocus(le){let{currentTarget:re}=le;J(re)},onClick:le=>{let{currentTarget:re}=le;return re.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:re}=le;J(re)},onPointerLeave(le){let{pointerType:re}=le;!z.current||re==="touch"||(P.current=-1,oe(a,P),D(null),b||Vt(o.floating.current,{preventScroll:!0}))}}}},[r,o,oe,y,a,D,b]);return C.useMemo(()=>{if(!d)return{};const J=V.current;function Ee(R){if(z.current=!1,$.current=!0,!Y.current&&R.currentTarget===o.floating.current)return;if(p&&Ch(R.key,w,m)){je(R),n(!1,R.nativeEvent,"list-navigation"),$e(i)&&!b&&i.focus();return}const Oe=P.current,ie=wa(a,J),ke=Xf(a,J);if(R.key==="Home"&&(je(R),P.current=ie,D(P.current)),R.key==="End"&&(je(R),P.current=ke,D(P.current)),S>1){const Le=N||Array.from({length:a.current.length},()=>({width:1,height:1})),Pe=w5(Le,S,E),ft=Pe.findIndex(ot=>ot!=null&&!(J!=null&&J.includes(ot))),yt=Pe.reduce((ot,or,it)=>or!=null&&!(J!=null&&J.includes(or))?it:ot,-1);if(P.current=Pe[x5({current:Pe.map(ot=>ot!=null?a.current[ot]:null)},{event:R,orientation:w,loop:h,cols:S,disabledIndices:C5([...J||[],void 0],Pe),minIndex:ft,maxIndex:yt,prevIndex:k5(P.current,Le,Pe,S,R.key===Kn?"bl":R.key===Zr?"tr":"tl"),stopEvent:!0})],D(P.current),w==="both")return}if(kh(R.key,w)){if(je(R),r&&!b&&Et(R.currentTarget.ownerDocument)===R.currentTarget){P.current=Ma(R.key,w,m)?ie:ke,D(P.current);return}Ma(R.key,w,m)?h?P.current=Oe>=ke?f&&Oe!==a.current.length?-1:ie:Ye(a,{startingIndex:Oe,disabledIndices:J}):P.current=Math.min(ke,Ye(a,{startingIndex:Oe,disabledIndices:J})):h?P.current=Oe<=ie?f&&Oe!==-1?a.current.length:ke:Ye(a,{startingIndex:Oe,decrement:!0,disabledIndices:J}):P.current=Math.max(ie,Ye(a,{startingIndex:Oe,decrement:!0,disabledIndices:J})),qn(a,P.current)?D(null):D(P.current)}}function le(R){v==="auto"&&Cf(R.nativeEvent)&&(O.current=!0)}function re(R){O.current=v,v==="auto"&&sa(R.nativeEvent)&&(O.current=!0)}const he=b&&r&&Ie&&{"aria-activedescendant":de||K},Q=a.current.find(R=>(R==null?void 0:R.id)===K);return{reference:{...he,onKeyDown(R){z.current=!1;const Oe=R.key.indexOf("Arrow")===0,ie=X5(R.key,w,m),ke=Ch(R.key,w,m),Le=kh(R.key,w),Pe=(p?ie:Le)||R.key==="Enter"||R.key.trim()==="";if(b&&r){const or=A==null?void 0:A.nodesRef.current.find(Li=>Li.parentId==null),it=A&&or?L5(A.nodesRef.current,or.id):null;if(Oe&&it&&M){const Li=new KeyboardEvent("keydown",{key:R.key,bubbles:!0});if(ie||ke){var ft,yt;const LC=((ft=it.context)==null?void 0:ft.elements.domReference)===R.currentTarget,Yg=ke&&!LC?(yt=it.context)==null?void 0:yt.elements.domReference:ie?Q:null;Yg&&(je(R),Yg.dispatchEvent(Li),X(void 0))}if(Le&&it.context&&it.context.open&&it.parentId&&R.currentTarget!==it.context.elements.domReference){var ot;je(R),(ot=it.context.elements.domReference)==null||ot.dispatchEvent(Li);return}}return Ee(R)}if(!(!r&&!_&&Oe)){if(Pe&&(L.current=p&&Le?null:R.key),p){ie&&(je(R),r?(P.current=wa(a,J),D(P.current)):n(!0,R.nativeEvent,"list-navigation"));return}Le&&(u!=null&&(P.current=u),je(R),!r&&_?n(!0,R.nativeEvent,"list-navigation"):Ee(R),r&&D(P.current))}},onFocus(){r&&D(null)},onPointerDown:re,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Sf(i)&&he,onKeyDown:Ee,onPointerMove(){z.current=!0}},item:He}},[i,o,K,de,V,Y,a,d,w,m,b,r,Ie,p,u,_,f,S,h,v,D,n,He,A,M,N,E])}const J5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function _h(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(r=J5.get(s))!=null?r:s,l=Oi(),d=Ti()!=null;return C.useMemo(()=>{if(!i)return{};const u={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?{reference:{["aria-"+(s==="label"?"labelledby":"describedby")]:n?o:void 0},floating:u}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":n?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&d&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...a==="menu"&&{"aria-labelledby":l}},item(f){let{active:h,selected:p}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&p};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function Q5(t,e){var r;const{open:n,dataRef:o}=t,{listRef:i,activeIndex:s,onMatch:a,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=e,p=C.useRef(),m=C.useRef(""),b=C.useRef((r=h??s)!=null?r:-1),v=C.useRef(null),y=Nt(a),_=Nt(l),x=Mt(d),w=Mt(f);return me(()=>{n&&(clearTimeout(p.current),v.current=null,m.current="")},[n]),me(()=>{if(n&&m.current===""){var S;b.current=(S=h??s)!=null?S:-1}},[n,h,s]),C.useMemo(()=>{if(!c)return{};function S(N){N?o.current.typing||(o.current.typing=N,_(N)):o.current.typing&&(o.current.typing=N,_(N))}function T(N,E,I){const A=x.current?x.current(E,I):E.find(D=>(D==null?void 0:D.toLocaleLowerCase().indexOf(I.toLocaleLowerCase()))===0);return A?N.indexOf(A):-1}function M(N){const E=i.current;if(m.current.length>0&&m.current[0]!==" "&&(T(E,E,m.current)===-1?S(!1):N.key===" "&&je(N)),E==null||w.current.includes(N.key)||N.key.length!==1||N.ctrlKey||N.metaKey||N.altKey)return;n&&N.key!==" "&&(je(N),S(!0)),E.every(O=>{var P,L;return O?((P=O[0])==null?void 0:P.toLocaleLowerCase())!==((L=O[1])==null?void 0:L.toLocaleLowerCase()):!0})&&m.current===N.key&&(m.current="",b.current=v.current),m.current+=N.key,clearTimeout(p.current),p.current=setTimeout(()=>{m.current="",b.current=v.current,S(!1)},u);const A=b.current,D=T(E,[...E.slice((A||0)+1),...E.slice(0,(A||0)+1)],m.current);D!==-1?(y(D),v.current=D):N.key!==" "&&(m.current="",S(!1))}return{reference:{onKeyDown:M},floating:{onKeyDown:M,onKeyUp(N){N.key===" "&&S(!1)}}}},[c,n,o,i,u,w,x,y,_])}function Sh(t,e){const[r,n]=t;let o=!1;const i=e.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=e[s]||[0,0],[d,u]=e[a]||[0,0];c>=n!=u>=n&&r<=(d-l)*(n-c)/(u-c)+l&&(o=!o)}return o}function eC(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function tC(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=t;let o,i=!1,s=null,a=null,l=performance.now();function c(u,f){const h=performance.now(),p=h-l;if(s===null||a===null||p===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/p;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:p,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||p==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,M=[S,T],N=rr(x),E=x.type==="mouseleave",I=Se(m.floating,N),A=Se(m.domReference,N),D=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=p.split("-")[0],L=f>O.right-O.width/2,z=h>O.bottom-O.height/2,B=eC(M,D),j=O.width>D.width,$=O.height>D.height,W=(j?D:O).left,V=(j?D:O).right,Y=($?D:O).top,U=($?D:O).bottom;if(I&&(i=!0,!E))return;if(A&&(i=!1),A&&!E){i=!0;return}if(E&&pe(x.relatedTarget)&&Se(m.floating,x.relatedTarget)||y&&Sr(y.nodesRef.current,v).some(de=>{let{context:X}=de;return X==null?void 0:X.open}))return;if(P==="top"&&h>=D.bottom-1||P==="bottom"&&h<=D.top+1||P==="left"&&f>=D.right-1||P==="right"&&f<=D.left+1)return w();let K=[];switch(P){case"top":K=[[W,D.top+1],[W,O.bottom-1],[V,O.bottom-1],[V,D.top+1]];break;case"bottom":K=[[W,O.top+1],[W,D.bottom-1],[V,D.bottom-1],[V,O.top+1]];break;case"left":K=[[O.right-1,U],[O.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":K=[[D.right-1,U],[D.right-1,Y],[O.left+1,Y],[O.left+1,U]];break}function G(de){let[X,oe]=de;switch(P){case"top":{const Ie=[j?X+e/2:L?X+e*4:X-e*4,oe+e+1],He=[j?X-e/2:L?X+e*4:X-e*4,oe+e+1],J=[[O.left,L||j?O.bottom-e:O.top],[O.right,L?j?O.bottom-e:O.top:O.bottom-e]];return[Ie,He,...J]}case"bottom":{const Ie=[j?X+e/2:L?X+e*4:X-e*4,oe-e],He=[j?X-e/2:L?X+e*4:X-e*4,oe-e],J=[[O.left,L||j?O.top+e:O.bottom],[O.right,L?j?O.top+e:O.bottom:O.top+e]];return[Ie,He,...J]}case"left":{const Ie=[X+e+1,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X+e+1,$?oe-e/2:z?oe+e*4:oe-e*4];return[...[[z||$?O.right-e:O.left,O.top],[z?$?O.right-e:O.left:O.right-e,O.bottom]],Ie,He]}case"right":{const Ie=[X-e,$?oe+e/2:z?oe+e*4:oe-e*4],He=[X-e,$?oe-e/2:z?oe+e*4:oe-e*4],J=[[z||$?O.left+e:O.right,O.top],[z?$?O.left+e:O.right:O.left+e,O.bottom]];return[Ie,He,...J]}}}if(!Sh([S,T],K)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Sh([S,T],G([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const rC=({arrowRef:t,placement:e})=>{const r=[];return r.push(G2(8)),r.push(e==="auto"?J2():Z2()),r.push(X2({padding:8})),t!=null&&t.current&&r.push(Q2({element:t.current})),r},nC=({placement:t})=>t==="auto"?void 0:t,oC=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],Eh=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>bh({placement:nC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:jf,middleware:rC({placement:r,arrowRef:e})}),Oh=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>xh([gh(t,{enabled:e==="click"}),D5(t,{enabled:e==="hover",handleClose:tC()}),mh(t),_h(t,{role:r}),...n]),Th=k.createContext(void 0);function Pa(){const t=k.useContext(Th);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Aa=({className:t,theme:e={},...r})=>{const{theme:n}=Pa(),o=e.divider??n.floating.divider;return g.jsx("div",{className:F(o,t),...r})},Nh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Pa(),i=r.header??o.floating.header;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:F(i,e),...n,children:t}),g.jsx(Aa,{})]})},Mh=k.forwardRef(({children:t,className:e,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=O5({label:typeof t=="string"?t:void 0}),c=Gf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:p}=Pa(),m=u===l,b=H(d.floating.item,o),v=i;return g.jsx("li",{role:"menuitem",className:b.container,children:g.jsxs(Zs,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&p(null)}}),tabIndex:m?0:-1,children:[r&&g.jsx(r,{className:b.icon}),t]})})});Mh.displayName="DropdownItem";const iC={top:b1,right:Hu,bottom:ju,left:m1},sC=({refs:t,children:e,inline:r,theme:n,disabled:o,setButtonWidth:i,getReferenceProps:s,renderTrigger:a,...l})=>{const c=t.reference,d=s();if(k.useEffect(()=>{c.current&&(i==null||i(c.current.clientWidth))},[c,i]),a){const u=a(n);return k.cloneElement(u,{ref:t.setReference,disabled:o,...d,...u.props})}return r?g.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):g.jsx(uf,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Ph=({children:t,className:e,dismissOnClick:r=!0,theme:n={},renderTrigger:o,...i})=>{const[s,a]=k.useState(!1),[l,c]=k.useState(null),[d,u]=k.useState(null),[f,h]=k.useState(void 0),p=k.useRef([]),m=k.useRef([]),b=H(q().dropdown,n),v=i,y=i["data-testid"]||"flowbite-dropdown-target",{placement:_=i.inline?"bottom-start":"bottom",trigger:x="click",label:w,inline:S,arrowIcon:T=!0,...M}=v,N=k.useCallback($=>{u($),a(!1)},[]),E=k.useCallback($=>{s?c($):N($)},[s,N]),{context:I,floatingStyles:A,refs:D}=Eh({open:s,setOpen:a,placement:_}),O=Z5(I,{listRef:p,activeIndex:l,selectedIndex:d,onNavigate:c}),P=Q5(I,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Oh({context:I,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return iC[$]??ju},[_]);return g.jsxs(Th.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:N},children:[g.jsxs(sC,{...M,refs:D,inline:S,theme:b,"data-testid":y,className:F(b.floating.target,M.className),setButtonWidth:h,getReferenceProps:L,renderTrigger:o,children:[w,T&&g.jsx(j,{className:b.arrowIcon})]}),s&&g.jsx(uh,{context:I,modal:!1,children:g.jsx("div",{ref:D.setFloating,style:{...A,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":s,...z({className:F(b.floating.base,b.floating.animation,"duration-100",!s&&b.floating.hidden,b.floating.style.auto,e)}),children:g.jsx(E5,{elementsRef:p,labelsRef:m,children:g.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Ph.displayName="Dropdown",Nh.displayName="Dropdown.Header",Aa.displayName="Dropdown.Divider",Object.assign(Ph,{Item:Mh,Header:Nh,Divider:Aa});const Ah=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=H(q().fileInput,o);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:F(a.root.base,t),children:g.jsx("div",{className:a.field.base,children:g.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&g.jsx(Vn,{color:e,children:r})]})});Ah.displayName="FileInput";const aC=k.forwardRef(({label:t,helperText:e,color:r="default",sizing:n="md",variant:o,disabled:i=!1,theme:s={},className:a,...l},c)=>{const d=k.useId(),u=H(q().floatingLabel,s);return g.jsxs("div",{children:[g.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[g.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:F(u.input[r][o][n],a),placeholder:" ","data-testid":"floating-label",disabled:i,...l,ref:c}),g.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),g.jsx("p",{id:"outlined_helper_text"+d,className:F(u.helperText[r],a),children:e})]})});aC.displayName="FloatingLabel";const Dh=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=H(q().footer.brand,s);return g.jsx("div",{children:n?g.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[g.jsx("img",{alt:t,src:i,className:l.img}),g.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):g.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:i,className:F(l.img,e),...a})})},Ih=({by:t,className:e,href:r,theme:n={},year:o,...i})=>{const s=H(q().footer.copyright,n);return g.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?g.jsx("a",{href:r,className:s.href,children:t}):g.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Lh=({className:t,theme:e={},...r})=>{const n=H(q().footer.divider,e);return g.jsx("hr",{"data-testid":"footer-divider",className:F(n.base,t),...r})},Fh=({ariaLabel:t,className:e,href:r,icon:n,theme:o={},...i})=>{const s=H(q().footer.icon,o);return g.jsx("div",{children:r?g.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:g.jsx(n,{className:s.size})}):g.jsx(n,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},zh=({as:t="a",children:e,className:r,href:n,theme:o={},...i})=>{const s=H(q().footer.groupLink.link,o);return g.jsx("li",{className:F(s.base,r),children:g.jsx(t,{href:n,className:s.href,...i,children:e})})},Bh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=H(q().footer.groupLink,n);return g.jsx("ul",{"data-testid":"footer-groupLink",className:F(i.base,r&&i.col,e),...o,children:t})},$h=({as:t="h2",className:e,theme:r={},title:n,...o})=>{const i=H(q().footer.title,r);return g.jsx(t,{"data-testid":"flowbite-footer-title",className:F(i.base,e),...o,children:n})},jh=({bgDark:t=!1,children:e,className:r,container:n=!1,theme:o={},...i})=>{const s=H(q().footer,o);return g.jsx("footer",{"data-testid":"flowbite-footer",className:F(s.root.base,t&&s.root.bgDark,n&&s.root.container,r),...i,children:e})};jh.displayName="Footer",Ih.displayName="Footer.Copyright",zh.displayName="Footer.Link",Dh.displayName="Footer.Brand",Bh.displayName="Footer.LinkGroup",Fh.displayName="Footer.Icon",$h.displayName="Footer.Title",Lh.displayName="Footer.Divider",Object.assign(jh,{Copyright:Ih,Link:zh,LinkGroup:Bh,Brand:Dh,Icon:Fh,Title:$h,Divider:Lh});const Hh=({children:t,className:e,color:r="default",disabled:n=!1,theme:o={},value:i,...s})=>{const a=H(q().label,o);return g.jsx("label",{className:F(a.root.base,a.root.colors[r],n&&a.root.disabled,e),"data-testid":"flowbite-label",...s,children:i??t??""})};Hh.displayName="Label";const Wh=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=H(q().list.item,n);return g.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&g.jsx(r,{className:F(i.icon)}),t]})},Vh=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=H(q().list,s),c=o?"ol":"ul";return g.jsx(c,{className:F(l.root.base,l.root.ordered[o?"on":"off"],r&&l.root.unstyled,n&&l.root.nested,i&&l.root.horizontal,e),...a,children:t})};Vh.displayName="List",Wh.displayName="List.Item",Object.assign(Vh,{Item:Wh});const Rh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=H(q().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return g.jsx("li",{className:F(c.base,r),children:g.jsxs(u,{href:n,onClick:i,type:d?void 0:"button",disabled:a,className:F(c.link.active[t?"on":"off"],c.link.disabled[a?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[o&&g.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Yh=({children:t,className:e,theme:r={},...n})=>{const o=H(q().listGroup,r);return g.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Yh.displayName="ListGroup",Rh.displayName="ListGroup.Item",Object.assign(Yh,{Item:Rh});const Uh=k.createContext(void 0);function Da(){const t=k.useContext(Uh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Kh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Da(),s=H(o.body,r);return g.jsx("div",{className:F(s.base,i&&[s.popup],e),...n,children:t})},qh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Da(),s=H(o.footer,r);return g.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Gh=({as:t="h3",children:e,className:r,theme:n={},id:o,...i})=>{const s=k.useId(),a=o||s,{theme:l,popup:c,onClose:d,setHeaderId:u}=Da(),f=H(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),g.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[g.jsx(t,{id:a,className:f.title,children:e}),g.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:g.jsx(y1,{"aria-hidden":!0,className:f.close.icon})})]})},Xh=k.forwardRef(({children:t,className:e,dismissible:r=!1,onClose:n,popup:o,position:i="center",root:s,show:a,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,p]=k.useState(void 0),m=H(q().modal,c),{context:b}=bh({open:a,onOpenChange:()=>n&&n()}),v=Gf([b.refs.setFloating,f]),y=gh(b),_=mh(b,{outsidePressEvent:"mousedown",enabled:r}),x=_h(b),{getFloatingProps:w}=xh([y,_,x]);return a?g.jsx(Uh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:p},children:g.jsx(V5,{root:s,children:g.jsx(U5,{lockScroll:!0,"data-testid":"modal-overlay",className:F(m.root.base,m.root.positions[i],a?m.root.show.on:m.root.show.off,e),...u,children:g.jsx(uh,{context:b,initialFocus:d,children:g.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:g.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Xh.displayName="Modal",Gh.displayName="Modal.Header",Kh.displayName="Modal.Body",qh.displayName="Modal.Footer",Object.assign(Xh,{Header:Gh,Body:Kh,Footer:qh});const Zh=k.createContext(void 0);function Di(){const t=k.useContext(Zh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Jh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Di(),s=H(i.brand,n);return g.jsx(t,{className:F(s.base,r),...o,children:e})},Qh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Di(),s=H(o.collapse,r);return g.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:g.jsx("ul",{className:s.list,children:t})})},eg=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Di(),d=H(l.link,i),u=f=>{c(!1),s==null||s(f)};return g.jsx("li",{children:g.jsx(e,{className:F(d.base,t&&d.active.on,!t&&!r&&d.active.off,d.disabled[r?"on":"off"],o),onClick:u,...a,children:n})})},tg=({barIcon:t=rp,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Di(),a=H(o.toggle,r),l=()=>{s(!i)};return g.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[g.jsx("span",{className:"sr-only",children:"Open main menu"}),g.jsx(t,{"aria-hidden":!0,className:a.icon})]})},rg=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=H(q().navbar,s);return g.jsx(Zh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:g.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:g.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};rg.displayName="Navbar",Jh.displayName="Navbar.Brand",Qh.displayName="Navbar.Collapse",eg.displayName="Navbar.Link",tg.displayName="Navbar.Toggle",Object.assign(rg,{Brand:Jh,Collapse:Qh,Link:eg,Toggle:tg});const lC=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),Ia=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=H(q().pagination,o);return g.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};Ia.displayName="Pagination.Button";const La=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=H(q().pagination,n);return g.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};La.displayName="Pagination.Navigation";const ng=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>g.jsx(Ia,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=H(q().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),p=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return g.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&g.jsxs("div",{className:u.layout.table.base,children:["Showing ",g.jsx("span",{className:u.layout.table.span,children:h})," to ",g.jsx("span",{className:u.layout.table.span,children:f})," of ",g.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),g.jsxs("ul",{className:u.pages.base,children:[g.jsx("li",{children:g.jsxs(La,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&g.jsx(Bu,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&lC(h,f).map(b=>g.jsx("li",{"aria-current":b===e?"page":void 0,children:s({className:F(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>o(b),children:b})},b)),g.jsx("li",{children:g.jsxs(La,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:p,disabled:e===c,children:[n,a&&g.jsx($u,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};ng.displayName="Pagination",Object.assign(ng,{Button:Ia});const cC=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=H(q().radio,e);return g.jsx("input",{ref:n,type:"radio",className:F(o.root.base,t),...r})});cC.displayName="Radio";const dC=k.forwardRef(({className:t,sizing:e="md",theme:r={},...n},o)=>{const i=H(q().rangeSlider,r);return g.jsx(g.Fragment,{children:g.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:g.jsx("div",{className:i.field.base,children:g.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});dC.displayName="RangeSlider";const og=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=H(q().ratingAdvanced,n);return g.jsxs("div",{className:F(i.base,e),...o,children:[g.jsx("span",{className:i.label,children:t}),g.jsx("div",{className:i.progress.base,children:g.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),g.jsx("span",{className:i.progress.label,children:`${r}%`})]})},ig=k.createContext(void 0);function uC(){const t=k.useContext(ig);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const sg=({className:t,filled:e=!0,starIcon:r=g1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=uC(),a=H(i.star,n);return g.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},ag=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=H(q().rating,n);return g.jsx(ig.Provider,{value:{theme:i,size:r},children:g.jsx("div",{className:F(i.root.base,e),...o,children:t})})};ag.displayName="Rating",sg.displayName="Rating.Star",og.displayName="Rating.Advanced",Object.assign(ag,{Star:sg,Advanced:og});const fC=k.forwardRef(({addon:t,children:e,className:r,color:n="gray",helperText:o,icon:i,shadow:s,sizing:a="md",theme:l={},...c},d)=>{const u=H(q().select,l);return g.jsxs("div",{className:F(u.base,r),children:[t&&g.jsx("span",{className:u.addon,children:t}),g.jsxs("div",{className:u.field.base,children:[i&&g.jsx("div",{className:u.field.icon.base,children:g.jsx(i,{className:u.field.icon.svg})}),g.jsx("select",{className:F(u.field.select.base,u.field.select.colors[n],u.field.select.sizes[a],u.field.select.withIcon[i?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[s?"on":"off"]),...c,ref:d,children:e}),o&&g.jsx(Vn,{color:n,children:o})]})]})});fC.displayName="Select";const hC=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a,trigger:l="hover",minWidth:c,...d})=>{const u=k.useRef(null),[f,h]=k.useState(!1),p=Eh({open:f,placement:i,arrowRef:u,setOpen:h}),{context:m,middlewareData:{arrow:{x:b,y:v}={}},refs:y,strategy:_,update:x,x:w,y:S}=p,T=G5(m),{getFloatingProps:M,getReferenceProps:N}=Oh({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return jf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...N(),children:r}),g.jsxs("div",{ref:y.setFloating,"data-testid":"flowbite-tooltip",...M({className:F(a.base,t&&`${a.animation} ${t}`,!f&&a.hidden,a.style[s],n),style:{position:_,top:S??" ",left:w??" ",minWidth:c},...d}),children:[g.jsx("div",{className:a.content,children:o}),e&&g.jsx("div",{className:F(a.arrow.base,s==="dark"&&a.arrow.style.dark,s==="light"&&a.arrow.style.light,s==="auto"&&a.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:v??" ",left:b??" ",right:" ",bottom:" ",[oC({placement:p.placement})]:a.arrow.placement},children:" "})]})]})},Fa=({animation:t="duration-300",arrow:e=!0,children:r,className:n,content:o,placement:i="top",style:s="dark",theme:a={},trigger:l="hover",...c})=>{const d=H(q().tooltip,a);return g.jsx(hC,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};Fa.displayName="Tooltip";const lg=k.createContext(void 0);function Qr(){const t=k.useContext(lg);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const za=k.createContext(void 0);function gC(){const t=k.useContext(za);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const cg=({children:t,className:e,icon:r,label:n,chevronIcon:o=zu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=Qr(),p=H(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>g.jsx("li",{children:h&&!d?g.jsx(Fa,{content:n,placement:"right",children:b}):b});return g.jsxs(m,{children:[g.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(p.button,e),...l,children:[r&&g.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(p.icon.base,p.icon.open[d?"on":"off"])}),h?g.jsx("span",{className:"sr-only",children:n}):g.jsxs(g.Fragment,{children:[g.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:p.label.base,children:n}),i?i(p,d):g.jsx(o,{"aria-hidden":!0,className:F(p.label.icon.base,p.label.icon.open[d?"on":"off"])})]})]}),g.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:p.list,children:g.jsx(za.Provider,{value:{isInsideCollapse:!0},children:t})})]})};cg.displayName="Sidebar.Collapse";const dg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=Qr(),a=H(i.cta,n);return g.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};dg.displayName="Sidebar.CTA";const pC=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>g.jsx("li",{...i,children:r?g.jsx(Fa,{content:g.jsx(ug,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),ug=({id:t,theme:e,children:r})=>g.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),fg=k.forwardRef(({active:t,as:e="a",children:r,className:n,icon:o,label:i,labelColor:s="info",theme:a={},...l},c)=>{var m,b,v,y;const d=k.useId(),{theme:u,isCollapsed:f}=Qr(),{isInsideCollapse:h}=gC(),p=H(u.item,a);return g.jsx(pC,{theme:p,className:p.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:g.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(p.base,t&&p.active,!f&&h&&((m=p.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&g.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=p.icon)==null?void 0:b.base,t&&((v=p.icon)==null?void 0:v.active))}),f&&!o&&g.jsx("span",{className:(y=p.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&g.jsx(ug,{id:d,theme:p,children:r}),!f&&i&&g.jsx(of,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:p.label,children:i})]})})});fg.displayName="Sidebar.Item";const hg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.itemGroup,r);return g.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:g.jsx(za.Provider,{value:{isInsideCollapse:!1},children:t})})};hg.displayName="Sidebar.ItemGroup";const gg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.items,r);return g.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};gg.displayName="Sidebar.Items";const pg=({children:t,className:e,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=Qr(),d=H(l.logo,i);return g.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[g.jsx("img",{alt:o,src:n,className:d.img}),g.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};pg.displayName="Sidebar.Logo";const mg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=H(q().sidebar,o);return g.jsx(lg.Provider,{value:{theme:a,isCollapsed:n},children:g.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:g.jsx("div",{className:a.root.inner,children:t})})})};mg.displayName="Sidebar",Object.assign(mg,{Collapse:cg,CTA:dg,Item:fg,Items:gg,ItemGroup:hg,Logo:pg});const bg=k.createContext(void 0);function mC(){const t=k.useContext(bg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const yg=k.createContext(void 0);function Ba(){const t=k.useContext(yg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Ba(),s=H(i.body,r);return g.jsx(bg.Provider,{value:{theme:s},children:g.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});vg.displayName="Table.Body";const xg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=mC(),s=H(i.cell,r);return g.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});xg.displayName="Table.Cell";const wg=k.createContext(void 0);function bC(){const t=k.useContext(wg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const kg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=Ba(),s=H(i.head,r);return g.jsx(wg.Provider,{value:{theme:s},children:g.jsx("thead",{className:F(s.base,e),ref:o,...n,children:g.jsx("tr",{children:t})})})});kg.displayName="Table.Head";const Cg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=bC(),s=H(i.cell,r);return g.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});Cg.displayName="Table.HeadCell";const _g=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=Ba(),l=H(i.row,r);return g.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});_g.displayName="Table.Row";const Sg=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=H(q().table,o);return g.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:g.jsxs(yg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[g.jsx("div",{className:F(a.root.shadow,e)}),g.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});Sg.displayName="Table";const en=Object.assign(Sg,{Head:kg,Body:vg,Row:_g,Cell:xg,HeadCell:Cg}),Eg=({children:t,className:e})=>g.jsx("div",{className:e,children:t});Eg.displayName="Tabs.Item";const Og=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=H(q().tabs,o),l=k.useId(),c=k.useMemo(()=>k.Children.map(k.Children.toArray(t),({props:x})=>x),[t]),d=k.useRef([]),[u,f]=k.useState(Math.max(0,c.findIndex(x=>x.active))),[h,p]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),p(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&p(Math.max(0,h-1)),x.key==="ArrowRight"&&p(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),p(w))},y=a.tablist.tabitem.styles[n],_=a.tabitemcontainer.styles[n];return k.useEffect(()=>{var x;(x=d.current[h])==null||x.focus()},[h]),k.useImperativeHandle(s,()=>({setActiveTab:m})),g.jsxs("div",{className:F(a.base,e),children:[g.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>g.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:F(a.tablist.tabitem.base,y.base,w===u&&y.active.on,w!==u&&!x.disabled&&y.active.off),disabled:x.disabled,id:`${l}-tab-${w}`,onClick:()=>b({target:w}),onKeyDown:S=>v({event:S,target:w}),ref:S=>d.current[w]=S,role:"tab",tabIndex:w===h?0:-1,style:{zIndex:w===h?2:1},children:[x.icon&&g.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),g.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>g.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:a.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:x.children},w))})]})});Og.displayName="Tabs",Object.assign(Og,{Item:Eg});const yC=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=H(q().textarea,o);return g.jsxs(g.Fragment,{children:[g.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&g.jsx(Vn,{color:e,children:r})]})});yC.displayName="Textarea";const Tg=k.createContext(void 0);function $a(){const t=k.useContext(Tg);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Ng=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=$a(),i=H(o.body,r);return g.jsx("div",{className:F(i.base,e),...n,children:t})},Mg=k.createContext(void 0);function ja(){const t=k.useContext(Mg);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Pg=k.createContext(void 0);function Ag(){const t=k.useContext(Pg);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Dg=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=ja(),{theme:i}=Ag(),s=H(i.content,r);return g.jsx(Tg.Provider,{value:{theme:s},children:g.jsx("div",{"data-testid":"timeline-content",className:F(o&&s.root.base,e),...n,children:t})})},Ig=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=ja(),s=H(o.item,r);return g.jsx(Pg.Provider,{value:{theme:s},children:g.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Lg=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=ja(),{theme:s}=Ag(),a=H(s.point,n);return g.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?g.jsx("span",{className:F(a.marker.icon.wrapper),children:g.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):g.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&g.jsx("div",{className:F(a.line)})]})},Fg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=$a(),i=H(o.time,r);return g.jsx("time",{className:F(i.base,e),...n,children:t})},zg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=$a(),s=H(i.title,n);return g.jsx(t,{className:F(s.base,r),...o,children:e})},Bg=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=H(q().timeline,n);return g.jsx(Mg.Provider,{value:{theme:i,horizontal:r},children:g.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};Bg.displayName="Timeline",Ig.displayName="Timeline.Item",Lg.displayName="Timeline.Point",Dg.displayName="Timeline.Content",Fg.displayName="Timeline.Time",zg.displayName="Timeline.Title",Ng.displayName="Timeline.Body",Object.assign(Bg,{Item:Ig,Point:Lg,Content:Dg,Time:Fg,Title:zg,Body:Ng});const $g=k.createContext(void 0);function vC(){const t=k.useContext($g);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const jg=({className:t,onClick:e,theme:r={},xIcon:n=p1,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=vC(),f=H(s.toggle,r),h=p=>{if(e&&e(p),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return g.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:g.jsx(n,{"aria-hidden":!0,className:f.icon})})},xC={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Hg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=H(q().toast,n);return a?null:g.jsx($g.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:g.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,xC[r],i&&c.root.closed,e),...o,children:t})})};Hg.displayName="Toast",jg.displayName="Toast.Toggle",Object.assign(Hg,{Toggle:jg});const wC=k.forwardRef(({checked:t,className:e,color:r="blue",sizing:n="md",disabled:o,label:i,name:s,onChange:a,theme:l={},...c},d)=>{const u=k.useId(),f=H(q().toggleSwitch,l),h=()=>a(!t),p=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return g.jsxs(g.Fragment,{children:[s&&t?g.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,g.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:p,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[g.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:F(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[r],f.toggle.sizes[n])}),i!=null&&i.length?g.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});wC.displayName="ToggleSwitch";const kC=({currentPage:t,totalPages:e,onPageChange:r})=>g.jsxs("div",{className:"flex items-center justify-center gap-4",children:[g.jsx("button",{onClick:()=>r(t-1),disabled:t===1,className:"p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:g.jsx(Bu,{className:"h-5 w-5"})}),g.jsxs("span",{className:"text-sm text-gray-700",children:[t," de ",e]}),g.jsx("button",{onClick:()=>r(t+1),disabled:t===e,className:"p-2 text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:g.jsx($u,{className:"h-5 w-5"})})]}),CC=({columns:t,data:e,showSearch:r=!1,itemsPerPage:n=5,title:o})=>{const[i,s]=C.useState(""),[a,l]=C.useState(1),c=C.useMemo(()=>i.trim()?e.filter(f=>t.some(h=>{const p=f[h.relation];return p!=null&&String(p).toLowerCase().includes(i.toLowerCase().trim())})):e,[e,i,t]),d=C.useMemo(()=>{const f=(a-1)*n,h=f+n;return c.slice(f,h)},[c,a,n]),u=Math.ceil(c.length/n);return g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-4 flex items-center justify-between",children:o&&g.jsx("h2",{className:"text-xl font-bold",children:o})}),g.jsxs("div",{className:"mb-4 flex",children:[r&&g.jsx("div",{className:"w-1/2",children:g.jsx(Qs,{rightIcon:h1,placeholder:"Buscar",value:i,onChange:f=>s(f.target.value)})}),u>1&&g.jsx("div",{className:"flex w-full justify-end",children:g.jsx(kC,{currentPage:a,totalPages:u,onPageChange:l})})]}),g.jsx("div",{className:"overflow-x-auto",children:g.jsxs(en,{striped:!0,children:[g.jsx(en.Head,{children:t.map((f,h)=>g.jsx(en.HeadCell,{children:f.header},h))}),g.jsx("hr",{}),g.jsx(en.Body,{className:"divide-y",children:d.map((f,h)=>g.jsx(en.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:t.map((p,m)=>{const b=f[p.relation];return g.jsx(en.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:p.cell?p.cell(f):b!=null?String(b):""},m)})},h))})]})})]})},Wg={"m-image-container":"layoutOutside-module__m-image-container__sCvFu","m-image":"layoutOutside-module__m-image__kZHyH"},_C=()=>g.jsxs("div",{className:"mt-32",children:[g.jsx(Rt,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/151-41415c0c026df82dbb391c09db474cfa.png",alt:"Logo Mathilde ads",width:400,height:250}),g.jsx("div",{className:Wg["m-image-container"],children:g.jsx(Rt,{classIm:Wg["m-image"],src:"https://ftp.mathilde-ads.com/151-3f28d319ba5adbe318c58ef38b858e50.png",alt:"Logo Mathilde ads",width:400,height:300})})]}),SC=({onOpenModal:t,checked:e,onChange:r,label:n,...o})=>{const i=()=>{e||t(),r(!1)};return g.jsx("div",{className:"mb-5",children:g.jsxs("label",{className:eo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),g.jsx("span",{className:eo.checkmark}),n&&g.jsx("span",{children:n})]})})},Vg=({validations:t})=>{const e=({isValid:n})=>g.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${n?"text-green-500 dark:text-green-400":"text-gray-500 dark:text-gray-400"} shrink-0`,"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:g.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),r=[{key:"hasMinLength",text:"Debe ser minimo de 8 caracteres"},{key:"hasNumber",text:"Debe tener minimo un numero"},{key:"hasUpperCase",text:"Debe tener minimo una letra mayuscula"},{key:"hasLowerCase",text:"Debe tener minimo una letra minuscula"},{key:"hasSpecialChar",text:"Debe tener minimo un caracter especial"}];return g.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:r.map(({key:n,text:o})=>g.jsxs("li",{className:"flex items-center",children:[g.jsx(e,{isValid:t[n]}),o]},n))})},EC=()=>{const[t,e]=k.useState(""),[r,n]=k.useState(""),[o,i]=k.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});k.useEffect(()=>{i({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const s=()=>t.trim()&&r.trim()&&t===r&&Object.values(o).every(l=>l);return{password:t,setPassword:e,confirmPassword:r,setConfirmPassword:n,showError:()=>!s()&&t.trim()&&r.trim(),validations:o}},OC=({formik:t})=>{const{password:e,setPassword:r,confirmPassword:n,setConfirmPassword:o,validations:i}=EC();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"block",children:[g.jsx(Fi,{placeholder:"Contraseña",value:e,onChange:s=>{r(s.target.value),t.setFieldValue("password",s.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),g.jsxs("div",{className:"block",children:[g.jsx(Fi,{placeholder:"Confirmar contraseña",value:n,onChange:s=>{o(s.target.value),t.setFieldValue("confirmPassword",s.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),g.jsx(Vg,{validations:i})]})},TC=({items:t})=>{const[e,r]=k.useState([]),n=i=>{r(s=>s.includes(i)?s.filter(a=>a!==i):[...s,i])},o=(i,s=0)=>g.jsx("ul",{className:"list-none space-y-2",children:i.map(a=>{const l=a.subItems&&a.subItems.length>0,c=e.includes(a.id);return g.jsxs("li",{className:`
499
499
  ${s>0?"ml-7":""}
500
500
  `,children:[g.jsxs("div",{className:"flex items-center gap-2 py-1",children:[g.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&g.jsx("button",{onClick:()=>n(a.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?g.jsx(op,{className:"text-sm text-gray-500"}):g.jsx(np,{className:"text-sm text-gray-500"})}),!l&&g.jsx("div",{className:"w-[28px]"})," ",a.icon&&g.jsx(a.icon,{className:`text-lg ${a.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),g.jsx("a",{href:a.href,className:`
501
501
  flex-grow transition-colors duration-200
502
502
  ${a.isActive?"font-medium text-blue-700 dark:text-blue-500":"text-gray-700 hover:text-blue-600 dark:text-gray-300"}
503
- `,children:a.title})]}),l&&c&&o(a.subItems||[],s+1)]},a.id)})});return g.jsx("nav",{id:"TableOfContents",children:o(t)})},Rg={"image/*":"Imágenes (JPG, PNG, GIF, etc.)","application/pdf":"Documentos PDF","application/msword":"Documentos Word (.doc)","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"Documentos Word (.docx)","application/vnd.ms-excel":"Hojas de cálculo Excel (.xls)","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Hojas de cálculo Excel (.xlsx)","application/vnd.ms-powerpoint":"Presentaciones PowerPoint (.ppt)","application/vnd.openxmlformats-officedocument.presentationml.presentation":"Presentaciones PowerPoint (.pptx)","text/csv":"Archivos CSV","application/json":"Archivos JSON","application/xml":"Archivos XML"},NC=({onChange:t,accept:e="application/pdf",maxSize:r=10,multiple:n=!1,helperText:o=""})=>{const i=Array.isArray(e)?e.join(","):e,s=()=>Array.isArray(e)?e.map(a=>Rg[a]||a).join(", "):Rg[e]||e;return g.jsx("div",{className:"flex w-full items-center justify-center",children:g.jsxs(Hh,{htmlFor:"dropzone-file",className:"flex h-64 w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex w-2/4 items-center justify-center pb-6 pt-5",children:[g.jsx(Rt,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-e44e2ee2d56e5997506c6365eb4d87d3.svg",alt:"icon dropzone",width:74,height:74}),g.jsxs("div",{className:"flex flex-col",children:[g.jsxs("p",{className:"mb-2 text-sm font-light text-gray-400 dark:text-gray-400",children:[g.jsx("span",{className:"font-bold text-gray-500",children:"Arrastra"})," el feed de datos de tu campaña o"," ",g.jsx("span",{className:"font-bold text-gray-500",children:"selecciona el archivo de tu computadora"})," ",o]}),g.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:[g.jsx("span",{className:"font-semibold",children:"Tipos permitidos:"})," ",s()," | ",g.jsx("span",{className:"font-semibold",children:"Tamaño máximo:"})," ",r," MB"]})]})]}),g.jsx(Ah,{id:"dropzone-file",className:"hidden",onChange:t,accept:i,multiple:n})]})})};function MC(t){return ge({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 5v10c0 0.55 0.45 1 1 1h9c0.55 0 1-0.45 1-1v-10h-11zM5 14h-1v-7h1v7zM7 14h-1v-7h1v7zM9 14h-1v-7h1v7zM11 14h-1v-7h1v7z"},child:[]},{tag:"path",attr:{d:"M13.25 2h-3.25v-1.25c0-0.412-0.338-0.75-0.75-0.75h-3.5c-0.412 0-0.75 0.338-0.75 0.75v1.25h-3.25c-0.413 0-0.75 0.337-0.75 0.75v1.25h13v-1.25c0-0.413-0.338-0.75-0.75-0.75zM9 2h-3v-0.987h3v0.987z"},child:[]}]})(t)}const PC=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),r=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${r[e]}`},AC=({files:t,onDelete:e})=>g.jsx("div",{className:"mt-4",children:g.jsx("ul",{className:"list-disc",children:t.map((r,n)=>g.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx(Rt,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:50}),g.jsx("li",{className:"text-base font-semibold text-gray-700",children:r.name})]}),g.jsxs("div",{className:"mx-4 flex items-center",children:[g.jsx("span",{className:"flex text-sm",children:PC(r.size)}),g.jsx(MC,{className:"ml-2 text-4xl text-gray-400 cursor-pointer",onClick:()=>e(r)})]})]},n))})});te.ButtonFormat=Kg,te.CardFormat=ei,te.CardIndicator=up,te.Checkbox=qg,te.Dropzone=NC,te.ImageFormat=Rt,te.InputForm=Ra,te.LayoutOutside=_C,te.ListFile=AC,te.ModalFormat=Ar,te.MyDoughnutChart=Lb,te.PasswordInput=Fi,te.PasswordValidationList=Vg,te.ProgressBar=Xa,te.SelectForm=Za,te.SidebarMth=c1,te.TableComponent=CC,te.TableOfContents=TC,te.TermsCheckbox=SC,te.ValidationPassword=OC,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
503
+ `,children:a.title})]}),l&&c&&o(a.subItems||[],s+1)]},a.id)})});return g.jsx("nav",{id:"TableOfContents",children:o(t)})},Rg={"image/*":"Imágenes (JPG, PNG, GIF, etc.)","application/pdf":"Documentos PDF","application/msword":"Documentos Word (.doc)","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"Documentos Word (.docx)","application/vnd.ms-excel":"Hojas de cálculo Excel (.xls)","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Hojas de cálculo Excel (.xlsx)","application/vnd.ms-powerpoint":"Presentaciones PowerPoint (.ppt)","application/vnd.openxmlformats-officedocument.presentationml.presentation":"Presentaciones PowerPoint (.pptx)","text/csv":"Archivos CSV","application/json":"Archivos JSON","application/xml":"Archivos XML"},NC=({onChange:t,accept:e="application/pdf",maxSize:r=10,multiple:n=!1,helperText:o=""})=>{const i=Array.isArray(e)?e.join(","):e,s=()=>Array.isArray(e)?e.map(a=>Rg[a]||a).join(", "):Rg[e]||e;return g.jsx("div",{className:"flex w-full items-center justify-center",children:g.jsxs(Hh,{htmlFor:"dropzone-file",className:"flex h-64 w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex w-2/4 items-center justify-center pb-6 pt-5",children:[g.jsx(Rt,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-e44e2ee2d56e5997506c6365eb4d87d3.svg",alt:"icon dropzone",width:74,height:74}),g.jsxs("div",{className:"flex flex-col",children:[g.jsxs("p",{className:"mb-2 text-sm font-light text-gray-400 dark:text-gray-400",children:[g.jsx("span",{className:"font-bold text-gray-500",children:"Arrastra"})," el feed de datos de tu campaña o"," ",g.jsx("span",{className:"font-bold text-gray-500",children:"selecciona el archivo de tu computadora"})," ",o]}),g.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:[g.jsx("span",{className:"font-semibold",children:"Tipos permitidos:"})," ",s()," |"," ",g.jsx("span",{className:"font-semibold",children:"Tamaño máximo:"})," ",r," MB"]})]})]}),g.jsx(Ah,{id:"dropzone-file",className:"hidden",onChange:t,accept:i,multiple:n})]})})};function MC(t){return ge({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 5v10c0 0.55 0.45 1 1 1h9c0.55 0 1-0.45 1-1v-10h-11zM5 14h-1v-7h1v7zM7 14h-1v-7h1v7zM9 14h-1v-7h1v7zM11 14h-1v-7h1v7z"},child:[]},{tag:"path",attr:{d:"M13.25 2h-3.25v-1.25c0-0.412-0.338-0.75-0.75-0.75h-3.5c-0.412 0-0.75 0.338-0.75 0.75v1.25h-3.25c-0.413 0-0.75 0.337-0.75 0.75v1.25h13v-1.25c0-0.413-0.338-0.75-0.75-0.75zM9 2h-3v-0.987h3v0.987z"},child:[]}]})(t)}const PC=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),r=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${r[e]}`},AC=({files:t,onDelete:e})=>g.jsx("div",{className:"mt-4",children:g.jsx("ul",{className:"list-disc",children:t.map((r,n)=>g.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx(Rt,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:50}),g.jsx("li",{className:"text-base font-semibold text-gray-700",children:r.name})]}),g.jsxs("div",{className:"mx-4 flex items-center",children:[g.jsx("span",{className:"flex text-sm",children:PC(r.size)}),g.jsx(MC,{className:"ml-2 cursor-pointer text-4xl text-gray-400",onClick:()=>e(r)})]})]},n))})}),DC=(()=>{const{protocol:t,host:e}=window.location;return`${t}//${e}/`})(),IC=({description:t=""})=>g.jsxs("div",{children:[g.jsx("img",{src:`${DC}/public/assets/images/spinner.svg`,alt:t.replace(/<[^>]*>/g,"")}),t&&g.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:t}})]});te.ButtonFormat=Kg,te.CardFormat=ei,te.CardIndicator=up,te.Checkbox=qg,te.Dropzone=NC,te.ImageFormat=Rt,te.InputForm=Ra,te.LayoutOutside=_C,te.ListFile=AC,te.ModalFormat=Ar,te.MyDoughnutChart=Lb,te.PasswordInput=Fi,te.PasswordValidationList=Vg,te.ProgressBar=Xa,te.SelectForm=Za,te.SidebarMth=c1,te.Spinner=IC,te.TableComponent=CC,te.TableOfContents=TC,te.TermsCheckbox=SC,te.ValidationPassword=OC,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});