ui-mathilde-web 0.0.8 → 0.0.9
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.
- package/dist/assets/images/robot.svg +19 -0
- package/dist/assets/images/window.svg +17 -0
- package/dist/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +10 -4
- package/dist/ui-mathilde-web.js +2618 -2601
- package/dist/ui-mathilde-web.umd.cjs +39 -39
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
(function(re,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(re=typeof globalThis<"u"?globalThis:re||self,p(re["ui-mathilde-web"]={},re.jsxRuntime,re.React,re.ReactDOM))})(this,function(re,p,k,Ra){"use strict";var MC=Object.defineProperty;var PC=(re,p,k)=>p in re?MC(re,p,{enumerable:!0,configurable:!0,writable:!0,value:k}):re[p]=k;var ee=(re,p,k)=>PC(re,typeof p!="symbol"?p+"":p,k);var Ii,rr,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),Vg=Va(Ra),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"},Yg=({txtBtn:t,typeButton:e,full:r,onClick:n,disabled:o,type:i})=>p.jsx("div",{className:`${r?Qn["mth-btn-full"]:""}`,children:p.jsx("button",{type:i,className:`${Qn["mth-btn"]} ${Qn[`mth-btn-${e}`]} ${r?Qn["mth-btn-full"]:""}`,onClick:n,disabled:o,children:t})}),eo={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},Ug=({label:t,value:e,checked:r,onChange:n})=>p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",value:e,checked:r,onChange:n}),p.jsx("span",{className:eo.checkmark}),t&&p.jsx("span",{className:"ml-2",children:t})]}),Er=({src:t,alt:e,width:r,height:n,classIm:o})=>p.jsx("img",{className:o,src:t,alt:e,width:r,height:n}),Ya=k.forwardRef(({placeholder:t,label:e,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:" mb-1 block font-semibold",children:e}),p.jsx("input",{ref:l,type:n,placeholder:t,className:`w-full p-2 border ${o||""}`,maxLength:i,onChange:s,...a}),r&&p.jsx("p",{className:"text-red-500 text-sm mt-1",children:r})]}));Ya.displayName="InputForm";var Ua={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qa=k.createContext&&k.createContext(Ua),qg=["attr","size","title"];function Kg(t,e){if(t==null)return{};var r=Gg(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 Gg(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){Xg(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 Xg(t,e,r){return e=Zg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zg(t){var e=Jg(t,"string");return typeof e=="symbol"?e:String(e)}function Jg(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 Ga(t){return t&&t.map((e,r)=>k.createElement(e.tag,ro({key:r},e.attr),Ga(e.child)))}function pe(t){return e=>k.createElement(Qg,to({attr:ro({},t.attr)},e),Ga(t.child))}function Qg(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=Kg(t,qg),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 qa!==void 0?k.createElement(qa.Consumer,null,r=>e(r)):e(Ua)}function ep(t){return pe({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 tp(t){return pe({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 rp(t){return pe({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 np(t){return pe({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 op(t){return pe({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 ip(t){return pe({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 sp(t){return pe({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 ap={"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 p.jsx("div",{className:"mb-5",children:p.jsxs("div",{className:"w-full relative inline-block",children:[p.jsx("input",{type:o?"text":"password",value:r,className:"w-full pr-10 p-2 border",onChange:e,placeholder:t,...n}),p.jsx("button",{type:"button",onClick:s,className:ap["mth-password"],children:o?p.jsx(np,{}):p.jsx(op,{})})]})})},Xa={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},Za=({start:t,end:e,current:r})=>{const n=(r-t)/(e-t)*100;return p.jsxs("div",{className:"relative w-full h-4 bg-gray-200 rounded-full overflow-hidden",children:[p.jsx("div",{className:`absolute top-0 left-0 h-full rounded-full ${n<50?Xa["progress-no-check"]:Xa["progress-check"]}`,style:{width:`${Math.min(n,100)}%`}}),p.jsx("div",{className:"absolute inset-0 flex items-center px-2",children:p.jsxs("span",{className:"text-sm font-medium text-gray-900 z-10",children:[r.toFixed(2),"%"]})})]})},Ja=k.forwardRef(({options:t,label:e,error:r,value:n,onChange:o,...i},s)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:"block mb-1 font-semibold",children:e}),p.jsxs("select",{ref:s,className:"w-full p-2 border rounded",value:n,onChange:o,...i,children:[p.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(a=>p.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&p.jsx("p",{className:"text-red-500 text-sm mt-1",children:r})]}));Ja.displayName="SelectForm";const no=()=>{const{protocol:t,host:e}=window.location;return`${t}//${e}/`},lp=no(),cp=({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 p.jsxs("div",{className:"flex flex-col border px-3.5 py-7",children:[p.jsx("div",{className:"flex justify-end",children:p.jsx(Er,{src:`${lp}/public/assets/images/${t}.svg`,alt:"Icon",width:30,height:30})}),p.jsx("h2",{className:"my-3 font-bold",children:r}),p.jsx("small",{className:"text-3xl",children:s(e)}),p.jsx("div",{className:"mt-2 w-full",children:p.jsx(Za,{start:n,end:o,current:i})})]})};/*!
|
|
1
|
+
(function(re,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(re=typeof globalThis<"u"?globalThis:re||self,p(re["ui-mathilde-web"]={},re.jsxRuntime,re.React,re.ReactDOM))})(this,function(re,p,k,Va){"use strict";var PC=Object.defineProperty;var AC=(re,p,k)=>p in re?PC(re,p,{enumerable:!0,configurable:!0,writable:!0,value:k}):re[p]=k;var ee=(re,p,k)=>AC(re,typeof p!="symbol"?p+"":p,k);var Li,rr,Wa;function Ra(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=Ra(k),Yg=Ra(Va),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"},Ug=({txtBtn:t,typeButton:e,full:r,onClick:n,disabled:o,type:i})=>p.jsx("div",{className:`${r?Qn["mth-btn-full"]:""}`,children:p.jsx("button",{type:i,className:`${Qn["mth-btn"]} ${Qn[`mth-btn-${e}`]} ${r?Qn["mth-btn-full"]:""}`,onClick:n,disabled:o,children:t})}),eo={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},qg=({label:t,value:e,checked:r,onChange:n})=>p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",value:e,checked:r,onChange:n}),p.jsx("span",{className:eo.checkmark}),t&&p.jsx("span",{className:"ml-2",children:t})]}),Er=({src:t,alt:e,width:r,height:n,classIm:o})=>p.jsx("img",{className:o,src:t,alt:e,width:r,height:n}),Ya=k.forwardRef(({placeholder:t,label:e,error:r,type:n,classInclude:o,maxLength:i,onChange:s,...a},l)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:" mb-1 block font-semibold",children:e}),p.jsx("input",{ref:l,type:n,placeholder:t,className:`w-full p-2 border ${o||""}`,maxLength:i,onChange:s,...a}),r&&p.jsx("p",{className:"text-red-500 text-sm mt-1",children:r})]}));Ya.displayName="InputForm";var Ua={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qa=k.createContext&&k.createContext(Ua),Kg=["attr","size","title"];function Gg(t,e){if(t==null)return{};var r=Xg(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 Xg(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){Zg(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 Zg(t,e,r){return e=Jg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jg(t){var e=Qg(t,"string");return typeof e=="symbol"?e:String(e)}function Qg(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 Ga(t){return t&&t.map((e,r)=>k.createElement(e.tag,ro({key:r},e.attr),Ga(e.child)))}function pe(t){return e=>k.createElement(ep,to({attr:ro({},t.attr)},e),Ga(t.child))}function ep(t){var e=r=>{var{attr:n,size:o,title:i}=t,s=Gg(t,Kg),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 qa!==void 0?k.createElement(qa.Consumer,null,r=>e(r)):e(Ua)}function tp(t){return pe({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 rp(t){return pe({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 np(t){return pe({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 op(t){return pe({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 ip(t){return pe({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 sp(t){return pe({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 ap(t){return pe({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 lp={"mth-password":"passwordInput-module__mth-password__R6DoN"},zi=({placeholder:t,onChange:e,value:r,...n})=>{const[o,i]=k.useState(!1),s=()=>{i(!o)};return p.jsx("div",{className:"mb-5",children:p.jsxs("div",{className:"w-full relative inline-block",children:[p.jsx("input",{type:o?"text":"password",value:r,className:"w-full pr-10 p-2 border",onChange:e,placeholder:t,...n}),p.jsx("button",{type:"button",onClick:s,className:lp["mth-password"],children:o?p.jsx(op,{}):p.jsx(ip,{})})]})})},Xa={"progress-check":"progressBar-module__progress-check__TVlHq","progress-no-check":"progressBar-module__progress-no-check__YeVq1"},Za=({start:t,end:e,current:r})=>{const n=(r-t)/(e-t)*100;return p.jsxs("div",{className:"relative w-full h-4 bg-gray-200 rounded-full overflow-hidden",children:[p.jsx("div",{className:`absolute top-0 left-0 h-full rounded-full ${n<50?Xa["progress-no-check"]:Xa["progress-check"]}`,style:{width:`${Math.min(n,100)}%`}}),p.jsx("div",{className:"absolute inset-0 flex items-center px-2",children:p.jsxs("span",{className:"text-sm font-medium text-gray-900 z-10",children:[r.toFixed(2),"%"]})})]})},Ja=k.forwardRef(({options:t,label:e,error:r,value:n,onChange:o,...i},s)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:"block mb-1 font-semibold",children:e}),p.jsxs("select",{ref:s,className:"w-full p-2 border rounded",value:n,onChange:o,...i,children:[p.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(a=>p.jsx("option",{value:a.value,children:a.label},a.value))]}),r&&p.jsx("p",{className:"text-red-500 text-sm mt-1",children:r})]}));Ja.displayName="SelectForm";const no=()=>{const{protocol:t,host:e}=window.location;return`${t}//${e}/`},cp=no(),dp=({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 p.jsxs("div",{className:"flex flex-col border px-3.5 py-7 bg-white",children:[p.jsx("div",{className:"flex justify-end",children:p.jsx(Er,{src:`${cp}/public/assets/images/${t}.svg`,alt:"Icon",width:30,height:30})}),p.jsx("h2",{className:"my-3 font-bold",children:r}),p.jsx("small",{className:"text-3xl",children:s(e)}),p.jsx("div",{className:"mt-2 w-full",children:p.jsx(Za,{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
|
|
5
5
|
* Released under the MIT License
|
|
6
|
-
*/function tn(t){return t+.5|0}const
|
|
6
|
+
*/function tn(t){return t+.5|0}const Rt=(t,e,r)=>Math.max(Math.min(t,r),e);function rn(t){return Rt(tn(t*2.55),0,255)}function Yt(t){return Rt(tn(t*255),0,255)}function Pt(t){return Rt(tn(t/2.55)/100,0,1)}function Qa(t){return Rt(tn(t*100),0,100)}const st={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Bi=[..."0123456789ABCDEF"],up=t=>Bi[t&15],fp=t=>Bi[(t&240)>>4]+Bi[t&15],oo=t=>(t&240)>>4===(t&15),hp=t=>oo(t.r)&&oo(t.g)&&oo(t.b)&&oo(t.a);function gp(t){var e=t.length,r;return t[0]==="#"&&(e===4||e===5?r={r:255&st[t[1]]*17,g:255&st[t[2]]*17,b:255&st[t[3]]*17,a:e===5?st[t[4]]*17:255}:(e===7||e===9)&&(r={r:st[t[1]]<<4|st[t[2]],g:st[t[3]]<<4|st[t[4]],b:st[t[5]]<<4|st[t[6]],a:e===9?st[t[7]]<<4|st[t[8]]:255})),r}const pp=(t,e)=>t<255?e(t):"";function mp(t){var e=hp(t)?up:fp;return t?"#"+e(t.r)+e(t.g)+e(t.b)+pp(t.a,e):void 0}const bp=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function el(t,e,r){const n=e*Math.min(r,1-r),o=(i,s=(i+t/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1);return[o(0),o(8),o(4)]}function yp(t,e,r){const n=(o,i=(o+t/60)%6)=>r-r*e*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function vp(t,e,r){const n=el(t,1,.5);let o;for(e+r>1&&(o=1/(e+r),e*=o,r*=o),o=0;o<3;o++)n[o]*=1-e-r,n[o]+=e;return n}function xp(t,e,r,n,o){return t===o?(e-r)/n+(e<r?6:0):e===o?(r-t)/n+2:(t-e)/n+4}function $i(t){const r=t.r/255,n=t.g/255,o=t.b/255,i=Math.max(r,n,o),s=Math.min(r,n,o),a=(i+s)/2;let l,c,d;return i!==s&&(d=i-s,c=a>.5?d/(2-i-s):d/(i+s),l=xp(r,n,o,d,i),l=l*60+.5),[l|0,c||0,a]}function ji(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(Yt)}function Hi(t,e,r){return ji(el,t,e,r)}function wp(t,e,r){return ji(vp,t,e,r)}function kp(t,e,r){return ji(yp,t,e,r)}function tl(t){return(t%360+360)%360}function Cp(t){const e=bp.exec(t);let r=255,n;if(!e)return;e[5]!==n&&(r=e[6]?rn(+e[5]):Yt(+e[5]));const o=tl(+e[2]),i=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?n=wp(o,i,s):e[1]==="hsv"?n=kp(o,i,s):n=Hi(o,i,s),{r:n[0],g:n[1],b:n[2],a:r}}function _p(t,e){var r=$i(t);r[0]=tl(r[0]+e),r=Hi(r),t.r=r[0],t.g=r[1],t.b=r[2]}function Sp(t){if(!t)return;const e=$i(t),r=e[0],n=Qa(e[1]),o=Qa(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${o}%, ${Pt(t.a)})`:`hsl(${r}, ${n}%, ${o}%)`}const rl={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},nl={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ep(){const t={},e=Object.keys(nl),r=Object.keys(rl);let n,o,i,s,a;for(n=0;n<e.length;n++){for(s=a=e[n],o=0;o<r.length;o++)i=r[o],a=a.replace(i,rl[i]);i=parseInt(nl[s],16),t[a]=[i>>16&255,i>>8&255,i&255]}return t}let io;function Op(t){io||(io=Ep(),io.transparent=[0,0,0,0]);const e=io[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Tp=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Np(t){const e=Tp.exec(t);let r=255,n,o,i;if(e){if(e[7]!==n){const s=+e[7];r=e[8]?rn(s):Rt(s*255,0,255)}return n=+e[1],o=+e[3],i=+e[5],n=255&(e[2]?rn(n):Rt(n,0,255)),o=255&(e[4]?rn(o):Rt(o,0,255)),i=255&(e[6]?rn(i):Rt(i,0,255)),{r:n,g:o,b:i,a:r}}}function Mp(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Pt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Wi=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Or=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Pp(t,e,r){const n=Or(Pt(t.r)),o=Or(Pt(t.g)),i=Or(Pt(t.b));return{r:Yt(Wi(n+r*(Or(Pt(e.r))-n))),g:Yt(Wi(o+r*(Or(Pt(e.g))-o))),b:Yt(Wi(i+r*(Or(Pt(e.b))-i))),a:t.a+r*(e.a-t.a)}}function so(t,e,r){if(t){let n=$i(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,e===0?360:1)),n=Hi(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function ol(t,e){return t&&Object.assign(e||{},t)}function il(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Yt(t[3]))):(e=ol(t,{r:0,g:0,b:0,a:1}),e.a=Yt(e.a)),e}function Ap(t){return t.charAt(0)==="r"?Np(t):Cp(t)}class nn{constructor(e){if(e instanceof nn)return e;const r=typeof e;let n;r==="object"?n=il(e):r==="string"&&(n=gp(e)||Op(e)||Ap(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=ol(this._rgb);return e&&(e.a=Pt(e.a)),e}set rgb(e){this._rgb=il(e)}rgbString(){return this._valid?Mp(this._rgb):void 0}hexString(){return this._valid?mp(this._rgb):void 0}hslString(){return this._valid?Sp(this._rgb):void 0}mix(e,r){if(e){const n=this.rgb,o=e.rgb;let i;const s=r===i?.5:r,a=2*s-1,l=n.a-o.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;i=1-c,n.r=255&c*n.r+i*o.r+.5,n.g=255&c*n.g+i*o.g+.5,n.b=255&c*n.b+i*o.b+.5,n.a=s*n.a+(1-s)*o.a,this.rgb=n}return this}interpolate(e,r){return e&&(this._rgb=Pp(this._rgb,e._rgb,r)),this}clone(){return new nn(this.rgb)}alpha(e){return this._rgb.a=Yt(e),this}clearer(e){const r=this._rgb;return r.a*=1-e,this}greyscale(){const e=this._rgb,r=tn(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=r,this}opaquer(e){const r=this._rgb;return r.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return so(this._rgb,2,e),this}darken(e){return so(this._rgb,2,-e),this}saturate(e){return so(this._rgb,1,e),this}desaturate(e){return so(this._rgb,1,-e),this}rotate(e){return _p(this._rgb,e),this}}/*!
|
|
7
7
|
* Chart.js v4.4.8
|
|
8
8
|
* https://www.chartjs.org
|
|
9
9
|
* (c) 2025 Chart.js Contributors
|
|
10
10
|
* Released under the MIT License
|
|
11
|
-
*/function At(){}const Ap=(()=>{let t=0;return()=>t++})();function He(t){return t==null}function Fe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ne(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Dt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function vt(t,e){return Dt(t)?t:e}function ue(t,e){return typeof t>"u"?e:t}const Dp=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,sl=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function be(t,e,r){if(t&&typeof t.call=="function")return t.apply(r,e)}function fe(t,e,r,n){let o,i,s;if(Fe(t))for(i=t.length,o=0;o<i;o++)e.call(r,t[o],o);else if(ne(t))for(s=Object.keys(t),i=s.length,o=0;o<i;o++)e.call(r,t[s[o]],s[o])}function ao(t,e){let r,n,o,i;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(o=t[r],i=e[r],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function lo(t){if(Fe(t))return t.map(lo);if(ne(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=lo(t[r[o]]);return e}return t}function al(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Ip(t,e,r,n){if(!al(t))return;const o=e[t],i=r[t];ne(o)&&ne(i)?on(o,i,n):e[t]=lo(i)}function on(t,e,r){const n=Fe(e)?e:[e],o=n.length;if(!ne(t))return t;r=r||{};const i=r.merger||Ip;let s;for(let a=0;a<o;++a){if(s=n[a],!ne(s))continue;const l=Object.keys(s);for(let c=0,d=l.length;c<d;++c)i(l[c],t,s,r)}return t}function sn(t,e){return on(t,e,{merger:Lp})}function Lp(t,e,r){if(!al(t))return;const n=e[t],o=r[t];ne(n)&&ne(o)?sn(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=lo(o))}const ll={"":t=>t,x:t=>t.x,y:t=>t.y};function Fp(t){const e=t.split("."),r=[];let n="";for(const o of e)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function zp(t){const e=Fp(t);return r=>{for(const n of e){if(n==="")break;r=r&&r[n]}return r}}function an(t,e){return(ll[e]||(ll[e]=zp(e)))(t)}function Hi(t){return t.charAt(0).toUpperCase()+t.slice(1)}const co=t=>typeof t<"u",Ut=t=>typeof t=="function",cl=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};function Bp(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ae=Math.PI,Ce=2*Ae,uo=Number.POSITIVE_INFINITY,$p=Ae/180,Te=Ae/2,or=Ae/4,dl=Ae*2/3,ul=Math.sign;function jp(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n===0&&(e.push(n),e.push(t/n));return r===(r|0)&&e.push(r),e.sort((o,i)=>o-i).pop(),e}function Wp(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function fo(t){return!Wp(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function ir(t){return t*(Ae/180)}function Hp(t){return t*(180/Ae)}function fl(t,e){const r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i<-.5*Ae&&(i+=Ce),{angle:i,distance:o}}function Rp(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function sr(t){return(t%Ce+Ce)%Ce}function ho(t,e,r,n){const o=sr(t),i=sr(e),s=sr(r),a=sr(i-o),l=sr(s-o),c=sr(o-i),d=sr(o-s);return o===i||o===s||n&&i===s||a>l&&c<d}function at(t,e,r){return Math.max(e,Math.min(r,t))}function Vp(t){return at(t,-32768,32767)}function ln(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function Ri(t,e,r){r=r||(s=>t[s]<e);let n=t.length-1,o=0,i;for(;n-o>1;)i=o+n>>1,r(i)?o=i:n=i;return{lo:o,hi:n}}const Vi=(t,e,r,n)=>Ri(t,r,n?o=>{const i=t[o][e];return i<r||i===r&&t[o+1][e]===r}:o=>t[o][e]<r),Yp=(t,e,r)=>Ri(t,r,n=>t[n][e]>=r);function Up(t,e,r){let n=0,o=t.length;for(;n<o&&t[n]<e;)n++;for(;o>n&&t[o-1]>r;)o--;return n>0||o<t.length?t.slice(n,o):t}const hl=["push","pop","shift","splice","unshift"];function qp(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),hl.forEach(r=>{const n="_onData"+Hi(r),o=t[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value(...i){const s=o.apply(this,i);return t._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...i)}),s}})})}function gl(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(e);o!==-1&&n.splice(o,1),!(n.length>0)&&(hl.forEach(i=>{delete t[i]}),delete t._chartjs)}function Kp(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const pl=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function ml(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,pl.call(window,()=>{n=!1,t.apply(e,r)}))}}function Gp(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}const bl=t=>t==="start"?"left":t==="end"?"right":"center",et=(t,e,r)=>t==="start"?e:t==="end"?r:(e+r)/2,Xp=(t,e,r,n)=>t===(n?"left":"right")?r:t==="center"?(e+r)/2:e,go=t=>t===0||t===1,yl=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ce/r)),vl=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ce/r)+1,cn={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Te)+1,easeOutSine:t=>Math.sin(t*Te),easeInOutSine:t=>-.5*(Math.cos(Ae*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>go(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>go(t)?t:yl(t,.075,.3),easeOutElastic:t=>go(t)?t:vl(t,.075,.3),easeInOutElastic(t){return go(t)?t:t<.5?.5*yl(t*2,.1125,.45):.5+.5*vl(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-cn.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?cn.easeInBounce(t*2)*.5:cn.easeOutBounce(t*2-1)*.5+.5};function xl(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function wl(t){return xl(t)?t:new nn(t)}function Yi(t){return xl(t)?t:new nn(t).saturate(.5).darken(.1).hexString()}const Zp=["x","y","borderWidth","radius","tension"],Jp=["color","borderColor","backgroundColor"];function Qp(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Jp},numbers:{type:"number",properties:Zp}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function e0(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const kl=new Map;function t0(t,e){e=e||{};const r=t+JSON.stringify(e);let n=kl.get(r);return n||(n=new Intl.NumberFormat(t,e),kl.set(r,n)),n}function r0(t,e,r){return t0(e,r).format(t)}var n0={formatters:{values(t){return Fe(t)?t:""+t}}};function o0(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,r)=>r.lineWidth,tickColor:(e,r)=>r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:n0.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const ar=Object.create(null),Ui=Object.create(null);function dn(t,e){if(!e)return t;const r=e.split(".");for(let n=0,o=r.length;n<o;++n){const i=r[n];t=t[i]||(t[i]=Object.create(null))}return t}function qi(t,e,r){return typeof e=="string"?on(dn(t,e),r):on(dn(t,""),e)}class i0{constructor(e,r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,o)=>Yi(o.backgroundColor),this.hoverBorderColor=(n,o)=>Yi(o.borderColor),this.hoverColor=(n,o)=>Yi(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(r)}set(e,r){return qi(this,e,r)}get(e){return dn(this,e)}describe(e,r){return qi(Ui,e,r)}override(e,r){return qi(ar,e,r)}route(e,r,n,o){const i=dn(this,e),s=dn(this,n),a="_"+r;Object.defineProperties(i,{[a]:{value:i[r],writable:!0},[r]:{enumerable:!0,get(){const l=this[a],c=s[o];return ne(l)?Object.assign({},c,l):ue(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(r=>r(this))}}var we=new i0({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Qp,e0,o0]);function s0(t){return!t||He(t.size)||He(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Cl(t,e,r,n,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,r.push(o)),i>n&&(n=i),n}function lr(t,e,r){const n=t.currentDevicePixelRatio,o=r!==0?Math.max(r/2,.5):0;return Math.round((e-o)*n)/n+o}function _l(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Sl(t,e,r,n){El(t,e,r,n,null)}function El(t,e,r,n,o){let i,s,a,l,c,d,u,f;const h=e.pointStyle,g=e.rotation,m=e.radius;let b=(g||0)*$p;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(r,n),t.rotate(b),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),h){default:o?t.ellipse(r,n,o/2,m,0,0,Ce):t.arc(r,n,m,0,Ce),t.closePath();break;case"triangle":d=o?o/2:m,t.moveTo(r+Math.sin(b)*d,n-Math.cos(b)*m),b+=dl,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*m),b+=dl,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*m),t.closePath();break;case"rectRounded":c=m*.516,l=m-c,s=Math.cos(b+or)*l,u=Math.cos(b+or)*(o?o/2-c:l),a=Math.sin(b+or)*l,f=Math.sin(b+or)*(o?o/2-c:l),t.arc(r-u,n-a,c,b-Ae,b-Te),t.arc(r+f,n-s,c,b-Te,b),t.arc(r+u,n+a,c,b,b+Te),t.arc(r-f,n+s,c,b+Te,b+Ae),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,d=o?o/2:l,t.rect(r-d,n-l,2*d,2*l);break}b+=or;case"rectRot":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+f,n-s),t.lineTo(r+u,n+a),t.lineTo(r-f,n+s),t.closePath();break;case"crossRot":b+=or;case"cross":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s);break;case"star":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s),b+=or,u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s);break;case"line":s=o?o/2:Math.cos(b)*m,a=Math.sin(b)*m,t.moveTo(r-s,n-a),t.lineTo(r+s,n+a);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(b)*(o?o/2:m),n+Math.sin(b)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ol(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function Ki(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gi(t){t.restore()}function a0(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),He(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function l0(t,e,r,n,o){if(o.strikethrough||o.underline){const i=t.measureText(n),s=e-i.actualBoundingBoxLeft,a=e+i.actualBoundingBoxRight,l=r-i.actualBoundingBoxAscent,c=r+i.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,d),t.lineTo(a,d),t.stroke()}}function c0(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function po(t,e,r,n,o,i={}){const s=Fe(e)?e:[e],a=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,a0(t,i),l=0;l<s.length;++l)c=s[l],i.backdrop&&c0(t,i.backdrop),a&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),He(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,r,n,i.maxWidth)),t.fillText(c,r,n,i.maxWidth),l0(t,r,n,c,i),n+=Number(o.lineHeight);t.restore()}function Xi(t,e){const{x:r,y:n,w:o,h:i,radius:s}=e;t.arc(r+s.topLeft,n+s.topLeft,s.topLeft,1.5*Ae,Ae,!0),t.lineTo(r,n+i-s.bottomLeft),t.arc(r+s.bottomLeft,n+i-s.bottomLeft,s.bottomLeft,Ae,Te,!0),t.lineTo(r+o-s.bottomRight,n+i),t.arc(r+o-s.bottomRight,n+i-s.bottomRight,s.bottomRight,Te,0,!0),t.lineTo(r+o,n+s.topRight),t.arc(r+o-s.topRight,n+s.topRight,s.topRight,0,-Te,!0),t.lineTo(r+s.topLeft,n)}const d0=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,u0=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function f0(t,e){const r=(""+t).match(d0);if(!r||r[1]==="normal")return e*1.2;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100;break}return e*t}const h0=t=>+t||0;function Zi(t,e){const r={},n=ne(e),o=n?Object.keys(e):e,i=ne(t)?n?s=>ue(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of o)r[s]=h0(i(s));return r}function g0(t){return Zi(t,{top:"y",right:"x",bottom:"y",left:"x"})}function un(t){return Zi(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ht(t){const e=g0(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function qe(t,e){t=t||{},e=e||we.font;let r=ue(t.size,e.size);typeof r=="string"&&(r=parseInt(r,10));let n=ue(t.style,e.style);n&&!(""+n).match(u0)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:ue(t.family,e.family),lineHeight:f0(ue(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:ue(t.weight,e.weight),string:""};return o.string=s0(o),o}function mo(t,e,r,n){let o,i,s;for(o=0,i=t.length;o<i;++o)if(s=t[o],s!==void 0&&s!==void 0)return s}function p0(t,e,r){const{min:n,max:o}=t,i=sl(e,(o-n)/2),s=(a,l)=>r&&a===0?0:a+l;return{min:s(n,-Math.abs(i)),max:s(o,i)}}function Tr(t,e){return Object.assign(Object.create(t),e)}function Ji(t,e=[""],r,n,o=()=>t[0]){const i=r||t;typeof n>"u"&&(n=Al("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:o,override:a=>Ji([a,...t],e,i,n)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return Nl(a,l,()=>C0(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Dl(a).includes(l)},ownKeys(a){return Dl(a)},set(a,l,c){const d=a._storage||(a._storage=o());return a[l]=d[l]=c,delete a._keys,!0}})}function Nr(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:Tl(t,n),setContext:i=>Nr(t,i,r,n),override:i=>Nr(t.override(i),e,r,n)};return new Proxy(o,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,a){return Nl(i,s,()=>b0(i,s,a))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,a){return t[s]=a,delete i[s],!0}})}function Tl(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:r,indexable:n,isScriptable:Ut(r)?r:()=>r,isIndexable:Ut(n)?n:()=>n}}const m0=(t,e)=>t?t+Hi(e):e,Qi=(t,e)=>ne(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Nl(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const n=r();return t[e]=n,n}function b0(t,e,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:s}=t;let a=n[e];return Ut(a)&&s.isScriptable(e)&&(a=y0(e,a,t,r)),Fe(a)&&a.length&&(a=v0(e,a,t,s.isIndexable)),Qi(e,a)&&(a=Nr(a,o,i&&i[e],s)),a}function y0(t,e,r,n){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=r;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(i,s||n);return a.delete(t),Qi(t,l)&&(l=es(o._scopes,o,t,l)),l}function v0(t,e,r,n){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=r;if(typeof i.index<"u"&&n(t))return e[i.index%e.length];if(ne(e[0])){const l=e,c=o._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=es(c,o,t,d);e.push(Nr(u,i,s&&s[t],a))}}return e}function Ml(t,e,r){return Ut(t)?t(e,r):t}const x0=(t,e)=>t===!0?e:typeof t=="string"?an(e,t):void 0;function w0(t,e,r,n,o){for(const i of e){const s=x0(r,i);if(s){t.add(s);const a=Ml(s._fallback,r,o);if(typeof a<"u"&&a!==r&&a!==n)return a}else if(s===!1&&typeof n<"u"&&r!==n)return null}return!1}function es(t,e,r,n){const o=e._rootScopes,i=Ml(e._fallback,r,n),s=[...t,...o],a=new Set;a.add(n);let l=Pl(a,s,r,i||r,n);return l===null||typeof i<"u"&&i!==r&&(l=Pl(a,s,i,l,n),l===null)?!1:Ji(Array.from(a),[""],o,i,()=>k0(e,r,n))}function Pl(t,e,r,n,o){for(;r;)r=w0(t,e,r,n,o);return r}function k0(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];return Fe(o)&&ne(r)?r:o||{}}function C0(t,e,r,n){let o;for(const i of e)if(o=Al(m0(i,t),r),typeof o<"u")return Qi(t,o)?es(r,n,t,o):o}function Al(t,e){for(const r of e){if(!r)continue;const n=r[t];if(typeof n<"u")return n}}function Dl(t){let e=t._keys;return e||(e=t._keys=_0(t._scopes)),e}function _0(t){const e=new Set;for(const r of t)for(const n of Object.keys(r).filter(o=>!o.startsWith("_")))e.add(n);return Array.from(e)}function ts(){return typeof window<"u"&&typeof document<"u"}function rs(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function bo(t,e,r){let n;return typeof t=="string"?(n=parseInt(t,10),t.indexOf("%")!==-1&&(n=n/100*e.parentNode[r])):n=t,n}const yo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function S0(t,e){return yo(t).getPropertyValue(e)}const E0=["top","right","bottom","left"];function cr(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=E0[o];n[i]=parseFloat(t[e+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const O0=(t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot);function T0(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:i}=n;let s=!1,a,l;if(O0(o,i,t.target))a=o,l=i;else{const c=e.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function dr(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=yo(r),i=o.boxSizing==="border-box",s=cr(o,"padding"),a=cr(o,"border","width"),{x:l,y:c,box:d}=T0(t,r),u=s.left+(d&&a.left),f=s.top+(d&&a.top);let{width:h,height:g}=e;return i&&(h-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-u)/h*r.width/n),y:Math.round((c-f)/g*r.height/n)}}function N0(t,e,r){let n,o;if(e===void 0||r===void 0){const i=t&&rs(t);if(!i)e=t.clientWidth,r=t.clientHeight;else{const s=i.getBoundingClientRect(),a=yo(i),l=cr(a,"border","width"),c=cr(a,"padding");e=s.width-c.width-l.width,r=s.height-c.height-l.height,n=bo(a.maxWidth,i,"clientWidth"),o=bo(a.maxHeight,i,"clientHeight")}}return{width:e,height:r,maxWidth:n||uo,maxHeight:o||uo}}const vo=t=>Math.round(t*10)/10;function M0(t,e,r,n){const o=yo(t),i=cr(o,"margin"),s=bo(o.maxWidth,t,"clientWidth")||uo,a=bo(o.maxHeight,t,"clientHeight")||uo,l=N0(t,e,r);let{width:c,height:d}=l;if(o.boxSizing==="content-box"){const f=cr(o,"border","width"),h=cr(o,"padding");c-=h.width+f.width,d-=h.height+f.height}return c=Math.max(0,c-i.width),d=Math.max(0,n?c/n:d-i.height),c=vo(Math.min(c,s,l.maxWidth)),d=vo(Math.min(d,a,l.maxHeight)),c&&!d&&(d=vo(c/2)),(e!==void 0||r!==void 0)&&n&&l.height&&d>l.height&&(d=l.height,c=vo(Math.floor(d*n))),{width:c,height:d}}function Il(t,e,r){const n=e||1,o=Math.floor(t.height*n),i=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(r||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==n||s.height!==o||s.width!==i?(t.currentDevicePixelRatio=n,s.height=o,s.width=i,t.ctx.setTransform(n,0,0,n,0,0),!0):!1}const P0=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};ts()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Ll(t,e){const r=S0(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}const A0=function(t,e){return{x(r){return t+t+e-r},setWidth(r){e=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},D0=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Mr(t,e,r){return t?A0(e,r):D0()}function Fl(t,e){let r,n;(e==="ltr"||e==="rtl")&&(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function zl(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
|
|
11
|
+
*/function At(){}const Dp=(()=>{let t=0;return()=>t++})();function We(t){return t==null}function Fe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ne(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Dt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function vt(t,e){return Dt(t)?t:e}function ue(t,e){return typeof t>"u"?e:t}const Ip=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,sl=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function be(t,e,r){if(t&&typeof t.call=="function")return t.apply(r,e)}function fe(t,e,r,n){let o,i,s;if(Fe(t))for(i=t.length,o=0;o<i;o++)e.call(r,t[o],o);else if(ne(t))for(s=Object.keys(t),i=s.length,o=0;o<i;o++)e.call(r,t[s[o]],s[o])}function ao(t,e){let r,n,o,i;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(o=t[r],i=e[r],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function lo(t){if(Fe(t))return t.map(lo);if(ne(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=lo(t[r[o]]);return e}return t}function al(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Lp(t,e,r,n){if(!al(t))return;const o=e[t],i=r[t];ne(o)&&ne(i)?on(o,i,n):e[t]=lo(i)}function on(t,e,r){const n=Fe(e)?e:[e],o=n.length;if(!ne(t))return t;r=r||{};const i=r.merger||Lp;let s;for(let a=0;a<o;++a){if(s=n[a],!ne(s))continue;const l=Object.keys(s);for(let c=0,d=l.length;c<d;++c)i(l[c],t,s,r)}return t}function sn(t,e){return on(t,e,{merger:Fp})}function Fp(t,e,r){if(!al(t))return;const n=e[t],o=r[t];ne(n)&&ne(o)?sn(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=lo(o))}const ll={"":t=>t,x:t=>t.x,y:t=>t.y};function zp(t){const e=t.split("."),r=[];let n="";for(const o of e)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function Bp(t){const e=zp(t);return r=>{for(const n of e){if(n==="")break;r=r&&r[n]}return r}}function an(t,e){return(ll[e]||(ll[e]=Bp(e)))(t)}function Vi(t){return t.charAt(0).toUpperCase()+t.slice(1)}const co=t=>typeof t<"u",Ut=t=>typeof t=="function",cl=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};function $p(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Ae=Math.PI,Ce=2*Ae,uo=Number.POSITIVE_INFINITY,jp=Ae/180,Te=Ae/2,or=Ae/4,dl=Ae*2/3,ul=Math.sign;function Hp(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n===0&&(e.push(n),e.push(t/n));return r===(r|0)&&e.push(r),e.sort((o,i)=>o-i).pop(),e}function Wp(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function fo(t){return!Wp(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function ir(t){return t*(Ae/180)}function Vp(t){return t*(180/Ae)}function fl(t,e){const r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i<-.5*Ae&&(i+=Ce),{angle:i,distance:o}}function Rp(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function sr(t){return(t%Ce+Ce)%Ce}function ho(t,e,r,n){const o=sr(t),i=sr(e),s=sr(r),a=sr(i-o),l=sr(s-o),c=sr(o-i),d=sr(o-s);return o===i||o===s||n&&i===s||a>l&&c<d}function at(t,e,r){return Math.max(e,Math.min(r,t))}function Yp(t){return at(t,-32768,32767)}function ln(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function Ri(t,e,r){r=r||(s=>t[s]<e);let n=t.length-1,o=0,i;for(;n-o>1;)i=o+n>>1,r(i)?o=i:n=i;return{lo:o,hi:n}}const Yi=(t,e,r,n)=>Ri(t,r,n?o=>{const i=t[o][e];return i<r||i===r&&t[o+1][e]===r}:o=>t[o][e]<r),Up=(t,e,r)=>Ri(t,r,n=>t[n][e]>=r);function qp(t,e,r){let n=0,o=t.length;for(;n<o&&t[n]<e;)n++;for(;o>n&&t[o-1]>r;)o--;return n>0||o<t.length?t.slice(n,o):t}const hl=["push","pop","shift","splice","unshift"];function Kp(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),hl.forEach(r=>{const n="_onData"+Vi(r),o=t[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value(...i){const s=o.apply(this,i);return t._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...i)}),s}})})}function gl(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(e);o!==-1&&n.splice(o,1),!(n.length>0)&&(hl.forEach(i=>{delete t[i]}),delete t._chartjs)}function Gp(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const pl=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function ml(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,pl.call(window,()=>{n=!1,t.apply(e,r)}))}}function Xp(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}const bl=t=>t==="start"?"left":t==="end"?"right":"center",et=(t,e,r)=>t==="start"?e:t==="end"?r:(e+r)/2,Zp=(t,e,r,n)=>t===(n?"left":"right")?r:t==="center"?(e+r)/2:e,go=t=>t===0||t===1,yl=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ce/r)),vl=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ce/r)+1,cn={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Te)+1,easeOutSine:t=>Math.sin(t*Te),easeInOutSine:t=>-.5*(Math.cos(Ae*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>go(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>go(t)?t:yl(t,.075,.3),easeOutElastic:t=>go(t)?t:vl(t,.075,.3),easeInOutElastic(t){return go(t)?t:t<.5?.5*yl(t*2,.1125,.45):.5+.5*vl(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-cn.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?cn.easeInBounce(t*2)*.5:cn.easeOutBounce(t*2-1)*.5+.5};function xl(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function wl(t){return xl(t)?t:new nn(t)}function Ui(t){return xl(t)?t:new nn(t).saturate(.5).darken(.1).hexString()}const Jp=["x","y","borderWidth","radius","tension"],Qp=["color","borderColor","backgroundColor"];function e0(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Qp},numbers:{type:"number",properties:Jp}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function t0(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const kl=new Map;function r0(t,e){e=e||{};const r=t+JSON.stringify(e);let n=kl.get(r);return n||(n=new Intl.NumberFormat(t,e),kl.set(r,n)),n}function n0(t,e,r){return r0(e,r).format(t)}var o0={formatters:{values(t){return Fe(t)?t:""+t}}};function i0(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,r)=>r.lineWidth,tickColor:(e,r)=>r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:o0.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const ar=Object.create(null),qi=Object.create(null);function dn(t,e){if(!e)return t;const r=e.split(".");for(let n=0,o=r.length;n<o;++n){const i=r[n];t=t[i]||(t[i]=Object.create(null))}return t}function Ki(t,e,r){return typeof e=="string"?on(dn(t,e),r):on(dn(t,""),e)}class s0{constructor(e,r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,o)=>Ui(o.backgroundColor),this.hoverBorderColor=(n,o)=>Ui(o.borderColor),this.hoverColor=(n,o)=>Ui(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(r)}set(e,r){return Ki(this,e,r)}get(e){return dn(this,e)}describe(e,r){return Ki(qi,e,r)}override(e,r){return Ki(ar,e,r)}route(e,r,n,o){const i=dn(this,e),s=dn(this,n),a="_"+r;Object.defineProperties(i,{[a]:{value:i[r],writable:!0},[r]:{enumerable:!0,get(){const l=this[a],c=s[o];return ne(l)?Object.assign({},c,l):ue(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(r=>r(this))}}var we=new s0({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[e0,t0,i0]);function a0(t){return!t||We(t.size)||We(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Cl(t,e,r,n,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,r.push(o)),i>n&&(n=i),n}function lr(t,e,r){const n=t.currentDevicePixelRatio,o=r!==0?Math.max(r/2,.5):0;return Math.round((e-o)*n)/n+o}function _l(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Sl(t,e,r,n){El(t,e,r,n,null)}function El(t,e,r,n,o){let i,s,a,l,c,d,u,f;const h=e.pointStyle,g=e.rotation,m=e.radius;let b=(g||0)*jp;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(r,n),t.rotate(b),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),h){default:o?t.ellipse(r,n,o/2,m,0,0,Ce):t.arc(r,n,m,0,Ce),t.closePath();break;case"triangle":d=o?o/2:m,t.moveTo(r+Math.sin(b)*d,n-Math.cos(b)*m),b+=dl,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*m),b+=dl,t.lineTo(r+Math.sin(b)*d,n-Math.cos(b)*m),t.closePath();break;case"rectRounded":c=m*.516,l=m-c,s=Math.cos(b+or)*l,u=Math.cos(b+or)*(o?o/2-c:l),a=Math.sin(b+or)*l,f=Math.sin(b+or)*(o?o/2-c:l),t.arc(r-u,n-a,c,b-Ae,b-Te),t.arc(r+f,n-s,c,b-Te,b),t.arc(r+u,n+a,c,b,b+Te),t.arc(r-f,n+s,c,b+Te,b+Ae),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,d=o?o/2:l,t.rect(r-d,n-l,2*d,2*l);break}b+=or;case"rectRot":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+f,n-s),t.lineTo(r+u,n+a),t.lineTo(r-f,n+s),t.closePath();break;case"crossRot":b+=or;case"cross":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s);break;case"star":u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s),b+=or,u=Math.cos(b)*(o?o/2:m),s=Math.cos(b)*m,a=Math.sin(b)*m,f=Math.sin(b)*(o?o/2:m),t.moveTo(r-u,n-a),t.lineTo(r+u,n+a),t.moveTo(r+f,n-s),t.lineTo(r-f,n+s);break;case"line":s=o?o/2:Math.cos(b)*m,a=Math.sin(b)*m,t.moveTo(r-s,n-a),t.lineTo(r+s,n+a);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(b)*(o?o/2:m),n+Math.sin(b)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ol(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function Gi(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Xi(t){t.restore()}function l0(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),We(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function c0(t,e,r,n,o){if(o.strikethrough||o.underline){const i=t.measureText(n),s=e-i.actualBoundingBoxLeft,a=e+i.actualBoundingBoxRight,l=r-i.actualBoundingBoxAscent,c=r+i.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,d),t.lineTo(a,d),t.stroke()}}function d0(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function po(t,e,r,n,o,i={}){const s=Fe(e)?e:[e],a=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,l0(t,i),l=0;l<s.length;++l)c=s[l],i.backdrop&&d0(t,i.backdrop),a&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),We(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,r,n,i.maxWidth)),t.fillText(c,r,n,i.maxWidth),c0(t,r,n,c,i),n+=Number(o.lineHeight);t.restore()}function Zi(t,e){const{x:r,y:n,w:o,h:i,radius:s}=e;t.arc(r+s.topLeft,n+s.topLeft,s.topLeft,1.5*Ae,Ae,!0),t.lineTo(r,n+i-s.bottomLeft),t.arc(r+s.bottomLeft,n+i-s.bottomLeft,s.bottomLeft,Ae,Te,!0),t.lineTo(r+o-s.bottomRight,n+i),t.arc(r+o-s.bottomRight,n+i-s.bottomRight,s.bottomRight,Te,0,!0),t.lineTo(r+o,n+s.topRight),t.arc(r+o-s.topRight,n+s.topRight,s.topRight,0,-Te,!0),t.lineTo(r+s.topLeft,n)}const u0=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,f0=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function h0(t,e){const r=(""+t).match(u0);if(!r||r[1]==="normal")return e*1.2;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100;break}return e*t}const g0=t=>+t||0;function Ji(t,e){const r={},n=ne(e),o=n?Object.keys(e):e,i=ne(t)?n?s=>ue(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of o)r[s]=g0(i(s));return r}function p0(t){return Ji(t,{top:"y",right:"x",bottom:"y",left:"x"})}function un(t){return Ji(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ht(t){const e=p0(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function qe(t,e){t=t||{},e=e||we.font;let r=ue(t.size,e.size);typeof r=="string"&&(r=parseInt(r,10));let n=ue(t.style,e.style);n&&!(""+n).match(f0)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:ue(t.family,e.family),lineHeight:h0(ue(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:ue(t.weight,e.weight),string:""};return o.string=a0(o),o}function mo(t,e,r,n){let o,i,s;for(o=0,i=t.length;o<i;++o)if(s=t[o],s!==void 0&&s!==void 0)return s}function m0(t,e,r){const{min:n,max:o}=t,i=sl(e,(o-n)/2),s=(a,l)=>r&&a===0?0:a+l;return{min:s(n,-Math.abs(i)),max:s(o,i)}}function Tr(t,e){return Object.assign(Object.create(t),e)}function Qi(t,e=[""],r,n,o=()=>t[0]){const i=r||t;typeof n>"u"&&(n=Al("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:o,override:a=>Qi([a,...t],e,i,n)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return Nl(a,l,()=>_0(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Dl(a).includes(l)},ownKeys(a){return Dl(a)},set(a,l,c){const d=a._storage||(a._storage=o());return a[l]=d[l]=c,delete a._keys,!0}})}function Nr(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:Tl(t,n),setContext:i=>Nr(t,i,r,n),override:i=>Nr(t.override(i),e,r,n)};return new Proxy(o,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,a){return Nl(i,s,()=>y0(i,s,a))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,a){return t[s]=a,delete i[s],!0}})}function Tl(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:r,indexable:n,isScriptable:Ut(r)?r:()=>r,isIndexable:Ut(n)?n:()=>n}}const b0=(t,e)=>t?t+Vi(e):e,es=(t,e)=>ne(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Nl(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const n=r();return t[e]=n,n}function y0(t,e,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:s}=t;let a=n[e];return Ut(a)&&s.isScriptable(e)&&(a=v0(e,a,t,r)),Fe(a)&&a.length&&(a=x0(e,a,t,s.isIndexable)),es(e,a)&&(a=Nr(a,o,i&&i[e],s)),a}function v0(t,e,r,n){const{_proxy:o,_context:i,_subProxy:s,_stack:a}=r;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(i,s||n);return a.delete(t),es(t,l)&&(l=ts(o._scopes,o,t,l)),l}function x0(t,e,r,n){const{_proxy:o,_context:i,_subProxy:s,_descriptors:a}=r;if(typeof i.index<"u"&&n(t))return e[i.index%e.length];if(ne(e[0])){const l=e,c=o._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=ts(c,o,t,d);e.push(Nr(u,i,s&&s[t],a))}}return e}function Ml(t,e,r){return Ut(t)?t(e,r):t}const w0=(t,e)=>t===!0?e:typeof t=="string"?an(e,t):void 0;function k0(t,e,r,n,o){for(const i of e){const s=w0(r,i);if(s){t.add(s);const a=Ml(s._fallback,r,o);if(typeof a<"u"&&a!==r&&a!==n)return a}else if(s===!1&&typeof n<"u"&&r!==n)return null}return!1}function ts(t,e,r,n){const o=e._rootScopes,i=Ml(e._fallback,r,n),s=[...t,...o],a=new Set;a.add(n);let l=Pl(a,s,r,i||r,n);return l===null||typeof i<"u"&&i!==r&&(l=Pl(a,s,i,l,n),l===null)?!1:Qi(Array.from(a),[""],o,i,()=>C0(e,r,n))}function Pl(t,e,r,n,o){for(;r;)r=k0(t,e,r,n,o);return r}function C0(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];return Fe(o)&&ne(r)?r:o||{}}function _0(t,e,r,n){let o;for(const i of e)if(o=Al(b0(i,t),r),typeof o<"u")return es(t,o)?ts(r,n,t,o):o}function Al(t,e){for(const r of e){if(!r)continue;const n=r[t];if(typeof n<"u")return n}}function Dl(t){let e=t._keys;return e||(e=t._keys=S0(t._scopes)),e}function S0(t){const e=new Set;for(const r of t)for(const n of Object.keys(r).filter(o=>!o.startsWith("_")))e.add(n);return Array.from(e)}function rs(){return typeof window<"u"&&typeof document<"u"}function ns(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function bo(t,e,r){let n;return typeof t=="string"?(n=parseInt(t,10),t.indexOf("%")!==-1&&(n=n/100*e.parentNode[r])):n=t,n}const yo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function E0(t,e){return yo(t).getPropertyValue(e)}const O0=["top","right","bottom","left"];function cr(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=O0[o];n[i]=parseFloat(t[e+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const T0=(t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot);function N0(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:i}=n;let s=!1,a,l;if(T0(o,i,t.target))a=o,l=i;else{const c=e.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function dr(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=yo(r),i=o.boxSizing==="border-box",s=cr(o,"padding"),a=cr(o,"border","width"),{x:l,y:c,box:d}=N0(t,r),u=s.left+(d&&a.left),f=s.top+(d&&a.top);let{width:h,height:g}=e;return i&&(h-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-u)/h*r.width/n),y:Math.round((c-f)/g*r.height/n)}}function M0(t,e,r){let n,o;if(e===void 0||r===void 0){const i=t&&ns(t);if(!i)e=t.clientWidth,r=t.clientHeight;else{const s=i.getBoundingClientRect(),a=yo(i),l=cr(a,"border","width"),c=cr(a,"padding");e=s.width-c.width-l.width,r=s.height-c.height-l.height,n=bo(a.maxWidth,i,"clientWidth"),o=bo(a.maxHeight,i,"clientHeight")}}return{width:e,height:r,maxWidth:n||uo,maxHeight:o||uo}}const vo=t=>Math.round(t*10)/10;function P0(t,e,r,n){const o=yo(t),i=cr(o,"margin"),s=bo(o.maxWidth,t,"clientWidth")||uo,a=bo(o.maxHeight,t,"clientHeight")||uo,l=M0(t,e,r);let{width:c,height:d}=l;if(o.boxSizing==="content-box"){const f=cr(o,"border","width"),h=cr(o,"padding");c-=h.width+f.width,d-=h.height+f.height}return c=Math.max(0,c-i.width),d=Math.max(0,n?c/n:d-i.height),c=vo(Math.min(c,s,l.maxWidth)),d=vo(Math.min(d,a,l.maxHeight)),c&&!d&&(d=vo(c/2)),(e!==void 0||r!==void 0)&&n&&l.height&&d>l.height&&(d=l.height,c=vo(Math.floor(d*n))),{width:c,height:d}}function Il(t,e,r){const n=e||1,o=Math.floor(t.height*n),i=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(r||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==n||s.height!==o||s.width!==i?(t.currentDevicePixelRatio=n,s.height=o,s.width=i,t.ctx.setTransform(n,0,0,n,0,0),!0):!1}const A0=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};rs()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Ll(t,e){const r=E0(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}const D0=function(t,e){return{x(r){return t+t+e-r},setWidth(r){e=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},I0=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Mr(t,e,r){return t?D0(e,r):I0()}function Fl(t,e){let r,n;(e==="ltr"||e==="rtl")&&(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function zl(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
|
|
12
12
|
* Chart.js v4.4.8
|
|
13
13
|
* https://www.chartjs.org
|
|
14
14
|
* (c) 2025 Chart.js Contributors
|
|
15
15
|
* Released under the MIT License
|
|
16
|
-
*/class I0{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,r,n,o){const i=r.listeners[o],s=r.duration;i.forEach(a=>a({chart:e,initial:r.initial,numSteps:s,currentStep:Math.min(n-r.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=pl.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let r=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const i=n.items;let s=i.length-1,a=!1,l;for(;s>=0;--s)l=i[s],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(e),a=!0):(i[s]=i[i.length-1],i.pop());a&&(o.draw(),this._notify(o,n,e,"progress")),i.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),r+=i.length}),this._lastDate=e,r===0&&(this._running=!1)}_getAnims(e){const r=this._charts;let n=r.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(e,n)),n}listen(e,r,n){this._getAnims(e).listeners[r].push(n)}add(e,r){!r||!r.length||this._getAnims(e).items.push(...r)}has(e){return this._getAnims(e).items.length>0}start(e){const r=this._charts.get(e);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const r=this._charts.get(e);return!(!r||!r.running||!r.items.length)}stop(e){const r=this._charts.get(e);if(!r||!r.items.length)return;const n=r.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();r.items=[],this._notify(e,r,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var It=new I0;const Bl="transparent",L0={boolean(t,e,r){return r>.5?e:t},color(t,e,r){const n=wl(t||Bl),o=n.valid&&wl(e||Bl);return o&&o.valid?o.mix(n,r).hexString():e},number(t,e,r){return t+(e-t)*r}};class F0{constructor(e,r,n,o){const i=r[n];o=mo([e.to,o,i,e.from]);const s=mo([e.from,i,o]);this._active=!0,this._fn=e.fn||L0[e.type||typeof s],this._easing=cn[e.easing]||cn.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=r,this._prop=n,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(e,r,n){if(this._active){this._notify(!1);const o=this._target[this._prop],i=n-this._start,s=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=mo([e.to,r,o,e.from]),this._from=mo([e.from,o,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const r=e-this._start,n=this._duration,o=this._prop,i=this._from,s=this._loop,a=this._to;let l;if(this._active=i!==a&&(s||r<n),!this._active){this._target[o]=a,this._notify(!0);return}if(r<0){this._target[o]=i;return}l=r/n%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(i,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((r,n)=>{e.push({res:r,rej:n})})}_notify(e){const r=e?"res":"rej",n=this._promises||[];for(let o=0;o<n.length;o++)n[o][r]()}}class $l{constructor(e,r){this._chart=e,this._properties=new Map,this.configure(r)}configure(e){if(!ne(e))return;const r=Object.keys(we.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];if(!ne(i))return;const s={};for(const a of r)s[a]=i[a];(Fe(i.properties)&&i.properties||[o]).forEach(a=>{(a===o||!n.has(a))&&n.set(a,s)})})}_animateOptions(e,r){const n=r.options,o=B0(e,n);if(!o)return[];const i=this._createAnimations(o,n);return n.$shared&&z0(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,r){const n=this._properties,o=[],i=e.$animations||(e.$animations={}),s=Object.keys(r),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,r));continue}const d=r[c];let u=i[c];const f=n.get(c);if(u)if(f&&u.active()){u.update(f,d,a);continue}else u.cancel();if(!f||!f.duration){e[c]=d;continue}i[c]=u=new F0(f,e,c,d),o.push(u)}return o}update(e,r){if(this._properties.size===0){Object.assign(e,r);return}const n=this._createAnimations(e,r);if(n.length)return It.add(this._chart,n),!0}}function z0(t,e){const r=[],n=Object.keys(e);for(let o=0;o<n.length;o++){const i=t[n[o]];i&&i.active()&&r.push(i.wait())}return Promise.all(r)}function B0(t,e){if(!e)return;let r=t.options;if(!r){t.options=e;return}return r.$shared&&(t.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function jl(t,e){const r=t&&t.options||{},n=r.reverse,o=r.min===void 0?e:0,i=r.max===void 0?e:0;return{start:n?i:o,end:n?o:i}}function $0(t,e,r){if(r===!1)return!1;const n=jl(t,r),o=jl(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}function j0(t){let e,r,n,o;return ne(t)?(e=t.top,r=t.right,n=t.bottom,o=t.left):e=r=n=o=t,{top:e,right:r,bottom:n,left:o,disabled:t===!1}}function Wl(t,e){const r=[],n=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=n.length;o<i;++o)r.push(n[o].index);return r}function Hl(t,e,r,n={}){const o=t.keys,i=n.mode==="single";let s,a,l,c;if(e===null)return;let d=!1;for(s=0,a=o.length;s<a;++s){if(l=+o[s],l===r){if(d=!0,n.all)continue;break}c=t.values[l],Dt(c)&&(i||e===0||ul(e)===ul(c))&&(e+=c)}return!d&&!n.all?0:e}function W0(t,e){const{iScale:r,vScale:n}=e,o=r.axis==="x"?"x":"y",i=n.axis==="x"?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,d;for(l=0,c=s.length;l<c;++l)d=s[l],a[l]={[o]:d,[i]:t[d]};return a}function ns(t,e){const r=t&&t.options.stacked;return r||r===void 0&&e.stack!==void 0}function H0(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}function R0(t){const{min:e,max:r,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}function V0(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function Rl(t,e,r,n){for(const o of e.getMatchingVisibleMetas(n).reverse()){const i=t[o.index];if(r&&i>0||!r&&i<0)return o.index}return null}function Vl(t,e){const{chart:r,_cachedMeta:n}=t,o=r._stacks||(r._stacks={}),{iScale:i,vScale:s,index:a}=n,l=i.axis,c=s.axis,d=H0(i,s,n),u=e.length;let f;for(let h=0;h<u;++h){const g=e[h],{[l]:m,[c]:b}=g,v=g._stacks||(g._stacks={});f=v[c]=V0(o,d,m),f[a]=b,f._top=Rl(f,s,!0,n.type),f._bottom=Rl(f,s,!1,n.type);const y=f._visualValues||(f._visualValues={});y[a]=b}}function os(t,e){const r=t.scales;return Object.keys(r).filter(n=>r[n].axis===e).shift()}function Y0(t,e){return Tr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function U0(t,e,r){return Tr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}function fn(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const o of e){const i=o._stacks;if(!i||i[n]===void 0||i[n][r]===void 0)return;delete i[n][r],i[n]._visualValues!==void 0&&i[n]._visualValues[r]!==void 0&&delete i[n]._visualValues[r]}}}const is=t=>t==="reset"||t==="none",Yl=(t,e)=>e?t:Object.assign({},t),q0=(t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:Wl(r,!0),values:null};class hn{constructor(e,r){this.chart=e,this._ctx=e.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ns(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&fn(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,r=this._cachedMeta,n=this.getDataset(),o=(u,f,h,g)=>u==="x"?f:u==="r"?g:h,i=r.xAxisID=ue(n.xAxisID,os(e,"x")),s=r.yAxisID=ue(n.yAxisID,os(e,"y")),a=r.rAxisID=ue(n.rAxisID,os(e,"r")),l=r.indexAxis,c=r.iAxisID=o(l,i,s,a),d=r.vAxisID=o(l,s,i,a);r.xScale=this.getScaleForId(i),r.yScale=this.getScaleForId(s),r.rScale=this.getScaleForId(a),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const r=this._cachedMeta;return e===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&gl(this._data,this),e._stacked&&fn(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),n=this._data;if(ne(r)){const o=this._cachedMeta;this._data=W0(r,o)}else if(n!==r){if(n){gl(n,this);const o=this._cachedMeta;fn(o),o._parsed=[]}r&&Object.isExtensible(r)&&qp(r,this),this._syncList=[],this._data=r}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const r=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const i=r._stacked;r._stacked=ns(r.vScale,r),r.stack!==n.stack&&(o=!0,fn(r),r.stack=n.stack),this._resyncElements(e),(o||i!==r._stacked)&&(Vl(this,r._parsed),r._stacked=ns(r.vScale,r))}configure(){const e=this.chart.config,r=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),r,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,r){const{_cachedMeta:n,_data:o}=this,{iScale:i,_stacked:s}=n,a=i.axis;let l=e===0&&r===o.length?!0:n._sorted,c=e>0&&n._parsed[e-1],d,u,f;if(this._parsing===!1)n._parsed=o,n._sorted=!0,f=o;else{Fe(o[e])?f=this.parseArrayData(n,o,e,r):ne(o[e])?f=this.parseObjectData(n,o,e,r):f=this.parsePrimitiveData(n,o,e,r);const h=()=>u[a]===null||c&&u[a]<c[a];for(d=0;d<r;++d)n._parsed[d+e]=u=f[d],l&&(h()&&(l=!1),c=u);n._sorted=l}s&&Vl(this,f)}parsePrimitiveData(e,r,n,o){const{iScale:i,vScale:s}=e,a=i.axis,l=s.axis,c=i.getLabels(),d=i===s,u=new Array(o);let f,h,g;for(f=0,h=o;f<h;++f)g=f+n,u[f]={[a]:d||i.parse(c[g],g),[l]:s.parse(r[g],g)};return u}parseArrayData(e,r,n,o){const{xScale:i,yScale:s}=e,a=new Array(o);let l,c,d,u;for(l=0,c=o;l<c;++l)d=l+n,u=r[d],a[l]={x:i.parse(u[0],d),y:s.parse(u[1],d)};return a}parseObjectData(e,r,n,o){const{xScale:i,yScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(o);let d,u,f,h;for(d=0,u=o;d<u;++d)f=d+n,h=r[f],c[d]={x:i.parse(an(h,a),f),y:s.parse(an(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,r,n){const o=this.chart,i=this._cachedMeta,s=r[e.axis],a={keys:Wl(o,!0),values:r._stacks[e.axis]._visualValues};return Hl(a,s,i.index,{mode:n})}updateRangeFromParsed(e,r,n,o){const i=n[r.axis];let s=i===null?NaN:i;const a=o&&n._stacks[r.axis];o&&a&&(o.values=a,s=Hl(o,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,r){const n=this._cachedMeta,o=n._parsed,i=n._sorted&&e===n.iScale,s=o.length,a=this._getOtherScale(e),l=q0(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=R0(a);let f,h;function g(){h=o[f];const m=h[a.axis];return!Dt(h[e.axis])||d>m||u<m}for(f=0;f<s&&!(!g()&&(this.updateRangeFromParsed(c,e,h,l),i));++f);if(i){for(f=s-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const r=this._cachedMeta._parsed,n=[];let o,i,s;for(o=0,i=r.length;o<i;++o)s=r[o][e.axis],Dt(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const r=this._cachedMeta,n=r.iScale,o=r.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(e){const r=this._cachedMeta;this.update(e||"default"),r._clip=j0(ue(this.options.clip,$0(r.xScale,r.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,r=this.chart,n=this._cachedMeta,o=n.data||[],i=r.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||o.length-a,c=this.options.drawActiveElementsOnTop;let d;for(n.dataset&&n.dataset.draw(e,i,a,l),d=a;d<a+l;++d){const u=o[d];u.hidden||(u.active&&c?s.push(u):u.draw(e,i))}for(d=0;d<s.length;++d)s[d].draw(e,i)}getStyle(e,r){const n=r?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,r,n){const o=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=U0(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=o.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=Y0(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!r,i.mode=n,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,r){return this._resolveElementOptions(this.dataElementType.id,r,e)}_resolveElementOptions(e,r="default",n){const o=r==="active",i=this._cachedDataOpts,s=e+"-"+r,a=i[s],l=this.enableOptionSharing&&co(n);if(a)return Yl(a,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(we.elements[e]),g=()=>this.getContext(n,o,r),m=c.resolveNamedOptions(f,h,g,u);return m.$shared&&(m.$shared=l,i[s]=Object.freeze(Yl(m,l))),m}_resolveAnimations(e,r,n){const o=this.chart,i=this._cachedDataOpts,s=`animation-${r}`,a=i[s];if(a)return a;let l;if(o.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,r),f=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(f,this.getContext(e,n,r))}const c=new $l(o,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,r){return!r||is(e)||this.chart._animationsDisabled}_getSharedOptions(e,r){const n=this.resolveDataElementOptions(e,r),o=this._sharedOptions,i=this.getSharedOptions(n),s=this.includeOptions(r,i)||i!==o;return this.updateSharedOptions(i,r,n),{sharedOptions:i,includeOptions:s}}updateElement(e,r,n,o){is(o)?Object.assign(e,n):this._resolveAnimations(r,o).update(e,n)}updateSharedOptions(e,r,n){e&&!is(r)&&this._resolveAnimations(void 0,r).update(e,n)}_setStyle(e,r,n,o){e.active=o;const i=this.getStyle(r,o);this._resolveAnimations(r,n,o).update(e,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(e,r,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,r,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const r=this._data,n=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const o=n.length,i=r.length,s=Math.min(i,o);s&&this.parse(0,s),i>o?this._insertElements(o,i-o,e):i<o&&this._removeElements(i,o-i)}_insertElements(e,r,n=!0){const o=this._cachedMeta,i=o.data,s=e+r;let a;const l=c=>{for(c.length+=r,a=c.length-1;a>=s;a--)c[a]=c[a-r]};for(l(i),a=e;a<s;++a)i[a]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(e,r),n&&this.updateElements(i,e,r,"reset")}updateElements(e,r,n,o){}_removeElements(e,r){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,r);n._stacked&&fn(n,o)}n.data.splice(e,r)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[r,n,o]=e;this[r](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,r){r&&this._sync(["_removeElements",e,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ee(hn,"defaults",{}),ee(hn,"datasetElementType",null),ee(hn,"dataElementType",null);function K0(t,e,r){let n=1,o=1,i=0,s=0;if(e<Ce){const a=t,l=a+e,c=Math.cos(a),d=Math.sin(a),u=Math.cos(l),f=Math.sin(l),h=(_,x,w)=>ho(_,a,l,!0)?1:Math.max(x,x*r,w,w*r),g=(_,x,w)=>ho(_,a,l,!0)?-1:Math.min(x,x*r,w,w*r),m=h(0,c,u),b=h(Te,d,f),v=g(Ae,c,u),y=g(Ae+Te,d,f);n=(m-v)/2,o=(b-y)/2,i=-(m+v)/2,s=-(b+y)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:s}}class gn extends hn{constructor(e,r){super(e,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,r){const n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let i=l=>+n[l];if(ne(n[e])){const{key:l="value"}=this._parsing;i=c=>+an(n[c],l)}let s,a;for(s=e,a=e+r;s<a;++s)o._parsed[s]=i(s)}}_getRotation(){return ir(this.options.rotation-90)}_getCircumference(){return ir(this.options.circumference)}_getRotationExtents(){let e=Ce,r=-Ce;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,i=o._getRotation(),s=o._getCircumference();e=Math.min(e,i),r=Math.max(r,i+s)}return{rotation:e,circumference:r-e}}update(e){const r=this.chart,{chartArea:n}=r,o=this._cachedMeta,i=o.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-s)/2,0),l=Math.min(Dp(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:m}=K0(u,d,l),b=(n.width-s)/f,v=(n.height-s)/h,y=Math.max(Math.min(b,v)/2,0),_=sl(this.options.radius,y),x=Math.max(_*l,0),w=(_-x)/this._getVisibleDatasetWeightTotal();this.offsetX=g*_,this.offsetY=m*_,o.total=this.calculateTotal(),this.outerRadius=_-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(i,0,i.length,e)}_circumference(e,r){const n=this.options,o=this._cachedMeta,i=this._getCircumference();return r&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||o._parsed[e]===null||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*i/Ce)}updateElements(e,r,n,o){const i=o==="reset",s=this.chart,a=s.chartArea,c=s.options.animation,d=(a.left+a.right)/2,u=(a.top+a.bottom)/2,f=i&&c.animateScale,h=f?0:this.innerRadius,g=f?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(r,o);let v=this._getRotation(),y;for(y=0;y<r;++y)v+=this._circumference(y,i);for(y=r;y<r+n;++y){const _=this._circumference(y,i),x=e[y],w={x:d+this.offsetX,y:u+this.offsetY,startAngle:v,endAngle:v+_,circumference:_,outerRadius:g,innerRadius:h};b&&(w.options=m||this.resolveDataElementOptions(y,x.active?"active":o)),v+=_,this.updateElement(x,y,w,o)}}calculateTotal(){const e=this._cachedMeta,r=e.data;let n=0,o;for(o=0;o<r.length;o++){const i=e._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!r[o].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(e){const r=this._cachedMeta.total;return r>0&&!isNaN(e)?Ce*(Math.abs(e)/r):0}getLabelAndValue(e){const r=this._cachedMeta,n=this.chart,o=n.data.labels||[],i=r0(r._parsed[e],n.options.locale);return{label:o[e]||"",value:i}}getMaxBorderWidth(e){let r=0;const n=this.chart;let o,i,s,a,l;if(!e){for(o=0,i=n.data.datasets.length;o<i;++o)if(n.isDatasetVisible(o)){s=n.getDatasetMeta(o),e=s.data,a=s.controller;break}}if(!e)return 0;for(o=0,i=e.length;o<i;++o)l=a.resolveDataElementOptions(o),l.borderAlign!=="inner"&&(r=Math.max(r,l.borderWidth||0,l.hoverBorderWidth||0));return r}getMaxOffset(e){let r=0;for(let n=0,o=e.length;n<o;++n){const i=this.resolveDataElementOptions(n);r=Math.max(r,i.offset||0,i.hoverOffset||0)}return r}_getRingWeightOffset(e){let r=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(r+=this._getRingWeight(n));return r}_getRingWeight(e){return Math.max(ue(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ee(gn,"id","doughnut"),ee(gn,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ee(gn,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ee(gn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const r=e.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return r.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}}});function ur(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ss{constructor(e){ee(this,"options");this.options=e||{}}static override(e){Object.assign(ss.prototype,e)}init(){}formats(){return ur()}parse(){return ur()}format(){return ur()}add(){return ur()}diff(){return ur()}startOf(){return ur()}endOf(){return ur()}}var G0={_date:ss};function X0(t,e,r,n){const{controller:o,data:i,_sorted:s}=t,a=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&s&&i.length){const c=a._reversePixels?Yp:Vi;if(n){if(o._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(i,e,r-u),h=c(i,e,r+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(i,e,r);if(l){const{vScale:u}=o._cachedMeta,{_parsed:f}=t,h=f.slice(0,d.lo+1).reverse().findIndex(m=>!He(m[u.axis]));d.lo-=Math.max(0,h);const g=f.slice(d.hi).findIndex(m=>!He(m[u.axis]));d.hi+=Math.max(0,g)}return d}}return{lo:0,hi:i.length-1}}function xo(t,e,r,n,o){const i=t.getSortedVisibleDatasetMetas(),s=r[e];for(let a=0,l=i.length;a<l;++a){const{index:c,data:d}=i[a],{lo:u,hi:f}=X0(i[a],e,s,o);for(let h=u;h<=f;++h){const g=d[h];g.skip||n(g,c,h)}}}function Z0(t){const e=t.indexOf("x")!==-1,r=t.indexOf("y")!==-1;return function(n,o){const i=e?Math.abs(n.x-o.x):0,s=r?Math.abs(n.y-o.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function as(t,e,r,n,o){const i=[];return!o&&!t.isPointInArea(e)||xo(t,r,e,function(a,l,c){!o&&!Ol(a,t.chartArea,0)||a.inRange(e.x,e.y,n)&&i.push({element:a,datasetIndex:l,index:c})},!0),i}function J0(t,e,r,n){let o=[];function i(s,a,l){const{startAngle:c,endAngle:d}=s.getProps(["startAngle","endAngle"],n),{angle:u}=fl(s,{x:e.x,y:e.y});ho(u,c,d)&&o.push({element:s,datasetIndex:a,index:l})}return xo(t,r,e,i),o}function Q0(t,e,r,n,o,i){let s=[];const a=Z0(r);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(e.x,e.y,o);if(n&&!h)return;const g=d.getCenterPoint(o);if(!(!!i||t.isPointInArea(g))&&!h)return;const b=a(e,g);b<l?(s=[{element:d,datasetIndex:u,index:f}],l=b):b===l&&s.push({element:d,datasetIndex:u,index:f})}return xo(t,r,e,c),s}function ls(t,e,r,n,o,i){return!i&&!t.isPointInArea(e)?[]:r==="r"&&!n?J0(t,e,r,o):Q0(t,e,r,n,o,i)}function Ul(t,e,r,n,o){const i=[],s=r==="x"?"inXRange":"inYRange";let a=!1;return xo(t,r,e,(l,c,d)=>{l[s]&&l[s](e[r],o)&&(i.push({element:l,datasetIndex:c,index:d}),a=a||l.inRange(e.x,e.y,o))}),n&&!a?[]:i}var em={modes:{index(t,e,r,n){const o=dr(e,t),i=r.axis||"x",s=r.includeInvisible||!1,a=r.intersect?as(t,o,i,n,s):ls(t,o,i,!1,n,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,r,n){const o=dr(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;let a=r.intersect?as(t,o,i,n,s):ls(t,o,i,!1,n,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let d=0;d<c.length;++d)a.push({element:c[d],datasetIndex:l,index:d})}return a},point(t,e,r,n){const o=dr(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return as(t,o,i,n,s)},nearest(t,e,r,n){const o=dr(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return ls(t,o,i,r.intersect,n,s)},x(t,e,r,n){const o=dr(e,t);return Ul(t,o,"x",r.intersect,n)},y(t,e,r,n){const o=dr(e,t);return Ul(t,o,"y",r.intersect,n)}}};const ql=["left","top","right","bottom"];function pn(t,e){return t.filter(r=>r.pos===e)}function Kl(t,e){return t.filter(r=>ql.indexOf(r.pos)===-1&&r.box.axis===e)}function mn(t,e){return t.sort((r,n)=>{const o=e?n:r,i=e?r:n;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function tm(t){const e=[];let r,n,o,i,s,a;for(r=0,n=(t||[]).length;r<n;++r)o=t[r],{position:i,options:{stack:s,stackWeight:a=1}}=o,e.push({index:r,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return e}function rm(t){const e={};for(const r of t){const{stack:n,pos:o,stackWeight:i}=r;if(!n||!ql.includes(o))continue;const s=e[n]||(e[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function nm(t,e){const r=rm(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let i,s,a;for(i=0,s=t.length;i<s;++i){a=t[i];const{fullSize:l}=a.box,c=r[a.stack],d=c&&a.stackWeight/c.weight;a.horizontal?(a.width=d?d*n:l&&e.availableWidth,a.height=o):(a.width=n,a.height=d?d*o:l&&e.availableHeight)}return r}function om(t){const e=tm(t),r=mn(e.filter(c=>c.box.fullSize),!0),n=mn(pn(e,"left"),!0),o=mn(pn(e,"right")),i=mn(pn(e,"top"),!0),s=mn(pn(e,"bottom")),a=Kl(e,"x"),l=Kl(e,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:pn(e,"chartArea"),vertical:n.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}function Gl(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function Xl(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function im(t,e,r,n){const{pos:o,box:i}=r,s=t.maxPadding;if(!ne(o)){r.size&&(t[o]-=r.size);const u=n[r.stack]||{size:0,count:1};u.size=Math.max(u.size,r.horizontal?i.height:i.width),r.size=u.size/u.count,t[o]+=r.size}i.getPadding&&Xl(s,i.getPadding());const a=Math.max(0,e.outerWidth-Gl(s,t,"left","right")),l=Math.max(0,e.outerHeight-Gl(s,t,"top","bottom")),c=a!==t.w,d=l!==t.h;return t.w=a,t.h=l,r.horizontal?{same:c,other:d}:{same:d,other:c}}function sm(t){const e=t.maxPadding;function r(n){const o=Math.max(e[n]-t[n],0);return t[n]+=o,o}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}function am(t,e){const r=e.maxPadding;function n(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(s=>{i[s]=Math.max(e[s],r[s])}),i}return n(t?["left","right"]:["top","bottom"])}function bn(t,e,r,n){const o=[];let i,s,a,l,c,d;for(i=0,s=t.length,c=0;i<s;++i){a=t[i],l=a.box,l.update(a.width||e.w,a.height||e.h,am(a.horizontal,e));const{same:u,other:f}=im(e,r,a,n);c|=u&&o.length,d=d||f,l.fullSize||o.push(a)}return c&&bn(o,e,r,n)||d}function wo(t,e,r,n,o){t.top=r,t.left=e,t.right=e+n,t.bottom=r+o,t.width=n,t.height=o}function Zl(t,e,r,n){const o=r.padding;let{x:i,y:s}=e;for(const a of t){const l=a.box,c=n[a.stack]||{placed:0,weight:1},d=a.stackWeight/c.weight||1;if(a.horizontal){const u=e.w*d,f=c.size||l.height;co(c.start)&&(s=c.start),l.fullSize?wo(l,o.left,s,r.outerWidth-o.right-o.left,f):wo(l,e.left+c.placed,s,u,f),c.start=s,c.placed+=u,s=l.bottom}else{const u=e.h*d,f=c.size||l.width;co(c.start)&&(i=c.start),l.fullSize?wo(l,i,o.top,f,r.outerHeight-o.bottom-o.top):wo(l,i,e.top+c.placed,f,u),c.start=i,c.placed+=u,i=l.right}}e.x=i,e.y=s}var qt={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(r){e.draw(r)}}]},t.boxes.push(e)},removeBox(t,e){const r=t.boxes?t.boxes.indexOf(e):-1;r!==-1&&t.boxes.splice(r,1)},configure(t,e,r){e.fullSize=r.fullSize,e.position=r.position,e.weight=r.weight},update(t,e,r,n){if(!t)return;const o=ht(t.options.layout.padding),i=Math.max(e-o.width,0),s=Math.max(r-o.height,0),a=om(t.boxes),l=a.vertical,c=a.horizontal;fe(t.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const d=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:r,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/d,hBoxMaxHeight:s/2}),f=Object.assign({},o);Xl(f,ht(n));const h=Object.assign({maxPadding:f,w:i,h:s,x:o.left,y:o.top},o),g=nm(l.concat(c),u);bn(a.fullSize,h,u,g),bn(l,h,u,g),bn(c,h,u,g)&&bn(l,h,u,g),sm(h),Zl(a.leftAndTop,h,u,g),h.x+=h.w,h.y+=h.h,Zl(a.rightAndBottom,h,u,g),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},fe(a.chartArea,m=>{const b=m.box;Object.assign(b,t.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Jl{acquireContext(e,r){}releaseContext(e){return!1}addEventListener(e,r,n){}removeEventListener(e,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,r,n,o){return r=Math.max(0,r||e.width),n=n||e.height,{width:r,height:Math.max(0,o?Math.floor(r/o):n)}}isAttached(e){return!0}updateConfig(e){}}class lm extends Jl{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ko="$chartjs",cm={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ql=t=>t===null||t==="";function dm(t,e){const r=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[ko]={initial:{height:n,width:o,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",Ql(o)){const i=Ll(t,"width");i!==void 0&&(t.width=i)}if(Ql(n))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Ll(t,"height");i!==void 0&&(t.height=i)}return t}const ec=P0?{passive:!0}:!1;function um(t,e,r){t&&t.addEventListener(e,r,ec)}function fm(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,ec)}function hm(t,e){const r=cm[t.type]||t.type,{x:n,y:o}=dr(t,e);return{type:r,chart:e,native:t,x:n!==void 0?n:null,y:o!==void 0?o:null}}function Co(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function gm(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Co(a.addedNodes,n),s=s&&!Co(a.removedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}function pm(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Co(a.removedNodes,n),s=s&&!Co(a.addedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}const yn=new Map;let tc=0;function rc(){const t=window.devicePixelRatio;t!==tc&&(tc=t,yn.forEach((e,r)=>{r.currentDevicePixelRatio!==t&&e()}))}function mm(t,e){yn.size||window.addEventListener("resize",rc),yn.set(t,e)}function bm(t){yn.delete(t),yn.size||window.removeEventListener("resize",rc)}function ym(t,e,r){const n=t.canvas,o=n&&rs(n);if(!o)return;const i=ml((a,l)=>{const c=o.clientWidth;r(a,l),c<o.clientWidth&&r()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||i(c,d)});return s.observe(o),mm(t,i),s}function cs(t,e,r){r&&r.disconnect(),e==="resize"&&bm(t)}function vm(t,e,r){const n=t.canvas,o=ml(i=>{t.ctx!==null&&r(hm(i,t))},t);return um(n,e,o),o}class xm extends Jl{acquireContext(e,r){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(dm(e,r),n):null}releaseContext(e){const r=e.canvas;if(!r[ko])return!1;const n=r[ko].initial;["height","width"].forEach(i=>{const s=n[i];He(s)?r.removeAttribute(i):r.setAttribute(i,s)});const o=n.style||{};return Object.keys(o).forEach(i=>{r.style[i]=o[i]}),r.width=r.width,delete r[ko],!0}addEventListener(e,r,n){this.removeEventListener(e,r);const o=e.$proxies||(e.$proxies={}),s={attach:gm,detach:pm,resize:ym}[r]||vm;o[r]=s(e,r,n)}removeEventListener(e,r){const n=e.$proxies||(e.$proxies={}),o=n[r];if(!o)return;({attach:cs,detach:cs,resize:cs}[r]||fm)(e,r,o),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,r,n,o){return M0(e,r,n,o)}isAttached(e){const r=e&&rs(e);return!!(r&&r.isConnected)}}function wm(t){return!ts()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?lm:xm}let vn=(Ii=class{constructor(){ee(this,"x");ee(this,"y");ee(this,"active",!1);ee(this,"options");ee(this,"$animations")}tooltipPosition(e){const{x:r,y:n}=this.getProps(["x","y"],e);return{x:r,y:n}}hasValue(){return fo(this.x)&&fo(this.y)}getProps(e,r){const n=this.$animations;if(!r||!n)return this;const o={};return e.forEach(i=>{o[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),o}},ee(Ii,"defaults",{}),ee(Ii,"defaultRoutes"),Ii);function km(t,e){const r=t.options.ticks,n=Cm(t),o=Math.min(r.maxTicksLimit||n,n),i=r.major.enabled?Sm(e):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>o)return Em(e,c,i,s/o),c;const d=_m(i,e,o);if(s>0){let u,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(_o(e,c,d,He(h)?0:a-h,a),u=0,f=s-1;u<f;u++)_o(e,c,d,i[u],i[u+1]);return _o(e,c,d,l,He(h)?e.length:l+h),c}return _o(e,c,d),c}function Cm(t){const e=t.options.offset,r=t._tickSize(),n=t._length/r+(e?0:1),o=t._maxLength/r;return Math.floor(Math.min(n,o))}function _m(t,e,r){const n=Om(t),o=e.length/r;if(!n)return Math.max(o,1);const i=jp(n);for(let s=0,a=i.length-1;s<a;s++){const l=i[s];if(l>o)return l}return Math.max(o,1)}function Sm(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}function Em(t,e,r,n){let o=0,i=r[0],s;for(n=Math.ceil(n),s=0;s<t.length;s++)s===i&&(e.push(t[s]),o++,i=r[o*n])}function _o(t,e,r,n,o){const i=ue(n,0),s=Math.min(ue(o,t.length),t.length);let a=0,l,c,d;for(r=Math.ceil(r),o&&(l=o-n,r=l/Math.floor(l/r)),d=i;d<0;)a++,d=Math.round(i+a*r);for(c=Math.max(i,0);c<s;c++)c===d&&(e.push(t[c]),a++,d=Math.round(i+a*r))}function Om(t){const e=t.length;let r,n;if(e<2)return!1;for(n=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==n)return!1;return n}const Tm=t=>t==="left"?"right":t==="right"?"left":t,nc=(t,e,r)=>e==="top"||e==="left"?t[e]+r:t[e]-r,oc=(t,e)=>Math.min(e||t,t);function ic(t,e){const r=[],n=t.length/e,o=t.length;let i=0;for(;i<o;i+=n)r.push(t[Math.floor(i)]);return r}function Nm(t,e,r){const n=t.ticks.length,o=Math.min(e,n-1),i=t._startPixel,s=t._endPixel,a=1e-6;let l=t.getPixelForTick(o),c;if(!(r&&(n===1?c=Math.max(l-i,s-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(o-1))/2,l+=o<e?c:-c,l<i-a||l>s+a)))return l}function Mm(t,e){fe(t,r=>{const n=r.gc,o=n.length/2;let i;if(o>e){for(i=0;i<o;++i)delete r.data[n[i]];n.splice(0,o)}})}function xn(t){return t.drawTicks?t.tickLength:0}function sc(t,e){if(!t.display)return 0;const r=qe(t.font,e),n=ht(t.padding);return(Fe(t.text)?t.text.length:1)*r.lineHeight+n.height}function Pm(t,e){return Tr(t,{scale:e,type:"scale"})}function Am(t,e,r){return Tr(t,{tick:r,index:e,type:"tick"})}function Dm(t,e,r){let n=bl(t);return(r&&e!=="right"||!r&&e==="right")&&(n=Tm(n)),n}function Im(t,e,r,n){const{top:o,left:i,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,f,h,g;const m=s-o,b=a-i;if(t.isHorizontal()){if(h=et(n,i,a),ne(r)){const v=Object.keys(r)[0],y=r[v];g=d[v].getPixelForValue(y)+m-e}else r==="center"?g=(c.bottom+c.top)/2+m-e:g=nc(t,r,e);f=a-i}else{if(ne(r)){const v=Object.keys(r)[0],y=r[v];h=d[v].getPixelForValue(y)-b+e}else r==="center"?h=(c.left+c.right)/2-b+e:h=nc(t,r,e);g=et(n,s,o),u=r==="left"?-Te:Te}return{titleX:h,titleY:g,maxWidth:f,rotation:u}}class So extends vn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,r){return e}getUserBounds(){let{_userMin:e,_userMax:r,_suggestedMin:n,_suggestedMax:o}=this;return e=vt(e,Number.POSITIVE_INFINITY),r=vt(r,Number.NEGATIVE_INFINITY),n=vt(n,Number.POSITIVE_INFINITY),o=vt(o,Number.NEGATIVE_INFINITY),{min:vt(e,n),max:vt(r,o),minDefined:Dt(e),maxDefined:Dt(r)}}getMinMax(e){let{min:r,max:n,minDefined:o,maxDefined:i}=this.getUserBounds(),s;if(o&&i)return{min:r,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,e),o||(r=Math.min(r,s.min)),i||(n=Math.max(n,s.max));return r=i&&r>n?n:r,n=o&&r>n?r:n,{min:vt(r,vt(n,r)),max:vt(n,vt(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){be(this.options.beforeUpdate,[this])}update(e,r,n){const{beginAtZero:o,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=r,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=p0(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?ic(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=km(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,e=!e),this._startPixel=r,this._endPixel=n,this._reversePixels=e,this._length=n-r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){be(this.options.afterUpdate,[this])}beforeSetDimensions(){be(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){be(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),be(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){be(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const r=this.options.ticks;let n,o,i;for(n=0,o=e.length;n<o;n++)i=e[n],i.label=be(r.callback,[i.value,n,e],this)}afterTickToLabelConversion(){be(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){be(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,r=e.ticks,n=oc(this.ticks.length,e.ticks.maxTicksLimit),o=r.minRotation||0,i=r.maxRotation;let s=o,a,l,c;if(!this._isVisible()||!r.display||o>=i||n<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),u=d.widest.width,f=d.highest.height,h=at(this.chart.width-u,0,this.maxWidth);a=e.offset?this.maxWidth/n:h/(n-1),u+6>a&&(a=h/(n-(e.offset?.5:1)),l=this.maxHeight-xn(e.grid)-r.padding-sc(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),s=Hp(Math.min(Math.asin(at((d.highest.height+6)/a,-1,1)),Math.asin(at(l/c,-1,1))-Math.asin(at(f/c,-1,1)))),s=Math.max(o,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){be(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){be(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:r,options:{ticks:n,title:o,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=sc(o,r.options.font);if(a?(e.width=this.maxWidth,e.height=xn(i)+l):(e.height=this.maxHeight,e.width=xn(i)+l),n.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=n.padding*2,g=ir(this.labelRotation),m=Math.cos(g),b=Math.sin(g);if(a){const v=n.mirror?0:b*u.width+m*f.height;e.height=Math.min(this.maxHeight,e.height+v+h)}else{const v=n.mirror?0:m*u.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+v+h)}this._calculatePadding(c,d,b,m)}}this._handleMargins(),a?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,r,n,o){const{ticks:{align:i,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=o*e.width,h=n*r.height):(f=n*e.height,h=o*r.width):i==="start"?h=r.width:i==="end"?f=e.width:i!=="inner"&&(f=e.width/2,h=r.width/2),this.paddingLeft=Math.max((f-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-u+s)*this.width/(this.width-u),0)}else{let d=r.height/2,u=e.height/2;i==="start"?(d=0,u=e.height):i==="end"&&(d=r.height,u=0),this.paddingTop=d+s,this.paddingBottom=u+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){be(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:r}=this.options;return r==="top"||r==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let r,n;for(r=0,n=e.length;r<n;r++)He(e[r].label)&&(e.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=ic(n,r)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,r,n){const{ctx:o,_longestTextCache:i}=this,s=[],a=[],l=Math.floor(r/oc(r,n));let c=0,d=0,u,f,h,g,m,b,v,y,_,x,w;for(u=0;u<r;u+=l){if(g=e[u].label,m=this._resolveTickFontOptions(u),o.font=b=m.string,v=i[b]=i[b]||{data:{},gc:[]},y=m.lineHeight,_=x=0,!He(g)&&!Fe(g))_=Cl(o,v.data,v.gc,_,g),x=y;else if(Fe(g))for(f=0,h=g.length;f<h;++f)w=g[f],!He(w)&&!Fe(w)&&(_=Cl(o,v.data,v.gc,_,w),x+=y);s.push(_),a.push(x),c=Math.max(_,c),d=Math.max(x,d)}Mm(i,r);const S=s.indexOf(c),T=a.indexOf(d),M=N=>({width:s[N]||0,height:a[N]||0});return{first:M(0),last:M(r-1),widest:M(S),highest:M(T),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,r){return NaN}getValueForPixel(e){}getPixelForTick(e){const r=this.ticks;return e<0||e>r.length-1?null:this.getPixelForValue(r[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const r=this._startPixel+e*this._length;return Vp(this._alignToPixels?lr(this.chart,r,0):r)}getDecimalForPixel(e){const r=(e-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:r}=this;return e<0&&r<0?r:e>0&&r>0?e:0}getContext(e){const r=this.ticks||[];if(e>=0&&e<r.length){const n=r[e];return n.$context||(n.$context=Am(this.getContext(),e,n))}return this.$context||(this.$context=Pm(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,r=ir(this.labelRotation),n=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,a=i?i.widest.width+s:0,l=i?i.highest.height+s:0;return this.isHorizontal()?l*n>a*o?a/n:l/o:l*o<a*n?l/n:a/o}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const r=this.axis,n=this.chart,o=this.options,{grid:i,position:s,border:a}=o,l=i.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=xn(i),h=[],g=a.setContext(this.getContext()),m=g.display?g.width:0,b=m/2,v=function(L){return lr(n,L,m)};let y,_,x,w,S,T,M,N,E,I,A,D;if(s==="top")y=v(this.bottom),T=this.bottom-f,N=y-b,I=v(e.top)+b,D=e.bottom;else if(s==="bottom")y=v(this.top),I=e.top,D=v(e.bottom)-b,T=y+b,N=this.top+f;else if(s==="left")y=v(this.right),S=this.right-f,M=y-b,E=v(e.left)+b,A=e.right;else if(s==="right")y=v(this.left),E=e.left,A=v(e.right)-b,S=y+b,M=this.left+f;else if(r==="x"){if(s==="center")y=v((e.top+e.bottom)/2+.5);else if(ne(s)){const L=Object.keys(s)[0],z=s[L];y=v(this.chart.scales[L].getPixelForValue(z))}I=e.top,D=e.bottom,T=y+b,N=T+f}else if(r==="y"){if(s==="center")y=v((e.left+e.right)/2);else if(ne(s)){const L=Object.keys(s)[0],z=s[L];y=v(this.chart.scales[L].getPixelForValue(z))}S=y-b,M=S-f,E=e.left,A=e.right}const O=ue(o.ticks.maxTicksLimit,u),P=Math.max(1,Math.ceil(u/O));for(_=0;_<u;_+=P){const L=this.getContext(_),z=i.setContext(L),B=a.setContext(L),j=z.lineWidth,$=z.color,H=B.dash||[],R=B.dashOffset,Y=z.tickWidth,U=z.tickColor,q=z.tickBorderDash||[],G=z.tickBorderDashOffset;x=Nm(this,_,l),x!==void 0&&(w=lr(n,x,j),c?S=M=E=A=w:T=N=I=D=w,h.push({tx1:S,ty1:T,tx2:M,ty2:N,x1:E,y1:I,x2:A,y2:D,width:j,color:$,borderDash:H,borderDashOffset:R,tickWidth:Y,tickColor:U,tickBorderDash:q,tickBorderDashOffset:G}))}return this._ticksLength=u,this._borderValue=y,h}_computeLabelItems(e){const r=this.axis,n=this.options,{position:o,ticks:i}=n,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=i,f=xn(n.grid),h=f+d,g=u?-d:h,m=-ir(this.labelRotation),b=[];let v,y,_,x,w,S,T,M,N,E,I,A,D="middle";if(o==="top")S=this.bottom-g,T=this._getXAxisLabelAlignment();else if(o==="bottom")S=this.top+g,T=this._getXAxisLabelAlignment();else if(o==="left"){const P=this._getYAxisLabelAlignment(f);T=P.textAlign,w=P.x}else if(o==="right"){const P=this._getYAxisLabelAlignment(f);T=P.textAlign,w=P.x}else if(r==="x"){if(o==="center")S=(e.top+e.bottom)/2+h;else if(ne(o)){const P=Object.keys(o)[0],L=o[P];S=this.chart.scales[P].getPixelForValue(L)+h}T=this._getXAxisLabelAlignment()}else if(r==="y"){if(o==="center")w=(e.left+e.right)/2-h;else if(ne(o)){const P=Object.keys(o)[0],L=o[P];w=this.chart.scales[P].getPixelForValue(L)}T=this._getYAxisLabelAlignment(f).textAlign}r==="y"&&(l==="start"?D="top":l==="end"&&(D="bottom"));const O=this._getLabelSizes();for(v=0,y=a.length;v<y;++v){_=a[v],x=_.label;const P=i.setContext(this.getContext(v));M=this.getPixelForTick(v)+i.labelOffset,N=this._resolveTickFontOptions(v),E=N.lineHeight,I=Fe(x)?x.length:1;const L=I/2,z=P.color,B=P.textStrokeColor,j=P.textStrokeWidth;let $=T;s?(w=M,T==="inner"&&(v===y-1?$=this.options.reverse?"left":"right":v===0?$=this.options.reverse?"right":"left":$="center"),o==="top"?c==="near"||m!==0?A=-I*E+E/2:c==="center"?A=-O.highest.height/2-L*E+E:A=-O.highest.height+E/2:c==="near"||m!==0?A=E/2:c==="center"?A=O.highest.height/2-L*E:A=O.highest.height-I*E,u&&(A*=-1),m!==0&&!P.showLabelBackdrop&&(w+=E/2*Math.sin(m))):(S=M,A=(1-I)*E/2);let H;if(P.showLabelBackdrop){const R=ht(P.backdropPadding),Y=O.heights[v],U=O.widths[v];let q=A-R.top,G=0-R.left;switch(D){case"middle":q-=Y/2;break;case"bottom":q-=Y;break}switch(T){case"center":G-=U/2;break;case"right":G-=U;break;case"inner":v===y-1?G-=U:v>0&&(G-=U/2);break}H={left:G,top:q,width:U+R.width,height:Y+R.height,color:P.backdropColor}}b.push({label:x,font:N,textOffset:A,options:{rotation:m,color:z,strokeColor:B,strokeWidth:j,textAlign:$,textBaseline:D,translation:[w,S],backdrop:H}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:r}=this.options;if(-ir(this.labelRotation))return e==="top"?"left":"right";let o="center";return r.align==="start"?o="left":r.align==="end"?o="right":r.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(e){const{position:r,ticks:{crossAlign:n,mirror:o,padding:i}}=this.options,s=this._getLabelSizes(),a=e+i,l=s.widest.width;let c,d;return r==="left"?o?(d=this.right+i,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-a,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d=this.left)):r==="right"?o?(d=this.left+i,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+a,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:r},left:n,top:o,width:i,height:s}=this;r&&(e.save(),e.fillStyle=r,e.fillRect(n,o,i,s),e.restore())}getLineWidthForValue(e){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const o=this.ticks.findIndex(i=>i.value===e);return o>=0?r.setContext(this.getContext(o)).lineWidth:0}drawGrid(e){const r=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const a=(l,c,d)=>{!d.width||!d.color||(n.save(),n.lineWidth=d.width,n.strokeStyle=d.color,n.setLineDash(d.borderDash||[]),n.lineDashOffset=d.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(r.display)for(i=0,s=o.length;i<s;++i){const l=o[i];r.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),r.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:r,options:{border:n,grid:o}}=this,i=n.setContext(this.getContext()),s=n.display?i.width:0;if(!s)return;const a=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,f;this.isHorizontal()?(c=lr(e,this.left,s)-s/2,d=lr(e,this.right,a)+a/2,u=f=l):(u=lr(e,this.top,s)-s/2,f=lr(e,this.bottom,a)+a/2,c=d=l),r.save(),r.lineWidth=i.width,r.strokeStyle=i.color,r.beginPath(),r.moveTo(c,u),r.lineTo(d,f),r.stroke(),r.restore()}drawLabels(e){if(!this.options.ticks.display)return;const n=this.ctx,o=this._computeLabelArea();o&&Ki(n,o);const i=this.getLabelItems(e);for(const s of i){const a=s.options,l=s.font,c=s.label,d=s.textOffset;po(n,c,0,d,l,a)}o&&Gi(n)}drawTitle(){const{ctx:e,options:{position:r,title:n,reverse:o}}=this;if(!n.display)return;const i=qe(n.font),s=ht(n.padding),a=n.align;let l=i.lineHeight/2;r==="bottom"||r==="center"||ne(r)?(l+=s.bottom,Fe(n.text)&&(l+=i.lineHeight*(n.text.length-1))):l+=s.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=Im(this,l,r,a);po(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:f,textAlign:Dm(a,r,o),textBaseline:"middle",translation:[c,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,r=e.ticks&&e.ticks.z||0,n=ue(e.grid&&e.grid.z,-1),o=ue(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==So.prototype.draw?[{z:r,draw:i=>{this.draw(i)}}]:[{z:n,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:r,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let i,s;for(i=0,s=r.length;i<s;++i){const a=r[i];a[n]===this.id&&(!e||a.type===e)&&o.push(a)}return o}_resolveTickFontOptions(e){const r=this.options.ticks.setContext(this.getContext(e));return qe(r.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Eo{constructor(e,r,n){this.type=e,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const r=Object.getPrototypeOf(e);let n;zm(r)&&(n=this.register(r));const o=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in o||(o[i]=e,Lm(e,s,n),this.override&&we.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const r=this.items,n=e.id,o=this.scope;n in r&&delete r[n],o&&n in we[o]&&(delete we[o][n],this.override&&delete ar[n])}}function Lm(t,e,r){const n=on(Object.create(null),[r?we.get(r):{},we.get(e),t.defaults]);we.set(e,n),t.defaultRoutes&&Fm(e,t.defaultRoutes),t.descriptors&&we.describe(e,t.descriptors)}function Fm(t,e){Object.keys(e).forEach(r=>{const n=r.split("."),o=n.pop(),i=[t].concat(n).join("."),s=e[r].split("."),a=s.pop(),l=s.join(".");we.route(i,o,l,a)})}function zm(t){return"id"in t&&"defaults"in t}class Bm{constructor(){this.controllers=new Eo(hn,"datasets",!0),this.elements=new Eo(vn,"elements"),this.plugins=new Eo(Object,"plugins"),this.scales=new Eo(So,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,r,n){[...r].forEach(o=>{const i=n||this._getRegistryForType(o);n||i.isForType(o)||i===this.plugins&&o.id?this._exec(e,i,o):fe(o,s=>{const a=n||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,r,n){const o=Hi(e);be(n["before"+o],[],n),r[e](n),be(n["after"+o],[],n)}_getRegistryForType(e){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(e))return n}return this.plugins}_get(e,r,n){const o=r.get(e);if(o===void 0)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var xt=new Bm;class $m{constructor(){this._init=[]}notify(e,r,n,o){r==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=o?this._descriptors(e).filter(o):this._descriptors(e),s=this._notify(i,e,r,n);return r==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,r,n,o){o=o||{};for(const i of e){const s=i.plugin,a=s[n],l=[r,o,i.options];if(be(a,l,s)===!1&&o.cancelable)return!1}return!0}invalidate(){He(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),r}_createDescriptors(e,r){const n=e&&e.config,o=ue(n.options&&n.options.plugins,{}),i=jm(n);return o===!1&&!r?[]:Hm(e,i,o,r)}_notifyStateChanges(e){const r=this._oldCache||[],n=this._cache,o=(i,s)=>i.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(o(r,n),e,"stop"),this._notify(o(n,r),e,"start")}}function jm(t){const e={},r=[],n=Object.keys(xt.plugins.items);for(let i=0;i<n.length;i++)r.push(xt.getPlugin(n[i]));const o=t.plugins||[];for(let i=0;i<o.length;i++){const s=o[i];r.indexOf(s)===-1&&(r.push(s),e[s.id]=!0)}return{plugins:r,localIds:e}}function Wm(t,e){return!e&&t===!1?null:t===!0?{}:t}function Hm(t,{plugins:e,localIds:r},n,o){const i=[],s=t.getContext();for(const a of e){const l=a.id,c=Wm(n[l],o);c!==null&&i.push({plugin:a,options:Rm(t.config,{plugin:a,local:r[l]},c,s)})}return i}function Rm(t,{plugin:e,local:r},n,o){const i=t.pluginScopeKeys(e),s=t.getOptionScopes(n,i);return r&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ds(t,e){const r=we.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function Vm(t,e){let r=t;return t==="_index_"?r=e:t==="_value_"&&(r=e==="x"?"y":"x"),r}function Ym(t,e){return t===e?"_index_":"_value_"}function ac(t){if(t==="x"||t==="y"||t==="r")return t}function Um(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function us(t,...e){if(ac(t))return t;for(const r of e){const n=r.axis||Um(r.position)||t.length>1&&ac(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function lc(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function qm(t,e){if(e.data&&e.data.datasets){const r=e.data.datasets.filter(n=>n.xAxisID===t||n.yAxisID===t);if(r.length)return lc(t,"x",r[0])||lc(t,"y",r[0])}return{}}function Km(t,e){const r=ar[t.type]||{scales:{}},n=e.scales||{},o=ds(t.type,e),i=Object.create(null);return Object.keys(n).forEach(s=>{const a=n[s];if(!ne(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=us(s,a,qm(s,t),we.scales[a.type]),c=Ym(l,o),d=r.scales||{};i[s]=sn(Object.create(null),[{axis:l},a,d[l],d[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||ds(a,e),d=(ar[a]||{}).scales||{};Object.keys(d).forEach(u=>{const f=Vm(u,l),h=s[f+"AxisID"]||f;i[h]=i[h]||Object.create(null),sn(i[h],[{axis:f},n[h],d[u]])})}),Object.keys(i).forEach(s=>{const a=i[s];sn(a,[we.scales[a.type],we.scale])}),i}function cc(t){const e=t.options||(t.options={});e.plugins=ue(e.plugins,{}),e.scales=Km(t,e)}function dc(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Gm(t){return t=t||{},t.data=dc(t.data),cc(t),t}const uc=new Map,fc=new Set;function Oo(t,e){let r=uc.get(t);return r||(r=e(),uc.set(t,r),fc.add(r)),r}const wn=(t,e,r)=>{const n=an(e,r);n!==void 0&&t.add(n)};class Xm{constructor(e){this._config=Gm(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=dc(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),cc(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Oo(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,r){return Oo(`${e}.transition.${r}`,()=>[[`datasets.${e}.transitions.${r}`,`transitions.${r}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,r){return Oo(`${e}-${r}`,()=>[[`datasets.${e}.elements.${r}`,`datasets.${e}`,`elements.${r}`,""]])}pluginScopeKeys(e){const r=e.id,n=this.type;return Oo(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,r){const n=this._scopeCache;let o=n.get(e);return(!o||r)&&(o=new Map,n.set(e,o)),o}getOptionScopes(e,r,n){const{options:o,type:i}=this,s=this._cachedScopes(e,n),a=s.get(r);if(a)return a;const l=new Set;r.forEach(d=>{e&&(l.add(e),d.forEach(u=>wn(l,e,u))),d.forEach(u=>wn(l,o,u)),d.forEach(u=>wn(l,ar[i]||{},u)),d.forEach(u=>wn(l,we,u)),d.forEach(u=>wn(l,Ui,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),fc.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:e,type:r}=this;return[e,ar[r]||{},we.datasets[r]||{},{type:r},we,Ui]}resolveNamedOptions(e,r,n,o=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=hc(this._resolverCache,e,o);let l=s;if(Jm(s,r)){i.$shared=!1,n=Ut(n)?n():n;const c=this.createResolver(e,n,a);l=Nr(s,n,c)}for(const c of r)i[c]=l[c];return i}createResolver(e,r,n=[""],o){const{resolver:i}=hc(this._resolverCache,e,n);return ne(r)?Nr(i,r,void 0,o):i}}function hc(t,e,r){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=r.join();let i=n.get(o);return i||(i={resolver:Ji(e,r),subPrefixes:r.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,i)),i}const Zm=t=>ne(t)&&Object.getOwnPropertyNames(t).some(e=>Ut(t[e]));function Jm(t,e){const{isScriptable:r,isIndexable:n}=Tl(t);for(const o of e){const i=r(o),s=n(o),a=(s||i)&&t[o];if(i&&(Ut(a)||Zm(a))||s&&Fe(a))return!0}return!1}var Qm="4.4.8";const eb=["top","bottom","left","right","chartArea"];function gc(t,e){return t==="top"||t==="bottom"||eb.indexOf(t)===-1&&e==="x"}function pc(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function mc(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),be(r&&r.onComplete,[t],e)}function tb(t){const e=t.chart,r=e.options.animation;be(r&&r.onProgress,[t],e)}function bc(t){return ts()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const To={},yc=t=>{const e=bc(t);return Object.values(To).filter(r=>r.canvas===e).pop()};function rb(t,e,r){const n=Object.keys(t);for(const o of n){const i=+o;if(i>=e){const s=t[o];delete t[o],(r>0||i>e)&&(t[i+r]=s)}}}function nb(t,e,r,n){return!r||t.type==="mouseout"?null:n?e:t}function No(t,e,r){return t.options.clip?t[r]:e[r]}function ob(t,e){const{xScale:r,yScale:n}=t;return r&&n?{left:No(r,e,"left"),right:No(r,e,"right"),top:No(n,e,"top"),bottom:No(n,e,"bottom")}:e}let Mo=(rr=class{static register(...e){xt.add(...e),vc()}static unregister(...e){xt.remove(...e),vc()}constructor(e,r){const n=this.config=new Xm(r),o=bc(e),i=yc(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||wm(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,d=l&&l.width;if(this.id=Ap(),this.ctx=a,this.canvas=l,this.width=d,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new $m,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Gp(u=>this.update(u),s.resizeDelay||0),this._dataChanges=[],To[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}It.listen(this,"complete",mc),It.listen(this,"progress",tb),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:r},width:n,height:o,_aspectRatio:i}=this;return He(e)?r&&i?i:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Il(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return _l(this.canvas,this.ctx),this}stop(){return It.stop(this),this}resize(e,r){It.running(this)?this._resizeBeforeDraw={width:e,height:r}:this._resize(e,r)}_resize(e,r){const n=this.options,o=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,r,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Il(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),be(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};fe(r,(n,o)=>{n.id=o})}buildOrUpdateScales(){const e=this.options,r=e.scales,n=this.scales,o=Object.keys(n).reduce((s,a)=>(s[a]=!1,s),{});let i=[];r&&(i=i.concat(Object.keys(r).map(s=>{const a=r[s],l=us(s,a),c=l==="r",d=l==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),fe(i,s=>{const a=s.options,l=a.id,c=us(l,a),d=ue(a.type,s.dtype);(a.position===void 0||gc(a.position,c)!==gc(s.dposition))&&(a.position=s.dposition),o[l]=!0;let u=null;if(l in n&&n[l].type===d)u=n[l];else{const f=xt.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(a,e)}),fe(o,(s,a)=>{s||delete n[a]}),fe(n,s=>{qt.configure(this,s,s.options),qt.addBox(this,s)})}_updateMetasets(){const e=this._metasets,r=this.data.datasets.length,n=e.length;if(e.sort((o,i)=>o.index-i.index),n>r){for(let o=r;o<n;++o)this._destroyDatasetMeta(o);e.splice(r,n-r)}this._sortedMetasets=e.slice(0).sort(pc("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:r}}=this;e.length>r.length&&delete this._stacks,e.forEach((n,o)=>{r.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const e=[],r=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=r.length;n<o;n++){const i=r[n];let s=this.getDatasetMeta(n);const a=i.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=a,s.indexAxis=i.indexAxis||ds(a,this.options),s.order=i.order||0,s.index=n,s.label=""+i.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{const l=xt.getController(a),{datasetElementType:c,dataElementType:d}=we.datasets[a];Object.assign(l,{dataElementType:xt.getElement(d),datasetElementType:c&&xt.getElement(c)}),s.controller=new l(this,n),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){fe(this.data.datasets,(e,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const r=this.config;r.update();const n=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),f=!o&&i.indexOf(u)===-1;u.buildOrUpdateElements(f),s=Math.max(+u.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),o||fe(i,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(pc("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){fe(this.scales,e=>{qt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!cl(r,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:i}of r){const s=n==="_removeElements"?-i:i;rb(e,o,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=i=>new Set(e.filter(s=>s[0]===i).map((s,a)=>a+","+s.splice(1).join(","))),o=n(0);for(let i=1;i<r;i++)if(!cl(o,n(i)))return;return Array.from(o).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;qt.update(this,this.width,this.height,e);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],fe(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let r=0,n=this.data.datasets.length;r<n;++r)this.getDatasetMeta(r).controller.configure();for(let r=0,n=this.data.datasets.length;r<n;++r)this._updateDataset(r,Ut(e)?e({datasetIndex:r}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,r){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:r,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(n.controller._update(r),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(It.has(this)?this.attached&&!It.running(this)&&It.start(this):(this.draw(),mc({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:n,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const r=this._layers;for(e=0;e<r.length&&r[e].z<=0;++e)r[e].draw(this.chartArea);for(this._drawDatasets();e<r.length;++e)r[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const r=this._sortedMetasets,n=[];let o,i;for(o=0,i=r.length;o<i;++o){const s=r[o];(!e||s.visible)&&n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let r=e.length-1;r>=0;--r)this._drawDataset(e[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const r=this.ctx,n=e._clip,o=!n.disabled,i=ob(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(o&&Ki(r,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),e.controller.draw(),o&&Gi(r),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Ol(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,r,n,o){const i=em.modes[r];return typeof i=="function"?i(this,e,n,o):[]}getDatasetMeta(e){const r=this.data.datasets[e],n=this._metasets;let o=n.filter(i=>i&&i._dataset===r).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:e,_dataset:r,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Tr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const r=this.data.datasets[e];if(!r)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(e,r){const n=this.getDatasetMeta(e);n.hidden=!r}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,r,n){const o=n?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,o);co(r)?(i.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(i,{visible:n}),this.update(a=>a.datasetIndex===e?o:void 0))}hide(e,r){this._updateVisibility(e,r,!1)}show(e,r){this._updateVisibility(e,r,!0)}_destroyDatasetMeta(e){const r=this._metasets[e];r&&r.controller&&r.controller._destroy(),delete this._metasets[e]}_stop(){let e,r;for(this.stop(),It.remove(this),e=0,r=this.data.datasets.length;e<r;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:r}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),_l(e,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete To[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,r=this.platform,n=(i,s)=>{r.addEventListener(this,i,s),e[i]=s},o=(i,s,a)=>{i.offsetX=s,i.offsetY=a,this._eventHandler(i)};fe(this.options.events,i=>n(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,r=this.platform,n=(l,c)=>{r.addEventListener(this,l,c),e[l]=c},o=(l,c)=>{e[l]&&(r.removeEventListener(this,l,c),delete e[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",s)};s=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),n("attach",a)},r.isAttached(this.canvas)?a():s()}unbindEvents(){fe(this._listeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._listeners={},fe(this._responsiveListeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,r,n){const o=n?"set":"remove";let i,s,a,l;for(r==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){s=e[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[o+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const r=this._active||[],n=e.map(({datasetIndex:i,index:s})=>{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[s],index:s}});!ao(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(e,r,n){return this._plugins.notify(this,e,r,n)}isPluginEnabled(e){return this._plugins._cache.filter(r=>r.plugin.id===e).length===1}_updateHoverStyles(e,r,n){const o=this.options.hover,i=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),s=i(r,e),a=n?e:i(e,r);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,r){const n={event:e,replay:r,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;const i=this._handleEvent(e,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(i||n.changed)&&this.render(),this}_handleEvent(e,r,n){const{_active:o=[],options:i}=this,s=r,a=this._getActiveElements(e,o,n,s),l=Bp(e),c=nb(e,this._lastEvent,n,l);n&&(this._lastEvent=null,be(i.onHover,[e,a,this],this),l&&be(i.onClick,[e,a,this],this));const d=!ao(a,o);return(d||r)&&(this._active=a,this._updateHoverStyles(a,o,r)),this._lastEvent=c,d}_getActiveElements(e,r,n,o){if(e.type==="mouseout")return[];if(!n)return r;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,o)}},ee(rr,"defaults",we),ee(rr,"instances",To),ee(rr,"overrides",ar),ee(rr,"registry",xt),ee(rr,"version",Qm),ee(rr,"getChart",yc),rr);function vc(){return fe(Mo.instances,t=>t._plugins.invalidate())}function ib(t,e,r){const{startAngle:n,pixelMargin:o,x:i,y:s,outerRadius:a,innerRadius:l}=e;let c=o/a;t.beginPath(),t.arc(i,s,a,n-c,r+c),l>o?(c=o/l,t.arc(i,s,l,r+c,n-c,!0)):t.arc(i,s,o,r+Te,n-Te),t.closePath(),t.clip()}function sb(t){return Zi(t,["outerStart","outerEnd","innerStart","innerEnd"])}function ab(t,e,r,n){const o=sb(t.options.borderRadius),i=(r-e)/2,s=Math.min(i,n*e/2),a=l=>{const c=(r-Math.min(i,l))*n/2;return at(l,0,Math.min(i,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:at(o.innerStart,0,s),innerEnd:at(o.innerEnd,0,s)}}function Pr(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function Po(t,e,r,n,o,i){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+n+r-c,0),f=d>0?d+n+r+c:0;let h=0;const g=o-l;if(n){const P=d>0?d-n:0,L=u>0?u-n:0,z=(P+L)/2,B=z!==0?g*z/(z+n):g;h=(g-B)/2}const m=Math.max(.001,g*u-r/Ae)/u,b=(g-m)/2,v=l+b+h,y=o-b-h,{outerStart:_,outerEnd:x,innerStart:w,innerEnd:S}=ab(e,f,u,y-v),T=u-_,M=u-x,N=v+_/T,E=y-x/M,I=f+w,A=f+S,D=v+w/I,O=y-S/A;if(t.beginPath(),i){const P=(N+E)/2;if(t.arc(s,a,u,N,P),t.arc(s,a,u,P,E),x>0){const j=Pr(M,E,s,a);t.arc(j.x,j.y,x,E,y+Te)}const L=Pr(A,y,s,a);if(t.lineTo(L.x,L.y),S>0){const j=Pr(A,O,s,a);t.arc(j.x,j.y,S,y+Te,O+Math.PI)}const z=(y-S/f+(v+w/f))/2;if(t.arc(s,a,f,y-S/f,z,!0),t.arc(s,a,f,z,v+w/f,!0),w>0){const j=Pr(I,D,s,a);t.arc(j.x,j.y,w,D+Math.PI,v-Te)}const B=Pr(T,v,s,a);if(t.lineTo(B.x,B.y),_>0){const j=Pr(T,N,s,a);t.arc(j.x,j.y,_,v-Te,N)}}else{t.moveTo(s,a);const P=Math.cos(N)*u+s,L=Math.sin(N)*u+a;t.lineTo(P,L);const z=Math.cos(E)*u+s,B=Math.sin(E)*u+a;t.lineTo(z,B)}t.closePath()}function lb(t,e,r,n,o){const{fullCircles:i,startAngle:s,circumference:a}=e;let l=e.endAngle;if(i){Po(t,e,r,n,l,o);for(let c=0;c<i;++c)t.fill();isNaN(a)||(l=s+(a%Ce||Ce))}return Po(t,e,r,n,l,o),t.fill(),l}function cb(t,e,r,n,o){const{fullCircles:i,startAngle:s,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=f,h?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let g=e.endAngle;if(i){Po(t,e,r,n,g,o);for(let m=0;m<i;++m)t.stroke();isNaN(a)||(g=s+(a%Ce||Ce))}h&&ib(t,e,g),i||(Po(t,e,r,n,g,o),t.stroke())}class kn extends vn{constructor(r){super();ee(this,"circumference");ee(this,"endAngle");ee(this,"fullCircles");ee(this,"innerRadius");ee(this,"outerRadius");ee(this,"pixelMargin");ee(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,r&&Object.assign(this,r)}inRange(r,n,o){const i=this.getProps(["x","y"],o),{angle:s,distance:a}=fl(i,{x:r,y:n}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],o),h=(this.options.spacing+this.options.borderWidth)/2,g=ue(f,c-l),m=ho(s,l,c)&&l!==c,b=g>=Ce||m,v=ln(a,d+h,u+h);return b&&v}getCenterPoint(r){const{x:n,y:o,startAngle:i,endAngle:s,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],r),{offset:c,spacing:d}=this.options,u=(i+s)/2,f=(a+l+d+c)/2;return{x:n+Math.cos(u)*f,y:o+Math.sin(u)*f}}tooltipPosition(r){return this.getCenterPoint(r)}draw(r){const{options:n,circumference:o}=this,i=(n.offset||0)/4,s=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=o>Ce?Math.floor(o/Ce):0,o===0||this.innerRadius<0||this.outerRadius<0)return;r.save();const l=(this.startAngle+this.endAngle)/2;r.translate(Math.cos(l)*i,Math.sin(l)*i);const c=1-Math.sin(Math.min(Ae,o||0)),d=i*c;r.fillStyle=n.backgroundColor,r.strokeStyle=n.borderColor,lb(r,this,d,s,a),cb(r,this,d,s,a),r.restore()}}ee(kn,"id","arc"),ee(kn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ee(kn,"defaultRoutes",{backgroundColor:"backgroundColor"}),ee(kn,"descriptors",{_scriptable:!0,_indexable:r=>r!=="borderDash"});const xc=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}},db=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class wc extends vn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,r,n){this.maxWidth=e,this.maxHeight=r,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let r=be(e.generateLabels,[this.chart],this)||[];e.filter&&(r=r.filter(n=>e.filter(n,this.chart.data))),e.sort&&(r=r.sort((n,o)=>e.sort(n,o,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:e,ctx:r}=this;if(!e.display){this.width=this.height=0;return}const n=e.labels,o=qe(n.font),i=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=xc(n,i);let c,d;r.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(s,i,a,l)+10):(d=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,r,n,o){const{ctx:i,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+a;let u=e;i.textAlign="left",i.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((g,m)=>{const b=n+r/2+i.measureText(g.text).width;(m===0||c[c.length-1]+b+2*a>s)&&(u+=d,c[c.length-(m>0?0:1)]=0,h+=d,f++),l[m]={left:0,top:h,row:f,width:b,height:o},c[c.length-1]+=b+a}),u}_fitCols(e,r,n,o){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=s-e;let u=a,f=0,h=0,g=0,m=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:y,itemHeight:_}=ub(n,r,i,b,o);v>0&&h+_+2*a>d&&(u+=f+a,c.push({width:f,height:h}),g+=f+a,m++,f=h=0),l[v]={left:g,top:h,col:m,width:y,height:_},f=Math.max(f,y),h+=_+a}),u+=f,c.push({width:f,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:o},rtl:i}}=this,s=Mr(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=et(n,this.left+o,this.right-this.lineWidths[a]);for(const c of r)a!==c.row&&(a=c.row,l=et(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+e+o,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+o}else{let a=0,l=et(n,this.top+e+o,this.bottom-this.columnSizes[a].height);for(const c of r)c.col!==a&&(a=c.col,l=et(n,this.top+e+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Ki(e,this),this._draw(),Gi(e)}}_draw(){const{options:e,columnSizes:r,lineWidths:n,ctx:o}=this,{align:i,labels:s}=e,a=we.color,l=Mr(e.rtl,this.left,this.width),c=qe(s.font),{padding:d}=s,u=c.size,f=u/2;let h;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=xc(s,u),v=function(S,T,M){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;o.save();const N=ue(M.lineWidth,1);if(o.fillStyle=ue(M.fillStyle,a),o.lineCap=ue(M.lineCap,"butt"),o.lineDashOffset=ue(M.lineDashOffset,0),o.lineJoin=ue(M.lineJoin,"miter"),o.lineWidth=N,o.strokeStyle=ue(M.strokeStyle,a),o.setLineDash(ue(M.lineDash,[])),s.usePointStyle){const E={radius:m*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:N},I=l.xPlus(S,g/2),A=T+f;El(o,E,I,A,s.pointStyleWidth&&g)}else{const E=T+Math.max((u-m)/2,0),I=l.leftForLtr(S,g),A=un(M.borderRadius);o.beginPath(),Object.values(A).some(D=>D!==0)?Xi(o,{x:I,y:E,w:g,h:m,radius:A}):o.rect(I,E,g,m),o.fill(),N!==0&&o.stroke()}o.restore()},y=function(S,T,M){po(o,M.text,S,T+b/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},_=this.isHorizontal(),x=this._computeTitleHeight();_?h={x:et(i,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:h={x:this.left+d,y:et(i,this.top+x+d,this.bottom-r[0].height),line:0},Fl(this.ctx,e.textDirection);const w=b+d;this.legendItems.forEach((S,T)=>{o.strokeStyle=S.fontColor,o.fillStyle=S.fontColor;const M=o.measureText(S.text).width,N=l.textAlign(S.textAlign||(S.textAlign=s.textAlign)),E=g+f+M;let I=h.x,A=h.y;l.setWidth(this.width),_?T>0&&I+E+d>this.right&&(A=h.y+=w,h.line++,I=h.x=et(i,this.left+d,this.right-n[h.line])):T>0&&A+w>this.bottom&&(I=h.x=I+r[h.line].width+d,h.line++,A=h.y=et(i,this.top+x+d,this.bottom-r[h.line].height));const D=l.x(I);if(v(D,A,S),I=Xp(N,I+g+f,_?I+E:this.right,e.rtl),y(l.x(I),A,S),_)h.x+=E+d;else if(typeof S.text!="string"){const O=c.lineHeight;h.y+=kc(S,O)+d}else h.y+=w}),zl(this.ctx,e.textDirection)}drawTitle(){const e=this.options,r=e.title,n=qe(r.font),o=ht(r.padding);if(!r.display)return;const i=Mr(e.rtl,this.left,this.width),s=this.ctx,a=r.position,l=n.size/2,c=o.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=et(e.align,u,this.right-f);else{const g=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);d=c+et(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}const h=et(a,u,u+f);s.textAlign=i.textAlign(bl(a)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,po(s,r.text,h,d,n)}_computeTitleHeight(){const e=this.options.title,r=qe(e.font),n=ht(e.padding);return e.display?r.lineHeight+n.height:0}_getLegendItemAt(e,r){let n,o,i;if(ln(e,this.left,this.right)&&ln(r,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(o=i[n],ln(e,o.left,o.left+o.width)&&ln(r,o.top,o.top+o.height))return this.legendItems[n]}return null}handleEvent(e){const r=this.options;if(!gb(e.type,r))return;const n=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const o=this._hoveredItem,i=db(o,n);o&&!i&&be(r.onLeave,[e,o,this],this),this._hoveredItem=n,n&&!i&&be(r.onHover,[e,n,this],this)}else n&&be(r.onClick,[e,n,this],this)}}function ub(t,e,r,n,o){const i=fb(n,t,e,r),s=hb(o,n,e.lineHeight);return{itemWidth:i,itemHeight:s}}function fb(t,e,r,n){let o=t.text;return o&&typeof o!="string"&&(o=o.reduce((i,s)=>i.length>s.length?i:s)),e+r.size/2+n.measureText(o).width}function hb(t,e,r){let n=t;return typeof e.text!="string"&&(n=kc(e,r)),n}function kc(t,e){const r=t.text?t.text.length:0;return e*r}function gb(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var pb={id:"legend",_element:wc,start(t,e,r){const n=t.legend=new wc({ctx:t.ctx,options:r,chart:t});qt.configure(t,n,r),qt.addBox(t,n)},stop(t){qt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;qt.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),d=ht(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const Cn={average(t){if(!t.length)return!1;let e,r,n=new Set,o=0,i=0;for(e=0,r=t.length;e<r;++e){const a=t[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();n.add(l.x),o+=l.y,++i}}return i===0||n.size===0?!1:{x:[...n].reduce((a,l)=>a+l)/n.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let r=e.x,n=e.y,o=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=t.length;i<s;++i){const l=t[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=Rp(e,c);d<o&&(o=d,a=l)}}if(a){const l=a.tooltipPosition();r=l.x,n=l.y}return{x:r,y:n}}};function wt(t,e){return e&&(Fe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Lt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
16
|
+
*/class L0{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,r,n,o){const i=r.listeners[o],s=r.duration;i.forEach(a=>a({chart:e,initial:r.initial,numSteps:s,currentStep:Math.min(n-r.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=pl.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let r=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const i=n.items;let s=i.length-1,a=!1,l;for(;s>=0;--s)l=i[s],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(e),a=!0):(i[s]=i[i.length-1],i.pop());a&&(o.draw(),this._notify(o,n,e,"progress")),i.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),r+=i.length}),this._lastDate=e,r===0&&(this._running=!1)}_getAnims(e){const r=this._charts;let n=r.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(e,n)),n}listen(e,r,n){this._getAnims(e).listeners[r].push(n)}add(e,r){!r||!r.length||this._getAnims(e).items.push(...r)}has(e){return this._getAnims(e).items.length>0}start(e){const r=this._charts.get(e);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const r=this._charts.get(e);return!(!r||!r.running||!r.items.length)}stop(e){const r=this._charts.get(e);if(!r||!r.items.length)return;const n=r.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();r.items=[],this._notify(e,r,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var It=new L0;const Bl="transparent",F0={boolean(t,e,r){return r>.5?e:t},color(t,e,r){const n=wl(t||Bl),o=n.valid&&wl(e||Bl);return o&&o.valid?o.mix(n,r).hexString():e},number(t,e,r){return t+(e-t)*r}};class z0{constructor(e,r,n,o){const i=r[n];o=mo([e.to,o,i,e.from]);const s=mo([e.from,i,o]);this._active=!0,this._fn=e.fn||F0[e.type||typeof s],this._easing=cn[e.easing]||cn.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=r,this._prop=n,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(e,r,n){if(this._active){this._notify(!1);const o=this._target[this._prop],i=n-this._start,s=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=mo([e.to,r,o,e.from]),this._from=mo([e.from,o,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const r=e-this._start,n=this._duration,o=this._prop,i=this._from,s=this._loop,a=this._to;let l;if(this._active=i!==a&&(s||r<n),!this._active){this._target[o]=a,this._notify(!0);return}if(r<0){this._target[o]=i;return}l=r/n%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(i,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((r,n)=>{e.push({res:r,rej:n})})}_notify(e){const r=e?"res":"rej",n=this._promises||[];for(let o=0;o<n.length;o++)n[o][r]()}}class $l{constructor(e,r){this._chart=e,this._properties=new Map,this.configure(r)}configure(e){if(!ne(e))return;const r=Object.keys(we.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];if(!ne(i))return;const s={};for(const a of r)s[a]=i[a];(Fe(i.properties)&&i.properties||[o]).forEach(a=>{(a===o||!n.has(a))&&n.set(a,s)})})}_animateOptions(e,r){const n=r.options,o=$0(e,n);if(!o)return[];const i=this._createAnimations(o,n);return n.$shared&&B0(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,r){const n=this._properties,o=[],i=e.$animations||(e.$animations={}),s=Object.keys(r),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,r));continue}const d=r[c];let u=i[c];const f=n.get(c);if(u)if(f&&u.active()){u.update(f,d,a);continue}else u.cancel();if(!f||!f.duration){e[c]=d;continue}i[c]=u=new z0(f,e,c,d),o.push(u)}return o}update(e,r){if(this._properties.size===0){Object.assign(e,r);return}const n=this._createAnimations(e,r);if(n.length)return It.add(this._chart,n),!0}}function B0(t,e){const r=[],n=Object.keys(e);for(let o=0;o<n.length;o++){const i=t[n[o]];i&&i.active()&&r.push(i.wait())}return Promise.all(r)}function $0(t,e){if(!e)return;let r=t.options;if(!r){t.options=e;return}return r.$shared&&(t.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function jl(t,e){const r=t&&t.options||{},n=r.reverse,o=r.min===void 0?e:0,i=r.max===void 0?e:0;return{start:n?i:o,end:n?o:i}}function j0(t,e,r){if(r===!1)return!1;const n=jl(t,r),o=jl(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}function H0(t){let e,r,n,o;return ne(t)?(e=t.top,r=t.right,n=t.bottom,o=t.left):e=r=n=o=t,{top:e,right:r,bottom:n,left:o,disabled:t===!1}}function Hl(t,e){const r=[],n=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=n.length;o<i;++o)r.push(n[o].index);return r}function Wl(t,e,r,n={}){const o=t.keys,i=n.mode==="single";let s,a,l,c;if(e===null)return;let d=!1;for(s=0,a=o.length;s<a;++s){if(l=+o[s],l===r){if(d=!0,n.all)continue;break}c=t.values[l],Dt(c)&&(i||e===0||ul(e)===ul(c))&&(e+=c)}return!d&&!n.all?0:e}function W0(t,e){const{iScale:r,vScale:n}=e,o=r.axis==="x"?"x":"y",i=n.axis==="x"?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,d;for(l=0,c=s.length;l<c;++l)d=s[l],a[l]={[o]:d,[i]:t[d]};return a}function os(t,e){const r=t&&t.options.stacked;return r||r===void 0&&e.stack!==void 0}function V0(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}function R0(t){const{min:e,max:r,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}function Y0(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function Vl(t,e,r,n){for(const o of e.getMatchingVisibleMetas(n).reverse()){const i=t[o.index];if(r&&i>0||!r&&i<0)return o.index}return null}function Rl(t,e){const{chart:r,_cachedMeta:n}=t,o=r._stacks||(r._stacks={}),{iScale:i,vScale:s,index:a}=n,l=i.axis,c=s.axis,d=V0(i,s,n),u=e.length;let f;for(let h=0;h<u;++h){const g=e[h],{[l]:m,[c]:b}=g,v=g._stacks||(g._stacks={});f=v[c]=Y0(o,d,m),f[a]=b,f._top=Vl(f,s,!0,n.type),f._bottom=Vl(f,s,!1,n.type);const y=f._visualValues||(f._visualValues={});y[a]=b}}function is(t,e){const r=t.scales;return Object.keys(r).filter(n=>r[n].axis===e).shift()}function U0(t,e){return Tr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function q0(t,e,r){return Tr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}function fn(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const o of e){const i=o._stacks;if(!i||i[n]===void 0||i[n][r]===void 0)return;delete i[n][r],i[n]._visualValues!==void 0&&i[n]._visualValues[r]!==void 0&&delete i[n]._visualValues[r]}}}const ss=t=>t==="reset"||t==="none",Yl=(t,e)=>e?t:Object.assign({},t),K0=(t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:Hl(r,!0),values:null};class hn{constructor(e,r){this.chart=e,this._ctx=e.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=os(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&fn(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,r=this._cachedMeta,n=this.getDataset(),o=(u,f,h,g)=>u==="x"?f:u==="r"?g:h,i=r.xAxisID=ue(n.xAxisID,is(e,"x")),s=r.yAxisID=ue(n.yAxisID,is(e,"y")),a=r.rAxisID=ue(n.rAxisID,is(e,"r")),l=r.indexAxis,c=r.iAxisID=o(l,i,s,a),d=r.vAxisID=o(l,s,i,a);r.xScale=this.getScaleForId(i),r.yScale=this.getScaleForId(s),r.rScale=this.getScaleForId(a),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const r=this._cachedMeta;return e===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&gl(this._data,this),e._stacked&&fn(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),n=this._data;if(ne(r)){const o=this._cachedMeta;this._data=W0(r,o)}else if(n!==r){if(n){gl(n,this);const o=this._cachedMeta;fn(o),o._parsed=[]}r&&Object.isExtensible(r)&&Kp(r,this),this._syncList=[],this._data=r}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const r=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const i=r._stacked;r._stacked=os(r.vScale,r),r.stack!==n.stack&&(o=!0,fn(r),r.stack=n.stack),this._resyncElements(e),(o||i!==r._stacked)&&(Rl(this,r._parsed),r._stacked=os(r.vScale,r))}configure(){const e=this.chart.config,r=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),r,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,r){const{_cachedMeta:n,_data:o}=this,{iScale:i,_stacked:s}=n,a=i.axis;let l=e===0&&r===o.length?!0:n._sorted,c=e>0&&n._parsed[e-1],d,u,f;if(this._parsing===!1)n._parsed=o,n._sorted=!0,f=o;else{Fe(o[e])?f=this.parseArrayData(n,o,e,r):ne(o[e])?f=this.parseObjectData(n,o,e,r):f=this.parsePrimitiveData(n,o,e,r);const h=()=>u[a]===null||c&&u[a]<c[a];for(d=0;d<r;++d)n._parsed[d+e]=u=f[d],l&&(h()&&(l=!1),c=u);n._sorted=l}s&&Rl(this,f)}parsePrimitiveData(e,r,n,o){const{iScale:i,vScale:s}=e,a=i.axis,l=s.axis,c=i.getLabels(),d=i===s,u=new Array(o);let f,h,g;for(f=0,h=o;f<h;++f)g=f+n,u[f]={[a]:d||i.parse(c[g],g),[l]:s.parse(r[g],g)};return u}parseArrayData(e,r,n,o){const{xScale:i,yScale:s}=e,a=new Array(o);let l,c,d,u;for(l=0,c=o;l<c;++l)d=l+n,u=r[d],a[l]={x:i.parse(u[0],d),y:s.parse(u[1],d)};return a}parseObjectData(e,r,n,o){const{xScale:i,yScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(o);let d,u,f,h;for(d=0,u=o;d<u;++d)f=d+n,h=r[f],c[d]={x:i.parse(an(h,a),f),y:s.parse(an(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,r,n){const o=this.chart,i=this._cachedMeta,s=r[e.axis],a={keys:Hl(o,!0),values:r._stacks[e.axis]._visualValues};return Wl(a,s,i.index,{mode:n})}updateRangeFromParsed(e,r,n,o){const i=n[r.axis];let s=i===null?NaN:i;const a=o&&n._stacks[r.axis];o&&a&&(o.values=a,s=Wl(o,i,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,r){const n=this._cachedMeta,o=n._parsed,i=n._sorted&&e===n.iScale,s=o.length,a=this._getOtherScale(e),l=K0(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=R0(a);let f,h;function g(){h=o[f];const m=h[a.axis];return!Dt(h[e.axis])||d>m||u<m}for(f=0;f<s&&!(!g()&&(this.updateRangeFromParsed(c,e,h,l),i));++f);if(i){for(f=s-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const r=this._cachedMeta._parsed,n=[];let o,i,s;for(o=0,i=r.length;o<i;++o)s=r[o][e.axis],Dt(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const r=this._cachedMeta,n=r.iScale,o=r.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(e){const r=this._cachedMeta;this.update(e||"default"),r._clip=H0(ue(this.options.clip,j0(r.xScale,r.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,r=this.chart,n=this._cachedMeta,o=n.data||[],i=r.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||o.length-a,c=this.options.drawActiveElementsOnTop;let d;for(n.dataset&&n.dataset.draw(e,i,a,l),d=a;d<a+l;++d){const u=o[d];u.hidden||(u.active&&c?s.push(u):u.draw(e,i))}for(d=0;d<s.length;++d)s[d].draw(e,i)}getStyle(e,r){const n=r?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,r,n){const o=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];i=s.$context||(s.$context=q0(this.getContext(),e,s)),i.parsed=this.getParsed(e),i.raw=o.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=U0(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!r,i.mode=n,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,r){return this._resolveElementOptions(this.dataElementType.id,r,e)}_resolveElementOptions(e,r="default",n){const o=r==="active",i=this._cachedDataOpts,s=e+"-"+r,a=i[s],l=this.enableOptionSharing&&co(n);if(a)return Yl(a,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(we.elements[e]),g=()=>this.getContext(n,o,r),m=c.resolveNamedOptions(f,h,g,u);return m.$shared&&(m.$shared=l,i[s]=Object.freeze(Yl(m,l))),m}_resolveAnimations(e,r,n){const o=this.chart,i=this._cachedDataOpts,s=`animation-${r}`,a=i[s];if(a)return a;let l;if(o.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,r),f=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(f,this.getContext(e,n,r))}const c=new $l(o,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,r){return!r||ss(e)||this.chart._animationsDisabled}_getSharedOptions(e,r){const n=this.resolveDataElementOptions(e,r),o=this._sharedOptions,i=this.getSharedOptions(n),s=this.includeOptions(r,i)||i!==o;return this.updateSharedOptions(i,r,n),{sharedOptions:i,includeOptions:s}}updateElement(e,r,n,o){ss(o)?Object.assign(e,n):this._resolveAnimations(r,o).update(e,n)}updateSharedOptions(e,r,n){e&&!ss(r)&&this._resolveAnimations(void 0,r).update(e,n)}_setStyle(e,r,n,o){e.active=o;const i=this.getStyle(r,o);this._resolveAnimations(r,n,o).update(e,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(e,r,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,r,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const r=this._data,n=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const o=n.length,i=r.length,s=Math.min(i,o);s&&this.parse(0,s),i>o?this._insertElements(o,i-o,e):i<o&&this._removeElements(i,o-i)}_insertElements(e,r,n=!0){const o=this._cachedMeta,i=o.data,s=e+r;let a;const l=c=>{for(c.length+=r,a=c.length-1;a>=s;a--)c[a]=c[a-r]};for(l(i),a=e;a<s;++a)i[a]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(e,r),n&&this.updateElements(i,e,r,"reset")}updateElements(e,r,n,o){}_removeElements(e,r){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,r);n._stacked&&fn(n,o)}n.data.splice(e,r)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[r,n,o]=e;this[r](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,r){r&&this._sync(["_removeElements",e,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ee(hn,"defaults",{}),ee(hn,"datasetElementType",null),ee(hn,"dataElementType",null);function G0(t,e,r){let n=1,o=1,i=0,s=0;if(e<Ce){const a=t,l=a+e,c=Math.cos(a),d=Math.sin(a),u=Math.cos(l),f=Math.sin(l),h=(_,x,w)=>ho(_,a,l,!0)?1:Math.max(x,x*r,w,w*r),g=(_,x,w)=>ho(_,a,l,!0)?-1:Math.min(x,x*r,w,w*r),m=h(0,c,u),b=h(Te,d,f),v=g(Ae,c,u),y=g(Ae+Te,d,f);n=(m-v)/2,o=(b-y)/2,i=-(m+v)/2,s=-(b+y)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:s}}class gn extends hn{constructor(e,r){super(e,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,r){const n=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=n;else{let i=l=>+n[l];if(ne(n[e])){const{key:l="value"}=this._parsing;i=c=>+an(n[c],l)}let s,a;for(s=e,a=e+r;s<a;++s)o._parsed[s]=i(s)}}_getRotation(){return ir(this.options.rotation-90)}_getCircumference(){return ir(this.options.circumference)}_getRotationExtents(){let e=Ce,r=-Ce;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const o=this.chart.getDatasetMeta(n).controller,i=o._getRotation(),s=o._getCircumference();e=Math.min(e,i),r=Math.max(r,i+s)}return{rotation:e,circumference:r-e}}update(e){const r=this.chart,{chartArea:n}=r,o=this._cachedMeta,i=o.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-s)/2,0),l=Math.min(Ip(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:m}=G0(u,d,l),b=(n.width-s)/f,v=(n.height-s)/h,y=Math.max(Math.min(b,v)/2,0),_=sl(this.options.radius,y),x=Math.max(_*l,0),w=(_-x)/this._getVisibleDatasetWeightTotal();this.offsetX=g*_,this.offsetY=m*_,o.total=this.calculateTotal(),this.outerRadius=_-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(i,0,i.length,e)}_circumference(e,r){const n=this.options,o=this._cachedMeta,i=this._getCircumference();return r&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||o._parsed[e]===null||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*i/Ce)}updateElements(e,r,n,o){const i=o==="reset",s=this.chart,a=s.chartArea,c=s.options.animation,d=(a.left+a.right)/2,u=(a.top+a.bottom)/2,f=i&&c.animateScale,h=f?0:this.innerRadius,g=f?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(r,o);let v=this._getRotation(),y;for(y=0;y<r;++y)v+=this._circumference(y,i);for(y=r;y<r+n;++y){const _=this._circumference(y,i),x=e[y],w={x:d+this.offsetX,y:u+this.offsetY,startAngle:v,endAngle:v+_,circumference:_,outerRadius:g,innerRadius:h};b&&(w.options=m||this.resolveDataElementOptions(y,x.active?"active":o)),v+=_,this.updateElement(x,y,w,o)}}calculateTotal(){const e=this._cachedMeta,r=e.data;let n=0,o;for(o=0;o<r.length;o++){const i=e._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!r[o].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(e){const r=this._cachedMeta.total;return r>0&&!isNaN(e)?Ce*(Math.abs(e)/r):0}getLabelAndValue(e){const r=this._cachedMeta,n=this.chart,o=n.data.labels||[],i=n0(r._parsed[e],n.options.locale);return{label:o[e]||"",value:i}}getMaxBorderWidth(e){let r=0;const n=this.chart;let o,i,s,a,l;if(!e){for(o=0,i=n.data.datasets.length;o<i;++o)if(n.isDatasetVisible(o)){s=n.getDatasetMeta(o),e=s.data,a=s.controller;break}}if(!e)return 0;for(o=0,i=e.length;o<i;++o)l=a.resolveDataElementOptions(o),l.borderAlign!=="inner"&&(r=Math.max(r,l.borderWidth||0,l.hoverBorderWidth||0));return r}getMaxOffset(e){let r=0;for(let n=0,o=e.length;n<o;++n){const i=this.resolveDataElementOptions(n);r=Math.max(r,i.offset||0,i.hoverOffset||0)}return r}_getRingWeightOffset(e){let r=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(r+=this._getRingWeight(n));return r}_getRingWeight(e){return Math.max(ue(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ee(gn,"id","doughnut"),ee(gn,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ee(gn,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ee(gn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const r=e.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:n,color:o}}=e.legend.options;return r.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}}});function ur(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class as{constructor(e){ee(this,"options");this.options=e||{}}static override(e){Object.assign(as.prototype,e)}init(){}formats(){return ur()}parse(){return ur()}format(){return ur()}add(){return ur()}diff(){return ur()}startOf(){return ur()}endOf(){return ur()}}var X0={_date:as};function Z0(t,e,r,n){const{controller:o,data:i,_sorted:s}=t,a=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&s&&i.length){const c=a._reversePixels?Up:Yi;if(n){if(o._sharedOptions){const d=i[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(i,e,r-u),h=c(i,e,r+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(i,e,r);if(l){const{vScale:u}=o._cachedMeta,{_parsed:f}=t,h=f.slice(0,d.lo+1).reverse().findIndex(m=>!We(m[u.axis]));d.lo-=Math.max(0,h);const g=f.slice(d.hi).findIndex(m=>!We(m[u.axis]));d.hi+=Math.max(0,g)}return d}}return{lo:0,hi:i.length-1}}function xo(t,e,r,n,o){const i=t.getSortedVisibleDatasetMetas(),s=r[e];for(let a=0,l=i.length;a<l;++a){const{index:c,data:d}=i[a],{lo:u,hi:f}=Z0(i[a],e,s,o);for(let h=u;h<=f;++h){const g=d[h];g.skip||n(g,c,h)}}}function J0(t){const e=t.indexOf("x")!==-1,r=t.indexOf("y")!==-1;return function(n,o){const i=e?Math.abs(n.x-o.x):0,s=r?Math.abs(n.y-o.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function ls(t,e,r,n,o){const i=[];return!o&&!t.isPointInArea(e)||xo(t,r,e,function(a,l,c){!o&&!Ol(a,t.chartArea,0)||a.inRange(e.x,e.y,n)&&i.push({element:a,datasetIndex:l,index:c})},!0),i}function Q0(t,e,r,n){let o=[];function i(s,a,l){const{startAngle:c,endAngle:d}=s.getProps(["startAngle","endAngle"],n),{angle:u}=fl(s,{x:e.x,y:e.y});ho(u,c,d)&&o.push({element:s,datasetIndex:a,index:l})}return xo(t,r,e,i),o}function em(t,e,r,n,o,i){let s=[];const a=J0(r);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(e.x,e.y,o);if(n&&!h)return;const g=d.getCenterPoint(o);if(!(!!i||t.isPointInArea(g))&&!h)return;const b=a(e,g);b<l?(s=[{element:d,datasetIndex:u,index:f}],l=b):b===l&&s.push({element:d,datasetIndex:u,index:f})}return xo(t,r,e,c),s}function cs(t,e,r,n,o,i){return!i&&!t.isPointInArea(e)?[]:r==="r"&&!n?Q0(t,e,r,o):em(t,e,r,n,o,i)}function Ul(t,e,r,n,o){const i=[],s=r==="x"?"inXRange":"inYRange";let a=!1;return xo(t,r,e,(l,c,d)=>{l[s]&&l[s](e[r],o)&&(i.push({element:l,datasetIndex:c,index:d}),a=a||l.inRange(e.x,e.y,o))}),n&&!a?[]:i}var tm={modes:{index(t,e,r,n){const o=dr(e,t),i=r.axis||"x",s=r.includeInvisible||!1,a=r.intersect?ls(t,o,i,n,s):cs(t,o,i,!1,n,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,r,n){const o=dr(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;let a=r.intersect?ls(t,o,i,n,s):cs(t,o,i,!1,n,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let d=0;d<c.length;++d)a.push({element:c[d],datasetIndex:l,index:d})}return a},point(t,e,r,n){const o=dr(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return ls(t,o,i,n,s)},nearest(t,e,r,n){const o=dr(e,t),i=r.axis||"xy",s=r.includeInvisible||!1;return cs(t,o,i,r.intersect,n,s)},x(t,e,r,n){const o=dr(e,t);return Ul(t,o,"x",r.intersect,n)},y(t,e,r,n){const o=dr(e,t);return Ul(t,o,"y",r.intersect,n)}}};const ql=["left","top","right","bottom"];function pn(t,e){return t.filter(r=>r.pos===e)}function Kl(t,e){return t.filter(r=>ql.indexOf(r.pos)===-1&&r.box.axis===e)}function mn(t,e){return t.sort((r,n)=>{const o=e?n:r,i=e?r:n;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function rm(t){const e=[];let r,n,o,i,s,a;for(r=0,n=(t||[]).length;r<n;++r)o=t[r],{position:i,options:{stack:s,stackWeight:a=1}}=o,e.push({index:r,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&i+s,stackWeight:a});return e}function nm(t){const e={};for(const r of t){const{stack:n,pos:o,stackWeight:i}=r;if(!n||!ql.includes(o))continue;const s=e[n]||(e[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return e}function om(t,e){const r=nm(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let i,s,a;for(i=0,s=t.length;i<s;++i){a=t[i];const{fullSize:l}=a.box,c=r[a.stack],d=c&&a.stackWeight/c.weight;a.horizontal?(a.width=d?d*n:l&&e.availableWidth,a.height=o):(a.width=n,a.height=d?d*o:l&&e.availableHeight)}return r}function im(t){const e=rm(t),r=mn(e.filter(c=>c.box.fullSize),!0),n=mn(pn(e,"left"),!0),o=mn(pn(e,"right")),i=mn(pn(e,"top"),!0),s=mn(pn(e,"bottom")),a=Kl(e,"x"),l=Kl(e,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:pn(e,"chartArea"),vertical:n.concat(o).concat(l),horizontal:i.concat(s).concat(a)}}function Gl(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function Xl(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function sm(t,e,r,n){const{pos:o,box:i}=r,s=t.maxPadding;if(!ne(o)){r.size&&(t[o]-=r.size);const u=n[r.stack]||{size:0,count:1};u.size=Math.max(u.size,r.horizontal?i.height:i.width),r.size=u.size/u.count,t[o]+=r.size}i.getPadding&&Xl(s,i.getPadding());const a=Math.max(0,e.outerWidth-Gl(s,t,"left","right")),l=Math.max(0,e.outerHeight-Gl(s,t,"top","bottom")),c=a!==t.w,d=l!==t.h;return t.w=a,t.h=l,r.horizontal?{same:c,other:d}:{same:d,other:c}}function am(t){const e=t.maxPadding;function r(n){const o=Math.max(e[n]-t[n],0);return t[n]+=o,o}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}function lm(t,e){const r=e.maxPadding;function n(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(s=>{i[s]=Math.max(e[s],r[s])}),i}return n(t?["left","right"]:["top","bottom"])}function bn(t,e,r,n){const o=[];let i,s,a,l,c,d;for(i=0,s=t.length,c=0;i<s;++i){a=t[i],l=a.box,l.update(a.width||e.w,a.height||e.h,lm(a.horizontal,e));const{same:u,other:f}=sm(e,r,a,n);c|=u&&o.length,d=d||f,l.fullSize||o.push(a)}return c&&bn(o,e,r,n)||d}function wo(t,e,r,n,o){t.top=r,t.left=e,t.right=e+n,t.bottom=r+o,t.width=n,t.height=o}function Zl(t,e,r,n){const o=r.padding;let{x:i,y:s}=e;for(const a of t){const l=a.box,c=n[a.stack]||{placed:0,weight:1},d=a.stackWeight/c.weight||1;if(a.horizontal){const u=e.w*d,f=c.size||l.height;co(c.start)&&(s=c.start),l.fullSize?wo(l,o.left,s,r.outerWidth-o.right-o.left,f):wo(l,e.left+c.placed,s,u,f),c.start=s,c.placed+=u,s=l.bottom}else{const u=e.h*d,f=c.size||l.width;co(c.start)&&(i=c.start),l.fullSize?wo(l,i,o.top,f,r.outerHeight-o.bottom-o.top):wo(l,i,e.top+c.placed,f,u),c.start=i,c.placed+=u,i=l.right}}e.x=i,e.y=s}var qt={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(r){e.draw(r)}}]},t.boxes.push(e)},removeBox(t,e){const r=t.boxes?t.boxes.indexOf(e):-1;r!==-1&&t.boxes.splice(r,1)},configure(t,e,r){e.fullSize=r.fullSize,e.position=r.position,e.weight=r.weight},update(t,e,r,n){if(!t)return;const o=ht(t.options.layout.padding),i=Math.max(e-o.width,0),s=Math.max(r-o.height,0),a=im(t.boxes),l=a.vertical,c=a.horizontal;fe(t.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const d=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:r,padding:o,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/d,hBoxMaxHeight:s/2}),f=Object.assign({},o);Xl(f,ht(n));const h=Object.assign({maxPadding:f,w:i,h:s,x:o.left,y:o.top},o),g=om(l.concat(c),u);bn(a.fullSize,h,u,g),bn(l,h,u,g),bn(c,h,u,g)&&bn(l,h,u,g),am(h),Zl(a.leftAndTop,h,u,g),h.x+=h.w,h.y+=h.h,Zl(a.rightAndBottom,h,u,g),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},fe(a.chartArea,m=>{const b=m.box;Object.assign(b,t.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Jl{acquireContext(e,r){}releaseContext(e){return!1}addEventListener(e,r,n){}removeEventListener(e,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,r,n,o){return r=Math.max(0,r||e.width),n=n||e.height,{width:r,height:Math.max(0,o?Math.floor(r/o):n)}}isAttached(e){return!0}updateConfig(e){}}class cm extends Jl{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ko="$chartjs",dm={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ql=t=>t===null||t==="";function um(t,e){const r=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[ko]={initial:{height:n,width:o,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",Ql(o)){const i=Ll(t,"width");i!==void 0&&(t.width=i)}if(Ql(n))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Ll(t,"height");i!==void 0&&(t.height=i)}return t}const ec=A0?{passive:!0}:!1;function fm(t,e,r){t&&t.addEventListener(e,r,ec)}function hm(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,ec)}function gm(t,e){const r=dm[t.type]||t.type,{x:n,y:o}=dr(t,e);return{type:r,chart:e,native:t,x:n!==void 0?n:null,y:o!==void 0?o:null}}function Co(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function pm(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Co(a.addedNodes,n),s=s&&!Co(a.removedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}function mm(t,e,r){const n=t.canvas,o=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Co(a.removedNodes,n),s=s&&!Co(a.addedNodes,n);s&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}const yn=new Map;let tc=0;function rc(){const t=window.devicePixelRatio;t!==tc&&(tc=t,yn.forEach((e,r)=>{r.currentDevicePixelRatio!==t&&e()}))}function bm(t,e){yn.size||window.addEventListener("resize",rc),yn.set(t,e)}function ym(t){yn.delete(t),yn.size||window.removeEventListener("resize",rc)}function vm(t,e,r){const n=t.canvas,o=n&&ns(n);if(!o)return;const i=ml((a,l)=>{const c=o.clientWidth;r(a,l),c<o.clientWidth&&r()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||i(c,d)});return s.observe(o),bm(t,i),s}function ds(t,e,r){r&&r.disconnect(),e==="resize"&&ym(t)}function xm(t,e,r){const n=t.canvas,o=ml(i=>{t.ctx!==null&&r(gm(i,t))},t);return fm(n,e,o),o}class wm extends Jl{acquireContext(e,r){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(um(e,r),n):null}releaseContext(e){const r=e.canvas;if(!r[ko])return!1;const n=r[ko].initial;["height","width"].forEach(i=>{const s=n[i];We(s)?r.removeAttribute(i):r.setAttribute(i,s)});const o=n.style||{};return Object.keys(o).forEach(i=>{r.style[i]=o[i]}),r.width=r.width,delete r[ko],!0}addEventListener(e,r,n){this.removeEventListener(e,r);const o=e.$proxies||(e.$proxies={}),s={attach:pm,detach:mm,resize:vm}[r]||xm;o[r]=s(e,r,n)}removeEventListener(e,r){const n=e.$proxies||(e.$proxies={}),o=n[r];if(!o)return;({attach:ds,detach:ds,resize:ds}[r]||hm)(e,r,o),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,r,n,o){return P0(e,r,n,o)}isAttached(e){const r=e&&ns(e);return!!(r&&r.isConnected)}}function km(t){return!rs()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?cm:wm}let vn=(Li=class{constructor(){ee(this,"x");ee(this,"y");ee(this,"active",!1);ee(this,"options");ee(this,"$animations")}tooltipPosition(e){const{x:r,y:n}=this.getProps(["x","y"],e);return{x:r,y:n}}hasValue(){return fo(this.x)&&fo(this.y)}getProps(e,r){const n=this.$animations;if(!r||!n)return this;const o={};return e.forEach(i=>{o[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),o}},ee(Li,"defaults",{}),ee(Li,"defaultRoutes"),Li);function Cm(t,e){const r=t.options.ticks,n=_m(t),o=Math.min(r.maxTicksLimit||n,n),i=r.major.enabled?Em(e):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>o)return Om(e,c,i,s/o),c;const d=Sm(i,e,o);if(s>0){let u,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(_o(e,c,d,We(h)?0:a-h,a),u=0,f=s-1;u<f;u++)_o(e,c,d,i[u],i[u+1]);return _o(e,c,d,l,We(h)?e.length:l+h),c}return _o(e,c,d),c}function _m(t){const e=t.options.offset,r=t._tickSize(),n=t._length/r+(e?0:1),o=t._maxLength/r;return Math.floor(Math.min(n,o))}function Sm(t,e,r){const n=Tm(t),o=e.length/r;if(!n)return Math.max(o,1);const i=Hp(n);for(let s=0,a=i.length-1;s<a;s++){const l=i[s];if(l>o)return l}return Math.max(o,1)}function Em(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}function Om(t,e,r,n){let o=0,i=r[0],s;for(n=Math.ceil(n),s=0;s<t.length;s++)s===i&&(e.push(t[s]),o++,i=r[o*n])}function _o(t,e,r,n,o){const i=ue(n,0),s=Math.min(ue(o,t.length),t.length);let a=0,l,c,d;for(r=Math.ceil(r),o&&(l=o-n,r=l/Math.floor(l/r)),d=i;d<0;)a++,d=Math.round(i+a*r);for(c=Math.max(i,0);c<s;c++)c===d&&(e.push(t[c]),a++,d=Math.round(i+a*r))}function Tm(t){const e=t.length;let r,n;if(e<2)return!1;for(n=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==n)return!1;return n}const Nm=t=>t==="left"?"right":t==="right"?"left":t,nc=(t,e,r)=>e==="top"||e==="left"?t[e]+r:t[e]-r,oc=(t,e)=>Math.min(e||t,t);function ic(t,e){const r=[],n=t.length/e,o=t.length;let i=0;for(;i<o;i+=n)r.push(t[Math.floor(i)]);return r}function Mm(t,e,r){const n=t.ticks.length,o=Math.min(e,n-1),i=t._startPixel,s=t._endPixel,a=1e-6;let l=t.getPixelForTick(o),c;if(!(r&&(n===1?c=Math.max(l-i,s-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(o-1))/2,l+=o<e?c:-c,l<i-a||l>s+a)))return l}function Pm(t,e){fe(t,r=>{const n=r.gc,o=n.length/2;let i;if(o>e){for(i=0;i<o;++i)delete r.data[n[i]];n.splice(0,o)}})}function xn(t){return t.drawTicks?t.tickLength:0}function sc(t,e){if(!t.display)return 0;const r=qe(t.font,e),n=ht(t.padding);return(Fe(t.text)?t.text.length:1)*r.lineHeight+n.height}function Am(t,e){return Tr(t,{scale:e,type:"scale"})}function Dm(t,e,r){return Tr(t,{tick:r,index:e,type:"tick"})}function Im(t,e,r){let n=bl(t);return(r&&e!=="right"||!r&&e==="right")&&(n=Nm(n)),n}function Lm(t,e,r,n){const{top:o,left:i,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,f,h,g;const m=s-o,b=a-i;if(t.isHorizontal()){if(h=et(n,i,a),ne(r)){const v=Object.keys(r)[0],y=r[v];g=d[v].getPixelForValue(y)+m-e}else r==="center"?g=(c.bottom+c.top)/2+m-e:g=nc(t,r,e);f=a-i}else{if(ne(r)){const v=Object.keys(r)[0],y=r[v];h=d[v].getPixelForValue(y)-b+e}else r==="center"?h=(c.left+c.right)/2-b+e:h=nc(t,r,e);g=et(n,s,o),u=r==="left"?-Te:Te}return{titleX:h,titleY:g,maxWidth:f,rotation:u}}class So extends vn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,r){return e}getUserBounds(){let{_userMin:e,_userMax:r,_suggestedMin:n,_suggestedMax:o}=this;return e=vt(e,Number.POSITIVE_INFINITY),r=vt(r,Number.NEGATIVE_INFINITY),n=vt(n,Number.POSITIVE_INFINITY),o=vt(o,Number.NEGATIVE_INFINITY),{min:vt(e,n),max:vt(r,o),minDefined:Dt(e),maxDefined:Dt(r)}}getMinMax(e){let{min:r,max:n,minDefined:o,maxDefined:i}=this.getUserBounds(),s;if(o&&i)return{min:r,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,e),o||(r=Math.min(r,s.min)),i||(n=Math.max(n,s.max));return r=i&&r>n?n:r,n=o&&r>n?r:n,{min:vt(r,vt(n,r)),max:vt(n,vt(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){be(this.options.beforeUpdate,[this])}update(e,r,n){const{beginAtZero:o,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=r,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=m0(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?ic(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=Cm(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,e=!e),this._startPixel=r,this._endPixel=n,this._reversePixels=e,this._length=n-r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){be(this.options.afterUpdate,[this])}beforeSetDimensions(){be(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){be(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),be(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){be(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const r=this.options.ticks;let n,o,i;for(n=0,o=e.length;n<o;n++)i=e[n],i.label=be(r.callback,[i.value,n,e],this)}afterTickToLabelConversion(){be(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){be(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,r=e.ticks,n=oc(this.ticks.length,e.ticks.maxTicksLimit),o=r.minRotation||0,i=r.maxRotation;let s=o,a,l,c;if(!this._isVisible()||!r.display||o>=i||n<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),u=d.widest.width,f=d.highest.height,h=at(this.chart.width-u,0,this.maxWidth);a=e.offset?this.maxWidth/n:h/(n-1),u+6>a&&(a=h/(n-(e.offset?.5:1)),l=this.maxHeight-xn(e.grid)-r.padding-sc(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),s=Vp(Math.min(Math.asin(at((d.highest.height+6)/a,-1,1)),Math.asin(at(l/c,-1,1))-Math.asin(at(f/c,-1,1)))),s=Math.max(o,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){be(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){be(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:r,options:{ticks:n,title:o,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=sc(o,r.options.font);if(a?(e.width=this.maxWidth,e.height=xn(i)+l):(e.height=this.maxHeight,e.width=xn(i)+l),n.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=n.padding*2,g=ir(this.labelRotation),m=Math.cos(g),b=Math.sin(g);if(a){const v=n.mirror?0:b*u.width+m*f.height;e.height=Math.min(this.maxHeight,e.height+v+h)}else{const v=n.mirror?0:m*u.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+v+h)}this._calculatePadding(c,d,b,m)}}this._handleMargins(),a?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,r,n,o){const{ticks:{align:i,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=o*e.width,h=n*r.height):(f=n*e.height,h=o*r.width):i==="start"?h=r.width:i==="end"?f=e.width:i!=="inner"&&(f=e.width/2,h=r.width/2),this.paddingLeft=Math.max((f-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-u+s)*this.width/(this.width-u),0)}else{let d=r.height/2,u=e.height/2;i==="start"?(d=0,u=e.height):i==="end"&&(d=r.height,u=0),this.paddingTop=d+s,this.paddingBottom=u+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){be(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:r}=this.options;return r==="top"||r==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let r,n;for(r=0,n=e.length;r<n;r++)We(e[r].label)&&(e.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=ic(n,r)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,r,n){const{ctx:o,_longestTextCache:i}=this,s=[],a=[],l=Math.floor(r/oc(r,n));let c=0,d=0,u,f,h,g,m,b,v,y,_,x,w;for(u=0;u<r;u+=l){if(g=e[u].label,m=this._resolveTickFontOptions(u),o.font=b=m.string,v=i[b]=i[b]||{data:{},gc:[]},y=m.lineHeight,_=x=0,!We(g)&&!Fe(g))_=Cl(o,v.data,v.gc,_,g),x=y;else if(Fe(g))for(f=0,h=g.length;f<h;++f)w=g[f],!We(w)&&!Fe(w)&&(_=Cl(o,v.data,v.gc,_,w),x+=y);s.push(_),a.push(x),c=Math.max(_,c),d=Math.max(x,d)}Pm(i,r);const S=s.indexOf(c),T=a.indexOf(d),M=N=>({width:s[N]||0,height:a[N]||0});return{first:M(0),last:M(r-1),widest:M(S),highest:M(T),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,r){return NaN}getValueForPixel(e){}getPixelForTick(e){const r=this.ticks;return e<0||e>r.length-1?null:this.getPixelForValue(r[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const r=this._startPixel+e*this._length;return Yp(this._alignToPixels?lr(this.chart,r,0):r)}getDecimalForPixel(e){const r=(e-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:r}=this;return e<0&&r<0?r:e>0&&r>0?e:0}getContext(e){const r=this.ticks||[];if(e>=0&&e<r.length){const n=r[e];return n.$context||(n.$context=Dm(this.getContext(),e,n))}return this.$context||(this.$context=Am(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,r=ir(this.labelRotation),n=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),i=this._getLabelSizes(),s=e.autoSkipPadding||0,a=i?i.widest.width+s:0,l=i?i.highest.height+s:0;return this.isHorizontal()?l*n>a*o?a/n:l/o:l*o<a*n?l/n:a/o}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const r=this.axis,n=this.chart,o=this.options,{grid:i,position:s,border:a}=o,l=i.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=xn(i),h=[],g=a.setContext(this.getContext()),m=g.display?g.width:0,b=m/2,v=function(L){return lr(n,L,m)};let y,_,x,w,S,T,M,N,E,I,A,D;if(s==="top")y=v(this.bottom),T=this.bottom-f,N=y-b,I=v(e.top)+b,D=e.bottom;else if(s==="bottom")y=v(this.top),I=e.top,D=v(e.bottom)-b,T=y+b,N=this.top+f;else if(s==="left")y=v(this.right),S=this.right-f,M=y-b,E=v(e.left)+b,A=e.right;else if(s==="right")y=v(this.left),E=e.left,A=v(e.right)-b,S=y+b,M=this.left+f;else if(r==="x"){if(s==="center")y=v((e.top+e.bottom)/2+.5);else if(ne(s)){const L=Object.keys(s)[0],z=s[L];y=v(this.chart.scales[L].getPixelForValue(z))}I=e.top,D=e.bottom,T=y+b,N=T+f}else if(r==="y"){if(s==="center")y=v((e.left+e.right)/2);else if(ne(s)){const L=Object.keys(s)[0],z=s[L];y=v(this.chart.scales[L].getPixelForValue(z))}S=y-b,M=S-f,E=e.left,A=e.right}const O=ue(o.ticks.maxTicksLimit,u),P=Math.max(1,Math.ceil(u/O));for(_=0;_<u;_+=P){const L=this.getContext(_),z=i.setContext(L),B=a.setContext(L),j=z.lineWidth,$=z.color,W=B.dash||[],V=B.dashOffset,Y=z.tickWidth,U=z.tickColor,q=z.tickBorderDash||[],G=z.tickBorderDashOffset;x=Mm(this,_,l),x!==void 0&&(w=lr(n,x,j),c?S=M=E=A=w:T=N=I=D=w,h.push({tx1:S,ty1:T,tx2:M,ty2:N,x1:E,y1:I,x2:A,y2:D,width:j,color:$,borderDash:W,borderDashOffset:V,tickWidth:Y,tickColor:U,tickBorderDash:q,tickBorderDashOffset:G}))}return this._ticksLength=u,this._borderValue=y,h}_computeLabelItems(e){const r=this.axis,n=this.options,{position:o,ticks:i}=n,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=i,f=xn(n.grid),h=f+d,g=u?-d:h,m=-ir(this.labelRotation),b=[];let v,y,_,x,w,S,T,M,N,E,I,A,D="middle";if(o==="top")S=this.bottom-g,T=this._getXAxisLabelAlignment();else if(o==="bottom")S=this.top+g,T=this._getXAxisLabelAlignment();else if(o==="left"){const P=this._getYAxisLabelAlignment(f);T=P.textAlign,w=P.x}else if(o==="right"){const P=this._getYAxisLabelAlignment(f);T=P.textAlign,w=P.x}else if(r==="x"){if(o==="center")S=(e.top+e.bottom)/2+h;else if(ne(o)){const P=Object.keys(o)[0],L=o[P];S=this.chart.scales[P].getPixelForValue(L)+h}T=this._getXAxisLabelAlignment()}else if(r==="y"){if(o==="center")w=(e.left+e.right)/2-h;else if(ne(o)){const P=Object.keys(o)[0],L=o[P];w=this.chart.scales[P].getPixelForValue(L)}T=this._getYAxisLabelAlignment(f).textAlign}r==="y"&&(l==="start"?D="top":l==="end"&&(D="bottom"));const O=this._getLabelSizes();for(v=0,y=a.length;v<y;++v){_=a[v],x=_.label;const P=i.setContext(this.getContext(v));M=this.getPixelForTick(v)+i.labelOffset,N=this._resolveTickFontOptions(v),E=N.lineHeight,I=Fe(x)?x.length:1;const L=I/2,z=P.color,B=P.textStrokeColor,j=P.textStrokeWidth;let $=T;s?(w=M,T==="inner"&&(v===y-1?$=this.options.reverse?"left":"right":v===0?$=this.options.reverse?"right":"left":$="center"),o==="top"?c==="near"||m!==0?A=-I*E+E/2:c==="center"?A=-O.highest.height/2-L*E+E:A=-O.highest.height+E/2:c==="near"||m!==0?A=E/2:c==="center"?A=O.highest.height/2-L*E:A=O.highest.height-I*E,u&&(A*=-1),m!==0&&!P.showLabelBackdrop&&(w+=E/2*Math.sin(m))):(S=M,A=(1-I)*E/2);let W;if(P.showLabelBackdrop){const V=ht(P.backdropPadding),Y=O.heights[v],U=O.widths[v];let q=A-V.top,G=0-V.left;switch(D){case"middle":q-=Y/2;break;case"bottom":q-=Y;break}switch(T){case"center":G-=U/2;break;case"right":G-=U;break;case"inner":v===y-1?G-=U:v>0&&(G-=U/2);break}W={left:G,top:q,width:U+V.width,height:Y+V.height,color:P.backdropColor}}b.push({label:x,font:N,textOffset:A,options:{rotation:m,color:z,strokeColor:B,strokeWidth:j,textAlign:$,textBaseline:D,translation:[w,S],backdrop:W}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:r}=this.options;if(-ir(this.labelRotation))return e==="top"?"left":"right";let o="center";return r.align==="start"?o="left":r.align==="end"?o="right":r.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(e){const{position:r,ticks:{crossAlign:n,mirror:o,padding:i}}=this.options,s=this._getLabelSizes(),a=e+i,l=s.widest.width;let c,d;return r==="left"?o?(d=this.right+i,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-a,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d=this.left)):r==="right"?o?(d=this.left+i,n==="near"?c="right":n==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+a,n==="near"?c="left":n==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:r},left:n,top:o,width:i,height:s}=this;r&&(e.save(),e.fillStyle=r,e.fillRect(n,o,i,s),e.restore())}getLineWidthForValue(e){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const o=this.ticks.findIndex(i=>i.value===e);return o>=0?r.setContext(this.getContext(o)).lineWidth:0}drawGrid(e){const r=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const a=(l,c,d)=>{!d.width||!d.color||(n.save(),n.lineWidth=d.width,n.strokeStyle=d.color,n.setLineDash(d.borderDash||[]),n.lineDashOffset=d.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(r.display)for(i=0,s=o.length;i<s;++i){const l=o[i];r.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),r.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:r,options:{border:n,grid:o}}=this,i=n.setContext(this.getContext()),s=n.display?i.width:0;if(!s)return;const a=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,f;this.isHorizontal()?(c=lr(e,this.left,s)-s/2,d=lr(e,this.right,a)+a/2,u=f=l):(u=lr(e,this.top,s)-s/2,f=lr(e,this.bottom,a)+a/2,c=d=l),r.save(),r.lineWidth=i.width,r.strokeStyle=i.color,r.beginPath(),r.moveTo(c,u),r.lineTo(d,f),r.stroke(),r.restore()}drawLabels(e){if(!this.options.ticks.display)return;const n=this.ctx,o=this._computeLabelArea();o&&Gi(n,o);const i=this.getLabelItems(e);for(const s of i){const a=s.options,l=s.font,c=s.label,d=s.textOffset;po(n,c,0,d,l,a)}o&&Xi(n)}drawTitle(){const{ctx:e,options:{position:r,title:n,reverse:o}}=this;if(!n.display)return;const i=qe(n.font),s=ht(n.padding),a=n.align;let l=i.lineHeight/2;r==="bottom"||r==="center"||ne(r)?(l+=s.bottom,Fe(n.text)&&(l+=i.lineHeight*(n.text.length-1))):l+=s.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=Lm(this,l,r,a);po(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:f,textAlign:Im(a,r,o),textBaseline:"middle",translation:[c,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,r=e.ticks&&e.ticks.z||0,n=ue(e.grid&&e.grid.z,-1),o=ue(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==So.prototype.draw?[{z:r,draw:i=>{this.draw(i)}}]:[{z:n,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:r,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let i,s;for(i=0,s=r.length;i<s;++i){const a=r[i];a[n]===this.id&&(!e||a.type===e)&&o.push(a)}return o}_resolveTickFontOptions(e){const r=this.options.ticks.setContext(this.getContext(e));return qe(r.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Eo{constructor(e,r,n){this.type=e,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const r=Object.getPrototypeOf(e);let n;Bm(r)&&(n=this.register(r));const o=this.items,i=e.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in o||(o[i]=e,Fm(e,s,n),this.override&&we.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const r=this.items,n=e.id,o=this.scope;n in r&&delete r[n],o&&n in we[o]&&(delete we[o][n],this.override&&delete ar[n])}}function Fm(t,e,r){const n=on(Object.create(null),[r?we.get(r):{},we.get(e),t.defaults]);we.set(e,n),t.defaultRoutes&&zm(e,t.defaultRoutes),t.descriptors&&we.describe(e,t.descriptors)}function zm(t,e){Object.keys(e).forEach(r=>{const n=r.split("."),o=n.pop(),i=[t].concat(n).join("."),s=e[r].split("."),a=s.pop(),l=s.join(".");we.route(i,o,l,a)})}function Bm(t){return"id"in t&&"defaults"in t}class $m{constructor(){this.controllers=new Eo(hn,"datasets",!0),this.elements=new Eo(vn,"elements"),this.plugins=new Eo(Object,"plugins"),this.scales=new Eo(So,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,r,n){[...r].forEach(o=>{const i=n||this._getRegistryForType(o);n||i.isForType(o)||i===this.plugins&&o.id?this._exec(e,i,o):fe(o,s=>{const a=n||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,r,n){const o=Vi(e);be(n["before"+o],[],n),r[e](n),be(n["after"+o],[],n)}_getRegistryForType(e){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(e))return n}return this.plugins}_get(e,r,n){const o=r.get(e);if(o===void 0)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var xt=new $m;class jm{constructor(){this._init=[]}notify(e,r,n,o){r==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const i=o?this._descriptors(e).filter(o):this._descriptors(e),s=this._notify(i,e,r,n);return r==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,r,n,o){o=o||{};for(const i of e){const s=i.plugin,a=s[n],l=[r,o,i.options];if(be(a,l,s)===!1&&o.cancelable)return!1}return!0}invalidate(){We(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),r}_createDescriptors(e,r){const n=e&&e.config,o=ue(n.options&&n.options.plugins,{}),i=Hm(n);return o===!1&&!r?[]:Vm(e,i,o,r)}_notifyStateChanges(e){const r=this._oldCache||[],n=this._cache,o=(i,s)=>i.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(o(r,n),e,"stop"),this._notify(o(n,r),e,"start")}}function Hm(t){const e={},r=[],n=Object.keys(xt.plugins.items);for(let i=0;i<n.length;i++)r.push(xt.getPlugin(n[i]));const o=t.plugins||[];for(let i=0;i<o.length;i++){const s=o[i];r.indexOf(s)===-1&&(r.push(s),e[s.id]=!0)}return{plugins:r,localIds:e}}function Wm(t,e){return!e&&t===!1?null:t===!0?{}:t}function Vm(t,{plugins:e,localIds:r},n,o){const i=[],s=t.getContext();for(const a of e){const l=a.id,c=Wm(n[l],o);c!==null&&i.push({plugin:a,options:Rm(t.config,{plugin:a,local:r[l]},c,s)})}return i}function Rm(t,{plugin:e,local:r},n,o){const i=t.pluginScopeKeys(e),s=t.getOptionScopes(n,i);return r&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function us(t,e){const r=we.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function Ym(t,e){let r=t;return t==="_index_"?r=e:t==="_value_"&&(r=e==="x"?"y":"x"),r}function Um(t,e){return t===e?"_index_":"_value_"}function ac(t){if(t==="x"||t==="y"||t==="r")return t}function qm(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function fs(t,...e){if(ac(t))return t;for(const r of e){const n=r.axis||qm(r.position)||t.length>1&&ac(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function lc(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function Km(t,e){if(e.data&&e.data.datasets){const r=e.data.datasets.filter(n=>n.xAxisID===t||n.yAxisID===t);if(r.length)return lc(t,"x",r[0])||lc(t,"y",r[0])}return{}}function Gm(t,e){const r=ar[t.type]||{scales:{}},n=e.scales||{},o=us(t.type,e),i=Object.create(null);return Object.keys(n).forEach(s=>{const a=n[s];if(!ne(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=fs(s,a,Km(s,t),we.scales[a.type]),c=Um(l,o),d=r.scales||{};i[s]=sn(Object.create(null),[{axis:l},a,d[l],d[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||us(a,e),d=(ar[a]||{}).scales||{};Object.keys(d).forEach(u=>{const f=Ym(u,l),h=s[f+"AxisID"]||f;i[h]=i[h]||Object.create(null),sn(i[h],[{axis:f},n[h],d[u]])})}),Object.keys(i).forEach(s=>{const a=i[s];sn(a,[we.scales[a.type],we.scale])}),i}function cc(t){const e=t.options||(t.options={});e.plugins=ue(e.plugins,{}),e.scales=Gm(t,e)}function dc(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Xm(t){return t=t||{},t.data=dc(t.data),cc(t),t}const uc=new Map,fc=new Set;function Oo(t,e){let r=uc.get(t);return r||(r=e(),uc.set(t,r),fc.add(r)),r}const wn=(t,e,r)=>{const n=an(e,r);n!==void 0&&t.add(n)};class Zm{constructor(e){this._config=Xm(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=dc(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),cc(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Oo(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,r){return Oo(`${e}.transition.${r}`,()=>[[`datasets.${e}.transitions.${r}`,`transitions.${r}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,r){return Oo(`${e}-${r}`,()=>[[`datasets.${e}.elements.${r}`,`datasets.${e}`,`elements.${r}`,""]])}pluginScopeKeys(e){const r=e.id,n=this.type;return Oo(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,r){const n=this._scopeCache;let o=n.get(e);return(!o||r)&&(o=new Map,n.set(e,o)),o}getOptionScopes(e,r,n){const{options:o,type:i}=this,s=this._cachedScopes(e,n),a=s.get(r);if(a)return a;const l=new Set;r.forEach(d=>{e&&(l.add(e),d.forEach(u=>wn(l,e,u))),d.forEach(u=>wn(l,o,u)),d.forEach(u=>wn(l,ar[i]||{},u)),d.forEach(u=>wn(l,we,u)),d.forEach(u=>wn(l,qi,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),fc.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:e,type:r}=this;return[e,ar[r]||{},we.datasets[r]||{},{type:r},we,qi]}resolveNamedOptions(e,r,n,o=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=hc(this._resolverCache,e,o);let l=s;if(Qm(s,r)){i.$shared=!1,n=Ut(n)?n():n;const c=this.createResolver(e,n,a);l=Nr(s,n,c)}for(const c of r)i[c]=l[c];return i}createResolver(e,r,n=[""],o){const{resolver:i}=hc(this._resolverCache,e,n);return ne(r)?Nr(i,r,void 0,o):i}}function hc(t,e,r){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=r.join();let i=n.get(o);return i||(i={resolver:Qi(e,r),subPrefixes:r.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,i)),i}const Jm=t=>ne(t)&&Object.getOwnPropertyNames(t).some(e=>Ut(t[e]));function Qm(t,e){const{isScriptable:r,isIndexable:n}=Tl(t);for(const o of e){const i=r(o),s=n(o),a=(s||i)&&t[o];if(i&&(Ut(a)||Jm(a))||s&&Fe(a))return!0}return!1}var eb="4.4.8";const tb=["top","bottom","left","right","chartArea"];function gc(t,e){return t==="top"||t==="bottom"||tb.indexOf(t)===-1&&e==="x"}function pc(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function mc(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),be(r&&r.onComplete,[t],e)}function rb(t){const e=t.chart,r=e.options.animation;be(r&&r.onProgress,[t],e)}function bc(t){return rs()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const To={},yc=t=>{const e=bc(t);return Object.values(To).filter(r=>r.canvas===e).pop()};function nb(t,e,r){const n=Object.keys(t);for(const o of n){const i=+o;if(i>=e){const s=t[o];delete t[o],(r>0||i>e)&&(t[i+r]=s)}}}function ob(t,e,r,n){return!r||t.type==="mouseout"?null:n?e:t}function No(t,e,r){return t.options.clip?t[r]:e[r]}function ib(t,e){const{xScale:r,yScale:n}=t;return r&&n?{left:No(r,e,"left"),right:No(r,e,"right"),top:No(n,e,"top"),bottom:No(n,e,"bottom")}:e}let Mo=(rr=class{static register(...e){xt.add(...e),vc()}static unregister(...e){xt.remove(...e),vc()}constructor(e,r){const n=this.config=new Zm(r),o=bc(e),i=yc(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||km(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,d=l&&l.width;if(this.id=Dp(),this.ctx=a,this.canvas=l,this.width=d,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new jm,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Xp(u=>this.update(u),s.resizeDelay||0),this._dataChanges=[],To[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}It.listen(this,"complete",mc),It.listen(this,"progress",rb),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:r},width:n,height:o,_aspectRatio:i}=this;return We(e)?r&&i?i:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Il(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return _l(this.canvas,this.ctx),this}stop(){return It.stop(this),this}resize(e,r){It.running(this)?this._resizeBeforeDraw={width:e,height:r}:this._resize(e,r)}_resize(e,r){const n=this.options,o=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,e,r,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Il(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),be(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};fe(r,(n,o)=>{n.id=o})}buildOrUpdateScales(){const e=this.options,r=e.scales,n=this.scales,o=Object.keys(n).reduce((s,a)=>(s[a]=!1,s),{});let i=[];r&&(i=i.concat(Object.keys(r).map(s=>{const a=r[s],l=fs(s,a),c=l==="r",d=l==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),fe(i,s=>{const a=s.options,l=a.id,c=fs(l,a),d=ue(a.type,s.dtype);(a.position===void 0||gc(a.position,c)!==gc(s.dposition))&&(a.position=s.dposition),o[l]=!0;let u=null;if(l in n&&n[l].type===d)u=n[l];else{const f=xt.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(a,e)}),fe(o,(s,a)=>{s||delete n[a]}),fe(n,s=>{qt.configure(this,s,s.options),qt.addBox(this,s)})}_updateMetasets(){const e=this._metasets,r=this.data.datasets.length,n=e.length;if(e.sort((o,i)=>o.index-i.index),n>r){for(let o=r;o<n;++o)this._destroyDatasetMeta(o);e.splice(r,n-r)}this._sortedMetasets=e.slice(0).sort(pc("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:r}}=this;e.length>r.length&&delete this._stacks,e.forEach((n,o)=>{r.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const e=[],r=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=r.length;n<o;n++){const i=r[n];let s=this.getDatasetMeta(n);const a=i.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=a,s.indexAxis=i.indexAxis||us(a,this.options),s.order=i.order||0,s.index=n,s.label=""+i.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{const l=xt.getController(a),{datasetElementType:c,dataElementType:d}=we.datasets[a];Object.assign(l,{dataElementType:xt.getElement(d),datasetElementType:c&&xt.getElement(c)}),s.controller=new l(this,n),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){fe(this.data.datasets,(e,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const r=this.config;r.update();const n=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),f=!o&&i.indexOf(u)===-1;u.buildOrUpdateElements(f),s=Math.max(+u.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),o||fe(i,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(pc("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){fe(this.scales,e=>{qt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!cl(r,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:i}of r){const s=n==="_removeElements"?-i:i;nb(e,o,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=i=>new Set(e.filter(s=>s[0]===i).map((s,a)=>a+","+s.splice(1).join(","))),o=n(0);for(let i=1;i<r;i++)if(!cl(o,n(i)))return;return Array.from(o).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;qt.update(this,this.width,this.height,e);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],fe(this.boxes,o=>{n&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let r=0,n=this.data.datasets.length;r<n;++r)this.getDatasetMeta(r).controller.configure();for(let r=0,n=this.data.datasets.length;r<n;++r)this._updateDataset(r,Ut(e)?e({datasetIndex:r}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,r){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:r,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(n.controller._update(r),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(It.has(this)?this.attached&&!It.running(this)&&It.start(this):(this.draw(),mc({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:n,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const r=this._layers;for(e=0;e<r.length&&r[e].z<=0;++e)r[e].draw(this.chartArea);for(this._drawDatasets();e<r.length;++e)r[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const r=this._sortedMetasets,n=[];let o,i;for(o=0,i=r.length;o<i;++o){const s=r[o];(!e||s.visible)&&n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let r=e.length-1;r>=0;--r)this._drawDataset(e[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const r=this.ctx,n=e._clip,o=!n.disabled,i=ib(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(o&&Gi(r,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),e.controller.draw(),o&&Xi(r),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Ol(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,r,n,o){const i=tm.modes[r];return typeof i=="function"?i(this,e,n,o):[]}getDatasetMeta(e){const r=this.data.datasets[e],n=this._metasets;let o=n.filter(i=>i&&i._dataset===r).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:e,_dataset:r,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Tr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const r=this.data.datasets[e];if(!r)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(e,r){const n=this.getDatasetMeta(e);n.hidden=!r}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,r,n){const o=n?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,o);co(r)?(i.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(i,{visible:n}),this.update(a=>a.datasetIndex===e?o:void 0))}hide(e,r){this._updateVisibility(e,r,!1)}show(e,r){this._updateVisibility(e,r,!0)}_destroyDatasetMeta(e){const r=this._metasets[e];r&&r.controller&&r.controller._destroy(),delete this._metasets[e]}_stop(){let e,r;for(this.stop(),It.remove(this),e=0,r=this.data.datasets.length;e<r;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:r}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),_l(e,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete To[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,r=this.platform,n=(i,s)=>{r.addEventListener(this,i,s),e[i]=s},o=(i,s,a)=>{i.offsetX=s,i.offsetY=a,this._eventHandler(i)};fe(this.options.events,i=>n(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,r=this.platform,n=(l,c)=>{r.addEventListener(this,l,c),e[l]=c},o=(l,c)=>{e[l]&&(r.removeEventListener(this,l,c),delete e[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",s)};s=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),n("attach",a)},r.isAttached(this.canvas)?a():s()}unbindEvents(){fe(this._listeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._listeners={},fe(this._responsiveListeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,r,n){const o=n?"set":"remove";let i,s,a,l;for(r==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){s=e[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[o+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const r=this._active||[],n=e.map(({datasetIndex:i,index:s})=>{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[s],index:s}});!ao(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(e,r,n){return this._plugins.notify(this,e,r,n)}isPluginEnabled(e){return this._plugins._cache.filter(r=>r.plugin.id===e).length===1}_updateHoverStyles(e,r,n){const o=this.options.hover,i=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),s=i(r,e),a=n?e:i(e,r);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,r){const n={event:e,replay:r,cancelable:!0,inChartArea:this.isPointInArea(e)},o=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,o)===!1)return;const i=this._handleEvent(e,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(i||n.changed)&&this.render(),this}_handleEvent(e,r,n){const{_active:o=[],options:i}=this,s=r,a=this._getActiveElements(e,o,n,s),l=$p(e),c=ob(e,this._lastEvent,n,l);n&&(this._lastEvent=null,be(i.onHover,[e,a,this],this),l&&be(i.onClick,[e,a,this],this));const d=!ao(a,o);return(d||r)&&(this._active=a,this._updateHoverStyles(a,o,r)),this._lastEvent=c,d}_getActiveElements(e,r,n,o){if(e.type==="mouseout")return[];if(!n)return r;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,o)}},ee(rr,"defaults",we),ee(rr,"instances",To),ee(rr,"overrides",ar),ee(rr,"registry",xt),ee(rr,"version",eb),ee(rr,"getChart",yc),rr);function vc(){return fe(Mo.instances,t=>t._plugins.invalidate())}function sb(t,e,r){const{startAngle:n,pixelMargin:o,x:i,y:s,outerRadius:a,innerRadius:l}=e;let c=o/a;t.beginPath(),t.arc(i,s,a,n-c,r+c),l>o?(c=o/l,t.arc(i,s,l,r+c,n-c,!0)):t.arc(i,s,o,r+Te,n-Te),t.closePath(),t.clip()}function ab(t){return Ji(t,["outerStart","outerEnd","innerStart","innerEnd"])}function lb(t,e,r,n){const o=ab(t.options.borderRadius),i=(r-e)/2,s=Math.min(i,n*e/2),a=l=>{const c=(r-Math.min(i,l))*n/2;return at(l,0,Math.min(i,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:at(o.innerStart,0,s),innerEnd:at(o.innerEnd,0,s)}}function Pr(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function Po(t,e,r,n,o,i){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+n+r-c,0),f=d>0?d+n+r+c:0;let h=0;const g=o-l;if(n){const P=d>0?d-n:0,L=u>0?u-n:0,z=(P+L)/2,B=z!==0?g*z/(z+n):g;h=(g-B)/2}const m=Math.max(.001,g*u-r/Ae)/u,b=(g-m)/2,v=l+b+h,y=o-b-h,{outerStart:_,outerEnd:x,innerStart:w,innerEnd:S}=lb(e,f,u,y-v),T=u-_,M=u-x,N=v+_/T,E=y-x/M,I=f+w,A=f+S,D=v+w/I,O=y-S/A;if(t.beginPath(),i){const P=(N+E)/2;if(t.arc(s,a,u,N,P),t.arc(s,a,u,P,E),x>0){const j=Pr(M,E,s,a);t.arc(j.x,j.y,x,E,y+Te)}const L=Pr(A,y,s,a);if(t.lineTo(L.x,L.y),S>0){const j=Pr(A,O,s,a);t.arc(j.x,j.y,S,y+Te,O+Math.PI)}const z=(y-S/f+(v+w/f))/2;if(t.arc(s,a,f,y-S/f,z,!0),t.arc(s,a,f,z,v+w/f,!0),w>0){const j=Pr(I,D,s,a);t.arc(j.x,j.y,w,D+Math.PI,v-Te)}const B=Pr(T,v,s,a);if(t.lineTo(B.x,B.y),_>0){const j=Pr(T,N,s,a);t.arc(j.x,j.y,_,v-Te,N)}}else{t.moveTo(s,a);const P=Math.cos(N)*u+s,L=Math.sin(N)*u+a;t.lineTo(P,L);const z=Math.cos(E)*u+s,B=Math.sin(E)*u+a;t.lineTo(z,B)}t.closePath()}function cb(t,e,r,n,o){const{fullCircles:i,startAngle:s,circumference:a}=e;let l=e.endAngle;if(i){Po(t,e,r,n,l,o);for(let c=0;c<i;++c)t.fill();isNaN(a)||(l=s+(a%Ce||Ce))}return Po(t,e,r,n,l,o),t.fill(),l}function db(t,e,r,n,o){const{fullCircles:i,startAngle:s,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=f,h?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let g=e.endAngle;if(i){Po(t,e,r,n,g,o);for(let m=0;m<i;++m)t.stroke();isNaN(a)||(g=s+(a%Ce||Ce))}h&&sb(t,e,g),i||(Po(t,e,r,n,g,o),t.stroke())}class kn extends vn{constructor(r){super();ee(this,"circumference");ee(this,"endAngle");ee(this,"fullCircles");ee(this,"innerRadius");ee(this,"outerRadius");ee(this,"pixelMargin");ee(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,r&&Object.assign(this,r)}inRange(r,n,o){const i=this.getProps(["x","y"],o),{angle:s,distance:a}=fl(i,{x:r,y:n}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],o),h=(this.options.spacing+this.options.borderWidth)/2,g=ue(f,c-l),m=ho(s,l,c)&&l!==c,b=g>=Ce||m,v=ln(a,d+h,u+h);return b&&v}getCenterPoint(r){const{x:n,y:o,startAngle:i,endAngle:s,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],r),{offset:c,spacing:d}=this.options,u=(i+s)/2,f=(a+l+d+c)/2;return{x:n+Math.cos(u)*f,y:o+Math.sin(u)*f}}tooltipPosition(r){return this.getCenterPoint(r)}draw(r){const{options:n,circumference:o}=this,i=(n.offset||0)/4,s=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=o>Ce?Math.floor(o/Ce):0,o===0||this.innerRadius<0||this.outerRadius<0)return;r.save();const l=(this.startAngle+this.endAngle)/2;r.translate(Math.cos(l)*i,Math.sin(l)*i);const c=1-Math.sin(Math.min(Ae,o||0)),d=i*c;r.fillStyle=n.backgroundColor,r.strokeStyle=n.borderColor,cb(r,this,d,s,a),db(r,this,d,s,a),r.restore()}}ee(kn,"id","arc"),ee(kn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ee(kn,"defaultRoutes",{backgroundColor:"backgroundColor"}),ee(kn,"descriptors",{_scriptable:!0,_indexable:r=>r!=="borderDash"});const xc=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}},ub=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class wc extends vn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,r,n){this.maxWidth=e,this.maxHeight=r,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let r=be(e.generateLabels,[this.chart],this)||[];e.filter&&(r=r.filter(n=>e.filter(n,this.chart.data))),e.sort&&(r=r.sort((n,o)=>e.sort(n,o,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:e,ctx:r}=this;if(!e.display){this.width=this.height=0;return}const n=e.labels,o=qe(n.font),i=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=xc(n,i);let c,d;r.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(s,i,a,l)+10):(d=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,r,n,o){const{ctx:i,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+a;let u=e;i.textAlign="left",i.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((g,m)=>{const b=n+r/2+i.measureText(g.text).width;(m===0||c[c.length-1]+b+2*a>s)&&(u+=d,c[c.length-(m>0?0:1)]=0,h+=d,f++),l[m]={left:0,top:h,row:f,width:b,height:o},c[c.length-1]+=b+a}),u}_fitCols(e,r,n,o){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=s-e;let u=a,f=0,h=0,g=0,m=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:y,itemHeight:_}=fb(n,r,i,b,o);v>0&&h+_+2*a>d&&(u+=f+a,c.push({width:f,height:h}),g+=f+a,m++,f=h=0),l[v]={left:g,top:h,col:m,width:y,height:_},f=Math.max(f,y),h+=_+a}),u+=f,c.push({width:f,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:o},rtl:i}}=this,s=Mr(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=et(n,this.left+o,this.right-this.lineWidths[a]);for(const c of r)a!==c.row&&(a=c.row,l=et(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+e+o,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+o}else{let a=0,l=et(n,this.top+e+o,this.bottom-this.columnSizes[a].height);for(const c of r)c.col!==a&&(a=c.col,l=et(n,this.top+e+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Gi(e,this),this._draw(),Xi(e)}}_draw(){const{options:e,columnSizes:r,lineWidths:n,ctx:o}=this,{align:i,labels:s}=e,a=we.color,l=Mr(e.rtl,this.left,this.width),c=qe(s.font),{padding:d}=s,u=c.size,f=u/2;let h;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=xc(s,u),v=function(S,T,M){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;o.save();const N=ue(M.lineWidth,1);if(o.fillStyle=ue(M.fillStyle,a),o.lineCap=ue(M.lineCap,"butt"),o.lineDashOffset=ue(M.lineDashOffset,0),o.lineJoin=ue(M.lineJoin,"miter"),o.lineWidth=N,o.strokeStyle=ue(M.strokeStyle,a),o.setLineDash(ue(M.lineDash,[])),s.usePointStyle){const E={radius:m*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:N},I=l.xPlus(S,g/2),A=T+f;El(o,E,I,A,s.pointStyleWidth&&g)}else{const E=T+Math.max((u-m)/2,0),I=l.leftForLtr(S,g),A=un(M.borderRadius);o.beginPath(),Object.values(A).some(D=>D!==0)?Zi(o,{x:I,y:E,w:g,h:m,radius:A}):o.rect(I,E,g,m),o.fill(),N!==0&&o.stroke()}o.restore()},y=function(S,T,M){po(o,M.text,S,T+b/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},_=this.isHorizontal(),x=this._computeTitleHeight();_?h={x:et(i,this.left+d,this.right-n[0]),y:this.top+d+x,line:0}:h={x:this.left+d,y:et(i,this.top+x+d,this.bottom-r[0].height),line:0},Fl(this.ctx,e.textDirection);const w=b+d;this.legendItems.forEach((S,T)=>{o.strokeStyle=S.fontColor,o.fillStyle=S.fontColor;const M=o.measureText(S.text).width,N=l.textAlign(S.textAlign||(S.textAlign=s.textAlign)),E=g+f+M;let I=h.x,A=h.y;l.setWidth(this.width),_?T>0&&I+E+d>this.right&&(A=h.y+=w,h.line++,I=h.x=et(i,this.left+d,this.right-n[h.line])):T>0&&A+w>this.bottom&&(I=h.x=I+r[h.line].width+d,h.line++,A=h.y=et(i,this.top+x+d,this.bottom-r[h.line].height));const D=l.x(I);if(v(D,A,S),I=Zp(N,I+g+f,_?I+E:this.right,e.rtl),y(l.x(I),A,S),_)h.x+=E+d;else if(typeof S.text!="string"){const O=c.lineHeight;h.y+=kc(S,O)+d}else h.y+=w}),zl(this.ctx,e.textDirection)}drawTitle(){const e=this.options,r=e.title,n=qe(r.font),o=ht(r.padding);if(!r.display)return;const i=Mr(e.rtl,this.left,this.width),s=this.ctx,a=r.position,l=n.size/2,c=o.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=et(e.align,u,this.right-f);else{const g=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);d=c+et(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}const h=et(a,u,u+f);s.textAlign=i.textAlign(bl(a)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,po(s,r.text,h,d,n)}_computeTitleHeight(){const e=this.options.title,r=qe(e.font),n=ht(e.padding);return e.display?r.lineHeight+n.height:0}_getLegendItemAt(e,r){let n,o,i;if(ln(e,this.left,this.right)&&ln(r,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(o=i[n],ln(e,o.left,o.left+o.width)&&ln(r,o.top,o.top+o.height))return this.legendItems[n]}return null}handleEvent(e){const r=this.options;if(!pb(e.type,r))return;const n=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const o=this._hoveredItem,i=ub(o,n);o&&!i&&be(r.onLeave,[e,o,this],this),this._hoveredItem=n,n&&!i&&be(r.onHover,[e,n,this],this)}else n&&be(r.onClick,[e,n,this],this)}}function fb(t,e,r,n,o){const i=hb(n,t,e,r),s=gb(o,n,e.lineHeight);return{itemWidth:i,itemHeight:s}}function hb(t,e,r,n){let o=t.text;return o&&typeof o!="string"&&(o=o.reduce((i,s)=>i.length>s.length?i:s)),e+r.size/2+n.measureText(o).width}function gb(t,e,r){let n=t;return typeof e.text!="string"&&(n=kc(e,r)),n}function kc(t,e){const r=t.text?t.text.length:0;return e*r}function pb(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var mb={id:"legend",_element:wc,start(t,e,r){const n=t.legend=new wc({ctx:t.ctx,options:r,chart:t});qt.configure(t,n,r),qt.addBox(t,n)},stop(t){qt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;qt.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:i,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),d=ht(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const Cn={average(t){if(!t.length)return!1;let e,r,n=new Set,o=0,i=0;for(e=0,r=t.length;e<r;++e){const a=t[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();n.add(l.x),o+=l.y,++i}}return i===0||n.size===0?!1:{x:[...n].reduce((a,l)=>a+l)/n.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let r=e.x,n=e.y,o=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=t.length;i<s;++i){const l=t[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=Rp(e,c);d<o&&(o=d,a=l)}}if(a){const l=a.tooltipPosition();r=l.x,n=l.y}return{x:r,y:n}}};function wt(t,e){return e&&(Fe(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Lt(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
17
17
|
`)>-1?t.split(`
|
|
18
|
-
`):t}function mb(t,e){const{element:r,datasetIndex:n,index:o}=e,i=t.getDatasetMeta(n).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:t,label:s,parsed:i.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function Cc(t,e){const r=t.chart.ctx,{body:n,footer:o,title:i}=t,{boxWidth:s,boxHeight:a}=e,l=qe(e.bodyFont),c=qe(e.titleFont),d=qe(e.footerFont),u=i.length,f=o.length,h=n.length,g=ht(e.padding);let m=g.height,b=0,v=n.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),v){const x=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=h*x+(v-h)*l.lineHeight+(v-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const _=function(x){b=Math.max(b,r.measureText(x).width+y)};return r.save(),r.font=c.string,fe(t.title,_),r.font=l.string,fe(t.beforeBody.concat(t.afterBody),_),y=e.displayColors?s+2+e.boxPadding:0,fe(n,x=>{fe(x.before,_),fe(x.lines,_),fe(x.after,_)}),y=0,r.font=d.string,fe(t.footer,_),r.restore(),b+=g.width,{width:b,height:m}}function bb(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}function yb(t,e,r,n){const{x:o,width:i}=n,s=r.caretSize+r.caretPadding;if(t==="left"&&o+i+s>e.width||t==="right"&&o-i-s<0)return!0}function vb(t,e,r,n){const{x:o,width:i}=r,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return n==="center"?c=o<=(a+l)/2?"left":"right":o<=i/2?c="left":o>=s-i/2&&(c="right"),yb(c,t,e,r)&&(c="center"),c}function _c(t,e,r){const n=r.yAlign||e.yAlign||bb(t,r);return{xAlign:r.xAlign||e.xAlign||vb(t,e,r,n),yAlign:n}}function xb(t,e){let{x:r,width:n}=t;return e==="right"?r-=n:e==="center"&&(r-=n/2),r}function wb(t,e,r){let{y:n,height:o}=t;return e==="top"?n+=r:e==="bottom"?n-=o+r:n-=o/2,n}function Sc(t,e,r,n){const{caretSize:o,caretPadding:i,cornerRadius:s}=t,{xAlign:a,yAlign:l}=r,c=o+i,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=un(s);let g=xb(e,a);const m=wb(e,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(d,f)+o:a==="right"&&(g+=Math.max(u,h)+o),{x:at(g,0,n.width-e.width),y:at(m,0,n.height-e.height)}}function Ao(t,e,r){const n=ht(r.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function Ec(t){return wt([],Lt(t))}function kb(t,e,r){return Tr(t,{tooltip:e,tooltipItems:r,type:"tooltip"})}function Oc(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Tc={beforeTitle:At,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return r[e.dataIndex]}return""},afterTitle:At,beforeBody:At,beforeLabel:At,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const r=t.formattedValue;return He(r)||(e+=r),e},labelColor(t){const r=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:r.borderColor,backgroundColor:r.backgroundColor,borderWidth:r.borderWidth,borderDash:r.borderDash,borderDashOffset:r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const r=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:At,afterBody:At,beforeFooter:At,footer:At,afterFooter:At};function Ke(t,e,r,n){const o=t[e].call(r,n);return typeof o>"u"?Tc[e].call(r,n):o}let Nc=(Ha=class extends vn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const r=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&r.options.animation&&n.animations,i=new $l(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=kb(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,r){const{callbacks:n}=r,o=Ke(n,"beforeTitle",this,e),i=Ke(n,"title",this,e),s=Ke(n,"afterTitle",this,e);let a=[];return a=wt(a,Lt(o)),a=wt(a,Lt(i)),a=wt(a,Lt(s)),a}getBeforeBody(e,r){return Ec(Ke(r.callbacks,"beforeBody",this,e))}getBody(e,r){const{callbacks:n}=r,o=[];return fe(e,i=>{const s={before:[],lines:[],after:[]},a=Oc(n,i);wt(s.before,Lt(Ke(a,"beforeLabel",this,i))),wt(s.lines,Ke(a,"label",this,i)),wt(s.after,Lt(Ke(a,"afterLabel",this,i))),o.push(s)}),o}getAfterBody(e,r){return Ec(Ke(r.callbacks,"afterBody",this,e))}getFooter(e,r){const{callbacks:n}=r,o=Ke(n,"beforeFooter",this,e),i=Ke(n,"footer",this,e),s=Ke(n,"afterFooter",this,e);let a=[];return a=wt(a,Lt(o)),a=wt(a,Lt(i)),a=wt(a,Lt(s)),a}_createItems(e){const r=this._active,n=this.chart.data,o=[],i=[],s=[];let a=[],l,c;for(l=0,c=r.length;l<c;++l)a.push(mb(this.chart,r[l]));return e.filter&&(a=a.filter((d,u,f)=>e.filter(d,u,f,n))),e.itemSort&&(a=a.sort((d,u)=>e.itemSort(d,u,n))),fe(a,d=>{const u=Oc(e.callbacks,d);o.push(Ke(u,"labelColor",this,d)),i.push(Ke(u,"labelPointStyle",this,d)),s.push(Ke(u,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=a,a}update(e,r){const n=this.options.setContext(this.getContext()),o=this._active;let i,s=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const a=Cn[n.position].call(this,o,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const l=this._size=Cc(this,n),c=Object.assign({},a,l),d=_c(this.chart,n,c),u=Sc(n,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(e,r,n,o){const i=this.getCaretPosition(e,n,o);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)}getCaretPosition(e,r,n){const{xAlign:o,yAlign:i}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=un(a),{x:f,y:h}=e,{width:g,height:m}=r;let b,v,y,_,x,w;return i==="center"?(x=h+m/2,o==="left"?(b=f,v=b-s,_=x+s,w=x-s):(b=f+g,v=b+s,_=x-s,w=x+s),y=b):(o==="left"?v=f+Math.max(l,d)+s:o==="right"?v=f+g-Math.max(c,u)-s:v=this.caretX,i==="top"?(_=h,x=_-s,b=v-s,y=v+s):(_=h+m,x=_+s,b=v+s,y=v-s),w=_),{x1:b,x2:v,x3:y,y1:_,y2:x,y3:w}}drawTitle(e,r,n){const o=this.title,i=o.length;let s,a,l;if(i){const c=Mr(n.rtl,this.x,this.width);for(e.x=Ao(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",s=qe(n.titleFont),a=n.titleSpacing,r.fillStyle=n.titleColor,r.font=s.string,l=0;l<i;++l)r.fillText(o[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,l+1===i&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,r,n,o,i){const s=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=i,d=qe(i.bodyFont),u=Ao(this,"left",i),f=o.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,g=r.y+h;if(i.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},b=o.leftForLtr(f,c)+c/2,v=g+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Sl(e,m,b,v),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,Sl(e,m,b,v)}else{e.lineWidth=ne(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const m=o.leftForLtr(f,c),b=o.leftForLtr(o.xPlus(f,1),c-2),v=un(s.borderRadius);Object.values(v).some(y=>y!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Xi(e,{x:m,y:g,w:c,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Xi(e,{x:b,y:g+1,w:c-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(m,g,c,l),e.strokeRect(m,g,c,l),e.fillStyle=s.backgroundColor,e.fillRect(b,g+1,c-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,r,n){const{body:o}=this,{bodySpacing:i,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:d}=n,u=qe(n.bodyFont);let f=u.lineHeight,h=0;const g=Mr(n.rtl,this.x,this.width),m=function(M){r.fillText(M,g.x(e.x+h),e.y+f/2),e.y+=f+i},b=g.textAlign(s);let v,y,_,x,w,S,T;for(r.textAlign=s,r.textBaseline="middle",r.font=u.string,e.x=Ao(this,b,n),r.fillStyle=n.bodyColor,fe(this.beforeBody,m),h=a&&b!=="right"?s==="center"?c/2+d:c+2+d:0,x=0,S=o.length;x<S;++x){for(v=o[x],y=this.labelTextColors[x],r.fillStyle=y,fe(v.before,m),_=v.lines,a&&_.length&&(this._drawColorBox(r,e,x,g,n),f=Math.max(u.lineHeight,l)),w=0,T=_.length;w<T;++w)m(_[w]),f=u.lineHeight;fe(v.after,m)}h=0,f=u.lineHeight,fe(this.afterBody,m),e.y-=i}drawFooter(e,r,n){const o=this.footer,i=o.length;let s,a;if(i){const l=Mr(n.rtl,this.x,this.width);for(e.x=Ao(this,n.footerAlign,n),e.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",s=qe(n.footerFont),r.fillStyle=n.footerColor,r.font=s.string,a=0;a<i;++a)r.fillText(o[a],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+n.footerSpacing}}drawBackground(e,r,n,o){const{xAlign:i,yAlign:s}=this,{x:a,y:l}=e,{width:c,height:d}=n,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=un(o.cornerRadius);r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor,r.lineWidth=o.borderWidth,r.beginPath(),r.moveTo(a+u,l),s==="top"&&this.drawCaret(e,r,n,o),r.lineTo(a+c-f,l),r.quadraticCurveTo(a+c,l,a+c,l+f),s==="center"&&i==="right"&&this.drawCaret(e,r,n,o),r.lineTo(a+c,l+d-g),r.quadraticCurveTo(a+c,l+d,a+c-g,l+d),s==="bottom"&&this.drawCaret(e,r,n,o),r.lineTo(a+h,l+d),r.quadraticCurveTo(a,l+d,a,l+d-h),s==="center"&&i==="left"&&this.drawCaret(e,r,n,o),r.lineTo(a,l+u),r.quadraticCurveTo(a,l,a+u,l),r.closePath(),r.fill(),o.borderWidth>0&&r.stroke()}_updateAnimationTarget(e){const r=this.chart,n=this.$animations,o=n&&n.x,i=n&&n.y;if(o||i){const s=Cn[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Cc(this,e),l=Object.assign({},s,this._size),c=_c(r,e,l),d=Sc(e,l,c,r);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const r=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(r);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=ht(r.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,o,r),Fl(e,r.textDirection),i.y+=s.top,this.drawTitle(i,e,r),this.drawBody(i,e,r),this.drawFooter(i,e,r),zl(e,r.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,r){const n=this._active,o=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),i=!ao(n,o),s=this._positionChanged(o,r);(i||s)&&(this._active=o,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],s=this._getActiveElements(e,i,r,n),a=this._positionChanged(s,e),l=r||!ao(s,i)||a;return l&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,r))),l}_getActiveElements(e,r,n,o){const i=this.options;if(e.type==="mouseout")return[];if(!o)return r.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&s.reverse(),s}_positionChanged(e,r){const{caretX:n,caretY:o,options:i}=this,s=Cn[i.position].call(this,e,r);return s!==!1&&(n!==s.x||o!==s.y)}},ee(Ha,"positioners",Cn),Ha);var Cb={id:"tooltip",_element:Nc,positioners:Cn,afterInit(t,e,r){r&&(t.tooltip=new Nc({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Tc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Do={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ge=Object.keys(Do);function Mc(t,e){return t-e}function Pc(t,e){if(He(e))return null;const r=t._adapter,{parser:n,round:o,isoWeekday:i}=t._parseOpts;let s=e;return typeof n=="function"&&(s=n(s)),Dt(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(o&&(s=o==="week"&&(fo(i)||i===!0)?r.startOf(s,"isoWeek",i):r.startOf(s,o)),+s)}function Ac(t,e,r,n){const o=Ge.length;for(let i=Ge.indexOf(t);i<o-1;++i){const s=Do[Ge[i]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((r-e)/(a*s.size))<=n)return Ge[i]}return Ge[o-1]}function _b(t,e,r,n,o){for(let i=Ge.length-1;i>=Ge.indexOf(r);i--){const s=Ge[i];if(Do[s].common&&t._adapter.diff(o,n,s)>=e-1)return s}return Ge[r?Ge.indexOf(r):0]}function Sb(t){for(let e=Ge.indexOf(t)+1,r=Ge.length;e<r;++e)if(Do[Ge[e]].common)return Ge[e]}function Dc(t,e,r){if(!r)t[e]=!0;else if(r.length){const{lo:n,hi:o}=Ri(r,e),i=r[n]>=e?r[n]:r[o];t[i]=!0}}function Eb(t,e,r,n){const o=t._adapter,i=+o.startOf(e[0].value,n),s=e[e.length-1].value;let a,l;for(a=i;a<=s;a=+o.add(a,1,n))l=r[a],l>=0&&(e[l].major=!0);return e}function Ic(t,e,r){const n=[],o={},i=e.length;let s,a;for(s=0;s<i;++s)a=e[s],o[a]=s,n.push({value:a,major:!1});return i===0||!r?n:Eb(t,n,o,r)}class Io extends So{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,r={}){const n=e.time||(e.time={}),o=this._adapter=new G0._date(e.adapters.date);o.init(r),sn(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=r.normalized}parse(e,r){return e===void 0?null:Pc(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,r=this._adapter,n=e.time.unit||"day";let{min:o,max:i,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(o=Math.min(o,c.min)),!a&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),o=Dt(o)&&!isNaN(o)?o:+r.startOf(Date.now(),n),i=Dt(i)&&!isNaN(i)?i:+r.endOf(Date.now(),n)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(r=e[0],n=e[e.length-1]),{min:r,max:n}}buildTicks(){const e=this.options,r=e.time,n=e.ticks,o=n.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,s=this.max,a=Up(o,i,s);return this._unit=r.unit||(n.autoSkip?Ac(r.minUnit,this.min,this.max,this._getLabelCapacity(i)):_b(this,a.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Sb(this._unit),this.initOffsets(o),e.reverse&&a.reverse(),Ic(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let r=0,n=0,o,i;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?r=1-o:r=(this.getDecimalForValue(e[1])-o)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?n=i:n=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;r=at(r,0,s),n=at(n,0,s),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const e=this._adapter,r=this.min,n=this.max,o=this.options,i=o.time,s=i.unit||Ac(i.minUnit,r,n,this._getLabelCapacity(r)),a=ue(o.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=fo(l)||l===!0,d={};let u=r,f,h;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":s),e.diff(n,r,s)>1e5*a)throw new Error(r+" and "+n+" are too far apart with stepSize of "+a+" "+s);const g=o.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<n;f=+e.add(f,a,s),h++)Dc(d,f,g);return(f===n||o.bounds==="ticks"||h===1)&&Dc(d,f,g),Object.keys(d).sort(Mc).map(m=>+m)}getLabelForValue(e){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(e,n.tooltipFormat):r.format(e,n.displayFormats.datetime)}format(e,r){const o=this.options.time.displayFormats,i=this._unit,s=r||o[i];return this._adapter.format(e,s)}_tickFormatFunction(e,r,n,o){const i=this.options,s=i.ticks.callback;if(s)return be(s,[e,r,n],this);const a=i.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&a[l],u=c&&a[c],f=n[r],h=c&&u&&f&&f.major;return this._adapter.format(e,o||(h?u:d))}generateTickLabels(e){let r,n,o;for(r=0,n=e.length;r<n;++r)o=e[r],o.label=this._tickFormatFunction(o.value,r,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const r=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const r=this.options.ticks,n=this.ctx.measureText(e).width,o=ir(this.isHorizontal()?r.maxRotation:r.minRotation),i=Math.cos(o),s=Math.sin(o),a=this._resolveTickFontOptions(0).size;return{w:n*i+a*s,h:n*s+a*i}}_getLabelCapacity(e){const r=this.options.time,n=r.displayFormats,o=n[r.unit]||n.millisecond,i=this._tickFormatFunction(e,0,Ic(this,[e],this._majorUnit),o),s=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],r,n;if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(r=0,n=o.length;r<n;++r)e=e.concat(o[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let r,n;if(e.length)return e;const o=this.getLabels();for(r=0,n=o.length;r<n;++r)e.push(Pc(this,o[r]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Kp(e.sort(Mc))}}ee(Io,"id","time"),ee(Io,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Lo(t,e,r){let n=0,o=t.length-1,i,s,a,l;r?(e>=t[n].pos&&e<=t[o].pos&&({lo:n,hi:o}=Vi(t,"pos",e)),{pos:i,time:a}=t[n],{pos:s,time:l}=t[o]):(e>=t[n].time&&e<=t[o].time&&({lo:n,hi:o}=Vi(t,"time",e)),{time:i,pos:a}=t[n],{time:s,pos:l}=t[o]);const c=s-i;return c?a+(l-a)*(e-i)/c:a}class Lc extends Io{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(e);this._minPos=Lo(r,this.min),this._tableRange=Lo(r,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:r,max:n}=this,o=[],i=[];let s,a,l,c,d;for(s=0,a=e.length;s<a;++s)c=e[s],c>=r&&c<=n&&o.push(c);if(o.length<2)return[{time:r,pos:0},{time:n,pos:1}];for(s=0,a=o.length;s<a;++s)d=o[s+1],l=o[s-1],c=o[s],Math.round((d+l)/2)!==c&&i.push({time:c,pos:s/(a-1)});return i}_generate(){const e=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((o,i)=>o-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?e=this.normalize(r.concat(n)):e=r.length?r:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Lo(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return Lo(this._table,n*this._tableRange+this._minPos,!0)}}ee(Lc,"id","timeseries"),ee(Lc,"defaults",Io.defaults);const Fc="label";function zc(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Ob(t,e){const r=t.options;r&&e&&Object.assign(r,e)}function Bc(t,e){t.labels=e}function $c(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fc;const n=[];t.datasets=e.map(o=>{const i=t.datasets.find(s=>s[r]===o[r]);return!i||!o.data||n.includes(i)?{...o}:(n.push(i),Object.assign(i,o),i)})}function Tb(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fc;const r={labels:[],datasets:[]};return Bc(r,t.labels),$c(r,t.datasets,e),r}function Nb(t,e){const{height:r=150,width:n=300,redraw:o=!1,datasetIdKey:i,type:s,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=k.useRef(null),g=k.useRef(null),m=()=>{h.current&&(g.current=new Mo(h.current,{type:s,data:Tb(a,i),options:l&&{...l},plugins:c}),zc(e,g.current))},b=()=>{zc(e,null),g.current&&(g.current.destroy(),g.current=null)};return k.useEffect(()=>{!o&&g.current&&l&&Ob(g.current,l)},[o,l]),k.useEffect(()=>{!o&&g.current&&Bc(g.current.config.data,a.labels)},[o,a.labels]),k.useEffect(()=>{!o&&g.current&&a.datasets&&$c(g.current.config.data,a.datasets,i)},[o,a.datasets]),k.useEffect(()=>{g.current&&(o?(b(),setTimeout(m)):g.current.update(u))},[o,l,a.labels,a.datasets,u]),k.useEffect(()=>{g.current&&(b(),setTimeout(m))},[s]),k.useEffect(()=>(m(),()=>b()),[]),k.createElement("canvas",{ref:h,role:"img",height:r,width:n,...f},d)}const Mb=k.forwardRef(Nb);function Pb(t,e){return Mo.register(e),k.forwardRef((r,n)=>k.createElement(Mb,{...r,ref:n,type:t}))}const Ab=Pb("doughnut",gn);Mo.register(kn,Cb,pb);const Db=()=>{const t={labels:["Planeado","Ejecutado"],datasets:[{label:"Presupuesto",data:[14.7,11.6],backgroundColor:["#EBE1FF","#9873e8"],borderColor:["#EBE1F9","#9873e1"],borderWidth:1,circumference:180,rotation:-90}]},e={responsive:!0,maintainAspectRatio:!1,plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right"},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:`${t.datasets[0].data.reduce((n,o)=>n+o,0).toFixed(1)}`,font:{size:"20"}}]}}},r={id:"textCenter",beforeDraw(n){const{ctx:o,chartArea:{top:i,width:s,height:a}}=n,l="Total",c=t.datasets[0].data.reduce((u,f)=>u+f,0).toFixed(1),d=i+a*.75;o.save(),o.font="16px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(l,s/2,d-15),o.font="bold 20px Arial",o.fillText(c,s/2,d+15),o.restore()}};return p.jsx("div",{className:"size-full min-h-[200px]",children:p.jsx(Ab,{data:t,options:e,plugins:[r]})})},fs={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function Ib(t){return pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(t)}function Lb(t){return pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M144 136v107h179.9l-47.2-47.9c-5-5.1-5-13.3.1-18.4 5.1-5 13.3-5 18.4.1l69 70c2.4 2.5 3.7 5.8 3.7 9.1 0 1.7-.3 3.4-1 5-.6 1.5-1.6 2.9-2.7 4.1l-69 70c-5 5.1-13.3 5.2-18.4.1-5.1-5-5.2-13.3-.1-18.4l47.2-47.9H144v107c0 22 18 40 40 40h240c22 0 40-18 40-40V136c0-22-18-40-40-40H184c-22 0-40 18-40 40zM61 243c-7.2 0-13 5.8-13 13s5.8 13 13 13h83v-26H61z"},child:[]}]})(t)}const Ar=k.forwardRef(({isOpen:t,onClose:e,children:r,width:n="auto"},o)=>t?p.jsx("div",{className:fs.overlay,children:p.jsxs("div",{ref:o,className:fs.modal,style:{width:n},children:[p.jsx("button",{onClick:e,className:fs.closeButton,children:p.jsx(Ib,{})}),r]})}):null);/*! *****************************************************************************
|
|
18
|
+
`):t}function bb(t,e){const{element:r,datasetIndex:n,index:o}=e,i=t.getDatasetMeta(n).controller,{label:s,value:a}=i.getLabelAndValue(o);return{chart:t,label:s,parsed:i.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function Cc(t,e){const r=t.chart.ctx,{body:n,footer:o,title:i}=t,{boxWidth:s,boxHeight:a}=e,l=qe(e.bodyFont),c=qe(e.titleFont),d=qe(e.footerFont),u=i.length,f=o.length,h=n.length,g=ht(e.padding);let m=g.height,b=0,v=n.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),v){const x=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=h*x+(v-h)*l.lineHeight+(v-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const _=function(x){b=Math.max(b,r.measureText(x).width+y)};return r.save(),r.font=c.string,fe(t.title,_),r.font=l.string,fe(t.beforeBody.concat(t.afterBody),_),y=e.displayColors?s+2+e.boxPadding:0,fe(n,x=>{fe(x.before,_),fe(x.lines,_),fe(x.after,_)}),y=0,r.font=d.string,fe(t.footer,_),r.restore(),b+=g.width,{width:b,height:m}}function yb(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}function vb(t,e,r,n){const{x:o,width:i}=n,s=r.caretSize+r.caretPadding;if(t==="left"&&o+i+s>e.width||t==="right"&&o-i-s<0)return!0}function xb(t,e,r,n){const{x:o,width:i}=r,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return n==="center"?c=o<=(a+l)/2?"left":"right":o<=i/2?c="left":o>=s-i/2&&(c="right"),vb(c,t,e,r)&&(c="center"),c}function _c(t,e,r){const n=r.yAlign||e.yAlign||yb(t,r);return{xAlign:r.xAlign||e.xAlign||xb(t,e,r,n),yAlign:n}}function wb(t,e){let{x:r,width:n}=t;return e==="right"?r-=n:e==="center"&&(r-=n/2),r}function kb(t,e,r){let{y:n,height:o}=t;return e==="top"?n+=r:e==="bottom"?n-=o+r:n-=o/2,n}function Sc(t,e,r,n){const{caretSize:o,caretPadding:i,cornerRadius:s}=t,{xAlign:a,yAlign:l}=r,c=o+i,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=un(s);let g=wb(e,a);const m=kb(e,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(d,f)+o:a==="right"&&(g+=Math.max(u,h)+o),{x:at(g,0,n.width-e.width),y:at(m,0,n.height-e.height)}}function Ao(t,e,r){const n=ht(r.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function Ec(t){return wt([],Lt(t))}function Cb(t,e,r){return Tr(t,{tooltip:e,tooltipItems:r,type:"tooltip"})}function Oc(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Tc={beforeTitle:At,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return r[e.dataIndex]}return""},afterTitle:At,beforeBody:At,beforeLabel:At,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const r=t.formattedValue;return We(r)||(e+=r),e},labelColor(t){const r=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:r.borderColor,backgroundColor:r.backgroundColor,borderWidth:r.borderWidth,borderDash:r.borderDash,borderDashOffset:r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const r=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:At,afterBody:At,beforeFooter:At,footer:At,afterFooter:At};function Ke(t,e,r,n){const o=t[e].call(r,n);return typeof o>"u"?Tc[e].call(r,n):o}let Nc=(Wa=class extends vn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const r=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&r.options.animation&&n.animations,i=new $l(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=Cb(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,r){const{callbacks:n}=r,o=Ke(n,"beforeTitle",this,e),i=Ke(n,"title",this,e),s=Ke(n,"afterTitle",this,e);let a=[];return a=wt(a,Lt(o)),a=wt(a,Lt(i)),a=wt(a,Lt(s)),a}getBeforeBody(e,r){return Ec(Ke(r.callbacks,"beforeBody",this,e))}getBody(e,r){const{callbacks:n}=r,o=[];return fe(e,i=>{const s={before:[],lines:[],after:[]},a=Oc(n,i);wt(s.before,Lt(Ke(a,"beforeLabel",this,i))),wt(s.lines,Ke(a,"label",this,i)),wt(s.after,Lt(Ke(a,"afterLabel",this,i))),o.push(s)}),o}getAfterBody(e,r){return Ec(Ke(r.callbacks,"afterBody",this,e))}getFooter(e,r){const{callbacks:n}=r,o=Ke(n,"beforeFooter",this,e),i=Ke(n,"footer",this,e),s=Ke(n,"afterFooter",this,e);let a=[];return a=wt(a,Lt(o)),a=wt(a,Lt(i)),a=wt(a,Lt(s)),a}_createItems(e){const r=this._active,n=this.chart.data,o=[],i=[],s=[];let a=[],l,c;for(l=0,c=r.length;l<c;++l)a.push(bb(this.chart,r[l]));return e.filter&&(a=a.filter((d,u,f)=>e.filter(d,u,f,n))),e.itemSort&&(a=a.sort((d,u)=>e.itemSort(d,u,n))),fe(a,d=>{const u=Oc(e.callbacks,d);o.push(Ke(u,"labelColor",this,d)),i.push(Ke(u,"labelPointStyle",this,d)),s.push(Ke(u,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=a,a}update(e,r){const n=this.options.setContext(this.getContext()),o=this._active;let i,s=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const a=Cn[n.position].call(this,o,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const l=this._size=Cc(this,n),c=Object.assign({},a,l),d=_c(this.chart,n,c),u=Sc(n,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(e,r,n,o){const i=this.getCaretPosition(e,n,o);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)}getCaretPosition(e,r,n){const{xAlign:o,yAlign:i}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=un(a),{x:f,y:h}=e,{width:g,height:m}=r;let b,v,y,_,x,w;return i==="center"?(x=h+m/2,o==="left"?(b=f,v=b-s,_=x+s,w=x-s):(b=f+g,v=b+s,_=x-s,w=x+s),y=b):(o==="left"?v=f+Math.max(l,d)+s:o==="right"?v=f+g-Math.max(c,u)-s:v=this.caretX,i==="top"?(_=h,x=_-s,b=v-s,y=v+s):(_=h+m,x=_+s,b=v+s,y=v-s),w=_),{x1:b,x2:v,x3:y,y1:_,y2:x,y3:w}}drawTitle(e,r,n){const o=this.title,i=o.length;let s,a,l;if(i){const c=Mr(n.rtl,this.x,this.width);for(e.x=Ao(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",s=qe(n.titleFont),a=n.titleSpacing,r.fillStyle=n.titleColor,r.font=s.string,l=0;l<i;++l)r.fillText(o[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,l+1===i&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,r,n,o,i){const s=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=i,d=qe(i.bodyFont),u=Ao(this,"left",i),f=o.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,g=r.y+h;if(i.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},b=o.leftForLtr(f,c)+c/2,v=g+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Sl(e,m,b,v),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,Sl(e,m,b,v)}else{e.lineWidth=ne(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const m=o.leftForLtr(f,c),b=o.leftForLtr(o.xPlus(f,1),c-2),v=un(s.borderRadius);Object.values(v).some(y=>y!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Zi(e,{x:m,y:g,w:c,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Zi(e,{x:b,y:g+1,w:c-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(m,g,c,l),e.strokeRect(m,g,c,l),e.fillStyle=s.backgroundColor,e.fillRect(b,g+1,c-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,r,n){const{body:o}=this,{bodySpacing:i,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:d}=n,u=qe(n.bodyFont);let f=u.lineHeight,h=0;const g=Mr(n.rtl,this.x,this.width),m=function(M){r.fillText(M,g.x(e.x+h),e.y+f/2),e.y+=f+i},b=g.textAlign(s);let v,y,_,x,w,S,T;for(r.textAlign=s,r.textBaseline="middle",r.font=u.string,e.x=Ao(this,b,n),r.fillStyle=n.bodyColor,fe(this.beforeBody,m),h=a&&b!=="right"?s==="center"?c/2+d:c+2+d:0,x=0,S=o.length;x<S;++x){for(v=o[x],y=this.labelTextColors[x],r.fillStyle=y,fe(v.before,m),_=v.lines,a&&_.length&&(this._drawColorBox(r,e,x,g,n),f=Math.max(u.lineHeight,l)),w=0,T=_.length;w<T;++w)m(_[w]),f=u.lineHeight;fe(v.after,m)}h=0,f=u.lineHeight,fe(this.afterBody,m),e.y-=i}drawFooter(e,r,n){const o=this.footer,i=o.length;let s,a;if(i){const l=Mr(n.rtl,this.x,this.width);for(e.x=Ao(this,n.footerAlign,n),e.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",s=qe(n.footerFont),r.fillStyle=n.footerColor,r.font=s.string,a=0;a<i;++a)r.fillText(o[a],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+n.footerSpacing}}drawBackground(e,r,n,o){const{xAlign:i,yAlign:s}=this,{x:a,y:l}=e,{width:c,height:d}=n,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=un(o.cornerRadius);r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor,r.lineWidth=o.borderWidth,r.beginPath(),r.moveTo(a+u,l),s==="top"&&this.drawCaret(e,r,n,o),r.lineTo(a+c-f,l),r.quadraticCurveTo(a+c,l,a+c,l+f),s==="center"&&i==="right"&&this.drawCaret(e,r,n,o),r.lineTo(a+c,l+d-g),r.quadraticCurveTo(a+c,l+d,a+c-g,l+d),s==="bottom"&&this.drawCaret(e,r,n,o),r.lineTo(a+h,l+d),r.quadraticCurveTo(a,l+d,a,l+d-h),s==="center"&&i==="left"&&this.drawCaret(e,r,n,o),r.lineTo(a,l+u),r.quadraticCurveTo(a,l,a+u,l),r.closePath(),r.fill(),o.borderWidth>0&&r.stroke()}_updateAnimationTarget(e){const r=this.chart,n=this.$animations,o=n&&n.x,i=n&&n.y;if(o||i){const s=Cn[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Cc(this,e),l=Object.assign({},s,this._size),c=_c(r,e,l),d=Sc(e,l,c,r);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const r=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(r);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=ht(r.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,o,r),Fl(e,r.textDirection),i.y+=s.top,this.drawTitle(i,e,r),this.drawBody(i,e,r),this.drawFooter(i,e,r),zl(e,r.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,r){const n=this._active,o=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),i=!ao(n,o),s=this._positionChanged(o,r);(i||s)&&(this._active=o,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],s=this._getActiveElements(e,i,r,n),a=this._positionChanged(s,e),l=r||!ao(s,i)||a;return l&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,r))),l}_getActiveElements(e,r,n,o){const i=this.options;if(e.type==="mouseout")return[];if(!o)return r.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&s.reverse(),s}_positionChanged(e,r){const{caretX:n,caretY:o,options:i}=this,s=Cn[i.position].call(this,e,r);return s!==!1&&(n!==s.x||o!==s.y)}},ee(Wa,"positioners",Cn),Wa);var _b={id:"tooltip",_element:Nc,positioners:Cn,afterInit(t,e,r){r&&(t.tooltip=new Nc({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Tc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Do={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ge=Object.keys(Do);function Mc(t,e){return t-e}function Pc(t,e){if(We(e))return null;const r=t._adapter,{parser:n,round:o,isoWeekday:i}=t._parseOpts;let s=e;return typeof n=="function"&&(s=n(s)),Dt(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(o&&(s=o==="week"&&(fo(i)||i===!0)?r.startOf(s,"isoWeek",i):r.startOf(s,o)),+s)}function Ac(t,e,r,n){const o=Ge.length;for(let i=Ge.indexOf(t);i<o-1;++i){const s=Do[Ge[i]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((r-e)/(a*s.size))<=n)return Ge[i]}return Ge[o-1]}function Sb(t,e,r,n,o){for(let i=Ge.length-1;i>=Ge.indexOf(r);i--){const s=Ge[i];if(Do[s].common&&t._adapter.diff(o,n,s)>=e-1)return s}return Ge[r?Ge.indexOf(r):0]}function Eb(t){for(let e=Ge.indexOf(t)+1,r=Ge.length;e<r;++e)if(Do[Ge[e]].common)return Ge[e]}function Dc(t,e,r){if(!r)t[e]=!0;else if(r.length){const{lo:n,hi:o}=Ri(r,e),i=r[n]>=e?r[n]:r[o];t[i]=!0}}function Ob(t,e,r,n){const o=t._adapter,i=+o.startOf(e[0].value,n),s=e[e.length-1].value;let a,l;for(a=i;a<=s;a=+o.add(a,1,n))l=r[a],l>=0&&(e[l].major=!0);return e}function Ic(t,e,r){const n=[],o={},i=e.length;let s,a;for(s=0;s<i;++s)a=e[s],o[a]=s,n.push({value:a,major:!1});return i===0||!r?n:Ob(t,n,o,r)}class Io extends So{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,r={}){const n=e.time||(e.time={}),o=this._adapter=new X0._date(e.adapters.date);o.init(r),sn(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=r.normalized}parse(e,r){return e===void 0?null:Pc(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,r=this._adapter,n=e.time.unit||"day";let{min:o,max:i,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(o=Math.min(o,c.min)),!a&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),o=Dt(o)&&!isNaN(o)?o:+r.startOf(Date.now(),n),i=Dt(i)&&!isNaN(i)?i:+r.endOf(Date.now(),n)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(r=e[0],n=e[e.length-1]),{min:r,max:n}}buildTicks(){const e=this.options,r=e.time,n=e.ticks,o=n.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,s=this.max,a=qp(o,i,s);return this._unit=r.unit||(n.autoSkip?Ac(r.minUnit,this.min,this.max,this._getLabelCapacity(i)):Sb(this,a.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Eb(this._unit),this.initOffsets(o),e.reverse&&a.reverse(),Ic(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let r=0,n=0,o,i;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?r=1-o:r=(this.getDecimalForValue(e[1])-o)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?n=i:n=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;r=at(r,0,s),n=at(n,0,s),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const e=this._adapter,r=this.min,n=this.max,o=this.options,i=o.time,s=i.unit||Ac(i.minUnit,r,n,this._getLabelCapacity(r)),a=ue(o.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=fo(l)||l===!0,d={};let u=r,f,h;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":s),e.diff(n,r,s)>1e5*a)throw new Error(r+" and "+n+" are too far apart with stepSize of "+a+" "+s);const g=o.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<n;f=+e.add(f,a,s),h++)Dc(d,f,g);return(f===n||o.bounds==="ticks"||h===1)&&Dc(d,f,g),Object.keys(d).sort(Mc).map(m=>+m)}getLabelForValue(e){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(e,n.tooltipFormat):r.format(e,n.displayFormats.datetime)}format(e,r){const o=this.options.time.displayFormats,i=this._unit,s=r||o[i];return this._adapter.format(e,s)}_tickFormatFunction(e,r,n,o){const i=this.options,s=i.ticks.callback;if(s)return be(s,[e,r,n],this);const a=i.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&a[l],u=c&&a[c],f=n[r],h=c&&u&&f&&f.major;return this._adapter.format(e,o||(h?u:d))}generateTickLabels(e){let r,n,o;for(r=0,n=e.length;r<n;++r)o=e[r],o.label=this._tickFormatFunction(o.value,r,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const r=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const r=this.options.ticks,n=this.ctx.measureText(e).width,o=ir(this.isHorizontal()?r.maxRotation:r.minRotation),i=Math.cos(o),s=Math.sin(o),a=this._resolveTickFontOptions(0).size;return{w:n*i+a*s,h:n*s+a*i}}_getLabelCapacity(e){const r=this.options.time,n=r.displayFormats,o=n[r.unit]||n.millisecond,i=this._tickFormatFunction(e,0,Ic(this,[e],this._majorUnit),o),s=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],r,n;if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(r=0,n=o.length;r<n;++r)e=e.concat(o[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let r,n;if(e.length)return e;const o=this.getLabels();for(r=0,n=o.length;r<n;++r)e.push(Pc(this,o[r]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Gp(e.sort(Mc))}}ee(Io,"id","time"),ee(Io,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Lo(t,e,r){let n=0,o=t.length-1,i,s,a,l;r?(e>=t[n].pos&&e<=t[o].pos&&({lo:n,hi:o}=Yi(t,"pos",e)),{pos:i,time:a}=t[n],{pos:s,time:l}=t[o]):(e>=t[n].time&&e<=t[o].time&&({lo:n,hi:o}=Yi(t,"time",e)),{time:i,pos:a}=t[n],{time:s,pos:l}=t[o]);const c=s-i;return c?a+(l-a)*(e-i)/c:a}class Lc extends Io{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(e);this._minPos=Lo(r,this.min),this._tableRange=Lo(r,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:r,max:n}=this,o=[],i=[];let s,a,l,c,d;for(s=0,a=e.length;s<a;++s)c=e[s],c>=r&&c<=n&&o.push(c);if(o.length<2)return[{time:r,pos:0},{time:n,pos:1}];for(s=0,a=o.length;s<a;++s)d=o[s+1],l=o[s-1],c=o[s],Math.round((d+l)/2)!==c&&i.push({time:c,pos:s/(a-1)});return i}_generate(){const e=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((o,i)=>o-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?e=this.normalize(r.concat(n)):e=r.length?r:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Lo(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return Lo(this._table,n*this._tableRange+this._minPos,!0)}}ee(Lc,"id","timeseries"),ee(Lc,"defaults",Io.defaults);const Fc="label";function zc(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Tb(t,e){const r=t.options;r&&e&&Object.assign(r,e)}function Bc(t,e){t.labels=e}function $c(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fc;const n=[];t.datasets=e.map(o=>{const i=t.datasets.find(s=>s[r]===o[r]);return!i||!o.data||n.includes(i)?{...o}:(n.push(i),Object.assign(i,o),i)})}function Nb(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fc;const r={labels:[],datasets:[]};return Bc(r,t.labels),$c(r,t.datasets,e),r}function Mb(t,e){const{height:r=150,width:n=300,redraw:o=!1,datasetIdKey:i,type:s,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=k.useRef(null),g=k.useRef(null),m=()=>{h.current&&(g.current=new Mo(h.current,{type:s,data:Nb(a,i),options:l&&{...l},plugins:c}),zc(e,g.current))},b=()=>{zc(e,null),g.current&&(g.current.destroy(),g.current=null)};return k.useEffect(()=>{!o&&g.current&&l&&Tb(g.current,l)},[o,l]),k.useEffect(()=>{!o&&g.current&&Bc(g.current.config.data,a.labels)},[o,a.labels]),k.useEffect(()=>{!o&&g.current&&a.datasets&&$c(g.current.config.data,a.datasets,i)},[o,a.datasets]),k.useEffect(()=>{g.current&&(o?(b(),setTimeout(m)):g.current.update(u))},[o,l,a.labels,a.datasets,u]),k.useEffect(()=>{g.current&&(b(),setTimeout(m))},[s]),k.useEffect(()=>(m(),()=>b()),[]),k.createElement("canvas",{ref:h,role:"img",height:r,width:n,...f},d)}const Pb=k.forwardRef(Mb);function Ab(t,e){return Mo.register(e),k.forwardRef((r,n)=>k.createElement(Pb,{...r,ref:n,type:t}))}const Db=Ab("doughnut",gn);Mo.register(kn,_b,mb);const Ib=()=>{const t={labels:["Planeado","Ejecutado"],datasets:[{label:"Presupuesto",data:[14.7,11.6],backgroundColor:["#EBE1FF","#9873e8"],borderColor:["#EBE1F9","#9873e1"],borderWidth:1,circumference:180,rotation:-90}]},e={responsive:!0,maintainAspectRatio:!1,plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right"},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:`${t.datasets[0].data.reduce((n,o)=>n+o,0).toFixed(1)}`,font:{size:"20"}}]}}},r={id:"textCenter",beforeDraw(n){const{ctx:o,chartArea:{top:i,width:s,height:a}}=n,l="Total",c=t.datasets[0].data.reduce((u,f)=>u+f,0).toFixed(1),d=i+a*.75;o.save(),o.font="16px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(l,s/2,d-15),o.font="bold 20px Arial",o.fillText(c,s/2,d+15),o.restore()}};return p.jsx("div",{className:"size-full min-h-[200px]",children:p.jsx(Db,{data:t,options:e,plugins:[r]})})},hs={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function Lb(t){return pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(t)}function Fb(t){return pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M144 136v107h179.9l-47.2-47.9c-5-5.1-5-13.3.1-18.4 5.1-5 13.3-5 18.4.1l69 70c2.4 2.5 3.7 5.8 3.7 9.1 0 1.7-.3 3.4-1 5-.6 1.5-1.6 2.9-2.7 4.1l-69 70c-5 5.1-13.3 5.2-18.4.1-5.1-5-5.2-13.3-.1-18.4l47.2-47.9H144v107c0 22 18 40 40 40h240c22 0 40-18 40-40V136c0-22-18-40-40-40H184c-22 0-40 18-40 40zM61 243c-7.2 0-13 5.8-13 13s5.8 13 13 13h83v-26H61z"},child:[]}]})(t)}const Ar=k.forwardRef(({isOpen:t,onClose:e,children:r,width:n="auto"},o)=>t?p.jsx("div",{className:hs.overlay,children:p.jsxs("div",{ref:o,className:hs.modal,style:{width:n},children:[p.jsx("button",{onClick:e,className:hs.closeButton,children:p.jsx(Lb,{})}),r]})}):null);/*! *****************************************************************************
|
|
19
19
|
Copyright (c) Microsoft Corporation.
|
|
20
20
|
|
|
21
21
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -28,33 +28,33 @@
|
|
|
28
28
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
29
29
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
30
30
|
PERFORMANCE OF THIS SOFTWARE.
|
|
31
|
-
***************************************************************************** */var tt=function(){return tt=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},tt.apply(this,arguments)};function fr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function
|
|
32
|
-
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var s=Bb(o);try{s.insertRule(n,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',a)}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),Ve="-ms-",zo="-moz-",se="-webkit-",gs="comm",ps="rule",ms="decl",Wb="@import",jc="@keyframes",Hb=Math.abs,Bo=String.fromCharCode,Rb=Object.assign;function Vb(t,e){return ze(t,0)^45?(((e<<2^ze(t,0))<<2^ze(t,1))<<2^ze(t,2))<<2^ze(t,3):0}function Wc(t){return t.trim()}function Yb(t,e){return(t=e.exec(t))?t[0]:t}function ce(t,e,r){return t.replace(e,r)}function bs(t,e){return t.indexOf(e)}function ze(t,e){return t.charCodeAt(e)|0}function _n(t,e,r){return t.slice(e,r)}function kt(t){return t.length}function ys(t){return t.length}function $o(t,e){return e.push(t),t}function Ub(t,e){return t.map(e).join("")}var jo=1,Dr=1,Hc=0,Xe=0,_e=0,Ir="";function Wo(t,e,r,n,o,i,s){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:jo,column:Dr,length:s,return:""}}function Sn(t,e){return Rb(Wo("",null,null,"",null,null,0),t,{length:-t.length},e)}function qb(){return _e}function Kb(){return _e=Xe>0?ze(Ir,--Xe):0,Dr--,_e===10&&(Dr=1,jo--),_e}function rt(){return _e=Xe<Hc?ze(Ir,Xe++):0,Dr++,_e===10&&(Dr=1,jo++),_e}function Ct(){return ze(Ir,Xe)}function Ho(){return Xe}function En(t,e){return _n(Ir,t,e)}function On(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Rc(t){return jo=Dr=1,Hc=kt(Ir=t),Xe=0,[]}function Vc(t){return Ir="",t}function Ro(t){return Wc(En(Xe-1,vs(t===91?t+2:t===40?t+1:t)))}function Gb(t){for(;(_e=Ct())&&_e<33;)rt();return On(t)>2||On(_e)>3?"":" "}function Xb(t,e){for(;--e&&rt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return En(t,Ho()+(e<6&&Ct()==32&&rt()==32))}function vs(t){for(;rt();)switch(_e){case t:return Xe;case 34:case 39:t!==34&&t!==39&&vs(_e);break;case 40:t===41&&vs(t);break;case 92:rt();break}return Xe}function Zb(t,e){for(;rt()&&t+_e!==57;)if(t+_e===84&&Ct()===47)break;return"/*"+En(e,Xe-1)+"*"+Bo(t===47?t:rt())}function Jb(t){for(;!On(Ct());)rt();return En(t,Xe)}function Yc(t){return Vc(Vo("",null,null,null,[""],t=Rc(t),0,[0],t))}function Vo(t,e,r,n,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,g=0,m=1,b=1,v=1,y=0,_="",x=o,w=i,S=n,T=_;b;)switch(g=y,y=rt()){case 40:if(g!=108&&ze(T,u-1)==58){bs(T+=ce(Ro(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=Ro(y);break;case 9:case 10:case 13:case 32:T+=Gb(g);break;case 92:T+=Xb(Ho()-1,7);continue;case 47:switch(Ct()){case 42:case 47:$o(Qb(Zb(rt(),Ho()),e,r),l);break;default:T+="/"}break;case 123*m:a[c++]=kt(T)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+d:h>0&&kt(T)-u&&$o(h>32?qc(T+";",n,r,u-1):qc(ce(T," ","")+";",n,r,u-2),l);break;case 59:T+=";";default:if($o(S=Uc(T,e,r,c,d,o,a,_,x=[],w=[],u),i),y===123)if(d===0)Vo(T,e,S,S,x,i,u,a,w);else switch(f===99&&ze(T,3)===110?100:f){case 100:case 109:case 115:Vo(t,S,S,n&&$o(Uc(t,S,S,0,0,o,a,_,o,x=[],u),w),o,w,u,a,n?x:w);break;default:Vo(T,S,S,S,[""],w,0,a,w)}}c=d=h=0,m=v=1,_=T="",u=s;break;case 58:u=1+kt(T),h=g;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&Kb()==125)continue}switch(T+=Bo(y),y*m){case 38:v=d>0?1:(T+="\f",-1);break;case 44:a[c++]=(kt(T)-1)*v,v=1;break;case 64:Ct()===45&&(T+=Ro(rt())),f=Ct(),d=u=kt(_=T+=Jb(Ho())),y++;break;case 45:g===45&&kt(T)==2&&(m=0)}}return i}function Uc(t,e,r,n,o,i,s,a,l,c,d){for(var u=o-1,f=o===0?i:[""],h=ys(f),g=0,m=0,b=0;g<n;++g)for(var v=0,y=_n(t,u+1,u=Hb(m=s[g])),_=t;v<h;++v)(_=Wc(m>0?f[v]+" "+y:ce(y,/&\f/g,f[v])))&&(l[b++]=_);return Wo(t,e,r,o===0?ps:a,l,c,d)}function Qb(t,e,r){return Wo(t,e,r,gs,Bo(qb()),_n(t,2,-2),0)}function qc(t,e,r,n){return Wo(t,e,r,ms,_n(t,0,n),_n(t,n+1,-1),n)}function hr(t,e){for(var r="",n=ys(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Kc(t,e,r,n){switch(t.type){case Wb:case ms:return t.return=t.return||t.value;case gs:return"";case jc:return t.return=t.value+"{"+hr(t.children,n)+"}";case ps:t.value=t.props.join(",")}return kt(r=hr(t.children,n))?t.return=t.value+"{"+r+"}":""}function Gc(t){var e=ys(t);return function(r,n,o,i){for(var s="",a=0;a<e;a++)s+=t[a](r,n,o,i)||"";return s}}function ey(t){return function(e){e.root||(e=e.return)&&t(e)}}var ty=function(e){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=e(n);return r.set(n,o),o}},ry=function(e,r,n){for(var o=0,i=0;o=i,i=Ct(),o===38&&i===12&&(r[n]=1),!On(i);)rt();return En(e,Xe)},ny=function(e,r){var n=-1,o=44;do switch(On(o)){case 0:o===38&&Ct()===12&&(r[n]=1),e[n]+=ry(Xe-1,r,n);break;case 2:e[n]+=Ro(o);break;case 4:if(o===44){e[++n]=Ct()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Bo(o)}while(o=rt());return e},oy=function(e,r){return Vc(ny(Rc(e),r))},Xc=new WeakMap,iy=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!Xc.get(n))&&!o){Xc.set(e,!0);for(var i=[],s=oy(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)e.props[c]=i[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},sy=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},ay="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ly=function(e){return e.type==="comm"&&e.children.indexOf(ay)>-1},cy=function(e){return function(r,n,o){if(!(r.type!=="rule"||e.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var s=r.parent===o[0],a=s?o[0].children:o,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<r.line)break;if(c.column<r.column){if(ly(c))return;break}}i.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},Zc=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},dy=function(e,r){for(var n=e-1;n>=0;n--)if(!Zc(r[n]))return!0;return!1},Jc=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},uy=function(e,r,n){Zc(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Jc(e)):dy(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Jc(e)))};function Qc(t,e){switch(Vb(t,e)){case 5103:return se+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return se+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return se+t+zo+t+Ve+t+t;case 6828:case 4268:return se+t+Ve+t+t;case 6165:return se+t+Ve+"flex-"+t+t;case 5187:return se+t+ce(t,/(\w+).+(:[^]+)/,se+"box-$1$2"+Ve+"flex-$1$2")+t;case 5443:return se+t+Ve+"flex-item-"+ce(t,/flex-|-self/,"")+t;case 4675:return se+t+Ve+"flex-line-pack"+ce(t,/align-content|flex-|-self/,"")+t;case 5548:return se+t+Ve+ce(t,"shrink","negative")+t;case 5292:return se+t+Ve+ce(t,"basis","preferred-size")+t;case 6060:return se+"box-"+ce(t,"-grow","")+se+t+Ve+ce(t,"grow","positive")+t;case 4554:return se+ce(t,/([^-])(transform)/g,"$1"+se+"$2")+t;case 6187:return ce(ce(ce(t,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),t,"")+t;case 5495:case 3959:return ce(t,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return ce(ce(t,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+t+t;case 4095:case 3583:case 4068:case 2532:return ce(t,/(.+)-inline(.+)/,se+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kt(t)-1-e>6)switch(ze(t,e+1)){case 109:if(ze(t,e+4)!==45)break;case 102:return ce(t,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+zo+(ze(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~bs(t,"stretch")?Qc(ce(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ze(t,e+1)!==115)break;case 6444:switch(ze(t,kt(t)-3-(~bs(t,"!important")&&10))){case 107:return ce(t,":",":"+se)+t;case 101:return ce(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(ze(t,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Ve+"$2box$3")+t}break;case 5936:switch(ze(t,e+11)){case 114:return se+t+Ve+ce(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return se+t+Ve+ce(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return se+t+Ve+ce(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return se+t+Ve+t+t}return t}var fy=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case ms:e.return=Qc(e.value,e.length);break;case jc:return hr([Sn(e,{value:ce(e.value,"@","@"+se)})],o);case ps:if(e.length)return Ub(e.props,function(i){switch(Yb(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hr([Sn(e,{props:[ce(i,/:(read-\w+)/,":"+zo+"$1")]})],o);case"::placeholder":return hr([Sn(e,{props:[ce(i,/:(plac\w+)/,":"+se+"input-$1")]}),Sn(e,{props:[ce(i,/:(plac\w+)/,":"+zo+"$1")]}),Sn(e,{props:[ce(i,/:(plac\w+)/,Ve+"input-$1")]})],o)}return""})}},Yo=typeof document<"u",hy=Yo?void 0:ty(function(){return Fo(function(){var t={};return function(e){return t[e]}})}),gy=[fy],ed=function(e){var r=e.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
33
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(Yo&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||
|
|
31
|
+
***************************************************************************** */var tt=function(){return tt=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},tt.apply(this,arguments)};function fr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function Ve(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function gs(){return gs=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},gs.apply(this,arguments)}function Fo(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var zb=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Bb=Fo(function(t){return zb.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function $b(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function jb(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Hb=function(){function t(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jb(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var i=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;i&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
32
|
+
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!i}if(this.isSpeedy){var s=$b(o);try{s.insertRule(n,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',a)}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),Re="-ms-",zo="-moz-",se="-webkit-",ps="comm",ms="rule",bs="decl",Wb="@import",jc="@keyframes",Vb=Math.abs,Bo=String.fromCharCode,Rb=Object.assign;function Yb(t,e){return ze(t,0)^45?(((e<<2^ze(t,0))<<2^ze(t,1))<<2^ze(t,2))<<2^ze(t,3):0}function Hc(t){return t.trim()}function Ub(t,e){return(t=e.exec(t))?t[0]:t}function ce(t,e,r){return t.replace(e,r)}function ys(t,e){return t.indexOf(e)}function ze(t,e){return t.charCodeAt(e)|0}function _n(t,e,r){return t.slice(e,r)}function kt(t){return t.length}function vs(t){return t.length}function $o(t,e){return e.push(t),t}function qb(t,e){return t.map(e).join("")}var jo=1,Dr=1,Wc=0,Xe=0,_e=0,Ir="";function Ho(t,e,r,n,o,i,s){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:jo,column:Dr,length:s,return:""}}function Sn(t,e){return Rb(Ho("",null,null,"",null,null,0),t,{length:-t.length},e)}function Kb(){return _e}function Gb(){return _e=Xe>0?ze(Ir,--Xe):0,Dr--,_e===10&&(Dr=1,jo--),_e}function rt(){return _e=Xe<Wc?ze(Ir,Xe++):0,Dr++,_e===10&&(Dr=1,jo++),_e}function Ct(){return ze(Ir,Xe)}function Wo(){return Xe}function En(t,e){return _n(Ir,t,e)}function On(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vc(t){return jo=Dr=1,Wc=kt(Ir=t),Xe=0,[]}function Rc(t){return Ir="",t}function Vo(t){return Hc(En(Xe-1,xs(t===91?t+2:t===40?t+1:t)))}function Xb(t){for(;(_e=Ct())&&_e<33;)rt();return On(t)>2||On(_e)>3?"":" "}function Zb(t,e){for(;--e&&rt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return En(t,Wo()+(e<6&&Ct()==32&&rt()==32))}function xs(t){for(;rt();)switch(_e){case t:return Xe;case 34:case 39:t!==34&&t!==39&&xs(_e);break;case 40:t===41&&xs(t);break;case 92:rt();break}return Xe}function Jb(t,e){for(;rt()&&t+_e!==57;)if(t+_e===84&&Ct()===47)break;return"/*"+En(e,Xe-1)+"*"+Bo(t===47?t:rt())}function Qb(t){for(;!On(Ct());)rt();return En(t,Xe)}function Yc(t){return Rc(Ro("",null,null,null,[""],t=Vc(t),0,[0],t))}function Ro(t,e,r,n,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,g=0,m=1,b=1,v=1,y=0,_="",x=o,w=i,S=n,T=_;b;)switch(g=y,y=rt()){case 40:if(g!=108&&ze(T,u-1)==58){ys(T+=ce(Vo(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=Vo(y);break;case 9:case 10:case 13:case 32:T+=Xb(g);break;case 92:T+=Zb(Wo()-1,7);continue;case 47:switch(Ct()){case 42:case 47:$o(ey(Jb(rt(),Wo()),e,r),l);break;default:T+="/"}break;case 123*m:a[c++]=kt(T)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+d:h>0&&kt(T)-u&&$o(h>32?qc(T+";",n,r,u-1):qc(ce(T," ","")+";",n,r,u-2),l);break;case 59:T+=";";default:if($o(S=Uc(T,e,r,c,d,o,a,_,x=[],w=[],u),i),y===123)if(d===0)Ro(T,e,S,S,x,i,u,a,w);else switch(f===99&&ze(T,3)===110?100:f){case 100:case 109:case 115:Ro(t,S,S,n&&$o(Uc(t,S,S,0,0,o,a,_,o,x=[],u),w),o,w,u,a,n?x:w);break;default:Ro(T,S,S,S,[""],w,0,a,w)}}c=d=h=0,m=v=1,_=T="",u=s;break;case 58:u=1+kt(T),h=g;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&Gb()==125)continue}switch(T+=Bo(y),y*m){case 38:v=d>0?1:(T+="\f",-1);break;case 44:a[c++]=(kt(T)-1)*v,v=1;break;case 64:Ct()===45&&(T+=Vo(rt())),f=Ct(),d=u=kt(_=T+=Qb(Wo())),y++;break;case 45:g===45&&kt(T)==2&&(m=0)}}return i}function Uc(t,e,r,n,o,i,s,a,l,c,d){for(var u=o-1,f=o===0?i:[""],h=vs(f),g=0,m=0,b=0;g<n;++g)for(var v=0,y=_n(t,u+1,u=Vb(m=s[g])),_=t;v<h;++v)(_=Hc(m>0?f[v]+" "+y:ce(y,/&\f/g,f[v])))&&(l[b++]=_);return Ho(t,e,r,o===0?ms:a,l,c,d)}function ey(t,e,r){return Ho(t,e,r,ps,Bo(Kb()),_n(t,2,-2),0)}function qc(t,e,r,n){return Ho(t,e,r,bs,_n(t,0,n),_n(t,n+1,-1),n)}function hr(t,e){for(var r="",n=vs(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Kc(t,e,r,n){switch(t.type){case Wb:case bs:return t.return=t.return||t.value;case ps:return"";case jc:return t.return=t.value+"{"+hr(t.children,n)+"}";case ms:t.value=t.props.join(",")}return kt(r=hr(t.children,n))?t.return=t.value+"{"+r+"}":""}function Gc(t){var e=vs(t);return function(r,n,o,i){for(var s="",a=0;a<e;a++)s+=t[a](r,n,o,i)||"";return s}}function ty(t){return function(e){e.root||(e=e.return)&&t(e)}}var ry=function(e){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=e(n);return r.set(n,o),o}},ny=function(e,r,n){for(var o=0,i=0;o=i,i=Ct(),o===38&&i===12&&(r[n]=1),!On(i);)rt();return En(e,Xe)},oy=function(e,r){var n=-1,o=44;do switch(On(o)){case 0:o===38&&Ct()===12&&(r[n]=1),e[n]+=ny(Xe-1,r,n);break;case 2:e[n]+=Vo(o);break;case 4:if(o===44){e[++n]=Ct()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Bo(o)}while(o=rt());return e},iy=function(e,r){return Rc(oy(Vc(e),r))},Xc=new WeakMap,sy=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!Xc.get(n))&&!o){Xc.set(e,!0);for(var i=[],s=iy(r,i),a=n.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)e.props[c]=i[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},ay=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}},ly="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",cy=function(e){return e.type==="comm"&&e.children.indexOf(ly)>-1},dy=function(e){return function(r,n,o){if(!(r.type!=="rule"||e.compat)){var i=r.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var s=r.parent===o[0],a=s?o[0].children:o,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<r.line)break;if(c.column<r.column){if(cy(c))return;break}}i.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},Zc=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},uy=function(e,r){for(var n=e-1;n>=0;n--)if(!Zc(r[n]))return!0;return!1},Jc=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},fy=function(e,r,n){Zc(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Jc(e)):uy(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Jc(e)))};function Qc(t,e){switch(Yb(t,e)){case 5103:return se+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return se+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return se+t+zo+t+Re+t+t;case 6828:case 4268:return se+t+Re+t+t;case 6165:return se+t+Re+"flex-"+t+t;case 5187:return se+t+ce(t,/(\w+).+(:[^]+)/,se+"box-$1$2"+Re+"flex-$1$2")+t;case 5443:return se+t+Re+"flex-item-"+ce(t,/flex-|-self/,"")+t;case 4675:return se+t+Re+"flex-line-pack"+ce(t,/align-content|flex-|-self/,"")+t;case 5548:return se+t+Re+ce(t,"shrink","negative")+t;case 5292:return se+t+Re+ce(t,"basis","preferred-size")+t;case 6060:return se+"box-"+ce(t,"-grow","")+se+t+Re+ce(t,"grow","positive")+t;case 4554:return se+ce(t,/([^-])(transform)/g,"$1"+se+"$2")+t;case 6187:return ce(ce(ce(t,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),t,"")+t;case 5495:case 3959:return ce(t,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return ce(ce(t,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+t+t;case 4095:case 3583:case 4068:case 2532:return ce(t,/(.+)-inline(.+)/,se+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kt(t)-1-e>6)switch(ze(t,e+1)){case 109:if(ze(t,e+4)!==45)break;case 102:return ce(t,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+zo+(ze(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ys(t,"stretch")?Qc(ce(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ze(t,e+1)!==115)break;case 6444:switch(ze(t,kt(t)-3-(~ys(t,"!important")&&10))){case 107:return ce(t,":",":"+se)+t;case 101:return ce(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(ze(t,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Re+"$2box$3")+t}break;case 5936:switch(ze(t,e+11)){case 114:return se+t+Re+ce(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return se+t+Re+ce(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return se+t+Re+ce(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return se+t+Re+t+t}return t}var hy=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case bs:e.return=Qc(e.value,e.length);break;case jc:return hr([Sn(e,{value:ce(e.value,"@","@"+se)})],o);case ms:if(e.length)return qb(e.props,function(i){switch(Ub(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hr([Sn(e,{props:[ce(i,/:(read-\w+)/,":"+zo+"$1")]})],o);case"::placeholder":return hr([Sn(e,{props:[ce(i,/:(plac\w+)/,":"+se+"input-$1")]}),Sn(e,{props:[ce(i,/:(plac\w+)/,":"+zo+"$1")]}),Sn(e,{props:[ce(i,/:(plac\w+)/,Re+"input-$1")]})],o)}return""})}},Yo=typeof document<"u",gy=Yo?void 0:ry(function(){return Fo(function(){var t={};return function(e){return t[e]}})}),py=[hy],ed=function(e){var r=e.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
33
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(Yo&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||py;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var i={},s,a=[];Yo&&(s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)i[w[S]]=!0;a.push(x)}));var l,c=[sy,ay];if(process.env.NODE_ENV!=="production"&&c.push(dy({get compat(){return _.compat}}),fy),Yo){var d,u=[Kc,process.env.NODE_ENV!=="production"?function(x){x.root||(x.return?d.insert(x.return):x.value&&x.type!==ps&&d.insert(x.value+"{}"))}:ty(function(x){d.insert(x)})],f=Gc(c.concat(o,u)),h=function(w){return hr(Yc(w),f)};l=function(w,S,T,M){d=T,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(d={insert:function(E){T.insert(E+S.map)}}),h(w?w+"{"+S.styles+"}":S.styles),M&&(_.inserted[S.name]=!0)}}else{var g=[Kc],m=Gc(c.concat(o,g)),b=function(w){return hr(Yc(w),m)},v=gy(o)(r),y=function(w,S){var T=S.name;return v[T]===void 0&&(v[T]=b(w?w+"{"+S.styles+"}":S.styles)),v[T]};l=function(w,S,T,M){var N=S.name,E=y(w,S);if(_.compat===void 0)return M&&(_.inserted[N]=!0),process.env.NODE_ENV==="development"&&S.map!==void 0?E+S.map:E;if(M)_.inserted[N]=E;else return E}}var _={key:r,sheet:new Hb({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return _.sheet.hydrate(a),_},ws=typeof document<"u";function my(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):n+=o+" "}),n}var td=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||ws===!1&&e.compat!==void 0)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},by=function(e,r,n){td(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i="",s=r;do{var a=e.insert(r===s?"."+o:"",s,e.sheet,!0);!ws&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!ws&&i.length!==0)return i}};function yy(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var vy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
34
34
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
35
35
|
You can read more about this here:
|
|
36
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
36
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,xy="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",wy=/[A-Z]|^ms/g,nd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ks=function(e){return e.charCodeAt(1)===45},od=function(e){return e!=null&&typeof e!="boolean"},Cs=Fo(function(t){return ks(t)?t:t.replace(wy,"-$&").toLowerCase()}),Uo=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(nd,function(n,o,i){return gt={name:o,styles:i,next:gt},o})}return vy[e]!==1&&!ks(e)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var ky=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Cy=["normal","none","initial","inherit","unset"],_y=Uo,Sy=/^-ms-/,Ey=/-(.)/g,id={};Uo=function(e,r){if(e==="content"&&(typeof r!="string"||Cy.indexOf(r)===-1&&!ky.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=_y(e,r);return n!==""&&!ks(e)&&e.indexOf("-")!==-1&&id[e]===void 0&&(id[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Sy,"ms-").replace(Ey,function(o,i){return i.toUpperCase()})+"?")),n}}var sd="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Tn(t,e,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(sd);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return gt={name:r.name,styles:r.styles,next:gt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)gt={name:n.name,styles:n.styles,next:gt},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return Oy(t,e,r)}case"function":{if(t!==void 0){var i=gt,s=r(t);return gt=i,Tn(t,e,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],l=r.replace(nd,function(c,d,u){var f="animation"+a.length;return a.push("const "+f+" = keyframes`"+u.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+l+"`"]).join(`
|
|
37
37
|
`)+`
|
|
38
38
|
|
|
39
39
|
You should wrap it with \`css\` like this:
|
|
40
40
|
|
|
41
|
-
`+("css`"+l+"`"))}break}return r}function
|
|
41
|
+
`+("css`"+l+"`"))}break}return r}function Oy(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Tn(t,e,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")od(s)&&(n+=Cs(i)+":"+Uo(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(sd);if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var a=0;a<s.length;a++)od(s[a])&&(n+=Cs(i)+":"+Uo(i,s[a])+";");else{var l=Tn(t,e,s);switch(i){case"animation":case"animationName":{n+=Cs(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(xy),n+=i+"{"+l+"}"}}}}return n}var ad=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ld;process.env.NODE_ENV!=="production"&&(ld=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var gt,cd=function(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";gt=void 0;var s=e[0];s==null||s.raw===void 0?(o=!1,i+=Tn(n,r,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(rd),i+=s[0]);for(var a=1;a<e.length;a++)i+=Tn(n,r,e[a]),o&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(rd),i+=s[a]);var l;process.env.NODE_ENV!=="production"&&(i=i.replace(ld,function(f){return l=f,""})),ad.lastIndex=0;for(var c="",d;(d=ad.exec(i))!==null;)c+="-"+d[1];var u=yy(i)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:i,map:l,next:gt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:i,next:gt}},Ty=typeof document<"u",dd=function(e){return e()},Ny=C.useInsertionEffect?C.useInsertionEffect:!1,ud=Ty&&Ny||dd,fd=typeof document<"u",My={}.hasOwnProperty,Nn=k.createContext(typeof HTMLElement<"u"?ed({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Nn.displayName="EmotionCacheContext"),Nn.Provider;var _s=function(e){return k.forwardRef(function(r,n){var o=k.useContext(Nn);return e(r,o,n)})};fd||(_s=function(e){return function(r){var n=k.useContext(Nn);return n===null?(n=ed({key:"css"}),k.createElement(Nn.Provider,{value:n},e(r,n))):e(r,n)}});var Ss=k.createContext({});process.env.NODE_ENV!=="production"&&(Ss.displayName="EmotionThemeContext");var hd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",gd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Py=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;td(r,n,o);var i=ud(function(){return by(r,n,o)});if(!fd&&i!==void 0){for(var s,a=n.name,l=n.next;l!==void 0;)a+=" "+l.name,l=l.next;return k.createElement("style",(s={},s["data-emotion"]=r.key+" "+a,s.dangerouslySetInnerHTML={__html:i},s.nonce=r.sheet.nonce,s))}return null},Ay=_s(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[hd],i=[n],s="";typeof t.className=="string"?s=my(e.registered,i,t.className):t.className!=null&&(s=t.className+" ");var a=cd(i,void 0,k.useContext(Ss));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=t[gd];l&&(a=cd([a,"label:"+l+";"]))}s+=e.key+"-"+a.name;var c={};for(var d in t)My.call(t,d)&&d!=="css"&&d!==hd&&(process.env.NODE_ENV==="production"||d!==gd)&&(c[d]=t[d]);return c.ref=r,c.className=s,k.createElement(k.Fragment,null,k.createElement(Py,{cache:e,serialized:a,isStringTag:typeof o=="string"}),k.createElement(o,c))});process.env.NODE_ENV!=="production"&&(Ay.displayName="EmotionCssPropInternal");var Es=typeof document<"u";function Dy(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):n+=o+" "}),n}var pd=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Es===!1&&e.compat!==void 0)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},Iy=function(e,r,n){pd(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var i="",s=r;do{var a=e.insert(r===s?"."+o:"",s,e.sheet,!0);!Es&&a!==void 0&&(i+=a),s=s.next}while(s!==void 0);if(!Es&&i.length!==0)return i}};function Ly(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Fy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},md=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
42
42
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
43
43
|
You can read more about this here:
|
|
44
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
44
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,zy="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",By=/[A-Z]|^ms/g,bd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Os=function(e){return e.charCodeAt(1)===45},yd=function(e){return e!=null&&typeof e!="boolean"},Ts=Fo(function(t){return Os(t)?t:t.replace(By,"-$&").toLowerCase()}),qo=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(bd,function(n,o,i){return pt={name:o,styles:i,next:pt},o})}return Fy[e]!==1&&!Os(e)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var $y=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,jy=["normal","none","initial","inherit","unset"],Hy=qo,Wy=/^-ms-/,Vy=/-(.)/g,vd={};qo=function(e,r){if(e==="content"&&(typeof r!="string"||jy.indexOf(r)===-1&&!$y.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=Hy(e,r);return n!==""&&!Os(e)&&e.indexOf("-")!==-1&&vd[e]===void 0&&(vd[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Wy,"ms-").replace(Vy,function(o,i){return i.toUpperCase()})+"?")),n}}var xd="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Mn(t,e,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(xd);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return pt={name:r.name,styles:r.styles,next:pt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)pt={name:n.name,styles:n.styles,next:pt},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return Ry(t,e,r)}case"function":{if(t!==void 0){var i=pt,s=r(t);return pt=i,Mn(t,e,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],l=r.replace(bd,function(d,u,f){var h="animation"+a.length;return a.push("const "+h+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+l+"`"]).join(`
|
|
45
45
|
`)+`
|
|
46
46
|
|
|
47
47
|
You should wrap it with \`css\` like this:
|
|
48
48
|
|
|
49
|
-
`+("css`"+l+"`"))}break}if(e==null)return r;var c=e[r];return c!==void 0?c:r}function Ry(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Mn(t,e,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")e!=null&&e[s]!==void 0?n+=i+"{"+e[s]+"}":yd(s)&&(n+=
|
|
49
|
+
`+("css`"+l+"`"))}break}if(e==null)return r;var c=e[r];return c!==void 0?c:r}function Ry(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Mn(t,e,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")e!=null&&e[s]!==void 0?n+=i+"{"+e[s]+"}":yd(s)&&(n+=Ts(i)+":"+qo(i,s)+";");else{if(i==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(xd);if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var a=0;a<s.length;a++)yd(s[a])&&(n+=Ts(i)+":"+qo(i,s[a])+";");else{var l=Mn(t,e,s);switch(i){case"animation":case"animationName":{n+=Ts(i)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&i==="undefined"&&console.error(zy),n+=i+"{"+l+"}"}}}}return n}var wd=/label:\s*([^\s;\n{]+)\s*(;|$)/g,kd;process.env.NODE_ENV!=="production"&&(kd=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var pt,Yy=function(e,r,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";pt=void 0;var s=e[0];s==null||s.raw===void 0?(o=!1,i+=Mn(n,r,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(md),i+=s[0]);for(var a=1;a<e.length;a++)i+=Mn(n,r,e[a]),o&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(md),i+=s[a]);var l;process.env.NODE_ENV!=="production"&&(i=i.replace(kd,function(f){return l=f,""})),wd.lastIndex=0;for(var c="",d;(d=wd.exec(i))!==null;)c+="-"+d[1];var u=Ly(i)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:i,map:l,next:pt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:i,next:pt}},Uy=Bb,qy=function(e){return e!=="theme"},Cd=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Uy:qy},_d=function(e,r,n){var o;if(r){var i=r.shouldForwardProp;o=e.__emotion_forwardProp&&i?function(s){return e.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},Sd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
50
50
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
51
51
|
You can read more about this here:
|
|
52
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
53
|
-
You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,i,s;r!==void 0&&(i=r.label,s=r.target);var a=_d(e,r,n),l=a||Cd(o),c=!l("as");return function(){var d=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(Sd),u.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)process.env.NODE_ENV!=="production"&&d[0][h]===void 0&&console.error(Sd),u.push(d[h],d[0][h])}var g=
|
|
52
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Ky=typeof document<"u",Gy=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;pd(r,n,o);var i=ud(function(){return Iy(r,n,o)});if(!Ky&&i!==void 0){for(var s,a=n.name,l=n.next;l!==void 0;)a+=" "+l.name,l=l.next;return k.createElement("style",(s={},s["data-emotion"]=r.key+" "+a,s.dangerouslySetInnerHTML={__html:i},s.nonce=r.sheet.nonce,s))}return null},Xy=function t(e,r){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
53
|
+
You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,i,s;r!==void 0&&(i=r.label,s=r.target);var a=_d(e,r,n),l=a||Cd(o),c=!l("as");return function(){var d=arguments,u=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(Sd),u.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)process.env.NODE_ENV!=="production"&&d[0][h]===void 0&&console.error(Sd),u.push(d[h],d[0][h])}var g=_s(function(m,b,v){var y=c&&m.as||o,_="",x=[],w=m;if(m.theme==null){w={};for(var S in m)w[S]=m[S];w.theme=k.useContext(Ss)}typeof m.className=="string"?_=Dy(b.registered,x,m.className):m.className!=null&&(_=m.className+" ");var T=Yy(u.concat(x),b.registered,w);_+=b.key+"-"+T.name,s!==void 0&&(_+=" "+s);var M=c&&a===void 0?Cd(y):l,N={};for(var E in m)c&&E==="as"||M(E)&&(N[E]=m[E]);return N.className=_,N.ref=v,k.createElement(k.Fragment,null,k.createElement(Gy,{cache:b,serialized:T,isStringTag:typeof y=="string"}),k.createElement(y,N))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=e.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=u,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),g.withComponent=function(m,b){return t(m,gs({},r,b,{shouldForwardProp:_d(g,b,!0)})).apply(void 0,u)},g}},Zy=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],De=Xy.bind();Zy.forEach(function(t){De[t]=De(t)});var Ed={exports:{}};/*!
|
|
54
54
|
Copyright (c) 2018 Jed Watson.
|
|
55
55
|
Licensed under the MIT License (MIT), see
|
|
56
56
|
http://jedwatson.github.io/classnames
|
|
57
|
-
*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&n.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&n.push(l)}}}return n.join(" ")}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(Ed);var Ne=Ed.exports,
|
|
57
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&n.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&n.push(l)}}}return n.join(" ")}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(Ed);var Ne=Ed.exports,Jy=k.createContext(void 0),Qy=function(){var t=k.useContext(Jy);return t},ev=function(t){var e=k.useState(!!t&&typeof window<"u"&&window.matchMedia(t).matches),r=e[0],n=e[1];return k.useEffect(function(){if(t){var o=window.matchMedia(t),i=function(){o.matches!==r&&n(o.matches)};return i(),o.addEventListener("change",i),function(){return o.removeEventListener("change",i)}}},[r,t]),r},xe={root:"ps-sidebar-root",container:"ps-sidebar-container",image:"ps-sidebar-image",backdrop:"ps-sidebar-backdrop",collapsed:"ps-collapsed",toggled:"ps-toggled",rtl:"ps-rtl",broken:"ps-broken"},ae={root:"ps-menu-root",menuItemRoot:"ps-menuitem-root",subMenuRoot:"ps-submenu-root",button:"ps-menu-button",prefix:"ps-menu-prefix",suffix:"ps-menu-suffix",label:"ps-menu-label",icon:"ps-menu-icon",subMenuContent:"ps-submenu-content",SubMenuExpandIcon:"ps-submenu-expand-icon",disabled:"ps-disabled",active:"ps-active",open:"ps-open"},tv=De.div(Od||(Od=Ve([`
|
|
58
58
|
position: fixed;
|
|
59
59
|
top: 0px;
|
|
60
60
|
right: 0px;
|
|
@@ -70,7 +70,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
70
70
|
left: 0px;
|
|
71
71
|
z-index: 1;
|
|
72
72
|
background-color: rgb(0, 0, 0, 0.3);
|
|
73
|
-
`]))),Od,
|
|
73
|
+
`]))),Od,rv={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},nv=De.aside(Td||(Td=Ve([`
|
|
74
74
|
position: relative;
|
|
75
75
|
border-right-width: 1px;
|
|
76
76
|
border-right-style: solid;
|
|
@@ -178,7 +178,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
`,`
|
|
181
|
-
`])),function(t){var e=t.transitionDuration;return"width, left, right, ".concat(e,"ms")},function(t){var e=t.width;return e},function(t){var e=t.width;return e},xe.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},xe.rtl,xe.broken,function(t){var e=t.rtl,r=t.width;return e?"":"left: -".concat(r,";")},xe.collapsed,function(t){var e=t.rtl,r=t.collapsedWidth;return e?"":"left: -".concat(r,"; ")},xe.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},xe.rtl,function(t){var e=t.width;return e},xe.collapsed,function(t){var e=t.collapsedWidth;return e},xe.toggled,function(t){var e=t.rootStyles;return e}),
|
|
181
|
+
`])),function(t){var e=t.transitionDuration;return"width, left, right, ".concat(e,"ms")},function(t){var e=t.width;return e},function(t){var e=t.width;return e},xe.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},xe.rtl,xe.broken,function(t){var e=t.rtl,r=t.width;return e?"":"left: -".concat(r,";")},xe.collapsed,function(t){var e=t.rtl,r=t.collapsedWidth;return e?"":"left: -".concat(r,"; ")},xe.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},xe.rtl,function(t){var e=t.width;return e},xe.collapsed,function(t){var e=t.collapsedWidth;return e},xe.toggled,function(t){var e=t.rootStyles;return e}),ov=De.div(Nd||(Nd=Ve([`
|
|
182
182
|
position: relative;
|
|
183
183
|
height: 100%;
|
|
184
184
|
overflow-y: auto;
|
|
@@ -194,7 +194,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
194
194
|
z-index: 3;
|
|
195
195
|
|
|
196
196
|
`,`
|
|
197
|
-
`])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),
|
|
197
|
+
`])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),iv=De.img(Md||(Md=Ve([`
|
|
198
198
|
&.`,` {
|
|
199
199
|
width: 100%;
|
|
200
200
|
height: 100%;
|
|
@@ -216,7 +216,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
216
216
|
top: 0;
|
|
217
217
|
z-index: 2;
|
|
218
218
|
}
|
|
219
|
-
`])),xe.image),Ko=k.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),
|
|
219
|
+
`])),xe.image),Ko=k.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),sv=k.forwardRef(function(t,e){var r,n=t.collapsed,o=t.toggled,i=t.onBackdropClick,s=t.onBreakPoint,a=t.width,l=a===void 0?"250px":a,c=t.collapsedWidth,d=c===void 0?"80px":c,u=t.defaultCollapsed,f=t.className,h=t.children,g=t.breakPoint,m=t.customBreakPoint,b=t.backgroundColor,v=b===void 0?"rgb(249, 249, 249, 0.7)":b,y=t.transitionDuration,_=y===void 0?300:y,x=t.image,w=t.rtl,S=t.rootStyles,T=fr(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),M=function(){if(m)return"(max-width: ".concat(m,")");if(g)return["xs","sm","md","lg","xl","xxl"].includes(g)?"(max-width: ".concat(rv[g],")"):g==="always"||g==="all"?(g==="always"&&console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.'),"screen"):"(max-width: ".concat(g,")")},N=k.useRef();N.current=function(B){s==null||s(B)};var E=ev(M()),I=k.useState(!1),A=I[0],D=I[1],O=Qy(),P=n??(!A&&u?!0:O==null?void 0:O.collapsed),L=o??(O==null?void 0:O.toggled),z=function(){i==null||i(),O==null||O.updateSidebarState({toggled:!1})};return k.useEffect(function(){var B;(B=N.current)===null||B===void 0||B.call(N,E)},[E]),k.useEffect(function(){O==null||O.updateSidebarState({broken:E,rtl:w,transitionDuration:_})},[E,O==null?void 0:O.updateSidebarState,w,_]),k.useEffect(function(){A||(O==null||O.updateSidebarState({collapsed:u}),D(!0))},[u,A,O==null?void 0:O.updateSidebarState]),k.createElement(Ko.Provider,{value:{collapsed:P,toggled:L,rtl:w,transitionDuration:_}},k.createElement(nv,tt({ref:e,"data-testid":"".concat(xe.root,"-test-id"),rtl:w,rootStyles:S,width:l,collapsedWidth:d,transitionDuration:_,className:Ne(xe.root,(r={},r[xe.collapsed]=P,r[xe.toggled]=L,r[xe.broken]=E,r[xe.rtl]=w,r),f)},T),k.createElement(ov,{"data-testid":"".concat(xe.container,"-test-id"),className:xe.container,backgroundColor:v},h),x&&k.createElement(iv,{"data-testid":"".concat(xe.image,"-test-id"),src:x,alt:"sidebar background",className:xe.image}),E&&L&&k.createElement(tv,{"data-testid":"".concat(xe.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:z,onKeyPress:z,className:xe.backdrop})))}),Td,Nd,Md,Pd=De.ul(Ad||(Ad=Ve([`
|
|
220
220
|
list-style-type: none;
|
|
221
221
|
padding: 0;
|
|
222
222
|
margin: 0;
|
|
@@ -224,7 +224,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
224
224
|
list-style-type: none;
|
|
225
225
|
padding: 0;
|
|
226
226
|
margin: 0;
|
|
227
|
-
`]))),Ad,
|
|
227
|
+
`]))),Ad,av=De.nav(Id||(Id=Ve([`
|
|
228
228
|
&.`,` {
|
|
229
229
|
`,`
|
|
230
230
|
}
|
|
@@ -232,7 +232,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
232
232
|
&.`,` {
|
|
233
233
|
`,`
|
|
234
234
|
}
|
|
235
|
-
`])),ae.root,function(t){var e=t.rootStyles;return e}),Dd=k.createContext(void 0),Go=k.createContext(0),
|
|
235
|
+
`])),ae.root,function(t){var e=t.rootStyles;return e}),Dd=k.createContext(void 0),Go=k.createContext(0),lv=function(t,e){var r=t.children,n=t.className,o=t.transitionDuration,i=o===void 0?300:o,s=t.closeOnClick,a=s===void 0?!1:s,l=t.rootStyles,c=t.menuItemStyles,d=t.renderExpandIcon,u=fr(t,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),f=k.useMemo(function(){return{transitionDuration:i,closeOnClick:a,menuItemStyles:c,renderExpandIcon:d}},[i,a,c,d]);return k.createElement(Dd.Provider,{value:f},k.createElement(Go.Provider,{value:0},k.createElement(av,tt({ref:e,className:Ne(ae.root,n),rootStyles:l},u),k.createElement(Pd,null,r))))},cv=k.forwardRef(lv),Id,Ns=function(){var t=k.useContext(Dd);if(t===void 0)throw new Error("Menu Component is required!");return t},dv=De.div(Ld||(Ld=Ve([`
|
|
236
236
|
height: 0px;
|
|
237
237
|
overflow: hidden;
|
|
238
238
|
z-index: 999;
|
|
@@ -277,7 +277,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
277
277
|
`):`
|
|
278
278
|
position: static!important;
|
|
279
279
|
transform: none!important;
|
|
280
|
-
`},function(t){var e=t.rootStyles;return e}),
|
|
280
|
+
`},function(t){var e=t.rootStyles;return e}),uv=function(t,e){var r=t.children,n=t.open,o=t.openWhenCollapsed,i=t.firstLevel,s=t.collapsed,a=t.defaultOpen,l=fr(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=Ns().transitionDuration,d=k.useState(a)[0];return k.createElement(dv,tt({"data-testid":"".concat(ae.subMenuContent,"-test-id"),ref:e,firstLevel:i,collapsed:s,open:n,openWhenCollapsed:o,transitionDuration:c,defaultOpen:d},l),k.createElement(Pd,null,r))},fv=k.forwardRef(uv),Ld,Fd=De.span(zd||(zd=Ve([`
|
|
281
281
|
flex-grow: 1;
|
|
282
282
|
overflow: hidden;
|
|
283
283
|
text-overflow: ellipsis;
|
|
@@ -291,7 +291,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
291
291
|
white-space: nowrap;
|
|
292
292
|
|
|
293
293
|
`,`;
|
|
294
|
-
`])),function(t){var e=t.rootStyles;return e}),zd,Bd=De.span($d||($d=
|
|
294
|
+
`])),function(t){var e=t.rootStyles;return e}),zd,Bd=De.span($d||($d=Ve([`
|
|
295
295
|
width: 35px;
|
|
296
296
|
min-width: 35px;
|
|
297
297
|
height: 35px;
|
|
@@ -321,7 +321,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
321
321
|
`,`
|
|
322
322
|
|
|
323
323
|
`,`;
|
|
324
|
-
`])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),$d,jd=De.span(
|
|
324
|
+
`])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),$d,jd=De.span(Hd||(Hd=Ve([`
|
|
325
325
|
`,`
|
|
326
326
|
opacity: `,`;
|
|
327
327
|
transition: opacity `,`ms;
|
|
@@ -333,7 +333,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
333
333
|
transition: opacity `,`ms;
|
|
334
334
|
|
|
335
335
|
`,`;
|
|
336
|
-
`])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,r=t.collapsed;return e&&r?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),Wd
|
|
336
|
+
`])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,r=t.collapsed;return e&&r?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),Hd,Wd=De.span(Vd||(Vd=Ve([`
|
|
337
337
|
margin-right: 5px;
|
|
338
338
|
margin-left: 5px;
|
|
339
339
|
opacity: `,`;
|
|
@@ -347,7 +347,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
347
347
|
transition: opacity `,`ms;
|
|
348
348
|
|
|
349
349
|
`,`;
|
|
350
|
-
`])),function(t){var e=t.firstLevel,r=t.collapsed;return e&&r?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),
|
|
350
|
+
`])),function(t){var e=t.firstLevel,r=t.collapsed;return e&&r?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),Vd,hv=De.span(Rd||(Rd=Ve([`
|
|
351
351
|
`,`
|
|
352
352
|
|
|
353
353
|
`,`;
|
|
@@ -361,7 +361,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
361
361
|
top: 50%;
|
|
362
362
|
transform: translateY(-50%);
|
|
363
363
|
|
|
364
|
-
`)},function(t){var e=t.rootStyles;return e}),
|
|
364
|
+
`)},function(t){var e=t.rootStyles;return e}),gv=De.span(Yd||(Yd=Ve([`
|
|
365
365
|
display: inline-block;
|
|
366
366
|
transition: transform 0.3s;
|
|
367
367
|
`,`
|
|
@@ -382,7 +382,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
382
382
|
border-top: 2px solid currentcolor;
|
|
383
383
|
`:` border-right: 2px solid currentcolor;
|
|
384
384
|
border-bottom: 2px solid currentcolor;
|
|
385
|
-
`},function(t){var e=t.open,r=t.rtl;return e?r?"-135deg":"45deg":"-45deg"}),
|
|
385
|
+
`},function(t){var e=t.open,r=t.rtl;return e?r?"-135deg":"45deg":"-45deg"}),pv=De.span(Ud||(Ud=Ve([`
|
|
386
386
|
width: 5px;
|
|
387
387
|
height: 5px;
|
|
388
388
|
background-color: currentcolor;
|
|
@@ -394,11 +394,11 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
394
394
|
background-color: currentcolor;
|
|
395
395
|
border-radius: 50%;
|
|
396
396
|
display: inline-block;
|
|
397
|
-
`]))),
|
|
397
|
+
`]))),Rd,Yd,Ud,Ze="top",lt="bottom",ct="right",Je="left",Xo="auto",Pn=[Ze,lt,ct,Je],Lr="start",An="end",mv="clippingParents",qd="viewport",Dn="popper",bv="reference",Kd=Pn.reduce(function(t,e){return t.concat([e+"-"+Lr,e+"-"+An])},[]),Gd=[].concat(Pn,[Xo]).reduce(function(t,e){return t.concat([e,e+"-"+Lr,e+"-"+An])},[]),yv="beforeRead",vv="read",xv="afterRead",wv="beforeMain",kv="main",Cv="afterMain",_v="beforeWrite",Sv="write",Ev="afterWrite",Ms=[yv,vv,xv,wv,kv,Cv,_v,Sv,Ev];function _t(t){return t?(t.nodeName||"").toLowerCase():null}function dt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function gr(t){var e=dt(t).Element;return t instanceof e||t instanceof Element}function nt(t){var e=dt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ps(t){if(typeof ShadowRoot>"u")return!1;var e=dt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ov(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},i=e.elements[r];!nt(i)||!_t(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Tv(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),a=s.reduce(function(l,c){return l[c]="",l},{});!nt(o)||!_t(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var Nv={name:"applyStyles",enabled:!0,phase:"write",fn:Ov,effect:Tv,requires:["computeStyles"]};function mt(t){return t.split("-")[0]}var pr=Math.max,Zo=Math.min,Fr=Math.round;function As(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Xd(){return!/^((?!chrome|android).)*safari/i.test(As())}function zr(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,i=1;e&&nt(t)&&(o=t.offsetWidth>0&&Fr(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Fr(n.height)/t.offsetHeight||1);var s=gr(t)?dt(t):window,a=s.visualViewport,l=!Xd()&&r,c=(n.left+(l&&a?a.offsetLeft:0))/o,d=(n.top+(l&&a?a.offsetTop:0))/i,u=n.width/o,f=n.height/i;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function Ds(t){var e=zr(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function Zd(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Ps(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function bt(t){return dt(t).getComputedStyle(t)}function Mv(t){return["table","td","th"].indexOf(_t(t))>=0}function Kt(t){return((gr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jo(t){return _t(t)==="html"?t:t.assignedSlot||t.parentNode||(Ps(t)?t.host:null)||Kt(t)}function Jd(t){return!nt(t)||bt(t).position==="fixed"?null:t.offsetParent}function Pv(t){var e=/firefox/i.test(As()),r=/Trident/i.test(As());if(r&&nt(t)){var n=bt(t);if(n.position==="fixed")return null}var o=Jo(t);for(Ps(o)&&(o=o.host);nt(o)&&["html","body"].indexOf(_t(o))<0;){var i=bt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function In(t){for(var e=dt(t),r=Jd(t);r&&Mv(r)&&bt(r).position==="static";)r=Jd(r);return r&&(_t(r)==="html"||_t(r)==="body"&&bt(r).position==="static")?e:r||Pv(t)||e}function Is(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ln(t,e,r){return pr(t,Zo(e,r))}function Av(t,e,r){var n=Ln(t,e,r);return n>r?r:n}function Qd(){return{top:0,right:0,bottom:0,left:0}}function eu(t){return Object.assign({},Qd(),t)}function tu(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Dv=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,eu(typeof e!="number"?e:tu(e,Pn))};function Iv(t){var e,r=t.state,n=t.name,o=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=mt(r.placement),l=Is(a),c=[Je,ct].indexOf(a)>=0,d=c?"height":"width";if(!(!i||!s)){var u=Dv(o.padding,r),f=Ds(i),h=l==="y"?Ze:Je,g=l==="y"?lt:ct,m=r.rects.reference[d]+r.rects.reference[l]-s[l]-r.rects.popper[d],b=s[l]-r.rects.reference[l],v=In(i),y=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,_=m/2-b/2,x=u[h],w=y-f[d]-u[g],S=y/2-f[d]/2+_,T=Ln(x,S,w),M=l;r.modifiersData[n]=(e={},e[M]=T,e.centerOffset=T-S,e)}}function Lv(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(nt(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Zd(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}var Fv={name:"arrow",enabled:!0,phase:"main",fn:Iv,effect:Lv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Br(t){return t.split("-")[1]}var zv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bv(t){var e=t.x,r=t.y,n=window,o=n.devicePixelRatio||1;return{x:Fr(e*o)/o||0,y:Fr(r*o)/o||0}}function ru(t){var e,r=t.popper,n=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,f=s.x,h=f===void 0?0:f,g=s.y,m=g===void 0?0:g,b=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),_=Je,x=Ze,w=window;if(c){var S=In(r),T="clientHeight",M="clientWidth";if(S===dt(r)&&(S=Kt(r),bt(S).position!=="static"&&a==="absolute"&&(T="scrollHeight",M="scrollWidth")),S=S,o===Ze||(o===Je||o===ct)&&i===An){x=lt;var N=u&&S===w&&w.visualViewport?w.visualViewport.height:S[T];m-=N-n.height,m*=l?1:-1}if(o===Je||(o===Ze||o===lt)&&i===An){_=ct;var E=u&&S===w&&w.visualViewport?w.visualViewport.width:S[M];h-=E-n.width,h*=l?1:-1}}var I=Object.assign({position:a},c&&zv),A=d===!0?Bv({x:h,y:m}):{x:h,y:m};if(h=A.x,m=A.y,l){var D;return Object.assign({},I,(D={},D[x]=y?"0":"",D[_]=v?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",D))}return Object.assign({},I,(e={},e[x]=y?m+"px":"",e[_]=v?h+"px":"",e.transform="",e))}function $v(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,a=r.roundOffsets,l=a===void 0?!0:a;if(process.env.NODE_ENV!=="production"){var c=bt(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(u){return c.indexOf(u)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
398
398
|
|
|
399
399
|
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
400
400
|
|
|
401
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:mt(e.placement),variation:Br(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ru(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ru(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var $v={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bv,data:{}},Qo={passive:!0};function jv(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=dt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Qo)}),a&&l.addEventListener("resize",r.update,Qo),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Qo)}),a&&l.removeEventListener("resize",r.update,Qo)}}var Wv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jv,data:{}},Hv={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(t){return t.replace(/left|right|bottom|top/g,function(e){return Hv[e]})}var Rv={start:"end",end:"start"};function nu(t){return t.replace(/start|end/g,function(e){return Rv[e]})}function Is(t){var e=dt(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ls(t){return zr(Kt(t)).left+Is(t).scrollLeft}function Vv(t,e){var r=dt(t),n=Kt(t),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Xd();(c||!c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Ls(t),y:l}}function Yv(t){var e,r=Kt(t),n=Is(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=pr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=pr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Ls(t),l=-n.scrollTop;return bt(o||r).direction==="rtl"&&(a+=pr(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Fs(t){var e=bt(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ou(t){return["html","body","#document"].indexOf(_t(t))>=0?t.ownerDocument.body:nt(t)&&Fs(t)?t:ou(Jo(t))}function Fn(t,e){var r;e===void 0&&(e=[]);var n=ou(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=dt(n),s=o?[i].concat(i.visualViewport||[],Fs(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Fn(Jo(s)))}function zs(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Uv(t,e){var r=zr(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function iu(t,e,r){return e===qd?zs(Vv(t,r)):gr(e)?Uv(e,r):zs(Yv(Kt(t)))}function qv(t){var e=Fn(Jo(t)),r=["absolute","fixed"].indexOf(bt(t).position)>=0,n=r&&nt(t)?In(t):t;return gr(n)?e.filter(function(o){return gr(o)&&Zd(o,n)&&_t(o)!=="body"}):[]}function Kv(t,e,r,n){var o=e==="clippingParents"?qv(t):[].concat(e),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(l,c){var d=iu(t,c,n);return l.top=pr(d.top,l.top),l.right=Zo(d.right,l.right),l.bottom=Zo(d.bottom,l.bottom),l.left=pr(d.left,l.left),l},iu(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function su(t){var e=t.reference,r=t.element,n=t.placement,o=n?mt(n):null,i=n?Br(n):null,s=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,l;switch(o){case Ze:l={x:s,y:e.y-r.height};break;case lt:l={x:s,y:e.y+e.height};break;case ct:l={x:e.x+e.width,y:a};break;case Je:l={x:e.x-r.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?Ds(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Lr:l[c]=l[c]-(e[d]/2-r[d]/2);break;case An:l[c]=l[c]+(e[d]/2-r[d]/2);break}}return l}function zn(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,s=i===void 0?t.strategy:i,a=r.boundary,l=a===void 0?pv:a,c=r.rootBoundary,d=c===void 0?qd:c,u=r.elementContext,f=u===void 0?Dn:u,h=r.altBoundary,g=h===void 0?!1:h,m=r.padding,b=m===void 0?0:m,v=eu(typeof b!="number"?b:tu(b,Pn)),y=f===Dn?mv:Dn,_=t.rects.popper,x=t.elements[g?y:f],w=Kv(gr(x)?x:x.contextElement||Kt(t.elements.popper),l,d,s),S=zr(t.elements.reference),T=su({reference:S,element:_,placement:o}),M=zs(Object.assign({},_,T)),N=f===Dn?M:S,E={top:w.top-N.top+v.top,bottom:N.bottom-w.bottom+v.bottom,left:w.left-N.left+v.left,right:N.right-w.right+v.right},I=t.modifiersData.offset;if(f===Dn&&I){var A=I[o];Object.keys(E).forEach(function(D){var O=[ct,lt].indexOf(D)>=0?1:-1,P=[Ze,lt].indexOf(D)>=0?"y":"x";E[D]+=A[P]*O})}return E}function Gv(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Gd:l,d=Br(n),u=d?a?Kd:Kd.filter(function(g){return Br(g)===d}):Pn,f=u.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=u,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=f.reduce(function(g,m){return g[m]=zn(t,{placement:m,boundary:o,rootBoundary:i,padding:s})[mt(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function Xv(t){if(mt(t)===Xo)return[];var e=ei(t);return[nu(t),e,nu(e)]}function Zv(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,m=r.allowedAutoPlacements,b=e.options.placement,v=mt(b),y=v===b,_=l||(y||!g?[ei(b)]:Xv(b)),x=[b].concat(_).reduce(function(U,q){return U.concat(mt(q)===Xo?Gv(e,{placement:q,boundary:d,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:m}):q)},[]),w=e.rects.reference,S=e.rects.popper,T=new Map,M=!0,N=x[0],E=0;E<x.length;E++){var I=x[E],A=mt(I),D=Br(I)===Lr,O=[Ze,lt].indexOf(A)>=0,P=O?"width":"height",L=zn(e,{placement:I,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),z=O?D?ct:Je:D?lt:Ze;w[P]>S[P]&&(z=ei(z));var B=ei(z),j=[];if(i&&j.push(L[A]<=0),a&&j.push(L[z]<=0,L[B]<=0),j.every(function(U){return U})){N=I,M=!1;break}T.set(I,j)}if(M)for(var $=g?3:1,H=function(q){var G=x.find(function(de){var X=T.get(de);if(X)return X.slice(0,q).every(function(oe){return oe})});if(G)return N=G,"break"},R=$;R>0;R--){var Y=H(R);if(Y==="break")break}e.placement!==N&&(e.modifiersData[n]._skip=!0,e.placement=N,e.reset=!0)}}var Jv={name:"flip",enabled:!0,phase:"main",fn:Zv,requiresIfExists:["offset"],data:{_skip:!1}};function au(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function lu(t){return[Ze,ct,lt,Je].some(function(e){return t[e]>=0})}function Qv(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=zn(e,{elementContext:"reference"}),a=zn(e,{altBoundary:!0}),l=au(s,n),c=au(a,o,i),d=lu(l),u=lu(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var ex={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qv};function tx(t,e,r){var n=mt(t),o=[Je,Ze].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Je,ct].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function rx(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,s=Gd.reduce(function(d,u){return d[u]=tx(u,e.rects,i),d},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=s}var nx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rx};function ox(t){var e=t.state,r=t.name;e.modifiersData[r]=su({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var ix={name:"popperOffsets",enabled:!0,phase:"read",fn:ox,data:{}};function sx(t){return t==="x"?"y":"x"}function ax(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,f=r.tether,h=f===void 0?!0:f,g=r.tetherOffset,m=g===void 0?0:g,b=zn(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=mt(e.placement),y=Br(e.placement),_=!y,x=Ds(v),w=sx(x),S=e.modifiersData.popperOffsets,T=e.rects.reference,M=e.rects.popper,N=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(S){if(i){var D,O=x==="y"?Ze:Je,P=x==="y"?lt:ct,L=x==="y"?"height":"width",z=S[x],B=z+b[O],j=z-b[P],$=h?-M[L]/2:0,H=y===Lr?T[L]:M[L],R=y===Lr?-M[L]:-T[L],Y=e.elements.arrow,U=h&&Y?As(Y):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Qd(),G=q[O],de=q[P],X=Ln(0,T[L],U[L]),oe=_?T[L]/2-$-X-G-E.mainAxis:H-X-G-E.mainAxis,Ie=_?-T[L]/2+$+X+de+E.mainAxis:R+X+de+E.mainAxis,We=e.elements.arrow&&In(e.elements.arrow),J=We?x==="y"?We.clientTop||0:We.clientLeft||0:0,Ee=(D=I==null?void 0:I[x])!=null?D:0,le=z+oe-Ee-J,te=z+Ie-Ee,he=Ln(h?Zo(B,le):B,z,h?pr(j,te):j);S[x]=he,A[x]=he-z}if(a){var Q,V=x==="x"?Ze:Je,Oe=x==="x"?lt:ct,ie=S[w],ke=w==="y"?"height":"width",Le=ie+b[V],Pe=ie-b[Oe],ft=[Ze,Je].indexOf(v)!==-1,yt=(Q=I==null?void 0:I[w])!=null?Q:0,ot=ft?Le:ie-T[ke]-M[ke]-yt+E.altAxis,nr=ft?ie+T[ke]+M[ke]-yt-E.altAxis:Pe,it=h&&ft?Pv(ot,ie,nr):Ln(h?ot:Le,ie,h?nr:Pe);S[w]=it,A[w]=it-ie}e.modifiersData[n]=A}}var lx={name:"preventOverflow",enabled:!0,phase:"main",fn:ax,requiresIfExists:["offset"]};function cx(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function dx(t){return t===dt(t)||!nt(t)?Is(t):cx(t)}function ux(t){var e=t.getBoundingClientRect(),r=Fr(e.width)/t.offsetWidth||1,n=Fr(e.height)/t.offsetHeight||1;return r!==1||n!==1}function fx(t,e,r){r===void 0&&(r=!1);var n=nt(e),o=nt(e)&&ux(e),i=Kt(e),s=zr(t,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((_t(e)!=="body"||Fs(i))&&(a=dx(e)),nt(e)?(l=zr(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=Ls(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function hx(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var l=e.get(a);l&&o(l)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function gx(t){var e=hx(t);return Ns.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function px(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Gt(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,i){return o.replace(/%s/,i)},t)}var mr='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',mx='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',cu=["name","enabled","phase","fn","effect","requires","options"];function bx(t){t.forEach(function(e){[].concat(Object.keys(e),cu).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof e.name!="string"&&console.error(Gt(mr,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Gt(mr,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Ns.indexOf(e.phase)<0&&console.error(Gt(mr,e.name,'"phase"',"either "+Ns.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Gt(mr,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Gt(mr,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Gt(mr,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Gt(mr,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+cu.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}e.requires&&e.requires.forEach(function(n){t.find(function(o){return o.name===n})==null&&console.error(Gt(mx,String(e.name),n,n))})})})}function yx(t,e){var r=new Set;return t.filter(function(n){var o=e(n);if(!r.has(o))return r.add(o),!0})}function vx(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var du="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",xx="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",uu={placement:"bottom",modifiers:[],strategy:"absolute"};function fu(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function wx(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,i=o===void 0?uu:o;return function(a,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},uu,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(v){var y=typeof v=="function"?v(d.options):v;m(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:gr(a)?Fn(a):a.contextElement?Fn(a.contextElement):[],popper:Fn(l)};var _=gx(vx([].concat(n,d.options.modifiers)));if(d.orderedModifiers=_.filter(function(I){return I.enabled}),process.env.NODE_ENV!=="production"){var x=yx([].concat(_,d.options.modifiers),function(I){var A=I.name;return A});if(bx(x),mt(d.options.placement)===Xo){var w=d.orderedModifiers.find(function(I){var A=I.name;return A==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=bt(l),T=S.marginTop,M=S.marginRight,N=S.marginBottom,E=S.marginLeft;[T,M,N,E].some(function(I){return parseFloat(I)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return g(),h.update()},forceUpdate:function(){if(!f){var v=d.elements,y=v.reference,_=v.popper;if(!fu(y,_)){process.env.NODE_ENV!=="production"&&console.error(du);return}d.rects={reference:fx(y,In(_),d.options.strategy==="fixed"),popper:As(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var x=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(xx);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var S=d.orderedModifiers[w],T=S.fn,M=S.options,N=M===void 0?{}:M,E=S.name;typeof T=="function"&&(d=T({state:d,options:N,name:E,instance:h})||d)}}},update:px(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){m(),f=!0}};if(!fu(a,l))return process.env.NODE_ENV!=="production"&&console.error(du),h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function g(){d.orderedModifiers.forEach(function(b){var v=b.name,y=b.options,_=y===void 0?{}:y,x=b.effect;if(typeof x=="function"){var w=x({state:d,name:v,instance:h,options:_}),S=function(){};u.push(w||S)}})}function m(){u.forEach(function(b){return b()}),u=[]}return h}}var kx=[Wv,ix,$v,Tv,nx,Jv,lx,Lv,ex],Cx=wx({defaultModifiers:kx}),_x=function(t){var e=t.level,r=t.buttonRef,n=t.contentRef,o=k.useContext(Ko),i=o.collapsed,s=o.toggled,a=o.transitionDuration,l=k.useRef();return k.useEffect(function(){return e===0&&i&&n.current&&r.current&&(l.current=Cx(r.current,n.current,{placement:"right",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]})),function(){var c;return(c=l.current)===null||c===void 0?void 0:c.destroy()}},[e,i,n,r]),k.useEffect(function(){if(n.current&&r.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(n.current),c.observe(r.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},a)},[a,s,n,r]),{popperInstance:l.current}},hu=function(t){var e=t.rtl,r=t.level,n=t.collapsed,o=t.disabled,i=t.active;return`
|
|
401
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:mt(e.placement),variation:Br(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ru(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ru(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var jv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$v,data:{}},Qo={passive:!0};function Hv(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=dt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",r.update,Qo)}),a&&l.addEventListener("resize",r.update,Qo),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Qo)}),a&&l.removeEventListener("resize",r.update,Qo)}}var Wv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hv,data:{}},Vv={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(t){return t.replace(/left|right|bottom|top/g,function(e){return Vv[e]})}var Rv={start:"end",end:"start"};function nu(t){return t.replace(/start|end/g,function(e){return Rv[e]})}function Ls(t){var e=dt(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Fs(t){return zr(Kt(t)).left+Ls(t).scrollLeft}function Yv(t,e){var r=dt(t),n=Kt(t),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=Xd();(c||!c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Fs(t),y:l}}function Uv(t){var e,r=Kt(t),n=Ls(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=pr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=pr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Fs(t),l=-n.scrollTop;return bt(o||r).direction==="rtl"&&(a+=pr(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function zs(t){var e=bt(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ou(t){return["html","body","#document"].indexOf(_t(t))>=0?t.ownerDocument.body:nt(t)&&zs(t)?t:ou(Jo(t))}function Fn(t,e){var r;e===void 0&&(e=[]);var n=ou(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=dt(n),s=o?[i].concat(i.visualViewport||[],zs(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Fn(Jo(s)))}function Bs(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function qv(t,e){var r=zr(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function iu(t,e,r){return e===qd?Bs(Yv(t,r)):gr(e)?qv(e,r):Bs(Uv(Kt(t)))}function Kv(t){var e=Fn(Jo(t)),r=["absolute","fixed"].indexOf(bt(t).position)>=0,n=r&&nt(t)?In(t):t;return gr(n)?e.filter(function(o){return gr(o)&&Zd(o,n)&&_t(o)!=="body"}):[]}function Gv(t,e,r,n){var o=e==="clippingParents"?Kv(t):[].concat(e),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(l,c){var d=iu(t,c,n);return l.top=pr(d.top,l.top),l.right=Zo(d.right,l.right),l.bottom=Zo(d.bottom,l.bottom),l.left=pr(d.left,l.left),l},iu(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function su(t){var e=t.reference,r=t.element,n=t.placement,o=n?mt(n):null,i=n?Br(n):null,s=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,l;switch(o){case Ze:l={x:s,y:e.y-r.height};break;case lt:l={x:s,y:e.y+e.height};break;case ct:l={x:e.x+e.width,y:a};break;case Je:l={x:e.x-r.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?Is(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case Lr:l[c]=l[c]-(e[d]/2-r[d]/2);break;case An:l[c]=l[c]+(e[d]/2-r[d]/2);break}}return l}function zn(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,s=i===void 0?t.strategy:i,a=r.boundary,l=a===void 0?mv:a,c=r.rootBoundary,d=c===void 0?qd:c,u=r.elementContext,f=u===void 0?Dn:u,h=r.altBoundary,g=h===void 0?!1:h,m=r.padding,b=m===void 0?0:m,v=eu(typeof b!="number"?b:tu(b,Pn)),y=f===Dn?bv:Dn,_=t.rects.popper,x=t.elements[g?y:f],w=Gv(gr(x)?x:x.contextElement||Kt(t.elements.popper),l,d,s),S=zr(t.elements.reference),T=su({reference:S,element:_,placement:o}),M=Bs(Object.assign({},_,T)),N=f===Dn?M:S,E={top:w.top-N.top+v.top,bottom:N.bottom-w.bottom+v.bottom,left:w.left-N.left+v.left,right:N.right-w.right+v.right},I=t.modifiersData.offset;if(f===Dn&&I){var A=I[o];Object.keys(E).forEach(function(D){var O=[ct,lt].indexOf(D)>=0?1:-1,P=[Ze,lt].indexOf(D)>=0?"y":"x";E[D]+=A[P]*O})}return E}function Xv(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Gd:l,d=Br(n),u=d?a?Kd:Kd.filter(function(g){return Br(g)===d}):Pn,f=u.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=u,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=f.reduce(function(g,m){return g[m]=zn(t,{placement:m,boundary:o,rootBoundary:i,padding:s})[mt(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function Zv(t){if(mt(t)===Xo)return[];var e=ei(t);return[nu(t),e,nu(e)]}function Jv(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,m=r.allowedAutoPlacements,b=e.options.placement,v=mt(b),y=v===b,_=l||(y||!g?[ei(b)]:Zv(b)),x=[b].concat(_).reduce(function(U,q){return U.concat(mt(q)===Xo?Xv(e,{placement:q,boundary:d,rootBoundary:u,padding:c,flipVariations:g,allowedAutoPlacements:m}):q)},[]),w=e.rects.reference,S=e.rects.popper,T=new Map,M=!0,N=x[0],E=0;E<x.length;E++){var I=x[E],A=mt(I),D=Br(I)===Lr,O=[Ze,lt].indexOf(A)>=0,P=O?"width":"height",L=zn(e,{placement:I,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),z=O?D?ct:Je:D?lt:Ze;w[P]>S[P]&&(z=ei(z));var B=ei(z),j=[];if(i&&j.push(L[A]<=0),a&&j.push(L[z]<=0,L[B]<=0),j.every(function(U){return U})){N=I,M=!1;break}T.set(I,j)}if(M)for(var $=g?3:1,W=function(q){var G=x.find(function(de){var X=T.get(de);if(X)return X.slice(0,q).every(function(oe){return oe})});if(G)return N=G,"break"},V=$;V>0;V--){var Y=W(V);if(Y==="break")break}e.placement!==N&&(e.modifiersData[n]._skip=!0,e.placement=N,e.reset=!0)}}var Qv={name:"flip",enabled:!0,phase:"main",fn:Jv,requiresIfExists:["offset"],data:{_skip:!1}};function au(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function lu(t){return[Ze,ct,lt,Je].some(function(e){return t[e]>=0})}function ex(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=zn(e,{elementContext:"reference"}),a=zn(e,{altBoundary:!0}),l=au(s,n),c=au(a,o,i),d=lu(l),u=lu(c);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var tx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ex};function rx(t,e,r){var n=mt(t),o=[Je,Ze].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Je,ct].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function nx(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,s=Gd.reduce(function(d,u){return d[u]=rx(u,e.rects,i),d},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=s}var ox={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nx};function ix(t){var e=t.state,r=t.name;e.modifiersData[r]=su({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var sx={name:"popperOffsets",enabled:!0,phase:"read",fn:ix,data:{}};function ax(t){return t==="x"?"y":"x"}function lx(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,f=r.tether,h=f===void 0?!0:f,g=r.tetherOffset,m=g===void 0?0:g,b=zn(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=mt(e.placement),y=Br(e.placement),_=!y,x=Is(v),w=ax(x),S=e.modifiersData.popperOffsets,T=e.rects.reference,M=e.rects.popper,N=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,E=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(S){if(i){var D,O=x==="y"?Ze:Je,P=x==="y"?lt:ct,L=x==="y"?"height":"width",z=S[x],B=z+b[O],j=z-b[P],$=h?-M[L]/2:0,W=y===Lr?T[L]:M[L],V=y===Lr?-M[L]:-T[L],Y=e.elements.arrow,U=h&&Y?Ds(Y):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Qd(),G=q[O],de=q[P],X=Ln(0,T[L],U[L]),oe=_?T[L]/2-$-X-G-E.mainAxis:W-X-G-E.mainAxis,Ie=_?-T[L]/2+$+X+de+E.mainAxis:V+X+de+E.mainAxis,He=e.elements.arrow&&In(e.elements.arrow),J=He?x==="y"?He.clientTop||0:He.clientLeft||0:0,Ee=(D=I==null?void 0:I[x])!=null?D:0,le=z+oe-Ee-J,te=z+Ie-Ee,he=Ln(h?Zo(B,le):B,z,h?pr(j,te):j);S[x]=he,A[x]=he-z}if(a){var Q,R=x==="x"?Ze:Je,Oe=x==="x"?lt:ct,ie=S[w],ke=w==="y"?"height":"width",Le=ie+b[R],Pe=ie-b[Oe],ft=[Ze,Je].indexOf(v)!==-1,yt=(Q=I==null?void 0:I[w])!=null?Q:0,ot=ft?Le:ie-T[ke]-M[ke]-yt+E.altAxis,nr=ft?ie+T[ke]+M[ke]-yt-E.altAxis:Pe,it=h&&ft?Av(ot,ie,nr):Ln(h?ot:Le,ie,h?nr:Pe);S[w]=it,A[w]=it-ie}e.modifiersData[n]=A}}var cx={name:"preventOverflow",enabled:!0,phase:"main",fn:lx,requiresIfExists:["offset"]};function dx(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ux(t){return t===dt(t)||!nt(t)?Ls(t):dx(t)}function fx(t){var e=t.getBoundingClientRect(),r=Fr(e.width)/t.offsetWidth||1,n=Fr(e.height)/t.offsetHeight||1;return r!==1||n!==1}function hx(t,e,r){r===void 0&&(r=!1);var n=nt(e),o=nt(e)&&fx(e),i=Kt(e),s=zr(t,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((_t(e)!=="body"||zs(i))&&(a=ux(e)),nt(e)?(l=zr(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=Fs(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function gx(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var l=e.get(a);l&&o(l)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function px(t){var e=gx(t);return Ms.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function mx(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Gt(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return[].concat(r).reduce(function(o,i){return o.replace(/%s/,i)},t)}var mr='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',bx='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',cu=["name","enabled","phase","fn","effect","requires","options"];function yx(t){t.forEach(function(e){[].concat(Object.keys(e),cu).filter(function(r,n,o){return o.indexOf(r)===n}).forEach(function(r){switch(r){case"name":typeof e.name!="string"&&console.error(Gt(mr,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Gt(mr,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Ms.indexOf(e.phase)<0&&console.error(Gt(mr,e.name,'"phase"',"either "+Ms.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Gt(mr,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Gt(mr,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Gt(mr,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Gt(mr,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+cu.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+r+'" was provided.')}e.requires&&e.requires.forEach(function(n){t.find(function(o){return o.name===n})==null&&console.error(Gt(bx,String(e.name),n,n))})})})}function vx(t,e){var r=new Set;return t.filter(function(n){var o=e(n);if(!r.has(o))return r.add(o),!0})}function xx(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var du="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",wx="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",uu={placement:"bottom",modifiers:[],strategy:"absolute"};function fu(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function kx(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,i=o===void 0?uu:o;return function(a,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},uu,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(v){var y=typeof v=="function"?v(d.options):v;m(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:gr(a)?Fn(a):a.contextElement?Fn(a.contextElement):[],popper:Fn(l)};var _=px(xx([].concat(n,d.options.modifiers)));if(d.orderedModifiers=_.filter(function(I){return I.enabled}),process.env.NODE_ENV!=="production"){var x=vx([].concat(_,d.options.modifiers),function(I){var A=I.name;return A});if(yx(x),mt(d.options.placement)===Xo){var w=d.orderedModifiers.find(function(I){var A=I.name;return A==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=bt(l),T=S.marginTop,M=S.marginRight,N=S.marginBottom,E=S.marginLeft;[T,M,N,E].some(function(I){return parseFloat(I)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return g(),h.update()},forceUpdate:function(){if(!f){var v=d.elements,y=v.reference,_=v.popper;if(!fu(y,_)){process.env.NODE_ENV!=="production"&&console.error(du);return}d.rects={reference:hx(y,In(_),d.options.strategy==="fixed"),popper:Ds(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var x=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(x+=1,x>100)){console.error(wx);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var S=d.orderedModifiers[w],T=S.fn,M=S.options,N=M===void 0?{}:M,E=S.name;typeof T=="function"&&(d=T({state:d,options:N,name:E,instance:h})||d)}}},update:mx(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){m(),f=!0}};if(!fu(a,l))return process.env.NODE_ENV!=="production"&&console.error(du),h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function g(){d.orderedModifiers.forEach(function(b){var v=b.name,y=b.options,_=y===void 0?{}:y,x=b.effect;if(typeof x=="function"){var w=x({state:d,name:v,instance:h,options:_}),S=function(){};u.push(w||S)}})}function m(){u.forEach(function(b){return b()}),u=[]}return h}}var Cx=[Wv,sx,jv,Nv,ox,Qv,cx,Fv,tx],_x=kx({defaultModifiers:Cx}),Sx=function(t){var e=t.level,r=t.buttonRef,n=t.contentRef,o=k.useContext(Ko),i=o.collapsed,s=o.toggled,a=o.transitionDuration,l=k.useRef();return k.useEffect(function(){return e===0&&i&&n.current&&r.current&&(l.current=_x(r.current,n.current,{placement:"right",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]})),function(){var c;return(c=l.current)===null||c===void 0?void 0:c.destroy()}},[e,i,n,r]),k.useEffect(function(){if(n.current&&r.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(n.current),c.observe(r.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},a)},[a,s,n,r]),{popperInstance:l.current}},hu=function(t){var e=t.rtl,r=t.level,n=t.collapsed,o=t.disabled,i=t.active;return`
|
|
402
402
|
display: flex;
|
|
403
403
|
align-items: center;
|
|
404
404
|
height: 50px;
|
|
@@ -425,7 +425,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
425
425
|
|
|
426
426
|
`).concat(i&&"background-color: #e2eef9;",`
|
|
427
427
|
|
|
428
|
-
`)},
|
|
428
|
+
`)},Ex=function(t,e){var r=t.className,n=t.component,o=t.children,i=fr(t,["className","component","children"]);if(n){if(typeof n=="string")return k.createElement(n,tt(tt({className:Ne(r)},i),{ref:e}),o);var s=n.props,a=s.className,l=fr(s,["className"]);return k.cloneElement(n,tt(tt(tt({className:Ne(r,a)},i),l),{ref:e}),o)}else return k.createElement("a",tt({ref:e,className:Ne(r)},i),o)},gu=k.forwardRef(Ex),Ox=De.li(pu||(pu=Ve([`
|
|
429
429
|
position: relative;
|
|
430
430
|
width: 100%;
|
|
431
431
|
|
|
@@ -451,7 +451,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
451
451
|
|
|
452
452
|
`,`;
|
|
453
453
|
}
|
|
454
|
-
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ae.button,function(t){var e=t.level,r=t.disabled,n=t.active,o=t.collapsed,i=t.rtl;return hu({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),
|
|
454
|
+
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ae.button,function(t){var e=t.level,r=t.disabled,n=t.active,o=t.collapsed,i=t.rtl;return hu({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),Tx=function(t,e){var r,n=t.children,o=t.className,i=t.label,s=t.icon,a=t.title,l=t.prefix,c=t.suffix,d=t.open,u=t.defaultOpen,f=t.active,h=f===void 0?!1:f,g=t.disabled,m=g===void 0?!1:g,b=t.rootStyles,v=t.component,y=t.onOpenChange,_=t.onClick,x=t.onKeyUp,w=fr(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=k.useContext(Go),T=k.useContext(Ko),M=T.collapsed,N=T.rtl,E=T.transitionDuration,I=Ns(),A=I.renderExpandIcon,D=I.closeOnClick,O=I.menuItemStyles,P=I.transitionDuration,L=k.useState(!!u),z=L[0],B=L[1],j=k.useState(!1),$=j[0],W=j[1],V=k.useState(!1),Y=V[0],U=V[1],q=k.useRef(null),G=k.useRef(null),de=k.useRef(),X=Sx({level:S,buttonRef:q,contentRef:G}).popperInstance,oe=k.useCallback(function(){var he,Q=G.current;if(Q){var R=(he=Q==null?void 0:Q.querySelector(".".concat(ae.subMenuContent," > ul")))===null||he===void 0?void 0:he.clientHeight;Q.style.overflow="hidden",Q.style.height="".concat(R,"px"),de.current=setTimeout(function(){Q.style.overflow="auto",Q.style.height="auto"},P)}},[P]),Ie=function(){var he,Q=G.current;if(Q){var R=(he=Q==null?void 0:Q.querySelector(".".concat(ae.subMenuContent," > ul")))===null||he===void 0?void 0:he.clientHeight;Q.style.overflow="hidden",Q.style.height="".concat(R,"px"),Q.offsetHeight,Q.style.height="0px"}},He=function(){S===0&&M||(typeof d>"u"?(clearTimeout(Number(de.current)),z?Ie():oe(),y==null||y(!z),B(!z)):y==null||y(!d))};k.useEffect(function(){!(S===0&&M)&&typeof d<"u"&&Y&&(clearTimeout(Number(de.current)),d?oe():Ie())},[M,oe,i,S,y,d]);var J=function(he){_==null||_(he),He()},Ee=function(he){x==null||x(he),he.key==="Enter"&&He()},le=function(he){if(O){var Q={level:S,disabled:m,active:h,isSubmenu:!0,open:d??z},R=O.root,Oe=O.button,ie=O.label,ke=O.icon,Le=O.prefix,Pe=O.suffix,ft=O.subMenuContent,yt=O.SubMenuExpandIcon;switch(he){case"root":return typeof R=="function"?R(Q):R;case"button":return typeof Oe=="function"?Oe(Q):Oe;case"label":return typeof ie=="function"?ie(Q):ie;case"icon":return typeof ke=="function"?ke(Q):ke;case"prefix":return typeof Le=="function"?Le(Q):Le;case"suffix":return typeof Pe=="function"?Pe(Q):Pe;case"SubMenuExpandIcon":return typeof yt=="function"?yt(Q):yt;case"subMenuContent":return typeof ft=="function"?ft(Q):ft;default:return}}};k.useEffect(function(){setTimeout(function(){return X==null?void 0:X.update()},E),M&&S===0&&W(!1)},[M,S,N,E,X]),k.useEffect(function(){var he=function(ie){var ke,Le,Pe;!$&&(!((ke=q.current)===null||ke===void 0)&&ke.contains(ie))?W(!0):(D&&!(!((Le=ie.closest(".".concat(ae.menuItemRoot)))===null||Le===void 0)&&Le.classList.contains(ae.subMenuRoot))||!(!((Pe=G.current)===null||Pe===void 0)&&Pe.contains(ie))&&$)&&W(!1)},Q=function(ie){he(ie.target)},R=function(ie){ie.key==="Enter"?he(ie.target):ie.key==="Escape"&&W(!1)},Oe=function(){document.removeEventListener("click",Q),document.removeEventListener("keyup",R)};return Oe(),M&&S===0&&(document.addEventListener("click",Q,!1),document.addEventListener("keyup",R,!1)),function(){Oe()}},[M,S,D,$]),k.useEffect(function(){U(!0)},[]);var te=(r={},r[ae.active]=h,r[ae.disabled]=m,r[ae.open]=d??z,r);return k.createElement(Ox,{ref:e,className:Ne(ae.menuItemRoot,ae.subMenuRoot,te,o),menuItemStyles:le("root"),level:S,collapsed:M,rtl:N,disabled:m,active:h,buttonStyles:le("button"),rootStyles:b},k.createElement(gu,tt({"data-testid":"".concat(ae.button,"-test-id"),ref:q,title:a,className:Ne(ae.button,te),onClick:J,onKeyUp:Ee,component:v,tabIndex:0},w),s&&k.createElement(Bd,{rtl:N,className:Ne(ae.icon,te),rootStyles:le("icon")},s),l&&k.createElement(jd,{collapsed:M,transitionDuration:E,firstLevel:S===0,className:Ne(ae.prefix,te),rtl:N,rootStyles:le("prefix")},l),k.createElement(Fd,{className:Ne(ae.label,te),rootStyles:le("label")},i),c&&k.createElement(Wd,{collapsed:M,transitionDuration:E,firstLevel:S===0,className:Ne(ae.suffix,te),rootStyles:le("suffix")},c),k.createElement(hv,{rtl:N,className:Ne(ae.SubMenuExpandIcon,te),collapsed:M,level:S,rootStyles:le("SubMenuExpandIcon")},A?A({level:S,disabled:m,active:h,open:d??z}):M&&S===0?k.createElement(pv,null):k.createElement(gv,{rtl:N,open:d??z}))),k.createElement(fv,{ref:G,openWhenCollapsed:$,open:d??z,firstLevel:S===0,collapsed:M,defaultOpen:d&&!Y||u,className:Ne(ae.subMenuContent,te),rootStyles:le("subMenuContent")},k.createElement(Go.Provider,{value:S+1},n)))};k.forwardRef(Tx);var pu,Nx=De.li(mu||(mu=Ve([`
|
|
455
455
|
width: 100%;
|
|
456
456
|
position: relative;
|
|
457
457
|
|
|
@@ -477,7 +477,7 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
477
477
|
|
|
478
478
|
`,`;
|
|
479
479
|
}
|
|
480
|
-
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ae.button,function(t){var e=t.level,r=t.disabled,n=t.active,o=t.collapsed,i=t.rtl;return hu({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),
|
|
480
|
+
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ae.button,function(t){var e=t.level,r=t.disabled,n=t.active,o=t.collapsed,i=t.rtl;return hu({level:e,disabled:r,active:n,collapsed:o,rtl:i})},function(t){var e=t.buttonStyles;return e}),Mx=function(t,e){var r,n=t.children,o=t.icon,i=t.className,s=t.prefix,a=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,f=t.component,h=t.rootStyles,g=fr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),m=k.useContext(Go),b=k.useContext(Ko),v=b.collapsed,y=b.rtl,_=b.transitionDuration,x=Ns().menuItemStyles,w=function(T){if(x){var M={level:m,disabled:u,active:c,isSubmenu:!1},N=x.root,E=x.button,I=x.label,A=x.icon,D=x.prefix,O=x.suffix;switch(T){case"root":return typeof N=="function"?N(M):N;case"button":return typeof E=="function"?E(M):E;case"label":return typeof I=="function"?I(M):I;case"icon":return typeof A=="function"?A(M):A;case"prefix":return typeof D=="function"?D(M):D;case"suffix":return typeof O=="function"?O(M):O;default:return}}},S=(r={},r[ae.active]=c,r[ae.disabled]=u,r);return k.createElement(Nx,{ref:e,className:Ne(ae.menuItemRoot,S,i),menuItemStyles:w("root"),level:m,collapsed:v,rtl:y,disabled:u,active:c,buttonStyles:w("button"),rootStyles:h},k.createElement(gu,tt({className:Ne(ae.button,S),"data-testid":"".concat(ae.button,"-test-id"),component:f,tabIndex:0},g),o&&k.createElement(Bd,{rtl:y,className:Ne(ae.icon,S),rootStyles:w("icon")},o),s&&k.createElement(jd,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.prefix,S),rtl:y,rootStyles:w("prefix")},s),k.createElement(Fd,{className:Ne(ae.label,S),rootStyles:w("label")},n),a&&k.createElement(Wd,{collapsed:v,transitionDuration:_,firstLevel:m===0,className:Ne(ae.suffix,S),rootStyles:w("suffix")},a)))},$r=k.forwardRef(Mx),mu;const Px=no(),ti=k.forwardRef((t,e)=>{const{image:r,icon:n,title:o,description:i}=t;return p.jsxs("div",{className:"border px-3.5 py-7 cursor-pointer",ref:e,children:[(r==null?void 0:r.type)==="image"?p.jsx(Er,{classIm:"mx-auto",src:`${Px}/public/assets/images/${r.name}.svg`,alt:r.name,width:74,height:74}):n?p.jsx("div",{className:"flex justify-center",children:p.jsx(n,{size:74})}):null,p.jsx("h3",{className:"my-3 font-bold",children:o}),p.jsx("p",{children:i})]})});ti.displayName="CardFormat";function Ax(t){return pe({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M15.528 2.973a.75.75 0 0 1 .472.696v8.662a.75.75 0 0 1-.472.696l-7.25 2.9a.75.75 0 0 1-.557 0l-7.25-2.9A.75.75 0 0 1 0 12.331V3.669a.75.75 0 0 1 .471-.696L7.443.184l.01-.003.268-.108a.75.75 0 0 1 .558 0l.269.108.01.003 6.97 2.789ZM10.404 2 4.25 4.461 1.846 3.5 1 3.839v.4l6.5 2.6v7.922l.5.2.5-.2V6.84l6.5-2.6v-.4l-.846-.339L8 5.961 5.596 5l6.154-2.461L10.404 2Z"},child:[]}]})(t)}function Dx(t){return pe({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM5 4h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm-.5 2.5A.5.5 0 0 1 5 6h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zM5 8h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1zm0 2h3a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1z"},child:[]}]})(t)}function Ix(t){return pe({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M863.1 518.5H505.5V160.9c0-4.4-3.6-8-8-8h-26a398.57 398.57 0 0 0-282.5 117 397.47 397.47 0 0 0-85.6 127C82.6 446.2 72 498.5 72 552.5S82.6 658.7 103.4 708c20.1 47.5 48.9 90.3 85.6 127 36.7 36.7 79.4 65.5 127 85.6a396.64 396.64 0 0 0 155.6 31.5 398.57 398.57 0 0 0 282.5-117c36.7-36.7 65.5-79.4 85.6-127a396.64 396.64 0 0 0 31.5-155.6v-26c-.1-4.4-3.7-8-8.1-8zM951 463l-2.6-28.2c-8.5-92-49.3-178.8-115.1-244.3A398.5 398.5 0 0 0 588.4 75.6L560.1 73c-4.7-.4-8.7 3.2-8.7 7.9v383.7c0 4.4 3.6 8 8 8l383.6-1c4.7-.1 8.4-4 8-8.6z"},child:[]}]})(t)}function Lx(t){return pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 176a80 80 0 1 0 80 80 80.24 80.24 0 0 0-80-80zm172.72 80a165.53 165.53 0 0 1-1.64 22.34l48.69 38.12a11.59 11.59 0 0 1 2.63 14.78l-46.06 79.52a11.64 11.64 0 0 1-14.14 4.93l-57.25-23a176.56 176.56 0 0 1-38.82 22.67l-8.56 60.78a11.93 11.93 0 0 1-11.51 9.86h-92.12a12 12 0 0 1-11.51-9.53l-8.56-60.78A169.3 169.3 0 0 1 151.05 393L93.8 416a11.64 11.64 0 0 1-14.14-4.92L33.6 331.57a11.59 11.59 0 0 1 2.63-14.78l48.69-38.12A174.58 174.58 0 0 1 83.28 256a165.53 165.53 0 0 1 1.64-22.34l-48.69-38.12a11.59 11.59 0 0 1-2.63-14.78l46.06-79.52a11.64 11.64 0 0 1 14.14-4.93l57.25 23a176.56 176.56 0 0 1 38.82-22.67l8.56-60.78A11.93 11.93 0 0 1 209.94 26h92.12a12 12 0 0 1 11.51 9.53l8.56 60.78A169.3 169.3 0 0 1 361 119l57.2-23a11.64 11.64 0 0 1 14.14 4.92l46.06 79.52a11.59 11.59 0 0 1-2.63 14.78l-48.69 38.12a174.58 174.58 0 0 1 1.64 22.66z"},child:[]}]})(t)}function bu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $s={};Object.defineProperty($s,"__esModule",{value:!0}),$s.parse=Wx,$s.serialize=Vx;const Fx=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,zx=/^[\u0021-\u003A\u003C-\u007E]*$/,Bx=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,$x=/^[\u0020-\u003A\u003D-\u007E]*$/,jx=Object.prototype.toString,Hx=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function Wx(t,e){const r=new Hx,n=t.length;if(n<2)return r;const o=(e==null?void 0:e.decode)||Rx;let i=0;do{const s=t.indexOf("=",i);if(s===-1)break;const a=t.indexOf(";",i),l=a===-1?n:a;if(s>l){i=t.lastIndexOf(";",s-1)+1;continue}const c=yu(t,i,s),d=vu(t,s,c),u=t.slice(c,d);if(r[u]===void 0){let f=yu(t,s+1,l),h=vu(t,l,f);const g=o(t.slice(f,h));r[u]=g}i=l+1}while(i<n);return r}function yu(t,e,r){do{const n=t.charCodeAt(e);if(n!==32&&n!==9)return e}while(++e<r);return r}function vu(t,e,r){for(;e>r;){const n=t.charCodeAt(--e);if(n!==32&&n!==9)return e+1}return r}function Vx(t,e,r){const n=(r==null?void 0:r.encode)||encodeURIComponent;if(!Fx.test(t))throw new TypeError(`argument name is invalid: ${t}`);const o=n(e);if(!zx.test(o))throw new TypeError(`argument val is invalid: ${e}`);let i=t+"="+o;if(!r)return i;if(r.maxAge!==void 0){if(!Number.isInteger(r.maxAge))throw new TypeError(`option maxAge is invalid: ${r.maxAge}`);i+="; Max-Age="+r.maxAge}if(r.domain){if(!Bx.test(r.domain))throw new TypeError(`option domain is invalid: ${r.domain}`);i+="; Domain="+r.domain}if(r.path){if(!$x.test(r.path))throw new TypeError(`option path is invalid: ${r.path}`);i+="; Path="+r.path}if(r.expires){if(!Yx(r.expires)||!Number.isFinite(r.expires.valueOf()))throw new TypeError(`option expires is invalid: ${r.expires}`);i+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.partitioned&&(i+="; Partitioned"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():void 0){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${r.priority}`)}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${r.sameSite}`)}return i}function Rx(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function Yx(t){return jx.call(t)==="[object Date]"}/**
|
|
481
481
|
* react-router v7.4.0
|
|
482
482
|
*
|
|
483
483
|
* Copyright (c) Remix Software Inc.
|
|
@@ -486,18 +486,18 @@ You may have forgotten to import it.`);var n=e.__emotion_real===e,o=n&&e.__emoti
|
|
|
486
486
|
* LICENSE.md file in the root directory of this source tree.
|
|
487
487
|
*
|
|
488
488
|
* @license MIT
|
|
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 js({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
|
|
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 js({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 Hs(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 xu(t,e,r="/"){return Ux(t,e,r,!1)}function Ux(t,e,r,n){let o=typeof e=="string"?Hs(e):e,i=Xt(o.pathname||"/",r);if(i==null)return null;let s=wu(t);qx(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=ow(i);a=rw(s[l],c,n)}return a}function wu(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}".`),wu(i.children,e,d,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:ew(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 ku(i.path))o(i,s,l)}),e}function ku(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=ku(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:tw(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Kx=/^:[\w-]+$/,Gx=3,Xx=2,Zx=1,Jx=10,Qx=-2,Cu=t=>t==="*";function ew(t,e){let r=t.split("/"),n=r.length;return r.some(Cu)&&(n+=Qx),e&&(n+=Xx),r.filter(o=>!Cu(o)).reduce((o,i)=>o+(Kx.test(i)?Gx:i===""?Zx:Jx),n)}function tw(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 rw(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=ri({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&r&&!n[n.length-1].route.index&&(u=ri({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:lw(zt([i,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(i=zt([i,u.pathnameBase]))}return s}function ri(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=nw(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 g=a[f]||"";s=i.slice(0,i.length-g.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 nw(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 ow(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 Xt(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 iw(t,e="/"){let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?Hs(t):t;return{pathname:r?r.startsWith("/")?r:sw(r,e):e,search:cw(n),hash:dw(o)}}function sw(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 Ws(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 aw(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function _u(t){let e=aw(t);return e.map((r,n)=>n===e.length-1?r.pathname:r.pathnameBase)}function Su(t,e,r,n=!1){let o;typeof t=="string"?o=Hs(t):(o={...t},Be(!o.pathname||!o.pathname.includes("?"),Ws("?","pathname","search",o)),Be(!o.pathname||!o.pathname.includes("#"),Ws("#","pathname","hash",o)),Be(!o.search||!o.search.includes("#"),Ws("#","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=iw(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,"/"),lw=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),cw=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dw=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function uw(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var Eu=["POST","PUT","PATCH","DELETE"];new Set(Eu);var fw=["GET",...Eu];new Set(fw);var jr=C.createContext(null);jr.displayName="DataRouter";var ni=C.createContext(null);ni.displayName="DataRouterState";var Ou=C.createContext({isTransitioning:!1});Ou.displayName="ViewTransition";var hw=C.createContext(new Map);hw.displayName="Fetchers";var gw=C.createContext(null);gw.displayName="Await";var Bt=C.createContext(null);Bt.displayName="Navigation";var Vs=C.createContext(null);Vs.displayName="Location";var $t=C.createContext({outlet:null,matches:[],isDataRoute:!1});$t.displayName="Route";var Rs=C.createContext(null);Rs.displayName="RouteError";function pw(t,{relative:e}={}){Be(oi(),"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 oi(){return C.useContext(Vs)!=null}function br(){return Be(oi(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Vs).location}var Tu="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nu(t){C.useContext(Bt).static||C.useLayoutEffect(t)}function mw(){let{isDataRoute:t}=C.useContext($t);return t?Nw():bw()}function bw(){Be(oi(),"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}=br(),i=JSON.stringify(_u(n)),s=C.useRef(!1);return Nu(()=>{s.current=!0}),C.useCallback((l,c={})=>{if(Ft(s.current,Tu),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=Su(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}=br(),o=JSON.stringify(_u(r));return C.useMemo(()=>Su(t,JSON.parse(o),n,e==="path"),[t,o,n,e])}function yw(t,e,r,n){Be(oi(),"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||"";Pu(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=br(),h;h=f;let g=h.pathname||"/",m=g;if(d!=="/"){let y=d.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=!i&&r&&r.matches&&r.matches.length>0?r.matches:xu(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.`),kw(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 yw(){let t=Ow(),e=dw(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 vw=C.createElement(yw,null),xw=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 ww({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 kw(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,g=null;r&&(u=i&&c.route.id?i[c.route.id]:void 0,h=c.route.errorElement||vw,s&&(a<0&&d===0?(Pu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,g=null):a===d&&(f=!0,g=c.route.hydrateFallbackElement||null)));let m=e.concat(o.slice(0,d+1)),b=()=>{let v;return u?v=h:f?v=g:c.route.Component?v=C.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=l,C.createElement(ww,{match:c,routeContext:{outlet:l,matches:m,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?C.createElement(xw,{location:r.location,revalidation:r.revalidation,component:h,error:u,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function Ys(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cw(t){let e=C.useContext(jr);return Be(e,Ys(t)),e}function _w(t){let e=C.useContext(ri);return Be(e,Ys(t)),e}function Sw(t){let e=C.useContext($t);return Be(e,Ys(t)),e}function Us(t){let e=Sw(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 Ew(){return Us("useRouteId")}function Ow(){var n;let t=C.useContext(Vs),e=_w("useRouteError"),r=Us("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function Tw(){let{router:t}=Cw("useNavigate"),e=Us("useNavigate"),r=C.useRef(!1);return Nu(()=>{r.current=!0}),C.useCallback(async(o,i={})=>{Ft(r.current,Tu),r.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var Mu={};function Pu(t,e,r){!e&&!Mu[t]&&(Mu[t]=!0,Ft(!1,r))}C.memo(Nw);function Nw({routes:t,future:e,state:r}){return bw(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 Mw(t){return si(t)&&t.tagName.toLowerCase()==="button"}function Pw(t){return si(t)&&t.tagName.toLowerCase()==="form"}function Aw(t){return si(t)&&t.tagName.toLowerCase()==="input"}function Dw(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Iw(t,e){return t.button===0&&(!e||e==="_self")&&!Dw(t)}var ai=null;function Lw(){if(ai===null)try{new FormData(document.createElement("form"),0),ai=!1}catch{ai=!0}return ai}var Fw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qs(t){return t!=null&&!Fw.has(t)?(Ft(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ii}"`),null):t}function zw(t,e){let r,n,o,i,s;if(Pw(t)){let a=t.getAttribute("action");n=a?Xt(a,e):null,r=t.getAttribute("method")||oi,o=qs(t.getAttribute("enctype"))||ii,i=new FormData(t)}else if(Mw(t)||Aw(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?Xt(l,e):null,r=t.getAttribute("formmethod")||a.getAttribute("method")||oi,o=qs(t.getAttribute("formenctype"))||qs(a.getAttribute("enctype"))||ii,i=new FormData(a,t),!Lw()){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 Bw(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 $w(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 jw(t,e,r){let n=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let s=await Bw(i,r);return s.links?s.links():[]}return[]}));return Vw(n.flat(1).filter($w).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Au(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 Ww(t,e,{includeHydrateFallback:r}={}){return Hw(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 Hw(t){return[...new Set(t)]}function Rw(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function Vw(t,e){let r=new Set;return new Set(e),t.reduce((n,o)=>{let i=JSON.stringify(Rw(o));return r.has(i)||(r.add(i),n.push({key:i,link:o})),n},[])}function Yw(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&&Xt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Du(){let t=C.useContext(jr);return Ks(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Uw(){let t=C.useContext(ri);return Ks(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Gs=C.createContext(void 0);Gs.displayName="FrameworkContext";function Iu(){let t=C.useContext(Gs);return Ks(t,"You must render this element inside a <HydratedRouter> element"),t}function qw(t,e){let r=C.useContext(Gs),[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)},g=()=>{o(!1),s(!1)};return r?t!=="intent"?[i,f,{}]:[i,f,{onFocus:$n(a,h),onBlur:$n(l,g),onMouseEnter:$n(c,h),onMouseLeave:$n(d,g),onTouchStart:$n(u,h)}]:[!1,f,{}]}function $n(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function Kw({page:t,...e}){let{router:r}=Du(),n=C.useMemo(()=>xu(r.routes,t,r.basename),[r.routes,t,r.basename]);return n?C.createElement(Xw,{page:t,matches:n,...e}):null}function Gw(t){let{manifest:e,routeModules:r}=Iu(),[n,o]=C.useState([]);return C.useEffect(()=>{let i=!1;return jw(t,e,r).then(s=>{i||o(s)}),()=>{i=!0}},[t,e,r]),n}function Xw({page:t,matches:e,...r}){let n=br(),{manifest:o,routeModules:i}=Iu(),{basename:s}=Du(),{loaderData:a,matches:l}=Uw(),c=C.useMemo(()=>Au(t,e,l,o,n,"data"),[t,e,l,o,n]),d=C.useMemo(()=>Au(t,e,l,o,n,"assets"),[t,e,l,o,n]),u=C.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let g=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:g.add(v.route.id))}),g.size===0)return[];let b=Yw(t,s);return m&&g.size>0&&b.searchParams.set("_routes",e.filter(v=>g.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(()=>Ww(d,o),[d,o]),h=Gw(d);return C.createElement(C.Fragment,null,u.map(g=>C.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),f.map(g=>C.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),h.map(({key:g,link:m})=>C.createElement("link",{key:g,...m})))}function Zw(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var Lu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lu&&(window.__reactRouterVersion="7.4.0")}catch{}var Fu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wr=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:g}=C.useContext(Bt),m=typeof c=="string"&&Fu.test(c),b,v=!1;if(typeof c=="string"&&m&&(b=c,Lu))try{let N=new URL(window.location.href),E=c.startsWith("//")?new URL(N.protocol+c):new URL(c),I=Xt(E.pathname,g);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=gw(c,{relative:o}),[_,x,w]=qw(n,f),S=t1(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:Zw(h,x),target:l,"data-discover":!m&&r==="render"?"true":void 0});return _&&!m?C.createElement(C.Fragment,null,M,C.createElement(Kw,{page:y})):M});Wr.displayName="Link";var Jw=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=br(),h=C.useContext(ri),{navigator:g,basename:m}=C.useContext(Bt),b=h!=null&&s1(u)&&a===!0,v=g.encodeLocation?g.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&&(_=Xt(_,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(Wr,{...c,"aria-current":M,className:N,ref:d,style:E,to:s,viewTransition:a},typeof l=="function"?l(T):l)});Jw.displayName="NavLink";var Qw=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 g=o1(),m=i1(a,{relative:c}),b=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&Fu.test(a),y=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let x=_.nativeEvent.submitter,w=(x==null?void 0:x.getAttribute("formmethod"))||s;g(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})});Qw.displayName="Form";function e1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zu(t){let e=C.useContext(jr);return Be(e,e1(t)),e}function t1(t,{target:e,replace:r,state:n,preventScrollReset:o,relative:i,viewTransition:s}={}){let a=pw(),l=br(),c=Bn(t,{relative:i});return C.useCallback(d=>{if(Iw(d,e)){d.preventDefault();let u=r!==void 0?r:js(l)===js(c);a(t,{replace:u,state:n,preventScrollReset:o,relative:i,viewTransition:s})}},[l,a,c,r,n,e,t,o,i,s])}var r1=0,n1=()=>`__${String(++r1)}__`;function o1(){let{router:t}=zu("useSubmit"),{basename:e}=C.useContext(Bt),r=Ew();return C.useCallback(async(n,o={})=>{let{action:i,method:s,encType:a,formData:l,body:c}=zw(n,e);if(o.navigate===!1){let d=o.fetcherKey||n1();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 i1(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=br();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])),js(i)}function s1(t,e={}){let r=C.useContext(Ou);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=zu("useViewTransitionState"),o=Bn(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Xt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Xt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ti(o.pathname,s)!=null||ti(o.pathname,i)!=null}new TextEncoder;const a1=no(),l1=()=>{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 p.jsx("div",{className:"fixed top-0 left-0 h-full z-40",children:p.jsxs("div",{className:"flex flex-col",onMouseEnter:o,onMouseLeave:i,children:[p.jsxs(iv,{collapsed:t,rootStyles:{[`.${xe.container}`]:{backgroundColor:"#483FFF",color:"#483FFF",height:"100vh",display:"flex",flexDirection:"column"}},children:[p.jsx(Wr,{to:"/dashboard",children:p.jsx("div",{children:p.jsx(Er,{classIm:"mx-auto",src:`${a1}/public/assets/images/logo mathilde.png`,alt:"Logo Mathilde ads",width:74,height:74})})}),p.jsxs(lv,{children:[p.jsx($r,{icon:p.jsx(ip,{className:"text-2xl"}),onClick:()=>s("campanas"),className:"bg-white my-1 mx-2 rounded-lg 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 "}),p.jsx(Wr,{to:"https://dsp.mathilde-ads.com/login",children:p.jsx($r,{icon:p.jsx(Px,{className:"text-xl"}),className:"bg-white my-1 mx-2 rounded-lg 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 "})}),p.jsx($r,{icon:p.jsx(sp,{className:"text-xl"}),onClick:()=>s("audiencias"),className:"bg-white my-1 mx-2 rounded-lg 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 "}),p.jsx($r,{icon:p.jsx(Dx,{className:"text-xl"}),onClick:()=>s("reportes"),className:"bg-white my-1 mx-2 rounded-lg 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 "}),p.jsx($r,{icon:p.jsx(Ax,{className:"text-xl"}),onClick:()=>s("facturacion"),className:"bg-white my-1 mx-2 rounded-lg 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 "}),p.jsx(Wr,{to:"/settings",children:p.jsx($r,{icon:p.jsx(Ix,{className:"text-xl"}),className:"bg-white my-1 mx-2 rounded-lg 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 "})})]}),p.jsx("div",{className:"mt-auto self-end p-4",children:p.jsx("div",{className:"flex justify-center bg-white rounded-lg p-2",children:p.jsx("button",{className:"cursor-pointer text-3xl",style:{color:"#483FFF"},children:p.jsx(Lb,{})})})})]}),p.jsx(Ar,{width:"40%",isOpen:r==="campanas",onClose:()=>n(null),children:p.jsxs("div",{className:"flex flex-col p-10",children:[p.jsx("h2",{className:"text-center font-bold mb-3",children:"Selecciona el tipo de campaña que quieres crear"}),p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"w-3/6 p-2",children:p.jsx(Bs,{image:"medios-propios",title:"Medios Propios",description:"Crea y administra campañas a los usuarios que ingresan a tus canales."})}),p.jsx("div",{className:"w-3/6 p-2",children:p.jsx(Wr,{to:"/thirdPartyCampaign",children:p.jsx(Bs,{image:"medios-pagos",title:"Medios Pagos",description:"Activa campañas de Marketing Digital usando inventario de Redes Sociales y Google."})})})]})]})}),p.jsx(Ar,{isOpen:r==="audiencias",onClose:()=>n(null),children:p.jsx("h2",{children:"Audiencias"})}),p.jsx(Ar,{isOpen:r==="reportes",onClose:()=>n(null),children:p.jsx("h2",{children:"Reportes"})}),p.jsx(Ar,{isOpen:r==="facturacion",onClose:()=>n(null),children:p.jsx("h2",{children:"Facturación"})}),p.jsx(Ar,{isOpen:r==="configuracion",onClose:()=>n(null),children:p.jsx("h2",{children:"Configuración"})})]})})};function c1(t){return pe({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 d1(t){return pe({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 u1(t){return pe({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 Bu(t){return pe({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 $u(t){return pe({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 ju(t){return pe({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 f1(t){return pe({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 h1(t){return pe({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 g1(t){return pe({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 Wu(t){return pe({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 p1(t){return pe({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 pe({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 m1(t){return pe({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 b1(t){return pe({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 Xs="-";function y1(t){const e=x1(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;function o(s){const a=s.split(Xs);return a[0]===""&&a.length!==1&&a.shift(),Ru(a,e)||v1(s)}function i(s,a){const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:i}}function Ru(t,e){var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?Ru(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Xs);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const Vu=/^\[(.+)\]$/;function v1(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 x1(t){const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return k1(Object.entries(t.classGroups),r).forEach(([i,s])=>{Zs(s,n,i,e)}),n}function Zs(t,e,r,n){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:Yu(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(w1(o)){Zs(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Zs(s,Yu(e,i),r,n)})})}function Yu(t,e){let r=t;return e.split(Xs).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function w1(t){return t.isThemeGetter}function k1(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 C1(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 Uu="!";function _1(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(Uu),h=f?u.substring(1):u,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}}}function S1(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 E1(t){return{cache:C1(t.cacheSize),splitModifiers:_1(t),...y1(t)}}const O1=/\s+/;function T1(t,e){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=new Set;return t.trim().split(O1).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=S1(a).join(":");return{isTailwindClass:!0,modifierId:l?h+Uu: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 N1(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=qu(e))&&(n&&(n+=" "),n+=r);return n}function qu(t){if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=qu(t[n]))&&(r&&(r+=" "),r+=e);return r}function M1(t,...e){let r,n,o,i=s;function s(l){const c=e.reduce((d,u)=>u(d),t());return r=E1(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=T1(l,r);return o(l,d),d}return function(){return i(N1.apply(null,arguments))}}function ye(t){const e=r=>r[t]||[];return e.isThemeGetter=!0,e}const Ku=/^\[(?:([a-z-]+):)?(.+)\]$/i,P1=/^\d+\/\d+$/,A1=new Set(["px","full","screen"]),D1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I1=/\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$/,L1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,F1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,z1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function jt(t){return yr(t)||A1.has(t)||P1.test(t)}function Zt(t){return Hr(t,"length",Y1)}function yr(t){return!!t&&!Number.isNaN(Number(t))}function li(t){return Hr(t,"number",yr)}function jn(t){return!!t&&Number.isInteger(Number(t))}function B1(t){return t.endsWith("%")&&yr(t.slice(0,-1))}function Z(t){return Ku.test(t)}function Jt(t){return D1.test(t)}const $1=new Set(["length","size","percentage"]);function j1(t){return Hr(t,$1,Gu)}function W1(t){return Hr(t,"position",Gu)}const H1=new Set(["image","url"]);function R1(t){return Hr(t,H1,q1)}function V1(t){return Hr(t,"",U1)}function Wn(){return!0}function Hr(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 Y1(t){return I1.test(t)&&!L1.test(t)}function Gu(){return!1}function U1(t){return F1.test(t)}function q1(t){return z1.test(t)}function K1(){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"),g=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,Zt],O=()=>["auto",yr,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"],H=()=>[yr,li],R=()=>[yr,Z];return{cacheSize:500,separator:":",theme:{colors:[Wn],spacing:[jt,Zt],blur:["none","",Jt,Z],brightness:H(),borderColor:[t],borderRadius:["none","","full",Jt,Z],borderSpacing:A(),borderWidth:D(),contrast:H(),grayscale:j(),hueRotate:R(),invert:j(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[B1,Zt],inset:I(),margin:I(),opacity:H(),padding:A(),saturate:H(),scale:H(),sepia:j(),skew:R(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[Jt]}],"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":[Wn]}],"col-start-end":[{col:["auto",{span:["full",jn,Z]},Z]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Wn]}],"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:[Jt]},Jt]}],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",Jt,Zt]}],"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:[Wn]}],"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",yr,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,Zt]}],"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",j1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R1]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"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,Zt]}],"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,Zt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Jt,V1]}],"shadow-color":[{shadow:[Wn]}],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",Jt,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:R()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:R()}],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,Zt,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=M1(K1);function vr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Hn(t){if(!vr(t))return t;const e={};for(const r in t)e[r]=Hn(t[r]);return e}function W(t,e){if(vr(e)&&Object.keys(e).length===0)return Hn({...t,...e});const r={...t,...e};if(vr(e)&&vr(t))for(const n in e)vr(e[n])&&n in t&&vr(t[n])?r[n]=W(t[n],e[n]):r[n]=vr(e[n])?Hn(e[n]):e[n];return r}function WC(t){return t}const G1={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"}}},X1={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"},Z1={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"}},J1={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"}}},Q1={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},ek={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"}},tk={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"}},rk={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"}},nk={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"}}},ok={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"}},ik={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"}}},sk={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"}},ak={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"}}}}},lk={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"},ck={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"}}}},dk={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"}},uk={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"}},fk={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"}}},hk={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"}},gk={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"}}},pk={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"}},mk={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"}}},bk={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"}},yk={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"}},vk={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"}}},xk={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"}},wk={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"}},kk={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"}},Ck={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"}}}},_k={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"}}},Sk={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"}},Ek={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"}}}},Ok={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"}},Tk={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"}},Nk={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"}},Mk={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"},Pk={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:""}},Ak={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:""}}}},Dk={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:""}}},Ik={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"}},Lk={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"}}},Fk={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"},zk={theme:Hn({accordion:G1,alert:X1,avatar:Z1,badge:J1,blockquote:Q1,breadcrumb:ek,button:tk,buttonGroup:rk,card:nk,carousel:ok,checkbox:ik,datepicker:ak,darkThemeToggle:sk,dropdown:lk,fileInput:ck,floatingLabel:dk,footer:uk,helperText:fk,kbd:hk,label:gk,listGroup:mk,list:pk,modal:bk,navbar:yk,pagination:vk,popover:xk,progress:wk,radio:kk,rangeSlider:Ck,rating:_k,ratingAdvanced:Sk,select:Ek,textInput:Ak,textarea:Pk,toggleSwitch:Lk,sidebar:Ok,spinner:Tk,table:Nk,tabs:Mk,timeline:Dk,toast:Ik,tooltip:Fk})};function K(){return Hn(zk.theme)}const Xu=k.createContext(void 0);function Zu(){const t=k.useContext(Xu);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Ju=({children:t,className:e,theme:r={},...n})=>{const{isOpen:o}=Zu(),i=W(K().accordion.content,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:t})},Qu=({children:t,...e})=>{const{alwaysOpen:r}=e,[n,o]=k.useState(e.isOpen),i=r?{...e,isOpen:n,setOpen:()=>o(!n)}:e;return p.jsx(Xu.Provider,{value:i,children:t})},ef=({as:t="h2",children:e,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=Zu(),c=()=>typeof l<"u"&&l(),d=W(K().accordion.title,n);return p.jsxs("button",{className:F(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[p.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),i&&p.jsx(i,{"aria-hidden":!0,className:F(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},tf=({alwaysOpen:t=!1,arrowIcon:e=Bu,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=W(K().accordion.root,s);return p.jsx("div",{className:F(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};tf.displayName="Accordion",Qu.displayName="Accordion.Panel",ef.displayName="Accordion.Title",Ju.displayName="Accordion.Content",Object.assign(tf,{Panel:Qu,Title:ef,Content:Ju});const rf=({children:t,className:e,theme:r={},...n})=>{const o=W(K().avatar.group,r);return p.jsx("div",{"data-testid":"avatar-group-element",className:F(o.base,e),...n,children:t})};rf.displayName="Avatar.Group";const nf=({className:t,href:e,theme:r={},total:n,...o})=>{const i=W(K().avatar.groupCounter,r);return p.jsxs("a",{href:e,className:F(i.base,t),...o,children:["+",n]})};nf.displayName="Avatar.GroupCounter";const of=({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 g=W(K().avatar,f),m=F(g.root.img.base,e&&g.root.bordered,e&&g.root.color[o],a&&g.root.rounded,c&&g.root.stacked,g.root.img.on,g.root.size[l]),b={className:F(m,g.root.img.on),"data-testid":"flowbite-avatar-img"};return p.jsxs("div",{className:F(g.root.base,n),"data-testid":"flowbite-avatar",...h,children:[p.jsxs("div",{className:"relative",children:[i?typeof i=="string"?p.jsx("img",{alt:t,src:i,...b}):i({alt:t,...b}):s?p.jsx("div",{className:F(g.root.img.off,g.root.initials.base,c&&g.root.stacked,e&&g.root.bordered,e&&g.root.color[o],g.root.size[l],a&&g.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:p.jsx("span",{className:F(g.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):p.jsx("div",{className:F(m,g.root.img.off),"data-testid":"flowbite-avatar-img",children:p.jsx("svg",{className:g.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:p.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&&p.jsx("span",{"data-testid":"flowbite-avatar-status",className:F(g.root.status.base,g.root.status[d],g.root.statusPosition[u])})]}),r&&p.jsx("div",{children:r})]})};of.displayName="Avatar",Object.assign(of,{Group:rf,Counter:nf});const sf=({children:t,color:e="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=W(K().badge,s),c=()=>p.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&&p.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),t&&p.jsx("span",{children:t})]});return r?p.jsx("a",{className:l.root.href,href:r,children:p.jsx(c,{})}):p.jsx(c,{})};sf.displayName="Badge";const af=({className:t,color:e="info",light:r,size:n="md",theme:o={},...i})=>{const s=W(K().spinner,o);return p.jsx("span",{role:"status",...i,children:p.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:[p.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"}),p.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"})]})})};af.displayName="Spinner";const Js=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)});Js.displayName="ButtonBaseComponent";const lf=(t,e,r)=>k.Children.map(t,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:lf(n.props.children,e,r),positionInGroup:cf(o,k.Children.count(t))}):k.cloneElement(n,{outline:e,pill:r,positionInGroup:cf(o,k.Children.count(t))}):n),cf=(t,e)=>t===0?"start":t===e-1?"end":"middle",df=({children:t,className:e,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>lf(t,r,n),[t,r,n]),a=W(K().buttonGroup,o);return p.jsx("div",{className:F(a.base,e),role:"group",...i,children:s})};df.displayName="Button.Group";const uf=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:g="md",theme:m={},...b},v)=>{const{buttonGroup:y,button:_}=K(),x=W(_,m),w=b;return p.jsx(Js,{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:p.jsx("span",{className:F(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&f?"on":"off"],x.size[g],u&&!x.outline.color[r]&&x.inner.outline,i&&x.isProcessing,i&&x.inner.isProcessingPadding[g],x.inner.position[h]),children:p.jsxs(p.Fragment,{children:[i&&p.jsx("span",{className:F(x.spinnerSlot,x.spinnerLeftPosition[g]),children:a||p.jsx(af,{size:g})}),typeof t<"u"?t:p.jsx("span",{"data-testid":"flowbite-button-label",className:F(x.label),children:i?s:d})]})})})});uf.displayName="Button";const ff=Object.assign(uf,{Group:df}),hf=({children:t,...e})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return p.jsx(ff,{onClick:r,...e,children:t})};hf.displayName="Banner.CollapseButton";const gf=({children:t,...e})=>p.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});gf.displayName="Banner",Object.assign(gf,{CollapseButton:hf});const pf=k.forwardRef(({children:t,className:e,href:r,icon:n,theme:o={},...i},s)=>{const a=typeof r<"u",l=a?"a":"span",c=W(K().breadcrumb.item,o);return p.jsxs("li",{className:F(c.base,e),...i,children:[p.jsx(Hu,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),p.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&p.jsx(n,{"aria-hidden":!0,className:c.icon}),t]})]})});pf.displayName="Breadcrumb.Item";const mf=({children:t,className:e,theme:r={},...n})=>{const o=W(K().breadcrumb.root,r);return p.jsx("nav",{"aria-label":"Breadcrumb",className:F(o.base,e),...n,children:p.jsx("ol",{className:o.list,children:t})})};mf.displayName="Breadcrumb",Object.assign(mf,{Item:pf});var bf={exports:{}};/*!
|
|
491
|
+
Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=br(),h;h=f;let g=h.pathname||"/",m=g;if(d!=="/"){let y=d.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=!i&&r&&r.matches&&r.matches.length>0?r.matches:xu(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.`),Cw(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 vw(){let t=Tw(),e=uw(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 xw=C.createElement(vw,null),ww=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(Rs.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function kw({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 Cw(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,g=null;r&&(u=i&&c.route.id?i[c.route.id]:void 0,h=c.route.errorElement||xw,s&&(a<0&&d===0?(Pu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,g=null):a===d&&(f=!0,g=c.route.hydrateFallbackElement||null)));let m=e.concat(o.slice(0,d+1)),b=()=>{let v;return u?v=h:f?v=g:c.route.Component?v=C.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=l,C.createElement(kw,{match:c,routeContext:{outlet:l,matches:m,isDataRoute:r!=null},children:v})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?C.createElement(ww,{location:r.location,revalidation:r.revalidation,component:h,error:u,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function Ys(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _w(t){let e=C.useContext(jr);return Be(e,Ys(t)),e}function Sw(t){let e=C.useContext(ni);return Be(e,Ys(t)),e}function Ew(t){let e=C.useContext($t);return Be(e,Ys(t)),e}function Us(t){let e=Ew(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 Ow(){return Us("useRouteId")}function Tw(){var n;let t=C.useContext(Rs),e=Sw("useRouteError"),r=Us("useRouteError");return t!==void 0?t:(n=e.errors)==null?void 0:n[r]}function Nw(){let{router:t}=_w("useNavigate"),e=Us("useNavigate"),r=C.useRef(!1);return Nu(()=>{r.current=!0}),C.useCallback(async(o,i={})=>{Ft(r.current,Tu),r.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var Mu={};function Pu(t,e,r){!e&&!Mu[t]&&(Mu[t]=!0,Ft(!1,r))}C.memo(Mw);function Mw({routes:t,future:e,state:r}){return yw(t,void 0,r,e)}var ii="get",si="application/x-www-form-urlencoded";function ai(t){return t!=null&&typeof t.tagName=="string"}function Pw(t){return ai(t)&&t.tagName.toLowerCase()==="button"}function Aw(t){return ai(t)&&t.tagName.toLowerCase()==="form"}function Dw(t){return ai(t)&&t.tagName.toLowerCase()==="input"}function Iw(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Lw(t,e){return t.button===0&&(!e||e==="_self")&&!Iw(t)}var li=null;function Fw(){if(li===null)try{new FormData(document.createElement("form"),0),li=!1}catch{li=!0}return li}var zw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qs(t){return t!=null&&!zw.has(t)?(Ft(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${si}"`),null):t}function Bw(t,e){let r,n,o,i,s;if(Aw(t)){let a=t.getAttribute("action");n=a?Xt(a,e):null,r=t.getAttribute("method")||ii,o=qs(t.getAttribute("enctype"))||si,i=new FormData(t)}else if(Pw(t)||Dw(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?Xt(l,e):null,r=t.getAttribute("formmethod")||a.getAttribute("method")||ii,o=qs(t.getAttribute("formenctype"))||qs(a.getAttribute("enctype"))||si,i=new FormData(a,t),!Fw()){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(ai(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ii,n=null,o=si,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 $w(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 jw(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 Hw(t,e,r){let n=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let s=await $w(i,r);return s.links?s.links():[]}return[]}));return Yw(n.flat(1).filter(jw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Au(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 Ww(t,e,{includeHydrateFallback:r}={}){return Vw(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 Vw(t){return[...new Set(t)]}function Rw(t){let e={},r=Object.keys(t).sort();for(let n of r)e[n]=t[n];return e}function Yw(t,e){let r=new Set;return new Set(e),t.reduce((n,o)=>{let i=JSON.stringify(Rw(o));return r.has(i)||(r.add(i),n.push({key:i,link:o})),n},[])}function Uw(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&&Xt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Du(){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(ni);return Ks(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Gs=C.createContext(void 0);Gs.displayName="FrameworkContext";function Iu(){let t=C.useContext(Gs);return Ks(t,"You must render this element inside a <HydratedRouter> element"),t}function Kw(t,e){let r=C.useContext(Gs),[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)},g=()=>{o(!1),s(!1)};return r?t!=="intent"?[i,f,{}]:[i,f,{onFocus:$n(a,h),onBlur:$n(l,g),onMouseEnter:$n(c,h),onMouseLeave:$n(d,g),onTouchStart:$n(u,h)}]:[!1,f,{}]}function $n(t,e){return r=>{t&&t(r),r.defaultPrevented||e(r)}}function Gw({page:t,...e}){let{router:r}=Du(),n=C.useMemo(()=>xu(r.routes,t,r.basename),[r.routes,t,r.basename]);return n?C.createElement(Zw,{page:t,matches:n,...e}):null}function Xw(t){let{manifest:e,routeModules:r}=Iu(),[n,o]=C.useState([]);return C.useEffect(()=>{let i=!1;return Hw(t,e,r).then(s=>{i||o(s)}),()=>{i=!0}},[t,e,r]),n}function Zw({page:t,matches:e,...r}){let n=br(),{manifest:o,routeModules:i}=Iu(),{basename:s}=Du(),{loaderData:a,matches:l}=qw(),c=C.useMemo(()=>Au(t,e,l,o,n,"data"),[t,e,l,o,n]),d=C.useMemo(()=>Au(t,e,l,o,n,"assets"),[t,e,l,o,n]),u=C.useMemo(()=>{if(t===n.pathname+n.search+n.hash)return[];let g=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:g.add(v.route.id))}),g.size===0)return[];let b=Uw(t,s);return m&&g.size>0&&b.searchParams.set("_routes",e.filter(v=>g.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(()=>Ww(d,o),[d,o]),h=Xw(d);return C.createElement(C.Fragment,null,u.map(g=>C.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),f.map(g=>C.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),h.map(({key:g,link:m})=>C.createElement("link",{key:g,...m})))}function Jw(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}var Lu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lu&&(window.__reactRouterVersion="7.4.0")}catch{}var Fu=/^(?:[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:g}=C.useContext(Bt),m=typeof c=="string"&&Fu.test(c),b,v=!1;if(typeof c=="string"&&m&&(b=c,Lu))try{let N=new URL(window.location.href),E=c.startsWith("//")?new URL(N.protocol+c):new URL(c),I=Xt(E.pathname,g);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=pw(c,{relative:o}),[_,x,w]=Kw(n,f),S=r1(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:Jw(h,x),target:l,"data-discover":!m&&r==="render"?"true":void 0});return _&&!m?C.createElement(C.Fragment,null,M,C.createElement(Gw,{page:y})):M});Hr.displayName="Link";var Qw=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=br(),h=C.useContext(ni),{navigator:g,basename:m}=C.useContext(Bt),b=h!=null&&a1(u)&&a===!0,v=g.encodeLocation?g.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&&(_=Xt(_,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)});Qw.displayName="NavLink";var e1=C.forwardRef(({discover:t="render",fetcherKey:e,navigate:r,reloadDocument:n,replace:o,state:i,method:s=ii,action:a,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,...f},h)=>{let g=i1(),m=s1(a,{relative:c}),b=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&Fu.test(a),y=_=>{if(l&&l(_),_.defaultPrevented)return;_.preventDefault();let x=_.nativeEvent.submitter,w=(x==null?void 0:x.getAttribute("formmethod"))||s;g(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})});e1.displayName="Form";function t1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zu(t){let e=C.useContext(jr);return Be(e,t1(t)),e}function r1(t,{target:e,replace:r,state:n,preventScrollReset:o,relative:i,viewTransition:s}={}){let a=mw(),l=br(),c=Bn(t,{relative:i});return C.useCallback(d=>{if(Lw(d,e)){d.preventDefault();let u=r!==void 0?r:js(l)===js(c);a(t,{replace:u,state:n,preventScrollReset:o,relative:i,viewTransition:s})}},[l,a,c,r,n,e,t,o,i,s])}var n1=0,o1=()=>`__${String(++n1)}__`;function i1(){let{router:t}=zu("useSubmit"),{basename:e}=C.useContext(Bt),r=Ow();return C.useCallback(async(n,o={})=>{let{action:i,method:s,encType:a,formData:l,body:c}=Bw(n,e);if(o.navigate===!1){let d=o.fetcherKey||o1();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 s1(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=br();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])),js(i)}function a1(t,e={}){let r=C.useContext(Ou);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=zu("useViewTransitionState"),o=Bn(t,{relative:e.relative});if(!r.isTransitioning)return!1;let i=Xt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Xt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ri(o.pathname,s)!=null||ri(o.pathname,i)!=null}new TextEncoder;const l1=no(),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 p.jsx("div",{className:"fixed top-0 left-0 h-full z-40",children:p.jsxs("div",{className:"flex flex-col",onMouseEnter:o,onMouseLeave:i,children:[p.jsxs(sv,{collapsed:t,rootStyles:{[`.${xe.container}`]:{backgroundColor:"#483FFF",color:"#483FFF",height:"100vh",display:"flex",flexDirection:"column"}},children:[p.jsx(Hr,{to:"/dashboard",children:p.jsx("div",{children:p.jsx(Er,{classIm:"mx-auto",src:`${l1}/public/assets/images/logo mathilde.png`,alt:"Logo Mathilde ads",width:74,height:74})})}),p.jsxs(cv,{children:[p.jsx($r,{icon:p.jsx(sp,{className:"text-2xl"}),onClick:()=>s("campanas"),className:"bg-white my-1 mx-2 rounded-lg 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 "}),p.jsx(Hr,{to:"https://dsp.mathilde-ads.com/login",children:p.jsx($r,{icon:p.jsx(Ax,{className:"text-xl"}),className:"bg-white my-1 mx-2 rounded-lg 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 "})}),p.jsx($r,{icon:p.jsx(ap,{className:"text-xl"}),onClick:()=>s("audiencias"),className:"bg-white my-1 mx-2 rounded-lg 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 "}),p.jsx($r,{icon:p.jsx(Ix,{className:"text-xl"}),onClick:()=>s("reportes"),className:"bg-white my-1 mx-2 rounded-lg 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 "}),p.jsx($r,{icon:p.jsx(Dx,{className:"text-xl"}),onClick:()=>s("facturacion"),className:"bg-white my-1 mx-2 rounded-lg 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 "}),p.jsx(Hr,{to:"/settings",children:p.jsx($r,{icon:p.jsx(Lx,{className:"text-xl"}),className:"bg-white my-1 mx-2 rounded-lg 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 "})})]}),p.jsx("div",{className:"mt-auto self-end p-4",children:p.jsx("div",{className:"flex justify-center bg-white rounded-lg p-2",children:p.jsx("button",{className:"cursor-pointer text-3xl",style:{color:"#483FFF"},children:p.jsx(Fb,{})})})})]}),p.jsx(Ar,{width:"40%",isOpen:r==="campanas",onClose:()=>n(null),children:p.jsxs("div",{className:"flex flex-col p-10",children:[p.jsx("h2",{className:"text-center font-bold mb-3",children:"Selecciona el tipo de campaña que quieres crear"}),p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"w-3/6 p-2",children:p.jsx(ti,{image:{type:"image",name:"medios-propios"},title:"Medios Propios",description:"Crea y administra campañas a los usuarios que ingresan a tus canales."})}),p.jsx("div",{className:"w-3/6 p-2",children:p.jsx(Hr,{to:"/thirdPartyCampaign",children:p.jsx(ti,{image:{type:"image",name:"medios-pagos"},title:"Medios Pagos",description:"Activa campañas de Marketing Digital usando inventario de Redes Sociales y Google."})})})]})]})}),p.jsx(Ar,{isOpen:r==="audiencias",onClose:()=>n(null),children:p.jsx("h2",{children:"Audiencias"})}),p.jsx(Ar,{isOpen:r==="reportes",onClose:()=>n(null),children:p.jsx("h2",{children:"Reportes"})}),p.jsx(Ar,{isOpen:r==="facturacion",onClose:()=>n(null),children:p.jsx("h2",{children:"Facturación"})}),p.jsx(Ar,{isOpen:r==="configuracion",onClose:()=>n(null),children:p.jsx("h2",{children:"Configuración"})})]})})};function d1(t){return pe({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 pe({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 pe({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 Bu(t){return pe({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 $u(t){return pe({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 ju(t){return pe({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 pe({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 pe({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 pe({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 Hu(t){return pe({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 pe({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 Wu(t){return pe({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 pe({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 pe({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 Xs="-";function v1(t){const e=w1(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;function o(s){const a=s.split(Xs);return a[0]===""&&a.length!==1&&a.shift(),Vu(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 Vu(t,e){var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?Vu(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Xs);return(s=e.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId}const Ru=/^\[(.+)\]$/;function x1(t){if(Ru.test(t)){const e=Ru.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])=>{Zs(s,n,i,e)}),n}function Zs(t,e,r,n){t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:Yu(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(k1(o)){Zs(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Zs(s,Yu(e,i),r,n)})})}function Yu(t,e){let r=t;return e.split(Xs).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 Uu="!";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(Uu),h=f?u.substring(1):u,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}}}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+Uu: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=qu(e))&&(n&&(n+=" "),n+=r);return n}function qu(t){if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=qu(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 yr(t)||D1.has(t)||A1.test(t)}function Zt(t){return Wr(t,"length",U1)}function yr(t){return!!t&&!Number.isNaN(Number(t))}function ci(t){return Wr(t,"number",yr)}function jn(t){return!!t&&Number.isInteger(Number(t))}function $1(t){return t.endsWith("%")&&yr(t.slice(0,-1))}function Z(t){return Ku.test(t)}function Jt(t){return I1.test(t)}const j1=new Set(["length","size","percentage"]);function H1(t){return Wr(t,j1,Gu)}function W1(t){return Wr(t,"position",Gu)}const V1=new Set(["image","url"]);function R1(t){return Wr(t,V1,K1)}function Y1(t){return Wr(t,"",q1)}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 Gu(){return!1}function q1(t){return z1.test(t)}function K1(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"),g=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,Zt],O=()=>["auto",yr,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=()=>[yr,ci],V=()=>[yr,Z];return{cacheSize:500,separator:":",theme:{colors:[Hn],spacing:[jt,Zt],blur:["none","",Jt,Z],brightness:W(),borderColor:[t],borderRadius:["none","","full",Jt,Z],borderSpacing:A(),borderWidth:D(),contrast:W(),grayscale:j(),hueRotate:V(),invert:j(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[$1,Zt],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:[Jt]}],"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:[Jt]},Jt]}],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",Jt,Zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ci]}],"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",yr,ci]}],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,Zt]}],"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:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"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,Zt]}],"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,Zt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Jt,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",Jt,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,Zt,ci]}],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 vr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Wn(t){if(!vr(t))return t;const e={};for(const r in t)e[r]=Wn(t[r]);return e}function H(t,e){if(vr(e)&&Object.keys(e).length===0)return Wn({...t,...e});const r={...t,...e};if(vr(e)&&vr(t))for(const n in e)vr(e[n])&&n in t&&vr(t[n])?r[n]=H(t[n],e[n]):r[n]=vr(e[n])?Wn(e[n]):e[n];return r}function WC(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 K(){return Wn(Bk.theme)}const Xu=k.createContext(void 0);function Zu(){const t=k.useContext(Xu);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Ju=({children:t,className:e,theme:r={},...n})=>{const{isOpen:o}=Zu(),i=H(K().accordion.content,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-accordion-content",hidden:!o,...n,children:t})},Qu=({children:t,...e})=>{const{alwaysOpen:r}=e,[n,o]=k.useState(e.isOpen),i=r?{...e,isOpen:n,setOpen:()=>o(!n)}:e;return p.jsx(Xu.Provider,{value:i,children:t})},ef=({as:t="h2",children:e,className:r,theme:n={},...o})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=Zu(),c=()=>typeof l<"u"&&l(),d=H(K().accordion.title,n);return p.jsxs("button",{className:F(d.base,d.flush[s?"on":"off"],d.open[a?"on":"off"],r),onClick:c,type:"button",...o,children:[p.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),i&&p.jsx(i,{"aria-hidden":!0,className:F(d.arrow.base,d.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},tf=({alwaysOpen:t=!1,arrowIcon:e=Bu,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(K().accordion.root,s);return p.jsx("div",{className:F(u.base,u.flush[n?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:d})};tf.displayName="Accordion",Qu.displayName="Accordion.Panel",ef.displayName="Accordion.Title",Ju.displayName="Accordion.Content",Object.assign(tf,{Panel:Qu,Title:ef,Content:Ju});const rf=({children:t,className:e,theme:r={},...n})=>{const o=H(K().avatar.group,r);return p.jsx("div",{"data-testid":"avatar-group-element",className:F(o.base,e),...n,children:t})};rf.displayName="Avatar.Group";const nf=({className:t,href:e,theme:r={},total:n,...o})=>{const i=H(K().avatar.groupCounter,r);return p.jsxs("a",{href:e,className:F(i.base,t),...o,children:["+",n]})};nf.displayName="Avatar.GroupCounter";const of=({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 g=H(K().avatar,f),m=F(g.root.img.base,e&&g.root.bordered,e&&g.root.color[o],a&&g.root.rounded,c&&g.root.stacked,g.root.img.on,g.root.size[l]),b={className:F(m,g.root.img.on),"data-testid":"flowbite-avatar-img"};return p.jsxs("div",{className:F(g.root.base,n),"data-testid":"flowbite-avatar",...h,children:[p.jsxs("div",{className:"relative",children:[i?typeof i=="string"?p.jsx("img",{alt:t,src:i,...b}):i({alt:t,...b}):s?p.jsx("div",{className:F(g.root.img.off,g.root.initials.base,c&&g.root.stacked,e&&g.root.bordered,e&&g.root.color[o],g.root.size[l],a&&g.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:p.jsx("span",{className:F(g.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):p.jsx("div",{className:F(m,g.root.img.off),"data-testid":"flowbite-avatar-img",children:p.jsx("svg",{className:g.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:p.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&&p.jsx("span",{"data-testid":"flowbite-avatar-status",className:F(g.root.status.base,g.root.status[d],g.root.statusPosition[u])})]}),r&&p.jsx("div",{children:r})]})};of.displayName="Avatar",Object.assign(of,{Group:rf,Counter:nf});const sf=({children:t,color:e="info",href:r,icon:n,size:o="xs",className:i,theme:s={},...a})=>{const l=H(K().badge,s),c=()=>p.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&&p.jsx(n,{"aria-hidden":!0,className:l.icon.size[o],"data-testid":"flowbite-badge-icon"}),t&&p.jsx("span",{children:t})]});return r?p.jsx("a",{className:l.root.href,href:r,children:p.jsx(c,{})}):p.jsx(c,{})};sf.displayName="Badge";const af=({className:t,color:e="info",light:r,size:n="md",theme:o={},...i})=>{const s=H(K().spinner,o);return p.jsx("span",{role:"status",...i,children:p.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:[p.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"}),p.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"})]})})};af.displayName="Spinner";const Js=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)});Js.displayName="ButtonBaseComponent";const lf=(t,e,r)=>k.Children.map(t,(n,o)=>k.isValidElement(n)?n.props.children?k.cloneElement(n,{...n.props,children:lf(n.props.children,e,r),positionInGroup:cf(o,k.Children.count(t))}):k.cloneElement(n,{outline:e,pill:r,positionInGroup:cf(o,k.Children.count(t))}):n),cf=(t,e)=>t===0?"start":t===e-1?"end":"middle",df=({children:t,className:e,outline:r,pill:n,theme:o={},...i})=>{const s=k.useMemo(()=>lf(t,r,n),[t,r,n]),a=H(K().buttonGroup,o);return p.jsx("div",{className:F(a.base,e),role:"group",...i,children:s})};df.displayName="Button.Group";const uf=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:g="md",theme:m={},...b},v)=>{const{buttonGroup:y,button:_}=K(),x=H(_,m),w=b;return p.jsx(Js,{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:p.jsx("span",{className:F(x.inner.base,x.outline[u?"on":"off"],x.outline.pill[u&&f?"on":"off"],x.size[g],u&&!x.outline.color[r]&&x.inner.outline,i&&x.isProcessing,i&&x.inner.isProcessingPadding[g],x.inner.position[h]),children:p.jsxs(p.Fragment,{children:[i&&p.jsx("span",{className:F(x.spinnerSlot,x.spinnerLeftPosition[g]),children:a||p.jsx(af,{size:g})}),typeof t<"u"?t:p.jsx("span",{"data-testid":"flowbite-button-label",className:F(x.label),children:i?s:d})]})})})});uf.displayName="Button";const ff=Object.assign(uf,{Group:df}),hf=({children:t,...e})=>{const r=n=>{const i=n.target.closest('[role="banner"]');i==null||i.remove()};return p.jsx(ff,{onClick:r,...e,children:t})};hf.displayName="Banner.CollapseButton";const gf=({children:t,...e})=>p.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});gf.displayName="Banner",Object.assign(gf,{CollapseButton:hf});const pf=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(K().breadcrumb.item,o);return p.jsxs("li",{className:F(c.base,e),...i,children:[p.jsx(Wu,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),p.jsxs(l,{ref:s,className:c.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:r,children:[n&&p.jsx(n,{"aria-hidden":!0,className:c.icon}),t]})]})});pf.displayName="Breadcrumb.Item";const mf=({children:t,className:e,theme:r={},...n})=>{const o=H(K().breadcrumb.root,r);return p.jsx("nav",{"aria-label":"Breadcrumb",className:F(o.base,e),...n,children:p.jsx("ol",{className:o.list,children:t})})};mf.displayName="Breadcrumb",Object.assign(mf,{Item:pf});var bf={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
|
-
*/(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})()})(bf);var Bk=bf.exports;const $k=bu(Bk);var Qs={exports:{}};function yf(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,g=i;o=void 0,i=void 0,l=t.apply(h,g)}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}Qs.exports.debounce=yf,Qs.exports=yf;var jk=Qs.exports;const Wk=bu(jk);var Hk=Object.defineProperty,Rk=(t,e,r)=>e in t?Hk(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 Vk=300,Yk=0;class Uk 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,Vk),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 p.jsx("div",{className:$k(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(Uk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[Yk]});const qk=k.forwardRef(({className:t,color:e="default",theme:r={},...n},o)=>{const i=W(K().checkbox,r);return p.jsx("input",{ref:o,type:"checkbox",className:F(i.root.base,i.root.color[e],t),...n})});qk.displayName="Checkbox";const Rn=({children:t,className:e,color:r="default",theme:n={},value:o,...i})=>{const s=W(K().helperText,n);return p.jsx("p",{className:F(s.root.base,s.root.colors[r],e),...i,children:o??t??""})};Rn.displayName="HelperText";const ea=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=W(K().textInput,l);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:F(f.base,e),children:[t&&p.jsx("span",{className:f.addon,children:t}),p.jsxs("div",{className:f.field.base,children:[o&&p.jsx("div",{className:f.field.icon.base,children:p.jsx(o,{className:f.field.icon.svg})}),i&&p.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:p.jsx(i,{className:f.field.rightIcon.svg})}),p.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&&p.jsx(Rn,{color:r,children:n})]})});ea.displayName="TextInput";const vf=k.createContext(void 0);function ci(){const t=k.useContext(vf);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||{}),xf=(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))(xf||{});const Vn=(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()),Kk=(t,e,r)=>(Vn(t,e,r)||(e&&t<e?t=e:r&&t>r&&(t=r)),t),Gk=(t,e)=>{const r=new Date(t.getFullYear(),t.getMonth(),1);let o=r.getDay()-e;return o<0&&(o+=7),ta(r,-o)},Xk=(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(ta(n,i)));return r},ta=(t,e)=>{const r=new Date(t);return r.setDate(r.getDate()+e),r},Zk=(t,e)=>{const r=new Date(t);return r.setMonth(r.getMonth()+e),r},Rr=(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)},Vr=(t,e)=>{const r=t.getFullYear();return Math.floor(r/e)*e},Jk=(t,e)=>{const r=t.getFullYear(),n=e+9;return r>=e&&r<=n},Qk=({theme:t={}})=>{const{theme:e,weekStart:r,minDate:n,maxDate:o,viewDate:i,selectedDate:s,changeSelectedDate:a,language:l}=ci(),c=W(e.views.days,t),d=Xk(l,r),u=Gk(i,r);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:c.header.base,children:d.map((f,h)=>p.jsx("span",{className:c.header.title,children:f},h))}),p.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const g=ta(u,h),m=Yn(l,g,{day:"numeric"}),b=di(s,g),v=!Vn(g,n,o);return p.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(g,!0)},children:m},h)})})]})},e2=({theme:t={}})=>{const{theme:e,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=ci(),s=W(e.views.decades,t);return p.jsx("div",{className:s.items.base,children:[...Array(12)].map((a,l)=>{const d=Vr(n,100)-10+l*10,u=new Date(d,0,1),f=Rr(u,9),h=Jk(n,d),g=!Vn(n,u,f);return p.jsx("button",{disabled:g,type:"button",className:F(s.items.item.base,h&&s.items.item.selected,g&&s.items.item.disabled),onClick:()=>{g||(o(Rr(n,d-r.getFullYear())),i(ve.Years))},children:d},l)})})},t2=({theme:t={}})=>{const{theme:e,minDate:r,maxDate:n,selectedDate:o,viewDate:i,language:s,setViewDate:a,setView:l}=ci(),c=W(e.views.months,t);return p.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"}),g=di(o,f),m=!Vn(f,r,n);return p.jsx("button",{disabled:m,type:"button",className:F(c.items.item.base,g&&c.items.item.selected,m&&c.items.item.disabled),onClick:()=>{m||(a(f),l(ve.Days))},children:h},u)})})},r2=({theme:t={}})=>{const{theme:e,selectedDate:r,minDate:n,maxDate:o,viewDate:i,setViewDate:s,setView:a}=ci(),l=W(e.views.years,t);return p.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=Vr(i,10)-1+d*1,h=new Date(i.getTime());h.setFullYear(f);const g=di(r,h),m=!Vn(h,n,o);return p.jsx("button",{disabled:m,type:"button",className:F(l.items.item.base,g&&l.items.item.selected,m&&l.items.item.disabled),onClick:()=>{m||(s(h),a(ve.Months))},children:f},d)})})},n2=({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=xf.Sunday,className:h,theme:g={},onSelectedDateChanged:m,...b},v)=>{const y=W(K().datepicker,g);l=Kk(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 p.jsx(e2,{theme:y.views.decades});case ve.Years:return p.jsx(r2,{theme:y.views.years});case ve.Months:return p.jsx(t2,{theme:y.views.months});case ve.Days:default:return p.jsx(Qk,{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`${Vr(N,100)} - ${Vr(N,100)+90}`;case ve.Years:return`${Vr(N,10)} - ${Vr(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,$,H)=>{switch(j){case ve.Days:return new Date(Zk($,H));case ve.Months:return new Date(Rr($,H));case ve.Years:return new Date(Rr($,H*10));case ve.Decades:return new Date(Rr($,H*100));default:return new Date(Rr($,H*10))}};return k.useEffect(()=>{const j=$=>{var Y,U;const H=(Y=A==null?void 0:A.current)==null?void 0:Y.contains($.target),R=(U=I==null?void 0:I.current)==null?void 0:U.contains($.target);!H&&!R&&x(!1)};return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[I,A,x]),p.jsx(vf.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:p.jsxs("div",{className:F(y.root.base,h),children:[!r&&p.jsx(ea,{theme:y.root.input,icon:u1,ref:I,onFocus:()=>{di(N,T)||E(T),x(!0)},value:T&&Yn(u,T),readOnly:!0,...b}),(_||r)&&p.jsx("div",{ref:A,className:F(y.popup.root.base,r&&y.popup.root.inline),children:p.jsxs("div",{className:y.popup.root.inner,children:[p.jsxs("div",{className:y.popup.header.base,children:[t&&p.jsx("div",{className:y.popup.header.title,children:t}),p.jsxs("div",{className:y.popup.header.selectors.base,children:[p.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:p.jsx(c1,{})}),p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>S(L()),children:z()}),p.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:p.jsx(d1,{})})]})]}),p.jsx("div",{className:y.popup.view.base,children:P(w)}),(o||s)&&p.jsxs("div",{className:y.popup.footer.base,children:[s&&p.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&&p.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})]})]})})]})})},o2=k.forwardRef(n2);o2.displayName="Datepicker";function ui(){return typeof window<"u"}function xr(t){return wf(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=(wf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function wf(t){return ui()?t instanceof Node||t instanceof Qe(t).Node:!1}function ge(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 ra(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 i2(t){return["table","td","th"].includes(xr(t))}function fi(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function na(t){const e=oa(),r=ge(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 s2(t){let e=Wt(t);for(;$e(e)&&!Qt(e);){if(na(e))return e;if(fi(e))return null;e=Wt(e)}return null}function oa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qt(t){return["html","body","#document"].includes(xr(t))}function ut(t){return Qe(t).getComputedStyle(t)}function hi(t){return ge(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Wt(t){if(xr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ra(t)&&t.host||St(t);return ra(e)?e.host:e}function kf(t){const e=Wt(t);return Qt(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&Un(e)?e:kf(e)}function er(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=kf(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Qe(o);if(i){const a=ia(s);return e.concat(s,s.visualViewport||[],Un(o)?o:[],a&&r?er(a):[])}return e.concat(o,er(o,[],r))}function ia(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&&ra(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function sa(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Cf(){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 _f(t){return t.mozInputSource===0&&t.isTrusted?!0:ca()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function aa(t){return a2()?!1:!ca()&&t.width===0&&t.height===0||ca()&&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 la(){return/apple/i.test(navigator.vendor)}function ca(){const t=/android/i;return t.test(sa())||t.test(Cf())}function Sf(){return sa().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function a2(){return Cf().includes("jsdom/")}function gi(t,e){const r=["mouse","pen"];return e||r.push("",void 0),r.includes(t)}function l2(t){return"nativeEvent"in t}function c2(t){return t.matches("html,body")}function Ue(t){return(t==null?void 0:t.ownerDocument)||document}function da(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 tr(t){return"composedPath"in t?t.composedPath()[0]:t.target}const d2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ua(t){return $e(t)&&t.matches(d2)}function je(t){t.preventDefault(),t.stopPropagation()}function Ef(t){return t?t.getAttribute("role")==="combobox"&&ua(t):!1}const u2=["top","right","bottom","left"],Of=["start","end"],Tf=u2.reduce((t,e)=>t.concat(e,e+"-"+Of[0],e+"-"+Of[1]),[]),Yr=Math.min,wr=Math.max,pi=Math.round,Ur=Math.floor,Ot=t=>({x:t,y:t}),f2={left:"right",right:"left",bottom:"top",top:"bottom"},h2={start:"end",end:"start"};function fa(t,e,r){return wr(t,Yr(e,r))}function qr(t,e){return typeof t=="function"?t(e):t}function Ht(t){return t.split("-")[0]}function Tt(t){return t.split("-")[1]}function Nf(t){return t==="x"?"y":"x"}function ha(t){return t==="y"?"height":"width"}function mi(t){return["top","bottom"].includes(Ht(t))?"y":"x"}function ga(t){return Nf(mi(t))}function Mf(t,e,r){r===void 0&&(r=!1);const n=Tt(t),o=ga(t),i=ha(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 g2(t){const e=yi(t);return[bi(t),e,bi(e)]}function bi(t){return t.replace(/start|end/g,e=>h2[e])}function p2(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 m2(t,e,r,n){const o=Tt(t);let i=p2(Ht(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=>f2[e])}function b2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Pf(t){return typeof t!="number"?b2(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 Af(t,e,r){let{reference:n,floating:o}=t;const i=mi(e),s=ga(e),a=ha(s),l=Ht(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 y2=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}=Af(c,n,l),f=n,h={},g=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&&g<=50&&(g++,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}=Af(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function pa(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}=qr(e,t),g=Pf(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+g.top)/x.y,bottom:(w.bottom-v.bottom+g.bottom)/x.y,left:(v.left-w.left+g.left)/x.x,right:(w.right-v.right+g.right)/x.x}}const v2=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}=qr(t,e)||{};if(c==null)return{};const u=Pf(d),f={x:r,y:n},h=ga(o),g=ha(h),m=await s.getDimensions(c),b=h==="y",v=b?"top":"left",y=b?"bottom":"right",_=b?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[h]-f[h]-i.floating[g],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[g]);const M=x/2-w/2,N=T/2-m[g]/2-1,E=Yr(u[v],N),I=Yr(u[y],N),A=E,D=T-m[g]-I,O=T/2-m[g]/2+M,P=fa(A,O,D),L=!l.arrow&&Tt(o)!=null&&O!==P&&i.reference[g]/2-(O<A?E:I)-m[g]/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 x2(t,e,r){return(t?[...r.filter(o=>Tt(o)===t),...r.filter(o=>Tt(o)!==t)]:r.filter(o=>Ht(o)===o)).filter(o=>t?Tt(o)===t||(e?bi(o)!==o:!1):!0)}const w2=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=Tf,autoAlignment:h=!0,...g}=qr(t,e),m=u!==void 0||f===Tf?x2(u||null,h,f):f,b=await pa(e,g),v=((r=s.autoPlacement)==null?void 0:r.index)||0,y=m[v];if(y==null)return{};const _=Mf(y,i,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==y)return{reset:{placement:m[0]}};const x=[b[Ht(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}}:{}}}},k2=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:g="none",flipAlignment:m=!0,...b}=qr(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=Ht(o),y=Ht(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=f||(y||!m?[yi(a)]:g2(a));!f&&g!=="none"&&x.push(...m2(a,m,g,_));const w=[a,...x],S=await pa(e,b),T=[];let M=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&T.push(S[v]),u){const A=Mf(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 C2(t,e){const{placement:r,platform:n,elements:o}=t,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Ht(r),a=Tt(r),l=mi(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=qr(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const _2=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 C2(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}}}}},S2=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}=qr(t,e),c={x:r,y:n},d=await pa(e,l),u=mi(Ht(o)),f=Nf(u);let h=c[f],g=c[u];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+d[b],_=h-d[v];h=fa(y,h,_)}if(s){const b=u==="y"?"top":"left",v=u==="y"?"bottom":"right",y=g+d[b],_=g-d[v];g=fa(y,g,_)}const m=a.fn({...e,[f]:h,[u]:g});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function Df(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 ma(t){return ge(t)?t:t.contextElement}function Kr(t){const e=ma(t);if(!$e(e))return Ot(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=Df(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 E2=Ot(0);function If(t){const e=Qe(t);return!oa()||!e.visualViewport?E2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function O2(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Qe(t)?!1:e}function kr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=ma(t);let s=Ot(1);e&&(n?ge(n)&&(s=Kr(n)):s=Kr(t));const a=O2(i,r,n)?If(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&&ge(n)?Qe(n):n;let g=f,m=ia(g);for(;m&&n&&h!==g;){const b=Kr(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,g=Qe(m),m=ia(g)}}return vi({width:d,height:u,x:l,y:c})}function ba(t,e){const r=hi(t).scrollLeft;return e?e.left+r:kr(St(t)).left+r}function Lf(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:ba(t,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function T2(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)&&((xr(n)!=="body"||Un(s))&&(l=hi(n)),$e(n))){const h=kr(n);c=Kr(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?Lf(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 N2(t){return Array.from(t.getClientRects())}function M2(t){const e=St(t),r=hi(t),n=t.ownerDocument.body,o=wr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=wr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ba(t);const a=-r.scrollTop;return ut(n).direction==="rtl"&&(s+=wr(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function P2(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=oa();(!c||c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function A2(t,e){const r=kr(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=$e(t)?Kr(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 Ff(t,e,r){let n;if(e==="viewport")n=P2(t,r);else if(e==="document")n=M2(St(t));else if(ge(e))n=A2(e,r);else{const o=If(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return vi(n)}function zf(t,e){const r=Wt(t);return r===e||!ge(r)||Qt(r)?!1:ut(r).position==="fixed"||zf(r,e)}function D2(t,e){const r=e.get(t);if(r)return r;let n=er(t,[],!1).filter(a=>ge(a)&&xr(a)!=="body"),o=null;const i=ut(t).position==="fixed";let s=i?Wt(t):t;for(;ge(s)&&!Qt(s);){const a=ut(s),l=na(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Un(s)&&!l&&zf(t,s))?n=n.filter(d=>d!==s):o=a,s=Wt(s)}return e.set(t,n),n}function I2(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const s=[...r==="clippingAncestors"?fi(e)?[]:D2(e,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=Ff(e,d,o);return c.top=wr(u.top,c.top),c.right=Yr(u.right,c.right),c.bottom=Yr(u.bottom,c.bottom),c.left=wr(u.left,c.left),c},Ff(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function L2(t){const{width:e,height:r}=Df(t);return{width:e,height:r}}function F2(t,e,r){const n=$e(e),o=St(e),i=r==="fixed",s=kr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Ot(0);if(n||!n&&!i)if((xr(e)!=="body"||Un(o))&&(a=hi(e)),n){const f=kr(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=ba(o));const c=o&&!n&&!i?Lf(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 ya(t){return ut(t).position==="static"}function Bf(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 $f(t,e){const r=Qe(t);if(fi(t))return r;if(!$e(t)){let o=Wt(t);for(;o&&!Qt(o);){if(ge(o)&&!ya(o))return o;o=Wt(o)}return r}let n=Bf(t,e);for(;n&&i2(n)&&ya(n);)n=Bf(n,e);return n&&Qt(n)&&ya(n)&&!na(n)?r:n||s2(t)||r}const z2=async function(t){const e=this.getOffsetParent||$f,r=this.getDimensions,n=await r(t.floating);return{reference:F2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function B2(t){return ut(t).direction==="rtl"}const $2={convertOffsetParentRelativeRectToViewportRelativeRect:T2,getDocumentElement:St,getClippingRect:I2,getOffsetParent:$f,getElementRects:z2,getClientRects:N2,getDimensions:L2,getScale:Kr,isElement:ge,isRTL:B2};function jf(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function j2(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 g=Ur(u),m=Ur(o.clientWidth-(d+f)),b=Ur(o.clientHeight-(u+h)),v=Ur(d),_={rootMargin:-g+"px "+-m+"px "+-b+"px "+-v+"px",threshold:wr(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&&!jf(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 Wf(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=ma(t),d=o||i?[...c?er(c):[],...er(e)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const u=c&&a?j2(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 g,m=l?kr(t):null;l&&b();function b(){const v=kr(t);m&&!jf(m,v)&&r(),m=v,g=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(g)}}const W2=_2,H2=w2,R2=S2,V2=k2,Hf=v2,Y2=(t,e,r)=>{const n=new Map,o={platform:$2,...r},i={...o.platform,_c:n};return y2(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 Rf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vf(t,e){const r=Rf(t);return Math.round(e*r)/r}function va(t){const e=C.useRef(t);return xi(()=>{e.current=t}),e}function U2(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[g,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||g,w=s||b,S=C.useRef(null),T=C.useRef(null),M=C.useRef(d),N=l!=null,E=va(l),I=va(o),A=va(c),D=C.useCallback(()=>{if(!S.current||!T.current)return;const B={placement:e,strategy:r,middleware:f};I.current&&(B.platform=I.current),Y2(S.current,T.current,B).then(j=>{const $={...j,isPositioned:A.current!==!1};O.current&&!wi(M.current,$)&&(M.current=$,Vg.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)",...Rf(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):{}}}},K2=(t,e)=>({...W2(t),options:[t,e]}),G2=(t,e)=>({...R2(t),options:[t,e]}),X2=(t,e)=>({...V2(t),options:[t,e]}),Z2=(t,e)=>({...H2(t),options:[t,e]}),J2=(t,e)=>({...q2(t),options:[t,e]});/*!
|
|
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})()})(bf);var $k=bf.exports;const jk=bu($k);var Qs={exports:{}};function yf(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,g=i;o=void 0,i=void 0,l=t.apply(h,g)}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}Qs.exports.debounce=yf,Qs.exports=yf;var Hk=Qs.exports;const Wk=bu(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 qk 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 p.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(qk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[Uk]});const Kk=k.forwardRef(({className:t,color:e="default",theme:r={},...n},o)=>{const i=H(K().checkbox,r);return p.jsx("input",{ref:o,type:"checkbox",className:F(i.root.base,i.root.color[e],t),...n})});Kk.displayName="Checkbox";const Vn=({children:t,className:e,color:r="default",theme:n={},value:o,...i})=>{const s=H(K().helperText,n);return p.jsx("p",{className:F(s.root.base,s.root.colors[r],e),...i,children:o??t??""})};Vn.displayName="HelperText";const ea=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(K().textInput,l);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:F(f.base,e),children:[t&&p.jsx("span",{className:f.addon,children:t}),p.jsxs("div",{className:f.field.base,children:[o&&p.jsx("div",{className:f.field.icon.base,children:p.jsx(o,{className:f.field.icon.svg})}),i&&p.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:p.jsx(i,{className:f.field.rightIcon.svg})}),p.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&&p.jsx(Vn,{color:r,children:n})]})});ea.displayName="TextInput";const vf=k.createContext(void 0);function di(){const t=k.useContext(vf);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||{}),xf=(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))(xf||{});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},ui=(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),ta(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(ta(n,i)));return r},ta=(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}=di(),c=H(e.views.days,t),d=Zk(l,r),u=Xk(i,r);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:c.header.base,children:d.map((f,h)=>p.jsx("span",{className:c.header.title,children:f},h))}),p.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const g=ta(u,h),m=Yn(l,g,{day:"numeric"}),b=ui(s,g),v=!Rn(g,n,o);return p.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(g,!0)},children:m},h)})})]})},t2=({theme:t={}})=>{const{theme:e,selectedDate:r,viewDate:n,setViewDate:o,setView:i}=di(),s=H(e.views.decades,t);return p.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),g=!Rn(n,u,f);return p.jsx("button",{disabled:g,type:"button",className:F(s.items.item.base,h&&s.items.item.selected,g&&s.items.item.disabled),onClick:()=>{g||(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}=di(),c=H(e.views.months,t);return p.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"}),g=ui(o,f),m=!Rn(f,r,n);return p.jsx("button",{disabled:m,type:"button",className:F(c.items.item.base,g&&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}=di(),l=H(e.views.years,t);return p.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 g=ui(r,h),m=!Rn(h,n,o);return p.jsx("button",{disabled:m,type:"button",className:F(l.items.item.base,g&&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=xf.Sunday,className:h,theme:g={},onSelectedDateChanged:m,...b},v)=>{const y=H(K().datepicker,g);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 p.jsx(t2,{theme:y.views.decades});case ve.Years:return p.jsx(n2,{theme:y.views.years});case ve.Months:return p.jsx(r2,{theme:y.views.months});case ve.Days:default:return p.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]),p.jsx(vf.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:p.jsxs("div",{className:F(y.root.base,h),children:[!r&&p.jsx(ea,{theme:y.root.input,icon:f1,ref:I,onFocus:()=>{ui(N,T)||E(T),x(!0)},value:T&&Yn(u,T),readOnly:!0,...b}),(_||r)&&p.jsx("div",{ref:A,className:F(y.popup.root.base,r&&y.popup.root.inline),children:p.jsxs("div",{className:y.popup.root.inner,children:[p.jsxs("div",{className:y.popup.header.base,children:[t&&p.jsx("div",{className:y.popup.header.title,children:t}),p.jsxs("div",{className:y.popup.header.selectors.base,children:[p.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:p.jsx(d1,{})}),p.jsx("button",{type:"button",className:F(y.popup.header.selectors.button.base,y.popup.header.selectors.button.view),onClick:()=>S(L()),children:z()}),p.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:p.jsx(u1,{})})]})]}),p.jsx("div",{className:y.popup.view.base,children:P(w)}),(o||s)&&p.jsxs("div",{className:y.popup.footer.base,children:[s&&p.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&&p.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 fi(){return typeof window<"u"}function xr(t){return wf(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=(wf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function wf(t){return fi()?t instanceof Node||t instanceof Qe(t).Node:!1}function ge(t){return fi()?t instanceof Element||t instanceof Qe(t).Element:!1}function $e(t){return fi()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function ra(t){return!fi()||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(xr(t))}function hi(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function na(t){const e=oa(),r=ge(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)&&!Qt(e);){if(na(e))return e;if(hi(e))return null;e=Ht(e)}return null}function oa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qt(t){return["html","body","#document"].includes(xr(t))}function ut(t){return Qe(t).getComputedStyle(t)}function gi(t){return ge(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ht(t){if(xr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ra(t)&&t.host||St(t);return ra(e)?e.host:e}function kf(t){const e=Ht(t);return Qt(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&Un(e)?e:kf(e)}function er(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=kf(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Qe(o);if(i){const a=ia(s);return e.concat(s,s.visualViewport||[],Un(o)?o:[],a&&r?er(a):[])}return e.concat(o,er(o,[],r))}function ia(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&&ra(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function sa(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Cf(){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 _f(t){return t.mozInputSource===0&&t.isTrusted?!0:ca()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function aa(t){return l2()?!1:!ca()&&t.width===0&&t.height===0||ca()&&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 la(){return/apple/i.test(navigator.vendor)}function ca(){const t=/android/i;return t.test(sa())||t.test(Cf())}function Sf(){return sa().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function l2(){return Cf().includes("jsdom/")}function pi(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 da(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 tr(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 ua(t){return $e(t)&&t.matches(u2)}function je(t){t.preventDefault(),t.stopPropagation()}function Ef(t){return t?t.getAttribute("role")==="combobox"&&ua(t):!1}const f2=["top","right","bottom","left"],Of=["start","end"],Tf=f2.reduce((t,e)=>t.concat(e,e+"-"+Of[0],e+"-"+Of[1]),[]),Yr=Math.min,wr=Math.max,mi=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 fa(t,e,r){return wr(t,Yr(e,r))}function qr(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function Tt(t){return t.split("-")[1]}function Nf(t){return t==="x"?"y":"x"}function ha(t){return t==="y"?"height":"width"}function bi(t){return["top","bottom"].includes(Wt(t))?"y":"x"}function ga(t){return Nf(bi(t))}function Mf(t,e,r){r===void 0&&(r=!1);const n=Tt(t),o=ga(t),i=ha(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=vi(s)),[s,vi(s)]}function p2(t){const e=vi(t);return[yi(t),e,yi(e)]}function yi(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(yi)))),i}function vi(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 Pf(t){return typeof t!="number"?y2(t):{top:t,right:t,bottom:t,left:t}}function xi(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 Af(t,e,r){let{reference:n,floating:o}=t;const i=bi(e),s=ga(e),a=ha(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}=Af(c,n,l),f=n,h={},g=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&&g<=50&&(g++,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}=Af(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}};async function pa(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}=qr(e,t),g=Pf(h),b=a[f?u==="floating"?"reference":"floating":u],v=xi(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=xi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:_,strategy:l}):y);return{top:(v.top-w.top+g.top)/x.y,bottom:(w.bottom-v.bottom+g.bottom)/x.y,left:(v.left-w.left+g.left)/x.x,right:(w.right-v.right+g.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}=qr(t,e)||{};if(c==null)return{};const u=Pf(d),f={x:r,y:n},h=ga(o),g=ha(h),m=await s.getDimensions(c),b=h==="y",v=b?"top":"left",y=b?"bottom":"right",_=b?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[h]-f[h]-i.floating[g],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[g]);const M=x/2-w/2,N=T/2-m[g]/2-1,E=Yr(u[v],N),I=Yr(u[y],N),A=E,D=T-m[g]-I,O=T/2-m[g]/2+M,P=fa(A,O,D),L=!l.arrow&&Tt(o)!=null&&O!==P&&i.reference[g]/2-(O<A?E:I)-m[g]/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?yi(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=Tf,autoAlignment:h=!0,...g}=qr(t,e),m=u!==void 0||f===Tf?w2(u||null,h,f):f,b=await pa(e,g),v=((r=s.autoPlacement)==null?void 0:r.index)||0,y=m[v];if(y==null)return{};const _=Mf(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:g="none",flipAlignment:m=!0,...b}=qr(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?[vi(a)]:p2(a));!f&&g!=="none"&&x.push(...b2(a,m,g,_));const w=[a,...x],S=await pa(e,b),T=[];let M=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&T.push(S[v]),u){const A=Mf(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=bi(r)==="y",c=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,u=qr(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),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}=qr(t,e),c={x:r,y:n},d=await pa(e,l),u=bi(Wt(o)),f=Nf(u);let h=c[f],g=c[u];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+d[b],_=h-d[v];h=fa(y,h,_)}if(s){const b=u==="y"?"top":"left",v=u==="y"?"bottom":"right",y=g+d[b],_=g-d[v];g=fa(y,g,_)}const m=a.fn({...e,[f]:h,[u]:g});return{...m,data:{x:m.x-r,y:m.y-n}}}}};function Df(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=mi(r)!==i||mi(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function ma(t){return ge(t)?t:t.contextElement}function Kr(t){const e=ma(t);if(!$e(e))return Ot(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=Df(e);let s=(i?mi(r.width):r.width)/n,a=(i?mi(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 If(t){const e=Qe(t);return!oa()||!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 kr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=ma(t);let s=Ot(1);e&&(n?ge(n)&&(s=Kr(n)):s=Kr(t));const a=T2(i,r,n)?If(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&&ge(n)?Qe(n):n;let g=f,m=ia(g);for(;m&&n&&h!==g;){const b=Kr(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,g=Qe(m),m=ia(g)}}return xi({width:d,height:u,x:l,y:c})}function ba(t,e){const r=gi(t).scrollLeft;return e?e.left+r:kr(St(t)).left+r}function Lf(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:ba(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?hi(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)&&((xr(n)!=="body"||Un(s))&&(l=gi(n)),$e(n))){const h=kr(n);c=Kr(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=s&&!u&&!i?Lf(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=gi(t),n=t.ownerDocument.body,o=wr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=wr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ba(t);const a=-r.scrollTop;return ut(n).direction==="rtl"&&(s+=wr(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=oa();(!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=kr(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=$e(t)?Kr(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 Ff(t,e,r){let n;if(e==="viewport")n=A2(t,r);else if(e==="document")n=P2(St(t));else if(ge(e))n=D2(e,r);else{const o=If(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return xi(n)}function zf(t,e){const r=Ht(t);return r===e||!ge(r)||Qt(r)?!1:ut(r).position==="fixed"||zf(r,e)}function I2(t,e){const r=e.get(t);if(r)return r;let n=er(t,[],!1).filter(a=>ge(a)&&xr(a)!=="body"),o=null;const i=ut(t).position==="fixed";let s=i?Ht(t):t;for(;ge(s)&&!Qt(s);){const a=ut(s),l=na(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Un(s)&&!l&&zf(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"?hi(e)?[]:I2(e,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const u=Ff(e,d,o);return c.top=wr(u.top,c.top),c.right=Yr(u.right,c.right),c.bottom=Yr(u.bottom,c.bottom),c.left=wr(u.left,c.left),c},Ff(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}=Df(t);return{width:e,height:r}}function z2(t,e,r){const n=$e(e),o=St(e),i=r==="fixed",s=kr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=Ot(0);if(n||!n&&!i)if((xr(e)!=="body"||Un(o))&&(a=gi(e)),n){const f=kr(e,!0,i,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else o&&(l.x=ba(o));const c=o&&!n&&!i?Lf(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 ya(t){return ut(t).position==="static"}function Bf(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 $f(t,e){const r=Qe(t);if(hi(t))return r;if(!$e(t)){let o=Ht(t);for(;o&&!Qt(o);){if(ge(o)&&!ya(o))return o;o=Ht(o)}return r}let n=Bf(t,e);for(;n&&s2(n)&&ya(n);)n=Bf(n,e);return n&&Qt(n)&&ya(n)&&!na(n)?r:n||a2(t)||r}const B2=async function(t){const e=this.getOffsetParent||$f,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:$f,getElementRects:B2,getClientRects:M2,getDimensions:F2,getScale:Kr,isElement:ge,isRTL:$2};function jf(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 g=Ur(u),m=Ur(o.clientWidth-(d+f)),b=Ur(o.clientHeight-(u+h)),v=Ur(d),_={rootMargin:-g+"px "+-m+"px "+-b+"px "+-v+"px",threshold:wr(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&&!jf(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 Hf(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=ma(t),d=o||i?[...c?er(c):[],...er(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 g,m=l?kr(t):null;l&&b();function b(){const v=kr(t);m&&!jf(m,v)&&r(),m=v,g=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(g)}}const W2=S2,V2=k2,R2=E2,Y2=C2,Wf=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 wi=typeof document<"u"?k.useLayoutEffect:k.useEffect;function ki(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(!ki(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)&&!ki(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Vf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Rf(t,e){const r=Vf(t);return Math.round(e*r)/r}function va(t){const e=C.useRef(t);return wi(()=>{e.current=t}),e}function q2(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);ki(f,n)||h(n);const[g,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||g,w=s||b,S=C.useRef(null),T=C.useRef(null),M=C.useRef(d),N=l!=null,E=va(l),I=va(o),A=va(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&&!ki(M.current,$)&&(M.current=$,Yg.flushSync(()=>{u($)}))})},[f,e,r,I,A]);wi(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(B=>({...B,isPositioned:!1})))},[c]);const O=C.useRef(!1);wi(()=>(O.current=!0,()=>{O.current=!1}),[]),wi(()=>{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=Rf(L.floating,d.x),$=Rf(L.floating,d.y);return a?{...B,transform:"translate("+j+"px, "+$+"px)",...Vf(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 K2=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?Wf({element:n.current,padding:o}).fn(r):{}:n?Wf({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)=>({...K2(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 Q2=["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=Q2.join(","),Yf=typeof Element>"u",Gr=Yf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ci=!Yf&&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},e5=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},t5=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},r5=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},Uf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},qf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e5(e))&&!Uf(e)?0:e.tabIndex},n5=function(e,r){var n=qf(e);return n<0&&r&&!Uf(e)?0:n},o5=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Kf=function(e){return e.tagName==="INPUT"},i5=function(e){return Kf(e)&&e.type==="hidden"},s5=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},a5=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},l5=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=a5(o,e.form);return!i||i===e},c5=function(e){return Kf(e)&&e.type==="radio"},d5=function(e){return c5(e)&&!l5(e)},u5=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},Gf=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},f5=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 Gf(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=a}if(u5(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Gf(e);return!1},h5=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},g5=function(e,r){return!(r.disabled||_i(r)||i5(r)||f5(r,e)||s5(r)||h5(r))},xa=function(e,r){return!(d5(r)||qf(r)<0||!g5(e,r))},p5=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},m5=function t(e){var r=[],n=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=n5(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(o5).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=r5([e],r.includeContainer,{filter:xa.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:p5}):n=t5(e,r.includeContainer,xa.bind(null,r)),m5(n)},b5=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Gr.call(e,ki)===!1?!1:xa(r,e)};function Xf(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 y5=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 y5(()=>{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 wa="ArrowUp",qn="ArrowDown",Xr="ArrowLeft",Zr="ArrowRight";function Ei(t,e,r){return Math.floor(t/e)!==r}function Kn(t,e){return e<0||e>=t.current.length}function ka(t,e){return Ye(t,{disabledIndices:e})}function Zf(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 v5(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===wa){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,g=l-(h-f);h===f?u=l:u=h>f?g:g-i}Kn(t,u)&&(u=c)}if(r.key===qn&&(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}))),Kn(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;Kn(t,u)&&(o&&h?u=r.key===Xr?l:Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}):u=c)}return u}function x5(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 w5(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 k5(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}let Jf=0;function Rt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Jf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Jf=requestAnimationFrame(i)}var me=typeof document<"u"?k.useLayoutEffect:k.useEffect;function C5(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 _5(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 Qf=C.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function S5(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(C5).forEach((d,u)=>{l.set(d,u)}),_5(o,l)||i(l)},[o]),C.createElement(Qf.Provider,{value:C.useMemo(()=>({register:s,unregister:a,map:o,elementsRef:r,labelsRef:n}),[s,a,o,r,n])},e)}function E5(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(Qf),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 Ca=!1,O5=0;const eh=()=>"floating-ui-"+O5++;function T5(){const[t,e]=C.useState(()=>Ca?eh():void 0);return me(()=>{t==null&&e(eh())},[]),C.useEffect(()=>{Ca||(Ca=!0)},[]),t}const Oi=C.useId||T5;function N5(){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 M5=C.createContext(null),P5=C.createContext(null),Ti=()=>{var t;return((t=C.useContext(M5))==null?void 0:t.id)||null},Xn=()=>C.useContext(P5);function Cr(t){return"data-floating-ui-"+t}function Mt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const th=Cr("safe-polygon");function _a(t,e,r){return r&&!gi(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function A5(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:g=!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=_a(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(th),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&&_a(y.current,"open")===0)return;const j=_a(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 H=w.current;j.addEventListener("mousemove",H),N.current=()=>{j.removeEventListener("mousemove",H)};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(ge(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),g&&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),g&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,g,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(th,""),L.style.pointerEvents="none",M.current=!0,ge(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 D5(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 _r(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 I5(t,e){let r,n=-1;function o(i,s){s>n&&(r=i,n=s),_r(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={},Sa=0;const L5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,rh=t=>t&&(t.host||rh(t.parentNode)),F5=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=rh(r);return t.contains(n)?n:null}).filter(r=>r!=null);function z5(t,e,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,s=F5(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,g=>{if(a.has(g))f(g);else{const m=i?g.getAttribute(i):null,b=m!==null&&m!=="false",v=(Jr.get(g)||0)+1,y=(d.get(g)||0)+1;Jr.set(g,v),d.set(g,y),c.push(g),v===1&&b&&Ni.add(g),y===1&&g.setAttribute(o,""),!b&&i&&g.setAttribute(i,"true")}})}return Sa++,()=>{c.forEach(h=>{const g=(Jr.get(h)||0)-1,m=(d.get(h)||0)-1;Jr.set(h,g),d.set(h,m),g||(!Ni.has(h)&&i&&h.removeAttribute(i),Ni.delete(h)),m||h.removeAttribute(o)}),Sa--,Sa||(Jr=new WeakMap,Jr=new WeakMap,Ni=new WeakSet,Mi={})}}function nh(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=Ue(t[0]).body;return z5(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 oh(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 ih(){return oh(document.body,"next")}function sh(){return oh(document.body,"prev")}function Jn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Se(r,n)}function B5(t){Si(t,Zn()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function $5(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 Ea={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 j5;function ah(t){t.key==="Tab"&&(t.target,clearTimeout(j5))}const Pi=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(la()&&o("button"),document.addEventListener("keydown",ah),()=>{document.removeEventListener("keydown",ah)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Cr("focus-guard")]:"",style:Ea};return C.createElement("span",Gn({},e,i))}),lh=C.createContext(null),ch=Cr("portal");function W5(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Oi(),s=dh(),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(ch,""),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&&!ge(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(ch,""),l=c||l,l.appendChild(d),a.current=d,o(d)},[e,r,i,s]),n}function H5(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(g){i&&Jn(g)&&(g.type==="focusin"?$5:B5)(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(lh.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 g;(g=d.current)==null||g.focus()}else{const m=sh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:Ea}),i&&Ra.createPortal(e,i),f&&i&&C.createElement(Pi,{"data-type":"outside",ref:c,onFocus:h=>{if(Jn(h,i)){var g;(g=u.current)==null||g.focus()}else{const m=ih()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const dh=()=>C.useContext(lh),R5=20;let Sr=[];function Oa(t){Sr=Sr.filter(r=>r.isConnected);let e=t;if(!(!e||xr(e)==="body")){if(!b5(e,Zn())){const r=Si(e,Zn())[0];if(!r)return;e=r}Sr.push(e),Sr.length>R5&&(Sr=Sr.slice(-20))}}function uh(){return Sr.slice().reverse().find(t=>t.isConnected)}const V5=C.forwardRef(function(e,r){return C.createElement("button",Gn({},e,{type:"button",ref:r,tabIndex:-1,style:Ea}))});function fh(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:g,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Ef(v)&&_,w=L5()?i:!0,S=Mt(o),T=Mt(s),M=Mt(a),N=Xn(),E=dh(),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 H=L($);return S.current.map(R=>v&&R==="reference"?v:y&&R==="floating"?y:H).filter(Boolean).flat()},[v,y,S,L]);C.useEffect(()=>{if(n||!l)return;function $(R){if(R.key==="Tab"){Se(y,Et(Ue(y)))&&L().length===0&&!x&&je(R);const Y=z(),U=tr(R);S.current[0]==="reference"&&U===v&&(je(R),R.shiftKey?Rt(Y[Y.length-1]):Rt(Y[1])),S.current[1]==="floating"&&U===y&&R.shiftKey&&(je(R),Rt(Y[0]))}}const H=Ue(y);return H.addEventListener("keydown",$),()=>{H.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 H(R){const Y=R.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(Cr("focus-guard"))||N&&(_r(N.nodesRef.current,h).find(q=>{var G,de;return Se((G=q.context)==null?void 0:G.elements.floating,Y)||Se((de=q.context)==null?void 0:de.elements.domReference,Y)})||D5(N.nodesRef.current,h).find(q=>{var G,de;return((G=q.context)==null?void 0:G.elements.floating)===Y||((de=q.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==uh()&&(D.current=!0,g(!1,R))})}if(y&&$e(v))return v.addEventListener("focusout",H),v.addEventListener("pointerdown",$),!l&&y.addEventListener("focusout",H),()=>{v.removeEventListener("focusout",H),v.removeEventListener("pointerdown",$),!l&&y.removeEventListener("focusout",H)}},[n,v,y,l,h,N,E,g,d]),C.useEffect(()=>{var $;if(n)return;const H=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+Cr("portal")+"]"))||[]);if(y){const R=[y,...H,I.current,A.current,S.current.includes("reference")||x?v:null].filter(U=>U!=null),Y=l||x?nh(R,w,!w):nh(R);return()=>{Y()}}},[n,v,y,l,S,E,x,w]),me(()=>{if(n||!y)return;const $=Ue(y),H=Et($);queueMicrotask(()=>{const R=z(y),Y=T.current,U=(typeof Y=="number"?R[Y]:Y.current)||y,q=Se(y,H);!_&&!q&&u&&Rt(U,{preventScroll:U===y})})},[n,u,y,_,z,T]),me(()=>{if(n||!y)return;let $=!1;const H=Ue(y),R=Et(H),Y=b.current;Oa(R);function U(q){let{reason:G,event:de,nested:X}=q;G==="escape-key"&&f.domReference.current&&Oa(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,$=!0):D.current=!(_f(de)||aa(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const q=Et(H),G=Se(y,q)||N&&_r(N.nodesRef.current,h).some(oe=>{var Ie;return Se((Ie=oe.context)==null?void 0:Ie.elements.floating,q)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Oa(f.domReference.current);const X=uh();M.current&&!D.current&&$e(X)&&(!(X!==q&&q!==H.body)||G)&&Rt(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:g,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,g,f,d]),me(()=>{if(n||!y||typeof MutationObserver!="function"||_)return;const $=()=>{const R=y.getAttribute("tabindex");S.current.includes("floating")||Et(Ue(y))!==f.domReference.current&&L().length===0?R!=="0"&&y.setAttribute("tabindex","0"):R!=="-1"&&y.setAttribute("tabindex","-1")};$();const H=new MutationObserver($);return H.observe(y,{childList:!0,subtree:!0,attributes:!0}),()=>{H.disconnect()}},[n,y,f,S,L,_]);function B($){return n||!c||!l?null:C.createElement(V5,{ref:$==="start"?I:A,onClick:H=>g(!1,H.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 R=z();Rt(o[0]==="reference"?R[0]:R[R.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(D.current=!1,Jn($,E.portalNode)){const R=ih()||v;R==null||R.focus()}else{var H;(H=E.beforeOutsideRef.current)==null||H.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Pi,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:$=>{if(l)Rt(z()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(D.current=!0),Jn($,E.portalNode)){const R=sh()||v;R==null||R.focus()}else{var H;(H=E.afterOutsideRef.current)==null||H.focus()}}}))}const Ta=new Set,Y5=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Oi();return me(()=>{if(!n)return;Ta.add(i);const s=/iP(hone|ad|od)|iOS/.test(sa()),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,g;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((g=window.visualViewport)==null?void 0:g.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{Ta.delete(i),Ta.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 hh(t){return $e(t.target)&&t.target.tagName==="BUTTON"}function gh(t){return ua(t)}function ph(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||hh(h))&&(h.key===" "&&!gh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||hh(h)||gh(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const U5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},q5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},mh=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 bh(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:g="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}=mh(b),{escapeKey:N,outsidePress:E}=mh(v),I=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?_r(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,l2(P)?P.nativeEvent:P,"escape-key")}),A=Nt(P=>{var L;const z=()=>{var B;I(P),(B=tr(P))==null||B.removeEventListener("keydown",z)};(L=tr(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=tr(P),j="["+Cr("inert")+"]",$=Ue(a).querySelectorAll(j);let H=ge(B)?B:null;for(;H&&!Qt(H);){const U=Wt(H);if(Qt(U)||!ge(U))break;H=U}if($.length&&ge(B)&&!c2(B)&&!Se(B,a)&&Array.from($).every(U=>!Se(H,U)))return;if($e(B)&&a){const U=B.clientWidth>0&&B.scrollWidth>B.clientWidth,q=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=q&&P.offsetX>B.clientWidth;if(q&&ut(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const R=y&&_r(y.nodesRef.current,o).some(U=>{var q;return da(P,(q=U.context)==null?void 0:q.elements.floating)});if(da(P,a)||da(P,s)||R)return;const Y=y?_r(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(q=>{var G;if((G=q.context)!=null&&G.open&&!q.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=tr(P))==null||B.removeEventListener(f,z)};(L=tr(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&&(ge(s)&&(z=er(s)),ge(a)&&(z=z.concat(er(a))),!ge(i)&&i&&i.contextElement&&(z=z.concat(er(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,[U5[g]]: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,g,n,I])}let Na;process.env.NODE_ENV!=="production"&&(Na=new Set);function yh(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&&!ge(t.elements.reference)){var s;if(!((s=Na)!=null&&s.has(M))){var a;(a=Na)==null||a.add(M),console.error(M)}}}const[l,c]=C.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=U2(t),f=Xn(),h=Ti()!=null,g=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(()=>N5())[0],y=Oi(),_=C.useCallback(M=>{const N=ge(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(N)},[u.refs]),x=C.useCallback(M=>{(ge(M)||M===null)&&(m.current=M,c(M)),(ge(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!ge(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:g}),[u,o,y,v,r,g,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 K5(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 g(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",g,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",g,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:g}=h;(g==="reference-press"||g==="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){aa(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=tr(f.nativeEvent);if(l&&ge(h))try{if(la()&&Sf())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!ua(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,g=ge(h)&&h.hasAttribute(Cr("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)||g||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const vh="active",xh="selected";function Ma(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[vh]:s,[xh]: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&&[vh,xh].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,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...g)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function wh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Ma(i,t,"reference"),e),n=C.useCallback(i=>Ma(i,t,"floating"),e),o=C.useCallback(i=>Ma(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 kh=!1;function Ai(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function Ch(t,e){return Ai(e,t===wa||t===qn,t===Xr||t===Zr)}function Pa(t,e,r){return Ai(e,t===qn,r?t===Xr:t===Zr)||t==="Enter"||t===" "||t===""}function G5(t,e,r){return Ai(e,r?t===Xr:t===Zr,t===qn)}function _h(t,e,r){return Ai(e,r?t===Zr:t===Xr,t===wa)}function X5(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:g=!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),H=C.useRef(!1),R=Mt(x),Y=Mt(r),U=Mt(T),[q,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(J,Ee,le){le===void 0&&(le=!1);const te=J.current[Ee.current];te&&(b?(G(te.id),A==null||A.events.emit("virtualfocus",te),M&&(M.current=te)):Rt(te,{preventScroll:!0,sync:Sf()&&la()?kh||$.current:!1}),requestAnimationFrame(()=>{const he=U.current;he&&te&&(le||!z.current)&&(te.scrollIntoView==null||te.scrollIntoView(typeof he=="boolean"?{block:"nearest",inline:"nearest"}:he))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return kh=!0,!1}})},[]),me(()=>{d&&(r&&s?O.current&&u!=null&&(H.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||Pa(L.current,w,m)||g?ka(a,R.current):Zf(a,R.current),L.current=null,D(P.current))};Ee()}}else Kn(a,l)||(P.current=l,oe(a,P,H.current),H.current=!1)},[d,r,s,l,u,g,a,w,m,D,oe,R]),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,te=Et(Ue(s)),he=Ee.some(Q=>Q.context&&Se(Q.context.elements.floating,te));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,We=C.useMemo(()=>{function J(le){if(!r)return;const te=a.current.indexOf(le);te!==-1&&D(te)}return{onFocus(le){let{currentTarget:te}=le;J(te)},onClick:le=>{let{currentTarget:te}=le;return te.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:te}=le;J(te)},onPointerLeave(le){let{pointerType:te}=le;!z.current||te==="touch"||(P.current=-1,oe(a,P),D(null),b||Rt(o.floating.current,{preventScroll:!0}))}}}},[r,o,oe,y,a,D,b]);return C.useMemo(()=>{if(!d)return{};const J=R.current;function Ee(V){if(z.current=!1,$.current=!0,!Y.current&&V.currentTarget===o.floating.current)return;if(g&&_h(V.key,w,m)){je(V),n(!1,V.nativeEvent,"list-navigation"),$e(i)&&!b&&i.focus();return}const Oe=P.current,ie=ka(a,J),ke=Zf(a,J);if(V.key==="Home"&&(je(V),P.current=ie,D(P.current)),V.key==="End"&&(je(V),P.current=ke,D(P.current)),S>1){const Le=N||Array.from({length:a.current.length},()=>({width:1,height:1})),Pe=x5(Le,S,E),ft=Pe.findIndex(ot=>ot!=null&&!(J!=null&&J.includes(ot))),yt=Pe.reduce((ot,nr,it)=>nr!=null&&!(J!=null&&J.includes(nr))?it:ot,-1);if(P.current=Pe[v5({current:Pe.map(ot=>ot!=null?a.current[ot]:null)},{event:V,orientation:w,loop:h,cols:S,disabledIndices:k5([...J||[],void 0],Pe),minIndex:ft,maxIndex:yt,prevIndex:w5(P.current,Le,Pe,S,V.key===qn?"bl":V.key===Zr?"tr":"tl"),stopEvent:!0})],D(P.current),w==="both")return}if(Ch(V.key,w)){if(je(V),r&&!b&&Et(V.currentTarget.ownerDocument)===V.currentTarget){P.current=Pa(V.key,w,m)?ie:ke,D(P.current);return}Pa(V.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})),Kn(a,P.current)?D(null):D(P.current)}}function le(V){v==="auto"&&_f(V.nativeEvent)&&(O.current=!0)}function te(V){O.current=v,v==="auto"&&aa(V.nativeEvent)&&(O.current=!0)}const he=b&&r&&Ie&&{"aria-activedescendant":de||q},Q=a.current.find(V=>(V==null?void 0:V.id)===q);return{reference:{...he,onKeyDown(V){z.current=!1;const Oe=V.key.indexOf("Arrow")===0,ie=G5(V.key,w,m),ke=_h(V.key,w,m),Le=Ch(V.key,w),Pe=(g?ie:Le)||V.key==="Enter"||V.key.trim()==="";if(b&&r){const nr=A==null?void 0:A.nodesRef.current.find(Li=>Li.parentId==null),it=A&&nr?I5(A.nodesRef.current,nr.id):null;if(Oe&&it&&M){const Li=new KeyboardEvent("keydown",{key:V.key,bubbles:!0});if(ie||ke){var ft,yt;const NC=((ft=it.context)==null?void 0:ft.elements.domReference)===V.currentTarget,Rg=ke&&!NC?(yt=it.context)==null?void 0:yt.elements.domReference:ie?Q:null;Rg&&(je(V),Rg.dispatchEvent(Li),X(void 0))}if(Le&&it.context&&it.context.open&&it.parentId&&V.currentTarget!==it.context.elements.domReference){var ot;je(V),(ot=it.context.elements.domReference)==null||ot.dispatchEvent(Li);return}}return Ee(V)}if(!(!r&&!_&&Oe)){if(Pe&&(L.current=g&&Le?null:V.key),g){ie&&(je(V),r?(P.current=ka(a,J),D(P.current)):n(!0,V.nativeEvent,"list-navigation"));return}Le&&(u!=null&&(P.current=u),je(V),!r&&_?n(!0,V.nativeEvent,"list-navigation"):Ee(V),r&&D(P.current))}},onFocus(){r&&D(null)},onPointerDown:te,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Ef(i)&&he,onKeyDown:Ee,onPointerMove(){z.current=!0}},item:We}},[i,o,q,de,R,Y,a,d,w,m,b,r,Ie,g,u,_,f,S,h,v,D,n,We,A,M,N,E])}const Z5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Sh(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:i=!0,role:s="dialog"}=e,a=(r=Z5.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:g}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&g};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[i,s,a,n,o,l,d])}function J5(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,g=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(g.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(g.current),g.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 Eh(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 Q5(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function eC(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(),g=h-l;if(s===null||a===null||g===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/g;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:g,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||g==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,M=[S,T],N=tr(x),E=x.type==="mouseleave",I=Se(m.floating,N),A=Se(m.domReference,N),D=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=g.split("-")[0],L=f>O.right-O.width/2,z=h>O.bottom-O.height/2,B=Q5(M,D),j=O.width>D.width,$=O.height>D.height,H=(j?D:O).left,R=(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&&ge(x.relatedTarget)&&Se(m.floating,x.relatedTarget)||y&&_r(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 q=[];switch(P){case"top":q=[[H,D.top+1],[H,O.bottom-1],[R,O.bottom-1],[R,D.top+1]];break;case"bottom":q=[[H,O.top+1],[H,D.bottom-1],[R,D.bottom-1],[R,O.top+1]];break;case"left":q=[[O.right-1,U],[O.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":q=[[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],We=[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,We,...J]}case"bottom":{const Ie=[j?X+e/2:L?X+e*4:X-e*4,oe-e],We=[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,We,...J]}case"left":{const Ie=[X+e+1,$?oe+e/2:z?oe+e*4:oe-e*4],We=[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,We]}case"right":{const Ie=[X-e,$?oe+e/2:z?oe+e*4:oe-e*4],We=[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,We,...J]}}}if(!Eh([S,T],q)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Eh([S,T],G([f,h]))?!i&&n&&(o=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:r},d}const tC=({arrowRef:t,placement:e})=>{const r=[];return r.push(K2(8)),r.push(e==="auto"?Z2():X2()),r.push(G2({padding:8})),t!=null&&t.current&&r.push(J2({element:t.current})),r},rC=({placement:t})=>t==="auto"?void 0:t,nC=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],Oh=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>yh({placement:rC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:Wf,middleware:tC({placement:r,arrowRef:e})}),Th=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>wh([ph(t,{enabled:e==="click"}),A5(t,{enabled:e==="hover",handleClose:eC()}),bh(t),Sh(t,{role:r}),...n]),Nh=k.createContext(void 0);function Aa(){const t=k.useContext(Nh);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Da=({className:t,theme:e={},...r})=>{const{theme:n}=Aa(),o=e.divider??n.floating.divider;return p.jsx("div",{className:F(o,t),...r})},Mh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Aa(),i=r.header??o.floating.header;return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(i,e),...n,children:t}),p.jsx(Da,{})]})},Ph=k.forwardRef(({children:t,className:e,icon:r,onClick:n,theme:o={},...i},s)=>{const{ref:a,index:l}=E5({label:typeof t=="string"?t:void 0}),c=Xf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:g}=Aa(),m=u===l,b=W(d.floating.item,o),v=i;return p.jsx("li",{role:"menuitem",className:b.container,children:p.jsxs(Js,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&g(null)}}),tabIndex:m?0:-1,children:[r&&p.jsx(r,{className:b.icon}),t]})})});Ph.displayName="DropdownItem";const oC={top:m1,right:Hu,bottom:Wu,left:p1},iC=({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?p.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):p.jsx(ff,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Ah=({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),g=k.useRef([]),m=k.useRef([]),b=W(K().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}=Oh({open:s,setOpen:a,placement:_}),O=X5(I,{listRef:g,activeIndex:l,selectedIndex:d,onNavigate:c}),P=J5(I,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Th({context:I,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return oC[$]??Wu},[_]);return p.jsxs(Nh.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:N},children:[p.jsxs(iC,{...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&&p.jsx(j,{className:b.arrowIcon})]}),s&&p.jsx(fh,{context:I,modal:!1,children:p.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:p.jsx(S5,{elementsRef:g,labelsRef:m,children:p.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Ah.displayName="Dropdown",Mh.displayName="Dropdown.Header",Da.displayName="Dropdown.Divider",Object.assign(Ah,{Item:Ph,Header:Mh,Divider:Da});const sC=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=W(K().fileInput,o);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(a.root.base,t),children:p.jsx("div",{className:a.field.base,children:p.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&p.jsx(Rn,{color:e,children:r})]})});sC.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=W(K().floatingLabel,s);return p.jsxs("div",{children:[p.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[p.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}),p.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),p.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=W(K().footer.brand,s);return p.jsx("div",{children:n?p.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[p.jsx("img",{alt:t,src:i,className:l.img}),p.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):p.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=W(K().footer.copyright,n);return p.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?p.jsx("a",{href:r,className:s.href,children:t}):p.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Lh=({className:t,theme:e={},...r})=>{const n=W(K().footer.divider,e);return p.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=W(K().footer.icon,o);return p.jsx("div",{children:r?p.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:p.jsx(n,{className:s.size})}):p.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=W(K().footer.groupLink.link,o);return p.jsx("li",{className:F(s.base,r),children:p.jsx(t,{href:n,className:s.href,...i,children:e})})},Bh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=W(K().footer.groupLink,n);return p.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=W(K().footer.title,r);return p.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=W(K().footer,o);return p.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 Wh=({children:t,className:e,icon:r,theme:n={},...o})=>{const i=W(K().list.item,n);return p.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&p.jsx(r,{className:F(i.icon)}),t]})},Hh=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=W(K().list,s),c=o?"ol":"ul";return p.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})};Hh.displayName="List",Wh.displayName="List.Item",Object.assign(Hh,{Item:Wh});const Rh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=W(K().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return p.jsx("li",{className:F(c.base,r),children:p.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&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Vh=({children:t,className:e,theme:r={},...n})=>{const o=W(K().listGroup,r);return p.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Vh.displayName="ListGroup",Rh.displayName="ListGroup.Item",Object.assign(Vh,{Item:Rh});const Yh=k.createContext(void 0);function Ia(){const t=k.useContext(Yh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Uh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Ia(),s=W(o.body,r);return p.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}=Ia(),s=W(o.footer,r);return p.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Kh=({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}=Ia(),f=W(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),p.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[p.jsx(t,{id:a,className:f.title,children:e}),p.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:p.jsx(b1,{"aria-hidden":!0,className:f.close.icon})})]})},Gh=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,g]=k.useState(void 0),m=W(K().modal,c),{context:b}=yh({open:a,onOpenChange:()=>n&&n()}),v=Xf([b.refs.setFloating,f]),y=ph(b),_=bh(b,{outsidePressEvent:"mousedown",enabled:r}),x=Sh(b),{getFloatingProps:w}=wh([y,_,x]);return a?p.jsx(Yh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:g},children:p.jsx(H5,{root:s,children:p.jsx(Y5,{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:p.jsx(fh,{context:b,initialFocus:d,children:p.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:p.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Gh.displayName="Modal",Kh.displayName="Modal.Header",Uh.displayName="Modal.Body",qh.displayName="Modal.Footer",Object.assign(Gh,{Header:Kh,Body:Uh,Footer:qh});const Xh=k.createContext(void 0);function Di(){const t=k.useContext(Xh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Zh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Di(),s=W(i.brand,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},Jh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Di(),s=W(o.collapse,r);return p.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:p.jsx("ul",{className:s.list,children:t})})},Qh=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Di(),d=W(l.link,i),u=f=>{c(!1),s==null||s(f)};return p.jsx("li",{children:p.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})})},eg=({barIcon:t=ep,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Di(),a=W(o.toggle,r),l=()=>{s(!i)};return p.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[p.jsx("span",{className:"sr-only",children:"Open main menu"}),p.jsx(t,{"aria-hidden":!0,className:a.icon})]})},tg=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=W(K().navbar,s);return p.jsx(Xh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:p.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:p.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};tg.displayName="Navbar",Zh.displayName="Navbar.Brand",Jh.displayName="Navbar.Collapse",Qh.displayName="Navbar.Link",eg.displayName="Navbar.Toggle",Object.assign(tg,{Brand:Zh,Collapse:Jh,Link:Qh,Toggle:eg});const lC=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),La=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=W(K().pagination,o);return p.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};La.displayName="Pagination.Button";const Fa=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=W(K().pagination,n);return p.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};Fa.displayName="Pagination.Navigation";const rg=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>p.jsx(La,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=W(K().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),g=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return p.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&p.jsxs("div",{className:u.layout.table.base,children:["Showing ",p.jsx("span",{className:u.layout.table.span,children:h})," to ",p.jsx("span",{className:u.layout.table.span,children:f})," of ",p.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),p.jsxs("ul",{className:u.pages.base,children:[p.jsx("li",{children:p.jsxs(Fa,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&p.jsx($u,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&lC(h,f).map(b=>p.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)),p.jsx("li",{children:p.jsxs(Fa,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:g,disabled:e===c,children:[n,a&&p.jsx(ju,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};rg.displayName="Pagination",Object.assign(rg,{Button:La});const cC=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=W(K().radio,e);return p.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=W(K().rangeSlider,r);return p.jsx(p.Fragment,{children:p.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:p.jsx("div",{className:i.field.base,children:p.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});dC.displayName="RangeSlider";const ng=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=W(K().ratingAdvanced,n);return p.jsxs("div",{className:F(i.base,e),...o,children:[p.jsx("span",{className:i.label,children:t}),p.jsx("div",{className:i.progress.base,children:p.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),p.jsx("span",{className:i.progress.label,children:`${r}%`})]})},og=k.createContext(void 0);function uC(){const t=k.useContext(og);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const ig=({className:t,filled:e=!0,starIcon:r=h1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=uC(),a=W(i.star,n);return p.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},sg=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=W(K().rating,n);return p.jsx(og.Provider,{value:{theme:i,size:r},children:p.jsx("div",{className:F(i.root.base,e),...o,children:t})})};sg.displayName="Rating",ig.displayName="Rating.Star",ng.displayName="Rating.Advanced",Object.assign(sg,{Star:ig,Advanced:ng});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=W(K().select,l);return p.jsxs("div",{className:F(u.base,r),children:[t&&p.jsx("span",{className:u.addon,children:t}),p.jsxs("div",{className:u.field.base,children:[i&&p.jsx("div",{className:u.field.icon.base,children:p.jsx(i,{className:u.field.icon.svg})}),p.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&&p.jsx(Rn,{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),g=Oh({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}=g,T=K5(m),{getFloatingProps:M,getReferenceProps:N}=Th({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return Wf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...N(),children:r}),p.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:[p.jsx("div",{className:a.content,children:o}),e&&p.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:" ",[nC({placement:g.placement})]:a.arrow.placement},children:" "})]})]})},za=({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=W(K().tooltip,a);return p.jsx(hC,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};za.displayName="Tooltip";const ag=k.createContext(void 0);function Qr(){const t=k.useContext(ag);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Ba=k.createContext(void 0);function gC(){const t=k.useContext(Ba);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const lg=({children:t,className:e,icon:r,label:n,chevronIcon:o=Bu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=Qr(),g=W(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>p.jsx("li",{children:h&&!d?p.jsx(za,{content:n,placement:"right",children:b}):b});return p.jsxs(m,{children:[p.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(g.button,e),...l,children:[r&&p.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(g.icon.base,g.icon.open[d?"on":"off"])}),h?p.jsx("span",{className:"sr-only",children:n}):p.jsxs(p.Fragment,{children:[p.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:g.label.base,children:n}),i?i(g,d):p.jsx(o,{"aria-hidden":!0,className:F(g.label.icon.base,g.label.icon.open[d?"on":"off"])})]})]}),p.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:g.list,children:p.jsx(Ba.Provider,{value:{isInsideCollapse:!0},children:t})})]})};lg.displayName="Sidebar.Collapse";const cg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=Qr(),a=W(i.cta,n);return p.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};cg.displayName="Sidebar.CTA";const pC=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>p.jsx("li",{...i,children:r?p.jsx(za,{content:p.jsx(dg,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),dg=({id:t,theme:e,children:r})=>p.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),ug=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(),g=W(u.item,a);return p.jsx(pC,{theme:g,className:g.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:p.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(g.base,t&&g.active,!f&&h&&((m=g.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=g.icon)==null?void 0:b.base,t&&((v=g.icon)==null?void 0:v.active))}),f&&!o&&p.jsx("span",{className:(y=g.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&p.jsx(dg,{id:d,theme:g,children:r}),!f&&i&&p.jsx(sf,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:g.label,children:i})]})})});ug.displayName="Sidebar.Item";const fg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=W(o.itemGroup,r);return p.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:p.jsx(Ba.Provider,{value:{isInsideCollapse:!1},children:t})})};fg.displayName="Sidebar.ItemGroup";const hg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=W(o.items,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};hg.displayName="Sidebar.Items";const gg=({children:t,className:e,href:r,img:n,imgAlt:o="",theme:i={},...s})=>{const a=k.useId(),{theme:l,isCollapsed:c}=Qr(),d=W(l.logo,i);return p.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[p.jsx("img",{alt:o,src:n,className:d.img}),p.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};gg.displayName="Sidebar.Logo";const pg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=W(K().sidebar,o);return p.jsx(ag.Provider,{value:{theme:a,isCollapsed:n},children:p.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:p.jsx("div",{className:a.root.inner,children:t})})})};pg.displayName="Sidebar",Object.assign(pg,{Collapse:lg,CTA:cg,Item:ug,Items:hg,ItemGroup:fg,Logo:gg});const mg=k.createContext(void 0);function mC(){const t=k.useContext(mg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const bg=k.createContext(void 0);function $a(){const t=k.useContext(bg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const yg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=$a(),s=W(i.body,r);return p.jsx(mg.Provider,{value:{theme:s},children:p.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});yg.displayName="Table.Body";const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=mC(),s=W(i.cell,r);return p.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});vg.displayName="Table.Cell";const xg=k.createContext(void 0);function bC(){const t=k.useContext(xg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const wg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=$a(),s=W(i.head,r);return p.jsx(xg.Provider,{value:{theme:s},children:p.jsx("thead",{className:F(s.base,e),ref:o,...n,children:p.jsx("tr",{children:t})})})});wg.displayName="Table.Head";const kg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=bC(),s=W(i.cell,r);return p.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});kg.displayName="Table.HeadCell";const Cg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=$a(),l=W(i.row,r);return p.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});Cg.displayName="Table.Row";const _g=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=W(K().table,o);return p.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:p.jsxs(bg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[p.jsx("div",{className:F(a.root.shadow,e)}),p.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});_g.displayName="Table";const en=Object.assign(_g,{Head:wg,Body:yg,Row:Cg,Cell:vg,HeadCell:kg}),Sg=({children:t,className:e})=>p.jsx("div",{className:e,children:t});Sg.displayName="Tabs.Item";const Eg=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=W(K().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,g]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),g(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&g(Math.max(0,h-1)),x.key==="ArrowRight"&&g(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),g(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})),p.jsxs("div",{className:F(a.base,e),children:[p.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>p.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&&p.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),p.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>p.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))})]})});Eg.displayName="Tabs",Object.assign(Eg,{Item:Sg});const yC=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=W(K().textarea,o);return p.jsxs(p.Fragment,{children:[p.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&p.jsx(Rn,{color:e,children:r})]})});yC.displayName="Textarea";const Og=k.createContext(void 0);function ja(){const t=k.useContext(Og);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Tg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ja(),i=W(o.body,r);return p.jsx("div",{className:F(i.base,e),...n,children:t})},Ng=k.createContext(void 0);function Wa(){const t=k.useContext(Ng);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Mg=k.createContext(void 0);function Pg(){const t=k.useContext(Mg);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Ag=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=Wa(),{theme:i}=Pg(),s=W(i.content,r);return p.jsx(Og.Provider,{value:{theme:s},children:p.jsx("div",{"data-testid":"timeline-content",className:F(o&&s.root.base,e),...n,children:t})})},Dg=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=Wa(),s=W(o.item,r);return p.jsx(Mg.Provider,{value:{theme:s},children:p.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Ig=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=Wa(),{theme:s}=Pg(),a=W(s.point,n);return p.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?p.jsx("span",{className:F(a.marker.icon.wrapper),children:p.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):p.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&p.jsx("div",{className:F(a.line)})]})},Lg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ja(),i=W(o.time,r);return p.jsx("time",{className:F(i.base,e),...n,children:t})},Fg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=ja(),s=W(i.title,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},zg=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=W(K().timeline,n);return p.jsx(Ng.Provider,{value:{theme:i,horizontal:r},children:p.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};zg.displayName="Timeline",Dg.displayName="Timeline.Item",Ig.displayName="Timeline.Point",Ag.displayName="Timeline.Content",Lg.displayName="Timeline.Time",Fg.displayName="Timeline.Title",Tg.displayName="Timeline.Body",Object.assign(zg,{Item:Dg,Point:Ig,Content:Ag,Time:Lg,Title:Fg,Body:Tg});const Bg=k.createContext(void 0);function vC(){const t=k.useContext(Bg);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const $g=({className:t,onClick:e,theme:r={},xIcon:n=g1,onDismiss:o,...i})=>{const{theme:s,duration:a,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=vC(),f=W(s.toggle,r),h=g=>{if(e&&e(g),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return p.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:p.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"},jg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=W(K().toast,n);return a?null:p.jsx(Bg.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:p.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,xC[r],i&&c.root.closed,e),...o,children:t})})};jg.displayName="Toast",$g.displayName="Toast.Toggle",Object.assign(jg,{Toggle:$g});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=W(K().toggleSwitch,l),h=()=>a(!t),g=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return p.jsxs(p.Fragment,{children:[s&&t?p.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,p.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:g,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[p.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?p.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})=>p.jsxs("div",{className:"flex items-center justify-center gap-4",children:[p.jsx("button",{onClick:()=>r(t-1),disabled:t===1,className:"p-2 text-gray-500 hover:text-gray-700 disabled:opacity-50 disabled:cursor-not-allowed",children:p.jsx($u,{className:"w-5 h-5"})}),p.jsxs("span",{className:"text-sm text-gray-700",children:[t," de ",e]}),p.jsx("button",{onClick:()=>r(t+1),disabled:t===e,className:"p-2 text-gray-500 hover:text-gray-700 disabled:opacity-50 disabled:cursor-not-allowed",children:p.jsx(ju,{className:"w-5 h-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 g=f[h.accessor];return g!=null&&g.toString().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 p.jsxs("div",{className:"w-full",children:[p.jsx("div",{className:"flex justify-between items-center mb-4",children:o&&p.jsx("h2",{className:"text-xl font-bold",children:o})}),p.jsxs("div",{className:"flex mb-4",children:[r&&p.jsx("div",{className:"w-1/2",children:p.jsx(ea,{rightIcon:f1,placeholder:"Buscar",value:i,onChange:f=>s(f.target.value)})}),u>1&&p.jsx("div",{className:"w-full flex justify-end",children:p.jsx(kC,{currentPage:a,totalPages:u,onPageChange:l})})]}),p.jsx("div",{className:"overflow-x-auto",children:p.jsxs(en,{striped:!0,children:[p.jsx(en.Head,{children:t.map((f,h)=>p.jsx(en.HeadCell,{children:f.header},h))}),p.jsx(en.Body,{className:"divide-y",children:d.map((f,h)=>p.jsx(en.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:t.map((g,m)=>p.jsx(en.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:g.cell?g.cell(f):f[g.accessor]},m))},h))})]})})]})},Wg=no(),_C=()=>p.jsxs("div",{children:[p.jsx(Er,{classIm:"mx-auto mt-32",src:`${Wg}/public/assets/images/mathilde.png`,alt:"Logo Mathilde ads",width:400,height:250}),p.jsx("div",{className:"m-image-container",children:p.jsx(Er,{classIm:"m-image",src:`${Wg}/public/assets/images/background-mathilde.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 p.jsx("div",{className:"mb-5",children:p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),p.jsx("span",{className:eo.checkmark}),n&&p.jsx("span",{children:n})]})})},Hg=({validations:t})=>{const e=({isValid:n})=>p.jsx("svg",{className:`w-3.5 h-3.5 me-2 ${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:p.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 p.jsx("ul",{className:"max-w-md text-sm mb-3 space-y-1 text-gray-500 list-inside dark:text-gray-400",children:r.map(({key:n,text:o})=>p.jsxs("li",{className:"flex items-center",children:[p.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 p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"block",children:[p.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&&p.jsx("div",{className:"text-red-500 text-sm my-2",children:String(t.errors.password)})]}),p.jsxs("div",{className:"block",children:[p.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&&p.jsx("div",{className:"text-red-500 text-sm my-2",children:String(t.errors.confirmPassword)})]}),p.jsx(Hg,{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)=>p.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 p.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])"],Ci=e5.join(","),Yf=typeof Element>"u",Gr=Yf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_i=!Yf&&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},Si=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(Si(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Ci));return r&&Gr.call(e,Ci)&&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(!Si(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,Ci);d&&n.filter(s)&&(r||!e.includes(s))&&o.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),f=!Si(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},Uf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},qf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||t5(e))&&!Uf(e)?0:e.tabIndex},o5=function(e,r){var n=qf(e);return n<0&&r&&!Uf(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||_i(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&&_i(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=_i(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},Gf=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=_i(e);if(l&&!l.shadowRoot&&o(l)===!0)return Gf(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 Gf(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||Si(r)||s5(r)||h5(r,e)||a5(r)||g5(r))},xa=function(e,r){return!(u5(r)||qf(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)},Ei=function(e,r){r=r||{};var n;return r.getShadowRoot?n=n5([e],r.includeContainer,{filter:xa.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:m5}):n=r5(e,r.includeContainer,xa.bind(null,r)),b5(n)},y5=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Gr.call(e,Ci)===!1?!1:xa(r,e)};function Xf(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 wa="ArrowUp",qn="ArrowDown",Xr="ArrowLeft",Zr="ArrowRight";function Oi(t,e,r){return Math.floor(t/e)!==r}function Kn(t,e){return e<0||e>=t.current.length}function ka(t,e){return Ye(t,{disabledIndices:e})}function Zf(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===wa){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,g=l-(h-f);h===f?u=l:u=h>f?g:g-i}Kn(t,u)&&(u=c)}if(r.key===qn&&(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}))),Kn(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&&Oi(u,i,f)&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(u=Ye(t,{startingIndex:c-c%i-1,disabledIndices:s})),Oi(u,i,f)&&(u=c)),r.key===Xr&&(d&&je(r),c%i!==0?(u=Ye(t,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&Oi(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})),Oi(u,i,f)&&(u=c));const h=Ur(l/i)===f;Kn(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 Jf=0;function Vt(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(Jf);const i=()=>t==null?void 0:t.focus({preventScroll:r});o?i():Jf=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 Qf=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(Qf.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(Qf),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 Ca=!1,T5=0;const eh=()=>"floating-ui-"+T5++;function N5(){const[t,e]=C.useState(()=>Ca?eh():void 0);return me(()=>{t==null&&e(eh())},[]),C.useEffect(()=>{Ca||(Ca=!0)},[]),t}const Ti=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),Ni=()=>{var t;return((t=C.useContext(P5))==null?void 0:t.id)||null},Xn=()=>C.useContext(A5);function Cr(t){return"data-floating-ui-"+t}function Mt(t){const e=k.useRef(t);return me(()=>{e.current=t}),e}const th=Cr("safe-polygon");function _a(t,e,r){return r&&!pi(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:g=!0}=e,m=Xn(),b=Ni(),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=_a(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(th),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&&!pi(_.current)||h>0&&_a(y.current,"open")===0)return;const j=_a(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(ge(s)){const B=s;return r&&B.addEventListener("mouseleave",z),a==null||a.addEventListener("mouseleave",z),g&&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),g&&B.removeEventListener("mousemove",P),B.removeEventListener("mouseenter",P),B.removeEventListener("mouseleave",L)}}},[s,a,c,t,f,h,g,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(th,""),L.style.pointerEvents="none",M.current=!0,ge(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 _r(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),_r(t,i).forEach(l=>{o(l.id,s+1)})}return o(e,0),t.find(i=>i.id===r)}let Jr=new WeakMap,Mi=new WeakSet,Pi={},Sa=0;const F5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,rh=t=>t&&(t.host||rh(t.parentNode)),z5=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=rh(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=[];Pi[o]||(Pi[o]=new WeakMap);const d=Pi[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,g=>{if(a.has(g))f(g);else{const m=i?g.getAttribute(i):null,b=m!==null&&m!=="false",v=(Jr.get(g)||0)+1,y=(d.get(g)||0)+1;Jr.set(g,v),d.set(g,y),c.push(g),v===1&&b&&Mi.add(g),y===1&&g.setAttribute(o,""),!b&&i&&g.setAttribute(i,"true")}})}return Sa++,()=>{c.forEach(h=>{const g=(Jr.get(h)||0)-1,m=(d.get(h)||0)-1;Jr.set(h,g),d.set(h,m),g||(!Mi.has(h)&&i&&h.removeAttribute(i),Mi.delete(h)),m||h.removeAttribute(o)}),Sa--,Sa||(Jr=new WeakMap,Jr=new WeakMap,Mi=new WeakSet,Pi={})}}function nh(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 oh(t,e){const r=Ei(t,Zn());e==="prev"&&r.reverse();const n=r.indexOf(Et(Ue(t)));return r.slice(n+1)[0]}function ih(){return oh(document.body,"next")}function sh(){return oh(document.body,"prev")}function Jn(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!Se(r,n)}function $5(t){Ei(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 Ea={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 ah(t){t.key==="Tab"&&(t.target,clearTimeout(H5))}const Ai=C.forwardRef(function(e,r){const[n,o]=C.useState();me(()=>(la()&&o("button"),document.addEventListener("keydown",ah),()=>{document.removeEventListener("keydown",ah)}),[]);const i={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Cr("focus-guard")]:"",style:Ea};return C.createElement("span",Gn({},e,i))}),lh=C.createContext(null),ch=Cr("portal");function W5(t){let{id:e,root:r}=t===void 0?{}:t;const[n,o]=C.useState(null),i=Ti(),s=dh(),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(ch,""),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&&!ge(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(ch,""),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(g){i&&Jn(g)&&(g.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(lh.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:i,setFocusManagerState:a}),[o,i])},f&&i&&C.createElement(Ai,{"data-type":"outside",ref:l,onFocus:h=>{if(Jn(h,i)){var g;(g=d.current)==null||g.focus()}else{const m=sh()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus()}}}),f&&i&&C.createElement("span",{"aria-owns":i.id,style:Ea}),i&&Va.createPortal(e,i),f&&i&&C.createElement(Ai,{"data-type":"outside",ref:c,onFocus:h=>{if(Jn(h,i)){var g;(g=u.current)==null||g.focus()}else{const m=ih()||(s==null?void 0:s.refs.domReference.current);m==null||m.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,h.nativeEvent))}}}))}const dh=()=>C.useContext(lh),R5=20;let Sr=[];function Oa(t){Sr=Sr.filter(r=>r.isConnected);let e=t;if(!(!e||xr(e)==="body")){if(!y5(e,Zn())){const r=Ei(e,Zn())[0];if(!r)return;e=r}Sr.push(e),Sr.length>R5&&(Sr=Sr.slice(-20))}}function uh(){return Sr.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:Ea}))});function fh(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:g,events:m,dataRef:b,elements:{domReference:v,floating:y}}=e,_=typeof s=="number"&&s<0,x=Ef(v)&&_,w=F5()?i:!0,S=Mt(o),T=Mt(s),M=Mt(a),N=Xn(),E=dh(),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),$?Ei($,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=tr(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(Cr("focus-guard"))||N&&(_r(N.nodesRef.current,h).find(q=>{var G,de;return Se((G=q.context)==null?void 0:G.elements.floating,Y)||Se((de=q.context)==null?void 0:de.elements.domReference,Y)})||I5(N.nodesRef.current,h).find(q=>{var G,de;return((G=q.context)==null?void 0:G.elements.floating)===Y||((de=q.context)==null?void 0:de.elements.domReference)===Y})));Y&&U&&!O.current&&Y!==uh()&&(D.current=!0,g(!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,g,d]),C.useEffect(()=>{var $;if(n)return;const W=Array.from((E==null||($=E.portalNode)==null?void 0:$.querySelectorAll("["+Cr("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?nh(V,w,!w):nh(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,q=Se(y,W);!_&&!q&&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;Oa(V);function U(q){let{reason:G,event:de,nested:X}=q;G==="escape-key"&&f.domReference.current&&Oa(f.domReference.current),G==="hover"&&de.type==="mouseleave"&&(D.current=!0),G==="outside-press"&&(X?(D.current=!1,$=!0):D.current=!(_f(de)||aa(de)))}return m.on("openchange",U),()=>{m.off("openchange",U);const q=Et(W),G=Se(y,q)||N&&_r(N.nodesRef.current,h).some(oe=>{var Ie;return Se((Ie=oe.context)==null?void 0:Ie.elements.floating,q)});(G||Y.openEvent&&["click","mousedown"].includes(Y.openEvent.type))&&f.domReference.current&&Oa(f.domReference.current);const X=uh();M.current&&!D.current&&$e(X)&&(!(X!==q&&q!==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:g,refs:f}),()=>{E.setFocusManagerState(null)}},[n,E,l,u,g,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=>g(!1,W.nativeEvent)},typeof c=="string"?c:"Dismiss")}const j=!n&&w&&(P||l);return C.createElement(C.Fragment,null,j&&C.createElement(Ai,{"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=ih()||v;V==null||V.focus()}else{var W;(W=E.beforeOutsideRef.current)==null||W.focus()}}}),!x&&B("start"),r,B("end"),j&&C.createElement(Ai,{"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=sh()||v;V==null||V.focus()}else{var W;(W=E.afterOutsideRef.current)==null||W.focus()}}}))}const Ta=new Set,U5=C.forwardRef(function(e,r){let{lockScroll:n=!1,...o}=e;const i=Ti();return me(()=>{if(!n)return;Ta.add(i);const s=/iP(hone|ad|od)|iOS/.test(sa()),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,g;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((g=window.visualViewport)==null?void 0:g.offsetTop)||0;Object.assign(a,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{Ta.delete(i),Ta.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 hh(t){return $e(t.target)&&t.target.tagName==="BUTTON"}function gh(t){return ua(t)}function ph(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&&(pi(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}pi(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||hh(h))&&(h.key===" "&&!gh(i)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&n(!(r&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||hh(h)||gh(i)||h.key===" "&&f.current&&(f.current=!1,n(!(r&&l),h.nativeEvent,"click"))}}}:{},[s,o,a,c,d,i,l,r,n])}const q5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},K5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},mh=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 bh(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:g="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}=mh(b),{escapeKey:N,outsidePress:E}=mh(v),I=Nt(P=>{if(!r||!c||!d||P.key!=="Escape")return;const L=y?_r(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=tr(P))==null||B.removeEventListener("keydown",z)};(L=tr(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=tr(P),j="["+Cr("inert")+"]",$=Ue(a).querySelectorAll(j);let W=ge(B)?B:null;for(;W&&!Qt(W);){const U=Ht(W);if(Qt(U)||!ge(U))break;W=U}if($.length&&ge(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,q=B.clientHeight>0&&B.scrollHeight>B.clientHeight;let G=q&&P.offsetX>B.clientWidth;if(q&&ut(B).direction==="rtl"&&(G=P.offsetX<=B.offsetWidth-B.clientWidth),G||U&&P.offsetY>B.clientHeight)return}const V=y&&_r(y.nodesRef.current,o).some(U=>{var q;return da(P,(q=U.context)==null?void 0:q.elements.floating)});if(da(P,a)||da(P,s)||V)return;const Y=y?_r(y.nodesRef.current,o):[];if(Y.length>0){let U=!0;if(Y.forEach(q=>{var G;if((G=q.context)!=null&&G.open&&!q.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=tr(P))==null||B.removeEventListener(f,z)};(L=tr(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&&(ge(s)&&(z=er(s)),ge(a)&&(z=z.concat(er(a))),!ge(i)&&i&&i.contextElement&&(z=z.concat(er(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,[q5[g]]:P=>{h&&n(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:I,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[K5[f]]:()=>{w.current=!0}}}:{},[c,h,f,g,n,I])}let Na;process.env.NODE_ENV!=="production"&&(Na=new Set);function yh(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&&!ge(t.elements.reference)){var s;if(!((s=Na)!=null&&s.has(M))){var a;(a=Na)==null||a.add(M),console.error(M)}}}const[l,c]=C.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=q2(t),f=Xn(),h=Ni()!=null,g=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=Ti(),_=C.useCallback(M=>{const N=ge(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(N)},[u.refs]),x=C.useCallback(M=>{(ge(M)||M===null)&&(m.current=M,c(M)),(ge(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!ge(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:g}),[u,o,y,v,r,g,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 g(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",g,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",g,!0)}},[s,r,a]),C.useEffect(()=>{if(!a)return;function f(h){let{reason:g}=h;(g==="reference-press"||g==="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){aa(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=tr(f.nativeEvent);if(l&&ge(h))try{if(la()&&Sf())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!ua(h))return}n(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,g=ge(h)&&h.hasAttribute(Cr("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)||g||n(!1,f.nativeEvent,"focus")})}}}:{},[a,l,s,i,n])}const vh="active",xh="selected";function Ma(t,e,r){const n=new Map,o=r==="item";let i=t;if(o&&t){const{[vh]:s,[xh]: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&&[vh,xh].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,g=new Array(h),m=0;m<h;m++)g[m]=arguments[m];return(f=n.get(c))==null?void 0:f.map(b=>b(...g)).find(b=>b!==void 0)}}}else s[c]=d}),s),{})}}function wh(t){t===void 0&&(t=[]);const e=t,r=C.useCallback(i=>Ma(i,t,"reference"),e),n=C.useCallback(i=>Ma(i,t,"floating"),e),o=C.useCallback(i=>Ma(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 kh=!1;function Di(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function Ch(t,e){return Di(e,t===wa||t===qn,t===Xr||t===Zr)}function Pa(t,e,r){return Di(e,t===qn,r?t===Xr:t===Zr)||t==="Enter"||t===" "||t===""}function X5(t,e,r){return Di(e,r?t===Xr:t===Zr,t===qn)}function _h(t,e,r){return Di(e,r?t===Zr:t===Xr,t===wa)}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:g=!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=Ni(),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),[q,G]=C.useState(),[de,X]=C.useState(),oe=Nt(function(J,Ee,le){le===void 0&&(le=!1);const te=J.current[Ee.current];te&&(b?(G(te.id),A==null||A.events.emit("virtualfocus",te),M&&(M.current=te)):Vt(te,{preventScroll:!0,sync:Sf()&&la()?kh||$.current:!1}),requestAnimationFrame(()=>{const he=U.current;he&&te&&(le||!z.current)&&(te.scrollIntoView==null||te.scrollIntoView(typeof he=="boolean"?{block:"nearest",inline:"nearest"}:he))}))});me(()=>{document.createElement("div").focus({get preventScroll(){return kh=!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||Pa(L.current,w,m)||g?ka(a,V.current):Zf(a,V.current),L.current=null,D(P.current))};Ee()}}else Kn(a,l)||(P.current=l,oe(a,P,W.current),W.current=!1)},[d,r,s,l,u,g,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,te=Et(Ue(s)),he=Ee.some(Q=>Q.context&&Se(Q.context.elements.floating,te));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 te=a.current.indexOf(le);te!==-1&&D(te)}return{onFocus(le){let{currentTarget:te}=le;J(te)},onClick:le=>{let{currentTarget:te}=le;return te.focus({preventScroll:!0})},...y&&{onMouseMove(le){let{currentTarget:te}=le;J(te)},onPointerLeave(le){let{pointerType:te}=le;!z.current||te==="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(g&&_h(R.key,w,m)){je(R),n(!1,R.nativeEvent,"list-navigation"),$e(i)&&!b&&i.focus();return}const Oe=P.current,ie=ka(a,J),ke=Zf(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,nr,it)=>nr!=null&&!(J!=null&&J.includes(nr))?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===qn?"bl":R.key===Zr?"tr":"tl"),stopEvent:!0})],D(P.current),w==="both")return}if(Ch(R.key,w)){if(je(R),r&&!b&&Et(R.currentTarget.ownerDocument)===R.currentTarget){P.current=Pa(R.key,w,m)?ie:ke,D(P.current);return}Pa(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})),Kn(a,P.current)?D(null):D(P.current)}}function le(R){v==="auto"&&_f(R.nativeEvent)&&(O.current=!0)}function te(R){O.current=v,v==="auto"&&aa(R.nativeEvent)&&(O.current=!0)}const he=b&&r&&Ie&&{"aria-activedescendant":de||q},Q=a.current.find(R=>(R==null?void 0:R.id)===q);return{reference:{...he,onKeyDown(R){z.current=!1;const Oe=R.key.indexOf("Arrow")===0,ie=X5(R.key,w,m),ke=_h(R.key,w,m),Le=Ch(R.key,w),Pe=(g?ie:Le)||R.key==="Enter"||R.key.trim()==="";if(b&&r){const nr=A==null?void 0:A.nodesRef.current.find(Fi=>Fi.parentId==null),it=A&&nr?L5(A.nodesRef.current,nr.id):null;if(Oe&&it&&M){const Fi=new KeyboardEvent("keydown",{key:R.key,bubbles:!0});if(ie||ke){var ft,yt;const MC=((ft=it.context)==null?void 0:ft.elements.domReference)===R.currentTarget,Rg=ke&&!MC?(yt=it.context)==null?void 0:yt.elements.domReference:ie?Q:null;Rg&&(je(R),Rg.dispatchEvent(Fi),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(Fi);return}}return Ee(R)}if(!(!r&&!_&&Oe)){if(Pe&&(L.current=g&&Le?null:R.key),g){ie&&(je(R),r?(P.current=ka(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:te,onMouseDown:le,onClick:le},floating:{"aria-orientation":w==="both"?void 0:w,...!Ef(i)&&he,onKeyDown:Ee,onPointerMove(){z.current=!0}},item:He}},[i,o,q,de,V,Y,a,d,w,m,b,r,Ie,g,u,_,f,S,h,v,D,n,He,A,M,N,E])}const J5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Sh(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=Ti(),d=Ni()!=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:g}=f;const m={role:"option",...h&&{id:o+"-option"}};switch(s){case"select":return{...m,"aria-selected":h&&g};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,g=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(g.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(g.current),g.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 Eh(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(),g=h-l;if(s===null||a===null||g===0)return s=u,a=f,l=h,null;const m=u-s,b=f-a,y=Math.sqrt(m*m+b*b)/g;return s=u,a=f,l=h,y}const d=u=>{let{x:f,y:h,placement:g,elements:m,onClose:b,nodeId:v,tree:y}=u;return function(x){function w(){clearTimeout(o),b()}if(clearTimeout(o),!m.domReference||!m.floating||g==null||f==null||h==null)return;const{clientX:S,clientY:T}=x,M=[S,T],N=tr(x),E=x.type==="mouseleave",I=Se(m.floating,N),A=Se(m.domReference,N),D=m.domReference.getBoundingClientRect(),O=m.floating.getBoundingClientRect(),P=g.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&&ge(x.relatedTarget)&&Se(m.floating,x.relatedTarget)||y&&_r(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 q=[];switch(P){case"top":q=[[W,D.top+1],[W,O.bottom-1],[V,O.bottom-1],[V,D.top+1]];break;case"bottom":q=[[W,O.top+1],[W,D.bottom-1],[V,D.bottom-1],[V,O.top+1]];break;case"left":q=[[O.right-1,U],[O.right-1,Y],[D.left+1,Y],[D.left+1,U]];break;case"right":q=[[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(!Eh([S,T],q)){if(i&&!B)return w();if(!E&&n){const de=c(x.clientX,x.clientY);if(de!==null&&de<.1)return w()}Eh([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]],Oh=({open:t,arrowRef:e,placement:r="top",setOpen:n})=>yh({placement:nC({placement:r}),open:t,onOpenChange:n,whileElementsMounted:Hf,middleware:rC({placement:r,arrowRef:e})}),Th=({context:t,trigger:e,role:r="tooltip",interactions:n=[]})=>wh([ph(t,{enabled:e==="click"}),D5(t,{enabled:e==="hover",handleClose:tC()}),bh(t),Sh(t,{role:r}),...n]),Nh=k.createContext(void 0);function Aa(){const t=k.useContext(Nh);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Da=({className:t,theme:e={},...r})=>{const{theme:n}=Aa(),o=e.divider??n.floating.divider;return p.jsx("div",{className:F(o,t),...r})},Mh=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Aa(),i=r.header??o.floating.header;return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(i,e),...n,children:t}),p.jsx(Da,{})]})},Ph=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=Xf([s,a]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:g}=Aa(),m=u===l,b=H(d.floating.item,o),v=i;return p.jsx("li",{role:"menuitem",className:b.container,children:p.jsxs(Js,{ref:c,className:F(b.base,e),...v,...h({onClick:()=>{n==null||n(),f&&g(null)}}),tabIndex:m?0:-1,children:[r&&p.jsx(r,{className:b.icon}),t]})})});Ph.displayName="DropdownItem";const iC={top:b1,right:Wu,bottom:Hu,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?p.jsx("button",{type:"button",ref:t.setReference,className:n==null?void 0:n.inlineWrapper,disabled:o,...d,children:e}):p.jsx(ff,{...l,disabled:o,type:"button",ref:t.setReference,...d,children:e})},Ah=({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),g=k.useRef([]),m=k.useRef([]),b=H(K().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}=Oh({open:s,setOpen:a,placement:_}),O=Z5(I,{listRef:g,activeIndex:l,selectedIndex:d,onNavigate:c}),P=Q5(I,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:z,getItemProps:B}=Th({context:I,role:"menu",trigger:x,interactions:[O,P]}),j=k.useMemo(()=>{const[$]=_.split("-");return iC[$]??Hu},[_]);return p.jsxs(Nh.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:r,getItemProps:B,handleSelect:N},children:[p.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&&p.jsx(j,{className:b.arrowIcon})]}),s&&p.jsx(fh,{context:I,modal:!1,children:p.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:p.jsx(E5,{elementsRef:g,labelsRef:m,children:p.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};Ah.displayName="Dropdown",Mh.displayName="Dropdown.Header",Da.displayName="Dropdown.Divider",Object.assign(Ah,{Item:Ph,Header:Mh,Divider:Da});const aC=k.forwardRef(({className:t,color:e="gray",helperText:r,sizing:n="md",theme:o={},...i},s)=>{const a=H(K().fileInput,o);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F(a.root.base,t),children:p.jsx("div",{className:a.field.base,children:p.jsx("input",{className:F(a.field.input.base,a.field.input.colors[e],a.field.input.sizes[n]),...i,type:"file",ref:s})})}),r&&p.jsx(Vn,{color:e,children:r})]})});aC.displayName="FileInput";const lC=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(K().floatingLabel,s);return p.jsxs("div",{children:[p.jsxs("div",{className:F("relative",o==="standard"?"z-0":""),children:[p.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}),p.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:F(u.label[r][o][n],a),children:t})]}),p.jsx("p",{id:"outlined_helper_text"+d,className:F(u.helperText[r],a),children:e})]})});lC.displayName="FloatingLabel";const Dh=({alt:t,className:e,children:r,href:n,name:o,src:i,theme:s={},...a})=>{const l=H(K().footer.brand,s);return p.jsx("div",{children:n?p.jsxs("a",{"data-testid":"flowbite-footer-brand",href:n,className:F(l.base,e),...a,children:[p.jsx("img",{alt:t,src:i,className:l.img}),p.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:o}),r]}):p.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(K().footer.copyright,n);return p.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:F(s.base,e),...i,children:["© ",o,r?p.jsx("a",{href:r,className:s.href,children:t}):p.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Lh=({className:t,theme:e={},...r})=>{const n=H(K().footer.divider,e);return p.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(K().footer.icon,o);return p.jsx("div",{children:r?p.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:r,className:F(s.base,e),...i,children:p.jsx(n,{className:s.size})}):p.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(K().footer.groupLink.link,o);return p.jsx("li",{className:F(s.base,r),children:p.jsx(t,{href:n,className:s.href,...i,children:e})})},Bh=({children:t,className:e,col:r=!1,theme:n={},...o})=>{const i=H(K().footer.groupLink,n);return p.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(K().footer.title,r);return p.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(K().footer,o);return p.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,icon:r,theme:n={},...o})=>{const i=H(K().list.item,n);return p.jsxs("li",{className:F(i.withIcon[r?"on":"off"],e),...o,children:[r&&p.jsx(r,{className:F(i.icon)}),t]})},Wh=({children:t,className:e,unstyled:r,nested:n,ordered:o,horizontal:i,theme:s={},...a})=>{const l=H(K().list,s),c=o?"ol":"ul";return p.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})};Wh.displayName="List",Hh.displayName="List.Item",Object.assign(Wh,{Item:Hh});const Vh=({active:t,children:e,className:r,href:n,icon:o,onClick:i,theme:s={},disabled:a,...l})=>{const c=H(K().listGroup.item,s),d=typeof n<"u",u=d?"a":"button";return p.jsx("li",{className:F(c.base,r),children:p.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&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Rh=({children:t,className:e,theme:r={},...n})=>{const o=H(K().listGroup,r);return p.jsx("ul",{className:F(o.root.base,e),...n,children:t})};Rh.displayName="ListGroup",Vh.displayName="ListGroup.Item",Object.assign(Rh,{Item:Vh});const Yh=k.createContext(void 0);function Ia(){const t=k.useContext(Yh);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Uh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,popup:i}=Ia(),s=H(o.body,r);return p.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}=Ia(),s=H(o.footer,r);return p.jsx("div",{className:F(s.base,!i&&s.popup,e),...n,children:t})},Kh=({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}=Ia(),f=H(l.header,n);return k.useLayoutEffect(()=>(u(a),()=>u(void 0)),[a,u]),p.jsxs("div",{className:F(f.base,c&&f.popup,r),...i,children:[p.jsx(t,{id:a,className:f.title,children:e}),p.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:p.jsx(y1,{"aria-hidden":!0,className:f.close.icon})})]})},Gh=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,g]=k.useState(void 0),m=H(K().modal,c),{context:b}=yh({open:a,onOpenChange:()=>n&&n()}),v=Xf([b.refs.setFloating,f]),y=ph(b),_=bh(b,{outsidePressEvent:"mousedown",enabled:r}),x=Sh(b),{getFloatingProps:w}=wh([y,_,x]);return a?p.jsx(Yh.Provider,{value:{theme:m,popup:o,onClose:n,setHeaderId:g},children:p.jsx(V5,{root:s,children:p.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:p.jsx(fh,{context:b,initialFocus:d,children:p.jsx("div",{ref:v,...w(u),"aria-labelledby":h,className:F(m.content.base,m.root.sizes[l]),children:p.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Gh.displayName="Modal",Kh.displayName="Modal.Header",Uh.displayName="Modal.Body",qh.displayName="Modal.Footer",Object.assign(Gh,{Header:Kh,Body:Uh,Footer:qh});const Xh=k.createContext(void 0);function Ii(){const t=k.useContext(Xh);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Zh=({as:t="a",children:e,className:r,theme:n={},...o})=>{const{theme:i}=Ii(),s=H(i.brand,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},Jh=({children:t,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i}=Ii(),s=H(o.collapse,r);return p.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:F(s.base,s.hidden[i?"off":"on"],e),...n,children:p.jsx("ul",{className:s.list,children:t})})},Qh=({active:t,as:e="a",disabled:r,children:n,className:o,theme:i={},onClick:s,...a})=>{const{theme:l,setIsOpen:c}=Ii(),d=H(l.link,i),u=f=>{c(!1),s==null||s(f)};return p.jsx("li",{children:p.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})})},eg=({barIcon:t=tp,className:e,theme:r={},...n})=>{const{theme:o,isOpen:i,setIsOpen:s}=Ii(),a=H(o.toggle,r),l=()=>{s(!i)};return p.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:F(a.base,e),...n,children:[p.jsx("span",{className:"sr-only",children:"Open main menu"}),p.jsx(t,{"aria-hidden":!0,className:a.icon})]})},tg=({border:t,children:e,className:r,fluid:n=!1,menuOpen:o,rounded:i,theme:s={},...a})=>{const[l,c]=k.useState(o),d=H(K().navbar,s);return p.jsx(Xh.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:p.jsx("nav",{className:F(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[i?"on":"off"],r),...a,children:p.jsx("div",{className:F(d.root.inner.base,d.root.inner.fluid[n?"on":"off"]),children:e})})})};tg.displayName="Navbar",Zh.displayName="Navbar.Brand",Jh.displayName="Navbar.Collapse",Qh.displayName="Navbar.Link",eg.displayName="Navbar.Toggle",Object.assign(tg,{Brand:Zh,Collapse:Jh,Link:Qh,Toggle:eg});const cC=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(r=>r+t),La=({active:t,children:e,className:r,onClick:n,theme:o={},...i})=>{const s=H(K().pagination,o);return p.jsx("button",{type:"button",className:F(t&&s.pages.selector.active,r),onClick:n,...i,children:e})};La.displayName="Pagination.Button";const Fa=({children:t,className:e,onClick:r,theme:n={},disabled:o=!1,...i})=>{const s=H(K().pagination,n);return p.jsx("button",{type:"button",className:F(o&&s.pages.selector.disabled,e),disabled:o,onClick:r,...i,children:t})};Fa.displayName="Pagination.Navigation";const rg=({className:t,currentPage:e,layout:r="pagination",nextLabel:n="Next",onPageChange:o,previousLabel:i="Previous",renderPaginationButton:s=u=>p.jsx(La,{...u}),showIcons:a=!1,theme:l={},totalPages:c,...d})=>{const u=H(K().pagination,l),f=Math.min(Math.max(r==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),g=()=>{o(Math.min(e+1,c))},m=()=>{o(Math.max(e-1,1))};return p.jsxs("nav",{className:F(u.base,t),...d,children:[r==="table"&&p.jsxs("div",{className:u.layout.table.base,children:["Showing ",p.jsx("span",{className:u.layout.table.span,children:h})," to ",p.jsx("span",{className:u.layout.table.span,children:f})," of ",p.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),p.jsxs("ul",{className:u.pages.base,children:[p.jsx("li",{children:p.jsxs(Fa,{className:F(u.pages.previous.base,a&&u.pages.showIcon),onClick:m,disabled:e===1,children:[a&&p.jsx($u,{"aria-hidden":!0,className:u.pages.previous.icon}),i]})}),r==="pagination"&&cC(h,f).map(b=>p.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)),p.jsx("li",{children:p.jsxs(Fa,{className:F(u.pages.next.base,a&&u.pages.showIcon),onClick:g,disabled:e===c,children:[n,a&&p.jsx(ju,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};rg.displayName="Pagination",Object.assign(rg,{Button:La});const dC=k.forwardRef(({className:t,theme:e={},...r},n)=>{const o=H(K().radio,e);return p.jsx("input",{ref:n,type:"radio",className:F(o.root.base,t),...r})});dC.displayName="Radio";const uC=k.forwardRef(({className:t,sizing:e="md",theme:r={},...n},o)=>{const i=H(K().rangeSlider,r);return p.jsx(p.Fragment,{children:p.jsx("div",{"data-testid":"flowbite-range-slider",className:F(i.root.base,t),children:p.jsx("div",{className:i.field.base,children:p.jsx("input",{ref:o,type:"range",className:F(i.field.input.base,i.field.input.sizes[e]),...n})})})})});uC.displayName="RangeSlider";const ng=({children:t,className:e,percentFilled:r=0,theme:n={},...o})=>{const i=H(K().ratingAdvanced,n);return p.jsxs("div",{className:F(i.base,e),...o,children:[p.jsx("span",{className:i.label,children:t}),p.jsx("div",{className:i.progress.base,children:p.jsx("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${r}%`}})}),p.jsx("span",{className:i.progress.label,children:`${r}%`})]})},og=k.createContext(void 0);function fC(){const t=k.useContext(og);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const ig=({className:t,filled:e=!0,starIcon:r=g1,theme:n={},...o})=>{const{theme:i,size:s="sm"}=fC(),a=H(i.star,n);return p.jsx(r,{"data-testid":"flowbite-rating-star",className:F(a.sizes[s],a[e?"filled":"empty"],t),...o})},sg=({children:t,className:e,size:r="sm",theme:n={},...o})=>{const i=H(K().rating,n);return p.jsx(og.Provider,{value:{theme:i,size:r},children:p.jsx("div",{className:F(i.root.base,e),...o,children:t})})};sg.displayName="Rating",ig.displayName="Rating.Star",ng.displayName="Rating.Advanced",Object.assign(sg,{Star:ig,Advanced:ng});const hC=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(K().select,l);return p.jsxs("div",{className:F(u.base,r),children:[t&&p.jsx("span",{className:u.addon,children:t}),p.jsxs("div",{className:u.field.base,children:[i&&p.jsx("div",{className:u.field.icon.base,children:p.jsx(i,{className:u.field.icon.svg})}),p.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&&p.jsx(Vn,{color:n,children:o})]})]})});hC.displayName="Select";const gC=({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),g=Oh({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}=g,T=G5(m),{getFloatingProps:M,getReferenceProps:N}=Th({context:m,role:"tooltip",trigger:l,interactions:[T]});return k.useEffect(()=>{if(y.reference.current&&y.floating.current&&f)return Hf(y.reference.current,y.floating.current,x)},[f,y.floating,y.reference,x]),p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:y.setReference,className:a.target,"data-testid":"flowbite-tooltip-target",...N(),children:r}),p.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:[p.jsx("div",{className:a.content,children:o}),e&&p.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:g.placement})]:a.arrow.placement},children:" "})]})]})},za=({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(K().tooltip,a);return p.jsx(gC,{animation:t,arrow:e,content:o,placement:i,style:s,theme:d,trigger:l,className:n,...c,children:r})};za.displayName="Tooltip";const ag=k.createContext(void 0);function Qr(){const t=k.useContext(ag);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Ba=k.createContext(void 0);function pC(){const t=k.useContext(Ba);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const lg=({children:t,className:e,icon:r,label:n,chevronIcon:o=Bu,renderChevronIcon:i,open:s=!1,theme:a={},...l})=>{const c=k.useId(),[d,u]=k.useState(s),{theme:f,isCollapsed:h}=Qr(),g=H(f.collapse,a);k.useEffect(()=>u(s),[s]);const m=({children:b})=>p.jsx("li",{children:h&&!d?p.jsx(za,{content:n,placement:"right",children:b}):b});return p.jsxs(m,{children:[p.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:n,type:"button",className:F(g.button,e),...l,children:[r&&p.jsx(r,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:F(g.icon.base,g.icon.open[d?"on":"off"])}),h?p.jsx("span",{className:"sr-only",children:n}):p.jsxs(p.Fragment,{children:[p.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:g.label.base,children:n}),i?i(g,d):p.jsx(o,{"aria-hidden":!0,className:F(g.label.icon.base,g.label.icon.open[d?"on":"off"])})]})]}),p.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:g.list,children:p.jsx(Ba.Provider,{value:{isInsideCollapse:!0},children:t})})]})};lg.displayName="Sidebar.Collapse";const cg=({children:t,color:e="info",className:r,theme:n={},...o})=>{const{theme:i,isCollapsed:s}=Qr(),a=H(i.cta,n);return p.jsx("div",{"data-testid":"sidebar-cta",hidden:s,className:F(a.base,a.color[e],r),...o,children:t})};cg.displayName="Sidebar.CTA";const mC=({id:t,theme:e,isCollapsed:r,tooltipChildren:n,children:o,...i})=>p.jsx("li",{...i,children:r?p.jsx(za,{content:p.jsx(dg,{id:t,theme:e,children:n}),placement:"right",children:o}):o}),dg=({id:t,theme:e,children:r})=>p.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:F(e.content.base),children:r}),ug=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}=pC(),g=H(u.item,a);return p.jsx(mC,{theme:g,className:g.listItem,id:d,isCollapsed:f,tooltipChildren:r,children:p.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:F(g.base,t&&g.active,!f&&h&&((m=g.collapsed)==null?void 0:m.insideCollapse),n),...l,children:[o&&p.jsx(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:F((b=g.icon)==null?void 0:b.base,t&&((v=g.icon)==null?void 0:v.active))}),f&&!o&&p.jsx("span",{className:(y=g.collapsed)==null?void 0:y.noIcon,children:r.charAt(0).toLocaleUpperCase()??"?"}),!f&&p.jsx(dg,{id:d,theme:g,children:r}),!f&&i&&p.jsx(sf,{color:s,"data-testid":"flowbite-sidebar-label",hidden:f,className:g.label,children:i})]})})});ug.displayName="Sidebar.Item";const fg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.itemGroup,r);return p.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:F(i.base,e),...n,children:p.jsx(Ba.Provider,{value:{isInsideCollapse:!1},children:t})})};fg.displayName="Sidebar.ItemGroup";const hg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=Qr(),i=H(o.items,r);return p.jsx("div",{className:F(i.base,e),"data-testid":"flowbite-sidebar-items",...n,children:t})};hg.displayName="Sidebar.Items";const gg=({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 p.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${a}`,href:r,className:F(d.base,e),...s,children:[p.jsx("img",{alt:o,src:n,className:d.img}),p.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${a}`,children:t})]})};gg.displayName="Sidebar.Logo";const pg=({children:t,as:e="nav",collapseBehavior:r="collapse",collapsed:n=!1,theme:o={},className:i,...s})=>{const a=H(K().sidebar,o);return p.jsx(ag.Provider,{value:{theme:a,isCollapsed:n},children:p.jsx(e,{"aria-label":"Sidebar",hidden:n&&r==="hide",className:F(a.root.base,a.root.collapsed[n?"on":"off"],i),...s,children:p.jsx("div",{className:a.root.inner,children:t})})})};pg.displayName="Sidebar",Object.assign(pg,{Collapse:lg,CTA:cg,Item:ug,Items:hg,ItemGroup:fg,Logo:gg});const mg=k.createContext(void 0);function bC(){const t=k.useContext(mg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const bg=k.createContext(void 0);function $a(){const t=k.useContext(bg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const yg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=$a(),s=H(i.body,r);return p.jsx(mg.Provider,{value:{theme:s},children:p.jsx("tbody",{className:F(s.base,e),ref:o,...n,children:t})})});yg.displayName="Table.Body";const vg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=bC(),s=H(i.cell,r);return p.jsx("td",{className:F(s.base,e),ref:o,...n,children:t})});vg.displayName="Table.Cell";const xg=k.createContext(void 0);function yC(){const t=k.useContext(xg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const wg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=$a(),s=H(i.head,r);return p.jsx(xg.Provider,{value:{theme:s},children:p.jsx("thead",{className:F(s.base,e),ref:o,...n,children:p.jsx("tr",{children:t})})})});wg.displayName="Table.Head";const kg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i}=yC(),s=H(i.cell,r);return p.jsx("th",{className:F(s.base,e),ref:o,...n,children:t})});kg.displayName="Table.HeadCell";const Cg=k.forwardRef(({children:t,className:e,theme:r={},...n},o)=>{const{theme:i,hoverable:s,striped:a}=$a(),l=H(i.row,r);return p.jsx("tr",{ref:o,"data-testid":"table-row-element",className:F(l.base,a&&l.striped,s&&l.hovered,e),...n,children:t})});Cg.displayName="Table.Row";const _g=k.forwardRef(({children:t,className:e,striped:r,hoverable:n,theme:o={},...i},s)=>{const a=H(K().table,o);return p.jsx("div",{"data-testid":"table-element",className:F(a.root.wrapper),children:p.jsxs(bg.Provider,{value:{theme:a,striped:r,hoverable:n},children:[p.jsx("div",{className:F(a.root.shadow,e)}),p.jsx("table",{className:F(a.root.base,e),...i,ref:s,children:t})]})})});_g.displayName="Table";const en=Object.assign(_g,{Head:wg,Body:yg,Row:Cg,Cell:vg,HeadCell:kg}),Sg=({children:t,className:e})=>p.jsx("div",{className:e,children:t});Sg.displayName="Tabs.Item";const Eg=k.forwardRef(({children:t,className:e,onActiveTabChange:r,style:n="default",theme:o={},...i},s)=>{const a=H(K().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,g]=k.useState(-1),m=x=>{f(x),r&&r(x)},b=({target:x})=>{m(x),g(x)},v=({event:x,target:w})=>{x.key==="ArrowLeft"&&g(Math.max(0,h-1)),x.key==="ArrowRight"&&g(Math.min(c.length-1,h+1)),x.key==="Enter"&&(m(w),g(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})),p.jsxs("div",{className:F(a.base,e),children:[p.jsx("div",{"aria-label":"Tabs",role:"tablist",className:F(a.tablist.base,a.tablist.styles[n],e),...i,children:c.map((x,w)=>p.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&&p.jsx(x.icon,{className:a.tablist.tabitem.icon}),x.title]},w))}),p.jsx("div",{className:F(a.tabitemcontainer.base,_),children:c.map((x,w)=>p.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))})]})});Eg.displayName="Tabs",Object.assign(Eg,{Item:Sg});const vC=k.forwardRef(({className:t,color:e="gray",helperText:r,shadow:n,theme:o={},...i},s)=>{const a=H(K().textarea,o);return p.jsxs(p.Fragment,{children:[p.jsx("textarea",{ref:s,className:F(a.base,a.colors[e],a.withShadow[n?"on":"off"],t),...i}),r&&p.jsx(Vn,{color:e,children:r})]})});vC.displayName="Textarea";const Og=k.createContext(void 0);function ja(){const t=k.useContext(Og);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Tg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ja(),i=H(o.body,r);return p.jsx("div",{className:F(i.base,e),...n,children:t})},Ng=k.createContext(void 0);function Ha(){const t=k.useContext(Ng);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const Mg=k.createContext(void 0);function Pg(){const t=k.useContext(Mg);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Ag=({children:t,className:e,theme:r={},...n})=>{const{horizontal:o}=Ha(),{theme:i}=Pg(),s=H(i.content,r);return p.jsx(Og.Provider,{value:{theme:s},children:p.jsx("div",{"data-testid":"timeline-content",className:F(o&&s.root.base,e),...n,children:t})})},Dg=({children:t,className:e,theme:r={},...n})=>{const{theme:o,horizontal:i}=Ha(),s=H(o.item,r);return p.jsx(Mg.Provider,{value:{theme:s},children:p.jsx("li",{"data-testid":"timeline-item",className:F(i&&s.root.horizontal,!i&&s.root.vertical,e),...n,children:t})})},Ig=({children:t,className:e,icon:r,theme:n={},...o})=>{const{horizontal:i}=Ha(),{theme:s}=Pg(),a=H(s.point,n);return p.jsxs("div",{"data-testid":"timeline-point",className:F(i&&a.horizontal,!i&&a.vertical,e),...o,children:[t,r?p.jsx("span",{className:F(a.marker.icon.wrapper),children:p.jsx(r,{"aria-hidden":!0,className:F(a.marker.icon.base)})}):p.jsx("div",{className:F(i&&a.marker.base.horizontal,!i&&a.marker.base.vertical)}),i&&p.jsx("div",{className:F(a.line)})]})},Lg=({children:t,className:e,theme:r={},...n})=>{const{theme:o}=ja(),i=H(o.time,r);return p.jsx("time",{className:F(i.base,e),...n,children:t})},Fg=({as:t="h3",children:e,className:r,theme:n={},...o})=>{const{theme:i}=ja(),s=H(i.title,n);return p.jsx(t,{className:F(s.base,r),...o,children:e})},zg=({children:t,className:e,horizontal:r,theme:n={},...o})=>{const i=H(K().timeline,n);return p.jsx(Ng.Provider,{value:{theme:i,horizontal:r},children:p.jsx("ol",{"data-testid":"timeline-component",className:F(r&&i.root.direction.horizontal,!r&&i.root.direction.vertical,e),...o,children:t})})};zg.displayName="Timeline",Dg.displayName="Timeline.Item",Ig.displayName="Timeline.Point",Ag.displayName="Timeline.Content",Lg.displayName="Timeline.Time",Fg.displayName="Timeline.Title",Tg.displayName="Timeline.Body",Object.assign(zg,{Item:Dg,Point:Ig,Content:Ag,Time:Lg,Title:Fg,Body:Tg});const Bg=k.createContext(void 0);function xC(){const t=k.useContext(Bg);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const $g=({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}=xC(),f=H(s.toggle,r),h=g=>{if(e&&e(g),o){o();return}d(!l),setTimeout(()=>u(!c),a)};return p.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:F(f.base,t),...i,children:p.jsx(n,{"aria-hidden":!0,className:f.icon})})},wC={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},jg=({children:t,className:e,duration:r=300,theme:n={},...o})=>{const[i,s]=k.useState(!1),[a,l]=k.useState(!1),c=H(K().toast,n);return a?null:p.jsx(Bg.Provider,{value:{theme:c,duration:r,isClosed:i,isRemoved:a,setIsClosed:s,setIsRemoved:l},children:p.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:F(c.root.base,wC[r],i&&c.root.closed,e),...o,children:t})})};jg.displayName="Toast",$g.displayName="Toast.Toggle",Object.assign(jg,{Toggle:$g});const kC=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(K().toggleSwitch,l),h=()=>a(!t),g=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return p.jsxs(p.Fragment,{children:[s&&t?p.jsx("input",{ref:d,checked:t,hidden:!0,name:s,readOnly:!0,type:"checkbox",className:"sr-only"}):null,p.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:o,id:`${u}-flowbite-toggleswitch`,onClick:g,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:F(f.root.base,f.root.active[o?"off":"on"],e),...c,children:[p.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?p.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:i}):null]})]})});kC.displayName="ToggleSwitch";const CC=({currentPage:t,totalPages:e,onPageChange:r})=>p.jsxs("div",{className:"flex items-center justify-center gap-4",children:[p.jsx("button",{onClick:()=>r(t-1),disabled:t===1,className:"p-2 text-gray-500 hover:text-gray-700 disabled:opacity-50 disabled:cursor-not-allowed",children:p.jsx($u,{className:"w-5 h-5"})}),p.jsxs("span",{className:"text-sm text-gray-700",children:[t," de ",e]}),p.jsx("button",{onClick:()=>r(t+1),disabled:t===e,className:"p-2 text-gray-500 hover:text-gray-700 disabled:opacity-50 disabled:cursor-not-allowed",children:p.jsx(ju,{className:"w-5 h-5"})})]}),_C=({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 g=f[h.relation];return g!=null&&String(g).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 p.jsxs("div",{className:"w-full",children:[p.jsx("div",{className:"flex justify-between items-center mb-4",children:o&&p.jsx("h2",{className:"text-xl font-bold",children:o})}),p.jsxs("div",{className:"flex mb-4",children:[r&&p.jsx("div",{className:"w-1/2",children:p.jsx(ea,{rightIcon:h1,placeholder:"Buscar",value:i,onChange:f=>s(f.target.value)})}),u>1&&p.jsx("div",{className:"w-full flex justify-end",children:p.jsx(CC,{currentPage:a,totalPages:u,onPageChange:l})})]}),p.jsx("div",{className:"overflow-x-auto",children:p.jsxs(en,{striped:!0,children:[p.jsx(en.Head,{children:t.map((f,h)=>p.jsx(en.HeadCell,{children:f.header},h))}),p.jsx("hr",{}),p.jsx(en.Body,{className:"divide-y",children:d.map((f,h)=>p.jsx(en.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:t.map((g,m)=>{const b=f[g.relation];return p.jsx(en.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:g.cell?g.cell(f):b!=null?String(b):""},m)})},h))})]})})]})},Hg={"m-image-container":"layoutOutside-module__m-image-container__sCvFu","m-image":"layoutOutside-module__m-image__kZHyH"},Wg=no(),SC=()=>p.jsxs("div",{className:"mt-32",children:[p.jsx(Er,{classIm:"mx-auto",src:`${Wg}/public/assets/images/mathilde.png`,alt:"Logo Mathilde ads",width:400,height:250}),p.jsx("div",{className:Hg["m-image-container"],children:p.jsx(Er,{classIm:Hg["m-image"],src:`${Wg}/public/assets/images/background-mathilde.png`,alt:"Logo Mathilde ads",width:400,height:300})})]}),EC=({onOpenModal:t,checked:e,onChange:r,label:n,...o})=>{const i=()=>{e||t(),r(!1)};return p.jsx("div",{className:"mb-5",children:p.jsxs("label",{className:eo["checkbox-container"],children:[p.jsx("input",{type:"checkbox",...o,checked:e,onChange:i,required:!0}),p.jsx("span",{className:eo.checkmark}),n&&p.jsx("span",{children:n})]})})},Vg=({validations:t})=>{const e=({isValid:n})=>p.jsx("svg",{className:`w-3.5 h-3.5 me-2 ${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:p.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 p.jsx("ul",{className:"max-w-md text-sm mb-3 space-y-1 text-gray-500 list-inside dark:text-gray-400",children:r.map(({key:n,text:o})=>p.jsxs("li",{className:"flex items-center",children:[p.jsx(e,{isValid:t[n]}),o]},n))})},OC=()=>{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}},TC=({formik:t})=>{const{password:e,setPassword:r,confirmPassword:n,setConfirmPassword:o,validations:i}=OC();return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"block",children:[p.jsx(zi,{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&&p.jsx("div",{className:"text-red-500 text-sm my-2",children:String(t.errors.password)})]}),p.jsxs("div",{className:"block",children:[p.jsx(zi,{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&&p.jsx("div",{className:"text-red-500 text-sm my-2",children:String(t.errors.confirmPassword)})]}),p.jsx(Vg,{validations:i})]})},NC=({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)=>p.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 p.jsxs("li",{className:`
|
|
499
499
|
${s>0?"ml-7":""}
|
|
500
|
-
`,children:[p.jsxs("div",{className:"flex items-center gap-2 py-1",children:[p.jsxs("div",{className:"flex items-center gap-1 min-w-[48px]",children:[l&&p.jsx("button",{onClick:()=>n(a.id),className:"p-1 hover:bg-gray-100 rounded-full transition-transform duration-200",children:c?p.jsx(
|
|
500
|
+
`,children:[p.jsxs("div",{className:"flex items-center gap-2 py-1",children:[p.jsxs("div",{className:"flex items-center gap-1 min-w-[48px]",children:[l&&p.jsx("button",{onClick:()=>n(a.id),className:"p-1 hover:bg-gray-100 rounded-full transition-transform duration-200",children:c?p.jsx(np,{className:"text-gray-500 text-sm"}):p.jsx(rp,{className:"text-gray-500 text-sm"})}),!l&&p.jsx("div",{className:"w-[28px]"})," ",a.icon&&p.jsx(a.icon,{className:`text-lg ${a.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),p.jsx("a",{href:a.href,className:`
|
|
501
501
|
flex-grow transition-colors duration-200
|
|
502
502
|
${a.isActive?"text-blue-700 font-medium 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 p.jsx("nav",{id:"TableOfContents",children:o(t)})};re.ButtonFormat=
|
|
503
|
+
`,children:a.title})]}),l&&c&&o(a.subItems||[],s+1)]},a.id)})});return p.jsx("nav",{id:"TableOfContents",children:o(t)})};re.ButtonFormat=Ug,re.CardFormat=ti,re.CardIndicator=dp,re.Checkbox=qg,re.ImageFormat=Er,re.InputForm=Ya,re.LayoutOutside=SC,re.ModalFormat=Ar,re.MyDoughnutChart=Ib,re.PasswordInput=zi,re.PasswordValidationList=Vg,re.ProgressBar=Za,re.SelectForm=Ja,re.SidebarMth=c1,re.TableComponent=_C,re.TableOfContents=NC,re.TermsCheckbox=EC,re.ValidationPassword=TC,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})});
|