ui-mathilde-web 0.12.0 → 0.12.2
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/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +20 -18
- package/dist/ui-mathilde-web.js +6184 -6164
- package/dist/ui-mathilde-web.umd.cjs +48 -48
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
(function(ce,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],f):(ce=typeof globalThis<"u"?globalThis:ce||self,f(ce["ui-mathilde-web"]={},ce.jsxRuntime,ce.React,ce.ReactDOM))})(this,function(ce,f,_,vf){"use strict";var u6=Object.defineProperty;var f6=(ce,f,_)=>f in ce?u6(ce,f,{enumerable:!0,configurable:!0,writable:!0,value:_}):ce[f]=_;var $=(ce,f,_)=>f6(ce,typeof f!="symbol"?f+"":f,_);var Kl,_r;function xf(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const B=xf(_),kx=xf(vf),ko={"mth-btn-white":"button-module__mth-btn-white__nTgLW",mthBtnWhite:"button-module__mth-btn-white__nTgLW","mth-btn-blue":"button-module__mth-btn-blue__yw5Zv",mthBtnBlue:"button-module__mth-btn-blue__yw5Zv","mth-btn-gray":"button-module__mth-btn-gray__l3gnX",mthBtnGray:"button-module__mth-btn-gray__l3gnX","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","mth-btn-disabled":"button-module__mth-btn-disabled__sY2Vx",mthBtnDisabled:"button-module__mth-btn-disabled__sY2Vx"},tr=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:s,type:a,leftIcon:o,rightIcon:i,iconSize:l=20,classes:c})=>{const d=u=>{if(!u)return null;if(typeof u=="string")return f.jsx("img",{src:u,alt:"icon",width:l,height:l});const g=u;return f.jsx(g,{size:l})};return f.jsx("div",{className:`${n?ko["mth-btn-full"]:""}`,children:f.jsxs("button",{type:a,className:`${c} ${ko["mth-btn"]} ${ko[`mth-btn-${e}`]} ${n?ko["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:s,children:[d(o),t,d(i)]})})},na={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY","checkbox-container-terms":"checkbox-module__checkbox-container-terms__3htmx"},kf=({label:t,value:e,checked:n,onChange:r,isTerms:s=!1})=>f.jsxs("label",{className:`${na["checkbox-container"]} ${s?na["checkbox-container-terms"]:""}`,children:[f.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),f.jsx("span",{className:na.checkmark}),t&&f.jsx("span",{className:"ml-1",children:t})]}),Cr=({src:t,alt:e,width:n,height:r,classIm:s})=>f.jsx("img",{className:s,src:t,alt:e,width:n,height:r});var _f={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Sf=_.createContext&&_.createContext(_f),_x=["attr","size","title"];function Sx(t,e){if(t==null)return{};var n=Cx(t,e),r,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(s=0;s<a.length;s++)r=a[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Cx(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,a;for(a=0;a<r.length;a++)s=r[a],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function _o(){return _o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_o.apply(this,arguments)}function Cf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function So(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cf(Object(n),!0).forEach(function(r){Ox(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ox(t,e,n){return e=Dx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dx(t){var e=Mx(t,"string");return typeof e=="symbol"?e:String(e)}function Mx(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Of(t){return t&&t.map((e,n)=>_.createElement(e.tag,So({key:n},e.attr),Of(e.child)))}function Pe(t){return e=>_.createElement(Ex,_o({attr:So({},t.attr)},e),Of(t.child))}function Ex(t){var e=n=>{var{attr:r,size:s,title:a}=t,o=Sx(t,_x),i=s||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",_o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:So(So({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&_.createElement("title",null,a),t.children)};return Sf!==void 0?_.createElement(Sf.Consumer,null,n=>e(n)):e(_f)}function Tx(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 Px(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 Nx(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 Zl(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 jx(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 Ix(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 Df(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 Ax(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 Rx(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 Mf(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 Lx(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 Ef(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 Fx(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 Bx(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 Jl="-";function Wx(t){const e=Hx(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function s(o){const i=o.split(Jl);return i[0]===""&&i.length!==1&&i.shift(),Tf(i,e)||zx(o)}function a(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function Tf(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?Tf(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const a=t.join(Jl);return(o=e.validators.find(({validator:i})=>i(a)))==null?void 0:o.classGroupId}const Pf=/^\[(.+)\]$/;function zx(t){if(Pf.test(t)){const e=Pf.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function Hx(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Vx(Object.entries(t.classGroups),n).forEach(([a,o])=>{ql(o,r,a,e)}),r}function ql(t,e,n,r){t.forEach(s=>{if(typeof s=="string"){const a=s===""?e:Nf(e,s);a.classGroupId=n;return}if(typeof s=="function"){if(Yx(s)){ql(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,o])=>{ql(o,Nf(e,a),n,r)})})}function Nf(t,e){let n=t;return e.split(Jl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Yx(t){return t.isThemeGetter}function Vx(t,e){return e?t.map(([n,r])=>{const s=r.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,i])=>[e+o,i])):a);return[n,s]}):t}function Ux(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function s(a,o){n.set(a,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return s(a,o),o},set(a,o){n.has(a)?n.set(a,o):s(a,o)}}}const jf="!";function Xx(t){const e=t.separator,n=e.length===1,r=e[0],s=e.length;return function(o){const i=[];let l=0,c=0,d;for(let m=0;m<o.length;m++){let b=o[m];if(l===0){if(b===r&&(n||o.slice(m,m+s)===e)){i.push(o.slice(c,m)),c=m+s;continue}if(b==="/"){d=m;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),g=u.startsWith(jf),h=g?u.substring(1):u,p=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:p}}}function Gx(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function Kx(t){return{cache:Ux(t.cacheSize),splitModifiers:Xx(t),...Wx(t)}}const Qx=/\s+/;function Zx(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,a=new Set;return t.trim().split(Qx).map(o=>{const{modifiers:i,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=n(o);let u=r(d?c.substring(0,d):c),g=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:o};if(u=r(c),!u)return{isTailwindClass:!1,originalClassName:o};g=!1}const h=Gx(i).join(":");return{isTailwindClass:!0,modifierId:l?h+jf:h,classGroupId:u,originalClassName:o,hasPostfixModifier:g}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:i,classGroupId:l,hasPostfixModifier:c}=o,d=i+l;return a.has(d)?!1:(a.add(d),s(l,c).forEach(u=>a.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Jx(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=If(e))&&(r&&(r+=" "),r+=n);return r}function If(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=If(t[r]))&&(n&&(n+=" "),n+=e);return n}function qx(t,...e){let n,r,s,a=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=Kx(c),r=n.cache.get,s=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=Zx(l,n);return s(l,d),d}return function(){return a(Jx.apply(null,arguments))}}function Be(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const Af=/^\[(?:([a-z-]+):)?(.+)\]$/i,$x=/^\d+\/\d+$/,e2=new Set(["px","full","screen"]),t2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,n2=/\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$/,r2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,s2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,a2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Rn(t){return Or(t)||e2.has(t)||$x.test(t)}function nr(t){return cs(t,"length",h2)}function Or(t){return!!t&&!Number.isNaN(Number(t))}function Co(t){return cs(t,"number",Or)}function ra(t){return!!t&&Number.isInteger(Number(t))}function o2(t){return t.endsWith("%")&&Or(t.slice(0,-1))}function pe(t){return Af.test(t)}function rr(t){return t2.test(t)}const i2=new Set(["length","size","percentage"]);function l2(t){return cs(t,i2,Rf)}function c2(t){return cs(t,"position",Rf)}const d2=new Set(["image","url"]);function u2(t){return cs(t,d2,m2)}function f2(t){return cs(t,"",g2)}function sa(){return!0}function cs(t,e,n){const r=Af.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function h2(t){return n2.test(t)&&!r2.test(t)}function Rf(){return!1}function g2(t){return s2.test(t)}function m2(t){return a2.test(t)}function p2(){const t=Be("colors"),e=Be("spacing"),n=Be("blur"),r=Be("brightness"),s=Be("borderColor"),a=Be("borderRadius"),o=Be("borderSpacing"),i=Be("borderWidth"),l=Be("contrast"),c=Be("grayscale"),d=Be("hueRotate"),u=Be("invert"),g=Be("gap"),h=Be("gradientColorStops"),p=Be("gradientColorStopPositions"),m=Be("inset"),b=Be("margin"),y=Be("opacity"),v=Be("padding"),k=Be("saturate"),w=Be("scale"),x=Be("sepia"),S=Be("skew"),P=Be("space"),C=Be("translate"),N=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",pe,e],F=()=>[pe,e],E=()=>["",Rn,nr],D=()=>["auto",Or,pe],j=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],X=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",pe],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Or,Co],L=()=>[Or,pe];return{cacheSize:500,separator:":",theme:{colors:[sa],spacing:[Rn,nr],blur:["none","",rr,pe],brightness:V(),borderColor:[t],borderRadius:["none","","full",rr,pe],borderSpacing:F(),borderWidth:E(),contrast:V(),grayscale:ee(),hueRotate:L(),invert:ee(),gap:F(),gradientColorStops:[t],gradientColorStopPositions:[o2,nr],inset:Y(),margin:Y(),opacity:V(),padding:F(),saturate:V(),scale:V(),sepia:ee(),skew:L(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[rr]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:[...j(),pe]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],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",ra,pe]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",ra,pe]}],"grid-cols":[{"grid-cols":[sa]}],"col-start-end":[{col:["auto",{span:["full",ra,pe]},pe]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[sa]}],"row-start-end":[{row:["auto",{span:[ra,pe]},pe]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],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":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,e]}],"min-w":[{"min-w":[pe,e,"min","max","fit"]}],"max-w":[{"max-w":[pe,e,"none","full","min","max","fit","prose",{screen:[rr]},rr]}],h:[{h:[pe,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,e,"auto","min","max","fit"]}],"font-size":[{text:["base",rr,nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Co]}],"font-family":[{font:[sa]}],"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",pe]}],"line-clamp":[{"line-clamp":["none",Or,Co]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rn,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rn,nr]}],"underline-offset":[{"underline-offset":["auto",Rn,pe]}],"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:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe]}],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",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...j(),c2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",l2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},u2]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:M()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[Rn,pe]}],"outline-w":[{outline:[Rn,nr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Rn,nr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",rr,f2]}],"shadow-color":[{shadow:[sa]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":H()}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",rr,pe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[k]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ra,pe]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"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",pe]}],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",pe]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",pe]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Rn,nr,Co]}],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 Q=qx(p2);function Dr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function aa(t){if(!Dr(t))return t;const e={};for(const n in t)e[n]=aa(t[n]);return e}function re(t,e){if(Dr(e)&&Object.keys(e).length===0)return aa({...t,...e});const n={...t,...e};if(Dr(e)&&Dr(t))for(const r in e)Dr(e[r])&&r in t&&Dr(t[r])?n[r]=re(t[r],e[r]):n[r]=Dr(e[r])?aa(e[r]):e[r];return n}function v6(t){return t}const b2={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"}}},y2={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"},w2={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"}},v2={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"}}},x2={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},k2={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"}},_2={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"}},S2={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"}},C2={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"}}},O2={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"}},D2={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"}}},M2={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"}},E2={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"}}}}},T2={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"},P2={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"}}}},N2={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"}},j2={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"}},I2={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"}}},A2={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"}},R2={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"}}},L2={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"}},F2={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"}}},B2={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"}},W2={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"}},z2={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"}}},H2={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"}},Y2={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"}},V2={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"}},U2={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"}}}},X2={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"}}},G2={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"}},K2={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"}}}},Q2={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"}},Z2={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"}},J2={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"}},q2={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"},$2={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:""}},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"},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:""}}}},tk={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:""}}},nk={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"}},rk={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"}}},sk={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"},ak={theme:aa({accordion:b2,alert:y2,avatar:w2,badge:v2,blockquote:x2,breadcrumb:k2,button:_2,buttonGroup:S2,card:C2,carousel:O2,checkbox:D2,datepicker:E2,darkThemeToggle:M2,dropdown:T2,fileInput:P2,floatingLabel:N2,footer:j2,helperText:I2,kbd:A2,label:R2,listGroup:F2,list:L2,modal:B2,navbar:W2,pagination:z2,popover:H2,progress:Y2,radio:V2,rangeSlider:U2,rating:X2,ratingAdvanced:G2,select:K2,textInput:ek,textarea:$2,toggleSwitch:rk,sidebar:Q2,spinner:Z2,table:J2,tabs:q2,timeline:tk,toast:nk,tooltip:sk})};function ge(){return aa(ak.theme)}const Lf=_.createContext(void 0);function Ff(){const t=_.useContext(Lf);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Bf=({children:t,className:e,theme:n={},...r})=>{const{isOpen:s}=Ff(),a=re(ge().accordion.content,n);return f.jsx("div",{className:Q(a.base,e),"data-testid":"flowbite-accordion-content",hidden:!s,...r,children:t})},Wf=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,s]=_.useState(e.isOpen),a=n?{...e,isOpen:r,setOpen:()=>s(!r)}:e;return f.jsx(Lf.Provider,{value:a,children:t})},zf=({as:t="h2",children:e,className:n,theme:r={},...s})=>{const{arrowIcon:a,flush:o,isOpen:i,setOpen:l}=Ff(),c=()=>typeof l<"u"&&l(),d=re(ge().accordion.title,r);return f.jsxs("button",{className:Q(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...s,children:[f.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),a&&f.jsx(a,{"aria-hidden":!0,className:Q(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},Hf=({alwaysOpen:t=!1,arrowIcon:e=Zl,children:n,flush:r=!1,collapseAll:s=!1,className:a,theme:o={},...i})=>{const[l,c]=_.useState(s?-1:0),d=_.useMemo(()=>_.Children.map(n,(g,h)=>_.cloneElement(g,{alwaysOpen:t,arrowIcon:e,flush:r,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,n,r,l]),u=re(ge().accordion.root,o);return f.jsx("div",{className:Q(u.base,u.flush[r?"on":"off"],a),"data-testid":"flowbite-accordion",...i,children:d})};Hf.displayName="Accordion",Wf.displayName="Accordion.Panel",zf.displayName="Accordion.Title",Bf.displayName="Accordion.Content",Object.assign(Hf,{Panel:Wf,Title:zf,Content:Bf});const Yf=({children:t,className:e,theme:n={},...r})=>{const s=re(ge().avatar.group,n);return f.jsx("div",{"data-testid":"avatar-group-element",className:Q(s.base,e),...r,children:t})};Yf.displayName="Avatar.Group";const Vf=({className:t,href:e,theme:n={},total:r,...s})=>{const a=re(ge().avatar.groupCounter,n);return f.jsxs("a",{href:e,className:Q(a.base,t),...s,children:["+",r]})};Vf.displayName="Avatar.GroupCounter";const Uf=({alt:t="",bordered:e=!1,children:n,className:r,color:s="light",img:a,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:g={},...h})=>{const p=re(ge().avatar,g),m=Q(p.root.img.base,e&&p.root.bordered,e&&p.root.color[s],i&&p.root.rounded,c&&p.root.stacked,p.root.img.on,p.root.size[l]),b={className:Q(m,p.root.img.on),"data-testid":"flowbite-avatar-img"};return f.jsxs("div",{className:Q(p.root.base,r),"data-testid":"flowbite-avatar",...h,children:[f.jsxs("div",{className:"relative",children:[a?typeof a=="string"?f.jsx("img",{alt:t,src:a,...b}):a({alt:t,...b}):o?f.jsx("div",{className:Q(p.root.img.off,p.root.initials.base,c&&p.root.stacked,e&&p.root.bordered,e&&p.root.color[s],p.root.size[l],i&&p.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:f.jsx("span",{className:Q(p.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):f.jsx("div",{className:Q(m,p.root.img.off),"data-testid":"flowbite-avatar-img",children:f.jsx("svg",{className:p.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:f.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&&f.jsx("span",{"data-testid":"flowbite-avatar-status",className:Q(p.root.status.base,p.root.status[d],p.root.statusPosition[u])})]}),n&&f.jsx("div",{children:n})]})};Uf.displayName="Avatar",Object.assign(Uf,{Group:Yf,Counter:Vf});const Xf=({children:t,color:e="info",href:n,icon:r,size:s="xs",className:a,theme:o={},...i})=>{const l=re(ge().badge,o),c=()=>f.jsxs("span",{className:Q(l.root.base,l.root.color[e],l.root.size[s],l.icon[r?"on":"off"],a),"data-testid":"flowbite-badge",...i,children:[r&&f.jsx(r,{"aria-hidden":!0,className:l.icon.size[s],"data-testid":"flowbite-badge-icon"}),t&&f.jsx("span",{children:t})]});return n?f.jsx("a",{className:l.root.href,href:n,children:f.jsx(c,{})}):f.jsx(c,{})};Xf.displayName="Badge";const Gf=({className:t,color:e="info",light:n,size:r="md",theme:s={},...a})=>{const o=re(ge().spinner,s);return f.jsx("span",{role:"status",...a,children:f.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:Q(o.base,o.color[e],o.light[n?"on":"off"].base,o.light[n?"on":"off"].color[e],o.size[r],t),children:[f.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"}),f.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"})]})})};Gf.displayName="Spinner";const $l=_.forwardRef(({children:t,as:e,href:n,type:r="button",...s},a)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:a,href:n,type:r,...s},t)});$l.displayName="ButtonBaseComponent";const Kf=(t,e,n)=>_.Children.map(t,(r,s)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:Kf(r.props.children,e,n),positionInGroup:Qf(s,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:Qf(s,_.Children.count(t))}):r),Qf=(t,e)=>t===0?"start":t===e-1?"end":"middle",Zf=({children:t,className:e,outline:n,pill:r,theme:s={},...a})=>{const o=_.useMemo(()=>Kf(t,n,r),[t,n,r]),i=re(ge().buttonGroup,s);return f.jsx("div",{className:Q(i.base,e),role:"group",...a,children:o})};Zf.displayName="Button.Group";const Jf=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:s,isProcessing:a=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:g=!1,positionInGroup:h="none",size:p="md",theme:m={},...b},y)=>{const{buttonGroup:v,button:k}=ge(),w=re(k,m),x=b;return f.jsx($l,{ref:y,disabled:r,className:Q(w.base,r&&w.disabled,!l&&!c&&w.color[n],l&&!c&&w.gradientDuoTone[l],!l&&c&&w.gradient[c],u&&(w.outline.color[n]??w.outline.color.default),w.pill[g?"on":"off"],s&&w.fullSized,v.position[h],e),...x,children:f.jsx("span",{className:Q(w.inner.base,w.outline[u?"on":"off"],w.outline.pill[u&&g?"on":"off"],w.size[p],u&&!w.outline.color[n]&&w.inner.outline,a&&w.isProcessing,a&&w.inner.isProcessingPadding[p],w.inner.position[h]),children:f.jsxs(f.Fragment,{children:[a&&f.jsx("span",{className:Q(w.spinnerSlot,w.spinnerLeftPosition[p]),children:i||f.jsx(Gf,{size:p})}),typeof t<"u"?t:f.jsx("span",{"data-testid":"flowbite-button-label",className:Q(w.label),children:a?o:d})]})})})});Jf.displayName="Button";const qf=Object.assign(Jf,{Group:Zf}),$f=({children:t,...e})=>{const n=r=>{const a=r.target.closest('[role="banner"]');a==null||a.remove()};return f.jsx(qf,{onClick:n,...e,children:t})};$f.displayName="Banner.CollapseButton";const eh=({children:t,...e})=>f.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});eh.displayName="Banner",Object.assign(eh,{CollapseButton:$f});const th=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:s={},...a},o)=>{const i=typeof n<"u",l=i?"a":"span",c=re(ge().breadcrumb.item,s);return f.jsxs("li",{className:Q(c.base,e),...a,children:[f.jsx(Ef,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),f.jsxs(l,{ref:o,className:c.href[i?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[r&&f.jsx(r,{"aria-hidden":!0,className:c.icon}),t]})]})});th.displayName="Breadcrumb.Item";const nh=({children:t,className:e,theme:n={},...r})=>{const s=re(ge().breadcrumb.root,n);return f.jsx("nav",{"aria-label":"Breadcrumb",className:Q(s.base,e),...r,children:f.jsx("ol",{className:s.list,children:t})})};nh.displayName="Breadcrumb",Object.assign(nh,{Item:th});var ok=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function sh(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var ah={exports:{}};/*!
|
|
1
|
+
(function(ce,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],f):(ce=typeof globalThis<"u"?globalThis:ce||self,f(ce["ui-mathilde-web"]={},ce.jsxRuntime,ce.React,ce.ReactDOM))})(this,function(ce,f,_,vf){"use strict";var mI=Object.defineProperty;var pI=(ce,f,_)=>f in ce?mI(ce,f,{enumerable:!0,configurable:!0,writable:!0,value:_}):ce[f]=_;var $=(ce,f,_)=>pI(ce,typeof f!="symbol"?f+"":f,_);var Kl,_r;function xf(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const W=xf(_),_x=xf(vf),ko={"mth-btn-white":"button-module__mth-btn-white__nTgLW",mthBtnWhite:"button-module__mth-btn-white__nTgLW","mth-btn-blue":"button-module__mth-btn-blue__yw5Zv",mthBtnBlue:"button-module__mth-btn-blue__yw5Zv","mth-btn-gray":"button-module__mth-btn-gray__l3gnX",mthBtnGray:"button-module__mth-btn-gray__l3gnX","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","mth-btn-disabled":"button-module__mth-btn-disabled__sY2Vx",mthBtnDisabled:"button-module__mth-btn-disabled__sY2Vx"},tr=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:s,type:a,leftIcon:o,rightIcon:i,iconSize:l=20,classes:c})=>{const d=u=>{if(!u)return null;if(typeof u=="string")return f.jsx("img",{src:u,alt:"icon",width:l,height:l});const h=u;return f.jsx(h,{size:l})};return f.jsx("div",{className:`${n?ko["mth-btn-full"]:""}`,children:f.jsxs("button",{type:a,className:`${c} ${ko["mth-btn"]} ${ko[`mth-btn-${e}`]} ${n?ko["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:s,children:[d(o),t,d(i)]})})},na={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY","checkbox-container-terms":"checkbox-module__checkbox-container-terms__3htmx"},kf="data:image/svg+xml,%3csvg%20width='9'%20height='20'%20viewBox='0%200%209%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.80098%200.00460222C6.89566%20-0.00948364%207.2489%200.0124018%207.34758%200.0216631C7.89985%200.0790801%208.44946%200.167825%208.99428%200.287574C9.00696%200.532932%208.99461%200.953748%208.9945%201.21644C8.99239%201.90033%208.9935%202.58424%208.99762%203.26812C8.87768%203.26189%208.75753%203.25957%208.63748%203.26122C8.37392%203.26639%208.11046%203.27398%207.84701%203.28399C7.30374%203.30519%206.88887%203.3054%206.47277%203.80218C5.94553%204.43173%205.97657%205.60976%205.98469%206.43866L5.99237%207.47108C6.95117%207.45279%207.92555%207.47908%208.88814%207.46562C8.85176%207.71248%208.82428%208.00381%208.79535%208.25432L8.58675%2010.0615C8.55059%2010.3752%208.51822%2010.7191%208.47316%2011.0284C7.89218%2011.0139%207.30452%2011.0283%206.72288%2011.0232C6.4859%2011.021%206.22701%2011.0323%205.99237%2011.0211C5.98058%2011.906%205.9887%2012.8144%205.98859%2013.7011L5.99159%2019.9974C5.73025%2019.9937%205.4688%2019.9922%205.20746%2019.9933L3.55748%2019.993C3.28224%2019.993%202.97177%2019.9858%202.69898%2020C2.69084%2019.6788%202.6983%2019.3081%202.69846%2018.9839L2.69911%2017.0155L2.69947%2011.014L0.00437035%2011.0164C-0.00109232%2010.8683%200.00226816%2010.7033%200.00382575%2010.5545C0.0146176%209.52716%20-0.0120172%208.49236%200.00716329%207.46585C0.891304%207.48598%201.81851%207.46909%202.70635%207.47039C2.71799%206.31042%202.6636%205.05722%202.7589%203.90624C2.83341%203.00643%203.24125%201.96536%203.75953%201.2968C4.54437%200.284379%205.68519%200.0783687%206.80098%200.00460222Z'%20fill='%230081FE'/%3e%3c/svg%3e",Cx="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.09399%205.51008C2.23661%203.21794%204.41144%201.37841%206.87066%200.550887C9.41917%20-0.313002%2012.2132%20-0.155989%2014.6439%200.987722C15.5156%201.40929%2016.3192%201.95415%2017.0289%202.60478L14.1498%205.36033C13.0027%204.30702%2011.5497%203.82492%209.98765%203.87341C8.37409%203.93323%206.85112%204.61878%205.75448%205.77892C5.19919%206.36078%204.61912%207.25233%204.39099%208.02235C4.20347%207.89266%203.98981%207.72033%203.80505%207.57959L2.73326%206.76348L1.68832%205.96809C1.50114%205.82557%201.27168%205.65977%201.09399%205.51008Z'%20fill='%23EC4237'/%3e%3cpath%20d='M4.40188%2011.984C4.5208%2012.3065%204.61725%2012.5495%204.77827%2012.8563C5.40001%2014.0446%206.40456%2014.9993%207.63643%2015.5723C9.12902%2016.2601%2010.9489%2016.3134%2012.4937%2015.7654C12.9361%2015.6089%2013.356%2015.3969%2013.7428%2015.1349L15.985%2016.8362L16.6404%2017.3339C16.707%2017.3842%2016.9006%2017.5372%2016.9636%2017.5734C16.3311%2018.1501%2015.6147%2018.6317%2014.8378%2019.0026C12.4434%2020.1577%209.43096%2020.3055%206.90885%2019.4669C4.38041%2018.6164%202.29303%2016.83%201.09424%2014.4906C1.73155%2013.9851%202.43859%2013.4678%203.09003%2012.9739L3.92348%2012.342C4.0708%2012.23%204.25022%2012.0858%204.40188%2011.984Z'%20fill='%2333A953'/%3e%3cpath%20d='M10.2041%208.18016L19.7876%208.17863C19.9466%208.96912%2020.0109%209.58337%2019.9985%2010.3961C19.9678%2012.402%2019.4539%2014.3597%2018.3064%2016.0358C17.9218%2016.598%2017.4712%2017.114%2016.9636%2017.5734C16.9007%2017.5371%2016.7071%2017.3842%2016.6405%2017.3338L15.9851%2016.8361L13.7428%2015.1348C14.8808%2014.3015%2015.597%2013.2765%2015.8328%2011.8901L10.207%2011.8896C10.2064%2010.6601%2010.2191%209.408%2010.2041%208.18016Z'%20fill='%234185F4'/%3e%3cpath%20d='M1.09403%205.51006C1.27172%205.65974%201.50117%205.82554%201.68835%205.96807L2.7333%206.76346L3.80508%207.57956C3.98984%207.7203%204.20351%207.89263%204.39103%208.02232C3.95144%209.44046%203.9438%2010.5704%204.40195%2011.9839C4.25029%2012.0858%204.07088%2012.23%203.92356%2012.3419L3.09011%2012.9739C2.43867%2013.4678%201.73163%2013.985%201.09432%2014.4906C0.907283%2014.1619%200.677262%2013.5945%200.554916%2013.2392C-0.345695%2010.6243%20-0.138903%207.97509%201.09403%205.51006Z'%20fill='%23FCBC04'/%3e%3c/svg%3e",Sx="data:image/svg+xml,%3csvg%20width='17'%20height='20'%20viewBox='0%200%2017%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.54606%200L11.7538%201.08476e-05C11.7585%200.302999%2011.7853%200.515392%2011.8243%200.816513L11.8295%200.818423L12.5179%200.817175C12.5318%201.5975%2012.7323%202.45976%2013.075%203.16042C13.133%203.27968%2013.1964%203.39615%2013.265%203.50945C13.3024%203.57086%2013.3951%203.7119%2013.4196%203.7688L13.5112%203.86997C13.5923%203.90112%2013.718%204.00178%2013.7947%204.05343C13.8874%204.11484%2013.9828%204.17194%2014.0807%204.22455C14.7283%204.56998%2015.5035%204.75824%2016.234%204.79246L16.2328%205.51775C16.4588%205.56109%2016.7694%205.59786%2016.9998%205.60889L17%208.87386C16.5679%208.86883%2016.1159%208.80859%2015.6928%208.72261C14.5355%208.4874%2013.4116%208.0615%2012.5109%207.27421L12.5091%2011.5099L12.5082%2013.1769C12.5078%2013.5516%2012.5163%2013.9334%2012.4872%2014.3071C12.367%2015.848%2011.7882%2017.3416%2010.6993%2018.4473C9.67459%2019.4878%208.29079%2019.9959%206.84864%2020C6.26626%2020.0017%205.68036%2019.9083%205.11457%2019.7753C4.15035%2019.4968%203.14304%2018.9313%202.43739%2018.2081C2.3356%2018.1038%202.08845%2017.8496%202.02211%2017.7306C1.97276%2017.6771%201.93773%2017.6376%201.89304%2017.5801C1.7388%2017.5071%201.31614%2016.9998%201.20084%2016.8502C-0.808848%2014.2425%20-0.212094%2010.138%202.36438%208.13878C3.42146%207.31854%204.71893%206.9538%206.04419%207.01813C6.30746%207.03092%206.55747%207.06041%206.81907%207.09539L6.81772%207.83268L6.81942%207.83738C7.06724%207.84131%207.33674%207.87823%207.58368%207.91073L7.5845%2011.4141C6.68729%2011.3087%205.82213%2011.3546%205.0721%2011.9447C4.52907%2012.372%204.21045%2013.0068%204.13074%2013.6918C4.07712%2014.1439%204.12452%2014.6026%204.26951%2015.0339C4.31097%2015.1577%204.36097%2015.2644%204.40579%2015.3833L4.43328%2015.4152C4.49759%2015.4373%204.69879%2015.5479%204.78632%2015.5858C5.13512%2015.7345%205.51036%2015.8099%205.88903%2015.8071C7.02474%2015.8055%208.19514%2015.0403%208.43816%2013.874C8.58833%2013.1535%208.548%2012.3402%208.548%2011.6014L8.5481%208.99532L8.54606%200Z'%20fill='black'/%3e%3cpath%20d='M16.2329%205.51776C16.4589%205.5611%2016.7695%205.59787%2016.9999%205.6089L17.0001%208.87387C16.568%208.86883%2016.116%208.8086%2015.6929%208.72262C14.5356%208.48741%2013.4117%208.0615%2012.511%207.27422L12.5092%2011.5099L12.5083%2013.1769C12.5079%2013.5516%2012.5164%2013.9334%2012.4873%2014.3071C12.3671%2015.848%2011.7883%2017.3416%2010.6994%2018.4473C9.6747%2019.4878%208.2909%2019.9959%206.84875%2020C6.26637%2020.0017%205.68047%2019.9083%205.11467%2019.7753C4.15046%2019.4968%203.14314%2018.9313%202.4375%2018.2081C2.3357%2018.1038%202.08856%2017.8496%202.02222%2017.7306C2.09215%2017.7566%202.35615%2017.9822%202.44598%2018.0436C2.55602%2018.119%202.66055%2018.1886%202.77891%2018.2611C3.77684%2018.8753%204.92568%2019.1943%206.09455%2019.182C7.53701%2019.1804%208.92428%2018.6598%209.9447%2017.6176C11.0107%2016.5289%2011.5843%2015.0679%2011.7157%2013.5551C11.7514%2013.144%2011.7428%2012.726%2011.743%2012.3137L11.7435%2010.6621L11.7447%206.45041C11.7471%206.45282%2011.7494%206.45527%2011.7519%206.45763C12.7443%207.4232%2014.8874%208.06547%2016.2373%208.05633L16.2329%205.51776Z'%20fill='%23FE004E'/%3e%3cpath%20d='M8.54613%200L11.7539%201.08476e-05C11.7585%200.302999%2011.7853%200.515392%2011.8244%200.816513L9.31527%200.81775L9.31516%209.95111L9.31538%2012.4456C9.31548%2013.2114%209.34733%2013.9678%209.19802%2014.7224C9.11099%2015.1622%208.86046%2015.5196%208.557%2015.8411C7.48553%2016.9662%205.40467%2016.8775%204.51758%2015.5674C4.48779%2015.5233%204.45243%2015.4651%204.43335%2015.4152C4.49767%2015.4373%204.69887%2015.5479%204.78639%2015.5858C5.13519%2015.7345%205.51043%2015.8099%205.8891%2015.8071C7.02481%2015.8055%208.19521%2015.0403%208.43824%2013.874C8.58841%2013.1535%208.54807%2012.3402%208.54807%2011.6014L8.54818%208.99532L8.54613%200Z'%20fill='%2300F8EE'/%3e%3cpath%20d='M1.89304%2017.5801C1.7388%2017.5072%201.31614%2016.9999%201.20084%2016.8502C-0.808848%2014.2425%20-0.212094%2010.138%202.36438%208.13881C3.42146%207.31856%204.71893%206.95383%206.04419%207.01816C6.30746%207.03094%206.55747%207.06043%206.81907%207.09541L6.81772%207.8327C6.5629%207.82847%206.32528%207.8267%206.07124%207.84358C2.92786%208.05242%200.812654%2010.8341%200.764042%2013.9105C0.743959%2014.9428%200.982639%2015.9635%201.45793%2016.8778C1.5342%2017.0246%201.61817%2017.1673%201.70949%2017.3052C1.75359%2017.3716%201.86268%2017.5188%201.89304%2017.5801Z'%20fill='%2300F8EE'/%3e%3cpath%20d='M6.8194%207.83733C7.06723%207.84126%207.33673%207.87818%207.58367%207.91068L7.58448%2011.414C6.68727%2011.3086%205.82212%2011.3545%205.07208%2011.9446C4.52905%2012.3719%204.21044%2013.0068%204.13073%2013.6917C4.0771%2014.1439%204.12451%2014.6026%204.26949%2015.0339C4.31095%2015.1576%204.36095%2015.2643%204.40578%2015.3833C4.23829%2015.3034%203.95175%2015.0307%203.84386%2014.8812C3.03876%2013.7647%203.206%2011.9553%204.32652%2011.1107C5.07587%2010.5459%205.94%2010.4811%206.81917%2010.5987C6.8186%209.68848%206.80678%208.74502%206.8194%207.83733Z'%20fill='%23FE004E'/%3e%3cpath%20d='M11.8293%200.818417L12.5178%200.817169C12.5317%201.5975%2012.7322%202.45976%2013.0749%203.16042C13.1329%203.27968%2013.1963%203.39615%2013.2649%203.50945C13.3023%203.57086%2013.3949%203.7119%2013.4195%203.76879C13.3312%203.72538%2013.1835%203.56673%2013.1101%203.49258C12.4015%202.7759%2011.9972%201.80556%2011.8293%200.818417Z'%20fill='%23FE004E'/%3e%3cpath%20d='M13.5112%203.86995C13.5923%203.9011%2013.718%204.00176%2013.7947%204.05341C13.8874%204.11482%2013.9828%204.17192%2014.0807%204.22453C14.7283%204.56996%2015.5035%204.75822%2016.234%204.79244L16.2328%205.51773C15.9304%205.45153%2015.7054%205.40127%2015.4094%205.29239C14.7764%205.06584%2014.2087%204.68479%2013.7571%204.1832C13.6936%204.11308%2013.5481%203.94976%2013.5112%203.86995Z'%20fill='%2300F8EE'/%3e%3c/svg%3e",Ox="data:image/svg+xml,%3csvg%20width='21'%20height='20'%20viewBox='0%200%2021%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.83531%2019.9992H2.78517C2.0465%2019.9992%201.33809%2019.7109%200.815765%2019.1977C0.293444%2018.6845%200%2017.9884%200%2017.2626V2.73662C0%202.01082%200.293444%201.31476%200.815765%200.801544C1.33809%200.288328%202.0465%200%202.78517%200H2.83531C3.57399%200%204.2824%200.288328%204.80472%200.801544C5.32705%201.31476%205.62049%202.01082%205.62049%202.73662V17.2954C5.61169%2018.0155%205.31437%2018.7032%204.793%2019.2093C4.27163%2019.7155%203.56823%2019.9993%202.83531%2019.9992V19.9992Z'%20fill='url(%23paint0_linear_5108_16331)'/%3e%3cpath%20d='M18.2149%2019.9992H18.1592C17.4205%2019.9992%2016.7121%2019.7109%2016.1898%2019.1977C15.6675%2018.6845%2015.374%2017.9884%2015.374%2017.2626V2.73662C15.374%202.01082%2015.6675%201.31476%2016.1898%200.801544C16.7121%200.288328%2017.4205%200%2018.1592%200H18.2149C18.9536%200%2019.662%200.288328%2020.1843%200.801544C20.7066%201.31476%2021.0001%202.01082%2021.0001%202.73662V17.2954C20.9913%2018.0155%2020.694%2018.7032%2020.1726%2019.2093C19.6512%2019.7155%2018.9478%2019.9993%2018.2149%2019.9992V19.9992Z'%20fill='url(%23paint1_linear_5108_16331)'/%3e%3cpath%20d='M2.52856%2019.9882V6.2066L5.6034%2010.8643V17.3556C5.58617%2017.7298%205.49186%2018.0968%205.32615%2018.4341C5.16045%2018.7715%204.92682%2019.0724%204.63937%2019.3185C4.35193%2019.5646%204.01665%2019.7508%203.65384%2019.866C3.29102%2019.9811%202.90821%2020.0227%202.52856%2019.9882V19.9882Z'%20fill='url(%23paint2_linear_5108_16331)'/%3e%3cpath%20d='M18.4659%2019.9883V4.04472L15.3855%2010.8644V17.3556C15.4035%2017.7301%2015.4984%2018.0971%2015.6647%2018.4345C15.831%2018.772%2016.0652%2019.0728%2016.3531%2019.3188C16.641%2019.5648%2016.9766%2019.751%2017.3397%2019.8661C17.7029%2019.9811%2018.086%2020.0227%2018.4659%2019.9883V19.9883Z'%20fill='url(%23paint3_linear_5108_16331)'/%3e%3cpath%20d='M19.8583%200.530839L19.7748%200.476103C19.1691%200.088282%2018.4364%20-0.0595888%2017.7242%200.0622863C17.012%200.184161%2016.3733%200.566731%2015.9368%201.1329L10.4556%208.70786L5.05234%201.12196C4.62812%200.564713%204.00378%200.187189%203.30633%200.0661948C2.60888%20-0.0547991%201.8907%200.0898248%201.29792%200.470642L1.15866%200.569156C0.800659%200.81266%200.510908%201.14091%200.316185%201.52357C0.121462%201.90622%200.0280514%202.33094%200.0445952%202.75845C0.151696%203.55692%200.505558%204.30389%201.0584%204.89849C1.44276%205.39656%201.8104%205.90556%202.17247%206.41457L4.59%209.74778L7.29719%2013.4696C7.93778%2014.3398%208.59509%2015.4728%209.70359%2015.8067C11.6699%2016.3868%2012.8285%2014.4657%2013.7866%2013.1521C15.2572%2011.1216%2016.7668%209.12383%2018.2429%207.13157C18.6941%206.52951%2019.1509%205.92746%2019.5965%205.32541C20.0703%204.79376%2020.4677%204.20077%2020.7774%203.56302C20.986%203.02877%2021.009%202.44174%2020.8427%201.89334C20.6765%201.34493%2020.3304%200.865906%2019.8583%200.530839V0.530839Z'%20fill='url(%23paint4_linear_5108_16331)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_5108_16331'%20x1='2.57907'%20y1='28.4444'%20x2='2.86948'%20y2='4.26353'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2300BBFF'/%3e%3cstop%20offset='0.06'%20stop-color='%2309ACFF'/%3e%3cstop%20offset='0.31'%20stop-color='%232C6FFF'/%3e%3cstop%20offset='0.53'%20stop-color='%23483FFF'/%3e%3cstop%20offset='0.73'%20stop-color='%235C1DFF'/%3e%3cstop%20offset='0.89'%20stop-color='%236908FF'/%3e%3cstop%20offset='1'%20stop-color='%236D00FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_5108_16331'%20x1='18.1091'%20y1='16.9342'%20x2='17.7703'%20y2='49.3195'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2300BBFF'/%3e%3cstop%20offset='0.04'%20stop-color='%2309ACFF'/%3e%3cstop%20offset='0.23'%20stop-color='%232C6FFF'/%3e%3cstop%20offset='0.41'%20stop-color='%23483FFF'/%3e%3cstop%20offset='0.56'%20stop-color='%235C1DFF'/%3e%3cstop%20offset='0.68'%20stop-color='%236908FF'/%3e%3cstop%20offset='0.76'%20stop-color='%236D00FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_5108_16331'%20x1='-5.01369'%20y1='5.47318'%20x2='4.7551'%20y2='15.7047'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%237A1CFF'/%3e%3cstop%20offset='1'%20stop-color='%237A1CFF'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_5108_16331'%20x1='16.9118'%20y1='4.78908'%20x2='16.9709'%20y2='32.21'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2300BBFF'%20stop-opacity='0.8'/%3e%3cstop%20offset='0.01'%20stop-color='%2303B7FF'%20stop-opacity='0.8'/%3e%3cstop%20offset='0.06'%20stop-color='%231F92FF'%20stop-opacity='0.75'/%3e%3cstop%20offset='0.11'%20stop-color='%233873FF'%20stop-opacity='0.71'/%3e%3cstop%20offset='0.18'%20stop-color='%234C57FF'%20stop-opacity='0.66'/%3e%3cstop%20offset='0.25'%20stop-color='%235D41FF'%20stop-opacity='0.6'/%3e%3cstop%20offset='0.34'%20stop-color='%236A30FF'%20stop-opacity='0.53'/%3e%3cstop%20offset='0.44'%20stop-color='%237325FF'%20stop-opacity='0.45'/%3e%3cstop%20offset='0.59'%20stop-color='%23791EFF'%20stop-opacity='0.33'/%3e%3cstop%20offset='1'%20stop-color='%237A1CFF'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint4_linear_5108_16331'%20x1='24.8215'%20y1='8.80638'%20x2='-9.98471'%20y2='5.87613'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2300BBFF'/%3e%3cstop%20offset='0.27'%20stop-color='%231F86FF'/%3e%3cstop%20offset='0.89'%20stop-color='%236C02FF'/%3e%3cstop%20offset='0.9'%20stop-color='%236D00FF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",_f=({label:t,value:e,checked:n,onChange:r,isTerms:s=!1,icono:a})=>{const o={meta:kf,facebook:kf,google:Cx,tiktok:Sx,mathilde:Ox};return f.jsxs("label",{className:`${na["checkbox-container"]} ${s?na["checkbox-container-terms"]:""}`,children:[f.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),f.jsx("span",{className:na.checkmark}),t&&f.jsxs("span",{className:"ml-1 grid grid-cols-[20px_auto] items-center gap-1",children:[a&&f.jsx("img",{src:o[a],className:"h-[15px] w-[15px] object-contain justify-self-center"}),f.jsx("span",{children:t})]})]})},Sr=({src:t,alt:e,width:n,height:r,classIm:s})=>f.jsx("img",{className:s,src:t,alt:e,width:n,height:r});var Cf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Sf=_.createContext&&_.createContext(Cf),Dx=["attr","size","title"];function Mx(t,e){if(t==null)return{};var n=Ex(t,e),r,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(s=0;s<a.length;s++)r=a[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Ex(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,a;for(a=0;a<r.length;a++)s=r[a],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function _o(){return _o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_o.apply(this,arguments)}function Of(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Co(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Of(Object(n),!0).forEach(function(r){Tx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Tx(t,e,n){return e=Px(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Px(t){var e=Nx(t,"string");return typeof e=="symbol"?e:String(e)}function Nx(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Df(t){return t&&t.map((e,n)=>_.createElement(e.tag,Co({key:n},e.attr),Df(e.child)))}function Pe(t){return e=>_.createElement(jx,_o({attr:Co({},t.attr)},e),Df(t.child))}function jx(t){var e=n=>{var{attr:r,size:s,title:a}=t,o=Mx(t,Dx),i=s||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",_o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Co(Co({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&_.createElement("title",null,a),t.children)};return Sf!==void 0?_.createElement(Sf.Consumer,null,n=>e(n)):e(Cf)}function Ix(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 Ax(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 Rx(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 Ql(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 Lx(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 Fx(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 Mf(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 Bx(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 Wx(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 Ef(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 zx(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 Tf(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 Hx(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 Yx(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 Jl="-";function Vx(t){const e=Xx(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function s(o){const i=o.split(Jl);return i[0]===""&&i.length!==1&&i.shift(),Pf(i,e)||Ux(o)}function a(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function Pf(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?Pf(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const a=t.join(Jl);return(o=e.validators.find(({validator:i})=>i(a)))==null?void 0:o.classGroupId}const Nf=/^\[(.+)\]$/;function Ux(t){if(Nf.test(t)){const e=Nf.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function Xx(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Kx(Object.entries(t.classGroups),n).forEach(([a,o])=>{ql(o,r,a,e)}),r}function ql(t,e,n,r){t.forEach(s=>{if(typeof s=="string"){const a=s===""?e:jf(e,s);a.classGroupId=n;return}if(typeof s=="function"){if(Gx(s)){ql(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,o])=>{ql(o,jf(e,a),n,r)})})}function jf(t,e){let n=t;return e.split(Jl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Gx(t){return t.isThemeGetter}function Kx(t,e){return e?t.map(([n,r])=>{const s=r.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,i])=>[e+o,i])):a);return[n,s]}):t}function Zx(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function s(a,o){n.set(a,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return s(a,o),o},set(a,o){n.has(a)?n.set(a,o):s(a,o)}}}const If="!";function Qx(t){const e=t.separator,n=e.length===1,r=e[0],s=e.length;return function(o){const i=[];let l=0,c=0,d;for(let p=0;p<o.length;p++){let b=o[p];if(l===0){if(b===r&&(n||o.slice(p,p+s)===e)){i.push(o.slice(c,p)),c=p+s;continue}if(b==="/"){d=p;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),h=u.startsWith(If),g=h?u.substring(1):u,m=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}}}function Jx(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function qx(t){return{cache:Zx(t.cacheSize),splitModifiers:Qx(t),...Vx(t)}}const $x=/\s+/;function e2(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,a=new Set;return t.trim().split($x).map(o=>{const{modifiers:i,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=n(o);let u=r(d?c.substring(0,d):c),h=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:o};if(u=r(c),!u)return{isTailwindClass:!1,originalClassName:o};h=!1}const g=Jx(i).join(":");return{isTailwindClass:!0,modifierId:l?g+If:g,classGroupId:u,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:i,classGroupId:l,hasPostfixModifier:c}=o,d=i+l;return a.has(d)?!1:(a.add(d),s(l,c).forEach(u=>a.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function t2(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Af(e))&&(r&&(r+=" "),r+=n);return r}function Af(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Af(t[r]))&&(n&&(n+=" "),n+=e);return n}function n2(t,...e){let n,r,s,a=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=qx(c),r=n.cache.get,s=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=e2(l,n);return s(l,d),d}return function(){return a(t2.apply(null,arguments))}}function Be(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const Rf=/^\[(?:([a-z-]+):)?(.+)\]$/i,r2=/^\d+\/\d+$/,s2=new Set(["px","full","screen"]),a2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,o2=/\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$/,i2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,l2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,c2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Rn(t){return Or(t)||s2.has(t)||r2.test(t)}function nr(t){return cs(t,"length",b2)}function Or(t){return!!t&&!Number.isNaN(Number(t))}function So(t){return cs(t,"number",Or)}function ra(t){return!!t&&Number.isInteger(Number(t))}function d2(t){return t.endsWith("%")&&Or(t.slice(0,-1))}function pe(t){return Rf.test(t)}function rr(t){return a2.test(t)}const u2=new Set(["length","size","percentage"]);function f2(t){return cs(t,u2,Lf)}function h2(t){return cs(t,"position",Lf)}const g2=new Set(["image","url"]);function m2(t){return cs(t,g2,w2)}function p2(t){return cs(t,"",y2)}function sa(){return!0}function cs(t,e,n){const r=Rf.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function b2(t){return o2.test(t)&&!i2.test(t)}function Lf(){return!1}function y2(t){return l2.test(t)}function w2(t){return c2.test(t)}function v2(){const t=Be("colors"),e=Be("spacing"),n=Be("blur"),r=Be("brightness"),s=Be("borderColor"),a=Be("borderRadius"),o=Be("borderSpacing"),i=Be("borderWidth"),l=Be("contrast"),c=Be("grayscale"),d=Be("hueRotate"),u=Be("invert"),h=Be("gap"),g=Be("gradientColorStops"),m=Be("gradientColorStopPositions"),p=Be("inset"),b=Be("margin"),y=Be("opacity"),v=Be("padding"),k=Be("saturate"),w=Be("scale"),x=Be("sepia"),C=Be("skew"),N=Be("space"),M=Be("translate"),P=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",pe,e],A=()=>[pe,e],T=()=>["",Rn,nr],D=()=>["auto",Or,pe],j=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],X=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",pe],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Or,So],F=()=>[Or,pe];return{cacheSize:500,separator:":",theme:{colors:[sa],spacing:[Rn,nr],blur:["none","",rr,pe],brightness:V(),borderColor:[t],borderRadius:["none","","full",rr,pe],borderSpacing:A(),borderWidth:T(),contrast:V(),grayscale:ee(),hueRotate:F(),invert:ee(),gap:A(),gradientColorStops:[t],gradientColorStopPositions:[d2,nr],inset:B(),margin:B(),opacity:V(),padding:A(),saturate:V(),scale:V(),sepia:ee(),skew:F(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",pe]}],container:["container"],columns:[{columns:[rr]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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:[...j(),pe]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ra,pe]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pe]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",ra,pe]}],"grid-cols":[{"grid-cols":[sa]}],"col-start-end":[{col:["auto",{span:["full",ra,pe]},pe]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[sa]}],"row-start-end":[{row:["auto",{span:[ra,pe]},pe]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],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":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pe,e]}],"min-w":[{"min-w":[pe,e,"min","max","fit"]}],"max-w":[{"max-w":[pe,e,"none","full","min","max","fit","prose",{screen:[rr]},rr]}],h:[{h:[pe,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pe,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pe,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pe,e,"auto","min","max","fit"]}],"font-size":[{text:["base",rr,nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",So]}],"font-family":[{font:[sa]}],"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",pe]}],"line-clamp":[{"line-clamp":["none",Or,So]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rn,pe]}],"list-image":[{"list-image":["none",pe]}],"list-style-type":[{list:["none","disc","decimal",pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rn,nr]}],"underline-offset":[{"underline-offset":["auto",Rn,pe]}],"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",pe]}],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",pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...j(),h2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",f2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},m2]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...E(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:E()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[Rn,pe]}],"outline-w":[{outline:[Rn,nr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Rn,nr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",rr,p2]}],"shadow-color":[{shadow:[sa]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":Y()}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",rr,pe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[k]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pe]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",pe]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ra,pe]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pe]}],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",pe]}],"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",pe]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Rn,nr,So]}],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 Z=n2(v2);function Dr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function aa(t){if(!Dr(t))return t;const e={};for(const n in t)e[n]=aa(t[n]);return e}function re(t,e){if(Dr(e)&&Object.keys(e).length===0)return aa({...t,...e});const n={...t,...e};if(Dr(e)&&Dr(t))for(const r in e)Dr(e[r])&&r in t&&Dr(t[r])?n[r]=re(t[r],e[r]):n[r]=Dr(e[r])?aa(e[r]):e[r];return n}function CI(t){return t}const x2={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"}}},k2={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"},_2={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"}},C2={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"}}},S2={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},O2={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"}},D2={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"}},M2={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"}},E2={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"}}},T2={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"}},P2={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"}}},N2={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"}},j2={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"}}}}},I2={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"},A2={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"}}}},R2={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"}},L2={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"}},F2={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"}}},B2={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"}},W2={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"}}},z2={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"}},H2={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"}}},Y2={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"}},V2={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"}},U2={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"}}},X2={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"}},G2={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"}},K2={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"}},Z2={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"}}}},Q2={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"}}},J2={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"}},q2={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"}}}},$2={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"}},e1={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"}},t1={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"}},n1={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"},r1={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:""}},s1={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:""}}}},a1={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:""}}},o1={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"}},i1={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"}}},l1={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"},c1={theme:aa({accordion:x2,alert:k2,avatar:_2,badge:C2,blockquote:S2,breadcrumb:O2,button:D2,buttonGroup:M2,card:E2,carousel:T2,checkbox:P2,datepicker:j2,darkThemeToggle:N2,dropdown:I2,fileInput:A2,floatingLabel:R2,footer:L2,helperText:F2,kbd:B2,label:W2,listGroup:H2,list:z2,modal:Y2,navbar:V2,pagination:U2,popover:X2,progress:G2,radio:K2,rangeSlider:Z2,rating:Q2,ratingAdvanced:J2,select:q2,textInput:s1,textarea:r1,toggleSwitch:i1,sidebar:$2,spinner:e1,table:t1,tabs:n1,timeline:a1,toast:o1,tooltip:l1})};function ge(){return aa(c1.theme)}const Ff=_.createContext(void 0);function Bf(){const t=_.useContext(Ff);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Wf=({children:t,className:e,theme:n={},...r})=>{const{isOpen:s}=Bf(),a=re(ge().accordion.content,n);return f.jsx("div",{className:Z(a.base,e),"data-testid":"flowbite-accordion-content",hidden:!s,...r,children:t})},zf=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,s]=_.useState(e.isOpen),a=n?{...e,isOpen:r,setOpen:()=>s(!r)}:e;return f.jsx(Ff.Provider,{value:a,children:t})},Hf=({as:t="h2",children:e,className:n,theme:r={},...s})=>{const{arrowIcon:a,flush:o,isOpen:i,setOpen:l}=Bf(),c=()=>typeof l<"u"&&l(),d=re(ge().accordion.title,r);return f.jsxs("button",{className:Z(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...s,children:[f.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),a&&f.jsx(a,{"aria-hidden":!0,className:Z(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},Yf=({alwaysOpen:t=!1,arrowIcon:e=Ql,children:n,flush:r=!1,collapseAll:s=!1,className:a,theme:o={},...i})=>{const[l,c]=_.useState(s?-1:0),d=_.useMemo(()=>_.Children.map(n,(h,g)=>_.cloneElement(h,{alwaysOpen:t,arrowIcon:e,flush:r,isOpen:l===g,setOpen:()=>c(l===g?-1:g)})),[t,e,n,r,l]),u=re(ge().accordion.root,o);return f.jsx("div",{className:Z(u.base,u.flush[r?"on":"off"],a),"data-testid":"flowbite-accordion",...i,children:d})};Yf.displayName="Accordion",zf.displayName="Accordion.Panel",Hf.displayName="Accordion.Title",Wf.displayName="Accordion.Content",Object.assign(Yf,{Panel:zf,Title:Hf,Content:Wf});const Vf=({children:t,className:e,theme:n={},...r})=>{const s=re(ge().avatar.group,n);return f.jsx("div",{"data-testid":"avatar-group-element",className:Z(s.base,e),...r,children:t})};Vf.displayName="Avatar.Group";const Uf=({className:t,href:e,theme:n={},total:r,...s})=>{const a=re(ge().avatar.groupCounter,n);return f.jsxs("a",{href:e,className:Z(a.base,t),...s,children:["+",r]})};Uf.displayName="Avatar.GroupCounter";const Xf=({alt:t="",bordered:e=!1,children:n,className:r,color:s="light",img:a,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:h={},...g})=>{const m=re(ge().avatar,h),p=Z(m.root.img.base,e&&m.root.bordered,e&&m.root.color[s],i&&m.root.rounded,c&&m.root.stacked,m.root.img.on,m.root.size[l]),b={className:Z(p,m.root.img.on),"data-testid":"flowbite-avatar-img"};return f.jsxs("div",{className:Z(m.root.base,r),"data-testid":"flowbite-avatar",...g,children:[f.jsxs("div",{className:"relative",children:[a?typeof a=="string"?f.jsx("img",{alt:t,src:a,...b}):a({alt:t,...b}):o?f.jsx("div",{className:Z(m.root.img.off,m.root.initials.base,c&&m.root.stacked,e&&m.root.bordered,e&&m.root.color[s],m.root.size[l],i&&m.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:f.jsx("span",{className:Z(m.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):f.jsx("div",{className:Z(p,m.root.img.off),"data-testid":"flowbite-avatar-img",children:f.jsx("svg",{className:m.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:f.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&&f.jsx("span",{"data-testid":"flowbite-avatar-status",className:Z(m.root.status.base,m.root.status[d],m.root.statusPosition[u])})]}),n&&f.jsx("div",{children:n})]})};Xf.displayName="Avatar",Object.assign(Xf,{Group:Vf,Counter:Uf});const Gf=({children:t,color:e="info",href:n,icon:r,size:s="xs",className:a,theme:o={},...i})=>{const l=re(ge().badge,o),c=()=>f.jsxs("span",{className:Z(l.root.base,l.root.color[e],l.root.size[s],l.icon[r?"on":"off"],a),"data-testid":"flowbite-badge",...i,children:[r&&f.jsx(r,{"aria-hidden":!0,className:l.icon.size[s],"data-testid":"flowbite-badge-icon"}),t&&f.jsx("span",{children:t})]});return n?f.jsx("a",{className:l.root.href,href:n,children:f.jsx(c,{})}):f.jsx(c,{})};Gf.displayName="Badge";const Kf=({className:t,color:e="info",light:n,size:r="md",theme:s={},...a})=>{const o=re(ge().spinner,s);return f.jsx("span",{role:"status",...a,children:f.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:Z(o.base,o.color[e],o.light[n?"on":"off"].base,o.light[n?"on":"off"].color[e],o.size[r],t),children:[f.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"}),f.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"})]})})};Kf.displayName="Spinner";const $l=_.forwardRef(({children:t,as:e,href:n,type:r="button",...s},a)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:a,href:n,type:r,...s},t)});$l.displayName="ButtonBaseComponent";const Zf=(t,e,n)=>_.Children.map(t,(r,s)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:Zf(r.props.children,e,n),positionInGroup:Qf(s,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:Qf(s,_.Children.count(t))}):r),Qf=(t,e)=>t===0?"start":t===e-1?"end":"middle",Jf=({children:t,className:e,outline:n,pill:r,theme:s={},...a})=>{const o=_.useMemo(()=>Zf(t,n,r),[t,n,r]),i=re(ge().buttonGroup,s);return f.jsx("div",{className:Z(i.base,e),role:"group",...a,children:o})};Jf.displayName="Button.Group";const qf=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:s,isProcessing:a=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:h=!1,positionInGroup:g="none",size:m="md",theme:p={},...b},y)=>{const{buttonGroup:v,button:k}=ge(),w=re(k,p),x=b;return f.jsx($l,{ref:y,disabled:r,className:Z(w.base,r&&w.disabled,!l&&!c&&w.color[n],l&&!c&&w.gradientDuoTone[l],!l&&c&&w.gradient[c],u&&(w.outline.color[n]??w.outline.color.default),w.pill[h?"on":"off"],s&&w.fullSized,v.position[g],e),...x,children:f.jsx("span",{className:Z(w.inner.base,w.outline[u?"on":"off"],w.outline.pill[u&&h?"on":"off"],w.size[m],u&&!w.outline.color[n]&&w.inner.outline,a&&w.isProcessing,a&&w.inner.isProcessingPadding[m],w.inner.position[g]),children:f.jsxs(f.Fragment,{children:[a&&f.jsx("span",{className:Z(w.spinnerSlot,w.spinnerLeftPosition[m]),children:i||f.jsx(Kf,{size:m})}),typeof t<"u"?t:f.jsx("span",{"data-testid":"flowbite-button-label",className:Z(w.label),children:a?o:d})]})})})});qf.displayName="Button";const $f=Object.assign(qf,{Group:Jf}),eh=({children:t,...e})=>{const n=r=>{const a=r.target.closest('[role="banner"]');a==null||a.remove()};return f.jsx($f,{onClick:n,...e,children:t})};eh.displayName="Banner.CollapseButton";const th=({children:t,...e})=>f.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});th.displayName="Banner",Object.assign(th,{CollapseButton:eh});const nh=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:s={},...a},o)=>{const i=typeof n<"u",l=i?"a":"span",c=re(ge().breadcrumb.item,s);return f.jsxs("li",{className:Z(c.base,e),...a,children:[f.jsx(Tf,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),f.jsxs(l,{ref:o,className:c.href[i?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[r&&f.jsx(r,{"aria-hidden":!0,className:c.icon}),t]})]})});nh.displayName="Breadcrumb.Item";const rh=({children:t,className:e,theme:n={},...r})=>{const s=re(ge().breadcrumb.root,n);return f.jsx("nav",{"aria-label":"Breadcrumb",className:Z(s.base,e),...r,children:f.jsx("ol",{className:s.list,children:t})})};rh.displayName="Breadcrumb",Object.assign(rh,{Item:nh});var d1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ah(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var oh={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(a=s(a,r(i)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var i in a)e.call(a,i)&&a[i]&&(o=s(o,i));return o}function s(a,o){return o?a?a+" "+o:a+o:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(ah);var sr=ah.exports;const ik=rh(sr);var ec={exports:{}};function oh(t,e=100,n={}){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:r}=typeof n=="boolean"?{immediate:n}:n;let s,a,o,i,l;function c(){const u=Date.now()-i;if(u<e&&u>=0)o=setTimeout(c,e-u);else if(o=void 0,!r){const g=s,h=a;s=void 0,a=void 0,l=t.apply(g,h)}}const d=function(...u){if(s&&this!==s)throw new Error("Debounced method called with different contexts.");s=this,a=u,i=Date.now();const g=r&&!o;if(o||(o=setTimeout(c,e)),g){const h=s,p=a;s=void 0,a=void 0,l=t.apply(h,p)}return l};return d.clear=()=>{o&&(clearTimeout(o),o=void 0)},d.flush=()=>{if(!o)return;const u=s,g=a;s=void 0,a=void 0,l=t.apply(u,g),clearTimeout(o),o=void 0},d}ec.exports.debounce=oh,ec.exports=oh;var lk=ec.exports;const ck=rh(lk);var dk=Object.defineProperty,uk=(t,e,n)=>e in t?dk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ot=(t,e,n)=>(uk(t,typeof e!="symbol"?e+"":e,n),n);const fk=300,hk=0;class gk extends _.PureComponent{constructor(e){super(e),ot(this,"container"),ot(this,"scrolling"),ot(this,"started"),ot(this,"pressed"),ot(this,"isMobile",!1),ot(this,"internal"),ot(this,"scrollLeft"),ot(this,"scrollTop"),ot(this,"clientX"),ot(this,"clientY"),ot(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),ot(this,"onScroll",()=>{const n=this.container.current;(n.scrollLeft!==this.scrollLeft||n.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),ot(this,"onTouchStart",n=>{const{nativeMobileScroll:r}=this.props;if(this.isDraggable(n.target))if(this.internal=!0,r&&this.scrolling)this.pressed=!0;else{const s=n.touches[0];this.processClick(s.clientX,s.clientY),!r&&this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onTouchEnd",()=>{const{nativeMobileScroll:n}=this.props;this.pressed&&(this.started&&(!this.scrolling||!n)?this.processEnd():this.pressed=!1,this.forceUpdate())}),ot(this,"onTouchMove",n=>{const{nativeMobileScroll:r}=this.props;if(this.pressed&&(!r||!this.isMobile)){const s=n.touches[0];s&&this.processMove(s.clientX,s.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onMouseDown",n=>{var r,s;this.isDraggable(n.target)&&this.isScrollable()&&(this.internal=!0,((s=(r=this.props)==null?void 0:r.buttons)==null?void 0:s.indexOf(n.button))!==-1&&(this.processClick(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()))}),ot(this,"onMouseMove",n=>{this.pressed&&(this.processMove(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),ot(this,"onMouseUp",n=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(n)),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),this.container=_.createRef(),this.onEndScroll=ck(this.onEndScroll,fk),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,n=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),n.addEventListener("touchstart",this.onTouchStart,{passive:!1}),n.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 n=this.props.ignoreElements;if(n){const r=e.closest(n);return r===null||r.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,n){const r=this.container.current;this.scrollLeft=r==null?void 0:r.scrollLeft,this.scrollTop=r==null?void 0:r.scrollTop,this.clientX=e,this.clientY=n,this.pressed=!0}processStart(e=!0){const{onStartScroll:n}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),n&&n({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,n){const{horizontal:r,vertical:s,activationDistance:a,onScroll:o}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),s&&(i.scrollTop-=n-this.clientY),o&&o({external:!this.internal}),this.clientX=e,this.clientY=n,this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop):(r&&Math.abs(e-this.clientX)>a||s&&Math.abs(n-this.clientY)>a)&&(this.clientX=e,this.clientY=n,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(n=>{n&&(typeof n=="function"?n(e):n.current=e)})}render(){const{children:e,draggingClassName:n,className:r,style:s,hideScrollbars:a}=this.props;return f.jsx("div",{className:ik(r,this.pressed&&n,{"!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]":a,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":a}),style:s,ref:this.getRef,onScroll:this.onScroll,children:e})}}ot(gk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[hk]});const oa=_.forwardRef(({className:t,color:e="default",theme:n={},...r},s)=>{const a=re(ge().checkbox,n);return f.jsx("input",{ref:s,type:"checkbox",className:Q(a.root.base,a.root.color[e],t),...r})});oa.displayName="Checkbox";const ia=({children:t,className:e,color:n="default",theme:r={},value:s,...a})=>{const o=re(ge().helperText,r);return f.jsx("p",{className:Q(o.root.base,o.root.colors[n],e),...a,children:s??t??""})};ia.displayName="HelperText";const ds=_.forwardRef(({addon:t,className:e,color:n="gray",helperText:r,icon:s,rightIcon:a,shadow:o,sizing:i="md",theme:l={},type:c="text",...d},u)=>{const g=re(ge().textInput,l);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:Q(g.base,e),children:[t&&f.jsx("span",{className:g.addon,children:t}),f.jsxs("div",{className:g.field.base,children:[s&&f.jsx("div",{className:g.field.icon.base,children:f.jsx(s,{className:g.field.icon.svg})}),a&&f.jsx("div",{"data-testid":"right-icon",className:g.field.rightIcon.base,children:f.jsx(a,{className:g.field.rightIcon.svg})}),f.jsx("input",{className:Q(g.field.input.base,g.field.input.colors[n],g.field.input.sizes[i],g.field.input.withIcon[s?"on":"off"],g.field.input.withRightIcon[a?"on":"off"],g.field.input.withAddon[t?"on":"off"],g.field.input.withShadow[o?"on":"off"]),type:c,...d,ref:u})]})]}),r&&f.jsx(ia,{color:n,children:r})]})});ds.displayName="TextInput";const ih=_.createContext(void 0);function Oo(){const t=_.useContext(ih);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var Ye=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(Ye||{}),lh=(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))(lh||{});const la=(t,e,n)=>{const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&n){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r>=s&&r<=a}if(e){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return r>=s}if(n){const s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r<=s}return!0},Do=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),mk=(t,e,n)=>(la(t,e,n)||(e&&t<e?t=e:n&&t>n&&(t=n)),t),pk=(t,e)=>{const n=new Date(t.getFullYear(),t.getMonth(),1);let s=n.getDay()-e;return s<0&&(s+=7),tc(n,-s)},bk=(t,e)=>{const n=[],r=new Date(0);r.setDate(r.getDate()-r.getDay()+e);const s=new Intl.DateTimeFormat(t,{weekday:"short"});for(let a=0;a<7;a++)n.push(s.format(tc(r,a)));return n},tc=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),n},yk=(t,e)=>{const n=new Date(t);return n.setMonth(n.getMonth()+e),n},us=(t,e)=>{const n=new Date(t);return n.setFullYear(n.getFullYear()+e),n},ca=(t,e,n)=>{let r={day:"numeric",month:"long",year:"numeric"};return n&&(r=n),new Intl.DateTimeFormat(t,r).format(e)},fs=(t,e)=>{const n=t.getFullYear();return Math.floor(n/e)*e},wk=(t,e)=>{const n=t.getFullYear(),r=e+9;return n>=e&&n<=r},vk=({theme:t={}})=>{const{theme:e,weekStart:n,minDate:r,maxDate:s,viewDate:a,selectedDate:o,changeSelectedDate:i,language:l}=Oo(),c=re(e.views.days,t),d=bk(l,n),u=pk(a,n);return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:c.header.base,children:d.map((g,h)=>f.jsx("span",{className:c.header.title,children:g},h))}),f.jsx("div",{className:c.items.base,children:[...Array(42)].map((g,h)=>{const p=tc(u,h),m=ca(l,p,{day:"numeric"}),b=Do(o,p),y=!la(p,r,s);return f.jsx("button",{disabled:y,type:"button",className:Q(c.items.item.base,b&&c.items.item.selected,y&&c.items.item.disabled),onClick:()=>{y||i(p,!0)},children:m},h)})})]})},xk=({theme:t={}})=>{const{theme:e,selectedDate:n,viewDate:r,setViewDate:s,setView:a}=Oo(),o=re(e.views.decades,t);return f.jsx("div",{className:o.items.base,children:[...Array(12)].map((i,l)=>{const d=fs(r,100)-10+l*10,u=new Date(d,0,1),g=us(u,9),h=wk(r,d),p=!la(r,u,g);return f.jsx("button",{disabled:p,type:"button",className:Q(o.items.item.base,h&&o.items.item.selected,p&&o.items.item.disabled),onClick:()=>{p||(s(us(r,d-n.getFullYear())),a(Ye.Years))},children:d},l)})})},kk=({theme:t={}})=>{const{theme:e,minDate:n,maxDate:r,selectedDate:s,viewDate:a,language:o,setViewDate:i,setView:l}=Oo(),c=re(e.views.months,t);return f.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const g=new Date(a.getTime());g.setMonth(u);const h=ca(o,g,{month:"short"}),p=Do(s,g),m=!la(g,n,r);return f.jsx("button",{disabled:m,type:"button",className:Q(c.items.item.base,p&&c.items.item.selected,m&&c.items.item.disabled),onClick:()=>{m||(i(g),l(Ye.Days))},children:h},u)})})},_k=({theme:t={}})=>{const{theme:e,selectedDate:n,minDate:r,maxDate:s,viewDate:a,setViewDate:o,setView:i}=Oo(),l=re(e.views.years,t);return f.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const g=fs(a,10)-1+d*1,h=new Date(a.getTime());h.setFullYear(g);const p=Do(n,h),m=!la(h,r,s);return f.jsx("button",{disabled:m,type:"button",className:Q(l.items.item.base,p&&l.items.item.selected,m&&l.items.item.disabled),onClick:()=>{m||(o(h),i(Ye.Months))},children:g},d)})})},Sk=({title:t,open:e,inline:n=!1,autoHide:r=!0,showClearButton:s=!0,labelClearButton:a="Clear",showTodayButton:o=!0,labelTodayButton:i="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:g=lh.Sunday,className:h,theme:p={},onSelectedDateChanged:m,...b},y)=>{const v=re(ge().datepicker,p);l=mk(l,c,d);const[k,w]=_.useState(e),[x,S]=_.useState(Ye.Days),[P,C]=_.useState(l),[N,T]=_.useState(l),Y=_.useRef(null),F=_.useRef(null),E=(ee,I)=>{C(ee),m&&m(ee),r&&x===Ye.Days&&I==!0&&!n&&w(!1)},D=()=>{E(l,!0),l&&T(l)};_.useImperativeHandle(y,()=>({focus(){var ee;(ee=Y.current)==null||ee.focus()},clear(){D()}}));const j=ee=>{switch(ee){case Ye.Decades:return f.jsx(xk,{theme:v.views.decades});case Ye.Years:return f.jsx(_k,{theme:v.views.years});case Ye.Months:return f.jsx(kk,{theme:v.views.months});case Ye.Days:default:return f.jsx(vk,{theme:v.views.days})}},M=()=>{switch(x){case Ye.Days:return Ye.Months;case Ye.Months:return Ye.Years;case Ye.Years:return Ye.Decades}return x},H=()=>{switch(x){case Ye.Decades:return`${fs(N,100)} - ${fs(N,100)+90}`;case Ye.Years:return`${fs(N,10)} - ${fs(N,10)+9}`;case Ye.Months:return ca(u,N,{year:"numeric"});case Ye.Days:default:return ca(u,N,{month:"long",year:"numeric"})}},X=(ee,I,V)=>{switch(ee){case Ye.Days:return new Date(yk(I,V));case Ye.Months:return new Date(us(I,V));case Ye.Years:return new Date(us(I,V*10));case Ye.Decades:return new Date(us(I,V*100));default:return new Date(us(I,V*10))}};return _.useEffect(()=>{const ee=I=>{var R,A;const V=(R=F==null?void 0:F.current)==null?void 0:R.contains(I.target),L=(A=Y==null?void 0:Y.current)==null?void 0:A.contains(I.target);!V&&!L&&w(!1)};return document.addEventListener("mousedown",ee),()=>{document.removeEventListener("mousedown",ee)}},[Y,F,w]),f.jsx(ih.Provider,{value:{theme:v,language:u,minDate:c,maxDate:d,weekStart:g,isOpen:k,setIsOpen:w,view:x,setView:S,viewDate:N,setViewDate:T,selectedDate:P,setSelectedDate:C,changeSelectedDate:E},children:f.jsxs("div",{className:Q(v.root.base,h),children:[!n&&f.jsx(ds,{theme:v.root.input,icon:Nx,ref:Y,onFocus:()=>{Do(N,P)||T(P),w(!0)},value:P&&ca(u,P),readOnly:!0,...b}),(k||n)&&f.jsx("div",{ref:F,className:Q(v.popup.root.base,n&&v.popup.root.inline),children:f.jsxs("div",{className:v.popup.root.inner,children:[f.jsxs("div",{className:v.popup.header.base,children:[t&&f.jsx("div",{className:v.popup.header.title,children:t}),f.jsxs("div",{className:v.popup.header.selectors.base,children:[f.jsx("button",{type:"button",className:Q(v.popup.header.selectors.button.base,v.popup.header.selectors.button.prev),onClick:()=>T(X(x,N,-1)),children:f.jsx(Tx,{})}),f.jsx("button",{type:"button",className:Q(v.popup.header.selectors.button.base,v.popup.header.selectors.button.view),onClick:()=>S(M()),children:H()}),f.jsx("button",{type:"button",className:Q(v.popup.header.selectors.button.base,v.popup.header.selectors.button.next),onClick:()=>T(X(x,N,1)),children:f.jsx(Px,{})})]})]}),f.jsx("div",{className:v.popup.view.base,children:j(x)}),(s||o)&&f.jsxs("div",{className:v.popup.footer.base,children:[o&&f.jsx("button",{type:"button",className:Q(v.popup.footer.button.base,v.popup.footer.button.today),onClick:()=>{const ee=new Date;E(ee,!0),T(ee)},children:i}),s&&f.jsx("button",{type:"button",className:Q(v.popup.footer.button.base,v.popup.footer.button.clear),onClick:()=>{E(l,!0),l&&T(l)},children:a})]})]})})]})})},ch=_.forwardRef(Sk);ch.displayName="Datepicker";function Mo(){return typeof window<"u"}function Mr(t){return dh(t)?(t.nodeName||"").toLowerCase():"#document"}function Mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function fn(t){var e;return(e=(dh(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function dh(t){return Mo()?t instanceof Node||t instanceof Mt(t).Node:!1}function Ne(t){return Mo()?t instanceof Element||t instanceof Mt(t).Element:!1}function ht(t){return Mo()?t instanceof HTMLElement||t instanceof Mt(t).HTMLElement:!1}function nc(t){return!Mo()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Mt(t).ShadowRoot}function da(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=Zt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(s)}function Ck(t){return["table","td","th"].includes(Mr(t))}function Eo(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function rc(t){const e=sc(),n=Ne(t)?Zt(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ok(t){let e=Ln(t);for(;ht(e)&&!ar(e);){if(rc(e))return e;if(Eo(e))return null;e=Ln(e)}return null}function sc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ar(t){return["html","body","#document"].includes(Mr(t))}function Zt(t){return Mt(t).getComputedStyle(t)}function To(t){return Ne(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ln(t){if(Mr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||nc(t)&&t.host||fn(t);return nc(e)?e.host:e}function uh(t){const e=Ln(t);return ar(e)?t.ownerDocument?t.ownerDocument.body:t.body:ht(e)&&da(e)?e:uh(e)}function or(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=uh(t),a=s===((r=t.ownerDocument)==null?void 0:r.body),o=Mt(s);if(a){const i=ac(o);return e.concat(o,o.visualViewport||[],da(s)?s:[],i&&n?or(i):[])}return e.concat(s,or(s,[],n))}function ac(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function hn(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function tt(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&nc(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function oc(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function fh(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function hh(t){return t.mozInputSource===0&&t.isTrusted?!0:cc()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function ic(t){return Dk()?!1:!cc()&&t.width===0&&t.height===0||cc()&&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 lc(){return/apple/i.test(navigator.vendor)}function cc(){const t=/android/i;return t.test(oc())||t.test(fh())}function gh(){return oc().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Dk(){return fh().includes("jsdom/")}function Po(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function Mk(t){return"nativeEvent"in t}function Ek(t){return t.matches("html,body")}function _t(t){return(t==null?void 0:t.ownerDocument)||document}function dc(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function ir(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Tk="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function uc(t){return ht(t)&&t.matches(Tk)}function gt(t){t.preventDefault(),t.stopPropagation()}function mh(t){return t?t.getAttribute("role")==="combobox"&&uc(t):!1}const Pk=["top","right","bottom","left"],ph=["start","end"],bh=Pk.reduce((t,e)=>t.concat(e,e+"-"+ph[0],e+"-"+ph[1]),[]),hs=Math.min,Er=Math.max,No=Math.round,gs=Math.floor,gn=t=>({x:t,y:t}),Nk={left:"right",right:"left",bottom:"top",top:"bottom"},jk={start:"end",end:"start"};function fc(t,e,n){return Er(t,hs(e,n))}function ms(t,e){return typeof t=="function"?t(e):t}function Fn(t){return t.split("-")[0]}function mn(t){return t.split("-")[1]}function yh(t){return t==="x"?"y":"x"}function hc(t){return t==="y"?"height":"width"}function jo(t){return["top","bottom"].includes(Fn(t))?"y":"x"}function gc(t){return yh(jo(t))}function wh(t,e,n){n===void 0&&(n=!1);const r=mn(t),s=gc(t),a=hc(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=Ao(o)),[o,Ao(o)]}function Ik(t){const e=Ao(t);return[Io(t),e,Io(e)]}function Io(t){return t.replace(/start|end/g,e=>jk[e])}function Ak(t,e,n){const r=["left","right"],s=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:r:e?r:s;case"left":case"right":return e?a:o;default:return[]}}function Rk(t,e,n,r){const s=mn(t);let a=Ak(Fn(t),n==="start",r);return s&&(a=a.map(o=>o+"-"+s),e&&(a=a.concat(a.map(Io)))),a}function Ao(t){return t.replace(/left|right|bottom|top/g,e=>Nk[e])}function Lk(t){return{top:0,right:0,bottom:0,left:0,...t}}function vh(t){return typeof t!="number"?Lk(t):{top:t,right:t,bottom:t,left:t}}function Ro(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function xh(t,e,n){let{reference:r,floating:s}=t;const a=jo(e),o=gc(e),i=hc(o),l=Fn(e),c=a==="y",d=r.x+r.width/2-s.width/2,u=r.y+r.height/2-s.height/2,g=r[i]/2-s[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-s.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-s.width,y:u};break;default:h={x:r.x,y:r.y}}switch(mn(e)){case"start":h[o]-=g*(n&&c?-1:1);break;case"end":h[o]+=g*(n&&c?-1:1);break}return h}const Fk=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:o}=n,i=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:u}=xh(c,r,l),g=r,h={},p=0;for(let m=0;m<i.length;m++){const{name:b,fn:y}=i[m],{x:v,y:k,data:w,reset:x}=await y({x:d,y:u,initialPlacement:r,placement:g,strategy:s,middlewareData:h,rects:c,platform:o,elements:{reference:t,floating:e}});d=v??d,u=k??u,h={...h,[b]:{...h[b],...w}},x&&p<=50&&(p++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(c=x.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):x.rects),{x:d,y:u}=xh(c,g,l)),m=-1)}return{x:d,y:u,placement:g,strategy:s,middlewareData:h}};async function mc(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:a,rects:o,elements:i,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:g=!1,padding:h=0}=ms(e,t),p=vh(h),b=i[g?u==="floating"?"reference":"floating":u],y=Ro(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),v=u==="floating"?{...o.floating,x:r,y:s}:o.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),w=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},x=Ro(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:k,strategy:l}):v);return{top:(y.top-x.top+p.top)/w.y,bottom:(x.bottom-y.bottom+p.bottom)/w.y,left:(y.left-x.left+p.left)/w.x,right:(x.right-y.right+p.right)/w.x}}const Bk=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:a,platform:o,elements:i,middlewareData:l}=e,{element:c,padding:d=0}=ms(t,e)||{};if(c==null)return{};const u=vh(d),g={x:n,y:r},h=gc(s),p=hc(h),m=await o.getDimensions(c),b=h==="y",y=b?"top":"left",v=b?"bottom":"right",k=b?"clientHeight":"clientWidth",w=a.reference[p]+a.reference[h]-g[h]-a.floating[p],x=g[h]-a.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let P=S?S[k]:0;(!P||!await(o.isElement==null?void 0:o.isElement(S)))&&(P=i.floating[k]||a.floating[p]);const C=w/2-x/2,N=P/2-m[p]/2-1,T=hs(u[y],N),Y=hs(u[v],N),F=T,E=P-m[p]-Y,D=P/2-m[p]/2+C,j=fc(F,D,E),M=!l.arrow&&mn(s)!=null&&D!==j&&a.reference[p]/2-(D<F?T:Y)-m[p]/2<0,H=M?D<F?D-F:D-E:0;return{[h]:g[h]+H,data:{[h]:j,centerOffset:D-j-H,...M&&{alignmentOffset:H}},reset:M}}});function Wk(t,e,n){return(t?[...n.filter(s=>mn(s)===t),...n.filter(s=>mn(s)!==t)]:n.filter(s=>Fn(s)===s)).filter(s=>t?mn(s)===t||(e?Io(s)!==s:!1):!0)}const zk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,s;const{rects:a,middlewareData:o,placement:i,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:g=bh,autoAlignment:h=!0,...p}=ms(t,e),m=u!==void 0||g===bh?Wk(u||null,h,g):g,b=await mc(e,p),y=((n=o.autoPlacement)==null?void 0:n.index)||0,v=m[y];if(v==null)return{};const k=wh(v,a,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(i!==v)return{reset:{placement:m[0]}};const w=[b[Fn(v)],b[k[0]],b[k[1]]],x=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:w}],S=m[y+1];if(S)return{data:{index:y+1,overflows:x},reset:{placement:S}};const P=x.map(T=>{const Y=mn(T.placement);return[T.placement,Y&&d?T.overflows.slice(0,2).reduce((F,E)=>F+E,0):T.overflows[0],T.overflows]}).sort((T,Y)=>T[1]-Y[1]),N=((s=P.filter(T=>T[2].slice(0,mn(T[0])?2:3).every(Y=>Y<=0))[0])==null?void 0:s[0])||P[0][0];return N!==i?{data:{index:y+1,overflows:x},reset:{placement:N}}:{}}}},Hk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:a,rects:o,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...b}=ms(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Fn(s),v=Fn(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=g||(v||!m?[Ao(i)]:Ik(i));!g&&p!=="none"&&w.push(...Rk(i,m,p,k));const x=[i,...w],S=await mc(e,b),P=[];let C=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&P.push(S[y]),u){const F=wh(s,o,k);P.push(S[F[0]],S[F[1]])}if(C=[...C,{placement:s,overflows:P}],!P.every(F=>F<=0)){var N,T;const F=(((N=a.flip)==null?void 0:N.index)||0)+1,E=x[F];if(E)return{data:{index:F,overflows:C},reset:{placement:E}};let D=(T=C.filter(j=>j.overflows[0]<=0).sort((j,M)=>j.overflows[1]-M.overflows[1])[0])==null?void 0:T.placement;if(!D)switch(h){case"bestFit":{var Y;const j=(Y=C.map(M=>[M.placement,M.overflows.filter(H=>H>0).reduce((H,X)=>H+X,0)]).sort((M,H)=>M[1]-H[1])[0])==null?void 0:Y[0];j&&(D=j);break}case"initialPlacement":D=i;break}if(s!==D)return{reset:{placement:D}}}return{}}}};async function Yk(t,e){const{placement:n,platform:r,elements:s}=t,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Fn(n),i=mn(n),l=jo(n)==="y",c=["left","top"].includes(o)?-1:1,d=a&&l?-1:1,u=ms(e,t);let{mainAxis:g,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return i&&typeof p=="number"&&(h=i==="end"?p*-1:p),l?{x:h*d,y:g*c}:{x:g*c,y:h*d}}const Vk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:a,placement:o,middlewareData:i}=e,l=await Yk(e,t);return o===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:a+l.y,data:{...l,placement:o}}}}},Uk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:i={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...l}=ms(t,e),c={x:n,y:r},d=await mc(e,l),u=jo(Fn(s)),g=yh(u);let h=c[g],p=c[u];if(a){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",v=h+d[b],k=h-d[y];h=fc(v,h,k)}if(o){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",v=p+d[b],k=p-d[y];p=fc(v,p,k)}const m=i.fn({...e,[g]:h,[u]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function kh(t){const e=Zt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=ht(t),a=s?t.offsetWidth:n,o=s?t.offsetHeight:r,i=No(n)!==a||No(r)!==o;return i&&(n=a,r=o),{width:n,height:r,$:i}}function pc(t){return Ne(t)?t:t.contextElement}function ps(t){const e=pc(t);if(!ht(e))return gn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:a}=kh(e);let o=(a?No(n.width):n.width)/r,i=(a?No(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const Xk=gn(0);function _h(t){const e=Mt(t);return!sc()||!e.visualViewport?Xk:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Gk(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Mt(t)?!1:e}function Tr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),a=pc(t);let o=gn(1);e&&(r?Ne(r)&&(o=ps(r)):o=ps(t));const i=Gk(a,n,r)?_h(a):gn(0);let l=(s.left+i.x)/o.x,c=(s.top+i.y)/o.y,d=s.width/o.x,u=s.height/o.y;if(a){const g=Mt(a),h=r&&Ne(r)?Mt(r):r;let p=g,m=ac(p);for(;m&&r&&h!==p;){const b=ps(m),y=m.getBoundingClientRect(),v=Zt(m),k=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,w=y.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=w,p=Mt(m),m=ac(p)}}return Ro({width:d,height:u,x:l,y:c})}function bc(t,e){const n=To(t).scrollLeft;return e?e.left+n:Tr(fn(t)).left+n}function Sh(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:bc(t,r)),a=r.top+e.scrollTop;return{x:s,y:a}}function Kk(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const a=s==="fixed",o=fn(r),i=e?Eo(e.floating):!1;if(r===o||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=gn(1);const d=gn(0),u=ht(r);if((u||!u&&!a)&&((Mr(r)!=="body"||da(o))&&(l=To(r)),ht(r))){const h=Tr(r);c=ps(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const g=o&&!u&&!a?Sh(o,l,!0):gn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+g.x,y:n.y*c.y-l.scrollTop*c.y+d.y+g.y}}function Qk(t){return Array.from(t.getClientRects())}function Zk(t){const e=fn(t),n=To(t),r=t.ownerDocument.body,s=Er(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Er(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+bc(t);const i=-n.scrollTop;return Zt(r).direction==="rtl"&&(o+=Er(e.clientWidth,r.clientWidth)-s),{width:s,height:a,x:o,y:i}}function Jk(t,e){const n=Mt(t),r=fn(t),s=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;const c=sc();(!c||c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i,y:l}}function qk(t,e){const n=Tr(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,a=ht(t)?ps(t):gn(1),o=t.clientWidth*a.x,i=t.clientHeight*a.y,l=s*a.x,c=r*a.y;return{width:o,height:i,x:l,y:c}}function Ch(t,e,n){let r;if(e==="viewport")r=Jk(t,n);else if(e==="document")r=Zk(fn(t));else if(Ne(e))r=qk(e,n);else{const s=_h(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Ro(r)}function Oh(t,e){const n=Ln(t);return n===e||!Ne(n)||ar(n)?!1:Zt(n).position==="fixed"||Oh(n,e)}function $k(t,e){const n=e.get(t);if(n)return n;let r=or(t,[],!1).filter(i=>Ne(i)&&Mr(i)!=="body"),s=null;const a=Zt(t).position==="fixed";let o=a?Ln(t):t;for(;Ne(o)&&!ar(o);){const i=Zt(o),l=rc(o);!l&&i.position==="fixed"&&(s=null),(a?!l&&!s:!l&&i.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||da(o)&&!l&&Oh(t,o))?r=r.filter(d=>d!==o):s=i,o=Ln(o)}return e.set(t,r),r}function e1(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?Eo(e)?[]:$k(e,this._c):[].concat(n),r],i=o[0],l=o.reduce((c,d)=>{const u=Ch(e,d,s);return c.top=Er(u.top,c.top),c.right=hs(u.right,c.right),c.bottom=hs(u.bottom,c.bottom),c.left=Er(u.left,c.left),c},Ch(e,i,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function t1(t){const{width:e,height:n}=kh(t);return{width:e,height:n}}function n1(t,e,n){const r=ht(e),s=fn(e),a=n==="fixed",o=Tr(t,!0,a,e);let i={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!a)if((Mr(e)!=="body"||da(s))&&(i=To(e)),r){const g=Tr(e,!0,a,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else s&&(l.x=bc(s));const c=s&&!r&&!a?Sh(s,i):gn(0),d=o.left+i.scrollLeft-l.x-c.x,u=o.top+i.scrollTop-l.y-c.y;return{x:d,y:u,width:o.width,height:o.height}}function yc(t){return Zt(t).position==="static"}function Dh(t,e){if(!ht(t)||Zt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return fn(t)===n&&(n=n.ownerDocument.body),n}function Mh(t,e){const n=Mt(t);if(Eo(t))return n;if(!ht(t)){let s=Ln(t);for(;s&&!ar(s);){if(Ne(s)&&!yc(s))return s;s=Ln(s)}return n}let r=Dh(t,e);for(;r&&Ck(r)&&yc(r);)r=Dh(r,e);return r&&ar(r)&&yc(r)&&!rc(r)?n:r||Ok(t)||n}const r1=async function(t){const e=this.getOffsetParent||Mh,n=this.getDimensions,r=await n(t.floating);return{reference:n1(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function s1(t){return Zt(t).direction==="rtl"}const a1={convertOffsetParentRelativeRectToViewportRelativeRect:Kk,getDocumentElement:fn,getClippingRect:e1,getOffsetParent:Mh,getElementRects:r1,getClientRects:Qk,getDimensions:t1,getScale:ps,isElement:Ne,isRTL:s1};function Eh(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function o1(t,e){let n=null,r;const s=fn(t);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function o(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:u,width:g,height:h}=c;if(i||e(),!g||!h)return;const p=gs(u),m=gs(s.clientWidth-(d+g)),b=gs(s.clientHeight-(u+h)),y=gs(d),k={rootMargin:-p+"px "+-m+"px "+-b+"px "+-y+"px",threshold:Er(0,hs(1,l))||1};let w=!0;function x(S){const P=S[0].intersectionRatio;if(P!==l){if(!w)return o();P?o(!1,P):r=setTimeout(()=>{o(!1,1e-7)},1e3)}P===1&&!Eh(c,t.getBoundingClientRect())&&o(),w=!1}try{n=new IntersectionObserver(x,{...k,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,k)}n.observe(t)}return o(!0),a}function Th(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=pc(t),d=s||a?[...c?or(c):[],...or(e)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?o1(c,n):null;let g=-1,h=null;o&&(h=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let p,m=l?Tr(t):null;l&&b();function b(){const y=Tr(t);m&&!Eh(m,y)&&n(),m=y,p=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(v=>{s&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),u==null||u(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const i1=Vk,l1=zk,c1=Uk,d1=Hk,Ph=Bk,u1=(t,e,n)=>{const r=new Map,s={platform:a1,...n},a={...s.platform,_c:r};return Fk(t,e,{...s,platform:a})};var Lo=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Fo(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 n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Fo(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&t.$$typeof)&&!Fo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Nh(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function jh(t,e){const n=Nh(t);return Math.round(e*n)/n}function wc(t){const e=B.useRef(t);return Lo(()=>{e.current=t}),e}function f1(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:o}={},transform:i=!0,whileElementsMounted:l,open:c}=t,[d,u]=B.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[g,h]=B.useState(r);Fo(g,r)||h(r);const[p,m]=B.useState(null),[b,y]=B.useState(null),v=B.useCallback(X=>{X!==S.current&&(S.current=X,m(X))},[]),k=B.useCallback(X=>{X!==P.current&&(P.current=X,y(X))},[]),w=a||p,x=o||b,S=B.useRef(null),P=B.useRef(null),C=B.useRef(d),N=l!=null,T=wc(l),Y=wc(s),F=wc(c),E=B.useCallback(()=>{if(!S.current||!P.current)return;const X={placement:e,strategy:n,middleware:g};Y.current&&(X.platform=Y.current),u1(S.current,P.current,X).then(ee=>{const I={...ee,isPositioned:F.current!==!1};D.current&&!Fo(C.current,I)&&(C.current=I,kx.flushSync(()=>{u(I)}))})},[g,e,n,Y,F]);Lo(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,u(X=>({...X,isPositioned:!1})))},[c]);const D=B.useRef(!1);Lo(()=>(D.current=!0,()=>{D.current=!1}),[]),Lo(()=>{if(w&&(S.current=w),x&&(P.current=x),w&&x){if(T.current)return T.current(w,x,E);E()}},[w,x,E,T,N]);const j=B.useMemo(()=>({reference:S,floating:P,setReference:v,setFloating:k}),[v,k]),M=B.useMemo(()=>({reference:w,floating:x}),[w,x]),H=B.useMemo(()=>{const X={position:n,left:0,top:0};if(!M.floating)return X;const ee=jh(M.floating,d.x),I=jh(M.floating,d.y);return i?{...X,transform:"translate("+ee+"px, "+I+"px)",...Nh(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:I}},[n,i,M.floating,d.x,d.y]);return B.useMemo(()=>({...d,update:E,refs:j,elements:M,floatingStyles:H}),[d,E,j,M,H])}const h1=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Ph({element:r.current,padding:s}).fn(n):{}:r?Ph({element:r,padding:s}).fn(n):{}}}},g1=(t,e)=>({...i1(t),options:[t,e]}),m1=(t,e)=>({...c1(t),options:[t,e]}),p1=(t,e)=>({...d1(t),options:[t,e]}),b1=(t,e)=>({...l1(t),options:[t,e]}),y1=(t,e)=>({...h1(t),options:[t,e]});/*!
|
|
5
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(a=s(a,r(i)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var i in a)e.call(a,i)&&a[i]&&(o=s(o,i));return o}function s(a,o){return o?a?a+" "+o:a+o:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(oh);var sr=oh.exports;const u1=sh(sr);var ec={exports:{}};function ih(t,e=100,n={}){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:r}=typeof n=="boolean"?{immediate:n}:n;let s,a,o,i,l;function c(){const u=Date.now()-i;if(u<e&&u>=0)o=setTimeout(c,e-u);else if(o=void 0,!r){const h=s,g=a;s=void 0,a=void 0,l=t.apply(h,g)}}const d=function(...u){if(s&&this!==s)throw new Error("Debounced method called with different contexts.");s=this,a=u,i=Date.now();const h=r&&!o;if(o||(o=setTimeout(c,e)),h){const g=s,m=a;s=void 0,a=void 0,l=t.apply(g,m)}return l};return d.clear=()=>{o&&(clearTimeout(o),o=void 0)},d.flush=()=>{if(!o)return;const u=s,h=a;s=void 0,a=void 0,l=t.apply(u,h),clearTimeout(o),o=void 0},d}ec.exports.debounce=ih,ec.exports=ih;var f1=ec.exports;const h1=sh(f1);var g1=Object.defineProperty,m1=(t,e,n)=>e in t?g1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ot=(t,e,n)=>(m1(t,typeof e!="symbol"?e+"":e,n),n);const p1=300,b1=0;class y1 extends _.PureComponent{constructor(e){super(e),ot(this,"container"),ot(this,"scrolling"),ot(this,"started"),ot(this,"pressed"),ot(this,"isMobile",!1),ot(this,"internal"),ot(this,"scrollLeft"),ot(this,"scrollTop"),ot(this,"clientX"),ot(this,"clientY"),ot(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),ot(this,"onScroll",()=>{const n=this.container.current;(n.scrollLeft!==this.scrollLeft||n.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),ot(this,"onTouchStart",n=>{const{nativeMobileScroll:r}=this.props;if(this.isDraggable(n.target))if(this.internal=!0,r&&this.scrolling)this.pressed=!0;else{const s=n.touches[0];this.processClick(s.clientX,s.clientY),!r&&this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onTouchEnd",()=>{const{nativeMobileScroll:n}=this.props;this.pressed&&(this.started&&(!this.scrolling||!n)?this.processEnd():this.pressed=!1,this.forceUpdate())}),ot(this,"onTouchMove",n=>{const{nativeMobileScroll:r}=this.props;if(this.pressed&&(!r||!this.isMobile)){const s=n.touches[0];s&&this.processMove(s.clientX,s.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onMouseDown",n=>{var r,s;this.isDraggable(n.target)&&this.isScrollable()&&(this.internal=!0,((s=(r=this.props)==null?void 0:r.buttons)==null?void 0:s.indexOf(n.button))!==-1&&(this.processClick(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()))}),ot(this,"onMouseMove",n=>{this.pressed&&(this.processMove(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),ot(this,"onMouseUp",n=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(n)),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),this.container=_.createRef(),this.onEndScroll=h1(this.onEndScroll,p1),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,n=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),n.addEventListener("touchstart",this.onTouchStart,{passive:!1}),n.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 n=this.props.ignoreElements;if(n){const r=e.closest(n);return r===null||r.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,n){const r=this.container.current;this.scrollLeft=r==null?void 0:r.scrollLeft,this.scrollTop=r==null?void 0:r.scrollTop,this.clientX=e,this.clientY=n,this.pressed=!0}processStart(e=!0){const{onStartScroll:n}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),n&&n({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,n){const{horizontal:r,vertical:s,activationDistance:a,onScroll:o}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),s&&(i.scrollTop-=n-this.clientY),o&&o({external:!this.internal}),this.clientX=e,this.clientY=n,this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop):(r&&Math.abs(e-this.clientX)>a||s&&Math.abs(n-this.clientY)>a)&&(this.clientX=e,this.clientY=n,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(n=>{n&&(typeof n=="function"?n(e):n.current=e)})}render(){const{children:e,draggingClassName:n,className:r,style:s,hideScrollbars:a}=this.props;return f.jsx("div",{className:u1(r,this.pressed&&n,{"!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]":a,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":a}),style:s,ref:this.getRef,onScroll:this.onScroll,children:e})}}ot(y1,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[b1]});const oa=_.forwardRef(({className:t,color:e="default",theme:n={},...r},s)=>{const a=re(ge().checkbox,n);return f.jsx("input",{ref:s,type:"checkbox",className:Z(a.root.base,a.root.color[e],t),...r})});oa.displayName="Checkbox";const ia=({children:t,className:e,color:n="default",theme:r={},value:s,...a})=>{const o=re(ge().helperText,r);return f.jsx("p",{className:Z(o.root.base,o.root.colors[n],e),...a,children:s??t??""})};ia.displayName="HelperText";const ds=_.forwardRef(({addon:t,className:e,color:n="gray",helperText:r,icon:s,rightIcon:a,shadow:o,sizing:i="md",theme:l={},type:c="text",...d},u)=>{const h=re(ge().textInput,l);return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:Z(h.base,e),children:[t&&f.jsx("span",{className:h.addon,children:t}),f.jsxs("div",{className:h.field.base,children:[s&&f.jsx("div",{className:h.field.icon.base,children:f.jsx(s,{className:h.field.icon.svg})}),a&&f.jsx("div",{"data-testid":"right-icon",className:h.field.rightIcon.base,children:f.jsx(a,{className:h.field.rightIcon.svg})}),f.jsx("input",{className:Z(h.field.input.base,h.field.input.colors[n],h.field.input.sizes[i],h.field.input.withIcon[s?"on":"off"],h.field.input.withRightIcon[a?"on":"off"],h.field.input.withAddon[t?"on":"off"],h.field.input.withShadow[o?"on":"off"]),type:c,...d,ref:u})]})]}),r&&f.jsx(ia,{color:n,children:r})]})});ds.displayName="TextInput";const lh=_.createContext(void 0);function Oo(){const t=_.useContext(lh);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var Ye=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(Ye||{}),ch=(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))(ch||{});const la=(t,e,n)=>{const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&n){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r>=s&&r<=a}if(e){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return r>=s}if(n){const s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r<=s}return!0},Do=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),w1=(t,e,n)=>(la(t,e,n)||(e&&t<e?t=e:n&&t>n&&(t=n)),t),v1=(t,e)=>{const n=new Date(t.getFullYear(),t.getMonth(),1);let s=n.getDay()-e;return s<0&&(s+=7),tc(n,-s)},x1=(t,e)=>{const n=[],r=new Date(0);r.setDate(r.getDate()-r.getDay()+e);const s=new Intl.DateTimeFormat(t,{weekday:"short"});for(let a=0;a<7;a++)n.push(s.format(tc(r,a)));return n},tc=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),n},k1=(t,e)=>{const n=new Date(t);return n.setMonth(n.getMonth()+e),n},us=(t,e)=>{const n=new Date(t);return n.setFullYear(n.getFullYear()+e),n},ca=(t,e,n)=>{let r={day:"numeric",month:"long",year:"numeric"};return n&&(r=n),new Intl.DateTimeFormat(t,r).format(e)},fs=(t,e)=>{const n=t.getFullYear();return Math.floor(n/e)*e},_1=(t,e)=>{const n=t.getFullYear(),r=e+9;return n>=e&&n<=r},C1=({theme:t={}})=>{const{theme:e,weekStart:n,minDate:r,maxDate:s,viewDate:a,selectedDate:o,changeSelectedDate:i,language:l}=Oo(),c=re(e.views.days,t),d=x1(l,n),u=v1(a,n);return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:c.header.base,children:d.map((h,g)=>f.jsx("span",{className:c.header.title,children:h},g))}),f.jsx("div",{className:c.items.base,children:[...Array(42)].map((h,g)=>{const m=tc(u,g),p=ca(l,m,{day:"numeric"}),b=Do(o,m),y=!la(m,r,s);return f.jsx("button",{disabled:y,type:"button",className:Z(c.items.item.base,b&&c.items.item.selected,y&&c.items.item.disabled),onClick:()=>{y||i(m,!0)},children:p},g)})})]})},S1=({theme:t={}})=>{const{theme:e,selectedDate:n,viewDate:r,setViewDate:s,setView:a}=Oo(),o=re(e.views.decades,t);return f.jsx("div",{className:o.items.base,children:[...Array(12)].map((i,l)=>{const d=fs(r,100)-10+l*10,u=new Date(d,0,1),h=us(u,9),g=_1(r,d),m=!la(r,u,h);return f.jsx("button",{disabled:m,type:"button",className:Z(o.items.item.base,g&&o.items.item.selected,m&&o.items.item.disabled),onClick:()=>{m||(s(us(r,d-n.getFullYear())),a(Ye.Years))},children:d},l)})})},O1=({theme:t={}})=>{const{theme:e,minDate:n,maxDate:r,selectedDate:s,viewDate:a,language:o,setViewDate:i,setView:l}=Oo(),c=re(e.views.months,t);return f.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const h=new Date(a.getTime());h.setMonth(u);const g=ca(o,h,{month:"short"}),m=Do(s,h),p=!la(h,n,r);return f.jsx("button",{disabled:p,type:"button",className:Z(c.items.item.base,m&&c.items.item.selected,p&&c.items.item.disabled),onClick:()=>{p||(i(h),l(Ye.Days))},children:g},u)})})},D1=({theme:t={}})=>{const{theme:e,selectedDate:n,minDate:r,maxDate:s,viewDate:a,setViewDate:o,setView:i}=Oo(),l=re(e.views.years,t);return f.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const h=fs(a,10)-1+d*1,g=new Date(a.getTime());g.setFullYear(h);const m=Do(n,g),p=!la(g,r,s);return f.jsx("button",{disabled:p,type:"button",className:Z(l.items.item.base,m&&l.items.item.selected,p&&l.items.item.disabled),onClick:()=>{p||(o(g),i(Ye.Months))},children:h},d)})})},M1=({title:t,open:e,inline:n=!1,autoHide:r=!0,showClearButton:s=!0,labelClearButton:a="Clear",showTodayButton:o=!0,labelTodayButton:i="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:h=ch.Sunday,className:g,theme:m={},onSelectedDateChanged:p,...b},y)=>{const v=re(ge().datepicker,m);l=w1(l,c,d);const[k,w]=_.useState(e),[x,C]=_.useState(Ye.Days),[N,M]=_.useState(l),[P,S]=_.useState(l),B=_.useRef(null),A=_.useRef(null),T=(ee,I)=>{M(ee),p&&p(ee),r&&x===Ye.Days&&I==!0&&!n&&w(!1)},D=()=>{T(l,!0),l&&S(l)};_.useImperativeHandle(y,()=>({focus(){var ee;(ee=B.current)==null||ee.focus()},clear(){D()}}));const j=ee=>{switch(ee){case Ye.Decades:return f.jsx(S1,{theme:v.views.decades});case Ye.Years:return f.jsx(D1,{theme:v.views.years});case Ye.Months:return f.jsx(O1,{theme:v.views.months});case Ye.Days:default:return f.jsx(C1,{theme:v.views.days})}},E=()=>{switch(x){case Ye.Days:return Ye.Months;case Ye.Months:return Ye.Years;case Ye.Years:return Ye.Decades}return x},Y=()=>{switch(x){case Ye.Decades:return`${fs(P,100)} - ${fs(P,100)+90}`;case Ye.Years:return`${fs(P,10)} - ${fs(P,10)+9}`;case Ye.Months:return ca(u,P,{year:"numeric"});case Ye.Days:default:return ca(u,P,{month:"long",year:"numeric"})}},X=(ee,I,V)=>{switch(ee){case Ye.Days:return new Date(k1(I,V));case Ye.Months:return new Date(us(I,V));case Ye.Years:return new Date(us(I,V*10));case Ye.Decades:return new Date(us(I,V*100));default:return new Date(us(I,V*10))}};return _.useEffect(()=>{const ee=I=>{var L,R;const V=(L=A==null?void 0:A.current)==null?void 0:L.contains(I.target),F=(R=B==null?void 0:B.current)==null?void 0:R.contains(I.target);!V&&!F&&w(!1)};return document.addEventListener("mousedown",ee),()=>{document.removeEventListener("mousedown",ee)}},[B,A,w]),f.jsx(lh.Provider,{value:{theme:v,language:u,minDate:c,maxDate:d,weekStart:h,isOpen:k,setIsOpen:w,view:x,setView:C,viewDate:P,setViewDate:S,selectedDate:N,setSelectedDate:M,changeSelectedDate:T},children:f.jsxs("div",{className:Z(v.root.base,g),children:[!n&&f.jsx(ds,{theme:v.root.input,icon:Rx,ref:B,onFocus:()=>{Do(P,N)||S(N),w(!0)},value:N&&ca(u,N),readOnly:!0,...b}),(k||n)&&f.jsx("div",{ref:A,className:Z(v.popup.root.base,n&&v.popup.root.inline),children:f.jsxs("div",{className:v.popup.root.inner,children:[f.jsxs("div",{className:v.popup.header.base,children:[t&&f.jsx("div",{className:v.popup.header.title,children:t}),f.jsxs("div",{className:v.popup.header.selectors.base,children:[f.jsx("button",{type:"button",className:Z(v.popup.header.selectors.button.base,v.popup.header.selectors.button.prev),onClick:()=>S(X(x,P,-1)),children:f.jsx(Ix,{})}),f.jsx("button",{type:"button",className:Z(v.popup.header.selectors.button.base,v.popup.header.selectors.button.view),onClick:()=>C(E()),children:Y()}),f.jsx("button",{type:"button",className:Z(v.popup.header.selectors.button.base,v.popup.header.selectors.button.next),onClick:()=>S(X(x,P,1)),children:f.jsx(Ax,{})})]})]}),f.jsx("div",{className:v.popup.view.base,children:j(x)}),(s||o)&&f.jsxs("div",{className:v.popup.footer.base,children:[o&&f.jsx("button",{type:"button",className:Z(v.popup.footer.button.base,v.popup.footer.button.today),onClick:()=>{const ee=new Date;T(ee,!0),S(ee)},children:i}),s&&f.jsx("button",{type:"button",className:Z(v.popup.footer.button.base,v.popup.footer.button.clear),onClick:()=>{T(l,!0),l&&S(l)},children:a})]})]})})]})})},dh=_.forwardRef(M1);dh.displayName="Datepicker";function Mo(){return typeof window<"u"}function Mr(t){return uh(t)?(t.nodeName||"").toLowerCase():"#document"}function Mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function fn(t){var e;return(e=(uh(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function uh(t){return Mo()?t instanceof Node||t instanceof Mt(t).Node:!1}function Ne(t){return Mo()?t instanceof Element||t instanceof Mt(t).Element:!1}function ht(t){return Mo()?t instanceof HTMLElement||t instanceof Mt(t).HTMLElement:!1}function nc(t){return!Mo()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Mt(t).ShadowRoot}function da(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=Qt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(s)}function E1(t){return["table","td","th"].includes(Mr(t))}function Eo(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function rc(t){const e=sc(),n=Ne(t)?Qt(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function T1(t){let e=Ln(t);for(;ht(e)&&!ar(e);){if(rc(e))return e;if(Eo(e))return null;e=Ln(e)}return null}function sc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ar(t){return["html","body","#document"].includes(Mr(t))}function Qt(t){return Mt(t).getComputedStyle(t)}function To(t){return Ne(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ln(t){if(Mr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||nc(t)&&t.host||fn(t);return nc(e)?e.host:e}function fh(t){const e=Ln(t);return ar(e)?t.ownerDocument?t.ownerDocument.body:t.body:ht(e)&&da(e)?e:fh(e)}function or(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=fh(t),a=s===((r=t.ownerDocument)==null?void 0:r.body),o=Mt(s);if(a){const i=ac(o);return e.concat(o,o.visualViewport||[],da(s)?s:[],i&&n?or(i):[])}return e.concat(s,or(s,[],n))}function ac(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function hn(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function tt(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&nc(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function oc(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function hh(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function gh(t){return t.mozInputSource===0&&t.isTrusted?!0:cc()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function ic(t){return P1()?!1:!cc()&&t.width===0&&t.height===0||cc()&&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 lc(){return/apple/i.test(navigator.vendor)}function cc(){const t=/android/i;return t.test(oc())||t.test(hh())}function mh(){return oc().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function P1(){return hh().includes("jsdom/")}function Po(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function N1(t){return"nativeEvent"in t}function j1(t){return t.matches("html,body")}function _t(t){return(t==null?void 0:t.ownerDocument)||document}function dc(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function ir(t){return"composedPath"in t?t.composedPath()[0]:t.target}const I1="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function uc(t){return ht(t)&&t.matches(I1)}function gt(t){t.preventDefault(),t.stopPropagation()}function ph(t){return t?t.getAttribute("role")==="combobox"&&uc(t):!1}const A1=["top","right","bottom","left"],bh=["start","end"],yh=A1.reduce((t,e)=>t.concat(e,e+"-"+bh[0],e+"-"+bh[1]),[]),hs=Math.min,Er=Math.max,No=Math.round,gs=Math.floor,gn=t=>({x:t,y:t}),R1={left:"right",right:"left",bottom:"top",top:"bottom"},L1={start:"end",end:"start"};function fc(t,e,n){return Er(t,hs(e,n))}function ms(t,e){return typeof t=="function"?t(e):t}function Fn(t){return t.split("-")[0]}function mn(t){return t.split("-")[1]}function wh(t){return t==="x"?"y":"x"}function hc(t){return t==="y"?"height":"width"}function jo(t){return["top","bottom"].includes(Fn(t))?"y":"x"}function gc(t){return wh(jo(t))}function vh(t,e,n){n===void 0&&(n=!1);const r=mn(t),s=gc(t),a=hc(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=Ao(o)),[o,Ao(o)]}function F1(t){const e=Ao(t);return[Io(t),e,Io(e)]}function Io(t){return t.replace(/start|end/g,e=>L1[e])}function B1(t,e,n){const r=["left","right"],s=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:r:e?r:s;case"left":case"right":return e?a:o;default:return[]}}function W1(t,e,n,r){const s=mn(t);let a=B1(Fn(t),n==="start",r);return s&&(a=a.map(o=>o+"-"+s),e&&(a=a.concat(a.map(Io)))),a}function Ao(t){return t.replace(/left|right|bottom|top/g,e=>R1[e])}function z1(t){return{top:0,right:0,bottom:0,left:0,...t}}function xh(t){return typeof t!="number"?z1(t):{top:t,right:t,bottom:t,left:t}}function Ro(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function kh(t,e,n){let{reference:r,floating:s}=t;const a=jo(e),o=gc(e),i=hc(o),l=Fn(e),c=a==="y",d=r.x+r.width/2-s.width/2,u=r.y+r.height/2-s.height/2,h=r[i]/2-s[i]/2;let g;switch(l){case"top":g={x:d,y:r.y-s.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-s.width,y:u};break;default:g={x:r.x,y:r.y}}switch(mn(e)){case"start":g[o]-=h*(n&&c?-1:1);break;case"end":g[o]+=h*(n&&c?-1:1);break}return g}const H1=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:o}=n,i=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:u}=kh(c,r,l),h=r,g={},m=0;for(let p=0;p<i.length;p++){const{name:b,fn:y}=i[p],{x:v,y:k,data:w,reset:x}=await y({x:d,y:u,initialPlacement:r,placement:h,strategy:s,middlewareData:g,rects:c,platform:o,elements:{reference:t,floating:e}});d=v??d,u=k??u,g={...g,[b]:{...g[b],...w}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(c=x.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):x.rects),{x:d,y:u}=kh(c,h,l)),p=-1)}return{x:d,y:u,placement:h,strategy:s,middlewareData:g}};async function mc(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:a,rects:o,elements:i,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:g=0}=ms(e,t),m=xh(g),b=i[h?u==="floating"?"reference":"floating":u],y=Ro(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),v=u==="floating"?{...o.floating,x:r,y:s}:o.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),w=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},x=Ro(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:v,offsetParent:k,strategy:l}):v);return{top:(y.top-x.top+m.top)/w.y,bottom:(x.bottom-y.bottom+m.bottom)/w.y,left:(y.left-x.left+m.left)/w.x,right:(x.right-y.right+m.right)/w.x}}const Y1=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:a,platform:o,elements:i,middlewareData:l}=e,{element:c,padding:d=0}=ms(t,e)||{};if(c==null)return{};const u=xh(d),h={x:n,y:r},g=gc(s),m=hc(g),p=await o.getDimensions(c),b=g==="y",y=b?"top":"left",v=b?"bottom":"right",k=b?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[g]-h[g]-a.floating[m],x=h[g]-a.reference[g],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let N=C?C[k]:0;(!N||!await(o.isElement==null?void 0:o.isElement(C)))&&(N=i.floating[k]||a.floating[m]);const M=w/2-x/2,P=N/2-p[m]/2-1,S=hs(u[y],P),B=hs(u[v],P),A=S,T=N-p[m]-B,D=N/2-p[m]/2+M,j=fc(A,D,T),E=!l.arrow&&mn(s)!=null&&D!==j&&a.reference[m]/2-(D<A?S:B)-p[m]/2<0,Y=E?D<A?D-A:D-T:0;return{[g]:h[g]+Y,data:{[g]:j,centerOffset:D-j-Y,...E&&{alignmentOffset:Y}},reset:E}}});function V1(t,e,n){return(t?[...n.filter(s=>mn(s)===t),...n.filter(s=>mn(s)!==t)]:n.filter(s=>Fn(s)===s)).filter(s=>t?mn(s)===t||(e?Io(s)!==s:!1):!0)}const U1=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,s;const{rects:a,middlewareData:o,placement:i,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:h=yh,autoAlignment:g=!0,...m}=ms(t,e),p=u!==void 0||h===yh?V1(u||null,g,h):h,b=await mc(e,m),y=((n=o.autoPlacement)==null?void 0:n.index)||0,v=p[y];if(v==null)return{};const k=vh(v,a,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(i!==v)return{reset:{placement:p[0]}};const w=[b[Fn(v)],b[k[0]],b[k[1]]],x=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:w}],C=p[y+1];if(C)return{data:{index:y+1,overflows:x},reset:{placement:C}};const N=x.map(S=>{const B=mn(S.placement);return[S.placement,B&&d?S.overflows.slice(0,2).reduce((A,T)=>A+T,0):S.overflows[0],S.overflows]}).sort((S,B)=>S[1]-B[1]),P=((s=N.filter(S=>S[2].slice(0,mn(S[0])?2:3).every(B=>B<=0))[0])==null?void 0:s[0])||N[0][0];return P!==i?{data:{index:y+1,overflows:x},reset:{placement:P}}:{}}}},X1=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:a,rects:o,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...b}=ms(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Fn(s),v=Fn(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=h||(v||!p?[Ao(i)]:F1(i));!h&&m!=="none"&&w.push(...W1(i,p,m,k));const x=[i,...w],C=await mc(e,b),N=[];let M=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&N.push(C[y]),u){const A=vh(s,o,k);N.push(C[A[0]],C[A[1]])}if(M=[...M,{placement:s,overflows:N}],!N.every(A=>A<=0)){var P,S;const A=(((P=a.flip)==null?void 0:P.index)||0)+1,T=x[A];if(T)return{data:{index:A,overflows:M},reset:{placement:T}};let D=(S=M.filter(j=>j.overflows[0]<=0).sort((j,E)=>j.overflows[1]-E.overflows[1])[0])==null?void 0:S.placement;if(!D)switch(g){case"bestFit":{var B;const j=(B=M.map(E=>[E.placement,E.overflows.filter(Y=>Y>0).reduce((Y,X)=>Y+X,0)]).sort((E,Y)=>E[1]-Y[1])[0])==null?void 0:B[0];j&&(D=j);break}case"initialPlacement":D=i;break}if(s!==D)return{reset:{placement:D}}}return{}}}};async function G1(t,e){const{placement:n,platform:r,elements:s}=t,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Fn(n),i=mn(n),l=jo(n)==="y",c=["left","top"].includes(o)?-1:1,d=a&&l?-1:1,u=ms(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return i&&typeof m=="number"&&(g=i==="end"?m*-1:m),l?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const K1=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:a,placement:o,middlewareData:i}=e,l=await G1(e,t);return o===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:a+l.y,data:{...l,placement:o}}}}},Z1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:i={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...l}=ms(t,e),c={x:n,y:r},d=await mc(e,l),u=jo(Fn(s)),h=wh(u);let g=c[h],m=c[u];if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=g+d[b],k=g-d[y];g=fc(v,g,k)}if(o){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",v=m+d[b],k=m-d[y];m=fc(v,m,k)}const p=i.fn({...e,[h]:g,[u]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function _h(t){const e=Qt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=ht(t),a=s?t.offsetWidth:n,o=s?t.offsetHeight:r,i=No(n)!==a||No(r)!==o;return i&&(n=a,r=o),{width:n,height:r,$:i}}function pc(t){return Ne(t)?t:t.contextElement}function ps(t){const e=pc(t);if(!ht(e))return gn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:a}=_h(e);let o=(a?No(n.width):n.width)/r,i=(a?No(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const Q1=gn(0);function Ch(t){const e=Mt(t);return!sc()||!e.visualViewport?Q1:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function J1(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Mt(t)?!1:e}function Tr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),a=pc(t);let o=gn(1);e&&(r?Ne(r)&&(o=ps(r)):o=ps(t));const i=J1(a,n,r)?Ch(a):gn(0);let l=(s.left+i.x)/o.x,c=(s.top+i.y)/o.y,d=s.width/o.x,u=s.height/o.y;if(a){const h=Mt(a),g=r&&Ne(r)?Mt(r):r;let m=h,p=ac(m);for(;p&&r&&g!==m;){const b=ps(p),y=p.getBoundingClientRect(),v=Qt(p),k=y.left+(p.clientLeft+parseFloat(v.paddingLeft))*b.x,w=y.top+(p.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=w,m=Mt(p),p=ac(m)}}return Ro({width:d,height:u,x:l,y:c})}function bc(t,e){const n=To(t).scrollLeft;return e?e.left+n:Tr(fn(t)).left+n}function Sh(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:bc(t,r)),a=r.top+e.scrollTop;return{x:s,y:a}}function q1(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const a=s==="fixed",o=fn(r),i=e?Eo(e.floating):!1;if(r===o||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=gn(1);const d=gn(0),u=ht(r);if((u||!u&&!a)&&((Mr(r)!=="body"||da(o))&&(l=To(r)),ht(r))){const g=Tr(r);c=ps(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=o&&!u&&!a?Sh(o,l,!0):gn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function $1(t){return Array.from(t.getClientRects())}function ek(t){const e=fn(t),n=To(t),r=t.ownerDocument.body,s=Er(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Er(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+bc(t);const i=-n.scrollTop;return Qt(r).direction==="rtl"&&(o+=Er(e.clientWidth,r.clientWidth)-s),{width:s,height:a,x:o,y:i}}function tk(t,e){const n=Mt(t),r=fn(t),s=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;const c=sc();(!c||c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i,y:l}}function nk(t,e){const n=Tr(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,a=ht(t)?ps(t):gn(1),o=t.clientWidth*a.x,i=t.clientHeight*a.y,l=s*a.x,c=r*a.y;return{width:o,height:i,x:l,y:c}}function Oh(t,e,n){let r;if(e==="viewport")r=tk(t,n);else if(e==="document")r=ek(fn(t));else if(Ne(e))r=nk(e,n);else{const s=Ch(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Ro(r)}function Dh(t,e){const n=Ln(t);return n===e||!Ne(n)||ar(n)?!1:Qt(n).position==="fixed"||Dh(n,e)}function rk(t,e){const n=e.get(t);if(n)return n;let r=or(t,[],!1).filter(i=>Ne(i)&&Mr(i)!=="body"),s=null;const a=Qt(t).position==="fixed";let o=a?Ln(t):t;for(;Ne(o)&&!ar(o);){const i=Qt(o),l=rc(o);!l&&i.position==="fixed"&&(s=null),(a?!l&&!s:!l&&i.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||da(o)&&!l&&Dh(t,o))?r=r.filter(d=>d!==o):s=i,o=Ln(o)}return e.set(t,r),r}function sk(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?Eo(e)?[]:rk(e,this._c):[].concat(n),r],i=o[0],l=o.reduce((c,d)=>{const u=Oh(e,d,s);return c.top=Er(u.top,c.top),c.right=hs(u.right,c.right),c.bottom=hs(u.bottom,c.bottom),c.left=Er(u.left,c.left),c},Oh(e,i,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ak(t){const{width:e,height:n}=_h(t);return{width:e,height:n}}function ok(t,e,n){const r=ht(e),s=fn(e),a=n==="fixed",o=Tr(t,!0,a,e);let i={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!a)if((Mr(e)!=="body"||da(s))&&(i=To(e)),r){const h=Tr(e,!0,a,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else s&&(l.x=bc(s));const c=s&&!r&&!a?Sh(s,i):gn(0),d=o.left+i.scrollLeft-l.x-c.x,u=o.top+i.scrollTop-l.y-c.y;return{x:d,y:u,width:o.width,height:o.height}}function yc(t){return Qt(t).position==="static"}function Mh(t,e){if(!ht(t)||Qt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return fn(t)===n&&(n=n.ownerDocument.body),n}function Eh(t,e){const n=Mt(t);if(Eo(t))return n;if(!ht(t)){let s=Ln(t);for(;s&&!ar(s);){if(Ne(s)&&!yc(s))return s;s=Ln(s)}return n}let r=Mh(t,e);for(;r&&E1(r)&&yc(r);)r=Mh(r,e);return r&&ar(r)&&yc(r)&&!rc(r)?n:r||T1(t)||n}const ik=async function(t){const e=this.getOffsetParent||Eh,n=this.getDimensions,r=await n(t.floating);return{reference:ok(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lk(t){return Qt(t).direction==="rtl"}const ck={convertOffsetParentRelativeRectToViewportRelativeRect:q1,getDocumentElement:fn,getClippingRect:sk,getOffsetParent:Eh,getElementRects:ik,getClientRects:$1,getDimensions:ak,getScale:ps,isElement:Ne,isRTL:lk};function Th(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function dk(t,e){let n=null,r;const s=fn(t);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function o(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:u,width:h,height:g}=c;if(i||e(),!h||!g)return;const m=gs(u),p=gs(s.clientWidth-(d+h)),b=gs(s.clientHeight-(u+g)),y=gs(d),k={rootMargin:-m+"px "+-p+"px "+-b+"px "+-y+"px",threshold:Er(0,hs(1,l))||1};let w=!0;function x(C){const N=C[0].intersectionRatio;if(N!==l){if(!w)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!Th(c,t.getBoundingClientRect())&&o(),w=!1}try{n=new IntersectionObserver(x,{...k,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,k)}n.observe(t)}return o(!0),a}function Ph(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=pc(t),d=s||a?[...c?or(c):[],...or(e)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?dk(c,n):null;let h=-1,g=null;o&&(g=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=g)==null||k.observe(e)})),n()}),c&&!l&&g.observe(c),g.observe(e));let m,p=l?Tr(t):null;l&&b();function b(){const y=Tr(t);p&&!Th(p,y)&&n(),p=y,m=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(v=>{s&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),u==null||u(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const uk=K1,fk=U1,hk=Z1,gk=X1,Nh=Y1,mk=(t,e,n)=>{const r=new Map,s={platform:ck,...n},a={...s.platform,_c:r};return H1(t,e,{...s,platform:a})};var Lo=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Fo(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 n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Fo(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&t.$$typeof)&&!Fo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function jh(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ih(t,e){const n=jh(t);return Math.round(e*n)/n}function wc(t){const e=W.useRef(t);return Lo(()=>{e.current=t}),e}function pk(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:o}={},transform:i=!0,whileElementsMounted:l,open:c}=t,[d,u]=W.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,g]=W.useState(r);Fo(h,r)||g(r);const[m,p]=W.useState(null),[b,y]=W.useState(null),v=W.useCallback(X=>{X!==C.current&&(C.current=X,p(X))},[]),k=W.useCallback(X=>{X!==N.current&&(N.current=X,y(X))},[]),w=a||m,x=o||b,C=W.useRef(null),N=W.useRef(null),M=W.useRef(d),P=l!=null,S=wc(l),B=wc(s),A=wc(c),T=W.useCallback(()=>{if(!C.current||!N.current)return;const X={placement:e,strategy:n,middleware:h};B.current&&(X.platform=B.current),mk(C.current,N.current,X).then(ee=>{const I={...ee,isPositioned:A.current!==!1};D.current&&!Fo(M.current,I)&&(M.current=I,_x.flushSync(()=>{u(I)}))})},[h,e,n,B,A]);Lo(()=>{c===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(X=>({...X,isPositioned:!1})))},[c]);const D=W.useRef(!1);Lo(()=>(D.current=!0,()=>{D.current=!1}),[]),Lo(()=>{if(w&&(C.current=w),x&&(N.current=x),w&&x){if(S.current)return S.current(w,x,T);T()}},[w,x,T,S,P]);const j=W.useMemo(()=>({reference:C,floating:N,setReference:v,setFloating:k}),[v,k]),E=W.useMemo(()=>({reference:w,floating:x}),[w,x]),Y=W.useMemo(()=>{const X={position:n,left:0,top:0};if(!E.floating)return X;const ee=Ih(E.floating,d.x),I=Ih(E.floating,d.y);return i?{...X,transform:"translate("+ee+"px, "+I+"px)",...jh(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:I}},[n,i,E.floating,d.x,d.y]);return W.useMemo(()=>({...d,update:T,refs:j,elements:E,floatingStyles:Y}),[d,T,j,E,Y])}const bk=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Nh({element:r.current,padding:s}).fn(n):{}:r?Nh({element:r,padding:s}).fn(n):{}}}},yk=(t,e)=>({...uk(t),options:[t,e]}),wk=(t,e)=>({...hk(t),options:[t,e]}),vk=(t,e)=>({...gk(t),options:[t,e]}),xk=(t,e)=>({...fk(t),options:[t,e]}),kk=(t,e)=>({...bk(t),options:[t,e]});/*!
|
|
6
6
|
* tabbable 6.2.0
|
|
7
7
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
8
|
-
*/var w1=["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])"],Bo=w1.join(","),Ih=typeof Element>"u",bs=Ih?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Wo=!Ih&&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},zo=function t(e,n){var r;n===void 0&&(n=!0);var s=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=s===""||s==="true",o=a||n&&e&&t(e.parentNode);return o},v1=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},x1=function(e,n,r){if(zo(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Bo));return n&&bs.call(e,Bo)&&s.unshift(e),s=s.filter(r),s},k1=function t(e,n,r){for(var s=[],a=Array.from(e);a.length;){var o=a.shift();if(!zo(o,!1))if(o.tagName==="SLOT"){var i=o.assignedElements(),l=i.length?i:o.children,c=t(l,!0,r);r.flatten?s.push.apply(s,c):s.push({scopeParent:o,candidates:c})}else{var d=bs.call(o,Bo);d&&r.filter(o)&&(n||!e.includes(o))&&s.push(o);var u=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),g=!zo(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&g){var h=t(u===!0?o.children:u.children,!0,r);r.flatten?s.push.apply(s,h):s.push({scopeParent:o,candidates:h})}else a.unshift.apply(a,o.children)}}return s},Ah=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Rh=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||v1(e))&&!Ah(e)?0:e.tabIndex},_1=function(e,n){var r=Rh(e);return r<0&&n&&!Ah(e)?0:r},S1=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Lh=function(e){return e.tagName==="INPUT"},C1=function(e){return Lh(e)&&e.type==="hidden"},O1=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},D1=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},M1=function(e){if(!e.name)return!0;var n=e.form||Wo(e),r=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(e.name));else try{s=r(e.name)}catch(o){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",o.message),!1}var a=D1(s,e.form);return!a||a===e},E1=function(e){return Lh(e)&&e.type==="radio"},T1=function(e){return E1(e)&&!M1(e)},P1=function(e){var n,r=e&&Wo(e),s=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==e){var o,i,l;for(a=!!((o=s)!==null&&o!==void 0&&(i=o.ownerDocument)!==null&&i!==void 0&&i.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!a&&s;){var c,d,u;r=Wo(s),s=(c=r)===null||c===void 0?void 0:c.host,a=!!((d=s)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(s))}}return a},Fh=function(e){var n=e.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},N1=function(e,n){var r=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=bs.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if(bs.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof s=="function"){for(var i=e;e;){var l=e.parentElement,c=Wo(e);if(l&&!l.shadowRoot&&s(l)===!0)return Fh(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=i}if(P1(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Fh(e);return!1},j1=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return bs.call(n,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}n=n.parentElement}return!1},I1=function(e,n){return!(n.disabled||zo(n)||C1(n)||N1(n,e)||O1(n)||j1(n))},vc=function(e,n){return!(T1(n)||Rh(n)<0||!I1(e,n))},A1=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},R1=function t(e){var n=[],r=[];return e.forEach(function(s,a){var o=!!s.scopeParent,i=o?s.scopeParent:s,l=_1(i,o),c=o?t(s.candidates):i;l===0?o?n.push.apply(n,c):n.push(i):r.push({documentOrder:a,tabIndex:l,item:s,isScope:o,content:c})}),r.sort(S1).reduce(function(s,a){return a.isScope?s.push.apply(s,a.content):s.push(a.content),s},[]).concat(n)},Ho=function(e,n){n=n||{};var r;return n.getShadowRoot?r=k1([e],n.includeContainer,{filter:vc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:A1}):r=x1(e,n.includeContainer,vc.bind(null,n)),R1(r)},L1=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return bs.call(e,Bo)===!1?!1:vc(n,e)};function Bh(t){return B.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})},t)}const F1=B.useInsertionEffect||(t=>t());function pn(t){const e=B.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return F1(()=>{e.current=t}),B.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}const xc="ArrowUp",ua="ArrowDown",ys="ArrowLeft",ws="ArrowRight";function Yo(t,e,n){return Math.floor(t/e)!==n}function fa(t,e){return e<0||e>=t.current.length}function kc(t,e){return yt(t,{disabledIndices:e})}function Wh(t,e){return yt(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function yt(t,e){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:s,amount:a=1}=e===void 0?{}:e;const o=t.current,i=s?c=>s.includes(c):c=>{const d=o[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=n;do l+=r?-a:a;while(l>=0&&l<=o.length-1&&i(l));return l}function B1(t,e){let{event:n,orientation:r,loop:s,cols:a,disabledIndices:o,minIndex:i,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(n.key===xc){if(d&>(n),c===-1)u=l;else if(u=yt(t,{startingIndex:u,amount:a,decrement:!0,disabledIndices:o}),s&&(c-a<i||u<0)){const g=c%a,h=l%a,p=l-(h-g);h===g?u=l:u=h>g?p:p-a}fa(t,u)&&(u=c)}if(n.key===ua&&(d&>(n),c===-1?u=i:(u=yt(t,{startingIndex:c,amount:a,disabledIndices:o}),s&&c+a>l&&(u=yt(t,{startingIndex:c%a-a,amount:a,disabledIndices:o}))),fa(t,u)&&(u=c)),r==="both"){const g=gs(c/a);n.key===ws&&(d&>(n),c%a!==a-1?(u=yt(t,{startingIndex:c,disabledIndices:o}),s&&Yo(u,a,g)&&(u=yt(t,{startingIndex:c-c%a-1,disabledIndices:o}))):s&&(u=yt(t,{startingIndex:c-c%a-1,disabledIndices:o})),Yo(u,a,g)&&(u=c)),n.key===ys&&(d&>(n),c%a!==0?(u=yt(t,{startingIndex:c,disabledIndices:o,decrement:!0}),s&&Yo(u,a,g)&&(u=yt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o}))):s&&(u=yt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o})),Yo(u,a,g)&&(u=c));const h=gs(l/a)===g;fa(t,u)&&(s&&h?u=n.key===ys?l:yt(t,{startingIndex:c-c%a-1,disabledIndices:o}):u=c)}return u}function W1(t,e,n){const r=[];let s=0;return t.forEach((a,o)=>{let{width:i,height:l}=a;if(i>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+o+" is greater than grid columns");let c=!1;for(n&&(s=0);!c;){const d=[];for(let u=0;u<i;u++)for(let g=0;g<l;g++)d.push(s+u+g*e);s%e+i<=e&&d.every(u=>r[u]==null)?(d.forEach(u=>{r[u]=o}),c=!0):s++}}),[...r]}function z1(t,e,n,r,s){if(t===-1)return-1;const a=n.indexOf(t);switch(s){case"tl":return a;case"tr":return a+e[t].width-1;case"bl":return a+(e[t].height-1)*r;case"br":return n.lastIndexOf(t)}}function H1(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}let zh=0;function Bn(t,e){e===void 0&&(e={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:s=!1}=e;r&&cancelAnimationFrame(zh);const a=()=>t==null?void 0:t.focus({preventScroll:n});s?a():zh=requestAnimationFrame(a)}var Re=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Y1(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function V1(t,e){if(t.size!==e.size)return!1;for(const[n,r]of t.entries())if(r!==e.get(n))return!1;return!0}const Hh=B.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function U1(t){let{children:e,elementsRef:n,labelsRef:r}=t;const[s,a]=B.useState(()=>new Map),o=B.useCallback(l=>{a(c=>new Map(c).set(l,null))},[]),i=B.useCallback(l=>{a(c=>{const d=new Map(c);return d.delete(l),d})},[]);return Re(()=>{const l=new Map(s);Array.from(l.keys()).sort(Y1).forEach((d,u)=>{l.set(d,u)}),V1(s,l)||a(l)},[s]),B.createElement(Hh.Provider,{value:B.useMemo(()=>({register:o,unregister:i,map:s,elementsRef:n,labelsRef:r}),[o,i,s,n,r])},e)}function X1(t){let{label:e}=t===void 0?{}:t;const[n,r]=B.useState(null),s=B.useRef(null),{register:a,unregister:o,map:i,elementsRef:l,labelsRef:c}=B.useContext(Hh),d=B.useCallback(u=>{if(s.current=u,n!==null&&(l.current[n]=u,c)){var g;const h=e!==void 0;c.current[n]=h?e:(g=u==null?void 0:u.textContent)!=null?g:null}},[n,l,c,e]);return Re(()=>{const u=s.current;if(u)return a(u),()=>{o(u)}},[a,o]),Re(()=>{const u=s.current?i.get(s.current):null;u!=null&&r(u)},[i]),B.useMemo(()=>({ref:d,index:n??-1}),[n,d])}function ha(){return ha=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ha.apply(this,arguments)}let _c=!1,G1=0;const Yh=()=>"floating-ui-"+G1++;function K1(){const[t,e]=B.useState(()=>_c?Yh():void 0);return Re(()=>{t==null&&e(Yh())},[]),B.useEffect(()=>{_c||(_c=!0)},[]),t}const Vo=B.useId||K1;function Q1(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(s=>s(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(s=>s!==n))||[])}}}const Z1=B.createContext(null),J1=B.createContext(null),Uo=()=>{var t;return((t=B.useContext(Z1))==null?void 0:t.id)||null},ga=()=>B.useContext(J1);function Pr(t){return"data-floating-ui-"+t}function bn(t){const e=_.useRef(t);return Re(()=>{e.current=t}),e}const Vh=Pr("safe-polygon");function Sc(t,e,n){return n&&!Po(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function q1(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,events:a,elements:{domReference:o,floating:i},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:g=!1,restMs:h=0,move:p=!0}=e,m=ga(),b=Uo(),y=bn(u),v=bn(d),k=B.useRef(),w=B.useRef(),x=B.useRef(),S=B.useRef(),P=B.useRef(!0),C=B.useRef(!1),N=B.useRef(()=>{}),T=B.useCallback(()=>{var D;const j=(D=s.current.openEvent)==null?void 0:D.type;return(j==null?void 0:j.includes("mouse"))&&j!=="mousedown"},[s]);B.useEffect(()=>{if(!c)return;function D(j){let{open:M}=j;M||(clearTimeout(w.current),clearTimeout(S.current),P.current=!0)}return a.on("openchange",D),()=>{a.off("openchange",D)}},[c,a]),B.useEffect(()=>{if(!c||!y.current||!n)return;function D(M){T()&&r(!1,M,"hover")}const j=_t(i).documentElement;return j.addEventListener("mouseleave",D),()=>{j.removeEventListener("mouseleave",D)}},[i,n,r,c,y,T]);const Y=B.useCallback(function(D,j,M){j===void 0&&(j=!0),M===void 0&&(M="hover");const H=Sc(v.current,"close",k.current);H&&!x.current?(clearTimeout(w.current),w.current=setTimeout(()=>r(!1,D,M),H)):j&&(clearTimeout(w.current),r(!1,D,M))},[v,r]),F=B.useCallback(()=>{N.current(),x.current=void 0},[]),E=B.useCallback(()=>{if(C.current){const D=_t(l.floating.current).body;D.style.pointerEvents="",D.removeAttribute(Vh),C.current=!1}},[l]);return B.useEffect(()=>{if(!c)return;function D(){return s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1}function j(X){if(clearTimeout(w.current),P.current=!1,g&&!Po(k.current)||h>0&&Sc(v.current,"open")===0)return;const ee=Sc(v.current,"open",k.current);ee?w.current=setTimeout(()=>{r(!0,X,"hover")},ee):r(!0,X,"hover")}function M(X){if(D())return;N.current();const ee=_t(i);if(clearTimeout(S.current),y.current){n||clearTimeout(w.current),x.current=y.current({...t,tree:m,x:X.clientX,y:X.clientY,onClose(){E(),F(),Y(X,!0,"safe-polygon")}});const V=x.current;ee.addEventListener("mousemove",V),N.current=()=>{ee.removeEventListener("mousemove",V)};return}(k.current==="touch"?!tt(i,X.relatedTarget):!0)&&Y(X)}function H(X){D()||y.current==null||y.current({...t,tree:m,x:X.clientX,y:X.clientY,onClose(){E(),F(),Y(X)}})(X)}if(Ne(o)){const X=o;return n&&X.addEventListener("mouseleave",H),i==null||i.addEventListener("mouseleave",H),p&&X.addEventListener("mousemove",j,{once:!0}),X.addEventListener("mouseenter",j),X.addEventListener("mouseleave",M),()=>{n&&X.removeEventListener("mouseleave",H),i==null||i.removeEventListener("mouseleave",H),p&&X.removeEventListener("mousemove",j),X.removeEventListener("mouseenter",j),X.removeEventListener("mouseleave",M)}}},[o,i,c,t,g,h,p,Y,F,E,r,n,m,v,y,s]),Re(()=>{var D;if(c&&n&&(D=y.current)!=null&&D.__options.blockPointerEvents&&T()){const M=_t(i).body;if(M.setAttribute(Vh,""),M.style.pointerEvents="none",C.current=!0,Ne(o)&&i){var j;const H=o,X=m==null||(j=m.nodesRef.current.find(ee=>ee.id===b))==null||(j=j.context)==null?void 0:j.elements.floating;return X&&(X.style.pointerEvents=""),H.style.pointerEvents="auto",i.style.pointerEvents="auto",()=>{H.style.pointerEvents="",i.style.pointerEvents=""}}}},[c,n,b,i,o,m,y,T]),Re(()=>{n||(k.current=void 0,F(),E())},[n,F,E]),B.useEffect(()=>()=>{F(),clearTimeout(w.current),clearTimeout(S.current),E()},[c,o,F,E]),B.useMemo(()=>{if(!c)return{};function D(j){k.current=j.pointerType}return{reference:{onPointerDown:D,onPointerEnter:D,onMouseMove(j){n||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{P.current||r(!0,j.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(j){Y(j.nativeEvent,!1)}}}},[c,h,n,r,Y])}function $1(t,e){var n;let r=[],s=(n=t.find(a=>a.id===e))==null?void 0:n.parentId;for(;s;){const a=t.find(o=>o.id===s);s=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function Nr(t,e){let n=t.filter(s=>{var a;return s.parentId===e&&((a=s.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=t.filter(s=>{var a;return(a=r)==null?void 0:a.some(o=>{var i;return s.parentId===o.id&&((i=s.context)==null?void 0:i.open)})}),n=n.concat(r);return n}function e_(t,e){let n,r=-1;function s(a,o){o>r&&(n=a,r=o),Nr(t,a).forEach(l=>{s(l.id,o+1)})}return s(e,0),t.find(a=>a.id===n)}let vs=new WeakMap,Xo=new WeakSet,Go={},Cc=0;const t_=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Uh=t=>t&&(t.host||Uh(t.parentNode)),n_=(t,e)=>e.map(n=>{if(t.contains(n))return n;const r=Uh(n);return t.contains(r)?r:null}).filter(n=>n!=null);function r_(t,e,n,r){const s="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=n_(e,t),i=new Set,l=new Set(o),c=[];Go[s]||(Go[s]=new WeakMap);const d=Go[s];o.forEach(u),g(e),i.clear();function u(h){!h||i.has(h)||(i.add(h),h.parentNode&&u(h.parentNode))}function g(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,p=>{if(i.has(p))g(p);else{const m=a?p.getAttribute(a):null,b=m!==null&&m!=="false",y=(vs.get(p)||0)+1,v=(d.get(p)||0)+1;vs.set(p,y),d.set(p,v),c.push(p),y===1&&b&&Xo.add(p),v===1&&p.setAttribute(s,""),!b&&a&&p.setAttribute(a,"true")}})}return Cc++,()=>{c.forEach(h=>{const p=(vs.get(h)||0)-1,m=(d.get(h)||0)-1;vs.set(h,p),d.set(h,m),p||(!Xo.has(h)&&a&&h.removeAttribute(a),Xo.delete(h)),m||h.removeAttribute(s)}),Cc--,Cc||(vs=new WeakMap,vs=new WeakMap,Xo=new WeakSet,Go={})}}function Xh(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=_t(t[0]).body;return r_(t.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,e,n)}const ma=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Gh(t,e){const n=Ho(t,ma());e==="prev"&&n.reverse();const r=n.indexOf(hn(_t(t)));return n.slice(r+1)[0]}function Kh(){return Gh(document.body,"next")}function Qh(){return Gh(document.body,"prev")}function pa(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!tt(n,r)}function s_(t){Ho(t,ma()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function a_(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Oc={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 o_;function Zh(t){t.key==="Tab"&&(t.target,clearTimeout(o_))}const Ko=B.forwardRef(function(e,n){const[r,s]=B.useState();Re(()=>(lc()&&s("button"),document.addEventListener("keydown",Zh),()=>{document.removeEventListener("keydown",Zh)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Pr("focus-guard")]:"",style:Oc};return B.createElement("span",ha({},e,a))}),Jh=B.createContext(null),qh=Pr("portal");function i_(t){let{id:e,root:n}=t===void 0?{}:t;const[r,s]=B.useState(null),a=Vo(),o=$h(),i=B.useRef(null);return Re(()=>()=>{r==null||r.remove(),queueMicrotask(()=>{i.current=null})},[r]),Re(()=>{if(i.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=a,c.setAttribute(qh,""),l.appendChild(c),i.current=c,s(c)},[e,a]),Re(()=>{if(i.current)return;let l=n||(o==null?void 0:o.portalNode);l&&!Ne(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=a,d.setAttribute(qh,""),l=c||l,l.appendChild(d),i.current=d,s(d)},[e,n,a,o]),r}function l_(t){let{children:e,id:n,root:r=null,preserveTabOrder:s=!0}=t;const a=i_({id:n,root:r}),[o,i]=B.useState(null),l=B.useRef(null),c=B.useRef(null),d=B.useRef(null),u=B.useRef(null),g=!!o&&!o.modal&&o.open&&s&&!!(r||a);return B.useEffect(()=>{if(!a||!s||o!=null&&o.modal)return;function h(p){a&&pa(p)&&(p.type==="focusin"?a_:s_)(a)}return a.addEventListener("focusin",h,!0),a.addEventListener("focusout",h,!0),()=>{a.removeEventListener("focusin",h,!0),a.removeEventListener("focusout",h,!0)}},[a,s,o==null?void 0:o.modal]),B.createElement(Jh.Provider,{value:B.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:a,setFocusManagerState:i}),[s,a])},g&&a&&B.createElement(Ko,{"data-type":"outside",ref:l,onFocus:h=>{if(pa(h,a)){var p;(p=d.current)==null||p.focus()}else{const m=Qh()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus()}}}),g&&a&&B.createElement("span",{"aria-owns":a.id,style:Oc}),a&&vf.createPortal(e,a),g&&a&&B.createElement(Ko,{"data-type":"outside",ref:c,onFocus:h=>{if(pa(h,a)){var p;(p=u.current)==null||p.focus()}else{const m=Kh()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,h.nativeEvent))}}}))}const $h=()=>B.useContext(Jh),c_=20;let jr=[];function Dc(t){jr=jr.filter(n=>n.isConnected);let e=t;if(!(!e||Mr(e)==="body")){if(!L1(e,ma())){const n=Ho(e,ma())[0];if(!n)return;e=n}jr.push(e),jr.length>c_&&(jr=jr.slice(-20))}}function eg(){return jr.slice().reverse().find(t=>t.isConnected)}const d_=B.forwardRef(function(e,n){return B.createElement("button",ha({},e,{type:"button",ref:n,tabIndex:-1,style:Oc}))});function tg(t){const{context:e,children:n,disabled:r=!1,order:s=["content"],guards:a=!0,initialFocus:o=0,returnFocus:i=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:g,nodeId:h,onOpenChange:p,events:m,dataRef:b,elements:{domReference:y,floating:v}}=e,k=typeof o=="number"&&o<0,w=mh(y)&&k,x=t_()?a:!0,S=bn(s),P=bn(o),C=bn(i),N=ga(),T=$h(),Y=B.useRef(null),F=B.useRef(null),E=B.useRef(!1),D=B.useRef(!1),j=T!=null,M=B.useCallback(function(I){return I===void 0&&(I=v),I?Ho(I,ma()):[]},[v]),H=B.useCallback(I=>{const V=M(I);return S.current.map(L=>y&&L==="reference"?y:v&&L==="floating"?v:V).filter(Boolean).flat()},[y,v,S,M]);B.useEffect(()=>{if(r||!l)return;function I(L){if(L.key==="Tab"){tt(v,hn(_t(v)))&&M().length===0&&!w&>(L);const R=H(),A=ir(L);S.current[0]==="reference"&&A===y&&(gt(L),L.shiftKey?Bn(R[R.length-1]):Bn(R[1])),S.current[1]==="floating"&&A===v&&L.shiftKey&&(gt(L),Bn(R[0]))}}const V=_t(v);return V.addEventListener("keydown",I),()=>{V.removeEventListener("keydown",I)}},[r,y,v,l,S,w,M,H]),B.useEffect(()=>{if(r||!d)return;function I(){D.current=!0,setTimeout(()=>{D.current=!1})}function V(L){const R=L.relatedTarget;queueMicrotask(()=>{const A=!(tt(y,R)||tt(v,R)||tt(R,v)||tt(T==null?void 0:T.portalNode,R)||R!=null&&R.hasAttribute(Pr("focus-guard"))||N&&(Nr(N.nodesRef.current,h).find(O=>{var W,J;return tt((W=O.context)==null?void 0:W.elements.floating,R)||tt((J=O.context)==null?void 0:J.elements.domReference,R)})||$1(N.nodesRef.current,h).find(O=>{var W,J;return((W=O.context)==null?void 0:W.elements.floating)===R||((J=O.context)==null?void 0:J.elements.domReference)===R})));R&&A&&!D.current&&R!==eg()&&(E.current=!0,p(!1,L))})}if(v&&ht(y))return y.addEventListener("focusout",V),y.addEventListener("pointerdown",I),!l&&v.addEventListener("focusout",V),()=>{y.removeEventListener("focusout",V),y.removeEventListener("pointerdown",I),!l&&v.removeEventListener("focusout",V)}},[r,y,v,l,h,N,T,p,d]),B.useEffect(()=>{var I;if(r)return;const V=Array.from((T==null||(I=T.portalNode)==null?void 0:I.querySelectorAll("["+Pr("portal")+"]"))||[]);if(v){const L=[v,...V,Y.current,F.current,S.current.includes("reference")||w?y:null].filter(A=>A!=null),R=l||w?Xh(L,x,!x):Xh(L);return()=>{R()}}},[r,y,v,l,S,T,w,x]),Re(()=>{if(r||!v)return;const I=_t(v),V=hn(I);queueMicrotask(()=>{const L=H(v),R=P.current,A=(typeof R=="number"?L[R]:R.current)||v,O=tt(v,V);!k&&!O&&u&&Bn(A,{preventScroll:A===v})})},[r,u,v,k,H,P]),Re(()=>{if(r||!v)return;let I=!1;const V=_t(v),L=hn(V),R=b.current;Dc(L);function A(O){let{reason:W,event:J,nested:K}=O;W==="escape-key"&&g.domReference.current&&Dc(g.domReference.current),W==="hover"&&J.type==="mouseleave"&&(E.current=!0),W==="outside-press"&&(K?(E.current=!1,I=!0):E.current=!(hh(J)||ic(J)))}return m.on("openchange",A),()=>{m.off("openchange",A);const O=hn(V),W=tt(v,O)||N&&Nr(N.nodesRef.current,h).some(q=>{var te;return tt((te=q.context)==null?void 0:te.elements.floating,O)});(W||R.openEvent&&["click","mousedown"].includes(R.openEvent.type))&&g.domReference.current&&Dc(g.domReference.current);const K=eg();C.current&&!E.current&&ht(K)&&(!(K!==O&&O!==V.body)||W)&&Bn(K,{cancelPrevious:!1,preventScroll:I})}},[r,v,C,b,g,m,N,h]),Re(()=>{if(!(r||!T))return T.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:p,refs:g}),()=>{T.setFocusManagerState(null)}},[r,T,l,u,p,g,d]),Re(()=>{if(r||!v||typeof MutationObserver!="function"||k)return;const I=()=>{const L=v.getAttribute("tabindex");S.current.includes("floating")||hn(_t(v))!==g.domReference.current&&M().length===0?L!=="0"&&v.setAttribute("tabindex","0"):L!=="-1"&&v.setAttribute("tabindex","-1")};I();const V=new MutationObserver(I);return V.observe(v,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,v,g,S,M,k]);function X(I){return r||!c||!l?null:B.createElement(d_,{ref:I==="start"?Y:F,onClick:V=>p(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const ee=!r&&x&&(j||l);return B.createElement(B.Fragment,null,ee&&B.createElement(Ko,{"data-type":"inside",ref:T==null?void 0:T.beforeInsideRef,onFocus:I=>{if(l){const L=H();Bn(s[0]==="reference"?L[0]:L[L.length-1])}else if(T!=null&&T.preserveTabOrder&&T.portalNode)if(E.current=!1,pa(I,T.portalNode)){const L=Kh()||y;L==null||L.focus()}else{var V;(V=T.beforeOutsideRef.current)==null||V.focus()}}}),!w&&X("start"),n,X("end"),ee&&B.createElement(Ko,{"data-type":"inside",ref:T==null?void 0:T.afterInsideRef,onFocus:I=>{if(l)Bn(H()[0]);else if(T!=null&&T.preserveTabOrder&&T.portalNode)if(d&&(E.current=!0),pa(I,T.portalNode)){const L=Qh()||y;L==null||L.focus()}else{var V;(V=T.afterOutsideRef.current)==null||V.focus()}}}))}const Mc=new Set,u_=B.forwardRef(function(e,n){let{lockScroll:r=!1,...s}=e;const a=Vo();return Re(()=>{if(!r)return;Mc.add(a);const o=/iP(hone|ad|od)|iOS/.test(oc()),i=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=i.left?parseFloat(i.left):window.pageXOffset,g=i.top?parseFloat(i.top):window.pageYOffset;if(i.overflow="hidden",d&&(i[c]=d+"px"),o){var h,p;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(i,{position:"fixed",top:-(g-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{Mc.delete(a),Mc.size===0&&(Object.assign(i,{overflow:"",[c]:""}),o&&(Object.assign(i,{position:"",top:"",left:"",right:""}),window.scrollTo(u,g)))}},[a,r]),B.createElement("div",ha({ref:n},s,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}}))});function ng(t){return ht(t.target)&&t.target.tagName==="BUTTON"}function rg(t){return uc(t)}function sg(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:a}}=t,{enabled:o=!0,event:i="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=B.useRef(),g=B.useRef(!1);return B.useMemo(()=>o?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(Po(u.current,!0)&&c||i!=="click"&&(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")?r(!1,h.nativeEvent,"click"):(h.preventDefault(),r(!0,h.nativeEvent,"click"))))},onClick(h){if(i==="mousedown"&&u.current){u.current=void 0;return}Po(u.current,!0)&&c||(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="click")?r(!1,h.nativeEvent,"click"):r(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||ng(h))&&(h.key===" "&&!rg(a)&&(h.preventDefault(),g.current=!0),h.key==="Enter"&&r(!(n&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||ng(h)||rg(a)||h.key===" "&&g.current&&(g.current=!1,r(!(n&&l),h.nativeEvent,"click"))}}}:{},[o,s,i,c,d,a,l,n,r])}const f_={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},h_={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ag=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function og(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,nodeId:s,elements:{reference:a,domReference:o,floating:i},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:g="pointerdown",referencePress:h=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:y}=e,v=ga(),k=pn(typeof u=="function"?u:()=>!1),w=typeof u=="function"?k:u,x=B.useRef(!1),S=B.useRef(!1),{escapeKey:P,outsidePress:C}=ag(b),{escapeKey:N,outsidePress:T}=ag(y),Y=pn(j=>{if(!n||!c||!d||j.key!=="Escape")return;const M=v?Nr(v.nodesRef.current,s):[];if(!P&&(j.stopPropagation(),M.length>0)){let H=!0;if(M.forEach(X=>{var ee;if((ee=X.context)!=null&&ee.open&&!X.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,Mk(j)?j.nativeEvent:j,"escape-key")}),F=pn(j=>{var M;const H=()=>{var X;Y(j),(X=ir(j))==null||X.removeEventListener("keydown",H)};(M=ir(j))==null||M.addEventListener("keydown",H)}),E=pn(j=>{const M=x.current;x.current=!1;const H=S.current;if(S.current=!1,g==="click"&&H||M||typeof w=="function"&&!w(j))return;const X=ir(j),ee="["+Pr("inert")+"]",I=_t(i).querySelectorAll(ee);let V=Ne(X)?X:null;for(;V&&!ar(V);){const A=Ln(V);if(ar(A)||!Ne(A))break;V=A}if(I.length&&Ne(X)&&!Ek(X)&&!tt(X,i)&&Array.from(I).every(A=>!tt(V,A)))return;if(ht(X)&&i){const A=X.clientWidth>0&&X.scrollWidth>X.clientWidth,O=X.clientHeight>0&&X.scrollHeight>X.clientHeight;let W=O&&j.offsetX>X.clientWidth;if(O&&Zt(X).direction==="rtl"&&(W=j.offsetX<=X.offsetWidth-X.clientWidth),W||A&&j.offsetY>X.clientHeight)return}const L=v&&Nr(v.nodesRef.current,s).some(A=>{var O;return dc(j,(O=A.context)==null?void 0:O.elements.floating)});if(dc(j,i)||dc(j,o)||L)return;const R=v?Nr(v.nodesRef.current,s):[];if(R.length>0){let A=!0;if(R.forEach(O=>{var W;if((W=O.context)!=null&&W.open&&!O.context.dataRef.current.__outsidePressBubbles){A=!1;return}}),!A)return}r(!1,j,"outside-press")}),D=pn(j=>{var M;const H=()=>{var X;E(j),(X=ir(j))==null||X.removeEventListener(g,H)};(M=ir(j))==null||M.addEventListener(g,H)});return B.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=P,l.current.__outsidePressBubbles=C;function j(X){r(!1,X,"ancestor-scroll")}const M=_t(i);d&&M.addEventListener("keydown",N?F:Y,N),w&&M.addEventListener(g,T?D:E,T);let H=[];return m&&(Ne(o)&&(H=or(o)),Ne(i)&&(H=H.concat(or(i))),!Ne(a)&&a&&a.contextElement&&(H=H.concat(or(a.contextElement)))),H=H.filter(X=>{var ee;return X!==((ee=M.defaultView)==null?void 0:ee.visualViewport)}),H.forEach(X=>{X.addEventListener("scroll",j,{passive:!0})}),()=>{d&&M.removeEventListener("keydown",N?F:Y,N),w&&M.removeEventListener(g,T?D:E,T),H.forEach(X=>{X.removeEventListener("scroll",j)})}},[l,i,o,a,d,w,g,n,r,m,c,P,C,Y,N,F,E,T,D]),B.useEffect(()=>{x.current=!1},[w,g]),B.useMemo(()=>c?{reference:{onKeyDown:Y,[f_[p]]:j=>{h&&r(!1,j.nativeEvent,"reference-press")}},floating:{onKeyDown:Y,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[h_[g]]:()=>{x.current=!0}}}:{},[c,h,g,p,r,Y])}let Ec;process.env.NODE_ENV!=="production"&&(Ec=new Set);function ig(t){var e;t===void 0&&(t={});const{open:n=!1,onOpenChange:r,nodeId:s}=t;if(process.env.NODE_ENV!=="production"){var a;const C="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((a=t.elements)!=null&&a.reference&&!Ne(t.elements.reference)){var o;if(!((o=Ec)!=null&&o.has(C))){var i;(i=Ec)==null||i.add(C),console.error(C)}}}const[l,c]=B.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=f1(t),g=ga(),h=Uo()!=null,p=pn((C,N,T)=>{C&&(b.current.openEvent=N),y.emit("openchange",{open:C,event:N,reason:T,nested:h}),r==null||r(C,N,T)}),m=B.useRef(null),b=B.useRef({}),y=B.useState(()=>Q1())[0],v=Vo(),k=B.useCallback(C=>{const N=Ne(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;u.refs.setReference(N)},[u.refs]),w=B.useCallback(C=>{(Ne(C)||C===null)&&(m.current=C,c(C)),(Ne(u.refs.reference.current)||u.refs.reference.current===null||C!==null&&!Ne(C))&&u.refs.setReference(C)},[u.refs]),x=B.useMemo(()=>({...u.refs,setReference:w,setPositionReference:k,domReference:m}),[u.refs,w,k]),S=B.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),P=B.useMemo(()=>({...u,refs:x,elements:S,dataRef:b,nodeId:s,floatingId:v,events:y,open:n,onOpenChange:p}),[u,s,v,y,n,p,x,S]);return Re(()=>{const C=g==null?void 0:g.nodesRef.current.find(N=>N.id===s);C&&(C.context=P)}),B.useMemo(()=>({...u,context:P,refs:x,elements:S}),[u,x,S,P])}function g_(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:s,refs:a,elements:{domReference:o}}=t,{enabled:i=!0,visibleOnly:l=!0}=e,c=B.useRef(!1),d=B.useRef(),u=B.useRef(!0);return B.useEffect(()=>{if(!i)return;const g=Mt(o);function h(){!n&&ht(o)&&o===hn(_t(o))&&(c.current=!0)}function p(){u.current=!0}return g.addEventListener("blur",h),g.addEventListener("keydown",p,!0),()=>{g.removeEventListener("blur",h),g.removeEventListener("keydown",p,!0)}},[o,n,i]),B.useEffect(()=>{if(!i)return;function g(h){let{reason:p}=h;(p==="reference-press"||p==="escape-key")&&(c.current=!0)}return s.on("openchange",g),()=>{s.off("openchange",g)}},[s,i]),B.useEffect(()=>()=>{clearTimeout(d.current)},[]),B.useMemo(()=>i?{reference:{onPointerDown(g){ic(g.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(g){if(c.current)return;const h=ir(g.nativeEvent);if(l&&Ne(h))try{if(lc()&&gh())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!uc(h))return}r(!0,g.nativeEvent,"focus")},onBlur(g){c.current=!1;const h=g.relatedTarget,p=Ne(h)&&h.hasAttribute(Pr("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const m=hn(o?o.ownerDocument:document);!h&&m===o||tt(a.floating.current,m)||tt(o,m)||p||r(!1,g.nativeEvent,"focus")})}}}:{},[i,l,o,a,r])}const lg="active",cg="selected";function Tc(t,e,n){const r=new Map,s=n==="item";let a=t;if(s&&t){const{[lg]:o,[cg]:i,...l}=t;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...e.map(o=>{const i=o?o[n]:null;return typeof i=="function"?t?i(t):null:i}).concat(t).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[c,d]=l;if(!(s&&[lg,cg].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof d=="function"){var u;(u=r.get(c))==null||u.push(d),o[c]=function(){for(var g,h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return(g=r.get(c))==null?void 0:g.map(b=>b(...p)).find(b=>b!==void 0)}}}else o[c]=d}),o),{})}}function dg(t){t===void 0&&(t=[]);const e=t,n=B.useCallback(a=>Tc(a,t,"reference"),e),r=B.useCallback(a=>Tc(a,t,"floating"),e),s=B.useCallback(a=>Tc(a,t,"item"),t.map(a=>a==null?void 0:a.item));return B.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:s}),[n,r,s])}let ug=!1;function Qo(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function fg(t,e){return Qo(e,t===xc||t===ua,t===ys||t===ws)}function Pc(t,e,n){return Qo(e,t===ua,n?t===ys:t===ws)||t==="Enter"||t===" "||t===""}function m_(t,e,n){return Qo(e,n?t===ys:t===ws,t===ua)}function hg(t,e,n){return Qo(e,n?t===ws:t===ys,t===xc)}function p_(t,e){const{open:n,onOpenChange:r,refs:s,elements:{domReference:a,floating:o}}=t,{listRef:i,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:g=!1,loop:h=!1,nested:p=!1,rtl:m=!1,virtual:b=!1,focusItemOnOpen:y="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:k=!0,disabledIndices:w=void 0,orientation:x="vertical",cols:S=1,scrollItemIntoView:P=!0,virtualItemRef:C,itemSizes:N,dense:T=!1}=e;process.env.NODE_ENV!=="production"&&(g&&(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(" "))),x==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const Y=Uo(),F=ga(),E=pn(c),D=B.useRef(y),j=B.useRef(u??-1),M=B.useRef(null),H=B.useRef(!0),X=B.useRef(E),ee=B.useRef(!!o),I=B.useRef(!1),V=B.useRef(!1),L=bn(w),R=bn(n),A=bn(P),[O,W]=B.useState(),[J,K]=B.useState(),q=pn(function(U,le,z){z===void 0&&(z=!1);const ne=U.current[le.current];ne&&(b?(W(ne.id),F==null||F.events.emit("virtualfocus",ne),C&&(C.current=ne)):Bn(ne,{preventScroll:!0,sync:gh()&&lc()?ug||I.current:!1}),requestAnimationFrame(()=>{const ae=A.current;ae&&ne&&(z||!H.current)&&(ne.scrollIntoView==null||ne.scrollIntoView(typeof ae=="boolean"?{block:"nearest",inline:"nearest"}:ae))}))});Re(()=>{document.createElement("div").focus({get preventScroll(){return ug=!0,!1}})},[]),Re(()=>{d&&(n&&o?D.current&&u!=null&&(V.current=!0,j.current=u,E(u)):ee.current&&(j.current=-1,X.current(null)))},[d,n,o,u,E]),Re(()=>{if(d&&n&&o)if(l==null){if(I.current=!1,u!=null)return;if(ee.current&&(j.current=-1,q(i,j)),!ee.current&&D.current&&(M.current!=null||D.current===!0&&M.current==null)){let U=0;const le=()=>{i.current[0]==null?(U<2&&(U?requestAnimationFrame:queueMicrotask)(le),U++):(j.current=M.current==null||Pc(M.current,x,m)||p?kc(i,L.current):Wh(i,L.current),M.current=null,E(j.current))};le()}}else fa(i,l)||(j.current=l,q(i,j,V.current),V.current=!1)},[d,n,o,l,u,p,i,x,m,E,q,L]),Re(()=>{var U;if(!d||o||!F||b||!ee.current)return;const le=F.nodesRef.current,z=(U=le.find(se=>se.id===Y))==null||(U=U.context)==null?void 0:U.elements.floating,ne=hn(_t(o)),ae=le.some(se=>se.context&&tt(se.context.elements.floating,ne));z&&!ae&&H.current&&z.focus({preventScroll:!0})},[d,o,F,Y,b]),Re(()=>{if(!d||!F||!b||Y)return;function U(le){K(le.id),C&&(C.current=le)}return F.events.on("virtualfocus",U),()=>{F.events.off("virtualfocus",U)}},[d,F,b,Y,C]),Re(()=>{X.current=E,ee.current=!!o}),Re(()=>{n||(M.current=null)},[n]);const te=l!=null,ie=B.useMemo(()=>{function U(z){if(!n)return;const ne=i.current.indexOf(z);ne!==-1&&E(ne)}return{onFocus(z){let{currentTarget:ne}=z;U(ne)},onClick:z=>{let{currentTarget:ne}=z;return ne.focus({preventScroll:!0})},...v&&{onMouseMove(z){let{currentTarget:ne}=z;U(ne)},onPointerLeave(z){let{pointerType:ne}=z;!H.current||ne==="touch"||(j.current=-1,q(i,j),E(null),b||Bn(s.floating.current,{preventScroll:!0}))}}}},[n,s,q,v,i,E,b]);return B.useMemo(()=>{if(!d)return{};const U=L.current;function le(oe){if(H.current=!1,I.current=!0,!R.current&&oe.currentTarget===s.floating.current)return;if(p&&hg(oe.key,x,m)){gt(oe),r(!1,oe.nativeEvent,"list-navigation"),ht(a)&&!b&&a.focus();return}const ye=j.current,me=kc(i,U),Ce=Wh(i,U);if(oe.key==="Home"&&(gt(oe),j.current=me,E(j.current)),oe.key==="End"&&(gt(oe),j.current=Ce,E(j.current)),S>1){const Ge=N||Array.from({length:i.current.length},()=>({width:1,height:1})),et=W1(Ge,S,T),Xt=et.findIndex(Kt=>Kt!=null&&!(U!=null&&U.includes(Kt))),Gt=et.reduce((Kt,Sr,Qt)=>Sr!=null&&!(U!=null&&U.includes(Sr))?Qt:Kt,-1);if(j.current=et[B1({current:et.map(Kt=>Kt!=null?i.current[Kt]:null)},{event:oe,orientation:x,loop:h,cols:S,disabledIndices:H1([...U||[],void 0],et),minIndex:Xt,maxIndex:Gt,prevIndex:z1(j.current,Ge,et,S,oe.key===ua?"bl":oe.key===ws?"tr":"tl"),stopEvent:!0})],E(j.current),x==="both")return}if(fg(oe.key,x)){if(gt(oe),n&&!b&&hn(oe.currentTarget.ownerDocument)===oe.currentTarget){j.current=Pc(oe.key,x,m)?me:Ce,E(j.current);return}Pc(oe.key,x,m)?h?j.current=ye>=Ce?g&&ye!==i.current.length?-1:me:yt(i,{startingIndex:ye,disabledIndices:U}):j.current=Math.min(Ce,yt(i,{startingIndex:ye,disabledIndices:U})):h?j.current=ye<=me?g&&ye!==-1?i.current.length:Ce:yt(i,{startingIndex:ye,decrement:!0,disabledIndices:U}):j.current=Math.max(me,yt(i,{startingIndex:ye,decrement:!0,disabledIndices:U})),fa(i,j.current)?E(null):E(j.current)}}function z(oe){y==="auto"&&hh(oe.nativeEvent)&&(D.current=!0)}function ne(oe){D.current=y,y==="auto"&&ic(oe.nativeEvent)&&(D.current=!0)}const ae=b&&n&&te&&{"aria-activedescendant":J||O},se=i.current.find(oe=>(oe==null?void 0:oe.id)===O);return{reference:{...ae,onKeyDown(oe){H.current=!1;const ye=oe.key.indexOf("Arrow")===0,me=m_(oe.key,x,m),Ce=hg(oe.key,x,m),Ge=fg(oe.key,x),et=(p?me:Ge)||oe.key==="Enter"||oe.key.trim()==="";if(b&&n){const Sr=F==null?void 0:F.nodesRef.current.find(Ql=>Ql.parentId==null),Qt=F&&Sr?e_(F.nodesRef.current,Sr.id):null;if(ye&&Qt&&C){const Ql=new KeyboardEvent("keydown",{key:oe.key,bubbles:!0});if(me||Ce){var Xt,Gt;const d6=((Xt=Qt.context)==null?void 0:Xt.elements.domReference)===oe.currentTarget,xx=Ce&&!d6?(Gt=Qt.context)==null?void 0:Gt.elements.domReference:me?se:null;xx&&(gt(oe),xx.dispatchEvent(Ql),K(void 0))}if(Ge&&Qt.context&&Qt.context.open&&Qt.parentId&&oe.currentTarget!==Qt.context.elements.domReference){var Kt;gt(oe),(Kt=Qt.context.elements.domReference)==null||Kt.dispatchEvent(Ql);return}}return le(oe)}if(!(!n&&!k&&ye)){if(et&&(M.current=p&&Ge?null:oe.key),p){me&&(gt(oe),n?(j.current=kc(i,U),E(j.current)):r(!0,oe.nativeEvent,"list-navigation"));return}Ge&&(u!=null&&(j.current=u),gt(oe),!n&&k?r(!0,oe.nativeEvent,"list-navigation"):le(oe),n&&E(j.current))}},onFocus(){n&&E(null)},onPointerDown:ne,onMouseDown:z,onClick:z},floating:{"aria-orientation":x==="both"?void 0:x,...!mh(a)&&ae,onKeyDown:le,onPointerMove(){H.current=!0}},item:ie}},[a,s,O,J,L,R,i,d,x,m,b,n,te,p,u,k,g,S,h,y,E,r,ie,F,C,N,T])}const b_=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function gg(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:s}=t,{enabled:a=!0,role:o="dialog"}=e,i=(n=b_.get(o))!=null?n:o,l=Vo(),d=Uo()!=null;return B.useMemo(()=>{if(!a)return{};const u={id:s,...i&&{role:i}};return i==="tooltip"||o==="label"?{reference:{["aria-"+(o==="label"?"labelledby":"describedby")]:r?s:void 0},floating:u}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?s:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:l},...i==="menu"&&d&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...i==="menu"&&{"aria-labelledby":l}},item(g){let{active:h,selected:p}=g;const m={role:"option",...h&&{id:s+"-option"}};switch(o){case"select":return{...m,"aria-selected":h&&p};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[a,o,i,r,s,l,d])}function y_(t,e){var n;const{open:r,dataRef:s}=t,{listRef:a,activeIndex:o,onMatch:i,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:g=[],selectedIndex:h=null}=e,p=B.useRef(),m=B.useRef(""),b=B.useRef((n=h??o)!=null?n:-1),y=B.useRef(null),v=pn(i),k=pn(l),w=bn(d),x=bn(g);return Re(()=>{r&&(clearTimeout(p.current),y.current=null,m.current="")},[r]),Re(()=>{if(r&&m.current===""){var S;b.current=(S=h??o)!=null?S:-1}},[r,h,o]),B.useMemo(()=>{if(!c)return{};function S(N){N?s.current.typing||(s.current.typing=N,k(N)):s.current.typing&&(s.current.typing=N,k(N))}function P(N,T,Y){const F=w.current?w.current(T,Y):T.find(E=>(E==null?void 0:E.toLocaleLowerCase().indexOf(Y.toLocaleLowerCase()))===0);return F?N.indexOf(F):-1}function C(N){const T=a.current;if(m.current.length>0&&m.current[0]!==" "&&(P(T,T,m.current)===-1?S(!1):N.key===" "&>(N)),T==null||x.current.includes(N.key)||N.key.length!==1||N.ctrlKey||N.metaKey||N.altKey)return;r&&N.key!==" "&&(gt(N),S(!0)),T.every(D=>{var j,M;return D?((j=D[0])==null?void 0:j.toLocaleLowerCase())!==((M=D[1])==null?void 0:M.toLocaleLowerCase()):!0})&&m.current===N.key&&(m.current="",b.current=y.current),m.current+=N.key,clearTimeout(p.current),p.current=setTimeout(()=>{m.current="",b.current=y.current,S(!1)},u);const F=b.current,E=P(T,[...T.slice((F||0)+1),...T.slice(0,(F||0)+1)],m.current);E!==-1?(v(E),y.current=E):N.key!==" "&&(m.current="",S(!1))}return{reference:{onKeyDown:C},floating:{onKeyDown:C,onKeyUp(N){N.key===" "&&S(!1)}}}},[c,r,s,a,u,x,w,v,k])}function mg(t,e){const[n,r]=t;let s=!1;const a=e.length;for(let o=0,i=a-1;o<a;i=o++){const[l,c]=e[o]||[0,0],[d,u]=e[i]||[0,0];c>=r!=u>=r&&n<=(d-l)*(r-c)/(u-c)+l&&(s=!s)}return s}function w_(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function v_(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=t;let s,a=!1,o=null,i=null,l=performance.now();function c(u,g){const h=performance.now(),p=h-l;if(o===null||i===null||p===0)return o=u,i=g,l=h,null;const m=u-o,b=g-i,v=Math.sqrt(m*m+b*b)/p;return o=u,i=g,l=h,v}const d=u=>{let{x:g,y:h,placement:p,elements:m,onClose:b,nodeId:y,tree:v}=u;return function(w){function x(){clearTimeout(s),b()}if(clearTimeout(s),!m.domReference||!m.floating||p==null||g==null||h==null)return;const{clientX:S,clientY:P}=w,C=[S,P],N=ir(w),T=w.type==="mouseleave",Y=tt(m.floating,N),F=tt(m.domReference,N),E=m.domReference.getBoundingClientRect(),D=m.floating.getBoundingClientRect(),j=p.split("-")[0],M=g>D.right-D.width/2,H=h>D.bottom-D.height/2,X=w_(C,E),ee=D.width>E.width,I=D.height>E.height,V=(ee?E:D).left,L=(ee?E:D).right,R=(I?E:D).top,A=(I?E:D).bottom;if(Y&&(a=!0,!T))return;if(F&&(a=!1),F&&!T){a=!0;return}if(T&&Ne(w.relatedTarget)&&tt(m.floating,w.relatedTarget)||v&&Nr(v.nodesRef.current,y).some(J=>{let{context:K}=J;return K==null?void 0:K.open}))return;if(j==="top"&&h>=E.bottom-1||j==="bottom"&&h<=E.top+1||j==="left"&&g>=E.right-1||j==="right"&&g<=E.left+1)return x();let O=[];switch(j){case"top":O=[[V,E.top+1],[V,D.bottom-1],[L,D.bottom-1],[L,E.top+1]];break;case"bottom":O=[[V,D.top+1],[V,E.bottom-1],[L,E.bottom-1],[L,D.top+1]];break;case"left":O=[[D.right-1,A],[D.right-1,R],[E.left+1,R],[E.left+1,A]];break;case"right":O=[[E.right-1,A],[E.right-1,R],[D.left+1,R],[D.left+1,A]];break}function W(J){let[K,q]=J;switch(j){case"top":{const te=[ee?K+e/2:M?K+e*4:K-e*4,q+e+1],ie=[ee?K-e/2:M?K+e*4:K-e*4,q+e+1],U=[[D.left,M||ee?D.bottom-e:D.top],[D.right,M?ee?D.bottom-e:D.top:D.bottom-e]];return[te,ie,...U]}case"bottom":{const te=[ee?K+e/2:M?K+e*4:K-e*4,q-e],ie=[ee?K-e/2:M?K+e*4:K-e*4,q-e],U=[[D.left,M||ee?D.top+e:D.bottom],[D.right,M?ee?D.top+e:D.bottom:D.top+e]];return[te,ie,...U]}case"left":{const te=[K+e+1,I?q+e/2:H?q+e*4:q-e*4],ie=[K+e+1,I?q-e/2:H?q+e*4:q-e*4];return[...[[H||I?D.right-e:D.left,D.top],[H?I?D.right-e:D.left:D.right-e,D.bottom]],te,ie]}case"right":{const te=[K-e,I?q+e/2:H?q+e*4:q-e*4],ie=[K-e,I?q-e/2:H?q+e*4:q-e*4],U=[[H||I?D.left+e:D.right,D.top],[H?I?D.left+e:D.right:D.left+e,D.bottom]];return[te,ie,...U]}}}if(!mg([S,P],O)){if(a&&!X)return x();if(!T&&r){const J=c(w.clientX,w.clientY);if(J!==null&&J<.1)return x()}mg([S,P],W([g,h]))?!a&&r&&(s=window.setTimeout(x,40)):x()}}};return d.__options={blockPointerEvents:n},d}const x_=({arrowRef:t,placement:e})=>{const n=[];return n.push(g1(8)),n.push(e==="auto"?b1():p1()),n.push(m1({padding:8})),t!=null&&t.current&&n.push(y1({element:t.current})),n},k_=({placement:t})=>t==="auto"?void 0:t,__=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],pg=({open:t,arrowRef:e,placement:n="top",setOpen:r})=>ig({placement:k_({placement:n}),open:t,onOpenChange:r,whileElementsMounted:Th,middleware:x_({placement:n,arrowRef:e})}),bg=({context:t,trigger:e,role:n="tooltip",interactions:r=[]})=>dg([sg(t,{enabled:e==="click"}),q1(t,{enabled:e==="hover",handleClose:v_()}),og(t),gg(t,{role:n}),...r]),yg=_.createContext(void 0);function Nc(){const t=_.useContext(yg);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const jc=({className:t,theme:e={},...n})=>{const{theme:r}=Nc(),s=e.divider??r.floating.divider;return f.jsx("div",{className:Q(s,t),...n})},wg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Nc(),a=n.header??s.floating.header;return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Q(a,e),...r,children:t}),f.jsx(jc,{})]})},Ic=_.forwardRef(({children:t,className:e,icon:n,onClick:r,theme:s={},...a},o)=>{const{ref:i,index:l}=X1({label:typeof t=="string"?t:void 0}),c=Bh([o,i]),{theme:d,activeIndex:u,dismissOnClick:g,getItemProps:h,handleSelect:p}=Nc(),m=u===l,b=re(d.floating.item,s),y=a;return f.jsx("li",{role:"menuitem",className:b.container,children:f.jsxs($l,{ref:c,className:Q(b.base,e),...y,...h({onClick:()=>{r==null||r(),g&&p(null)}}),tabIndex:m?0:-1,children:[n&&f.jsx(n,{className:b.icon}),t]})})});Ic.displayName="DropdownItem";const S_={top:Fx,right:Ef,bottom:Mf,left:Lx},C_=({refs:t,children:e,inline:n,theme:r,disabled:s,setButtonWidth:a,getReferenceProps:o,renderTrigger:i,...l})=>{const c=t.reference,d=o();if(_.useEffect(()=>{c.current&&(a==null||a(c.current.clientWidth))},[c,a]),i){const u=i(r);return _.cloneElement(u,{ref:t.setReference,disabled:s,...d,...u.props})}return n?f.jsx("button",{type:"button",ref:t.setReference,className:r==null?void 0:r.inlineWrapper,disabled:s,...d,children:e}):f.jsx(qf,{...l,disabled:s,type:"button",ref:t.setReference,...d,children:e})},vg=({children:t,className:e,dismissOnClick:n=!0,theme:r={},renderTrigger:s,...a})=>{const[o,i]=_.useState(!1),[l,c]=_.useState(null),[d,u]=_.useState(null),[g,h]=_.useState(void 0),p=_.useRef([]),m=_.useRef([]),b=re(ge().dropdown,r),y=a,v=a["data-testid"]||"flowbite-dropdown-target",{placement:k=a.inline?"bottom-start":"bottom",trigger:w="click",label:x,inline:S,arrowIcon:P=!0,...C}=y,N=_.useCallback(I=>{u(I),i(!1)},[]),T=_.useCallback(I=>{o?c(I):N(I)},[o,N]),{context:Y,floatingStyles:F,refs:E}=pg({open:o,setOpen:i,placement:k}),D=p_(Y,{listRef:p,activeIndex:l,selectedIndex:d,onNavigate:c}),j=y_(Y,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:T}),{getReferenceProps:M,getFloatingProps:H,getItemProps:X}=bg({context:Y,role:"menu",trigger:w,interactions:[D,j]}),ee=_.useMemo(()=>{const[I]=k.split("-");return S_[I]??Mf},[k]);return f.jsxs(yg.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:n,getItemProps:X,handleSelect:N},children:[f.jsxs(C_,{...C,refs:E,inline:S,theme:b,"data-testid":v,className:Q(b.floating.target,C.className),setButtonWidth:h,getReferenceProps:M,renderTrigger:s,children:[x,P&&f.jsx(ee,{className:b.arrowIcon})]}),o&&f.jsx(tg,{context:Y,modal:!1,children:f.jsx("div",{ref:E.setFloating,style:{...F,minWidth:g},"data-testid":"flowbite-dropdown","aria-expanded":o,...H({className:Q(b.floating.base,b.floating.animation,"duration-100",!o&&b.floating.hidden,b.floating.style.auto,e)}),children:f.jsx(U1,{elementsRef:p,labelsRef:m,children:f.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};vg.displayName="Dropdown",wg.displayName="Dropdown.Header",jc.displayName="Dropdown.Divider";const O_=Object.assign(vg,{Item:Ic,Header:wg,Divider:jc}),xg=_.forwardRef(({className:t,color:e="gray",helperText:n,sizing:r="md",theme:s={},...a},o)=>{const i=re(ge().fileInput,s);return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Q(i.root.base,t),children:f.jsx("div",{className:i.field.base,children:f.jsx("input",{className:Q(i.field.input.base,i.field.input.colors[e],i.field.input.sizes[r]),...a,type:"file",ref:o})})}),n&&f.jsx(ia,{color:e,children:n})]})});xg.displayName="FileInput";const D_=_.forwardRef(({label:t,helperText:e,color:n="default",sizing:r="md",variant:s,disabled:a=!1,theme:o={},className:i,...l},c)=>{const d=_.useId(),u=re(ge().floatingLabel,o);return f.jsxs("div",{children:[f.jsxs("div",{className:Q("relative",s==="standard"?"z-0":""),children:[f.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:Q(u.input[n][s][r],i),placeholder:" ","data-testid":"floating-label",disabled:a,...l,ref:c}),f.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:Q(u.label[n][s][r],i),children:t})]}),f.jsx("p",{id:"outlined_helper_text"+d,className:Q(u.helperText[n],i),children:e})]})});D_.displayName="FloatingLabel";const kg=({alt:t,className:e,children:n,href:r,name:s,src:a,theme:o={},...i})=>{const l=re(ge().footer.brand,o);return f.jsx("div",{children:r?f.jsxs("a",{"data-testid":"flowbite-footer-brand",href:r,className:Q(l.base,e),...i,children:[f.jsx("img",{alt:t,src:a,className:l.img}),f.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:s}),n]}):f.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:a,className:Q(l.img,e),...i})})},_g=({by:t,className:e,href:n,theme:r={},year:s,...a})=>{const o=re(ge().footer.copyright,r);return f.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:Q(o.base,e),...a,children:["© ",s,n?f.jsx("a",{href:n,className:o.href,children:t}):f.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:o.span,children:t})]})},Sg=({className:t,theme:e={},...n})=>{const r=re(ge().footer.divider,e);return f.jsx("hr",{"data-testid":"footer-divider",className:Q(r.base,t),...n})},Cg=({ariaLabel:t,className:e,href:n,icon:r,theme:s={},...a})=>{const o=re(ge().footer.icon,s);return f.jsx("div",{children:n?f.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:n,className:Q(o.base,e),...a,children:f.jsx(r,{className:o.size})}):f.jsx(r,{"data-testid":"flowbite-footer-icon",className:o.size,...a})})},Og=({as:t="a",children:e,className:n,href:r,theme:s={},...a})=>{const o=re(ge().footer.groupLink.link,s);return f.jsx("li",{className:Q(o.base,n),children:f.jsx(t,{href:r,className:o.href,...a,children:e})})},Dg=({children:t,className:e,col:n=!1,theme:r={},...s})=>{const a=re(ge().footer.groupLink,r);return f.jsx("ul",{"data-testid":"footer-groupLink",className:Q(a.base,n&&a.col,e),...s,children:t})},Mg=({as:t="h2",className:e,theme:n={},title:r,...s})=>{const a=re(ge().footer.title,n);return f.jsx(t,{"data-testid":"flowbite-footer-title",className:Q(a.base,e),...s,children:r})},Eg=({bgDark:t=!1,children:e,className:n,container:r=!1,theme:s={},...a})=>{const o=re(ge().footer,s);return f.jsx("footer",{"data-testid":"flowbite-footer",className:Q(o.root.base,t&&o.root.bgDark,r&&o.root.container,n),...a,children:e})};Eg.displayName="Footer",_g.displayName="Footer.Copyright",Og.displayName="Footer.Link",kg.displayName="Footer.Brand",Dg.displayName="Footer.LinkGroup",Cg.displayName="Footer.Icon",Mg.displayName="Footer.Title",Sg.displayName="Footer.Divider",Object.assign(Eg,{Copyright:_g,Link:Og,LinkGroup:Dg,Brand:kg,Icon:Cg,Title:Mg,Divider:Sg});const Ac=({children:t,className:e,color:n="default",disabled:r=!1,theme:s={},value:a,...o})=>{const i=re(ge().label,s);return f.jsx("label",{className:Q(i.root.base,i.root.colors[n],r&&i.root.disabled,e),"data-testid":"flowbite-label",...o,children:a??t??""})};Ac.displayName="Label";const Tg=({children:t,className:e,icon:n,theme:r={},...s})=>{const a=re(ge().list.item,r);return f.jsxs("li",{className:Q(a.withIcon[n?"on":"off"],e),...s,children:[n&&f.jsx(n,{className:Q(a.icon)}),t]})},Pg=({children:t,className:e,unstyled:n,nested:r,ordered:s,horizontal:a,theme:o={},...i})=>{const l=re(ge().list,o),c=s?"ol":"ul";return f.jsx(c,{className:Q(l.root.base,l.root.ordered[s?"on":"off"],n&&l.root.unstyled,r&&l.root.nested,a&&l.root.horizontal,e),...i,children:t})};Pg.displayName="List",Tg.displayName="List.Item",Object.assign(Pg,{Item:Tg});const Ng=({active:t,children:e,className:n,href:r,icon:s,onClick:a,theme:o={},disabled:i,...l})=>{const c=re(ge().listGroup.item,o),d=typeof r<"u",u=d?"a":"button";return f.jsx("li",{className:Q(c.base,n),children:f.jsxs(u,{href:r,onClick:a,type:d?void 0:"button",disabled:i,className:Q(c.link.active[t?"on":"off"],c.link.disabled[i?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[s&&f.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},jg=({children:t,className:e,theme:n={},...r})=>{const s=re(ge().listGroup,n);return f.jsx("ul",{className:Q(s.root.base,e),...r,children:t})};jg.displayName="ListGroup",Ng.displayName="ListGroup.Item",Object.assign(jg,{Item:Ng});const Ig=_.createContext(void 0);function Rc(){const t=_.useContext(Ig);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Ag=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Rc(),o=re(s.body,n);return f.jsx("div",{className:Q(o.base,a&&[o.popup],e),...r,children:t})},Rg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Rc(),o=re(s.footer,n);return f.jsx("div",{className:Q(o.base,!a&&o.popup,e),...r,children:t})},Lg=({as:t="h3",children:e,className:n,theme:r={},id:s,...a})=>{const o=_.useId(),i=s||o,{theme:l,popup:c,onClose:d,setHeaderId:u}=Rc(),g=re(l.header,r);return _.useLayoutEffect(()=>(u(i),()=>u(void 0)),[i,u]),f.jsxs("div",{className:Q(g.base,c&&g.popup,n),...a,children:[f.jsx(t,{id:i,className:g.title,children:e}),f.jsx("button",{"aria-label":"Close",className:g.close.base,type:"button",onClick:d,children:f.jsx(Bx,{"aria-hidden":!0,className:g.close.icon})})]})},Fg=_.forwardRef(({children:t,className:e,dismissible:n=!1,onClose:r,popup:s,position:a="center",root:o,show:i,size:l="2xl",theme:c={},initialFocus:d,...u},g)=>{const[h,p]=_.useState(void 0),m=re(ge().modal,c),{context:b}=ig({open:i,onOpenChange:()=>r&&r()}),y=Bh([b.refs.setFloating,g]),v=sg(b),k=og(b,{outsidePressEvent:"mousedown",enabled:n}),w=gg(b),{getFloatingProps:x}=dg([v,k,w]);return i?f.jsx(Ig.Provider,{value:{theme:m,popup:s,onClose:r,setHeaderId:p},children:f.jsx(l_,{root:o,children:f.jsx(u_,{lockScroll:!0,"data-testid":"modal-overlay",className:Q(m.root.base,m.root.positions[a],i?m.root.show.on:m.root.show.off,e),...u,children:f.jsx(tg,{context:b,initialFocus:d,children:f.jsx("div",{ref:y,...x(u),"aria-labelledby":h,className:Q(m.content.base,m.root.sizes[l]),children:f.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Fg.displayName="Modal",Lg.displayName="Modal.Header",Ag.displayName="Modal.Body",Rg.displayName="Modal.Footer",Object.assign(Fg,{Header:Lg,Body:Ag,Footer:Rg});const Bg=_.createContext(void 0);function Zo(){const t=_.useContext(Bg);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Wg=({as:t="a",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Zo(),o=re(a.brand,r);return f.jsx(t,{className:Q(o.base,n),...s,children:e})},zg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a}=Zo(),o=re(s.collapse,n);return f.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:Q(o.base,o.hidden[a?"off":"on"],e),...r,children:f.jsx("ul",{className:o.list,children:t})})},Hg=({active:t,as:e="a",disabled:n,children:r,className:s,theme:a={},onClick:o,...i})=>{const{theme:l,setIsOpen:c}=Zo(),d=re(l.link,a),u=g=>{c(!1),o==null||o(g)};return f.jsx("li",{children:f.jsx(e,{className:Q(d.base,t&&d.active.on,!t&&!n&&d.active.off,d.disabled[n?"on":"off"],s),onClick:u,...i,children:r})})};function M_(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 xs(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 E_(t){return Pe({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(t)}function Lc(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 T_(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 P_(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 N_(t){return Pe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(t)}const Yg=({barIcon:t=M_,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a,setIsOpen:o}=Zo(),i=re(s.toggle,n),l=()=>{o(!a)};return f.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:Q(i.base,e),...r,children:[f.jsx("span",{className:"sr-only",children:"Open main menu"}),f.jsx(t,{"aria-hidden":!0,className:i.icon})]})},Vg=({border:t,children:e,className:n,fluid:r=!1,menuOpen:s,rounded:a,theme:o={},...i})=>{const[l,c]=_.useState(s),d=re(ge().navbar,o);return f.jsx(Bg.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:f.jsx("nav",{className:Q(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[a?"on":"off"],n),...i,children:f.jsx("div",{className:Q(d.root.inner.base,d.root.inner.fluid[r?"on":"off"]),children:e})})})};Vg.displayName="Navbar",Wg.displayName="Navbar.Brand",zg.displayName="Navbar.Collapse",Hg.displayName="Navbar.Link",Yg.displayName="Navbar.Toggle",Object.assign(Vg,{Brand:Wg,Collapse:zg,Link:Hg,Toggle:Yg});const j_=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(n=>n+t),Fc=({active:t,children:e,className:n,onClick:r,theme:s={},...a})=>{const o=re(ge().pagination,s);return f.jsx("button",{type:"button",className:Q(t&&o.pages.selector.active,n),onClick:r,...a,children:e})};Fc.displayName="Pagination.Button";const Bc=({children:t,className:e,onClick:n,theme:r={},disabled:s=!1,...a})=>{const o=re(ge().pagination,r);return f.jsx("button",{type:"button",className:Q(s&&o.pages.selector.disabled,e),disabled:s,onClick:n,...a,children:t})};Bc.displayName="Pagination.Navigation";const Ug=({className:t,currentPage:e,layout:n="pagination",nextLabel:r="Next",onPageChange:s,previousLabel:a="Previous",renderPaginationButton:o=u=>f.jsx(Fc,{...u}),showIcons:i=!1,theme:l={},totalPages:c,...d})=>{const u=re(ge().pagination,l),g=Math.min(Math.max(n==="pagination"?e+2:e+4,5),c),h=Math.max(1,g-4),p=()=>{s(Math.min(e+1,c))},m=()=>{s(Math.max(e-1,1))};return f.jsxs("nav",{className:Q(u.base,t),...d,children:[n==="table"&&f.jsxs("div",{className:u.layout.table.base,children:["Showing ",f.jsx("span",{className:u.layout.table.span,children:h})," to ",f.jsx("span",{className:u.layout.table.span,children:g})," of ",f.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),f.jsxs("ul",{className:u.pages.base,children:[f.jsx("li",{children:f.jsxs(Bc,{className:Q(u.pages.previous.base,i&&u.pages.showIcon),onClick:m,disabled:e===1,children:[i&&f.jsx(jx,{"aria-hidden":!0,className:u.pages.previous.icon}),a]})}),n==="pagination"&&j_(h,g).map(b=>f.jsx("li",{"aria-current":b===e?"page":void 0,children:o({className:Q(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>s(b),children:b})},b)),f.jsx("li",{children:f.jsxs(Bc,{className:Q(u.pages.next.base,i&&u.pages.showIcon),onClick:p,disabled:e===c,children:[r,i&&f.jsx(Ix,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};Ug.displayName="Pagination",Object.assign(Ug,{Button:Fc});const Xg=_.forwardRef(({className:t,theme:e={},...n},r)=>{const s=re(ge().radio,e);return f.jsx("input",{ref:r,type:"radio",className:Q(s.root.base,t),...n})});Xg.displayName="Radio";const I_=_.forwardRef(({className:t,sizing:e="md",theme:n={},...r},s)=>{const a=re(ge().rangeSlider,n);return f.jsx(f.Fragment,{children:f.jsx("div",{"data-testid":"flowbite-range-slider",className:Q(a.root.base,t),children:f.jsx("div",{className:a.field.base,children:f.jsx("input",{ref:s,type:"range",className:Q(a.field.input.base,a.field.input.sizes[e]),...r})})})})});I_.displayName="RangeSlider";const Gg=({children:t,className:e,percentFilled:n=0,theme:r={},...s})=>{const a=re(ge().ratingAdvanced,r);return f.jsxs("div",{className:Q(a.base,e),...s,children:[f.jsx("span",{className:a.label,children:t}),f.jsx("div",{className:a.progress.base,children:f.jsx("div",{className:a.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),f.jsx("span",{className:a.progress.label,children:`${n}%`})]})},Kg=_.createContext(void 0);function A_(){const t=_.useContext(Kg);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const Qg=({className:t,filled:e=!0,starIcon:n=Ax,theme:r={},...s})=>{const{theme:a,size:o="sm"}=A_(),i=re(a.star,r);return f.jsx(n,{"data-testid":"flowbite-rating-star",className:Q(i.sizes[o],i[e?"filled":"empty"],t),...s})},Zg=({children:t,className:e,size:n="sm",theme:r={},...s})=>{const a=re(ge().rating,r);return f.jsx(Kg.Provider,{value:{theme:a,size:n},children:f.jsx("div",{className:Q(a.root.base,e),...s,children:t})})};Zg.displayName="Rating",Qg.displayName="Rating.Star",Gg.displayName="Rating.Advanced",Object.assign(Zg,{Star:Qg,Advanced:Gg});const R_=_.forwardRef(({addon:t,children:e,className:n,color:r="gray",helperText:s,icon:a,shadow:o,sizing:i="md",theme:l={},...c},d)=>{const u=re(ge().select,l);return f.jsxs("div",{className:Q(u.base,n),children:[t&&f.jsx("span",{className:u.addon,children:t}),f.jsxs("div",{className:u.field.base,children:[a&&f.jsx("div",{className:u.field.icon.base,children:f.jsx(a,{className:u.field.icon.svg})}),f.jsx("select",{className:Q(u.field.select.base,u.field.select.colors[r],u.field.select.sizes[i],u.field.select.withIcon[a?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[o?"on":"off"]),...c,ref:d,children:e}),s&&f.jsx(ia,{color:r,children:s})]})]})});R_.displayName="Select";const L_=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i,trigger:l="hover",minWidth:c,...d})=>{const u=_.useRef(null),[g,h]=_.useState(!1),p=pg({open:g,placement:a,arrowRef:u,setOpen:h}),{context:m,middlewareData:{arrow:{x:b,y}={}},refs:v,strategy:k,update:w,x,y:S}=p,P=g_(m),{getFloatingProps:C,getReferenceProps:N}=bg({context:m,role:"tooltip",trigger:l,interactions:[P]});return _.useEffect(()=>{if(v.reference.current&&v.floating.current&&g)return Th(v.reference.current,v.floating.current,w)},[g,v.floating,v.reference,w]),f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:v.setReference,className:i.target,"data-testid":"flowbite-tooltip-target",...N(),children:n}),f.jsxs("div",{ref:v.setFloating,"data-testid":"flowbite-tooltip",...C({className:Q(i.base,t&&`${i.animation} ${t}`,!g&&i.hidden,i.style[o],r),style:{position:k,top:S??" ",left:x??" ",minWidth:c},...d}),children:[f.jsx("div",{className:i.content,children:s}),e&&f.jsx("div",{className:Q(i.arrow.base,o==="dark"&&i.arrow.style.dark,o==="light"&&i.arrow.style.light,o==="auto"&&i.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:y??" ",left:b??" ",right:" ",bottom:" ",[__({placement:p.placement})]:i.arrow.placement},children:" "})]})]})},Jo=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i={},trigger:l="hover",...c})=>{const d=re(ge().tooltip,i);return f.jsx(L_,{animation:t,arrow:e,content:s,placement:a,style:o,theme:d,trigger:l,className:r,...c,children:n})};Jo.displayName="Tooltip";const Jg=_.createContext(void 0);function ks(){const t=_.useContext(Jg);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Wc=_.createContext(void 0);function F_(){const t=_.useContext(Wc);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const qg=({children:t,className:e,icon:n,label:r,chevronIcon:s=Zl,renderChevronIcon:a,open:o=!1,theme:i={},...l})=>{const c=_.useId(),[d,u]=_.useState(o),{theme:g,isCollapsed:h}=ks(),p=re(g.collapse,i);_.useEffect(()=>u(o),[o]);const m=({children:b})=>f.jsx("li",{children:h&&!d?f.jsx(Jo,{content:r,placement:"right",children:b}):b});return f.jsxs(m,{children:[f.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:r,type:"button",className:Q(p.button,e),...l,children:[n&&f.jsx(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:Q(p.icon.base,p.icon.open[d?"on":"off"])}),h?f.jsx("span",{className:"sr-only",children:r}):f.jsxs(f.Fragment,{children:[f.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:p.label.base,children:r}),a?a(p,d):f.jsx(s,{"aria-hidden":!0,className:Q(p.label.icon.base,p.label.icon.open[d?"on":"off"])})]})]}),f.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:p.list,children:f.jsx(Wc.Provider,{value:{isInsideCollapse:!0},children:t})})]})};qg.displayName="Sidebar.Collapse";const $g=({children:t,color:e="info",className:n,theme:r={},...s})=>{const{theme:a,isCollapsed:o}=ks(),i=re(a.cta,r);return f.jsx("div",{"data-testid":"sidebar-cta",hidden:o,className:Q(i.base,i.color[e],n),...s,children:t})};$g.displayName="Sidebar.CTA";const B_=({id:t,theme:e,isCollapsed:n,tooltipChildren:r,children:s,...a})=>f.jsx("li",{...a,children:n?f.jsx(Jo,{content:f.jsx(em,{id:t,theme:e,children:r}),placement:"right",children:s}):s}),em=({id:t,theme:e,children:n})=>f.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:Q(e.content.base),children:n}),tm=_.forwardRef(({active:t,as:e="a",children:n,className:r,icon:s,label:a,labelColor:o="info",theme:i={},...l},c)=>{var m,b,y,v;const d=_.useId(),{theme:u,isCollapsed:g}=ks(),{isInsideCollapse:h}=F_(),p=re(u.item,i);return f.jsx(B_,{theme:p,className:p.listItem,id:d,isCollapsed:g,tooltipChildren:n,children:f.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:Q(p.base,t&&p.active,!g&&h&&((m=p.collapsed)==null?void 0:m.insideCollapse),r),...l,children:[s&&f.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:Q((b=p.icon)==null?void 0:b.base,t&&((y=p.icon)==null?void 0:y.active))}),g&&!s&&f.jsx("span",{className:(v=p.collapsed)==null?void 0:v.noIcon,children:n.charAt(0).toLocaleUpperCase()??"?"}),!g&&f.jsx(em,{id:d,theme:p,children:n}),!g&&a&&f.jsx(Xf,{color:o,"data-testid":"flowbite-sidebar-label",hidden:g,className:p.label,children:a})]})})});tm.displayName="Sidebar.Item";const nm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ks(),a=re(s.itemGroup,n);return f.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:Q(a.base,e),...r,children:f.jsx(Wc.Provider,{value:{isInsideCollapse:!1},children:t})})};nm.displayName="Sidebar.ItemGroup";const rm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ks(),a=re(s.items,n);return f.jsx("div",{className:Q(a.base,e),"data-testid":"flowbite-sidebar-items",...r,children:t})};rm.displayName="Sidebar.Items";const sm=({children:t,className:e,href:n,img:r,imgAlt:s="",theme:a={},...o})=>{const i=_.useId(),{theme:l,isCollapsed:c}=ks(),d=re(l.logo,a);return f.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${i}`,href:n,className:Q(d.base,e),...o,children:[f.jsx("img",{alt:s,src:r,className:d.img}),f.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${i}`,children:t})]})};sm.displayName="Sidebar.Logo";const am=({children:t,as:e="nav",collapseBehavior:n="collapse",collapsed:r=!1,theme:s={},className:a,...o})=>{const i=re(ge().sidebar,s);return f.jsx(Jg.Provider,{value:{theme:i,isCollapsed:r},children:f.jsx(e,{"aria-label":"Sidebar",hidden:r&&n==="hide",className:Q(i.root.base,i.root.collapsed[r?"on":"off"],a),...o,children:f.jsx("div",{className:i.root.inner,children:t})})})};am.displayName="Sidebar",Object.assign(am,{Collapse:qg,CTA:$g,Item:tm,Items:rm,ItemGroup:nm,Logo:sm});const om=_.createContext(void 0);function W_(){const t=_.useContext(om);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const im=_.createContext(void 0);function zc(){const t=_.useContext(im);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const lm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=zc(),o=re(a.body,n);return f.jsx(om.Provider,{value:{theme:o},children:f.jsx("tbody",{className:Q(o.base,e),ref:s,...r,children:t})})});lm.displayName="Table.Body";const cm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=W_(),o=re(a.cell,n);return f.jsx("td",{className:Q(o.base,e),ref:s,...r,children:t})});cm.displayName="Table.Cell";const dm=_.createContext(void 0);function z_(){const t=_.useContext(dm);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const um=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=zc(),o=re(a.head,n);return f.jsx(dm.Provider,{value:{theme:o},children:f.jsx("thead",{className:Q(o.base,e),ref:s,...r,children:f.jsx("tr",{children:t})})})});um.displayName="Table.Head";const fm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=z_(),o=re(a.cell,n);return f.jsx("th",{className:Q(o.base,e),ref:s,...r,children:t})});fm.displayName="Table.HeadCell";const hm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a,hoverable:o,striped:i}=zc(),l=re(a.row,n);return f.jsx("tr",{ref:s,"data-testid":"table-row-element",className:Q(l.base,i&&l.striped,o&&l.hovered,e),...r,children:t})});hm.displayName="Table.Row";const gm=_.forwardRef(({children:t,className:e,striped:n,hoverable:r,theme:s={},...a},o)=>{const i=re(ge().table,s);return f.jsx("div",{"data-testid":"table-element",className:Q(i.root.wrapper),children:f.jsxs(im.Provider,{value:{theme:i,striped:n,hoverable:r},children:[f.jsx("div",{className:Q(i.root.shadow,e)}),f.jsx("table",{className:Q(i.root.base,e),...a,ref:o,children:t})]})})});gm.displayName="Table";const Ke=Object.assign(gm,{Head:um,Body:lm,Row:hm,Cell:cm,HeadCell:fm}),mm=({children:t,className:e})=>f.jsx("div",{className:e,children:t});mm.displayName="Tabs.Item";const pm=_.forwardRef(({children:t,className:e,onActiveTabChange:n,style:r="default",theme:s={},...a},o)=>{const i=re(ge().tabs,s),l=_.useId(),c=_.useMemo(()=>_.Children.map(_.Children.toArray(t),({props:w})=>w),[t]),d=_.useRef([]),[u,g]=_.useState(Math.max(0,c.findIndex(w=>w.active))),[h,p]=_.useState(-1),m=w=>{g(w),n&&n(w)},b=({target:w})=>{m(w),p(w)},y=({event:w,target:x})=>{w.key==="ArrowLeft"&&p(Math.max(0,h-1)),w.key==="ArrowRight"&&p(Math.min(c.length-1,h+1)),w.key==="Enter"&&(m(x),p(x))},v=i.tablist.tabitem.styles[r],k=i.tabitemcontainer.styles[r];return _.useEffect(()=>{var w;(w=d.current[h])==null||w.focus()},[h]),_.useImperativeHandle(o,()=>({setActiveTab:m})),f.jsxs("div",{className:Q(i.base,e),children:[f.jsx("div",{"aria-label":"Tabs",role:"tablist",className:Q(i.tablist.base,i.tablist.styles[r],e),...a,children:c.map((w,x)=>f.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${x}`,"aria-selected":x===u,className:Q(i.tablist.tabitem.base,v.base,x===u&&v.active.on,x!==u&&!w.disabled&&v.active.off),disabled:w.disabled,id:`${l}-tab-${x}`,onClick:()=>b({target:x}),onKeyDown:S=>y({event:S,target:x}),ref:S=>d.current[x]=S,role:"tab",tabIndex:x===h?0:-1,style:{zIndex:x===h?2:1},children:[w.icon&&f.jsx(w.icon,{className:i.tablist.tabitem.icon}),w.title]},x))}),f.jsx("div",{className:Q(i.tabitemcontainer.base,k),children:c.map((w,x)=>f.jsx("div",{"aria-labelledby":`${l}-tab-${x}`,className:i.tabpanel,hidden:x!==u,id:`${l}-tabpanel-${x}`,role:"tabpanel",tabIndex:0,children:w.children},x))})]})});pm.displayName="Tabs",Object.assign(pm,{Item:mm});const H_=_.forwardRef(({className:t,color:e="gray",helperText:n,shadow:r,theme:s={},...a},o)=>{const i=re(ge().textarea,s);return f.jsxs(f.Fragment,{children:[f.jsx("textarea",{ref:o,className:Q(i.base,i.colors[e],i.withShadow[r?"on":"off"],t),...a}),n&&f.jsx(ia,{color:e,children:n})]})});H_.displayName="Textarea";const bm=_.createContext(void 0);function Hc(){const t=_.useContext(bm);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const ym=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Hc(),a=re(s.body,n);return f.jsx("div",{className:Q(a.base,e),...r,children:t})},wm=_.createContext(void 0);function Yc(){const t=_.useContext(wm);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const vm=_.createContext(void 0);function xm(){const t=_.useContext(vm);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const km=({children:t,className:e,theme:n={},...r})=>{const{horizontal:s}=Yc(),{theme:a}=xm(),o=re(a.content,n);return f.jsx(bm.Provider,{value:{theme:o},children:f.jsx("div",{"data-testid":"timeline-content",className:Q(s&&o.root.base,e),...r,children:t})})},_m=({children:t,className:e,theme:n={},...r})=>{const{theme:s,horizontal:a}=Yc(),o=re(s.item,n);return f.jsx(vm.Provider,{value:{theme:o},children:f.jsx("li",{"data-testid":"timeline-item",className:Q(a&&o.root.horizontal,!a&&o.root.vertical,e),...r,children:t})})},Sm=({children:t,className:e,icon:n,theme:r={},...s})=>{const{horizontal:a}=Yc(),{theme:o}=xm(),i=re(o.point,r);return f.jsxs("div",{"data-testid":"timeline-point",className:Q(a&&i.horizontal,!a&&i.vertical,e),...s,children:[t,n?f.jsx("span",{className:Q(i.marker.icon.wrapper),children:f.jsx(n,{"aria-hidden":!0,className:Q(i.marker.icon.base)})}):f.jsx("div",{className:Q(a&&i.marker.base.horizontal,!a&&i.marker.base.vertical)}),a&&f.jsx("div",{className:Q(i.line)})]})},Cm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Hc(),a=re(s.time,n);return f.jsx("time",{className:Q(a.base,e),...r,children:t})},Om=({as:t="h3",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Hc(),o=re(a.title,r);return f.jsx(t,{className:Q(o.base,n),...s,children:e})},Dm=({children:t,className:e,horizontal:n,theme:r={},...s})=>{const a=re(ge().timeline,r);return f.jsx(wm.Provider,{value:{theme:a,horizontal:n},children:f.jsx("ol",{"data-testid":"timeline-component",className:Q(n&&a.root.direction.horizontal,!n&&a.root.direction.vertical,e),...s,children:t})})};Dm.displayName="Timeline",_m.displayName="Timeline.Item",Sm.displayName="Timeline.Point",km.displayName="Timeline.Content",Cm.displayName="Timeline.Time",Om.displayName="Timeline.Title",ym.displayName="Timeline.Body",Object.assign(Dm,{Item:_m,Point:Sm,Content:km,Time:Cm,Title:Om,Body:ym});const Mm=_.createContext(void 0);function Y_(){const t=_.useContext(Mm);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const Em=({className:t,onClick:e,theme:n={},xIcon:r=Rx,onDismiss:s,...a})=>{const{theme:o,duration:i,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=Y_(),g=re(o.toggle,n),h=p=>{if(e&&e(p),s){s();return}d(!l),setTimeout(()=>u(!c),i)};return f.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:Q(g.base,t),...a,children:f.jsx(r,{"aria-hidden":!0,className:g.icon})})},V_={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Tm=({children:t,className:e,duration:n=300,theme:r={},...s})=>{const[a,o]=_.useState(!1),[i,l]=_.useState(!1),c=re(ge().toast,r);return i?null:f.jsx(Mm.Provider,{value:{theme:c,duration:n,isClosed:a,isRemoved:i,setIsClosed:o,setIsRemoved:l},children:f.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:Q(c.root.base,V_[n],a&&c.root.closed,e),...s,children:t})})};Tm.displayName="Toast",Em.displayName="Toast.Toggle",Object.assign(Tm,{Toggle:Em});const U_=_.forwardRef(({checked:t,className:e,color:n="blue",sizing:r="md",disabled:s,label:a,name:o,onChange:i,theme:l={},...c},d)=>{const u=_.useId(),g=re(ge().toggleSwitch,l),h=()=>i(!t),p=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return f.jsxs(f.Fragment,{children:[o&&t?f.jsx("input",{ref:d,checked:t,hidden:!0,name:o,readOnly:!0,type:"checkbox",className:"sr-only"}):null,f.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:s,id:`${u}-flowbite-toggleswitch`,onClick:p,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:Q(g.root.base,g.root.active[s?"off":"on"],e),...c,children:[f.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:Q(g.toggle.base,g.toggle.checked[t?"on":"off"],t&&g.toggle.checked.color[n],g.toggle.sizes[r])}),a!=null&&a.length?f.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:g.root.label,children:a}):null]})]})});U_.displayName="ToggleSwitch";const X_="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.5096%203.7321C17.4858%206.70824%2017.4858%2011.5335%2014.5096%2014.5096C11.5335%2017.4858%206.70824%2017.4858%203.7321%2014.5096C0.755965%2011.5335%200.755965%206.70824%203.7321%203.7321C6.70824%200.755965%2011.5335%200.755965%2014.5096%203.7321Z'%20stroke='%23191960'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18.4999%2018.4999L14.5049%2014.5049'%20stroke='%23191960'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",_s=_.forwardRef(({icon:t,placeholder:e,label:n,error:r,type:s,classInclude:a,maxLength:o,onChange:i,classLabel:l,...c},d)=>f.jsxs("div",{className:`${n?"mb-3":""}`,children:[n&&f.jsx("label",{className:`mb-1 block font-semibold ${l??""}`,children:n}),t===!0?f.jsx(ds,{className:`${a}`,sizing:"sm",maxLength:o,ref:d,type:s,rightIcon:()=>f.jsx("img",{src:X_,alt:"search",width:17,height:17}),placeholder:e,onChange:i,...c}):f.jsx(ds,{className:`${a}`,sizing:"sm",maxLength:o,ref:d,type:s,placeholder:e,onChange:i,...c}),r&&f.jsx("p",{className:"mt-1 text-xs text-red-500",children:r})]}));_s.displayName="InputForm";const G_={"mth-password":"passwordInput-module__mth-password__R6DoN"},Vc=({placeholder:t,onChange:e,value:n,...r})=>{const[s,a]=_.useState(!1),o=()=>{a(!s)};return f.jsx("div",{className:"mb-5",children:f.jsxs("div",{className:"relative inline-block w-full",children:[f.jsx("input",{type:s?"text":"password",value:n,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...r}),f.jsx("button",{type:"button",onClick:o,className:G_["mth-password"],children:s?f.jsx(T_,{}):f.jsx(P_,{})})]})})},Pm={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},Nm=({start:t,end:e,current:n,type:r})=>{const s=(n-t)/(e-t)*100,a=Math.min(Math.max(s,0),100),o=()=>a<10?"left-0":a>90?"right-0":"left-1/2 transform -translate-x-1/2";return f.jsxs("div",{className:"w-full p-1",children:[f.jsxs("div",{className:"mb-2 flex justify-between text-xs text-gray-400",children:[f.jsx("span",{children:t.toLocaleString()}),f.jsx("span",{children:e.toLocaleString()})]}),f.jsxs("div",{className:"relative mb-5 h-1 w-full rounded-full bg-gray-200",children:[f.jsx("div",{className:`${Pm.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${a}%`}}),f.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${a}%`},children:[f.jsx("div",{className:`${Pm.mth_progress_bar_thumb} w-2 h-2 rounded-full shadow-lg`}),f.jsxs("div",{className:`absolute top-full mt-2 text-xs font-medium text-black whitespace-nowrap ${o()}`,children:[n.toLocaleString()," ",r==="percentage"?"%":""]})]})]})]})},jm=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:s,id:a,classDiv:o,...i},l)=>f.jsxs("div",{className:o,children:[f.jsxs("select",{ref:l,id:a,className:"h-8 w-full rounded-lg border px-3 py-0.5",value:r,onChange:s,...i,children:[f.jsx("option",{value:"0",children:e||"Seleccione una opción"}),t==null?void 0:t.map(c=>f.jsx("option",{value:c.value,children:c.label},c.value))]}),n&&f.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));jm.displayName="SelectForm";const Im={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},K_=({logo:t,number:e,title:n,start:r,end:s,current:a,type:o,classIm:i})=>{const l=c=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(c);return f.jsxs("div",{className:`${Im.mth_card_indicator} flex flex-col border bg-white p-5`,children:[f.jsx("div",{className:"flex justify-end",children:f.jsx(Cr,{src:t||"",alt:"Icon",width:30,height:30,classIm:i})}),f.jsx("h2",{className:"mt-2 font-bold mth_card_indicator_title",id:`mth_card_indicator_${n}_title`,children:n.toUpperCase()}),f.jsxs("small",{className:"text-2xl font-extrabold mth_card_indicator_number",children:[l(e)," ",o==="percentage"?"%":""]}),f.jsx("div",{className:"mt-2 mth_card_indicator_progress_bar",children:f.jsx(Nm,{start:r,end:s,current:a,type:o})})]})};/*!
|
|
8
|
+
*/var _k=["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])"],Bo=_k.join(","),Ah=typeof Element>"u",bs=Ah?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Wo=!Ah&&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},zo=function t(e,n){var r;n===void 0&&(n=!0);var s=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=s===""||s==="true",o=a||n&&e&&t(e.parentNode);return o},Ck=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},Sk=function(e,n,r){if(zo(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Bo));return n&&bs.call(e,Bo)&&s.unshift(e),s=s.filter(r),s},Ok=function t(e,n,r){for(var s=[],a=Array.from(e);a.length;){var o=a.shift();if(!zo(o,!1))if(o.tagName==="SLOT"){var i=o.assignedElements(),l=i.length?i:o.children,c=t(l,!0,r);r.flatten?s.push.apply(s,c):s.push({scopeParent:o,candidates:c})}else{var d=bs.call(o,Bo);d&&r.filter(o)&&(n||!e.includes(o))&&s.push(o);var u=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),h=!zo(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&h){var g=t(u===!0?o.children:u.children,!0,r);r.flatten?s.push.apply(s,g):s.push({scopeParent:o,candidates:g})}else a.unshift.apply(a,o.children)}}return s},Rh=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Lh=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ck(e))&&!Rh(e)?0:e.tabIndex},Dk=function(e,n){var r=Lh(e);return r<0&&n&&!Rh(e)?0:r},Mk=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Fh=function(e){return e.tagName==="INPUT"},Ek=function(e){return Fh(e)&&e.type==="hidden"},Tk=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},Pk=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},Nk=function(e){if(!e.name)return!0;var n=e.form||Wo(e),r=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(e.name));else try{s=r(e.name)}catch(o){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",o.message),!1}var a=Pk(s,e.form);return!a||a===e},jk=function(e){return Fh(e)&&e.type==="radio"},Ik=function(e){return jk(e)&&!Nk(e)},Ak=function(e){var n,r=e&&Wo(e),s=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==e){var o,i,l;for(a=!!((o=s)!==null&&o!==void 0&&(i=o.ownerDocument)!==null&&i!==void 0&&i.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!a&&s;){var c,d,u;r=Wo(s),s=(c=r)===null||c===void 0?void 0:c.host,a=!!((d=s)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(s))}}return a},Bh=function(e){var n=e.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},Rk=function(e,n){var r=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=bs.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if(bs.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof s=="function"){for(var i=e;e;){var l=e.parentElement,c=Wo(e);if(l&&!l.shadowRoot&&s(l)===!0)return Bh(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=i}if(Ak(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Bh(e);return!1},Lk=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return bs.call(n,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}n=n.parentElement}return!1},Fk=function(e,n){return!(n.disabled||zo(n)||Ek(n)||Rk(n,e)||Tk(n)||Lk(n))},vc=function(e,n){return!(Ik(n)||Lh(n)<0||!Fk(e,n))},Bk=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Wk=function t(e){var n=[],r=[];return e.forEach(function(s,a){var o=!!s.scopeParent,i=o?s.scopeParent:s,l=Dk(i,o),c=o?t(s.candidates):i;l===0?o?n.push.apply(n,c):n.push(i):r.push({documentOrder:a,tabIndex:l,item:s,isScope:o,content:c})}),r.sort(Mk).reduce(function(s,a){return a.isScope?s.push.apply(s,a.content):s.push(a.content),s},[]).concat(n)},Ho=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Ok([e],n.includeContainer,{filter:vc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Bk}):r=Sk(e,n.includeContainer,vc.bind(null,n)),Wk(r)},zk=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return bs.call(e,Bo)===!1?!1:vc(n,e)};function Wh(t){return W.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})},t)}const Hk=W.useInsertionEffect||(t=>t());function pn(t){const e=W.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Hk(()=>{e.current=t}),W.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}const xc="ArrowUp",ua="ArrowDown",ys="ArrowLeft",ws="ArrowRight";function Yo(t,e,n){return Math.floor(t/e)!==n}function fa(t,e){return e<0||e>=t.current.length}function kc(t,e){return yt(t,{disabledIndices:e})}function zh(t,e){return yt(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function yt(t,e){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:s,amount:a=1}=e===void 0?{}:e;const o=t.current,i=s?c=>s.includes(c):c=>{const d=o[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=n;do l+=r?-a:a;while(l>=0&&l<=o.length-1&&i(l));return l}function Yk(t,e){let{event:n,orientation:r,loop:s,cols:a,disabledIndices:o,minIndex:i,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(n.key===xc){if(d&>(n),c===-1)u=l;else if(u=yt(t,{startingIndex:u,amount:a,decrement:!0,disabledIndices:o}),s&&(c-a<i||u<0)){const h=c%a,g=l%a,m=l-(g-h);g===h?u=l:u=g>h?m:m-a}fa(t,u)&&(u=c)}if(n.key===ua&&(d&>(n),c===-1?u=i:(u=yt(t,{startingIndex:c,amount:a,disabledIndices:o}),s&&c+a>l&&(u=yt(t,{startingIndex:c%a-a,amount:a,disabledIndices:o}))),fa(t,u)&&(u=c)),r==="both"){const h=gs(c/a);n.key===ws&&(d&>(n),c%a!==a-1?(u=yt(t,{startingIndex:c,disabledIndices:o}),s&&Yo(u,a,h)&&(u=yt(t,{startingIndex:c-c%a-1,disabledIndices:o}))):s&&(u=yt(t,{startingIndex:c-c%a-1,disabledIndices:o})),Yo(u,a,h)&&(u=c)),n.key===ys&&(d&>(n),c%a!==0?(u=yt(t,{startingIndex:c,disabledIndices:o,decrement:!0}),s&&Yo(u,a,h)&&(u=yt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o}))):s&&(u=yt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o})),Yo(u,a,h)&&(u=c));const g=gs(l/a)===h;fa(t,u)&&(s&&g?u=n.key===ys?l:yt(t,{startingIndex:c-c%a-1,disabledIndices:o}):u=c)}return u}function Vk(t,e,n){const r=[];let s=0;return t.forEach((a,o)=>{let{width:i,height:l}=a;if(i>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+o+" is greater than grid columns");let c=!1;for(n&&(s=0);!c;){const d=[];for(let u=0;u<i;u++)for(let h=0;h<l;h++)d.push(s+u+h*e);s%e+i<=e&&d.every(u=>r[u]==null)?(d.forEach(u=>{r[u]=o}),c=!0):s++}}),[...r]}function Uk(t,e,n,r,s){if(t===-1)return-1;const a=n.indexOf(t);switch(s){case"tl":return a;case"tr":return a+e[t].width-1;case"bl":return a+(e[t].height-1)*r;case"br":return n.lastIndexOf(t)}}function Xk(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}let Hh=0;function Bn(t,e){e===void 0&&(e={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:s=!1}=e;r&&cancelAnimationFrame(Hh);const a=()=>t==null?void 0:t.focus({preventScroll:n});s?a():Hh=requestAnimationFrame(a)}var Re=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Gk(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Kk(t,e){if(t.size!==e.size)return!1;for(const[n,r]of t.entries())if(r!==e.get(n))return!1;return!0}const Yh=W.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Zk(t){let{children:e,elementsRef:n,labelsRef:r}=t;const[s,a]=W.useState(()=>new Map),o=W.useCallback(l=>{a(c=>new Map(c).set(l,null))},[]),i=W.useCallback(l=>{a(c=>{const d=new Map(c);return d.delete(l),d})},[]);return Re(()=>{const l=new Map(s);Array.from(l.keys()).sort(Gk).forEach((d,u)=>{l.set(d,u)}),Kk(s,l)||a(l)},[s]),W.createElement(Yh.Provider,{value:W.useMemo(()=>({register:o,unregister:i,map:s,elementsRef:n,labelsRef:r}),[o,i,s,n,r])},e)}function Qk(t){let{label:e}=t===void 0?{}:t;const[n,r]=W.useState(null),s=W.useRef(null),{register:a,unregister:o,map:i,elementsRef:l,labelsRef:c}=W.useContext(Yh),d=W.useCallback(u=>{if(s.current=u,n!==null&&(l.current[n]=u,c)){var h;const g=e!==void 0;c.current[n]=g?e:(h=u==null?void 0:u.textContent)!=null?h:null}},[n,l,c,e]);return Re(()=>{const u=s.current;if(u)return a(u),()=>{o(u)}},[a,o]),Re(()=>{const u=s.current?i.get(s.current):null;u!=null&&r(u)},[i]),W.useMemo(()=>({ref:d,index:n??-1}),[n,d])}function ha(){return ha=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ha.apply(this,arguments)}let _c=!1,Jk=0;const Vh=()=>"floating-ui-"+Jk++;function qk(){const[t,e]=W.useState(()=>_c?Vh():void 0);return Re(()=>{t==null&&e(Vh())},[]),W.useEffect(()=>{_c||(_c=!0)},[]),t}const Vo=W.useId||qk;function $k(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(s=>s(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(s=>s!==n))||[])}}}const e5=W.createContext(null),t5=W.createContext(null),Uo=()=>{var t;return((t=W.useContext(e5))==null?void 0:t.id)||null},ga=()=>W.useContext(t5);function Pr(t){return"data-floating-ui-"+t}function bn(t){const e=_.useRef(t);return Re(()=>{e.current=t}),e}const Uh=Pr("safe-polygon");function Cc(t,e,n){return n&&!Po(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function n5(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,events:a,elements:{domReference:o,floating:i},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:h=!1,restMs:g=0,move:m=!0}=e,p=ga(),b=Uo(),y=bn(u),v=bn(d),k=W.useRef(),w=W.useRef(),x=W.useRef(),C=W.useRef(),N=W.useRef(!0),M=W.useRef(!1),P=W.useRef(()=>{}),S=W.useCallback(()=>{var D;const j=(D=s.current.openEvent)==null?void 0:D.type;return(j==null?void 0:j.includes("mouse"))&&j!=="mousedown"},[s]);W.useEffect(()=>{if(!c)return;function D(j){let{open:E}=j;E||(clearTimeout(w.current),clearTimeout(C.current),N.current=!0)}return a.on("openchange",D),()=>{a.off("openchange",D)}},[c,a]),W.useEffect(()=>{if(!c||!y.current||!n)return;function D(E){S()&&r(!1,E,"hover")}const j=_t(i).documentElement;return j.addEventListener("mouseleave",D),()=>{j.removeEventListener("mouseleave",D)}},[i,n,r,c,y,S]);const B=W.useCallback(function(D,j,E){j===void 0&&(j=!0),E===void 0&&(E="hover");const Y=Cc(v.current,"close",k.current);Y&&!x.current?(clearTimeout(w.current),w.current=setTimeout(()=>r(!1,D,E),Y)):j&&(clearTimeout(w.current),r(!1,D,E))},[v,r]),A=W.useCallback(()=>{P.current(),x.current=void 0},[]),T=W.useCallback(()=>{if(M.current){const D=_t(l.floating.current).body;D.style.pointerEvents="",D.removeAttribute(Uh),M.current=!1}},[l]);return W.useEffect(()=>{if(!c)return;function D(){return s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1}function j(X){if(clearTimeout(w.current),N.current=!1,h&&!Po(k.current)||g>0&&Cc(v.current,"open")===0)return;const ee=Cc(v.current,"open",k.current);ee?w.current=setTimeout(()=>{r(!0,X,"hover")},ee):r(!0,X,"hover")}function E(X){if(D())return;P.current();const ee=_t(i);if(clearTimeout(C.current),y.current){n||clearTimeout(w.current),x.current=y.current({...t,tree:p,x:X.clientX,y:X.clientY,onClose(){T(),A(),B(X,!0,"safe-polygon")}});const V=x.current;ee.addEventListener("mousemove",V),P.current=()=>{ee.removeEventListener("mousemove",V)};return}(k.current==="touch"?!tt(i,X.relatedTarget):!0)&&B(X)}function Y(X){D()||y.current==null||y.current({...t,tree:p,x:X.clientX,y:X.clientY,onClose(){T(),A(),B(X)}})(X)}if(Ne(o)){const X=o;return n&&X.addEventListener("mouseleave",Y),i==null||i.addEventListener("mouseleave",Y),m&&X.addEventListener("mousemove",j,{once:!0}),X.addEventListener("mouseenter",j),X.addEventListener("mouseleave",E),()=>{n&&X.removeEventListener("mouseleave",Y),i==null||i.removeEventListener("mouseleave",Y),m&&X.removeEventListener("mousemove",j),X.removeEventListener("mouseenter",j),X.removeEventListener("mouseleave",E)}}},[o,i,c,t,h,g,m,B,A,T,r,n,p,v,y,s]),Re(()=>{var D;if(c&&n&&(D=y.current)!=null&&D.__options.blockPointerEvents&&S()){const E=_t(i).body;if(E.setAttribute(Uh,""),E.style.pointerEvents="none",M.current=!0,Ne(o)&&i){var j;const Y=o,X=p==null||(j=p.nodesRef.current.find(ee=>ee.id===b))==null||(j=j.context)==null?void 0:j.elements.floating;return X&&(X.style.pointerEvents=""),Y.style.pointerEvents="auto",i.style.pointerEvents="auto",()=>{Y.style.pointerEvents="",i.style.pointerEvents=""}}}},[c,n,b,i,o,p,y,S]),Re(()=>{n||(k.current=void 0,A(),T())},[n,A,T]),W.useEffect(()=>()=>{A(),clearTimeout(w.current),clearTimeout(C.current),T()},[c,o,A,T]),W.useMemo(()=>{if(!c)return{};function D(j){k.current=j.pointerType}return{reference:{onPointerDown:D,onPointerEnter:D,onMouseMove(j){n||g===0||(clearTimeout(C.current),C.current=setTimeout(()=>{N.current||r(!0,j.nativeEvent,"hover")},g))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(j){B(j.nativeEvent,!1)}}}},[c,g,n,r,B])}function r5(t,e){var n;let r=[],s=(n=t.find(a=>a.id===e))==null?void 0:n.parentId;for(;s;){const a=t.find(o=>o.id===s);s=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function Nr(t,e){let n=t.filter(s=>{var a;return s.parentId===e&&((a=s.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=t.filter(s=>{var a;return(a=r)==null?void 0:a.some(o=>{var i;return s.parentId===o.id&&((i=s.context)==null?void 0:i.open)})}),n=n.concat(r);return n}function s5(t,e){let n,r=-1;function s(a,o){o>r&&(n=a,r=o),Nr(t,a).forEach(l=>{s(l.id,o+1)})}return s(e,0),t.find(a=>a.id===n)}let vs=new WeakMap,Xo=new WeakSet,Go={},Sc=0;const a5=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Xh=t=>t&&(t.host||Xh(t.parentNode)),o5=(t,e)=>e.map(n=>{if(t.contains(n))return n;const r=Xh(n);return t.contains(r)?r:null}).filter(n=>n!=null);function i5(t,e,n,r){const s="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=o5(e,t),i=new Set,l=new Set(o),c=[];Go[s]||(Go[s]=new WeakMap);const d=Go[s];o.forEach(u),h(e),i.clear();function u(g){!g||i.has(g)||(i.add(g),g.parentNode&&u(g.parentNode))}function h(g){!g||l.has(g)||Array.prototype.forEach.call(g.children,m=>{if(i.has(m))h(m);else{const p=a?m.getAttribute(a):null,b=p!==null&&p!=="false",y=(vs.get(m)||0)+1,v=(d.get(m)||0)+1;vs.set(m,y),d.set(m,v),c.push(m),y===1&&b&&Xo.add(m),v===1&&m.setAttribute(s,""),!b&&a&&m.setAttribute(a,"true")}})}return Sc++,()=>{c.forEach(g=>{const m=(vs.get(g)||0)-1,p=(d.get(g)||0)-1;vs.set(g,m),d.set(g,p),m||(!Xo.has(g)&&a&&g.removeAttribute(a),Xo.delete(g)),p||g.removeAttribute(s)}),Sc--,Sc||(vs=new WeakMap,vs=new WeakMap,Xo=new WeakSet,Go={})}}function Gh(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=_t(t[0]).body;return i5(t.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,e,n)}const ma=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Kh(t,e){const n=Ho(t,ma());e==="prev"&&n.reverse();const r=n.indexOf(hn(_t(t)));return n.slice(r+1)[0]}function Zh(){return Kh(document.body,"next")}function Qh(){return Kh(document.body,"prev")}function pa(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!tt(n,r)}function l5(t){Ho(t,ma()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function c5(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Oc={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 d5;function Jh(t){t.key==="Tab"&&(t.target,clearTimeout(d5))}const Ko=W.forwardRef(function(e,n){const[r,s]=W.useState();Re(()=>(lc()&&s("button"),document.addEventListener("keydown",Jh),()=>{document.removeEventListener("keydown",Jh)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Pr("focus-guard")]:"",style:Oc};return W.createElement("span",ha({},e,a))}),qh=W.createContext(null),$h=Pr("portal");function u5(t){let{id:e,root:n}=t===void 0?{}:t;const[r,s]=W.useState(null),a=Vo(),o=e0(),i=W.useRef(null);return Re(()=>()=>{r==null||r.remove(),queueMicrotask(()=>{i.current=null})},[r]),Re(()=>{if(i.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=a,c.setAttribute($h,""),l.appendChild(c),i.current=c,s(c)},[e,a]),Re(()=>{if(i.current)return;let l=n||(o==null?void 0:o.portalNode);l&&!Ne(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=a,d.setAttribute($h,""),l=c||l,l.appendChild(d),i.current=d,s(d)},[e,n,a,o]),r}function f5(t){let{children:e,id:n,root:r=null,preserveTabOrder:s=!0}=t;const a=u5({id:n,root:r}),[o,i]=W.useState(null),l=W.useRef(null),c=W.useRef(null),d=W.useRef(null),u=W.useRef(null),h=!!o&&!o.modal&&o.open&&s&&!!(r||a);return W.useEffect(()=>{if(!a||!s||o!=null&&o.modal)return;function g(m){a&&pa(m)&&(m.type==="focusin"?c5:l5)(a)}return a.addEventListener("focusin",g,!0),a.addEventListener("focusout",g,!0),()=>{a.removeEventListener("focusin",g,!0),a.removeEventListener("focusout",g,!0)}},[a,s,o==null?void 0:o.modal]),W.createElement(qh.Provider,{value:W.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:a,setFocusManagerState:i}),[s,a])},h&&a&&W.createElement(Ko,{"data-type":"outside",ref:l,onFocus:g=>{if(pa(g,a)){var m;(m=d.current)==null||m.focus()}else{const p=Qh()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus()}}}),h&&a&&W.createElement("span",{"aria-owns":a.id,style:Oc}),a&&vf.createPortal(e,a),h&&a&&W.createElement(Ko,{"data-type":"outside",ref:c,onFocus:g=>{if(pa(g,a)){var m;(m=u.current)==null||m.focus()}else{const p=Zh()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,g.nativeEvent))}}}))}const e0=()=>W.useContext(qh),h5=20;let jr=[];function Dc(t){jr=jr.filter(n=>n.isConnected);let e=t;if(!(!e||Mr(e)==="body")){if(!zk(e,ma())){const n=Ho(e,ma())[0];if(!n)return;e=n}jr.push(e),jr.length>h5&&(jr=jr.slice(-20))}}function t0(){return jr.slice().reverse().find(t=>t.isConnected)}const g5=W.forwardRef(function(e,n){return W.createElement("button",ha({},e,{type:"button",ref:n,tabIndex:-1,style:Oc}))});function n0(t){const{context:e,children:n,disabled:r=!1,order:s=["content"],guards:a=!0,initialFocus:o=0,returnFocus:i=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:h,nodeId:g,onOpenChange:m,events:p,dataRef:b,elements:{domReference:y,floating:v}}=e,k=typeof o=="number"&&o<0,w=ph(y)&&k,x=a5()?a:!0,C=bn(s),N=bn(o),M=bn(i),P=ga(),S=e0(),B=W.useRef(null),A=W.useRef(null),T=W.useRef(!1),D=W.useRef(!1),j=S!=null,E=W.useCallback(function(I){return I===void 0&&(I=v),I?Ho(I,ma()):[]},[v]),Y=W.useCallback(I=>{const V=E(I);return C.current.map(F=>y&&F==="reference"?y:v&&F==="floating"?v:V).filter(Boolean).flat()},[y,v,C,E]);W.useEffect(()=>{if(r||!l)return;function I(F){if(F.key==="Tab"){tt(v,hn(_t(v)))&&E().length===0&&!w&>(F);const L=Y(),R=ir(F);C.current[0]==="reference"&&R===y&&(gt(F),F.shiftKey?Bn(L[L.length-1]):Bn(L[1])),C.current[1]==="floating"&&R===v&&F.shiftKey&&(gt(F),Bn(L[0]))}}const V=_t(v);return V.addEventListener("keydown",I),()=>{V.removeEventListener("keydown",I)}},[r,y,v,l,C,w,E,Y]),W.useEffect(()=>{if(r||!d)return;function I(){D.current=!0,setTimeout(()=>{D.current=!1})}function V(F){const L=F.relatedTarget;queueMicrotask(()=>{const R=!(tt(y,L)||tt(v,L)||tt(L,v)||tt(S==null?void 0:S.portalNode,L)||L!=null&&L.hasAttribute(Pr("focus-guard"))||P&&(Nr(P.nodesRef.current,g).find(O=>{var z,J;return tt((z=O.context)==null?void 0:z.elements.floating,L)||tt((J=O.context)==null?void 0:J.elements.domReference,L)})||r5(P.nodesRef.current,g).find(O=>{var z,J;return((z=O.context)==null?void 0:z.elements.floating)===L||((J=O.context)==null?void 0:J.elements.domReference)===L})));L&&R&&!D.current&&L!==t0()&&(T.current=!0,m(!1,F))})}if(v&&ht(y))return y.addEventListener("focusout",V),y.addEventListener("pointerdown",I),!l&&v.addEventListener("focusout",V),()=>{y.removeEventListener("focusout",V),y.removeEventListener("pointerdown",I),!l&&v.removeEventListener("focusout",V)}},[r,y,v,l,g,P,S,m,d]),W.useEffect(()=>{var I;if(r)return;const V=Array.from((S==null||(I=S.portalNode)==null?void 0:I.querySelectorAll("["+Pr("portal")+"]"))||[]);if(v){const F=[v,...V,B.current,A.current,C.current.includes("reference")||w?y:null].filter(R=>R!=null),L=l||w?Gh(F,x,!x):Gh(F);return()=>{L()}}},[r,y,v,l,C,S,w,x]),Re(()=>{if(r||!v)return;const I=_t(v),V=hn(I);queueMicrotask(()=>{const F=Y(v),L=N.current,R=(typeof L=="number"?F[L]:L.current)||v,O=tt(v,V);!k&&!O&&u&&Bn(R,{preventScroll:R===v})})},[r,u,v,k,Y,N]),Re(()=>{if(r||!v)return;let I=!1;const V=_t(v),F=hn(V),L=b.current;Dc(F);function R(O){let{reason:z,event:J,nested:K}=O;z==="escape-key"&&h.domReference.current&&Dc(h.domReference.current),z==="hover"&&J.type==="mouseleave"&&(T.current=!0),z==="outside-press"&&(K?(T.current=!1,I=!0):T.current=!(gh(J)||ic(J)))}return p.on("openchange",R),()=>{p.off("openchange",R);const O=hn(V),z=tt(v,O)||P&&Nr(P.nodesRef.current,g).some(q=>{var te;return tt((te=q.context)==null?void 0:te.elements.floating,O)});(z||L.openEvent&&["click","mousedown"].includes(L.openEvent.type))&&h.domReference.current&&Dc(h.domReference.current);const K=t0();M.current&&!T.current&&ht(K)&&(!(K!==O&&O!==V.body)||z)&&Bn(K,{cancelPrevious:!1,preventScroll:I})}},[r,v,M,b,h,p,P,g]),Re(()=>{if(!(r||!S))return S.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:m,refs:h}),()=>{S.setFocusManagerState(null)}},[r,S,l,u,m,h,d]),Re(()=>{if(r||!v||typeof MutationObserver!="function"||k)return;const I=()=>{const F=v.getAttribute("tabindex");C.current.includes("floating")||hn(_t(v))!==h.domReference.current&&E().length===0?F!=="0"&&v.setAttribute("tabindex","0"):F!=="-1"&&v.setAttribute("tabindex","-1")};I();const V=new MutationObserver(I);return V.observe(v,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,v,h,C,E,k]);function X(I){return r||!c||!l?null:W.createElement(g5,{ref:I==="start"?B:A,onClick:V=>m(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const ee=!r&&x&&(j||l);return W.createElement(W.Fragment,null,ee&&W.createElement(Ko,{"data-type":"inside",ref:S==null?void 0:S.beforeInsideRef,onFocus:I=>{if(l){const F=Y();Bn(s[0]==="reference"?F[0]:F[F.length-1])}else if(S!=null&&S.preserveTabOrder&&S.portalNode)if(T.current=!1,pa(I,S.portalNode)){const F=Zh()||y;F==null||F.focus()}else{var V;(V=S.beforeOutsideRef.current)==null||V.focus()}}}),!w&&X("start"),n,X("end"),ee&&W.createElement(Ko,{"data-type":"inside",ref:S==null?void 0:S.afterInsideRef,onFocus:I=>{if(l)Bn(Y()[0]);else if(S!=null&&S.preserveTabOrder&&S.portalNode)if(d&&(T.current=!0),pa(I,S.portalNode)){const F=Qh()||y;F==null||F.focus()}else{var V;(V=S.afterOutsideRef.current)==null||V.focus()}}}))}const Mc=new Set,m5=W.forwardRef(function(e,n){let{lockScroll:r=!1,...s}=e;const a=Vo();return Re(()=>{if(!r)return;Mc.add(a);const o=/iP(hone|ad|od)|iOS/.test(oc()),i=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=i.left?parseFloat(i.left):window.pageXOffset,h=i.top?parseFloat(i.top):window.pageYOffset;if(i.overflow="hidden",d&&(i[c]=d+"px"),o){var g,m;const p=((g=window.visualViewport)==null?void 0:g.offsetLeft)||0,b=((m=window.visualViewport)==null?void 0:m.offsetTop)||0;Object.assign(i,{position:"fixed",top:-(h-Math.floor(b))+"px",left:-(u-Math.floor(p))+"px",right:"0"})}return()=>{Mc.delete(a),Mc.size===0&&(Object.assign(i,{overflow:"",[c]:""}),o&&(Object.assign(i,{position:"",top:"",left:"",right:""}),window.scrollTo(u,h)))}},[a,r]),W.createElement("div",ha({ref:n},s,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}}))});function r0(t){return ht(t.target)&&t.target.tagName==="BUTTON"}function s0(t){return uc(t)}function a0(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:a}}=t,{enabled:o=!0,event:i="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=W.useRef(),h=W.useRef(!1);return W.useMemo(()=>o?{reference:{onPointerDown(g){u.current=g.pointerType},onMouseDown(g){g.button===0&&(Po(u.current,!0)&&c||i!=="click"&&(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")?r(!1,g.nativeEvent,"click"):(g.preventDefault(),r(!0,g.nativeEvent,"click"))))},onClick(g){if(i==="mousedown"&&u.current){u.current=void 0;return}Po(u.current,!0)&&c||(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="click")?r(!1,g.nativeEvent,"click"):r(!0,g.nativeEvent,"click"))},onKeyDown(g){u.current=void 0,!(g.defaultPrevented||!d||r0(g))&&(g.key===" "&&!s0(a)&&(g.preventDefault(),h.current=!0),g.key==="Enter"&&r(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!d||r0(g)||s0(a)||g.key===" "&&h.current&&(h.current=!1,r(!(n&&l),g.nativeEvent,"click"))}}}:{},[o,s,i,c,d,a,l,n,r])}const p5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},b5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},o0=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function i0(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,nodeId:s,elements:{reference:a,domReference:o,floating:i},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:h="pointerdown",referencePress:g=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:b,capture:y}=e,v=ga(),k=pn(typeof u=="function"?u:()=>!1),w=typeof u=="function"?k:u,x=W.useRef(!1),C=W.useRef(!1),{escapeKey:N,outsidePress:M}=o0(b),{escapeKey:P,outsidePress:S}=o0(y),B=pn(j=>{if(!n||!c||!d||j.key!=="Escape")return;const E=v?Nr(v.nodesRef.current,s):[];if(!N&&(j.stopPropagation(),E.length>0)){let Y=!0;if(E.forEach(X=>{var ee;if((ee=X.context)!=null&&ee.open&&!X.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}r(!1,N1(j)?j.nativeEvent:j,"escape-key")}),A=pn(j=>{var E;const Y=()=>{var X;B(j),(X=ir(j))==null||X.removeEventListener("keydown",Y)};(E=ir(j))==null||E.addEventListener("keydown",Y)}),T=pn(j=>{const E=x.current;x.current=!1;const Y=C.current;if(C.current=!1,h==="click"&&Y||E||typeof w=="function"&&!w(j))return;const X=ir(j),ee="["+Pr("inert")+"]",I=_t(i).querySelectorAll(ee);let V=Ne(X)?X:null;for(;V&&!ar(V);){const R=Ln(V);if(ar(R)||!Ne(R))break;V=R}if(I.length&&Ne(X)&&!j1(X)&&!tt(X,i)&&Array.from(I).every(R=>!tt(V,R)))return;if(ht(X)&&i){const R=X.clientWidth>0&&X.scrollWidth>X.clientWidth,O=X.clientHeight>0&&X.scrollHeight>X.clientHeight;let z=O&&j.offsetX>X.clientWidth;if(O&&Qt(X).direction==="rtl"&&(z=j.offsetX<=X.offsetWidth-X.clientWidth),z||R&&j.offsetY>X.clientHeight)return}const F=v&&Nr(v.nodesRef.current,s).some(R=>{var O;return dc(j,(O=R.context)==null?void 0:O.elements.floating)});if(dc(j,i)||dc(j,o)||F)return;const L=v?Nr(v.nodesRef.current,s):[];if(L.length>0){let R=!0;if(L.forEach(O=>{var z;if((z=O.context)!=null&&z.open&&!O.context.dataRef.current.__outsidePressBubbles){R=!1;return}}),!R)return}r(!1,j,"outside-press")}),D=pn(j=>{var E;const Y=()=>{var X;T(j),(X=ir(j))==null||X.removeEventListener(h,Y)};(E=ir(j))==null||E.addEventListener(h,Y)});return W.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=N,l.current.__outsidePressBubbles=M;function j(X){r(!1,X,"ancestor-scroll")}const E=_t(i);d&&E.addEventListener("keydown",P?A:B,P),w&&E.addEventListener(h,S?D:T,S);let Y=[];return p&&(Ne(o)&&(Y=or(o)),Ne(i)&&(Y=Y.concat(or(i))),!Ne(a)&&a&&a.contextElement&&(Y=Y.concat(or(a.contextElement)))),Y=Y.filter(X=>{var ee;return X!==((ee=E.defaultView)==null?void 0:ee.visualViewport)}),Y.forEach(X=>{X.addEventListener("scroll",j,{passive:!0})}),()=>{d&&E.removeEventListener("keydown",P?A:B,P),w&&E.removeEventListener(h,S?D:T,S),Y.forEach(X=>{X.removeEventListener("scroll",j)})}},[l,i,o,a,d,w,h,n,r,p,c,N,M,B,P,A,T,S,D]),W.useEffect(()=>{x.current=!1},[w,h]),W.useMemo(()=>c?{reference:{onKeyDown:B,[p5[m]]:j=>{g&&r(!1,j.nativeEvent,"reference-press")}},floating:{onKeyDown:B,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[b5[h]]:()=>{x.current=!0}}}:{},[c,g,h,m,r,B])}let Ec;process.env.NODE_ENV!=="production"&&(Ec=new Set);function l0(t){var e;t===void 0&&(t={});const{open:n=!1,onOpenChange:r,nodeId:s}=t;if(process.env.NODE_ENV!=="production"){var a;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((a=t.elements)!=null&&a.reference&&!Ne(t.elements.reference)){var o;if(!((o=Ec)!=null&&o.has(M))){var i;(i=Ec)==null||i.add(M),console.error(M)}}}const[l,c]=W.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=pk(t),h=ga(),g=Uo()!=null,m=pn((M,P,S)=>{M&&(b.current.openEvent=P),y.emit("openchange",{open:M,event:P,reason:S,nested:g}),r==null||r(M,P,S)}),p=W.useRef(null),b=W.useRef({}),y=W.useState(()=>$k())[0],v=Vo(),k=W.useCallback(M=>{const P=Ne(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),contextElement:M}:M;u.refs.setReference(P)},[u.refs]),w=W.useCallback(M=>{(Ne(M)||M===null)&&(p.current=M,c(M)),(Ne(u.refs.reference.current)||u.refs.reference.current===null||M!==null&&!Ne(M))&&u.refs.setReference(M)},[u.refs]),x=W.useMemo(()=>({...u.refs,setReference:w,setPositionReference:k,domReference:p}),[u.refs,w,k]),C=W.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),N=W.useMemo(()=>({...u,refs:x,elements:C,dataRef:b,nodeId:s,floatingId:v,events:y,open:n,onOpenChange:m}),[u,s,v,y,n,m,x,C]);return Re(()=>{const M=h==null?void 0:h.nodesRef.current.find(P=>P.id===s);M&&(M.context=N)}),W.useMemo(()=>({...u,context:N,refs:x,elements:C}),[u,x,C,N])}function y5(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:s,refs:a,elements:{domReference:o}}=t,{enabled:i=!0,visibleOnly:l=!0}=e,c=W.useRef(!1),d=W.useRef(),u=W.useRef(!0);return W.useEffect(()=>{if(!i)return;const h=Mt(o);function g(){!n&&ht(o)&&o===hn(_t(o))&&(c.current=!0)}function m(){u.current=!0}return h.addEventListener("blur",g),h.addEventListener("keydown",m,!0),()=>{h.removeEventListener("blur",g),h.removeEventListener("keydown",m,!0)}},[o,n,i]),W.useEffect(()=>{if(!i)return;function h(g){let{reason:m}=g;(m==="reference-press"||m==="escape-key")&&(c.current=!0)}return s.on("openchange",h),()=>{s.off("openchange",h)}},[s,i]),W.useEffect(()=>()=>{clearTimeout(d.current)},[]),W.useMemo(()=>i?{reference:{onPointerDown(h){ic(h.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(h){if(c.current)return;const g=ir(h.nativeEvent);if(l&&Ne(g))try{if(lc()&&mh())throw Error();if(!g.matches(":focus-visible"))return}catch{if(!u.current&&!uc(g))return}r(!0,h.nativeEvent,"focus")},onBlur(h){c.current=!1;const g=h.relatedTarget,m=Ne(g)&&g.hasAttribute(Pr("focus-guard"))&&g.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const p=hn(o?o.ownerDocument:document);!g&&p===o||tt(a.floating.current,p)||tt(o,p)||m||r(!1,h.nativeEvent,"focus")})}}}:{},[i,l,o,a,r])}const c0="active",d0="selected";function Tc(t,e,n){const r=new Map,s=n==="item";let a=t;if(s&&t){const{[c0]:o,[d0]:i,...l}=t;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...e.map(o=>{const i=o?o[n]:null;return typeof i=="function"?t?i(t):null:i}).concat(t).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[c,d]=l;if(!(s&&[c0,d0].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof d=="function"){var u;(u=r.get(c))==null||u.push(d),o[c]=function(){for(var h,g=arguments.length,m=new Array(g),p=0;p<g;p++)m[p]=arguments[p];return(h=r.get(c))==null?void 0:h.map(b=>b(...m)).find(b=>b!==void 0)}}}else o[c]=d}),o),{})}}function u0(t){t===void 0&&(t=[]);const e=t,n=W.useCallback(a=>Tc(a,t,"reference"),e),r=W.useCallback(a=>Tc(a,t,"floating"),e),s=W.useCallback(a=>Tc(a,t,"item"),t.map(a=>a==null?void 0:a.item));return W.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:s}),[n,r,s])}let f0=!1;function Zo(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function h0(t,e){return Zo(e,t===xc||t===ua,t===ys||t===ws)}function Pc(t,e,n){return Zo(e,t===ua,n?t===ys:t===ws)||t==="Enter"||t===" "||t===""}function w5(t,e,n){return Zo(e,n?t===ys:t===ws,t===ua)}function g0(t,e,n){return Zo(e,n?t===ws:t===ys,t===xc)}function v5(t,e){const{open:n,onOpenChange:r,refs:s,elements:{domReference:a,floating:o}}=t,{listRef:i,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:h=!1,loop:g=!1,nested:m=!1,rtl:p=!1,virtual:b=!1,focusItemOnOpen:y="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:k=!0,disabledIndices:w=void 0,orientation:x="vertical",cols:C=1,scrollItemIntoView:N=!0,virtualItemRef:M,itemSizes:P,dense:S=!1}=e;process.env.NODE_ENV!=="production"&&(h&&(g||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(" "))),x==="vertical"&&C>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const B=Uo(),A=ga(),T=pn(c),D=W.useRef(y),j=W.useRef(u??-1),E=W.useRef(null),Y=W.useRef(!0),X=W.useRef(T),ee=W.useRef(!!o),I=W.useRef(!1),V=W.useRef(!1),F=bn(w),L=bn(n),R=bn(N),[O,z]=W.useState(),[J,K]=W.useState(),q=pn(function(U,le,H){H===void 0&&(H=!1);const ne=U.current[le.current];ne&&(b?(z(ne.id),A==null||A.events.emit("virtualfocus",ne),M&&(M.current=ne)):Bn(ne,{preventScroll:!0,sync:mh()&&lc()?f0||I.current:!1}),requestAnimationFrame(()=>{const ae=R.current;ae&&ne&&(H||!Y.current)&&(ne.scrollIntoView==null||ne.scrollIntoView(typeof ae=="boolean"?{block:"nearest",inline:"nearest"}:ae))}))});Re(()=>{document.createElement("div").focus({get preventScroll(){return f0=!0,!1}})},[]),Re(()=>{d&&(n&&o?D.current&&u!=null&&(V.current=!0,j.current=u,T(u)):ee.current&&(j.current=-1,X.current(null)))},[d,n,o,u,T]),Re(()=>{if(d&&n&&o)if(l==null){if(I.current=!1,u!=null)return;if(ee.current&&(j.current=-1,q(i,j)),!ee.current&&D.current&&(E.current!=null||D.current===!0&&E.current==null)){let U=0;const le=()=>{i.current[0]==null?(U<2&&(U?requestAnimationFrame:queueMicrotask)(le),U++):(j.current=E.current==null||Pc(E.current,x,p)||m?kc(i,F.current):zh(i,F.current),E.current=null,T(j.current))};le()}}else fa(i,l)||(j.current=l,q(i,j,V.current),V.current=!1)},[d,n,o,l,u,m,i,x,p,T,q,F]),Re(()=>{var U;if(!d||o||!A||b||!ee.current)return;const le=A.nodesRef.current,H=(U=le.find(se=>se.id===B))==null||(U=U.context)==null?void 0:U.elements.floating,ne=hn(_t(o)),ae=le.some(se=>se.context&&tt(se.context.elements.floating,ne));H&&!ae&&Y.current&&H.focus({preventScroll:!0})},[d,o,A,B,b]),Re(()=>{if(!d||!A||!b||B)return;function U(le){K(le.id),M&&(M.current=le)}return A.events.on("virtualfocus",U),()=>{A.events.off("virtualfocus",U)}},[d,A,b,B,M]),Re(()=>{X.current=T,ee.current=!!o}),Re(()=>{n||(E.current=null)},[n]);const te=l!=null,ie=W.useMemo(()=>{function U(H){if(!n)return;const ne=i.current.indexOf(H);ne!==-1&&T(ne)}return{onFocus(H){let{currentTarget:ne}=H;U(ne)},onClick:H=>{let{currentTarget:ne}=H;return ne.focus({preventScroll:!0})},...v&&{onMouseMove(H){let{currentTarget:ne}=H;U(ne)},onPointerLeave(H){let{pointerType:ne}=H;!Y.current||ne==="touch"||(j.current=-1,q(i,j),T(null),b||Bn(s.floating.current,{preventScroll:!0}))}}}},[n,s,q,v,i,T,b]);return W.useMemo(()=>{if(!d)return{};const U=F.current;function le(oe){if(Y.current=!1,I.current=!0,!L.current&&oe.currentTarget===s.floating.current)return;if(m&&g0(oe.key,x,p)){gt(oe),r(!1,oe.nativeEvent,"list-navigation"),ht(a)&&!b&&a.focus();return}const ye=j.current,me=kc(i,U),Se=zh(i,U);if(oe.key==="Home"&&(gt(oe),j.current=me,T(j.current)),oe.key==="End"&&(gt(oe),j.current=Se,T(j.current)),C>1){const Ge=P||Array.from({length:i.current.length},()=>({width:1,height:1})),et=Vk(Ge,C,S),Xt=et.findIndex(Kt=>Kt!=null&&!(U!=null&&U.includes(Kt))),Gt=et.reduce((Kt,Cr,Zt)=>Cr!=null&&!(U!=null&&U.includes(Cr))?Zt:Kt,-1);if(j.current=et[Yk({current:et.map(Kt=>Kt!=null?i.current[Kt]:null)},{event:oe,orientation:x,loop:g,cols:C,disabledIndices:Xk([...U||[],void 0],et),minIndex:Xt,maxIndex:Gt,prevIndex:Uk(j.current,Ge,et,C,oe.key===ua?"bl":oe.key===ws?"tr":"tl"),stopEvent:!0})],T(j.current),x==="both")return}if(h0(oe.key,x)){if(gt(oe),n&&!b&&hn(oe.currentTarget.ownerDocument)===oe.currentTarget){j.current=Pc(oe.key,x,p)?me:Se,T(j.current);return}Pc(oe.key,x,p)?g?j.current=ye>=Se?h&&ye!==i.current.length?-1:me:yt(i,{startingIndex:ye,disabledIndices:U}):j.current=Math.min(Se,yt(i,{startingIndex:ye,disabledIndices:U})):g?j.current=ye<=me?h&&ye!==-1?i.current.length:Se:yt(i,{startingIndex:ye,decrement:!0,disabledIndices:U}):j.current=Math.max(me,yt(i,{startingIndex:ye,decrement:!0,disabledIndices:U})),fa(i,j.current)?T(null):T(j.current)}}function H(oe){y==="auto"&&gh(oe.nativeEvent)&&(D.current=!0)}function ne(oe){D.current=y,y==="auto"&&ic(oe.nativeEvent)&&(D.current=!0)}const ae=b&&n&&te&&{"aria-activedescendant":J||O},se=i.current.find(oe=>(oe==null?void 0:oe.id)===O);return{reference:{...ae,onKeyDown(oe){Y.current=!1;const ye=oe.key.indexOf("Arrow")===0,me=w5(oe.key,x,p),Se=g0(oe.key,x,p),Ge=h0(oe.key,x),et=(m?me:Ge)||oe.key==="Enter"||oe.key.trim()==="";if(b&&n){const Cr=A==null?void 0:A.nodesRef.current.find(Zl=>Zl.parentId==null),Zt=A&&Cr?s5(A.nodesRef.current,Cr.id):null;if(ye&&Zt&&M){const Zl=new KeyboardEvent("keydown",{key:oe.key,bubbles:!0});if(me||Se){var Xt,Gt;const gI=((Xt=Zt.context)==null?void 0:Xt.elements.domReference)===oe.currentTarget,kx=Se&&!gI?(Gt=Zt.context)==null?void 0:Gt.elements.domReference:me?se:null;kx&&(gt(oe),kx.dispatchEvent(Zl),K(void 0))}if(Ge&&Zt.context&&Zt.context.open&&Zt.parentId&&oe.currentTarget!==Zt.context.elements.domReference){var Kt;gt(oe),(Kt=Zt.context.elements.domReference)==null||Kt.dispatchEvent(Zl);return}}return le(oe)}if(!(!n&&!k&&ye)){if(et&&(E.current=m&&Ge?null:oe.key),m){me&&(gt(oe),n?(j.current=kc(i,U),T(j.current)):r(!0,oe.nativeEvent,"list-navigation"));return}Ge&&(u!=null&&(j.current=u),gt(oe),!n&&k?r(!0,oe.nativeEvent,"list-navigation"):le(oe),n&&T(j.current))}},onFocus(){n&&T(null)},onPointerDown:ne,onMouseDown:H,onClick:H},floating:{"aria-orientation":x==="both"?void 0:x,...!ph(a)&&ae,onKeyDown:le,onPointerMove(){Y.current=!0}},item:ie}},[a,s,O,J,F,L,i,d,x,p,b,n,te,m,u,k,h,C,g,y,T,r,ie,A,M,P,S])}const x5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function m0(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:s}=t,{enabled:a=!0,role:o="dialog"}=e,i=(n=x5.get(o))!=null?n:o,l=Vo(),d=Uo()!=null;return W.useMemo(()=>{if(!a)return{};const u={id:s,...i&&{role:i}};return i==="tooltip"||o==="label"?{reference:{["aria-"+(o==="label"?"labelledby":"describedby")]:r?s:void 0},floating:u}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?s:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:l},...i==="menu"&&d&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...i==="menu"&&{"aria-labelledby":l}},item(h){let{active:g,selected:m}=h;const p={role:"option",...g&&{id:s+"-option"}};switch(o){case"select":return{...p,"aria-selected":g&&m};case"combobox":return{...p,...g&&{"aria-selected":!0}}}return{}}}},[a,o,i,r,s,l,d])}function k5(t,e){var n;const{open:r,dataRef:s}=t,{listRef:a,activeIndex:o,onMatch:i,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:h=[],selectedIndex:g=null}=e,m=W.useRef(),p=W.useRef(""),b=W.useRef((n=g??o)!=null?n:-1),y=W.useRef(null),v=pn(i),k=pn(l),w=bn(d),x=bn(h);return Re(()=>{r&&(clearTimeout(m.current),y.current=null,p.current="")},[r]),Re(()=>{if(r&&p.current===""){var C;b.current=(C=g??o)!=null?C:-1}},[r,g,o]),W.useMemo(()=>{if(!c)return{};function C(P){P?s.current.typing||(s.current.typing=P,k(P)):s.current.typing&&(s.current.typing=P,k(P))}function N(P,S,B){const A=w.current?w.current(S,B):S.find(T=>(T==null?void 0:T.toLocaleLowerCase().indexOf(B.toLocaleLowerCase()))===0);return A?P.indexOf(A):-1}function M(P){const S=a.current;if(p.current.length>0&&p.current[0]!==" "&&(N(S,S,p.current)===-1?C(!1):P.key===" "&>(P)),S==null||x.current.includes(P.key)||P.key.length!==1||P.ctrlKey||P.metaKey||P.altKey)return;r&&P.key!==" "&&(gt(P),C(!0)),S.every(D=>{var j,E;return D?((j=D[0])==null?void 0:j.toLocaleLowerCase())!==((E=D[1])==null?void 0:E.toLocaleLowerCase()):!0})&&p.current===P.key&&(p.current="",b.current=y.current),p.current+=P.key,clearTimeout(m.current),m.current=setTimeout(()=>{p.current="",b.current=y.current,C(!1)},u);const A=b.current,T=N(S,[...S.slice((A||0)+1),...S.slice(0,(A||0)+1)],p.current);T!==-1?(v(T),y.current=T):P.key!==" "&&(p.current="",C(!1))}return{reference:{onKeyDown:M},floating:{onKeyDown:M,onKeyUp(P){P.key===" "&&C(!1)}}}},[c,r,s,a,u,x,w,v,k])}function p0(t,e){const[n,r]=t;let s=!1;const a=e.length;for(let o=0,i=a-1;o<a;i=o++){const[l,c]=e[o]||[0,0],[d,u]=e[i]||[0,0];c>=r!=u>=r&&n<=(d-l)*(r-c)/(u-c)+l&&(s=!s)}return s}function _5(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function C5(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=t;let s,a=!1,o=null,i=null,l=performance.now();function c(u,h){const g=performance.now(),m=g-l;if(o===null||i===null||m===0)return o=u,i=h,l=g,null;const p=u-o,b=h-i,v=Math.sqrt(p*p+b*b)/m;return o=u,i=h,l=g,v}const d=u=>{let{x:h,y:g,placement:m,elements:p,onClose:b,nodeId:y,tree:v}=u;return function(w){function x(){clearTimeout(s),b()}if(clearTimeout(s),!p.domReference||!p.floating||m==null||h==null||g==null)return;const{clientX:C,clientY:N}=w,M=[C,N],P=ir(w),S=w.type==="mouseleave",B=tt(p.floating,P),A=tt(p.domReference,P),T=p.domReference.getBoundingClientRect(),D=p.floating.getBoundingClientRect(),j=m.split("-")[0],E=h>D.right-D.width/2,Y=g>D.bottom-D.height/2,X=_5(M,T),ee=D.width>T.width,I=D.height>T.height,V=(ee?T:D).left,F=(ee?T:D).right,L=(I?T:D).top,R=(I?T:D).bottom;if(B&&(a=!0,!S))return;if(A&&(a=!1),A&&!S){a=!0;return}if(S&&Ne(w.relatedTarget)&&tt(p.floating,w.relatedTarget)||v&&Nr(v.nodesRef.current,y).some(J=>{let{context:K}=J;return K==null?void 0:K.open}))return;if(j==="top"&&g>=T.bottom-1||j==="bottom"&&g<=T.top+1||j==="left"&&h>=T.right-1||j==="right"&&h<=T.left+1)return x();let O=[];switch(j){case"top":O=[[V,T.top+1],[V,D.bottom-1],[F,D.bottom-1],[F,T.top+1]];break;case"bottom":O=[[V,D.top+1],[V,T.bottom-1],[F,T.bottom-1],[F,D.top+1]];break;case"left":O=[[D.right-1,R],[D.right-1,L],[T.left+1,L],[T.left+1,R]];break;case"right":O=[[T.right-1,R],[T.right-1,L],[D.left+1,L],[D.left+1,R]];break}function z(J){let[K,q]=J;switch(j){case"top":{const te=[ee?K+e/2:E?K+e*4:K-e*4,q+e+1],ie=[ee?K-e/2:E?K+e*4:K-e*4,q+e+1],U=[[D.left,E||ee?D.bottom-e:D.top],[D.right,E?ee?D.bottom-e:D.top:D.bottom-e]];return[te,ie,...U]}case"bottom":{const te=[ee?K+e/2:E?K+e*4:K-e*4,q-e],ie=[ee?K-e/2:E?K+e*4:K-e*4,q-e],U=[[D.left,E||ee?D.top+e:D.bottom],[D.right,E?ee?D.top+e:D.bottom:D.top+e]];return[te,ie,...U]}case"left":{const te=[K+e+1,I?q+e/2:Y?q+e*4:q-e*4],ie=[K+e+1,I?q-e/2:Y?q+e*4:q-e*4];return[...[[Y||I?D.right-e:D.left,D.top],[Y?I?D.right-e:D.left:D.right-e,D.bottom]],te,ie]}case"right":{const te=[K-e,I?q+e/2:Y?q+e*4:q-e*4],ie=[K-e,I?q-e/2:Y?q+e*4:q-e*4],U=[[Y||I?D.left+e:D.right,D.top],[Y?I?D.left+e:D.right:D.left+e,D.bottom]];return[te,ie,...U]}}}if(!p0([C,N],O)){if(a&&!X)return x();if(!S&&r){const J=c(w.clientX,w.clientY);if(J!==null&&J<.1)return x()}p0([C,N],z([h,g]))?!a&&r&&(s=window.setTimeout(x,40)):x()}}};return d.__options={blockPointerEvents:n},d}const S5=({arrowRef:t,placement:e})=>{const n=[];return n.push(yk(8)),n.push(e==="auto"?xk():vk()),n.push(wk({padding:8})),t!=null&&t.current&&n.push(kk({element:t.current})),n},O5=({placement:t})=>t==="auto"?void 0:t,D5=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],b0=({open:t,arrowRef:e,placement:n="top",setOpen:r})=>l0({placement:O5({placement:n}),open:t,onOpenChange:r,whileElementsMounted:Ph,middleware:S5({placement:n,arrowRef:e})}),y0=({context:t,trigger:e,role:n="tooltip",interactions:r=[]})=>u0([a0(t,{enabled:e==="click"}),n5(t,{enabled:e==="hover",handleClose:C5()}),i0(t),m0(t,{role:n}),...r]),w0=_.createContext(void 0);function Nc(){const t=_.useContext(w0);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const jc=({className:t,theme:e={},...n})=>{const{theme:r}=Nc(),s=e.divider??r.floating.divider;return f.jsx("div",{className:Z(s,t),...n})},v0=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Nc(),a=n.header??s.floating.header;return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Z(a,e),...r,children:t}),f.jsx(jc,{})]})},Ic=_.forwardRef(({children:t,className:e,icon:n,onClick:r,theme:s={},...a},o)=>{const{ref:i,index:l}=Qk({label:typeof t=="string"?t:void 0}),c=Wh([o,i]),{theme:d,activeIndex:u,dismissOnClick:h,getItemProps:g,handleSelect:m}=Nc(),p=u===l,b=re(d.floating.item,s),y=a;return f.jsx("li",{role:"menuitem",className:b.container,children:f.jsxs($l,{ref:c,className:Z(b.base,e),...y,...g({onClick:()=>{r==null||r(),h&&m(null)}}),tabIndex:p?0:-1,children:[n&&f.jsx(n,{className:b.icon}),t]})})});Ic.displayName="DropdownItem";const M5={top:Hx,right:Tf,bottom:Ef,left:zx},E5=({refs:t,children:e,inline:n,theme:r,disabled:s,setButtonWidth:a,getReferenceProps:o,renderTrigger:i,...l})=>{const c=t.reference,d=o();if(_.useEffect(()=>{c.current&&(a==null||a(c.current.clientWidth))},[c,a]),i){const u=i(r);return _.cloneElement(u,{ref:t.setReference,disabled:s,...d,...u.props})}return n?f.jsx("button",{type:"button",ref:t.setReference,className:r==null?void 0:r.inlineWrapper,disabled:s,...d,children:e}):f.jsx($f,{...l,disabled:s,type:"button",ref:t.setReference,...d,children:e})},x0=({children:t,className:e,dismissOnClick:n=!0,theme:r={},renderTrigger:s,...a})=>{const[o,i]=_.useState(!1),[l,c]=_.useState(null),[d,u]=_.useState(null),[h,g]=_.useState(void 0),m=_.useRef([]),p=_.useRef([]),b=re(ge().dropdown,r),y=a,v=a["data-testid"]||"flowbite-dropdown-target",{placement:k=a.inline?"bottom-start":"bottom",trigger:w="click",label:x,inline:C,arrowIcon:N=!0,...M}=y,P=_.useCallback(I=>{u(I),i(!1)},[]),S=_.useCallback(I=>{o?c(I):P(I)},[o,P]),{context:B,floatingStyles:A,refs:T}=b0({open:o,setOpen:i,placement:k}),D=v5(B,{listRef:m,activeIndex:l,selectedIndex:d,onNavigate:c}),j=k5(B,{listRef:p,activeIndex:l,selectedIndex:d,onMatch:S}),{getReferenceProps:E,getFloatingProps:Y,getItemProps:X}=y0({context:B,role:"menu",trigger:w,interactions:[D,j]}),ee=_.useMemo(()=>{const[I]=k.split("-");return M5[I]??Ef},[k]);return f.jsxs(w0.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:n,getItemProps:X,handleSelect:P},children:[f.jsxs(E5,{...M,refs:T,inline:C,theme:b,"data-testid":v,className:Z(b.floating.target,M.className),setButtonWidth:g,getReferenceProps:E,renderTrigger:s,children:[x,N&&f.jsx(ee,{className:b.arrowIcon})]}),o&&f.jsx(n0,{context:B,modal:!1,children:f.jsx("div",{ref:T.setFloating,style:{...A,minWidth:h},"data-testid":"flowbite-dropdown","aria-expanded":o,...Y({className:Z(b.floating.base,b.floating.animation,"duration-100",!o&&b.floating.hidden,b.floating.style.auto,e)}),children:f.jsx(Zk,{elementsRef:m,labelsRef:p,children:f.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};x0.displayName="Dropdown",v0.displayName="Dropdown.Header",jc.displayName="Dropdown.Divider";const T5=Object.assign(x0,{Item:Ic,Header:v0,Divider:jc}),k0=_.forwardRef(({className:t,color:e="gray",helperText:n,sizing:r="md",theme:s={},...a},o)=>{const i=re(ge().fileInput,s);return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Z(i.root.base,t),children:f.jsx("div",{className:i.field.base,children:f.jsx("input",{className:Z(i.field.input.base,i.field.input.colors[e],i.field.input.sizes[r]),...a,type:"file",ref:o})})}),n&&f.jsx(ia,{color:e,children:n})]})});k0.displayName="FileInput";const P5=_.forwardRef(({label:t,helperText:e,color:n="default",sizing:r="md",variant:s,disabled:a=!1,theme:o={},className:i,...l},c)=>{const d=_.useId(),u=re(ge().floatingLabel,o);return f.jsxs("div",{children:[f.jsxs("div",{className:Z("relative",s==="standard"?"z-0":""),children:[f.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:Z(u.input[n][s][r],i),placeholder:" ","data-testid":"floating-label",disabled:a,...l,ref:c}),f.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:Z(u.label[n][s][r],i),children:t})]}),f.jsx("p",{id:"outlined_helper_text"+d,className:Z(u.helperText[n],i),children:e})]})});P5.displayName="FloatingLabel";const _0=({alt:t,className:e,children:n,href:r,name:s,src:a,theme:o={},...i})=>{const l=re(ge().footer.brand,o);return f.jsx("div",{children:r?f.jsxs("a",{"data-testid":"flowbite-footer-brand",href:r,className:Z(l.base,e),...i,children:[f.jsx("img",{alt:t,src:a,className:l.img}),f.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:s}),n]}):f.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:a,className:Z(l.img,e),...i})})},C0=({by:t,className:e,href:n,theme:r={},year:s,...a})=>{const o=re(ge().footer.copyright,r);return f.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:Z(o.base,e),...a,children:["© ",s,n?f.jsx("a",{href:n,className:o.href,children:t}):f.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:o.span,children:t})]})},S0=({className:t,theme:e={},...n})=>{const r=re(ge().footer.divider,e);return f.jsx("hr",{"data-testid":"footer-divider",className:Z(r.base,t),...n})},O0=({ariaLabel:t,className:e,href:n,icon:r,theme:s={},...a})=>{const o=re(ge().footer.icon,s);return f.jsx("div",{children:n?f.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:n,className:Z(o.base,e),...a,children:f.jsx(r,{className:o.size})}):f.jsx(r,{"data-testid":"flowbite-footer-icon",className:o.size,...a})})},D0=({as:t="a",children:e,className:n,href:r,theme:s={},...a})=>{const o=re(ge().footer.groupLink.link,s);return f.jsx("li",{className:Z(o.base,n),children:f.jsx(t,{href:r,className:o.href,...a,children:e})})},M0=({children:t,className:e,col:n=!1,theme:r={},...s})=>{const a=re(ge().footer.groupLink,r);return f.jsx("ul",{"data-testid":"footer-groupLink",className:Z(a.base,n&&a.col,e),...s,children:t})},E0=({as:t="h2",className:e,theme:n={},title:r,...s})=>{const a=re(ge().footer.title,n);return f.jsx(t,{"data-testid":"flowbite-footer-title",className:Z(a.base,e),...s,children:r})},T0=({bgDark:t=!1,children:e,className:n,container:r=!1,theme:s={},...a})=>{const o=re(ge().footer,s);return f.jsx("footer",{"data-testid":"flowbite-footer",className:Z(o.root.base,t&&o.root.bgDark,r&&o.root.container,n),...a,children:e})};T0.displayName="Footer",C0.displayName="Footer.Copyright",D0.displayName="Footer.Link",_0.displayName="Footer.Brand",M0.displayName="Footer.LinkGroup",O0.displayName="Footer.Icon",E0.displayName="Footer.Title",S0.displayName="Footer.Divider",Object.assign(T0,{Copyright:C0,Link:D0,LinkGroup:M0,Brand:_0,Icon:O0,Title:E0,Divider:S0});const Ac=({children:t,className:e,color:n="default",disabled:r=!1,theme:s={},value:a,...o})=>{const i=re(ge().label,s);return f.jsx("label",{className:Z(i.root.base,i.root.colors[n],r&&i.root.disabled,e),"data-testid":"flowbite-label",...o,children:a??t??""})};Ac.displayName="Label";const P0=({children:t,className:e,icon:n,theme:r={},...s})=>{const a=re(ge().list.item,r);return f.jsxs("li",{className:Z(a.withIcon[n?"on":"off"],e),...s,children:[n&&f.jsx(n,{className:Z(a.icon)}),t]})},N0=({children:t,className:e,unstyled:n,nested:r,ordered:s,horizontal:a,theme:o={},...i})=>{const l=re(ge().list,o),c=s?"ol":"ul";return f.jsx(c,{className:Z(l.root.base,l.root.ordered[s?"on":"off"],n&&l.root.unstyled,r&&l.root.nested,a&&l.root.horizontal,e),...i,children:t})};N0.displayName="List",P0.displayName="List.Item",Object.assign(N0,{Item:P0});const j0=({active:t,children:e,className:n,href:r,icon:s,onClick:a,theme:o={},disabled:i,...l})=>{const c=re(ge().listGroup.item,o),d=typeof r<"u",u=d?"a":"button";return f.jsx("li",{className:Z(c.base,n),children:f.jsxs(u,{href:r,onClick:a,type:d?void 0:"button",disabled:i,className:Z(c.link.active[t?"on":"off"],c.link.disabled[i?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[s&&f.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},I0=({children:t,className:e,theme:n={},...r})=>{const s=re(ge().listGroup,n);return f.jsx("ul",{className:Z(s.root.base,e),...r,children:t})};I0.displayName="ListGroup",j0.displayName="ListGroup.Item",Object.assign(I0,{Item:j0});const A0=_.createContext(void 0);function Rc(){const t=_.useContext(A0);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const R0=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Rc(),o=re(s.body,n);return f.jsx("div",{className:Z(o.base,a&&[o.popup],e),...r,children:t})},L0=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Rc(),o=re(s.footer,n);return f.jsx("div",{className:Z(o.base,!a&&o.popup,e),...r,children:t})},F0=({as:t="h3",children:e,className:n,theme:r={},id:s,...a})=>{const o=_.useId(),i=s||o,{theme:l,popup:c,onClose:d,setHeaderId:u}=Rc(),h=re(l.header,r);return _.useLayoutEffect(()=>(u(i),()=>u(void 0)),[i,u]),f.jsxs("div",{className:Z(h.base,c&&h.popup,n),...a,children:[f.jsx(t,{id:i,className:h.title,children:e}),f.jsx("button",{"aria-label":"Close",className:h.close.base,type:"button",onClick:d,children:f.jsx(Yx,{"aria-hidden":!0,className:h.close.icon})})]})},B0=_.forwardRef(({children:t,className:e,dismissible:n=!1,onClose:r,popup:s,position:a="center",root:o,show:i,size:l="2xl",theme:c={},initialFocus:d,...u},h)=>{const[g,m]=_.useState(void 0),p=re(ge().modal,c),{context:b}=l0({open:i,onOpenChange:()=>r&&r()}),y=Wh([b.refs.setFloating,h]),v=a0(b),k=i0(b,{outsidePressEvent:"mousedown",enabled:n}),w=m0(b),{getFloatingProps:x}=u0([v,k,w]);return i?f.jsx(A0.Provider,{value:{theme:p,popup:s,onClose:r,setHeaderId:m},children:f.jsx(f5,{root:o,children:f.jsx(m5,{lockScroll:!0,"data-testid":"modal-overlay",className:Z(p.root.base,p.root.positions[a],i?p.root.show.on:p.root.show.off,e),...u,children:f.jsx(n0,{context:b,initialFocus:d,children:f.jsx("div",{ref:y,...x(u),"aria-labelledby":g,className:Z(p.content.base,p.root.sizes[l]),children:f.jsx("div",{className:p.content.inner,children:t})})})})})}):null});B0.displayName="Modal",F0.displayName="Modal.Header",R0.displayName="Modal.Body",L0.displayName="Modal.Footer",Object.assign(B0,{Header:F0,Body:R0,Footer:L0});const W0=_.createContext(void 0);function Qo(){const t=_.useContext(W0);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const z0=({as:t="a",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Qo(),o=re(a.brand,r);return f.jsx(t,{className:Z(o.base,n),...s,children:e})},H0=({children:t,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a}=Qo(),o=re(s.collapse,n);return f.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:Z(o.base,o.hidden[a?"off":"on"],e),...r,children:f.jsx("ul",{className:o.list,children:t})})},Y0=({active:t,as:e="a",disabled:n,children:r,className:s,theme:a={},onClick:o,...i})=>{const{theme:l,setIsOpen:c}=Qo(),d=re(l.link,a),u=h=>{c(!1),o==null||o(h)};return f.jsx("li",{children:f.jsx(e,{className:Z(d.base,t&&d.active.on,!t&&!n&&d.active.off,d.disabled[n?"on":"off"],s),onClick:u,...i,children:r})})};function N5(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 xs(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 j5(t){return Pe({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(t)}function Lc(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 I5(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 A5(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 R5(t){return Pe({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(t)}const V0=({barIcon:t=N5,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a,setIsOpen:o}=Qo(),i=re(s.toggle,n),l=()=>{o(!a)};return f.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:Z(i.base,e),...r,children:[f.jsx("span",{className:"sr-only",children:"Open main menu"}),f.jsx(t,{"aria-hidden":!0,className:i.icon})]})},U0=({border:t,children:e,className:n,fluid:r=!1,menuOpen:s,rounded:a,theme:o={},...i})=>{const[l,c]=_.useState(s),d=re(ge().navbar,o);return f.jsx(W0.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:f.jsx("nav",{className:Z(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[a?"on":"off"],n),...i,children:f.jsx("div",{className:Z(d.root.inner.base,d.root.inner.fluid[r?"on":"off"]),children:e})})})};U0.displayName="Navbar",z0.displayName="Navbar.Brand",H0.displayName="Navbar.Collapse",Y0.displayName="Navbar.Link",V0.displayName="Navbar.Toggle",Object.assign(U0,{Brand:z0,Collapse:H0,Link:Y0,Toggle:V0});const L5=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(n=>n+t),Fc=({active:t,children:e,className:n,onClick:r,theme:s={},...a})=>{const o=re(ge().pagination,s);return f.jsx("button",{type:"button",className:Z(t&&o.pages.selector.active,n),onClick:r,...a,children:e})};Fc.displayName="Pagination.Button";const Bc=({children:t,className:e,onClick:n,theme:r={},disabled:s=!1,...a})=>{const o=re(ge().pagination,r);return f.jsx("button",{type:"button",className:Z(s&&o.pages.selector.disabled,e),disabled:s,onClick:n,...a,children:t})};Bc.displayName="Pagination.Navigation";const X0=({className:t,currentPage:e,layout:n="pagination",nextLabel:r="Next",onPageChange:s,previousLabel:a="Previous",renderPaginationButton:o=u=>f.jsx(Fc,{...u}),showIcons:i=!1,theme:l={},totalPages:c,...d})=>{const u=re(ge().pagination,l),h=Math.min(Math.max(n==="pagination"?e+2:e+4,5),c),g=Math.max(1,h-4),m=()=>{s(Math.min(e+1,c))},p=()=>{s(Math.max(e-1,1))};return f.jsxs("nav",{className:Z(u.base,t),...d,children:[n==="table"&&f.jsxs("div",{className:u.layout.table.base,children:["Showing ",f.jsx("span",{className:u.layout.table.span,children:g})," to ",f.jsx("span",{className:u.layout.table.span,children:h})," of ",f.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),f.jsxs("ul",{className:u.pages.base,children:[f.jsx("li",{children:f.jsxs(Bc,{className:Z(u.pages.previous.base,i&&u.pages.showIcon),onClick:p,disabled:e===1,children:[i&&f.jsx(Lx,{"aria-hidden":!0,className:u.pages.previous.icon}),a]})}),n==="pagination"&&L5(g,h).map(b=>f.jsx("li",{"aria-current":b===e?"page":void 0,children:o({className:Z(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>s(b),children:b})},b)),f.jsx("li",{children:f.jsxs(Bc,{className:Z(u.pages.next.base,i&&u.pages.showIcon),onClick:m,disabled:e===c,children:[r,i&&f.jsx(Fx,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};X0.displayName="Pagination",Object.assign(X0,{Button:Fc});const G0=_.forwardRef(({className:t,theme:e={},...n},r)=>{const s=re(ge().radio,e);return f.jsx("input",{ref:r,type:"radio",className:Z(s.root.base,t),...n})});G0.displayName="Radio";const F5=_.forwardRef(({className:t,sizing:e="md",theme:n={},...r},s)=>{const a=re(ge().rangeSlider,n);return f.jsx(f.Fragment,{children:f.jsx("div",{"data-testid":"flowbite-range-slider",className:Z(a.root.base,t),children:f.jsx("div",{className:a.field.base,children:f.jsx("input",{ref:s,type:"range",className:Z(a.field.input.base,a.field.input.sizes[e]),...r})})})})});F5.displayName="RangeSlider";const K0=({children:t,className:e,percentFilled:n=0,theme:r={},...s})=>{const a=re(ge().ratingAdvanced,r);return f.jsxs("div",{className:Z(a.base,e),...s,children:[f.jsx("span",{className:a.label,children:t}),f.jsx("div",{className:a.progress.base,children:f.jsx("div",{className:a.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),f.jsx("span",{className:a.progress.label,children:`${n}%`})]})},Z0=_.createContext(void 0);function B5(){const t=_.useContext(Z0);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const Q0=({className:t,filled:e=!0,starIcon:n=Bx,theme:r={},...s})=>{const{theme:a,size:o="sm"}=B5(),i=re(a.star,r);return f.jsx(n,{"data-testid":"flowbite-rating-star",className:Z(i.sizes[o],i[e?"filled":"empty"],t),...s})},J0=({children:t,className:e,size:n="sm",theme:r={},...s})=>{const a=re(ge().rating,r);return f.jsx(Z0.Provider,{value:{theme:a,size:n},children:f.jsx("div",{className:Z(a.root.base,e),...s,children:t})})};J0.displayName="Rating",Q0.displayName="Rating.Star",K0.displayName="Rating.Advanced",Object.assign(J0,{Star:Q0,Advanced:K0});const W5=_.forwardRef(({addon:t,children:e,className:n,color:r="gray",helperText:s,icon:a,shadow:o,sizing:i="md",theme:l={},...c},d)=>{const u=re(ge().select,l);return f.jsxs("div",{className:Z(u.base,n),children:[t&&f.jsx("span",{className:u.addon,children:t}),f.jsxs("div",{className:u.field.base,children:[a&&f.jsx("div",{className:u.field.icon.base,children:f.jsx(a,{className:u.field.icon.svg})}),f.jsx("select",{className:Z(u.field.select.base,u.field.select.colors[r],u.field.select.sizes[i],u.field.select.withIcon[a?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[o?"on":"off"]),...c,ref:d,children:e}),s&&f.jsx(ia,{color:r,children:s})]})]})});W5.displayName="Select";const z5=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i,trigger:l="hover",minWidth:c,...d})=>{const u=_.useRef(null),[h,g]=_.useState(!1),m=b0({open:h,placement:a,arrowRef:u,setOpen:g}),{context:p,middlewareData:{arrow:{x:b,y}={}},refs:v,strategy:k,update:w,x,y:C}=m,N=y5(p),{getFloatingProps:M,getReferenceProps:P}=y0({context:p,role:"tooltip",trigger:l,interactions:[N]});return _.useEffect(()=>{if(v.reference.current&&v.floating.current&&h)return Ph(v.reference.current,v.floating.current,w)},[h,v.floating,v.reference,w]),f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:v.setReference,className:i.target,"data-testid":"flowbite-tooltip-target",...P(),children:n}),f.jsxs("div",{ref:v.setFloating,"data-testid":"flowbite-tooltip",...M({className:Z(i.base,t&&`${i.animation} ${t}`,!h&&i.hidden,i.style[o],r),style:{position:k,top:C??" ",left:x??" ",minWidth:c},...d}),children:[f.jsx("div",{className:i.content,children:s}),e&&f.jsx("div",{className:Z(i.arrow.base,o==="dark"&&i.arrow.style.dark,o==="light"&&i.arrow.style.light,o==="auto"&&i.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:y??" ",left:b??" ",right:" ",bottom:" ",[D5({placement:m.placement})]:i.arrow.placement},children:" "})]})]})},Jo=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i={},trigger:l="hover",...c})=>{const d=re(ge().tooltip,i);return f.jsx(z5,{animation:t,arrow:e,content:s,placement:a,style:o,theme:d,trigger:l,className:r,...c,children:n})};Jo.displayName="Tooltip";const q0=_.createContext(void 0);function ks(){const t=_.useContext(q0);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Wc=_.createContext(void 0);function H5(){const t=_.useContext(Wc);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const $0=({children:t,className:e,icon:n,label:r,chevronIcon:s=Ql,renderChevronIcon:a,open:o=!1,theme:i={},...l})=>{const c=_.useId(),[d,u]=_.useState(o),{theme:h,isCollapsed:g}=ks(),m=re(h.collapse,i);_.useEffect(()=>u(o),[o]);const p=({children:b})=>f.jsx("li",{children:g&&!d?f.jsx(Jo,{content:r,placement:"right",children:b}):b});return f.jsxs(p,{children:[f.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:r,type:"button",className:Z(m.button,e),...l,children:[n&&f.jsx(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:Z(m.icon.base,m.icon.open[d?"on":"off"])}),g?f.jsx("span",{className:"sr-only",children:r}):f.jsxs(f.Fragment,{children:[f.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:m.label.base,children:r}),a?a(m,d):f.jsx(s,{"aria-hidden":!0,className:Z(m.label.icon.base,m.label.icon.open[d?"on":"off"])})]})]}),f.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:m.list,children:f.jsx(Wc.Provider,{value:{isInsideCollapse:!0},children:t})})]})};$0.displayName="Sidebar.Collapse";const eg=({children:t,color:e="info",className:n,theme:r={},...s})=>{const{theme:a,isCollapsed:o}=ks(),i=re(a.cta,r);return f.jsx("div",{"data-testid":"sidebar-cta",hidden:o,className:Z(i.base,i.color[e],n),...s,children:t})};eg.displayName="Sidebar.CTA";const Y5=({id:t,theme:e,isCollapsed:n,tooltipChildren:r,children:s,...a})=>f.jsx("li",{...a,children:n?f.jsx(Jo,{content:f.jsx(tg,{id:t,theme:e,children:r}),placement:"right",children:s}):s}),tg=({id:t,theme:e,children:n})=>f.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:Z(e.content.base),children:n}),ng=_.forwardRef(({active:t,as:e="a",children:n,className:r,icon:s,label:a,labelColor:o="info",theme:i={},...l},c)=>{var p,b,y,v;const d=_.useId(),{theme:u,isCollapsed:h}=ks(),{isInsideCollapse:g}=H5(),m=re(u.item,i);return f.jsx(Y5,{theme:m,className:m.listItem,id:d,isCollapsed:h,tooltipChildren:n,children:f.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:Z(m.base,t&&m.active,!h&&g&&((p=m.collapsed)==null?void 0:p.insideCollapse),r),...l,children:[s&&f.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:Z((b=m.icon)==null?void 0:b.base,t&&((y=m.icon)==null?void 0:y.active))}),h&&!s&&f.jsx("span",{className:(v=m.collapsed)==null?void 0:v.noIcon,children:n.charAt(0).toLocaleUpperCase()??"?"}),!h&&f.jsx(tg,{id:d,theme:m,children:n}),!h&&a&&f.jsx(Gf,{color:o,"data-testid":"flowbite-sidebar-label",hidden:h,className:m.label,children:a})]})})});ng.displayName="Sidebar.Item";const rg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ks(),a=re(s.itemGroup,n);return f.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:Z(a.base,e),...r,children:f.jsx(Wc.Provider,{value:{isInsideCollapse:!1},children:t})})};rg.displayName="Sidebar.ItemGroup";const sg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ks(),a=re(s.items,n);return f.jsx("div",{className:Z(a.base,e),"data-testid":"flowbite-sidebar-items",...r,children:t})};sg.displayName="Sidebar.Items";const ag=({children:t,className:e,href:n,img:r,imgAlt:s="",theme:a={},...o})=>{const i=_.useId(),{theme:l,isCollapsed:c}=ks(),d=re(l.logo,a);return f.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${i}`,href:n,className:Z(d.base,e),...o,children:[f.jsx("img",{alt:s,src:r,className:d.img}),f.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${i}`,children:t})]})};ag.displayName="Sidebar.Logo";const og=({children:t,as:e="nav",collapseBehavior:n="collapse",collapsed:r=!1,theme:s={},className:a,...o})=>{const i=re(ge().sidebar,s);return f.jsx(q0.Provider,{value:{theme:i,isCollapsed:r},children:f.jsx(e,{"aria-label":"Sidebar",hidden:r&&n==="hide",className:Z(i.root.base,i.root.collapsed[r?"on":"off"],a),...o,children:f.jsx("div",{className:i.root.inner,children:t})})})};og.displayName="Sidebar",Object.assign(og,{Collapse:$0,CTA:eg,Item:ng,Items:sg,ItemGroup:rg,Logo:ag});const ig=_.createContext(void 0);function V5(){const t=_.useContext(ig);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const lg=_.createContext(void 0);function zc(){const t=_.useContext(lg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const cg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=zc(),o=re(a.body,n);return f.jsx(ig.Provider,{value:{theme:o},children:f.jsx("tbody",{className:Z(o.base,e),ref:s,...r,children:t})})});cg.displayName="Table.Body";const dg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=V5(),o=re(a.cell,n);return f.jsx("td",{className:Z(o.base,e),ref:s,...r,children:t})});dg.displayName="Table.Cell";const ug=_.createContext(void 0);function U5(){const t=_.useContext(ug);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const fg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=zc(),o=re(a.head,n);return f.jsx(ug.Provider,{value:{theme:o},children:f.jsx("thead",{className:Z(o.base,e),ref:s,...r,children:f.jsx("tr",{children:t})})})});fg.displayName="Table.Head";const hg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=U5(),o=re(a.cell,n);return f.jsx("th",{className:Z(o.base,e),ref:s,...r,children:t})});hg.displayName="Table.HeadCell";const gg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a,hoverable:o,striped:i}=zc(),l=re(a.row,n);return f.jsx("tr",{ref:s,"data-testid":"table-row-element",className:Z(l.base,i&&l.striped,o&&l.hovered,e),...r,children:t})});gg.displayName="Table.Row";const mg=_.forwardRef(({children:t,className:e,striped:n,hoverable:r,theme:s={},...a},o)=>{const i=re(ge().table,s);return f.jsx("div",{"data-testid":"table-element",className:Z(i.root.wrapper),children:f.jsxs(lg.Provider,{value:{theme:i,striped:n,hoverable:r},children:[f.jsx("div",{className:Z(i.root.shadow,e)}),f.jsx("table",{className:Z(i.root.base,e),...a,ref:o,children:t})]})})});mg.displayName="Table";const Ke=Object.assign(mg,{Head:fg,Body:cg,Row:gg,Cell:dg,HeadCell:hg}),pg=({children:t,className:e})=>f.jsx("div",{className:e,children:t});pg.displayName="Tabs.Item";const bg=_.forwardRef(({children:t,className:e,onActiveTabChange:n,style:r="default",theme:s={},...a},o)=>{const i=re(ge().tabs,s),l=_.useId(),c=_.useMemo(()=>_.Children.map(_.Children.toArray(t),({props:w})=>w),[t]),d=_.useRef([]),[u,h]=_.useState(Math.max(0,c.findIndex(w=>w.active))),[g,m]=_.useState(-1),p=w=>{h(w),n&&n(w)},b=({target:w})=>{p(w),m(w)},y=({event:w,target:x})=>{w.key==="ArrowLeft"&&m(Math.max(0,g-1)),w.key==="ArrowRight"&&m(Math.min(c.length-1,g+1)),w.key==="Enter"&&(p(x),m(x))},v=i.tablist.tabitem.styles[r],k=i.tabitemcontainer.styles[r];return _.useEffect(()=>{var w;(w=d.current[g])==null||w.focus()},[g]),_.useImperativeHandle(o,()=>({setActiveTab:p})),f.jsxs("div",{className:Z(i.base,e),children:[f.jsx("div",{"aria-label":"Tabs",role:"tablist",className:Z(i.tablist.base,i.tablist.styles[r],e),...a,children:c.map((w,x)=>f.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${x}`,"aria-selected":x===u,className:Z(i.tablist.tabitem.base,v.base,x===u&&v.active.on,x!==u&&!w.disabled&&v.active.off),disabled:w.disabled,id:`${l}-tab-${x}`,onClick:()=>b({target:x}),onKeyDown:C=>y({event:C,target:x}),ref:C=>d.current[x]=C,role:"tab",tabIndex:x===g?0:-1,style:{zIndex:x===g?2:1},children:[w.icon&&f.jsx(w.icon,{className:i.tablist.tabitem.icon}),w.title]},x))}),f.jsx("div",{className:Z(i.tabitemcontainer.base,k),children:c.map((w,x)=>f.jsx("div",{"aria-labelledby":`${l}-tab-${x}`,className:i.tabpanel,hidden:x!==u,id:`${l}-tabpanel-${x}`,role:"tabpanel",tabIndex:0,children:w.children},x))})]})});bg.displayName="Tabs",Object.assign(bg,{Item:pg});const X5=_.forwardRef(({className:t,color:e="gray",helperText:n,shadow:r,theme:s={},...a},o)=>{const i=re(ge().textarea,s);return f.jsxs(f.Fragment,{children:[f.jsx("textarea",{ref:o,className:Z(i.base,i.colors[e],i.withShadow[r?"on":"off"],t),...a}),n&&f.jsx(ia,{color:e,children:n})]})});X5.displayName="Textarea";const yg=_.createContext(void 0);function Hc(){const t=_.useContext(yg);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const wg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Hc(),a=re(s.body,n);return f.jsx("div",{className:Z(a.base,e),...r,children:t})},vg=_.createContext(void 0);function Yc(){const t=_.useContext(vg);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const xg=_.createContext(void 0);function kg(){const t=_.useContext(xg);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const _g=({children:t,className:e,theme:n={},...r})=>{const{horizontal:s}=Yc(),{theme:a}=kg(),o=re(a.content,n);return f.jsx(yg.Provider,{value:{theme:o},children:f.jsx("div",{"data-testid":"timeline-content",className:Z(s&&o.root.base,e),...r,children:t})})},Cg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,horizontal:a}=Yc(),o=re(s.item,n);return f.jsx(xg.Provider,{value:{theme:o},children:f.jsx("li",{"data-testid":"timeline-item",className:Z(a&&o.root.horizontal,!a&&o.root.vertical,e),...r,children:t})})},Sg=({children:t,className:e,icon:n,theme:r={},...s})=>{const{horizontal:a}=Yc(),{theme:o}=kg(),i=re(o.point,r);return f.jsxs("div",{"data-testid":"timeline-point",className:Z(a&&i.horizontal,!a&&i.vertical,e),...s,children:[t,n?f.jsx("span",{className:Z(i.marker.icon.wrapper),children:f.jsx(n,{"aria-hidden":!0,className:Z(i.marker.icon.base)})}):f.jsx("div",{className:Z(a&&i.marker.base.horizontal,!a&&i.marker.base.vertical)}),a&&f.jsx("div",{className:Z(i.line)})]})},Og=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Hc(),a=re(s.time,n);return f.jsx("time",{className:Z(a.base,e),...r,children:t})},Dg=({as:t="h3",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Hc(),o=re(a.title,r);return f.jsx(t,{className:Z(o.base,n),...s,children:e})},Mg=({children:t,className:e,horizontal:n,theme:r={},...s})=>{const a=re(ge().timeline,r);return f.jsx(vg.Provider,{value:{theme:a,horizontal:n},children:f.jsx("ol",{"data-testid":"timeline-component",className:Z(n&&a.root.direction.horizontal,!n&&a.root.direction.vertical,e),...s,children:t})})};Mg.displayName="Timeline",Cg.displayName="Timeline.Item",Sg.displayName="Timeline.Point",_g.displayName="Timeline.Content",Og.displayName="Timeline.Time",Dg.displayName="Timeline.Title",wg.displayName="Timeline.Body",Object.assign(Mg,{Item:Cg,Point:Sg,Content:_g,Time:Og,Title:Dg,Body:wg});const Eg=_.createContext(void 0);function G5(){const t=_.useContext(Eg);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const Tg=({className:t,onClick:e,theme:n={},xIcon:r=Wx,onDismiss:s,...a})=>{const{theme:o,duration:i,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=G5(),h=re(o.toggle,n),g=m=>{if(e&&e(m),s){s();return}d(!l),setTimeout(()=>u(!c),i)};return f.jsx("button",{"aria-label":"Close",onClick:g,type:"button",className:Z(h.base,t),...a,children:f.jsx(r,{"aria-hidden":!0,className:h.icon})})},K5={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Pg=({children:t,className:e,duration:n=300,theme:r={},...s})=>{const[a,o]=_.useState(!1),[i,l]=_.useState(!1),c=re(ge().toast,r);return i?null:f.jsx(Eg.Provider,{value:{theme:c,duration:n,isClosed:a,isRemoved:i,setIsClosed:o,setIsRemoved:l},children:f.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:Z(c.root.base,K5[n],a&&c.root.closed,e),...s,children:t})})};Pg.displayName="Toast",Tg.displayName="Toast.Toggle",Object.assign(Pg,{Toggle:Tg});const Z5=_.forwardRef(({checked:t,className:e,color:n="blue",sizing:r="md",disabled:s,label:a,name:o,onChange:i,theme:l={},...c},d)=>{const u=_.useId(),h=re(ge().toggleSwitch,l),g=()=>i(!t),m=()=>{g()},p=b=>{b.code=="Enter"&&b.preventDefault()};return f.jsxs(f.Fragment,{children:[o&&t?f.jsx("input",{ref:d,checked:t,hidden:!0,name:o,readOnly:!0,type:"checkbox",className:"sr-only"}):null,f.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:s,id:`${u}-flowbite-toggleswitch`,onClick:m,onKeyDown:p,role:"switch",tabIndex:0,type:"button",className:Z(h.root.base,h.root.active[s?"off":"on"],e),...c,children:[f.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:Z(h.toggle.base,h.toggle.checked[t?"on":"off"],t&&h.toggle.checked.color[n],h.toggle.sizes[r])}),a!=null&&a.length?f.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:h.root.label,children:a}):null]})]})});Z5.displayName="ToggleSwitch";const Q5="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.5096%203.7321C17.4858%206.70824%2017.4858%2011.5335%2014.5096%2014.5096C11.5335%2017.4858%206.70824%2017.4858%203.7321%2014.5096C0.755965%2011.5335%200.755965%206.70824%203.7321%203.7321C6.70824%200.755965%2011.5335%200.755965%2014.5096%203.7321Z'%20stroke='%23191960'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M18.4999%2018.4999L14.5049%2014.5049'%20stroke='%23191960'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",_s=_.forwardRef(({icon:t,placeholder:e,label:n,error:r,type:s,classInclude:a,maxLength:o,onChange:i,classLabel:l,...c},d)=>f.jsxs("div",{className:`${n?"mb-3":""}`,children:[n&&f.jsx("label",{className:`mb-1 block font-semibold ${l??""}`,children:n}),t===!0?f.jsx(ds,{className:`${a}`,sizing:"sm",maxLength:o,ref:d,type:s,rightIcon:()=>f.jsx("img",{src:Q5,alt:"search",width:17,height:17}),placeholder:e,onChange:i,...c}):f.jsx(ds,{className:`${a}`,sizing:"sm",maxLength:o,ref:d,type:s,placeholder:e,onChange:i,...c}),r&&f.jsx("p",{className:"mt-1 text-xs text-red-500",children:r})]}));_s.displayName="InputForm";const J5={"mth-password":"passwordInput-module__mth-password__R6DoN"},Vc=({placeholder:t,onChange:e,value:n,...r})=>{const[s,a]=_.useState(!1),o=()=>{a(!s)};return f.jsx("div",{className:"mb-5",children:f.jsxs("div",{className:"relative inline-block w-full",children:[f.jsx("input",{type:s?"text":"password",value:n,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...r}),f.jsx("button",{type:"button",onClick:o,className:J5["mth-password"],children:s?f.jsx(I5,{}):f.jsx(A5,{})})]})})},Ng={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},jg=({start:t,end:e,current:n,type:r})=>{const s=(n-t)/(e-t)*100,a=Math.min(Math.max(s,0),100),o=()=>a<10?"left-0":a>90?"right-0":"left-1/2 transform -translate-x-1/2";return f.jsxs("div",{className:"w-full p-1",children:[f.jsxs("div",{className:"mb-2 flex justify-between text-xs text-gray-400",children:[f.jsx("span",{children:t.toLocaleString()}),f.jsx("span",{children:e.toLocaleString()})]}),f.jsxs("div",{className:"relative mb-5 h-1 w-full rounded-full bg-gray-200",children:[f.jsx("div",{className:`${Ng.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${a}%`}}),f.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${a}%`},children:[f.jsx("div",{className:`${Ng.mth_progress_bar_thumb} w-2 h-2 rounded-full shadow-lg`}),f.jsxs("div",{className:`absolute top-full mt-2 text-xs font-medium text-black whitespace-nowrap ${o()}`,children:[n.toLocaleString()," ",r==="percentage"?"%":""]})]})]})]})},Ig=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:s,id:a,classDiv:o,...i},l)=>f.jsxs("div",{className:o,children:[f.jsxs("select",{ref:l,id:a,className:"h-8 w-full rounded-lg border px-3 py-0.5",value:r,onChange:s,...i,children:[f.jsx("option",{value:"0",children:e||"Seleccione una opción"}),t==null?void 0:t.map(c=>f.jsx("option",{value:c.value,children:c.label},c.value))]}),n&&f.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));Ig.displayName="SelectForm";const Ag={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},q5=({logo:t,number:e,title:n,start:r,end:s,current:a,type:o,classIm:i})=>{const l=c=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(c);return f.jsxs("div",{className:`${Ag.mth_card_indicator} flex flex-col border bg-white p-5`,children:[f.jsx("div",{className:"flex justify-end",children:f.jsx(Sr,{src:t||"",alt:"Icon",width:30,height:30,classIm:i})}),f.jsx("h2",{className:"mt-2 font-bold mth_card_indicator_title",id:`mth_card_indicator_${n}_title`,children:n.toUpperCase()}),f.jsxs("small",{className:"text-2xl font-extrabold mth_card_indicator_number",children:[l(e)," ",o==="percentage"?"%":""]}),f.jsx("div",{className:"mt-2 mth_card_indicator_progress_bar",children:f.jsx(jg,{start:r,end:s,current:a,type:o})})]})};/*!
|
|
9
9
|
* @kurkle/color v0.3.4
|
|
10
10
|
* https://github.com/kurkle/color#readme
|
|
11
11
|
* (c) 2024 Jukka Kurkela
|
|
12
12
|
* Released under the MIT License
|
|
13
|
-
*/function ba(t){return t+.5|0}const lr=(t,e,n)=>Math.max(Math.min(t,n),e);function ya(t){return lr(ba(t*2.55),0,255)}function cr(t){return lr(ba(t*255),0,255)}function Wn(t){return lr(ba(t/2.55)/100,0,1)}function
|
|
13
|
+
*/function ba(t){return t+.5|0}const lr=(t,e,n)=>Math.max(Math.min(t,n),e);function ya(t){return lr(ba(t*2.55),0,255)}function cr(t){return lr(ba(t*255),0,255)}function Wn(t){return lr(ba(t/2.55)/100,0,1)}function Rg(t){return lr(ba(t*100),0,100)}const Jt={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},Uc=[..."0123456789ABCDEF"],$5=t=>Uc[t&15],e_=t=>Uc[(t&240)>>4]+Uc[t&15],qo=t=>(t&240)>>4===(t&15),t_=t=>qo(t.r)&&qo(t.g)&&qo(t.b)&&qo(t.a);function n_(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Jt[t[1]]*17,g:255&Jt[t[2]]*17,b:255&Jt[t[3]]*17,a:e===5?Jt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Jt[t[1]]<<4|Jt[t[2]],g:Jt[t[3]]<<4|Jt[t[4]],b:Jt[t[5]]<<4|Jt[t[6]],a:e===9?Jt[t[7]]<<4|Jt[t[8]]:255})),n}const r_=(t,e)=>t<255?e(t):"";function s_(t){var e=t_(t)?$5:e_;return t?"#"+e(t.r)+e(t.g)+e(t.b)+r_(t.a,e):void 0}const a_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Lg(t,e,n){const r=e*Math.min(n,1-n),s=(a,o=(a+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function o_(t,e,n){const r=(s,a=(s+t/60)%6)=>n-n*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function i_(t,e,n){const r=Lg(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)r[s]*=1-e-n,r[s]+=e;return r}function l_(t,e,n,r,s){return t===s?(e-n)/r+(e<n?6:0):e===s?(n-t)/r+2:(t-e)/r+4}function Xc(t){const n=t.r/255,r=t.g/255,s=t.b/255,a=Math.max(n,r,s),o=Math.min(n,r,s),i=(a+o)/2;let l,c,d;return a!==o&&(d=a-o,c=i>.5?d/(2-a-o):d/(a+o),l=l_(n,r,s,d,a),l=l*60+.5),[l|0,c||0,i]}function Gc(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(cr)}function Kc(t,e,n){return Gc(Lg,t,e,n)}function c_(t,e,n){return Gc(i_,t,e,n)}function d_(t,e,n){return Gc(o_,t,e,n)}function Fg(t){return(t%360+360)%360}function u_(t){const e=a_.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?ya(+e[5]):cr(+e[5]));const s=Fg(+e[2]),a=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=c_(s,a,o):e[1]==="hsv"?r=d_(s,a,o):r=Kc(s,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function f_(t,e){var n=Xc(t);n[0]=Fg(n[0]+e),n=Kc(n),t.r=n[0],t.g=n[1],t.b=n[2]}function h_(t){if(!t)return;const e=Xc(t),n=e[0],r=Rg(e[1]),s=Rg(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${s}%, ${Wn(t.a)})`:`hsl(${n}, ${r}%, ${s}%)`}const Bg={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"},Wg={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 g_(){const t={},e=Object.keys(Wg),n=Object.keys(Bg);let r,s,a,o,i;for(r=0;r<e.length;r++){for(o=i=e[r],s=0;s<n.length;s++)a=n[s],i=i.replace(a,Bg[a]);a=parseInt(Wg[o],16),t[i]=[a>>16&255,a>>8&255,a&255]}return t}let $o;function m_(t){$o||($o=g_(),$o.transparent=[0,0,0,0]);const e=$o[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const p_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function b_(t){const e=p_.exec(t);let n=255,r,s,a;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?ya(o):lr(o*255,0,255)}return r=+e[1],s=+e[3],a=+e[5],r=255&(e[2]?ya(r):lr(r,0,255)),s=255&(e[4]?ya(s):lr(s,0,255)),a=255&(e[6]?ya(a):lr(a,0,255)),{r,g:s,b:a,a:n}}}function y_(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Wn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Zc=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Cs=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function w_(t,e,n){const r=Cs(Wn(t.r)),s=Cs(Wn(t.g)),a=Cs(Wn(t.b));return{r:cr(Zc(r+n*(Cs(Wn(e.r))-r))),g:cr(Zc(s+n*(Cs(Wn(e.g))-s))),b:cr(Zc(a+n*(Cs(Wn(e.b))-a))),a:t.a+n*(e.a-t.a)}}function ei(t,e,n){if(t){let r=Xc(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Kc(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function zg(t,e){return t&&Object.assign(e||{},t)}function Hg(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=cr(t[3]))):(e=zg(t,{r:0,g:0,b:0,a:1}),e.a=cr(e.a)),e}function v_(t){return t.charAt(0)==="r"?b_(t):u_(t)}class wa{constructor(e){if(e instanceof wa)return e;const n=typeof e;let r;n==="object"?r=Hg(e):n==="string"&&(r=n_(e)||m_(e)||v_(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=zg(this._rgb);return e&&(e.a=Wn(e.a)),e}set rgb(e){this._rgb=Hg(e)}rgbString(){return this._valid?y_(this._rgb):void 0}hexString(){return this._valid?s_(this._rgb):void 0}hslString(){return this._valid?h_(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,s=e.rgb;let a;const o=n===a?.5:n,i=2*o-1,l=r.a-s.a,c=((i*l===-1?i:(i+l)/(1+i*l))+1)/2;a=1-c,r.r=255&c*r.r+a*s.r+.5,r.g=255&c*r.g+a*s.g+.5,r.b=255&c*r.b+a*s.b+.5,r.a=o*r.a+(1-o)*s.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=w_(this._rgb,e._rgb,n)),this}clone(){return new wa(this.rgb)}alpha(e){return this._rgb.a=cr(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=ba(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.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 ei(this._rgb,2,e),this}darken(e){return ei(this._rgb,2,-e),this}saturate(e){return ei(this._rgb,1,e),this}desaturate(e){return ei(this._rgb,1,-e),this}rotate(e){return f_(this._rgb,e),this}}/*!
|
|
14
14
|
* Chart.js v4.5.1
|
|
15
15
|
* https://www.chartjs.org
|
|
16
16
|
* (c) 2025 Chart.js Contributors
|
|
17
17
|
* Released under the MIT License
|
|
18
|
-
*/function zn(){}const bS=(()=>{let t=0;return()=>t++})();function wt(t){return t==null}function mt(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 we(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Hn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function yn(t,e){return Hn(t)?t:e}function Ee(t,e){return typeof t>"u"?e:t}const yS=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Hm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function We(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Te(t,e,n,r){let s,a,o;if(mt(t))for(a=t.length,s=0;s<a;s++)e.call(n,t[s],s);else if(we(t))for(o=Object.keys(t),a=o.length,s=0;s<a;s++)e.call(n,t[o[s]],o[s])}function ti(t,e){let n,r,s,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(s=t[n],a=e[n],s.datasetIndex!==a.datasetIndex||s.index!==a.index)return!1;return!0}function ni(t){if(mt(t))return t.map(ni);if(we(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let s=0;for(;s<r;++s)e[n[s]]=ni(t[n[s]]);return e}return t}function Ym(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function wS(t,e,n,r){if(!Ym(t))return;const s=e[t],a=n[t];we(s)&&we(a)?va(s,a,r):e[t]=ni(a)}function va(t,e,n){const r=mt(e)?e:[e],s=r.length;if(!we(t))return t;n=n||{};const a=n.merger||wS;let o;for(let i=0;i<s;++i){if(o=r[i],!we(o))continue;const l=Object.keys(o);for(let c=0,d=l.length;c<d;++c)a(l[c],t,o,n)}return t}function xa(t,e){return va(t,e,{merger:vS})}function vS(t,e,n){if(!Ym(t))return;const r=e[t],s=n[t];we(r)&&we(s)?xa(r,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ni(s))}const Vm={"":t=>t,x:t=>t.x,y:t=>t.y};function xS(t){const e=t.split("."),n=[];let r="";for(const s of e)r+=s,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function kS(t){const e=xS(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ka(t,e){return(Vm[e]||(Vm[e]=kS(e)))(t)}function Zc(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ri=t=>typeof t<"u",dr=t=>typeof t=="function",Um=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function _S(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const ze=Math.PI,nt=2*ze,si=Number.POSITIVE_INFINITY,SS=ze/180,it=ze/2,Ir=ze/4,Xm=ze*2/3,Gm=Math.sign;function CS(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((s,a)=>s-a).pop(),e}function OS(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function ai(t){return!OS(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Ar(t){return t*(ze/180)}function DS(t){return t*(180/ze)}function Km(t,e){const n=e.x-t.x,r=e.y-t.y,s=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*ze&&(a+=nt),{angle:a,distance:s}}function MS(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function wn(t){return(t%nt+nt)%nt}function oi(t,e,n,r){const s=wn(t),a=wn(e),o=wn(n),i=wn(a-s),l=wn(o-s),c=wn(s-a),d=wn(s-o);return s===a||s===o||r&&a===o||i>l&&c<d}function qt(t,e,n){return Math.max(e,Math.min(n,t))}function ES(t){return qt(t,-32768,32767)}function _a(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Jc(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,s=0,a;for(;r-s>1;)a=s+r>>1,n(a)?s=a:r=a;return{lo:s,hi:r}}const qc=(t,e,n,r)=>Jc(t,n,r?s=>{const a=t[s][e];return a<n||a===n&&t[s+1][e]===n}:s=>t[s][e]<n),TS=(t,e,n)=>Jc(t,n,r=>t[r][e]>=n);function PS(t,e,n){let r=0,s=t.length;for(;r<s&&t[r]<e;)r++;for(;s>r&&t[s-1]>n;)s--;return r>0||s<t.length?t.slice(r,s):t}const Qm=["push","pop","shift","splice","unshift"];function NS(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Qm.forEach(n=>{const r="_onData"+Zc(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...a){const o=s.apply(this,a);return t._chartjs.listeners.forEach(i=>{typeof i[r]=="function"&&i[r](...a)}),o}})})}function Zm(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,s=r.indexOf(e);s!==-1&&r.splice(s,1),!(r.length>0)&&(Qm.forEach(a=>{delete t[a]}),delete t._chartjs)}function jS(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Jm=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function qm(t,e){let n=[],r=!1;return function(...s){n=s,r||(r=!0,Jm.call(window,()=>{r=!1,t.apply(e,n)}))}}function IS(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const $m=t=>t==="start"?"left":t==="end"?"right":"center",Ft=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,AS=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,ii=t=>t===0||t===1,ep=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*nt/n)),tp=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*nt/n)+1,Sa={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*it)+1,easeOutSine:t=>Math.sin(t*it),easeInOutSine:t=>-.5*(Math.cos(ze*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=>ii(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=>ii(t)?t:ep(t,.075,.3),easeOutElastic:t=>ii(t)?t:tp(t,.075,.3),easeInOutElastic(t){return ii(t)?t:t<.5?.5*ep(t*2,.1125,.45):.5+.5*tp(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-Sa.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?Sa.easeInBounce(t*2)*.5:Sa.easeOutBounce(t*2-1)*.5+.5};function np(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function rp(t){return np(t)?t:new wa(t)}function $c(t){return np(t)?t:new wa(t).saturate(.5).darken(.1).hexString()}const RS=["x","y","borderWidth","radius","tension"],LS=["color","borderColor","backgroundColor"];function FS(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:LS},numbers:{type:"number",properties:RS}}),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 BS(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const sp=new Map;function WS(t,e){e=e||{};const n=t+JSON.stringify(e);let r=sp.get(n);return r||(r=new Intl.NumberFormat(t,e),sp.set(n,r)),r}function zS(t,e,n){return WS(e,n).format(t)}var HS={formatters:{values(t){return mt(t)?t:""+t}}};function YS(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,n)=>n.lineWidth,tickColor:(e,n)=>n.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:HS.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 Rr=Object.create(null),ed=Object.create(null);function Ca(t,e){if(!e)return t;const n=e.split(".");for(let r=0,s=n.length;r<s;++r){const a=n[r];t=t[a]||(t[a]=Object.create(null))}return t}function td(t,e,n){return typeof e=="string"?va(Ca(t,e),n):va(Ca(t,""),e)}class VS{constructor(e,n){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=r=>r.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=(r,s)=>$c(s.backgroundColor),this.hoverBorderColor=(r,s)=>$c(s.borderColor),this.hoverColor=(r,s)=>$c(s.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(n)}set(e,n){return td(this,e,n)}get(e){return Ca(this,e)}describe(e,n){return td(ed,e,n)}override(e,n){return td(Rr,e,n)}route(e,n,r,s){const a=Ca(this,e),o=Ca(this,r),i="_"+n;Object.defineProperties(a,{[i]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[i],c=o[s];return we(l)?Object.assign({},c,l):Ee(l,c)},set(l){this[i]=l}}})}apply(e){e.forEach(n=>n(this))}}var Qe=new VS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[FS,BS,YS]);function US(t){return!t||wt(t.size)||wt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ap(t,e,n,r,s){let a=e[s];return a||(a=e[s]=t.measureText(s).width,n.push(s)),a>r&&(r=a),r}function Lr(t,e,n){const r=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*r)/r+s}function op(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ip(t,e,n,r){lp(t,e,n,r,null)}function lp(t,e,n,r,s){let a,o,i,l,c,d,u,g;const h=e.pointStyle,p=e.rotation,m=e.radius;let b=(p||0)*SS;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),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:s?t.ellipse(n,r,s/2,m,0,0,nt):t.arc(n,r,m,0,nt),t.closePath();break;case"triangle":d=s?s/2:m,t.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*m),b+=Xm,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*m),b+=Xm,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*m),t.closePath();break;case"rectRounded":c=m*.516,l=m-c,o=Math.cos(b+Ir)*l,u=Math.cos(b+Ir)*(s?s/2-c:l),i=Math.sin(b+Ir)*l,g=Math.sin(b+Ir)*(s?s/2-c:l),t.arc(n-u,r-i,c,b-ze,b-it),t.arc(n+g,r-o,c,b-it,b),t.arc(n+u,r+i,c,b,b+it),t.arc(n-g,r+o,c,b+it,b+ze),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,d=s?s/2:l,t.rect(n-d,r-l,2*d,2*l);break}b+=Ir;case"rectRot":u=Math.cos(b)*(s?s/2:m),o=Math.cos(b)*m,i=Math.sin(b)*m,g=Math.sin(b)*(s?s/2:m),t.moveTo(n-u,r-i),t.lineTo(n+g,r-o),t.lineTo(n+u,r+i),t.lineTo(n-g,r+o),t.closePath();break;case"crossRot":b+=Ir;case"cross":u=Math.cos(b)*(s?s/2:m),o=Math.cos(b)*m,i=Math.sin(b)*m,g=Math.sin(b)*(s?s/2:m),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+g,r-o),t.lineTo(n-g,r+o);break;case"star":u=Math.cos(b)*(s?s/2:m),o=Math.cos(b)*m,i=Math.sin(b)*m,g=Math.sin(b)*(s?s/2:m),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+g,r-o),t.lineTo(n-g,r+o),b+=Ir,u=Math.cos(b)*(s?s/2:m),o=Math.cos(b)*m,i=Math.sin(b)*m,g=Math.sin(b)*(s?s/2:m),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+g,r-o),t.lineTo(n-g,r+o);break;case"line":o=s?s/2:Math.cos(b)*m,i=Math.sin(b)*m,t.moveTo(n-o,r-i),t.lineTo(n+o,r+i);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(b)*(s?s/2:m),r+Math.sin(b)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function cp(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function nd(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function rd(t){t.restore()}function XS(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),wt(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 GS(t,e,n,r,s){if(s.strikethrough||s.underline){const a=t.measureText(r),o=e-a.actualBoundingBoxLeft,i=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,d),t.lineTo(i,d),t.stroke()}}function KS(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function li(t,e,n,r,s,a={}){const o=mt(e)?e:[e],i=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(t.save(),t.font=s.string,XS(t,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&KS(t,a.backdrop),i&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),wt(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,r,a.maxWidth)),t.fillText(c,n,r,a.maxWidth),GS(t,n,r,c,a),r+=Number(s.lineHeight);t.restore()}function sd(t,e){const{x:n,y:r,w:s,h:a,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*ze,ze,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,ze,it,!0),t.lineTo(n+s-o.bottomRight,r+a),t.arc(n+s-o.bottomRight,r+a-o.bottomRight,o.bottomRight,it,0,!0),t.lineTo(n+s,r+o.topRight),t.arc(n+s-o.topRight,r+o.topRight,o.topRight,0,-it,!0),t.lineTo(n+o.topLeft,r)}const QS=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ZS=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function JS(t,e){const n=(""+t).match(QS);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const qS=t=>+t||0;function ad(t,e){const n={},r=we(e),s=r?Object.keys(e):e,a=we(t)?r?o=>Ee(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=qS(a(o));return n}function $S(t){return ad(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Oa(t){return ad(t,["topLeft","topRight","bottomLeft","bottomRight"])}function an(t){const e=$S(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Et(t,e){t=t||{},e=e||Qe.font;let n=Ee(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ee(t.style,e.style);r&&!(""+r).match(ZS)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const s={family:Ee(t.family,e.family),lineHeight:JS(Ee(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:Ee(t.weight,e.weight),string:""};return s.string=US(s),s}function ci(t,e,n,r){let s,a,o;for(s=0,a=t.length;s<a;++s)if(o=t[s],o!==void 0&&o!==void 0)return o}function eC(t,e,n){const{min:r,max:s}=t,a=Hm(e,(s-r)/2),o=(i,l)=>n&&i===0?0:i+l;return{min:o(r,-Math.abs(a)),max:o(s,a)}}function Cs(t,e){return Object.assign(Object.create(t),e)}function od(t,e=[""],n,r,s=()=>t[0]){const a=n||t;typeof r>"u"&&(r=gp("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:r,_getTarget:s,override:i=>od([i,...t],e,a,r)};return new Proxy(o,{deleteProperty(i,l){return delete i[l],delete i._keys,delete t[0][l],!0},get(i,l){return up(i,l,()=>lC(l,e,t,i))},getOwnPropertyDescriptor(i,l){return Reflect.getOwnPropertyDescriptor(i._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(i,l){return mp(i).includes(l)},ownKeys(i){return mp(i)},set(i,l,c){const d=i._storage||(i._storage=s());return i[l]=d[l]=c,delete i._keys,!0}})}function Os(t,e,n,r){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:dp(t,r),setContext:a=>Os(t,a,n,r),override:a=>Os(t.override(a),e,n,r)};return new Proxy(s,{deleteProperty(a,o){return delete a[o],delete t[o],!0},get(a,o,i){return up(a,o,()=>nC(a,o,i))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(a,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(a,o,i){return t[o]=i,delete a[o],!0}})}function dp(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:r,isScriptable:dr(n)?n:()=>n,isIndexable:dr(r)?r:()=>r}}const tC=(t,e)=>t?t+Zc(e):e,id=(t,e)=>we(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function up(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function nC(t,e,n){const{_proxy:r,_context:s,_subProxy:a,_descriptors:o}=t;let i=r[e];return dr(i)&&o.isScriptable(e)&&(i=rC(e,i,t,n)),mt(i)&&i.length&&(i=sC(e,i,t,o.isIndexable)),id(e,i)&&(i=Os(i,s,a&&a[e],o)),i}function rC(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_stack:i}=n;if(i.has(t))throw new Error("Recursion detected: "+Array.from(i).join("->")+"->"+t);i.add(t);let l=e(a,o||r);return i.delete(t),id(t,l)&&(l=ld(s._scopes,s,t,l)),l}function sC(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_descriptors:i}=n;if(typeof a.index<"u"&&r(t))return e[a.index%e.length];if(we(e[0])){const l=e,c=s._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=ld(c,s,t,d);e.push(Os(u,a,o&&o[t],i))}}return e}function fp(t,e,n){return dr(t)?t(e,n):t}const aC=(t,e)=>t===!0?e:typeof t=="string"?ka(e,t):void 0;function oC(t,e,n,r,s){for(const a of e){const o=aC(n,a);if(o){t.add(o);const i=fp(o._fallback,n,s);if(typeof i<"u"&&i!==n&&i!==r)return i}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function ld(t,e,n,r){const s=e._rootScopes,a=fp(e._fallback,n,r),o=[...t,...s],i=new Set;i.add(r);let l=hp(i,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=hp(i,o,a,l,r),l===null)?!1:od(Array.from(i),[""],s,a,()=>iC(e,n,r))}function hp(t,e,n,r,s){for(;n;)n=oC(t,e,n,r,s);return n}function iC(t,e,n){const r=t._getTarget();e in r||(r[e]={});const s=r[e];return mt(s)&&we(n)?n:s||{}}function lC(t,e,n,r){let s;for(const a of e)if(s=gp(tC(a,t),n),typeof s<"u")return id(t,s)?ld(n,r,t,s):s}function gp(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function mp(t){let e=t._keys;return e||(e=t._keys=cC(t._scopes)),e}function cC(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(r);return Array.from(e)}function cd(){return typeof window<"u"&&typeof document<"u"}function dd(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function di(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const ui=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function dC(t,e){return ui(t).getPropertyValue(e)}const uC=["top","right","bottom","left"];function Fr(t,e,n){const r={};n=n?"-"+n:"";for(let s=0;s<4;s++){const a=uC[s];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const fC=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function hC(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:s,offsetY:a}=r;let o=!1,i,l;if(fC(s,a,t.target))i=s,l=a;else{const c=e.getBoundingClientRect();i=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:i,y:l,box:o}}function Br(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,s=ui(n),a=s.boxSizing==="border-box",o=Fr(s,"padding"),i=Fr(s,"border","width"),{x:l,y:c,box:d}=hC(t,n),u=o.left+(d&&i.left),g=o.top+(d&&i.top);let{width:h,height:p}=e;return a&&(h-=o.width+i.width,p-=o.height+i.height),{x:Math.round((l-u)/h*n.width/r),y:Math.round((c-g)/p*n.height/r)}}function gC(t,e,n){let r,s;if(e===void 0||n===void 0){const a=t&&dd(t);if(!a)e=t.clientWidth,n=t.clientHeight;else{const o=a.getBoundingClientRect(),i=ui(a),l=Fr(i,"border","width"),c=Fr(i,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=di(i.maxWidth,a,"clientWidth"),s=di(i.maxHeight,a,"clientHeight")}}return{width:e,height:n,maxWidth:r||si,maxHeight:s||si}}const ur=t=>Math.round(t*10)/10;function mC(t,e,n,r){const s=ui(t),a=Fr(s,"margin"),o=di(s.maxWidth,t,"clientWidth")||si,i=di(s.maxHeight,t,"clientHeight")||si,l=gC(t,e,n);let{width:c,height:d}=l;if(s.boxSizing==="content-box"){const g=Fr(s,"border","width"),h=Fr(s,"padding");c-=h.width+g.width,d-=h.height+g.height}return c=Math.max(0,c-a.width),d=Math.max(0,r?c/r:d-a.height),c=ur(Math.min(c,o,l.maxWidth)),d=ur(Math.min(d,i,l.maxHeight)),c&&!d&&(d=ur(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=ur(Math.floor(d*r))),{width:c,height:d}}function pp(t,e,n){const r=e||1,s=ur(t.height*r),a=ur(t.width*r);t.height=ur(t.height),t.width=ur(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||o.height!==s||o.width!==a?(t.currentDevicePixelRatio=r,o.height=s,o.width=a,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const pC=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};cd()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function bp(t,e){const n=dC(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const bC=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},yC=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ds(t,e,n){return t?bC(e,n):yC()}function yp(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function wp(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function fi(t,e,n){return t.options.clip?t[n]:e[n]}function wC(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:fi(n,e,"left"),right:fi(n,e,"right"),top:fi(r,e,"top"),bottom:fi(r,e,"bottom")}:e}function vC(t,e){const n=e._clip;if(n.disabled)return!1;const r=wC(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
18
|
+
*/function zn(){}const x_=(()=>{let t=0;return()=>t++})();function wt(t){return t==null}function mt(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 we(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Hn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function yn(t,e){return Hn(t)?t:e}function Ee(t,e){return typeof t>"u"?e:t}const k_=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Yg=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function We(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Te(t,e,n,r){let s,a,o;if(mt(t))for(a=t.length,s=0;s<a;s++)e.call(n,t[s],s);else if(we(t))for(o=Object.keys(t),a=o.length,s=0;s<a;s++)e.call(n,t[o[s]],o[s])}function ti(t,e){let n,r,s,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(s=t[n],a=e[n],s.datasetIndex!==a.datasetIndex||s.index!==a.index)return!1;return!0}function ni(t){if(mt(t))return t.map(ni);if(we(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let s=0;for(;s<r;++s)e[n[s]]=ni(t[n[s]]);return e}return t}function Vg(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function __(t,e,n,r){if(!Vg(t))return;const s=e[t],a=n[t];we(s)&&we(a)?va(s,a,r):e[t]=ni(a)}function va(t,e,n){const r=mt(e)?e:[e],s=r.length;if(!we(t))return t;n=n||{};const a=n.merger||__;let o;for(let i=0;i<s;++i){if(o=r[i],!we(o))continue;const l=Object.keys(o);for(let c=0,d=l.length;c<d;++c)a(l[c],t,o,n)}return t}function xa(t,e){return va(t,e,{merger:C_})}function C_(t,e,n){if(!Vg(t))return;const r=e[t],s=n[t];we(r)&&we(s)?xa(r,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ni(s))}const Ug={"":t=>t,x:t=>t.x,y:t=>t.y};function S_(t){const e=t.split("."),n=[];let r="";for(const s of e)r+=s,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function O_(t){const e=S_(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ka(t,e){return(Ug[e]||(Ug[e]=O_(e)))(t)}function Qc(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ri=t=>typeof t<"u",dr=t=>typeof t=="function",Xg=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function D_(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const ze=Math.PI,nt=2*ze,si=Number.POSITIVE_INFINITY,M_=ze/180,it=ze/2,Ir=ze/4,Gg=ze*2/3,Kg=Math.sign;function E_(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((s,a)=>s-a).pop(),e}function T_(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function ai(t){return!T_(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Ar(t){return t*(ze/180)}function P_(t){return t*(180/ze)}function Zg(t,e){const n=e.x-t.x,r=e.y-t.y,s=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*ze&&(a+=nt),{angle:a,distance:s}}function N_(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function wn(t){return(t%nt+nt)%nt}function oi(t,e,n,r){const s=wn(t),a=wn(e),o=wn(n),i=wn(a-s),l=wn(o-s),c=wn(s-a),d=wn(s-o);return s===a||s===o||r&&a===o||i>l&&c<d}function qt(t,e,n){return Math.max(e,Math.min(n,t))}function j_(t){return qt(t,-32768,32767)}function _a(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Jc(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,s=0,a;for(;r-s>1;)a=s+r>>1,n(a)?s=a:r=a;return{lo:s,hi:r}}const qc=(t,e,n,r)=>Jc(t,n,r?s=>{const a=t[s][e];return a<n||a===n&&t[s+1][e]===n}:s=>t[s][e]<n),I_=(t,e,n)=>Jc(t,n,r=>t[r][e]>=n);function A_(t,e,n){let r=0,s=t.length;for(;r<s&&t[r]<e;)r++;for(;s>r&&t[s-1]>n;)s--;return r>0||s<t.length?t.slice(r,s):t}const Qg=["push","pop","shift","splice","unshift"];function R_(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Qg.forEach(n=>{const r="_onData"+Qc(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...a){const o=s.apply(this,a);return t._chartjs.listeners.forEach(i=>{typeof i[r]=="function"&&i[r](...a)}),o}})})}function Jg(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,s=r.indexOf(e);s!==-1&&r.splice(s,1),!(r.length>0)&&(Qg.forEach(a=>{delete t[a]}),delete t._chartjs)}function L_(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const qg=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function $g(t,e){let n=[],r=!1;return function(...s){n=s,r||(r=!0,qg.call(window,()=>{r=!1,t.apply(e,n)}))}}function F_(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const em=t=>t==="start"?"left":t==="end"?"right":"center",Ft=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,B_=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,ii=t=>t===0||t===1,tm=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*nt/n)),nm=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*nt/n)+1,Ca={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*it)+1,easeOutSine:t=>Math.sin(t*it),easeInOutSine:t=>-.5*(Math.cos(ze*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=>ii(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=>ii(t)?t:tm(t,.075,.3),easeOutElastic:t=>ii(t)?t:nm(t,.075,.3),easeInOutElastic(t){return ii(t)?t:t<.5?.5*tm(t*2,.1125,.45):.5+.5*nm(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-Ca.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?Ca.easeInBounce(t*2)*.5:Ca.easeOutBounce(t*2-1)*.5+.5};function rm(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function sm(t){return rm(t)?t:new wa(t)}function $c(t){return rm(t)?t:new wa(t).saturate(.5).darken(.1).hexString()}const W_=["x","y","borderWidth","radius","tension"],z_=["color","borderColor","backgroundColor"];function H_(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:z_},numbers:{type:"number",properties:W_}}),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 Y_(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const am=new Map;function V_(t,e){e=e||{};const n=t+JSON.stringify(e);let r=am.get(n);return r||(r=new Intl.NumberFormat(t,e),am.set(n,r)),r}function U_(t,e,n){return V_(e,n).format(t)}var X_={formatters:{values(t){return mt(t)?t:""+t}}};function G_(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,n)=>n.lineWidth,tickColor:(e,n)=>n.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:X_.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 Rr=Object.create(null),ed=Object.create(null);function Sa(t,e){if(!e)return t;const n=e.split(".");for(let r=0,s=n.length;r<s;++r){const a=n[r];t=t[a]||(t[a]=Object.create(null))}return t}function td(t,e,n){return typeof e=="string"?va(Sa(t,e),n):va(Sa(t,""),e)}class K_{constructor(e,n){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=r=>r.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=(r,s)=>$c(s.backgroundColor),this.hoverBorderColor=(r,s)=>$c(s.borderColor),this.hoverColor=(r,s)=>$c(s.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(n)}set(e,n){return td(this,e,n)}get(e){return Sa(this,e)}describe(e,n){return td(ed,e,n)}override(e,n){return td(Rr,e,n)}route(e,n,r,s){const a=Sa(this,e),o=Sa(this,r),i="_"+n;Object.defineProperties(a,{[i]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[i],c=o[s];return we(l)?Object.assign({},c,l):Ee(l,c)},set(l){this[i]=l}}})}apply(e){e.forEach(n=>n(this))}}var Ze=new K_({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[H_,Y_,G_]);function Z_(t){return!t||wt(t.size)||wt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function om(t,e,n,r,s){let a=e[s];return a||(a=e[s]=t.measureText(s).width,n.push(s)),a>r&&(r=a),r}function Lr(t,e,n){const r=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*r)/r+s}function im(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function lm(t,e,n,r){cm(t,e,n,r,null)}function cm(t,e,n,r,s){let a,o,i,l,c,d,u,h;const g=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*M_;if(g&&typeof g=="object"&&(a=g.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(b),t.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),g){default:s?t.ellipse(n,r,s/2,p,0,0,nt):t.arc(n,r,p,0,nt),t.closePath();break;case"triangle":d=s?s/2:p,t.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=Gg,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=Gg,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),t.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(b+Ir)*l,u=Math.cos(b+Ir)*(s?s/2-c:l),i=Math.sin(b+Ir)*l,h=Math.sin(b+Ir)*(s?s/2-c:l),t.arc(n-u,r-i,c,b-ze,b-it),t.arc(n+h,r-o,c,b-it,b),t.arc(n+u,r+i,c,b,b+it),t.arc(n-h,r+o,c,b+it,b+ze),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,d=s?s/2:l,t.rect(n-d,r-l,2*d,2*l);break}b+=Ir;case"rectRot":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+h,r-o),t.lineTo(n+u,r+i),t.lineTo(n-h,r+o),t.closePath();break;case"crossRot":b+=Ir;case"cross":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+h,r-o),t.lineTo(n-h,r+o);break;case"star":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+h,r-o),t.lineTo(n-h,r+o),b+=Ir,u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,h=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+h,r-o),t.lineTo(n-h,r+o);break;case"line":o=s?s/2:Math.cos(b)*p,i=Math.sin(b)*p,t.moveTo(n-o,r-i),t.lineTo(n+o,r+i);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(b)*(s?s/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function dm(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function nd(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function rd(t){t.restore()}function Q_(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),wt(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 J_(t,e,n,r,s){if(s.strikethrough||s.underline){const a=t.measureText(r),o=e-a.actualBoundingBoxLeft,i=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,d),t.lineTo(i,d),t.stroke()}}function q_(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function li(t,e,n,r,s,a={}){const o=mt(e)?e:[e],i=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(t.save(),t.font=s.string,Q_(t,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&q_(t,a.backdrop),i&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),wt(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,r,a.maxWidth)),t.fillText(c,n,r,a.maxWidth),J_(t,n,r,c,a),r+=Number(s.lineHeight);t.restore()}function sd(t,e){const{x:n,y:r,w:s,h:a,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*ze,ze,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,ze,it,!0),t.lineTo(n+s-o.bottomRight,r+a),t.arc(n+s-o.bottomRight,r+a-o.bottomRight,o.bottomRight,it,0,!0),t.lineTo(n+s,r+o.topRight),t.arc(n+s-o.topRight,r+o.topRight,o.topRight,0,-it,!0),t.lineTo(n+o.topLeft,r)}const $_=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,e3=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function t3(t,e){const n=(""+t).match($_);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const n3=t=>+t||0;function ad(t,e){const n={},r=we(e),s=r?Object.keys(e):e,a=we(t)?r?o=>Ee(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=n3(a(o));return n}function r3(t){return ad(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Oa(t){return ad(t,["topLeft","topRight","bottomLeft","bottomRight"])}function an(t){const e=r3(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Et(t,e){t=t||{},e=e||Ze.font;let n=Ee(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ee(t.style,e.style);r&&!(""+r).match(e3)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const s={family:Ee(t.family,e.family),lineHeight:t3(Ee(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:Ee(t.weight,e.weight),string:""};return s.string=Z_(s),s}function ci(t,e,n,r){let s,a,o;for(s=0,a=t.length;s<a;++s)if(o=t[s],o!==void 0&&o!==void 0)return o}function s3(t,e,n){const{min:r,max:s}=t,a=Yg(e,(s-r)/2),o=(i,l)=>n&&i===0?0:i+l;return{min:o(r,-Math.abs(a)),max:o(s,a)}}function Ss(t,e){return Object.assign(Object.create(t),e)}function od(t,e=[""],n,r,s=()=>t[0]){const a=n||t;typeof r>"u"&&(r=mm("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:r,_getTarget:s,override:i=>od([i,...t],e,a,r)};return new Proxy(o,{deleteProperty(i,l){return delete i[l],delete i._keys,delete t[0][l],!0},get(i,l){return fm(i,l,()=>f3(l,e,t,i))},getOwnPropertyDescriptor(i,l){return Reflect.getOwnPropertyDescriptor(i._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(i,l){return pm(i).includes(l)},ownKeys(i){return pm(i)},set(i,l,c){const d=i._storage||(i._storage=s());return i[l]=d[l]=c,delete i._keys,!0}})}function Os(t,e,n,r){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:um(t,r),setContext:a=>Os(t,a,n,r),override:a=>Os(t.override(a),e,n,r)};return new Proxy(s,{deleteProperty(a,o){return delete a[o],delete t[o],!0},get(a,o,i){return fm(a,o,()=>o3(a,o,i))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(a,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(a,o,i){return t[o]=i,delete a[o],!0}})}function um(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:r,isScriptable:dr(n)?n:()=>n,isIndexable:dr(r)?r:()=>r}}const a3=(t,e)=>t?t+Qc(e):e,id=(t,e)=>we(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function fm(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function o3(t,e,n){const{_proxy:r,_context:s,_subProxy:a,_descriptors:o}=t;let i=r[e];return dr(i)&&o.isScriptable(e)&&(i=i3(e,i,t,n)),mt(i)&&i.length&&(i=l3(e,i,t,o.isIndexable)),id(e,i)&&(i=Os(i,s,a&&a[e],o)),i}function i3(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_stack:i}=n;if(i.has(t))throw new Error("Recursion detected: "+Array.from(i).join("->")+"->"+t);i.add(t);let l=e(a,o||r);return i.delete(t),id(t,l)&&(l=ld(s._scopes,s,t,l)),l}function l3(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_descriptors:i}=n;if(typeof a.index<"u"&&r(t))return e[a.index%e.length];if(we(e[0])){const l=e,c=s._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=ld(c,s,t,d);e.push(Os(u,a,o&&o[t],i))}}return e}function hm(t,e,n){return dr(t)?t(e,n):t}const c3=(t,e)=>t===!0?e:typeof t=="string"?ka(e,t):void 0;function d3(t,e,n,r,s){for(const a of e){const o=c3(n,a);if(o){t.add(o);const i=hm(o._fallback,n,s);if(typeof i<"u"&&i!==n&&i!==r)return i}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function ld(t,e,n,r){const s=e._rootScopes,a=hm(e._fallback,n,r),o=[...t,...s],i=new Set;i.add(r);let l=gm(i,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=gm(i,o,a,l,r),l===null)?!1:od(Array.from(i),[""],s,a,()=>u3(e,n,r))}function gm(t,e,n,r,s){for(;n;)n=d3(t,e,n,r,s);return n}function u3(t,e,n){const r=t._getTarget();e in r||(r[e]={});const s=r[e];return mt(s)&&we(n)?n:s||{}}function f3(t,e,n,r){let s;for(const a of e)if(s=mm(a3(a,t),n),typeof s<"u")return id(t,s)?ld(n,r,t,s):s}function mm(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function pm(t){let e=t._keys;return e||(e=t._keys=h3(t._scopes)),e}function h3(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(r);return Array.from(e)}function cd(){return typeof window<"u"&&typeof document<"u"}function dd(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function di(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const ui=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function g3(t,e){return ui(t).getPropertyValue(e)}const m3=["top","right","bottom","left"];function Fr(t,e,n){const r={};n=n?"-"+n:"";for(let s=0;s<4;s++){const a=m3[s];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const p3=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function b3(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:s,offsetY:a}=r;let o=!1,i,l;if(p3(s,a,t.target))i=s,l=a;else{const c=e.getBoundingClientRect();i=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:i,y:l,box:o}}function Br(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,s=ui(n),a=s.boxSizing==="border-box",o=Fr(s,"padding"),i=Fr(s,"border","width"),{x:l,y:c,box:d}=b3(t,n),u=o.left+(d&&i.left),h=o.top+(d&&i.top);let{width:g,height:m}=e;return a&&(g-=o.width+i.width,m-=o.height+i.height),{x:Math.round((l-u)/g*n.width/r),y:Math.round((c-h)/m*n.height/r)}}function y3(t,e,n){let r,s;if(e===void 0||n===void 0){const a=t&&dd(t);if(!a)e=t.clientWidth,n=t.clientHeight;else{const o=a.getBoundingClientRect(),i=ui(a),l=Fr(i,"border","width"),c=Fr(i,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=di(i.maxWidth,a,"clientWidth"),s=di(i.maxHeight,a,"clientHeight")}}return{width:e,height:n,maxWidth:r||si,maxHeight:s||si}}const ur=t=>Math.round(t*10)/10;function w3(t,e,n,r){const s=ui(t),a=Fr(s,"margin"),o=di(s.maxWidth,t,"clientWidth")||si,i=di(s.maxHeight,t,"clientHeight")||si,l=y3(t,e,n);let{width:c,height:d}=l;if(s.boxSizing==="content-box"){const h=Fr(s,"border","width"),g=Fr(s,"padding");c-=g.width+h.width,d-=g.height+h.height}return c=Math.max(0,c-a.width),d=Math.max(0,r?c/r:d-a.height),c=ur(Math.min(c,o,l.maxWidth)),d=ur(Math.min(d,i,l.maxHeight)),c&&!d&&(d=ur(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=ur(Math.floor(d*r))),{width:c,height:d}}function bm(t,e,n){const r=e||1,s=ur(t.height*r),a=ur(t.width*r);t.height=ur(t.height),t.width=ur(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||o.height!==s||o.width!==a?(t.currentDevicePixelRatio=r,o.height=s,o.width=a,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const v3=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};cd()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function ym(t,e){const n=g3(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const x3=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},k3=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ds(t,e,n){return t?x3(e,n):k3()}function wm(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function vm(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function fi(t,e,n){return t.options.clip?t[n]:e[n]}function _3(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:fi(n,e,"left"),right:fi(n,e,"right"),top:fi(r,e,"top"),bottom:fi(r,e,"bottom")}:e}function C3(t,e){const n=e._clip;if(n.disabled)return!1;const r=_3(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
|
|
19
19
|
* Chart.js v4.5.1
|
|
20
20
|
* https://www.chartjs.org
|
|
21
21
|
* (c) 2025 Chart.js Contributors
|
|
22
22
|
* Released under the MIT License
|
|
23
|
-
*/class xC{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,s){const a=n.listeners[s],o=n.duration;a.forEach(i=>i({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Jm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,s)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,i=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),i=!0):(a[o]=a[a.length-1],a.pop());i&&(s.draw(),this._notify(s,r,e,"progress")),a.length||(r.running=!1,this._notify(s,r,e,"complete"),r.initial=!1),n+=a.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,s)=>Math.max(r,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let s=r.length-1;for(;s>=0;--s)r[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Yn=new xC;const vp="transparent",kC={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=rp(t||vp),s=r.valid&&rp(e||vp);return s&&s.valid?s.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class _C{constructor(e,n,r,s){const a=n[r];s=ci([e.to,s,a,e.from]);const o=ci([e.from,a,s]);this._active=!0,this._fn=e.fn||kC[e.type||typeof o],this._easing=Sa[e.easing]||Sa.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const s=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=ci([e.to,n,s,e.from]),this._from=ci([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,s=this._prop,a=this._from,o=this._loop,i=this._to;let l;if(this._active=a!==i&&(o||n<r),!this._active){this._target[s]=i,this._notify(!0);return}if(n<0){this._target[s]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(a,i,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let s=0;s<r.length;s++)r[s][n]()}}class xp{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!we(e))return;const n=Object.keys(Qe.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const a=e[s];if(!we(a))return;const o={};for(const i of n)o[i]=a[i];(mt(a.properties)&&a.properties||[s]).forEach(i=>{(i===s||!r.has(i))&&r.set(i,o)})})}_animateOptions(e,n){const r=n.options,s=CC(e,r);if(!s)return[];const a=this._createAnimations(s,r);return r.$shared&&SC(e.options.$animations,r).then(()=>{e.options=r},()=>{}),a}_createAnimations(e,n){const r=this._properties,s=[],a=e.$animations||(e.$animations={}),o=Object.keys(n),i=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(e,n));continue}const d=n[c];let u=a[c];const g=r.get(c);if(u)if(g&&u.active()){u.update(g,d,i);continue}else u.cancel();if(!g||!g.duration){e[c]=d;continue}a[c]=u=new _C(g,e,c,d),s.push(u)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Yn.add(this._chart,r),!0}}function SC(t,e){const n=[],r=Object.keys(e);for(let s=0;s<r.length;s++){const a=t[r[s]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function CC(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function kp(t,e){const n=t&&t.options||{},r=n.reverse,s=n.min===void 0?e:0,a=n.max===void 0?e:0;return{start:r?a:s,end:r?s:a}}function OC(t,e,n){if(n===!1)return!1;const r=kp(t,n),s=kp(e,n);return{top:s.end,right:r.end,bottom:s.start,left:r.start}}function DC(t){let e,n,r,s;return we(t)?(e=t.top,n=t.right,r=t.bottom,s=t.left):e=n=r=s=t,{top:e,right:n,bottom:r,left:s,disabled:t===!1}}function _p(t,e){const n=[],r=t._getSortedDatasetMetas(e);let s,a;for(s=0,a=r.length;s<a;++s)n.push(r[s].index);return n}function Sp(t,e,n,r={}){const s=t.keys,a=r.mode==="single";let o,i,l,c;if(e===null)return;let d=!1;for(o=0,i=s.length;o<i;++o){if(l=+s[o],l===n){if(d=!0,r.all)continue;break}c=t.values[l],Hn(c)&&(a||e===0||Gm(e)===Gm(c))&&(e+=c)}return!d&&!r.all?0:e}function MC(t,e){const{iScale:n,vScale:r}=e,s=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(t),i=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],i[l]={[s]:d,[a]:t[d]};return i}function ud(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function EC(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function TC(t){const{min:e,max:n,minDefined:r,maxDefined:s}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function PC(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Cp(t,e,n,r){for(const s of e.getMatchingVisibleMetas(r).reverse()){const a=t[s.index];if(n&&a>0||!n&&a<0)return s.index}return null}function Op(t,e){const{chart:n,_cachedMeta:r}=t,s=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:i}=r,l=a.axis,c=o.axis,d=EC(a,o,r),u=e.length;let g;for(let h=0;h<u;++h){const p=e[h],{[l]:m,[c]:b}=p,y=p._stacks||(p._stacks={});g=y[c]=PC(s,d,m),g[i]=b,g._top=Cp(g,o,!0,r.type),g._bottom=Cp(g,o,!1,r.type);const v=g._visualValues||(g._visualValues={});v[i]=b}}function fd(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function NC(t,e){return Cs(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function jC(t,e,n){return Cs(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Da(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const s of e){const a=s._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const hd=t=>t==="reset"||t==="none",Dp=(t,e)=>e?t:Object.assign({},t),IC=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:_p(n,!0),values:null};class Ma{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,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=ud(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&&Da(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),s=(u,g,h,p)=>u==="x"?g:u==="r"?p:h,a=n.xAxisID=Ee(r.xAxisID,fd(e,"x")),o=n.yAxisID=Ee(r.yAxisID,fd(e,"y")),i=n.rAxisID=Ee(r.rAxisID,fd(e,"r")),l=n.indexAxis,c=n.iAxisID=s(l,a,o,i),d=n.vAxisID=s(l,o,a,i);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(i),n.iScale=this.getScaleForId(c),n.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 n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Zm(this._data,this),e._stacked&&Da(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(we(n)){const s=this._cachedMeta;this._data=MC(n,s)}else if(r!==n){if(r){Zm(r,this);const s=this._cachedMeta;Da(s),s._parsed=[]}n&&Object.isExtensible(n)&&NS(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let s=!1;this._dataCheck();const a=n._stacked;n._stacked=ud(n.vScale,n),n.stack!==r.stack&&(s=!0,Da(n),n.stack=r.stack),this._resyncElements(e),(s||a!==n._stacked)&&(Op(this,n._parsed),n._stacked=ud(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:s}=this,{iScale:a,_stacked:o}=r,i=a.axis;let l=e===0&&n===s.length?!0:r._sorted,c=e>0&&r._parsed[e-1],d,u,g;if(this._parsing===!1)r._parsed=s,r._sorted=!0,g=s;else{mt(s[e])?g=this.parseArrayData(r,s,e,n):we(s[e])?g=this.parseObjectData(r,s,e,n):g=this.parsePrimitiveData(r,s,e,n);const h=()=>u[i]===null||c&&u[i]<c[i];for(d=0;d<n;++d)r._parsed[d+e]=u=g[d],l&&(h()&&(l=!1),c=u);r._sorted=l}o&&Op(this,g)}parsePrimitiveData(e,n,r,s){const{iScale:a,vScale:o}=e,i=a.axis,l=o.axis,c=a.getLabels(),d=a===o,u=new Array(s);let g,h,p;for(g=0,h=s;g<h;++g)p=g+r,u[g]={[i]:d||a.parse(c[p],p),[l]:o.parse(n[p],p)};return u}parseArrayData(e,n,r,s){const{xScale:a,yScale:o}=e,i=new Array(s);let l,c,d,u;for(l=0,c=s;l<c;++l)d=l+r,u=n[d],i[l]={x:a.parse(u[0],d),y:o.parse(u[1],d)};return i}parseObjectData(e,n,r,s){const{xScale:a,yScale:o}=e,{xAxisKey:i="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let d,u,g,h;for(d=0,u=s;d<u;++d)g=d+r,h=n[g],c[d]={x:a.parse(ka(h,i),g),y:o.parse(ka(h,l),g)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const s=this.chart,a=this._cachedMeta,o=n[e.axis],i={keys:_p(s,!0),values:n._stacks[e.axis]._visualValues};return Sp(i,o,a.index,{mode:r})}updateRangeFromParsed(e,n,r,s){const a=r[n.axis];let o=a===null?NaN:a;const i=s&&r._stacks[n.axis];s&&i&&(s.values=i,o=Sp(s,a,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,s=r._parsed,a=r._sorted&&e===r.iScale,o=s.length,i=this._getOtherScale(e),l=IC(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=TC(i);let g,h;function p(){h=s[g];const m=h[i.axis];return!Hn(h[e.axis])||d>m||u<m}for(g=0;g<o&&!(!p()&&(this.updateRangeFromParsed(c,e,h,l),a));++g);if(a){for(g=o-1;g>=0;--g)if(!p()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let s,a,o;for(s=0,a=n.length;s<a;++s)o=n[s][e.axis],Hn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,s=n.vScale,a=this.getParsed(e);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:s?""+s.getLabelForValue(a[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=DC(Ee(this.options.clip,OC(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,s=r.data||[],a=n.chartArea,o=[],i=this._drawStart||0,l=this._drawCount||s.length-i,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,a,i,l),d=i;d<i+l;++d){const u=s[d];u.hidden||(u.active&&c?o.push(u):u.draw(e,a))}for(d=0;d<o.length;++d)o[d].draw(e,a)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const s=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];a=o.$context||(o.$context=jC(this.getContext(),e,o)),a.parsed=this.getParsed(e),a.raw=s.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=NC(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const s=n==="active",a=this._cachedDataOpts,o=e+"-"+n,i=a[o],l=this.enableOptionSharing&&ri(r);if(i)return Dp(i,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=s?[`${e}Hover`,"hover",e,""]:[e,""],g=c.getOptionScopes(this.getDataset(),d),h=Object.keys(Qe.elements[e]),p=()=>this.getContext(r,s,n),m=c.resolveNamedOptions(g,h,p,u);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(Dp(m,l))),m}_resolveAnimations(e,n,r){const s=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,i=a[o];if(i)return i;let l;if(s.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,n),g=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(g,this.getContext(e,r,n))}const c=new xp(s,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||hd(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),s=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==s;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(e,n,r,s){hd(s)?Object.assign(e,r):this._resolveAnimations(n,s).update(e,r)}updateSharedOptions(e,n,r){e&&!hd(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,s){e.active=s;const a=this.getStyle(n,s);this._resolveAnimations(n,r,s).update(e,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"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 n=this._data,r=this._cachedMeta.data;for(const[i,l,c]of this._syncList)this[i](l,c);this._syncList=[];const s=r.length,a=n.length,o=Math.min(a,s);o&&this.parse(0,o),a>s?this._insertElements(s,a-s,e):a<s&&this._removeElements(a,s-a)}_insertElements(e,n,r=!0){const s=this._cachedMeta,a=s.data,o=e+n;let i;const l=c=>{for(c.length+=n,i=c.length-1;i>=o;i--)c[i]=c[i-n]};for(l(a),i=e;i<o;++i)a[i]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(e,n),r&&this.updateElements(a,e,n,"reset")}updateElements(e,n,r,s){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const s=r._parsed.splice(e,n);r._stacked&&Da(r,s)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,s]=e;this[n](r,s)}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,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}$(Ma,"defaults",{}),$(Ma,"datasetElementType",null),$(Ma,"dataElementType",null);function AC(t,e,n){let r=1,s=1,a=0,o=0;if(e<nt){const i=t,l=i+e,c=Math.cos(i),d=Math.sin(i),u=Math.cos(l),g=Math.sin(l),h=(k,w,x)=>oi(k,i,l,!0)?1:Math.max(w,w*n,x,x*n),p=(k,w,x)=>oi(k,i,l,!0)?-1:Math.min(w,w*n,x,x*n),m=h(0,c,u),b=h(it,d,g),y=p(ze,c,u),v=p(ze+it,d,g);r=(m-y)/2,s=(b-v)/2,a=-(m+y)/2,o=-(b+v)/2}return{ratioX:r,ratioY:s,offsetX:a,offsetY:o}}class Ea extends Ma{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=r;else{let a=l=>+r[l];if(we(r[e])){const{key:l="value"}=this._parsing;a=c=>+ka(r[c],l)}let o,i;for(o=e,i=e+n;o<i;++o)s._parsed[o]=a(o)}}_getRotation(){return Ar(this.options.rotation-90)}_getCircumference(){return Ar(this.options.circumference)}_getRotationExtents(){let e=nt,n=-nt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const s=this.chart.getDatasetMeta(r).controller,a=s._getRotation(),o=s._getCircumference();e=Math.min(e,a),n=Math.max(n,a+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,s=this._cachedMeta,a=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,i=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(yS(this.options.cutout,i),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:g,ratioY:h,offsetX:p,offsetY:m}=AC(u,d,l),b=(r.width-o)/g,y=(r.height-o)/h,v=Math.max(Math.min(b,y)/2,0),k=Hm(this.options.radius,v),w=Math.max(k*l,0),x=(k-w)/this._getVisibleDatasetWeightTotal();this.offsetX=p*k,this.offsetY=m*k,s.total=this.calculateTotal(),this.outerRadius=k-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*c,0),this.updateElements(a,0,a.length,e)}_circumference(e,n){const r=this.options,s=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*a/nt)}updateElements(e,n,r,s){const a=s==="reset",o=this.chart,i=o.chartArea,c=o.options.animation,d=(i.left+i.right)/2,u=(i.top+i.bottom)/2,g=a&&c.animateScale,h=g?0:this.innerRadius,p=g?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(n,s);let y=this._getRotation(),v;for(v=0;v<n;++v)y+=this._circumference(v,a);for(v=n;v<n+r;++v){const k=this._circumference(v,a),w=e[v],x={x:d+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+k,circumference:k,outerRadius:p,innerRadius:h};b&&(x.options=m||this.resolveDataElementOptions(v,w.active?"active":s)),y+=k,this.updateElement(w,v,x,s)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,s;for(s=0;s<n.length;s++){const a=e._parsed[s];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?nt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,s=r.data.labels||[],a=zS(n._parsed[e],r.options.locale);return{label:s[e]||"",value:a}}getMaxBorderWidth(e){let n=0;const r=this.chart;let s,a,o,i,l;if(!e){for(s=0,a=r.data.datasets.length;s<a;++s)if(r.isDatasetVisible(s)){o=r.getDatasetMeta(s),e=o.data,i=o.controller;break}}if(!e)return 0;for(s=0,a=e.length;s<a;++s)l=i.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,s=e.length;r<s;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(Ee(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}$(Ea,"id","doughnut"),$(Ea,"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"}),$(Ea,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),$(Ea,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:r,textAlign:s,color:a,useBorderRadius:o,borderRadius:i}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const u=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:u.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(c),lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:u.borderWidth,strokeStyle:u.borderColor,textAlign:s,pointStyle:r,borderRadius:o&&(i||u.borderRadius),index:c}}):[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function Wr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class gd{constructor(e){$(this,"options");this.options=e||{}}static override(e){Object.assign(gd.prototype,e)}init(){}formats(){return Wr()}parse(){return Wr()}format(){return Wr()}add(){return Wr()}diff(){return Wr()}startOf(){return Wr()}endOf(){return Wr()}}var RC={_date:gd};function LC(t,e,n,r){const{controller:s,data:a,_sorted:o}=t,i=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(i&&e===i.axis&&e!=="r"&&o&&a.length){const c=i._reversePixels?TS:qc;if(r){if(s._sharedOptions){const d=a[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const g=c(a,e,n-u),h=c(a,e,n+u);return{lo:g.lo,hi:h.hi}}}}else{const d=c(a,e,n);if(l){const{vScale:u}=s._cachedMeta,{_parsed:g}=t,h=g.slice(0,d.lo+1).reverse().findIndex(m=>!wt(m[u.axis]));d.lo-=Math.max(0,h);const p=g.slice(d.hi).findIndex(m=>!wt(m[u.axis]));d.hi+=Math.max(0,p)}return d}}return{lo:0,hi:a.length-1}}function hi(t,e,n,r,s){const a=t.getSortedVisibleDatasetMetas(),o=n[e];for(let i=0,l=a.length;i<l;++i){const{index:c,data:d}=a[i],{lo:u,hi:g}=LC(a[i],e,o,s);for(let h=u;h<=g;++h){const p=d[h];p.skip||r(p,c,h)}}}function FC(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,s){const a=e?Math.abs(r.x-s.x):0,o=n?Math.abs(r.y-s.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function md(t,e,n,r,s){const a=[];return!s&&!t.isPointInArea(e)||hi(t,n,e,function(i,l,c){!s&&!cp(i,t.chartArea,0)||i.inRange(e.x,e.y,r)&&a.push({element:i,datasetIndex:l,index:c})},!0),a}function BC(t,e,n,r){let s=[];function a(o,i,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:u}=Km(o,{x:e.x,y:e.y});oi(u,c,d)&&s.push({element:o,datasetIndex:i,index:l})}return hi(t,n,e,a),s}function WC(t,e,n,r,s,a){let o=[];const i=FC(n);let l=Number.POSITIVE_INFINITY;function c(d,u,g){const h=d.inRange(e.x,e.y,s);if(r&&!h)return;const p=d.getCenterPoint(s);if(!(!!a||t.isPointInArea(p))&&!h)return;const b=i(e,p);b<l?(o=[{element:d,datasetIndex:u,index:g}],l=b):b===l&&o.push({element:d,datasetIndex:u,index:g})}return hi(t,n,e,c),o}function pd(t,e,n,r,s,a){return!a&&!t.isPointInArea(e)?[]:n==="r"&&!r?BC(t,e,n,s):WC(t,e,n,r,s,a)}function Mp(t,e,n,r,s){const a=[],o=n==="x"?"inXRange":"inYRange";let i=!1;return hi(t,n,e,(l,c,d)=>{l[o]&&l[o](e[n],s)&&(a.push({element:l,datasetIndex:c,index:d}),i=i||l.inRange(e.x,e.y,s))}),r&&!i?[]:a}var zC={modes:{index(t,e,n,r){const s=Br(e,t),a=n.axis||"x",o=n.includeInvisible||!1,i=n.intersect?md(t,s,a,r,o):pd(t,s,a,!1,r,o),l=[];return i.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=i[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;let i=n.intersect?md(t,s,a,r,o):pd(t,s,a,!1,r,o);if(i.length>0){const l=i[0].datasetIndex,c=t.getDatasetMeta(l).data;i=[];for(let d=0;d<c.length;++d)i.push({element:c[d],datasetIndex:l,index:d})}return i},point(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return md(t,s,a,r,o)},nearest(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return pd(t,s,a,n.intersect,r,o)},x(t,e,n,r){const s=Br(e,t);return Mp(t,s,"x",n.intersect,r)},y(t,e,n,r){const s=Br(e,t);return Mp(t,s,"y",n.intersect,r)}}};const Ep=["left","top","right","bottom"];function Ta(t,e){return t.filter(n=>n.pos===e)}function Tp(t,e){return t.filter(n=>Ep.indexOf(n.pos)===-1&&n.box.axis===e)}function Pa(t,e){return t.sort((n,r)=>{const s=e?r:n,a=e?n:r;return s.weight===a.weight?s.index-a.index:s.weight-a.weight})}function HC(t){const e=[];let n,r,s,a,o,i;for(n=0,r=(t||[]).length;n<r;++n)s=t[n],{position:a,options:{stack:o,stackWeight:i=1}}=s,e.push({index:n,box:s,pos:a,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&a+o,stackWeight:i});return e}function YC(t){const e={};for(const n of t){const{stack:r,pos:s,stackWeight:a}=n;if(!r||!Ep.includes(s))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return e}function VC(t,e){const n=YC(t),{vBoxMaxWidth:r,hBoxMaxHeight:s}=e;let a,o,i;for(a=0,o=t.length;a<o;++a){i=t[a];const{fullSize:l}=i.box,c=n[i.stack],d=c&&i.stackWeight/c.weight;i.horizontal?(i.width=d?d*r:l&&e.availableWidth,i.height=s):(i.width=r,i.height=d?d*s:l&&e.availableHeight)}return n}function UC(t){const e=HC(t),n=Pa(e.filter(c=>c.box.fullSize),!0),r=Pa(Ta(e,"left"),!0),s=Pa(Ta(e,"right")),a=Pa(Ta(e,"top"),!0),o=Pa(Ta(e,"bottom")),i=Tp(e,"x"),l=Tp(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:s.concat(l).concat(o).concat(i),chartArea:Ta(e,"chartArea"),vertical:r.concat(s).concat(l),horizontal:a.concat(o).concat(i)}}function Pp(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Np(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 XC(t,e,n,r){const{pos:s,box:a}=n,o=t.maxPadding;if(!we(s)){n.size&&(t[s]-=n.size);const u=r[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?a.height:a.width),n.size=u.size/u.count,t[s]+=n.size}a.getPadding&&Np(o,a.getPadding());const i=Math.max(0,e.outerWidth-Pp(o,t,"left","right")),l=Math.max(0,e.outerHeight-Pp(o,t,"top","bottom")),c=i!==t.w,d=l!==t.h;return t.w=i,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function GC(t){const e=t.maxPadding;function n(r){const s=Math.max(e[r]-t[r],0);return t[r]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function KC(t,e){const n=e.maxPadding;function r(s){const a={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{a[o]=Math.max(e[o],n[o])}),a}return r(t?["left","right"]:["top","bottom"])}function Na(t,e,n,r){const s=[];let a,o,i,l,c,d;for(a=0,o=t.length,c=0;a<o;++a){i=t[a],l=i.box,l.update(i.width||e.w,i.height||e.h,KC(i.horizontal,e));const{same:u,other:g}=XC(e,n,i,r);c|=u&&s.length,d=d||g,l.fullSize||s.push(i)}return c&&Na(s,e,n,r)||d}function gi(t,e,n,r,s){t.top=n,t.left=e,t.right=e+r,t.bottom=n+s,t.width=r,t.height=s}function jp(t,e,n,r){const s=n.padding;let{x:a,y:o}=e;for(const i of t){const l=i.box,c=r[i.stack]||{placed:0,weight:1},d=i.stackWeight/c.weight||1;if(i.horizontal){const u=e.w*d,g=c.size||l.height;ri(c.start)&&(o=c.start),l.fullSize?gi(l,s.left,o,n.outerWidth-s.right-s.left,g):gi(l,e.left+c.placed,o,u,g),c.start=o,c.placed+=u,o=l.bottom}else{const u=e.h*d,g=c.size||l.width;ri(c.start)&&(a=c.start),l.fullSize?gi(l,a,s.top,g,n.outerHeight-s.bottom-s.top):gi(l,a,e.top+c.placed,g,u),c.start=a,c.placed+=u,a=l.right}}e.x=a,e.y=o}var fr={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(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const s=an(t.options.layout.padding),a=Math.max(e-s.width,0),o=Math.max(n-s.height,0),i=UC(t.boxes),l=i.vertical,c=i.horizontal;Te(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:n,padding:s,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/d,hBoxMaxHeight:o/2}),g=Object.assign({},s);Np(g,an(r));const h=Object.assign({maxPadding:g,w:a,h:o,x:s.left,y:s.top},s),p=VC(l.concat(c),u);Na(i.fullSize,h,u,p),Na(l,h,u,p),Na(c,h,u,p)&&Na(l,h,u,p),GC(h),jp(i.leftAndTop,h,u,p),h.x+=h.w,h.y+=h.h,jp(i.rightAndBottom,h,u,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Te(i.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 Ip{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,s){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):r)}}isAttached(e){return!0}updateConfig(e){}}class QC extends Ip{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const mi="$chartjs",ZC={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ap=t=>t===null||t==="";function JC(t,e){const n=t.style,r=t.getAttribute("height"),s=t.getAttribute("width");if(t[mi]={initial:{height:r,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ap(s)){const a=bp(t,"width");a!==void 0&&(t.width=a)}if(Ap(r))if(t.style.height==="")t.height=t.width/(e||2);else{const a=bp(t,"height");a!==void 0&&(t.height=a)}return t}const Rp=pC?{passive:!0}:!1;function qC(t,e,n){t&&t.addEventListener(e,n,Rp)}function $C(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Rp)}function eO(t,e){const n=ZC[t.type]||t.type,{x:r,y:s}=Br(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:s!==void 0?s:null}}function pi(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function tO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||pi(i.addedNodes,r),o=o&&!pi(i.removedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function nO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||pi(i.removedNodes,r),o=o&&!pi(i.addedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const ja=new Map;let Lp=0;function Fp(){const t=window.devicePixelRatio;t!==Lp&&(Lp=t,ja.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function rO(t,e){ja.size||window.addEventListener("resize",Fp),ja.set(t,e)}function sO(t){ja.delete(t),ja.size||window.removeEventListener("resize",Fp)}function aO(t,e,n){const r=t.canvas,s=r&&dd(r);if(!s)return;const a=qm((i,l)=>{const c=s.clientWidth;n(i,l),c<s.clientWidth&&n()},window),o=new ResizeObserver(i=>{const l=i[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||a(c,d)});return o.observe(s),rO(t,a),o}function bd(t,e,n){n&&n.disconnect(),e==="resize"&&sO(t)}function oO(t,e,n){const r=t.canvas,s=qm(a=>{t.ctx!==null&&n(eO(a,t))},t);return qC(r,e,s),s}class iO extends Ip{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(JC(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[mi])return!1;const r=n[mi].initial;["height","width"].forEach(a=>{const o=r[a];wt(o)?n.removeAttribute(a):n.setAttribute(a,o)});const s=r.style||{};return Object.keys(s).forEach(a=>{n.style[a]=s[a]}),n.width=n.width,delete n[mi],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:tO,detach:nO,resize:aO}[n]||oO;s[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),s=r[n];if(!s)return;({attach:bd,detach:bd,resize:bd}[n]||$C)(e,n,s),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,s){return mC(e,n,r,s)}isAttached(e){const n=e&&dd(e);return!!(n&&n.isConnected)}}function lO(t){return!cd()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?QC:iO}let Ia=(Kl=class{constructor(){$(this,"x");$(this,"y");$(this,"active",!1);$(this,"options");$(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return ai(this.x)&&ai(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const s={};return e.forEach(a=>{s[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),s}},$(Kl,"defaults",{}),$(Kl,"defaultRoutes"),Kl);function cO(t,e){const n=t.options.ticks,r=dO(t),s=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?fO(e):[],o=a.length,i=a[0],l=a[o-1],c=[];if(o>s)return hO(e,c,a,o/s),c;const d=uO(a,e,s);if(o>0){let u,g;const h=o>1?Math.round((l-i)/(o-1)):null;for(bi(e,c,d,wt(h)?0:i-h,i),u=0,g=o-1;u<g;u++)bi(e,c,d,a[u],a[u+1]);return bi(e,c,d,l,wt(h)?e.length:l+h),c}return bi(e,c,d),c}function dO(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(r,s))}function uO(t,e,n){const r=gO(t),s=e.length/n;if(!r)return Math.max(s,1);const a=CS(r);for(let o=0,i=a.length-1;o<i;o++){const l=a[o];if(l>s)return l}return Math.max(s,1)}function fO(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function hO(t,e,n,r){let s=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),s++,a=n[s*r])}function bi(t,e,n,r,s){const a=Ee(r,0),o=Math.min(Ee(s,t.length),t.length);let i=0,l,c,d;for(n=Math.ceil(n),s&&(l=s-r,n=l/Math.floor(l/n)),d=a;d<0;)i++,d=Math.round(a+i*n);for(c=Math.max(a,0);c<o;c++)c===d&&(e.push(t[c]),i++,d=Math.round(a+i*n))}function gO(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const mO=t=>t==="left"?"right":t==="right"?"left":t,Bp=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Wp=(t,e)=>Math.min(e||t,t);function zp(t,e){const n=[],r=t.length/e,s=t.length;let a=0;for(;a<s;a+=r)n.push(t[Math.floor(a)]);return n}function pO(t,e,n){const r=t.ticks.length,s=Math.min(e,r-1),a=t._startPixel,o=t._endPixel,i=1e-6;let l=t.getPixelForTick(s),c;if(!(n&&(r===1?c=Math.max(l-a,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(s-1))/2,l+=s<e?c:-c,l<a-i||l>o+i)))return l}function bO(t,e){Te(t,n=>{const r=n.gc,s=r.length/2;let a;if(s>e){for(a=0;a<s;++a)delete n.data[r[a]];r.splice(0,s)}})}function Aa(t){return t.drawTicks?t.tickLength:0}function Hp(t,e){if(!t.display)return 0;const n=Et(t.font,e),r=an(t.padding);return(mt(t.text)?t.text.length:1)*n.lineHeight+r.height}function yO(t,e){return Cs(t,{scale:e,type:"scale"})}function wO(t,e,n){return Cs(t,{tick:n,index:e,type:"tick"})}function vO(t,e,n){let r=$m(t);return(n&&e!=="right"||!n&&e==="right")&&(r=mO(r)),r}function xO(t,e,n,r){const{top:s,left:a,bottom:o,right:i,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,g,h,p;const m=o-s,b=i-a;if(t.isHorizontal()){if(h=Ft(r,a,i),we(n)){const y=Object.keys(n)[0],v=n[y];p=d[y].getPixelForValue(v)+m-e}else n==="center"?p=(c.bottom+c.top)/2+m-e:p=Bp(t,n,e);g=i-a}else{if(we(n)){const y=Object.keys(n)[0],v=n[y];h=d[y].getPixelForValue(v)-b+e}else n==="center"?h=(c.left+c.right)/2-b+e:h=Bp(t,n,e);p=Ft(r,o,s),u=n==="left"?-it:it}return{titleX:h,titleY:p,maxWidth:g,rotation:u}}class yi extends Ia{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,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:s}=this;return e=yn(e,Number.POSITIVE_INFINITY),n=yn(n,Number.NEGATIVE_INFINITY),r=yn(r,Number.POSITIVE_INFINITY),s=yn(s,Number.NEGATIVE_INFINITY),{min:yn(e,r),max:yn(n,s),minDefined:Hn(e),maxDefined:Hn(n)}}getMinMax(e){let{min:n,max:r,minDefined:s,maxDefined:a}=this.getUserBounds(),o;if(s&&a)return{min:n,max:r};const i=this.getMatchingVisibleMetas();for(let l=0,c=i.length;l<c;++l)o=i[l].controller.getMinMax(this,e),s||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=s&&n>r?n:r,{min:yn(n,yn(r,n)),max:yn(r,yn(n,r))}}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(){We(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:s,grace:a,ticks:o}=this.options,i=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=eC(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=i<this.ticks.length;this._convertTicksToLabels(l?zp(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=cO(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,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){We(this.options.afterUpdate,[this])}beforeSetDimensions(){We(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(){We(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),We(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){We(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,s,a;for(r=0,s=e.length;r<s;r++)a=e[r],a.label=We(n.callback,[a.value,r,e],this)}afterTickToLabelConversion(){We(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){We(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=Wp(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,a=n.maxRotation;let o=s,i,l,c;if(!this._isVisible()||!n.display||s>=a||r<=1||!this.isHorizontal()){this.labelRotation=s;return}const d=this._getLabelSizes(),u=d.widest.width,g=d.highest.height,h=qt(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/r:h/(r-1),u+6>i&&(i=h/(r-(e.offset?.5:1)),l=this.maxHeight-Aa(e.grid)-n.padding-Hp(e.title,this.chart.options.font),c=Math.sqrt(u*u+g*g),o=DS(Math.min(Math.asin(qt((d.highest.height+6)/i,-1,1)),Math.asin(qt(l/c,-1,1))-Math.asin(qt(g/c,-1,1)))),o=Math.max(s,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){We(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){We(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:s,grid:a}}=this,o=this._isVisible(),i=this.isHorizontal();if(o){const l=Hp(s,n.options.font);if(i?(e.width=this.maxWidth,e.height=Aa(a)+l):(e.height=this.maxHeight,e.width=Aa(a)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:g}=this._getLabelSizes(),h=r.padding*2,p=Ar(this.labelRotation),m=Math.cos(p),b=Math.sin(p);if(i){const y=r.mirror?0:b*u.width+m*g.height;e.height=Math.min(this.maxHeight,e.height+y+h)}else{const y=r.mirror?0:m*u.width+b*g.height;e.width=Math.min(this.maxWidth,e.width+y+h)}this._calculatePadding(c,d,b,m)}}this._handleMargins(),i?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,s){const{ticks:{align:a,padding:o},position:i}=this.options,l=this.labelRotation!==0,c=i!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,h=0;l?c?(g=s*e.width,h=r*n.height):(g=r*e.height,h=s*n.width):a==="start"?h=n.width:a==="end"?g=e.width:a!=="inner"&&(g=e.width/2,h=n.width/2),this.paddingLeft=Math.max((g-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-u+o)*this.width/(this.width-u),0)}else{let d=n.height/2,u=e.height/2;a==="start"?(d=0,u=e.height):a==="end"&&(d=n.height,u=0),this.paddingTop=d+o,this.paddingBottom=u+o}}_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(){We(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)wt(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=zp(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:s,_longestTextCache:a}=this,o=[],i=[],l=Math.floor(n/Wp(n,r));let c=0,d=0,u,g,h,p,m,b,y,v,k,w,x;for(u=0;u<n;u+=l){if(p=e[u].label,m=this._resolveTickFontOptions(u),s.font=b=m.string,y=a[b]=a[b]||{data:{},gc:[]},v=m.lineHeight,k=w=0,!wt(p)&&!mt(p))k=ap(s,y.data,y.gc,k,p),w=v;else if(mt(p))for(g=0,h=p.length;g<h;++g)x=p[g],!wt(x)&&!mt(x)&&(k=ap(s,y.data,y.gc,k,x),w+=v);o.push(k),i.push(w),c=Math.max(k,c),d=Math.max(w,d)}bO(a,n);const S=o.indexOf(c),P=i.indexOf(d),C=N=>({width:o[N]||0,height:i[N]||0});return{first:C(0),last:C(n-1),widest:C(S),highest:C(P),widths:o,heights:i}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return ES(this._alignToPixels?Lr(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=wO(this.getContext(),e,r))}return this.$context||(this.$context=yO(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Ar(this.labelRotation),r=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=e.autoSkipPadding||0,i=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>i*s?i/r:l/s:l*s<i*r?l/r:i/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,s=this.options,{grid:a,position:o,border:i}=s,l=a.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),g=Aa(a),h=[],p=i.setContext(this.getContext()),m=p.display?p.width:0,b=m/2,y=function(M){return Lr(r,M,m)};let v,k,w,x,S,P,C,N,T,Y,F,E;if(o==="top")v=y(this.bottom),P=this.bottom-g,N=v-b,Y=y(e.top)+b,E=e.bottom;else if(o==="bottom")v=y(this.top),Y=e.top,E=y(e.bottom)-b,P=v+b,N=this.top+g;else if(o==="left")v=y(this.right),S=this.right-g,C=v-b,T=y(e.left)+b,F=e.right;else if(o==="right")v=y(this.left),T=e.left,F=y(e.right)-b,S=v+b,C=this.left+g;else if(n==="x"){if(o==="center")v=y((e.top+e.bottom)/2+.5);else if(we(o)){const M=Object.keys(o)[0],H=o[M];v=y(this.chart.scales[M].getPixelForValue(H))}Y=e.top,E=e.bottom,P=v+b,N=P+g}else if(n==="y"){if(o==="center")v=y((e.left+e.right)/2);else if(we(o)){const M=Object.keys(o)[0],H=o[M];v=y(this.chart.scales[M].getPixelForValue(H))}S=v-b,C=S-g,T=e.left,F=e.right}const D=Ee(s.ticks.maxTicksLimit,u),j=Math.max(1,Math.ceil(u/D));for(k=0;k<u;k+=j){const M=this.getContext(k),H=a.setContext(M),X=i.setContext(M),ee=H.lineWidth,I=H.color,V=X.dash||[],L=X.dashOffset,R=H.tickWidth,A=H.tickColor,O=H.tickBorderDash||[],W=H.tickBorderDashOffset;w=pO(this,k,l),w!==void 0&&(x=Lr(r,w,ee),c?S=C=T=F=x:P=N=Y=E=x,h.push({tx1:S,ty1:P,tx2:C,ty2:N,x1:T,y1:Y,x2:F,y2:E,width:ee,color:I,borderDash:V,borderDashOffset:L,tickWidth:R,tickColor:A,tickBorderDash:O,tickBorderDashOffset:W}))}return this._ticksLength=u,this._borderValue=v,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:s,ticks:a}=r,o=this.isHorizontal(),i=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=a,g=Aa(r.grid),h=g+d,p=u?-d:h,m=-Ar(this.labelRotation),b=[];let y,v,k,w,x,S,P,C,N,T,Y,F,E="middle";if(s==="top")S=this.bottom-p,P=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+p,P=this._getXAxisLabelAlignment();else if(s==="left"){const j=this._getYAxisLabelAlignment(g);P=j.textAlign,x=j.x}else if(s==="right"){const j=this._getYAxisLabelAlignment(g);P=j.textAlign,x=j.x}else if(n==="x"){if(s==="center")S=(e.top+e.bottom)/2+h;else if(we(s)){const j=Object.keys(s)[0],M=s[j];S=this.chart.scales[j].getPixelForValue(M)+h}P=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")x=(e.left+e.right)/2-h;else if(we(s)){const j=Object.keys(s)[0],M=s[j];x=this.chart.scales[j].getPixelForValue(M)}P=this._getYAxisLabelAlignment(g).textAlign}n==="y"&&(l==="start"?E="top":l==="end"&&(E="bottom"));const D=this._getLabelSizes();for(y=0,v=i.length;y<v;++y){k=i[y],w=k.label;const j=a.setContext(this.getContext(y));C=this.getPixelForTick(y)+a.labelOffset,N=this._resolveTickFontOptions(y),T=N.lineHeight,Y=mt(w)?w.length:1;const M=Y/2,H=j.color,X=j.textStrokeColor,ee=j.textStrokeWidth;let I=P;o?(x=C,P==="inner"&&(y===v-1?I=this.options.reverse?"left":"right":y===0?I=this.options.reverse?"right":"left":I="center"),s==="top"?c==="near"||m!==0?F=-Y*T+T/2:c==="center"?F=-D.highest.height/2-M*T+T:F=-D.highest.height+T/2:c==="near"||m!==0?F=T/2:c==="center"?F=D.highest.height/2-M*T:F=D.highest.height-Y*T,u&&(F*=-1),m!==0&&!j.showLabelBackdrop&&(x+=T/2*Math.sin(m))):(S=C,F=(1-Y)*T/2);let V;if(j.showLabelBackdrop){const L=an(j.backdropPadding),R=D.heights[y],A=D.widths[y];let O=F-L.top,W=0-L.left;switch(E){case"middle":O-=R/2;break;case"bottom":O-=R;break}switch(P){case"center":W-=A/2;break;case"right":W-=A;break;case"inner":y===v-1?W-=A:y>0&&(W-=A/2);break}V={left:W,top:O,width:A+L.width,height:R+L.height,color:j.backdropColor}}b.push({label:w,font:N,textOffset:F,options:{rotation:m,color:H,strokeColor:X,strokeWidth:ee,textAlign:I,textBaseline:E,translation:[x,S],backdrop:V}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Ar(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:s,padding:a}}=this.options,o=this._getLabelSizes(),i=e+a,l=o.widest.width;let c,d;return n==="left"?s?(d=this.right+a,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-i,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d=this.left)):n==="right"?s?(d=this.left+a,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+i,r==="near"?c="left":r==="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,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:s,width:a,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,s,a,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(a=>a.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,o;const i=(l,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=s.length;a<o;++a){const l=s[a];n.drawOnChartArea&&i({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&i({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:n,options:{border:r,grid:s}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const i=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,g;this.isHorizontal()?(c=Lr(e,this.left,o)-o/2,d=Lr(e,this.right,i)+i/2,u=g=l):(u=Lr(e,this.top,o)-o/2,g=Lr(e,this.bottom,i)+i/2,c=d=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(c,u),n.lineTo(d,g),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,s=this._computeLabelArea();s&&nd(r,s);const a=this.getLabelItems(e);for(const o of a){const i=o.options,l=o.font,c=o.label,d=o.textOffset;li(r,c,0,d,l,i)}s&&rd(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:s}}=this;if(!r.display)return;const a=Et(r.font),o=an(r.padding),i=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||we(n)?(l+=o.bottom,mt(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:g}=xO(this,l,n,i);li(e,r.text,0,0,a,{color:r.color,maxWidth:u,rotation:g,textAlign:vO(i,n,s),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,n=e.ticks&&e.ticks.z||0,r=Ee(e.grid&&e.grid.z,-1),s=Ee(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==yi.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",s=[];let a,o;for(a=0,o=n.length;a<o;++a){const i=n[a];i[r]===this.id&&(!e||i.type===e)&&s.push(i)}return s}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Et(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class wi{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;SO(n)&&(r=this.register(n));const s=this.items,a=e.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in s||(s[a]=e,kO(e,o,r),this.override&&Qe.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,s=this.scope;r in n&&delete n[r],s&&r in Qe[s]&&(delete Qe[s][r],this.override&&delete Rr[r])}}function kO(t,e,n){const r=va(Object.create(null),[n?Qe.get(n):{},Qe.get(e),t.defaults]);Qe.set(e,r),t.defaultRoutes&&_O(e,t.defaultRoutes),t.descriptors&&Qe.describe(e,t.descriptors)}function _O(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),s=r.pop(),a=[t].concat(r).join("."),o=e[n].split("."),i=o.pop(),l=o.join(".");Qe.route(a,s,l,i)})}function SO(t){return"id"in t&&"defaults"in t}class CO{constructor(){this.controllers=new wi(Ma,"datasets",!0),this.elements=new wi(Ia,"elements"),this.plugins=new wi(Object,"plugins"),this.scales=new wi(yi,"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,n,r){[...n].forEach(s=>{const a=r||this._getRegistryForType(s);r||a.isForType(s)||a===this.plugins&&s.id?this._exec(e,a,s):Te(s,o=>{const i=r||this._getRegistryForType(o);this._exec(e,i,o)})})}_exec(e,n,r){const s=Zc(e);We(r["before"+s],[],r),n[e](r),We(r["after"+s],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return s}}var vn=new CO;class OO{constructor(){this._init=void 0}notify(e,n,r,s){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const a=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(a,e,n,r);return n==="afterDestroy"&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),o}_notify(e,n,r,s){s=s||{};for(const a of e){const o=a.plugin,i=o[r],l=[n,s,a.options];if(We(i,l,o)===!1&&s.cancelable)return!1}return!0}invalidate(){wt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,s=Ee(r.options&&r.options.plugins,{}),a=DO(r);return s===!1&&!n?[]:EO(e,a,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,s=(a,o)=>a.filter(i=>!o.some(l=>i.plugin.id===l.plugin.id));this._notify(s(n,r),e,"stop"),this._notify(s(r,n),e,"start")}}function DO(t){const e={},n=[],r=Object.keys(vn.plugins.items);for(let a=0;a<r.length;a++)n.push(vn.getPlugin(r[a]));const s=t.plugins||[];for(let a=0;a<s.length;a++){const o=s[a];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function MO(t,e){return!e&&t===!1?null:t===!0?{}:t}function EO(t,{plugins:e,localIds:n},r,s){const a=[],o=t.getContext();for(const i of e){const l=i.id,c=MO(r[l],s);c!==null&&a.push({plugin:i,options:TO(t.config,{plugin:i,local:n[l]},c,o)})}return a}function TO(t,{plugin:e,local:n},r,s){const a=t.pluginScopeKeys(e),o=t.getOptionScopes(r,a);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function yd(t,e){const n=Qe.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function PO(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function NO(t,e){return t===e?"_index_":"_value_"}function Yp(t){if(t==="x"||t==="y"||t==="r")return t}function jO(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function wd(t,...e){if(Yp(t))return t;for(const n of e){const r=n.axis||jO(n.position)||t.length>1&&Yp(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Vp(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function IO(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return Vp(t,"x",n[0])||Vp(t,"y",n[0])}return{}}function AO(t,e){const n=Rr[t.type]||{scales:{}},r=e.scales||{},s=yd(t.type,e),a=Object.create(null);return Object.keys(r).forEach(o=>{const i=r[o];if(!we(i))return console.error(`Invalid scale configuration for scale: ${o}`);if(i._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=wd(o,i,IO(o,t),Qe.scales[i.type]),c=NO(l,s),d=n.scales||{};a[o]=xa(Object.create(null),[{axis:l},i,d[l],d[c]])}),t.data.datasets.forEach(o=>{const i=o.type||t.type,l=o.indexAxis||yd(i,e),d=(Rr[i]||{}).scales||{};Object.keys(d).forEach(u=>{const g=PO(u,l),h=o[g+"AxisID"]||g;a[h]=a[h]||Object.create(null),xa(a[h],[{axis:g},r[h],d[u]])})}),Object.keys(a).forEach(o=>{const i=a[o];xa(i,[Qe.scales[i.type],Qe.scale])}),a}function Up(t){const e=t.options||(t.options={});e.plugins=Ee(e.plugins,{}),e.scales=AO(t,e)}function Xp(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function RO(t){return t=t||{},t.data=Xp(t.data),Up(t),t}const Gp=new Map,Kp=new Set;function vi(t,e){let n=Gp.get(t);return n||(n=e(),Gp.set(t,n),Kp.add(n)),n}const Ra=(t,e,n)=>{const r=ka(e,n);r!==void 0&&t.add(r)};class LO{constructor(e){this._config=RO(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=Xp(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(),Up(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return vi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return vi(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return vi(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return vi(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let s=r.get(e);return(!s||n)&&(s=new Map,r.set(e,s)),s}getOptionScopes(e,n,r){const{options:s,type:a}=this,o=this._cachedScopes(e,r),i=o.get(n);if(i)return i;const l=new Set;n.forEach(d=>{e&&(l.add(e),d.forEach(u=>Ra(l,e,u))),d.forEach(u=>Ra(l,s,u)),d.forEach(u=>Ra(l,Rr[a]||{},u)),d.forEach(u=>Ra(l,Qe,u)),d.forEach(u=>Ra(l,ed,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Kp.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,Rr[n]||{},Qe.datasets[n]||{},{type:n},Qe,ed]}resolveNamedOptions(e,n,r,s=[""]){const a={$shared:!0},{resolver:o,subPrefixes:i}=Qp(this._resolverCache,e,s);let l=o;if(BO(o,n)){a.$shared=!1,r=dr(r)?r():r;const c=this.createResolver(e,r,i);l=Os(o,r,c)}for(const c of n)a[c]=l[c];return a}createResolver(e,n,r=[""],s){const{resolver:a}=Qp(this._resolverCache,e,r);return we(n)?Os(a,n,void 0,s):a}}function Qp(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const s=n.join();let a=r.get(s);return a||(a={resolver:od(e,n),subPrefixes:n.filter(i=>!i.toLowerCase().includes("hover"))},r.set(s,a)),a}const FO=t=>we(t)&&Object.getOwnPropertyNames(t).some(e=>dr(t[e]));function BO(t,e){const{isScriptable:n,isIndexable:r}=dp(t);for(const s of e){const a=n(s),o=r(s),i=(o||a)&&t[s];if(a&&(dr(i)||FO(i))||o&&mt(i))return!0}return!1}var WO="4.5.1";const zO=["top","bottom","left","right","chartArea"];function Zp(t,e){return t==="top"||t==="bottom"||zO.indexOf(t)===-1&&e==="x"}function Jp(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function qp(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),We(n&&n.onComplete,[t],e)}function HO(t){const e=t.chart,n=e.options.animation;We(n&&n.onProgress,[t],e)}function $p(t){return cd()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const xi={},e0=t=>{const e=$p(t);return Object.values(xi).filter(n=>n.canvas===e).pop()};function YO(t,e,n){const r=Object.keys(t);for(const s of r){const a=+s;if(a>=e){const o=t[s];delete t[s],(n>0||a>e)&&(t[a+n]=o)}}}function VO(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}let ki=(_r=class{static register(...e){vn.add(...e),t0()}static unregister(...e){vn.remove(...e),t0()}constructor(e,n){const r=this.config=new LO(n),s=$p(e),a=e0(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||lO(s)),this.platform.updateConfig(r);const i=this.platform.acquireContext(s,o.aspectRatio),l=i&&i.canvas,c=l&&l.height,d=l&&l.width;if(this.id=bS(),this.ctx=i,this.canvas=l,this.width=d,this.height=c,this._options=o,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 OO,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=IS(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],xi[this.id]=this,!i||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Yn.listen(this,"complete",qp),Yn.listen(this,"progress",HO),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:s,_aspectRatio:a}=this;return wt(e)?n&&a?a:s?r/s: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 vn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():pp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return op(this.canvas,this.ctx),this}stop(){return Yn.stop(this),this}resize(e,n){Yn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,s=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,a),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,pp(this,i,!0)&&(this.notifyPlugins("resize",{size:o}),We(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Te(n,(r,s)=>{r.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,s=Object.keys(r).reduce((o,i)=>(o[i]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const i=n[o],l=wd(o,i),c=l==="r",d=l==="x";return{options:i,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Te(a,o=>{const i=o.options,l=i.id,c=wd(l,i),d=Ee(i.type,o.dtype);(i.position===void 0||Zp(i.position,c)!==Zp(o.dposition))&&(i.position=o.dposition),s[l]=!0;let u=null;if(l in r&&r[l].type===d)u=r[l];else{const g=vn.getScale(d);u=new g({id:l,type:d,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,e)}),Te(s,(o,i)=>{o||delete r[i]}),Te(r,o=>{fr.configure(this,o,o.options),fr.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((s,a)=>s.index-a.index),r>n){for(let s=n;s<r;++s)this._destroyDatasetMeta(s);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(Jp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,s)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,s;for(this._removeUnreferencedMetasets(),r=0,s=n.length;r<s;r++){const a=n[r];let o=this.getDatasetMeta(r);const i=a.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=a.indexAxis||yd(i,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=vn.getController(i),{datasetElementType:c,dataElementType:d}=Qe.datasets[i];Object.assign(l,{dataElementType:vn.getElement(d),datasetElementType:c&&vn.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Te(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),g=!s&&a.indexOf(u)===-1;u.buildOrUpdateElements(g),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),s||Te(a,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Jp("z","_idx"));const{_active:i,_lastEvent:l}=this;l?this._eventHandler(l,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Te(this.scales,e=>{fr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!Um(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:s,count:a}of n){const o=r==="_removeElements"?-a:a;YO(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(e.filter(o=>o[0]===a).map((o,i)=>i+","+o.splice(1).join(","))),s=r(0);for(let a=1;a<n;a++)if(!Um(s,r(a)))return;return Array.from(s).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;fr.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Te(this.boxes,s=>{r&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,dr(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),s={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(r.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Yn.has(this)?this.attached&&!Yn.running(this)&&Yn.start(this):(this.draw(),qp({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},s=vC(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&nd(n,s),e.controller.draw(),s&&rd(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return cp(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,s){const a=zC.modes[n];return typeof a=="function"?a(this,e,r,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let s=r.filter(a=>a&&a._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(s)),s}getContext(){return this.$context||(this.$context=Cs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const s=r?"show":"hide",a=this.getDatasetMeta(e),o=a.controller._resolveAnimations(void 0,s);ri(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(a,{visible:r}),this.update(i=>i.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Yn.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),op(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete xi[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,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),e[a]=o},s=(a,o,i)=>{a.offsetX=o,a.offsetY=i,this._eventHandler(a)};Te(this.options.events,a=>r(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},s=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const i=()=>{s("attach",i),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),r("attach",i)},n.isAttached(this.canvas)?i():o()}unbindEvents(){Te(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Te(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const s=r?"set":"remove";let a,o,i,l;for(n==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),i=0,l=e.length;i<l;++i){o=e[i];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:a,index:o})=>{const i=this.getDatasetMeta(a);if(!i)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:i.data[o],index:o}});!ti(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const s=this.options.hover,a=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=a(n,e),i=r?e:a(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),i.length&&s.mode&&this.updateHoverStyle(i,s.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,s)===!1)return;const a=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,s),(a||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:s=[],options:a}=this,o=n,i=this._getActiveElements(e,s,r,o),l=_S(e),c=VO(e,this._lastEvent,r,l);r&&(this._lastEvent=null,We(a.onHover,[e,i,this],this),l&&We(a.onClick,[e,i,this],this));const d=!ti(i,s);return(d||n)&&(this._active=i,this._updateHoverStyles(i,s,n)),this._lastEvent=c,d}_getActiveElements(e,n,r,s){if(e.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,s)}},$(_r,"defaults",Qe),$(_r,"instances",xi),$(_r,"overrides",Rr),$(_r,"registry",vn),$(_r,"version",WO),$(_r,"getChart",e0),_r);function t0(){return Te(ki.instances,t=>t._plugins.invalidate())}function UO(t,e,n){const{startAngle:r,x:s,y:a,outerRadius:o,innerRadius:i,options:l}=e,{borderWidth:c,borderJoinStyle:d}=l,u=Math.min(c/o,wn(r-n));if(t.beginPath(),t.arc(s,a,o-c/2,r+u/2,n-u/2),i>0){const g=Math.min(c/i,wn(r-n));t.arc(s,a,i+c/2,n-g/2,r+g/2,!0)}else{const g=Math.min(c/2,o*wn(r-n));if(d==="round")t.arc(s,a,g,n-ze/2,r+ze/2,!0);else if(d==="bevel"){const h=2*g*g,p=-h*Math.cos(n+ze/2)+s,m=-h*Math.sin(n+ze/2)+a,b=h*Math.cos(r+ze/2)+s,y=h*Math.sin(r+ze/2)+a;t.lineTo(p,m),t.lineTo(b,y)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function XO(t,e,n){const{startAngle:r,pixelMargin:s,x:a,y:o,outerRadius:i,innerRadius:l}=e;let c=s/i;t.beginPath(),t.arc(a,o,i,r-c,n+c),l>s?(c=s/l,t.arc(a,o,l,n+c,r-c,!0)):t.arc(a,o,s,n+it,r-it),t.closePath(),t.clip()}function GO(t){return ad(t,["outerStart","outerEnd","innerStart","innerEnd"])}function KO(t,e,n,r){const s=GO(t.options.borderRadius),a=(n-e)/2,o=Math.min(a,r*e/2),i=l=>{const c=(n-Math.min(a,l))*r/2;return qt(l,0,Math.min(a,c))};return{outerStart:i(s.outerStart),outerEnd:i(s.outerEnd),innerStart:qt(s.innerStart,0,o),innerEnd:qt(s.innerEnd,0,o)}}function Ms(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function _i(t,e,n,r,s,a){const{x:o,y:i,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+r+n-c,0),g=d>0?d+r+n+c:0;let h=0;const p=s-l;if(r){const j=d>0?d-r:0,M=u>0?u-r:0,H=(j+M)/2,X=H!==0?p*H/(H+r):p;h=(p-X)/2}const m=Math.max(.001,p*u-n/ze)/u,b=(p-m)/2,y=l+b+h,v=s-b-h,{outerStart:k,outerEnd:w,innerStart:x,innerEnd:S}=KO(e,g,u,v-y),P=u-k,C=u-w,N=y+k/P,T=v-w/C,Y=g+x,F=g+S,E=y+x/Y,D=v-S/F;if(t.beginPath(),a){const j=(N+T)/2;if(t.arc(o,i,u,N,j),t.arc(o,i,u,j,T),w>0){const ee=Ms(C,T,o,i);t.arc(ee.x,ee.y,w,T,v+it)}const M=Ms(F,v,o,i);if(t.lineTo(M.x,M.y),S>0){const ee=Ms(F,D,o,i);t.arc(ee.x,ee.y,S,v+it,D+Math.PI)}const H=(v-S/g+(y+x/g))/2;if(t.arc(o,i,g,v-S/g,H,!0),t.arc(o,i,g,H,y+x/g,!0),x>0){const ee=Ms(Y,E,o,i);t.arc(ee.x,ee.y,x,E+Math.PI,y-it)}const X=Ms(P,y,o,i);if(t.lineTo(X.x,X.y),k>0){const ee=Ms(P,N,o,i);t.arc(ee.x,ee.y,k,y-it,N)}}else{t.moveTo(o,i);const j=Math.cos(N)*u+o,M=Math.sin(N)*u+i;t.lineTo(j,M);const H=Math.cos(T)*u+o,X=Math.sin(T)*u+i;t.lineTo(H,X)}t.closePath()}function QO(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i}=e;let l=e.endAngle;if(a){_i(t,e,n,r,l,s);for(let c=0;c<a;++c)t.fill();isNaN(i)||(l=o+(i%nt||nt))}return _i(t,e,n,r,l,s),t.fill(),l}function ZO(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:g,borderRadius:h}=l,p=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=g,p?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let m=e.endAngle;if(a){_i(t,e,n,r,m,s);for(let b=0;b<a;++b)t.stroke();isNaN(i)||(m=o+(i%nt||nt))}p&&XO(t,e,m),l.selfJoin&&m-o>=ze&&h===0&&d!=="miter"&&UO(t,e,m),a||(_i(t,e,n,r,m,s),t.stroke())}class La extends Ia{constructor(n){super();$(this,"circumference");$(this,"endAngle");$(this,"fullCircles");$(this,"innerRadius");$(this,"outerRadius");$(this,"pixelMargin");$(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,n&&Object.assign(this,n)}inRange(n,r,s){const a=this.getProps(["x","y"],s),{angle:o,distance:i}=Km(a,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:g}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),h=(this.options.spacing+this.options.borderWidth)/2,p=Ee(g,c-l),m=oi(o,l,c)&&l!==c,b=p>=nt||m,y=_a(i,d+h,u+h);return b&&y}getCenterPoint(n){const{x:r,y:s,startAngle:a,endAngle:o,innerRadius:i,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,u=(a+o)/2,g=(i+l+d+c)/2;return{x:r+Math.cos(u)*g,y:s+Math.sin(u)*g}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:s}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,i=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=s>nt?Math.floor(s/nt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const c=1-Math.sin(Math.min(ze,s||0)),d=a*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,QO(n,this,d,o,i),ZO(n,this,d,o,i),n.restore()}}$(La,"id","arc"),$(La,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),$(La,"defaultRoutes",{backgroundColor:"backgroundColor"}),$(La,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});const n0=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},JO=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class r0 extends Ia{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,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,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 n=We(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,s)=>e.sort(r,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,s=Et(r.font),a=s.size,o=this._computeTitleHeight(),{boxWidth:i,itemHeight:l}=n0(r,a);let c,d;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,a,i,l)+10):(d=this.maxHeight,c=this._fitCols(o,s,i,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,s){const{ctx:a,maxWidth:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=s+i;let u=e;a.textAlign="left",a.textBaseline="middle";let g=-1,h=-d;return this.legendItems.forEach((p,m)=>{const b=r+n/2+a.measureText(p.text).width;(m===0||c[c.length-1]+b+2*i>o)&&(u+=d,c[c.length-(m>0?0:1)]=0,h+=d,g++),l[m]={left:0,top:h,row:g,width:b,height:s},c[c.length-1]+=b+i}),u}_fitCols(e,n,r,s){const{ctx:a,maxHeight:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=i,g=0,h=0,p=0,m=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:v,itemHeight:k}=qO(r,n,a,b,s);y>0&&h+k+2*i>d&&(u+=g+i,c.push({width:g,height:h}),p+=g+i,m++,g=h=0),l[y]={left:p,top:h,col:m,width:v,height:k},g=Math.max(g,v),h+=k+i}),u+=g,c.push({width:g,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:s},rtl:a}}=this,o=Ds(a,this.left,this.width);if(this.isHorizontal()){let i=0,l=Ft(r,this.left+s,this.right-this.lineWidths[i]);for(const c of n)i!==c.row&&(i=c.row,l=Ft(r,this.left+s,this.right-this.lineWidths[i])),c.top+=this.top+e+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let i=0,l=Ft(r,this.top+e+s,this.bottom-this.columnSizes[i].height);for(const c of n)c.col!==i&&(i=c.col,l=Ft(r,this.top+e+s,this.bottom-this.columnSizes[i].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;nd(e,this),this._draw(),rd(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:s}=this,{align:a,labels:o}=e,i=Qe.color,l=Ds(e.rtl,this.left,this.width),c=Et(o.font),{padding:d}=o,u=c.size,g=u/2;let h;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:p,boxHeight:m,itemHeight:b}=n0(o,u),y=function(S,P,C){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;s.save();const N=Ee(C.lineWidth,1);if(s.fillStyle=Ee(C.fillStyle,i),s.lineCap=Ee(C.lineCap,"butt"),s.lineDashOffset=Ee(C.lineDashOffset,0),s.lineJoin=Ee(C.lineJoin,"miter"),s.lineWidth=N,s.strokeStyle=Ee(C.strokeStyle,i),s.setLineDash(Ee(C.lineDash,[])),o.usePointStyle){const T={radius:m*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:N},Y=l.xPlus(S,p/2),F=P+g;lp(s,T,Y,F,o.pointStyleWidth&&p)}else{const T=P+Math.max((u-m)/2,0),Y=l.leftForLtr(S,p),F=Oa(C.borderRadius);s.beginPath(),Object.values(F).some(E=>E!==0)?sd(s,{x:Y,y:T,w:p,h:m,radius:F}):s.rect(Y,T,p,m),s.fill(),N!==0&&s.stroke()}s.restore()},v=function(S,P,C){li(s,C.text,S,P+b/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},k=this.isHorizontal(),w=this._computeTitleHeight();k?h={x:Ft(a,this.left+d,this.right-r[0]),y:this.top+d+w,line:0}:h={x:this.left+d,y:Ft(a,this.top+w+d,this.bottom-n[0].height),line:0},yp(this.ctx,e.textDirection);const x=b+d;this.legendItems.forEach((S,P)=>{s.strokeStyle=S.fontColor,s.fillStyle=S.fontColor;const C=s.measureText(S.text).width,N=l.textAlign(S.textAlign||(S.textAlign=o.textAlign)),T=p+g+C;let Y=h.x,F=h.y;l.setWidth(this.width),k?P>0&&Y+T+d>this.right&&(F=h.y+=x,h.line++,Y=h.x=Ft(a,this.left+d,this.right-r[h.line])):P>0&&F+x>this.bottom&&(Y=h.x=Y+n[h.line].width+d,h.line++,F=h.y=Ft(a,this.top+w+d,this.bottom-n[h.line].height));const E=l.x(Y);if(y(E,F,S),Y=AS(N,Y+p+g,k?Y+T:this.right,e.rtl),v(l.x(Y),F,S),k)h.x+=T+d;else if(typeof S.text!="string"){const D=c.lineHeight;h.y+=s0(S,D)+d}else h.y+=x}),wp(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Et(n.font),s=an(n.padding);if(!n.display)return;const a=Ds(e.rtl,this.left,this.width),o=this.ctx,i=n.position,l=r.size/2,c=s.top+l;let d,u=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),d=this.top+c,u=Ft(e.align,u,this.right-g);else{const p=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);d=c+Ft(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=Ft(i,u,u+g);o.textAlign=a.textAlign($m(i)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,li(o,n.text,h,d,r)}_computeTitleHeight(){const e=this.options.title,n=Et(e.font),r=an(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,s,a;if(_a(e,this.left,this.right)&&_a(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(s=a[r],_a(e,s.left,s.left+s.width)&&_a(n,s.top,s.top+s.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!tD(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,a=JO(s,r);s&&!a&&We(n.onLeave,[e,s,this],this),this._hoveredItem=r,r&&!a&&We(n.onHover,[e,r,this],this)}else r&&We(n.onClick,[e,r,this],this)}}function qO(t,e,n,r,s){const a=$O(r,t,e,n),o=eD(s,r,e.lineHeight);return{itemWidth:a,itemHeight:o}}function $O(t,e,n,r){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((a,o)=>a.length>o.length?a:o)),e+n.size/2+r.measureText(s).width}function eD(t,e,n){let r=t;return typeof e.text!="string"&&(r=s0(e,n)),r}function s0(t,e){const n=t.text?t.text.length:0;return e*n}function tD(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var nD={id:"legend",_element:r0,start(t,e,n){const r=t.legend=new r0({ctx:t.ctx,options:n,chart:t});fr.configure(t,r,n),fr.addBox(t,r)},stop(t){fr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;fr.configure(t,r,n),r.options=n},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,n){const r=e.datasetIndex,s=n.chart;s.isDatasetVisible(r)?(s.hide(r),e.hidden=!0):(s.show(r),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:n,pointStyle:r,textAlign:s,color:a,useBorderRadius:o,borderRadius:i}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=an(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:a,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:r||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:o&&(i||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 Fa={average(t){if(!t.length)return!1;let e,n,r=new Set,s=0,a=0;for(e=0,n=t.length;e<n;++e){const i=t[e].element;if(i&&i.hasValue()){const l=i.tooltipPosition();r.add(l.x),s+=l.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((i,l)=>i+l)/r.size,y:s/a}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,s=Number.POSITIVE_INFINITY,a,o,i;for(a=0,o=t.length;a<o;++a){const l=t[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=MS(e,c);d<s&&(s=d,i=l)}}if(i){const l=i.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function xn(t,e){return e&&(mt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Vn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
23
|
+
*/class S3{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,s){const a=n.listeners[s],o=n.duration;a.forEach(i=>i({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=qg.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,s)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,i=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),i=!0):(a[o]=a[a.length-1],a.pop());i&&(s.draw(),this._notify(s,r,e,"progress")),a.length||(r.running=!1,this._notify(s,r,e,"complete"),r.initial=!1),n+=a.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,s)=>Math.max(r,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let s=r.length-1;for(;s>=0;--s)r[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Yn=new S3;const xm="transparent",O3={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=sm(t||xm),s=r.valid&&sm(e||xm);return s&&s.valid?s.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class D3{constructor(e,n,r,s){const a=n[r];s=ci([e.to,s,a,e.from]);const o=ci([e.from,a,s]);this._active=!0,this._fn=e.fn||O3[e.type||typeof o],this._easing=Ca[e.easing]||Ca.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const s=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=ci([e.to,n,s,e.from]),this._from=ci([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,s=this._prop,a=this._from,o=this._loop,i=this._to;let l;if(this._active=a!==i&&(o||n<r),!this._active){this._target[s]=i,this._notify(!0);return}if(n<0){this._target[s]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(a,i,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let s=0;s<r.length;s++)r[s][n]()}}class km{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!we(e))return;const n=Object.keys(Ze.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const a=e[s];if(!we(a))return;const o={};for(const i of n)o[i]=a[i];(mt(a.properties)&&a.properties||[s]).forEach(i=>{(i===s||!r.has(i))&&r.set(i,o)})})}_animateOptions(e,n){const r=n.options,s=E3(e,r);if(!s)return[];const a=this._createAnimations(s,r);return r.$shared&&M3(e.options.$animations,r).then(()=>{e.options=r},()=>{}),a}_createAnimations(e,n){const r=this._properties,s=[],a=e.$animations||(e.$animations={}),o=Object.keys(n),i=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(e,n));continue}const d=n[c];let u=a[c];const h=r.get(c);if(u)if(h&&u.active()){u.update(h,d,i);continue}else u.cancel();if(!h||!h.duration){e[c]=d;continue}a[c]=u=new D3(h,e,c,d),s.push(u)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Yn.add(this._chart,r),!0}}function M3(t,e){const n=[],r=Object.keys(e);for(let s=0;s<r.length;s++){const a=t[r[s]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function E3(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function _m(t,e){const n=t&&t.options||{},r=n.reverse,s=n.min===void 0?e:0,a=n.max===void 0?e:0;return{start:r?a:s,end:r?s:a}}function T3(t,e,n){if(n===!1)return!1;const r=_m(t,n),s=_m(e,n);return{top:s.end,right:r.end,bottom:s.start,left:r.start}}function P3(t){let e,n,r,s;return we(t)?(e=t.top,n=t.right,r=t.bottom,s=t.left):e=n=r=s=t,{top:e,right:n,bottom:r,left:s,disabled:t===!1}}function Cm(t,e){const n=[],r=t._getSortedDatasetMetas(e);let s,a;for(s=0,a=r.length;s<a;++s)n.push(r[s].index);return n}function Sm(t,e,n,r={}){const s=t.keys,a=r.mode==="single";let o,i,l,c;if(e===null)return;let d=!1;for(o=0,i=s.length;o<i;++o){if(l=+s[o],l===n){if(d=!0,r.all)continue;break}c=t.values[l],Hn(c)&&(a||e===0||Kg(e)===Kg(c))&&(e+=c)}return!d&&!r.all?0:e}function N3(t,e){const{iScale:n,vScale:r}=e,s=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",o=Object.keys(t),i=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],i[l]={[s]:d,[a]:t[d]};return i}function ud(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function j3(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function I3(t){const{min:e,max:n,minDefined:r,maxDefined:s}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function A3(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Om(t,e,n,r){for(const s of e.getMatchingVisibleMetas(r).reverse()){const a=t[s.index];if(n&&a>0||!n&&a<0)return s.index}return null}function Dm(t,e){const{chart:n,_cachedMeta:r}=t,s=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:i}=r,l=a.axis,c=o.axis,d=j3(a,o,r),u=e.length;let h;for(let g=0;g<u;++g){const m=e[g],{[l]:p,[c]:b}=m,y=m._stacks||(m._stacks={});h=y[c]=A3(s,d,p),h[i]=b,h._top=Om(h,o,!0,r.type),h._bottom=Om(h,o,!1,r.type);const v=h._visualValues||(h._visualValues={});v[i]=b}}function fd(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function R3(t,e){return Ss(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function L3(t,e,n){return Ss(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Da(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const s of e){const a=s._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const hd=t=>t==="reset"||t==="none",Mm=(t,e)=>e?t:Object.assign({},t),F3=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Cm(n,!0),values:null};class Ma{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,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=ud(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&&Da(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),s=(u,h,g,m)=>u==="x"?h:u==="r"?m:g,a=n.xAxisID=Ee(r.xAxisID,fd(e,"x")),o=n.yAxisID=Ee(r.yAxisID,fd(e,"y")),i=n.rAxisID=Ee(r.rAxisID,fd(e,"r")),l=n.indexAxis,c=n.iAxisID=s(l,a,o,i),d=n.vAxisID=s(l,o,a,i);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(i),n.iScale=this.getScaleForId(c),n.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 n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Jg(this._data,this),e._stacked&&Da(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(we(n)){const s=this._cachedMeta;this._data=N3(n,s)}else if(r!==n){if(r){Jg(r,this);const s=this._cachedMeta;Da(s),s._parsed=[]}n&&Object.isExtensible(n)&&R_(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let s=!1;this._dataCheck();const a=n._stacked;n._stacked=ud(n.vScale,n),n.stack!==r.stack&&(s=!0,Da(n),n.stack=r.stack),this._resyncElements(e),(s||a!==n._stacked)&&(Dm(this,n._parsed),n._stacked=ud(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:s}=this,{iScale:a,_stacked:o}=r,i=a.axis;let l=e===0&&n===s.length?!0:r._sorted,c=e>0&&r._parsed[e-1],d,u,h;if(this._parsing===!1)r._parsed=s,r._sorted=!0,h=s;else{mt(s[e])?h=this.parseArrayData(r,s,e,n):we(s[e])?h=this.parseObjectData(r,s,e,n):h=this.parsePrimitiveData(r,s,e,n);const g=()=>u[i]===null||c&&u[i]<c[i];for(d=0;d<n;++d)r._parsed[d+e]=u=h[d],l&&(g()&&(l=!1),c=u);r._sorted=l}o&&Dm(this,h)}parsePrimitiveData(e,n,r,s){const{iScale:a,vScale:o}=e,i=a.axis,l=o.axis,c=a.getLabels(),d=a===o,u=new Array(s);let h,g,m;for(h=0,g=s;h<g;++h)m=h+r,u[h]={[i]:d||a.parse(c[m],m),[l]:o.parse(n[m],m)};return u}parseArrayData(e,n,r,s){const{xScale:a,yScale:o}=e,i=new Array(s);let l,c,d,u;for(l=0,c=s;l<c;++l)d=l+r,u=n[d],i[l]={x:a.parse(u[0],d),y:o.parse(u[1],d)};return i}parseObjectData(e,n,r,s){const{xScale:a,yScale:o}=e,{xAxisKey:i="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let d,u,h,g;for(d=0,u=s;d<u;++d)h=d+r,g=n[h],c[d]={x:a.parse(ka(g,i),h),y:o.parse(ka(g,l),h)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const s=this.chart,a=this._cachedMeta,o=n[e.axis],i={keys:Cm(s,!0),values:n._stacks[e.axis]._visualValues};return Sm(i,o,a.index,{mode:r})}updateRangeFromParsed(e,n,r,s){const a=r[n.axis];let o=a===null?NaN:a;const i=s&&r._stacks[n.axis];s&&i&&(s.values=i,o=Sm(s,a,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,s=r._parsed,a=r._sorted&&e===r.iScale,o=s.length,i=this._getOtherScale(e),l=F3(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=I3(i);let h,g;function m(){g=s[h];const p=g[i.axis];return!Hn(g[e.axis])||d>p||u<p}for(h=0;h<o&&!(!m()&&(this.updateRangeFromParsed(c,e,g,l),a));++h);if(a){for(h=o-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(c,e,g,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let s,a,o;for(s=0,a=n.length;s<a;++s)o=n[s][e.axis],Hn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,s=n.vScale,a=this.getParsed(e);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:s?""+s.getLabelForValue(a[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=P3(Ee(this.options.clip,T3(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,s=r.data||[],a=n.chartArea,o=[],i=this._drawStart||0,l=this._drawCount||s.length-i,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,a,i,l),d=i;d<i+l;++d){const u=s[d];u.hidden||(u.active&&c?o.push(u):u.draw(e,a))}for(d=0;d<o.length;++d)o[d].draw(e,a)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const s=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];a=o.$context||(o.$context=L3(this.getContext(),e,o)),a.parsed=this.getParsed(e),a.raw=s.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=R3(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const s=n==="active",a=this._cachedDataOpts,o=e+"-"+n,i=a[o],l=this.enableOptionSharing&&ri(r);if(i)return Mm(i,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=s?[`${e}Hover`,"hover",e,""]:[e,""],h=c.getOptionScopes(this.getDataset(),d),g=Object.keys(Ze.elements[e]),m=()=>this.getContext(r,s,n),p=c.resolveNamedOptions(h,g,m,u);return p.$shared&&(p.$shared=l,a[o]=Object.freeze(Mm(p,l))),p}_resolveAnimations(e,n,r){const s=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,i=a[o];if(i)return i;let l;if(s.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(h,this.getContext(e,r,n))}const c=new km(s,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||hd(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),s=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==s;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(e,n,r,s){hd(s)?Object.assign(e,r):this._resolveAnimations(n,s).update(e,r)}updateSharedOptions(e,n,r){e&&!hd(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,s){e.active=s;const a=this.getStyle(n,s);this._resolveAnimations(n,r,s).update(e,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"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 n=this._data,r=this._cachedMeta.data;for(const[i,l,c]of this._syncList)this[i](l,c);this._syncList=[];const s=r.length,a=n.length,o=Math.min(a,s);o&&this.parse(0,o),a>s?this._insertElements(s,a-s,e):a<s&&this._removeElements(a,s-a)}_insertElements(e,n,r=!0){const s=this._cachedMeta,a=s.data,o=e+n;let i;const l=c=>{for(c.length+=n,i=c.length-1;i>=o;i--)c[i]=c[i-n]};for(l(a),i=e;i<o;++i)a[i]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(e,n),r&&this.updateElements(a,e,n,"reset")}updateElements(e,n,r,s){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const s=r._parsed.splice(e,n);r._stacked&&Da(r,s)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,s]=e;this[n](r,s)}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,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}$(Ma,"defaults",{}),$(Ma,"datasetElementType",null),$(Ma,"dataElementType",null);function B3(t,e,n){let r=1,s=1,a=0,o=0;if(e<nt){const i=t,l=i+e,c=Math.cos(i),d=Math.sin(i),u=Math.cos(l),h=Math.sin(l),g=(k,w,x)=>oi(k,i,l,!0)?1:Math.max(w,w*n,x,x*n),m=(k,w,x)=>oi(k,i,l,!0)?-1:Math.min(w,w*n,x,x*n),p=g(0,c,u),b=g(it,d,h),y=m(ze,c,u),v=m(ze+it,d,h);r=(p-y)/2,s=(b-v)/2,a=-(p+y)/2,o=-(b+v)/2}return{ratioX:r,ratioY:s,offsetX:a,offsetY:o}}class Ea extends Ma{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=r;else{let a=l=>+r[l];if(we(r[e])){const{key:l="value"}=this._parsing;a=c=>+ka(r[c],l)}let o,i;for(o=e,i=e+n;o<i;++o)s._parsed[o]=a(o)}}_getRotation(){return Ar(this.options.rotation-90)}_getCircumference(){return Ar(this.options.circumference)}_getRotationExtents(){let e=nt,n=-nt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const s=this.chart.getDatasetMeta(r).controller,a=s._getRotation(),o=s._getCircumference();e=Math.min(e,a),n=Math.max(n,a+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,s=this._cachedMeta,a=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,i=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(k_(this.options.cutout,i),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:h,ratioY:g,offsetX:m,offsetY:p}=B3(u,d,l),b=(r.width-o)/h,y=(r.height-o)/g,v=Math.max(Math.min(b,y)/2,0),k=Yg(this.options.radius,v),w=Math.max(k*l,0),x=(k-w)/this._getVisibleDatasetWeightTotal();this.offsetX=m*k,this.offsetY=p*k,s.total=this.calculateTotal(),this.outerRadius=k-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*c,0),this.updateElements(a,0,a.length,e)}_circumference(e,n){const r=this.options,s=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*a/nt)}updateElements(e,n,r,s){const a=s==="reset",o=this.chart,i=o.chartArea,c=o.options.animation,d=(i.left+i.right)/2,u=(i.top+i.bottom)/2,h=a&&c.animateScale,g=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(n,s);let y=this._getRotation(),v;for(v=0;v<n;++v)y+=this._circumference(v,a);for(v=n;v<n+r;++v){const k=this._circumference(v,a),w=e[v],x={x:d+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+k,circumference:k,outerRadius:m,innerRadius:g};b&&(x.options=p||this.resolveDataElementOptions(v,w.active?"active":s)),y+=k,this.updateElement(w,v,x,s)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,s;for(s=0;s<n.length;s++){const a=e._parsed[s];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?nt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,s=r.data.labels||[],a=U_(n._parsed[e],r.options.locale);return{label:s[e]||"",value:a}}getMaxBorderWidth(e){let n=0;const r=this.chart;let s,a,o,i,l;if(!e){for(s=0,a=r.data.datasets.length;s<a;++s)if(r.isDatasetVisible(s)){o=r.getDatasetMeta(s),e=o.data,i=o.controller;break}}if(!e)return 0;for(s=0,a=e.length;s<a;++s)l=i.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,s=e.length;r<s;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(Ee(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}$(Ea,"id","doughnut"),$(Ea,"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"}),$(Ea,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),$(Ea,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:r,textAlign:s,color:a,useBorderRadius:o,borderRadius:i}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const u=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:u.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(c),lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:u.borderWidth,strokeStyle:u.borderColor,textAlign:s,pointStyle:r,borderRadius:o&&(i||u.borderRadius),index:c}}):[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function Wr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class gd{constructor(e){$(this,"options");this.options=e||{}}static override(e){Object.assign(gd.prototype,e)}init(){}formats(){return Wr()}parse(){return Wr()}format(){return Wr()}add(){return Wr()}diff(){return Wr()}startOf(){return Wr()}endOf(){return Wr()}}var W3={_date:gd};function z3(t,e,n,r){const{controller:s,data:a,_sorted:o}=t,i=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(i&&e===i.axis&&e!=="r"&&o&&a.length){const c=i._reversePixels?I_:qc;if(r){if(s._sharedOptions){const d=a[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const h=c(a,e,n-u),g=c(a,e,n+u);return{lo:h.lo,hi:g.hi}}}}else{const d=c(a,e,n);if(l){const{vScale:u}=s._cachedMeta,{_parsed:h}=t,g=h.slice(0,d.lo+1).reverse().findIndex(p=>!wt(p[u.axis]));d.lo-=Math.max(0,g);const m=h.slice(d.hi).findIndex(p=>!wt(p[u.axis]));d.hi+=Math.max(0,m)}return d}}return{lo:0,hi:a.length-1}}function hi(t,e,n,r,s){const a=t.getSortedVisibleDatasetMetas(),o=n[e];for(let i=0,l=a.length;i<l;++i){const{index:c,data:d}=a[i],{lo:u,hi:h}=z3(a[i],e,o,s);for(let g=u;g<=h;++g){const m=d[g];m.skip||r(m,c,g)}}}function H3(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,s){const a=e?Math.abs(r.x-s.x):0,o=n?Math.abs(r.y-s.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function md(t,e,n,r,s){const a=[];return!s&&!t.isPointInArea(e)||hi(t,n,e,function(i,l,c){!s&&!dm(i,t.chartArea,0)||i.inRange(e.x,e.y,r)&&a.push({element:i,datasetIndex:l,index:c})},!0),a}function Y3(t,e,n,r){let s=[];function a(o,i,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:u}=Zg(o,{x:e.x,y:e.y});oi(u,c,d)&&s.push({element:o,datasetIndex:i,index:l})}return hi(t,n,e,a),s}function V3(t,e,n,r,s,a){let o=[];const i=H3(n);let l=Number.POSITIVE_INFINITY;function c(d,u,h){const g=d.inRange(e.x,e.y,s);if(r&&!g)return;const m=d.getCenterPoint(s);if(!(!!a||t.isPointInArea(m))&&!g)return;const b=i(e,m);b<l?(o=[{element:d,datasetIndex:u,index:h}],l=b):b===l&&o.push({element:d,datasetIndex:u,index:h})}return hi(t,n,e,c),o}function pd(t,e,n,r,s,a){return!a&&!t.isPointInArea(e)?[]:n==="r"&&!r?Y3(t,e,n,s):V3(t,e,n,r,s,a)}function Em(t,e,n,r,s){const a=[],o=n==="x"?"inXRange":"inYRange";let i=!1;return hi(t,n,e,(l,c,d)=>{l[o]&&l[o](e[n],s)&&(a.push({element:l,datasetIndex:c,index:d}),i=i||l.inRange(e.x,e.y,s))}),r&&!i?[]:a}var U3={modes:{index(t,e,n,r){const s=Br(e,t),a=n.axis||"x",o=n.includeInvisible||!1,i=n.intersect?md(t,s,a,r,o):pd(t,s,a,!1,r,o),l=[];return i.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=i[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;let i=n.intersect?md(t,s,a,r,o):pd(t,s,a,!1,r,o);if(i.length>0){const l=i[0].datasetIndex,c=t.getDatasetMeta(l).data;i=[];for(let d=0;d<c.length;++d)i.push({element:c[d],datasetIndex:l,index:d})}return i},point(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return md(t,s,a,r,o)},nearest(t,e,n,r){const s=Br(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return pd(t,s,a,n.intersect,r,o)},x(t,e,n,r){const s=Br(e,t);return Em(t,s,"x",n.intersect,r)},y(t,e,n,r){const s=Br(e,t);return Em(t,s,"y",n.intersect,r)}}};const Tm=["left","top","right","bottom"];function Ta(t,e){return t.filter(n=>n.pos===e)}function Pm(t,e){return t.filter(n=>Tm.indexOf(n.pos)===-1&&n.box.axis===e)}function Pa(t,e){return t.sort((n,r)=>{const s=e?r:n,a=e?n:r;return s.weight===a.weight?s.index-a.index:s.weight-a.weight})}function X3(t){const e=[];let n,r,s,a,o,i;for(n=0,r=(t||[]).length;n<r;++n)s=t[n],{position:a,options:{stack:o,stackWeight:i=1}}=s,e.push({index:n,box:s,pos:a,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&a+o,stackWeight:i});return e}function G3(t){const e={};for(const n of t){const{stack:r,pos:s,stackWeight:a}=n;if(!r||!Tm.includes(s))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return e}function K3(t,e){const n=G3(t),{vBoxMaxWidth:r,hBoxMaxHeight:s}=e;let a,o,i;for(a=0,o=t.length;a<o;++a){i=t[a];const{fullSize:l}=i.box,c=n[i.stack],d=c&&i.stackWeight/c.weight;i.horizontal?(i.width=d?d*r:l&&e.availableWidth,i.height=s):(i.width=r,i.height=d?d*s:l&&e.availableHeight)}return n}function Z3(t){const e=X3(t),n=Pa(e.filter(c=>c.box.fullSize),!0),r=Pa(Ta(e,"left"),!0),s=Pa(Ta(e,"right")),a=Pa(Ta(e,"top"),!0),o=Pa(Ta(e,"bottom")),i=Pm(e,"x"),l=Pm(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:s.concat(l).concat(o).concat(i),chartArea:Ta(e,"chartArea"),vertical:r.concat(s).concat(l),horizontal:a.concat(o).concat(i)}}function Nm(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function jm(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 Q3(t,e,n,r){const{pos:s,box:a}=n,o=t.maxPadding;if(!we(s)){n.size&&(t[s]-=n.size);const u=r[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?a.height:a.width),n.size=u.size/u.count,t[s]+=n.size}a.getPadding&&jm(o,a.getPadding());const i=Math.max(0,e.outerWidth-Nm(o,t,"left","right")),l=Math.max(0,e.outerHeight-Nm(o,t,"top","bottom")),c=i!==t.w,d=l!==t.h;return t.w=i,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function J3(t){const e=t.maxPadding;function n(r){const s=Math.max(e[r]-t[r],0);return t[r]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function q3(t,e){const n=e.maxPadding;function r(s){const a={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{a[o]=Math.max(e[o],n[o])}),a}return r(t?["left","right"]:["top","bottom"])}function Na(t,e,n,r){const s=[];let a,o,i,l,c,d;for(a=0,o=t.length,c=0;a<o;++a){i=t[a],l=i.box,l.update(i.width||e.w,i.height||e.h,q3(i.horizontal,e));const{same:u,other:h}=Q3(e,n,i,r);c|=u&&s.length,d=d||h,l.fullSize||s.push(i)}return c&&Na(s,e,n,r)||d}function gi(t,e,n,r,s){t.top=n,t.left=e,t.right=e+r,t.bottom=n+s,t.width=r,t.height=s}function Im(t,e,n,r){const s=n.padding;let{x:a,y:o}=e;for(const i of t){const l=i.box,c=r[i.stack]||{placed:0,weight:1},d=i.stackWeight/c.weight||1;if(i.horizontal){const u=e.w*d,h=c.size||l.height;ri(c.start)&&(o=c.start),l.fullSize?gi(l,s.left,o,n.outerWidth-s.right-s.left,h):gi(l,e.left+c.placed,o,u,h),c.start=o,c.placed+=u,o=l.bottom}else{const u=e.h*d,h=c.size||l.width;ri(c.start)&&(a=c.start),l.fullSize?gi(l,a,s.top,h,n.outerHeight-s.bottom-s.top):gi(l,a,e.top+c.placed,h,u),c.start=a,c.placed+=u,a=l.right}}e.x=a,e.y=o}var fr={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(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const s=an(t.options.layout.padding),a=Math.max(e-s.width,0),o=Math.max(n-s.height,0),i=Z3(t.boxes),l=i.vertical,c=i.horizontal;Te(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const d=l.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/d,hBoxMaxHeight:o/2}),h=Object.assign({},s);jm(h,an(r));const g=Object.assign({maxPadding:h,w:a,h:o,x:s.left,y:s.top},s),m=K3(l.concat(c),u);Na(i.fullSize,g,u,m),Na(l,g,u,m),Na(c,g,u,m)&&Na(l,g,u,m),J3(g),Im(i.leftAndTop,g,u,m),g.x+=g.w,g.y+=g.h,Im(i.rightAndBottom,g,u,m),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},Te(i.chartArea,p=>{const b=p.box;Object.assign(b,t.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class Am{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,s){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):r)}}isAttached(e){return!0}updateConfig(e){}}class $3 extends Am{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const mi="$chartjs",eC={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Rm=t=>t===null||t==="";function tC(t,e){const n=t.style,r=t.getAttribute("height"),s=t.getAttribute("width");if(t[mi]={initial:{height:r,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Rm(s)){const a=ym(t,"width");a!==void 0&&(t.width=a)}if(Rm(r))if(t.style.height==="")t.height=t.width/(e||2);else{const a=ym(t,"height");a!==void 0&&(t.height=a)}return t}const Lm=v3?{passive:!0}:!1;function nC(t,e,n){t&&t.addEventListener(e,n,Lm)}function rC(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Lm)}function sC(t,e){const n=eC[t.type]||t.type,{x:r,y:s}=Br(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:s!==void 0?s:null}}function pi(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function aC(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||pi(i.addedNodes,r),o=o&&!pi(i.removedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function oC(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||pi(i.removedNodes,r),o=o&&!pi(i.addedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const ja=new Map;let Fm=0;function Bm(){const t=window.devicePixelRatio;t!==Fm&&(Fm=t,ja.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function iC(t,e){ja.size||window.addEventListener("resize",Bm),ja.set(t,e)}function lC(t){ja.delete(t),ja.size||window.removeEventListener("resize",Bm)}function cC(t,e,n){const r=t.canvas,s=r&&dd(r);if(!s)return;const a=$g((i,l)=>{const c=s.clientWidth;n(i,l),c<s.clientWidth&&n()},window),o=new ResizeObserver(i=>{const l=i[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||a(c,d)});return o.observe(s),iC(t,a),o}function bd(t,e,n){n&&n.disconnect(),e==="resize"&&lC(t)}function dC(t,e,n){const r=t.canvas,s=$g(a=>{t.ctx!==null&&n(sC(a,t))},t);return nC(r,e,s),s}class uC extends Am{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(tC(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[mi])return!1;const r=n[mi].initial;["height","width"].forEach(a=>{const o=r[a];wt(o)?n.removeAttribute(a):n.setAttribute(a,o)});const s=r.style||{};return Object.keys(s).forEach(a=>{n.style[a]=s[a]}),n.width=n.width,delete n[mi],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:aC,detach:oC,resize:cC}[n]||dC;s[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),s=r[n];if(!s)return;({attach:bd,detach:bd,resize:bd}[n]||rC)(e,n,s),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,s){return w3(e,n,r,s)}isAttached(e){const n=e&&dd(e);return!!(n&&n.isConnected)}}function fC(t){return!cd()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?$3:uC}let Ia=(Kl=class{constructor(){$(this,"x");$(this,"y");$(this,"active",!1);$(this,"options");$(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return ai(this.x)&&ai(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const s={};return e.forEach(a=>{s[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),s}},$(Kl,"defaults",{}),$(Kl,"defaultRoutes"),Kl);function hC(t,e){const n=t.options.ticks,r=gC(t),s=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?pC(e):[],o=a.length,i=a[0],l=a[o-1],c=[];if(o>s)return bC(e,c,a,o/s),c;const d=mC(a,e,s);if(o>0){let u,h;const g=o>1?Math.round((l-i)/(o-1)):null;for(bi(e,c,d,wt(g)?0:i-g,i),u=0,h=o-1;u<h;u++)bi(e,c,d,a[u],a[u+1]);return bi(e,c,d,l,wt(g)?e.length:l+g),c}return bi(e,c,d),c}function gC(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(r,s))}function mC(t,e,n){const r=yC(t),s=e.length/n;if(!r)return Math.max(s,1);const a=E_(r);for(let o=0,i=a.length-1;o<i;o++){const l=a[o];if(l>s)return l}return Math.max(s,1)}function pC(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function bC(t,e,n,r){let s=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),s++,a=n[s*r])}function bi(t,e,n,r,s){const a=Ee(r,0),o=Math.min(Ee(s,t.length),t.length);let i=0,l,c,d;for(n=Math.ceil(n),s&&(l=s-r,n=l/Math.floor(l/n)),d=a;d<0;)i++,d=Math.round(a+i*n);for(c=Math.max(a,0);c<o;c++)c===d&&(e.push(t[c]),i++,d=Math.round(a+i*n))}function yC(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const wC=t=>t==="left"?"right":t==="right"?"left":t,Wm=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,zm=(t,e)=>Math.min(e||t,t);function Hm(t,e){const n=[],r=t.length/e,s=t.length;let a=0;for(;a<s;a+=r)n.push(t[Math.floor(a)]);return n}function vC(t,e,n){const r=t.ticks.length,s=Math.min(e,r-1),a=t._startPixel,o=t._endPixel,i=1e-6;let l=t.getPixelForTick(s),c;if(!(n&&(r===1?c=Math.max(l-a,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(s-1))/2,l+=s<e?c:-c,l<a-i||l>o+i)))return l}function xC(t,e){Te(t,n=>{const r=n.gc,s=r.length/2;let a;if(s>e){for(a=0;a<s;++a)delete n.data[r[a]];r.splice(0,s)}})}function Aa(t){return t.drawTicks?t.tickLength:0}function Ym(t,e){if(!t.display)return 0;const n=Et(t.font,e),r=an(t.padding);return(mt(t.text)?t.text.length:1)*n.lineHeight+r.height}function kC(t,e){return Ss(t,{scale:e,type:"scale"})}function _C(t,e,n){return Ss(t,{tick:n,index:e,type:"tick"})}function CC(t,e,n){let r=em(t);return(n&&e!=="right"||!n&&e==="right")&&(r=wC(r)),r}function SC(t,e,n,r){const{top:s,left:a,bottom:o,right:i,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,h,g,m;const p=o-s,b=i-a;if(t.isHorizontal()){if(g=Ft(r,a,i),we(n)){const y=Object.keys(n)[0],v=n[y];m=d[y].getPixelForValue(v)+p-e}else n==="center"?m=(c.bottom+c.top)/2+p-e:m=Wm(t,n,e);h=i-a}else{if(we(n)){const y=Object.keys(n)[0],v=n[y];g=d[y].getPixelForValue(v)-b+e}else n==="center"?g=(c.left+c.right)/2-b+e:g=Wm(t,n,e);m=Ft(r,o,s),u=n==="left"?-it:it}return{titleX:g,titleY:m,maxWidth:h,rotation:u}}class yi extends Ia{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,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:s}=this;return e=yn(e,Number.POSITIVE_INFINITY),n=yn(n,Number.NEGATIVE_INFINITY),r=yn(r,Number.POSITIVE_INFINITY),s=yn(s,Number.NEGATIVE_INFINITY),{min:yn(e,r),max:yn(n,s),minDefined:Hn(e),maxDefined:Hn(n)}}getMinMax(e){let{min:n,max:r,minDefined:s,maxDefined:a}=this.getUserBounds(),o;if(s&&a)return{min:n,max:r};const i=this.getMatchingVisibleMetas();for(let l=0,c=i.length;l<c;++l)o=i[l].controller.getMinMax(this,e),s||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=s&&n>r?n:r,{min:yn(n,yn(r,n)),max:yn(r,yn(n,r))}}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(){We(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:s,grace:a,ticks:o}=this.options,i=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=s3(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=i<this.ticks.length;this._convertTicksToLabels(l?Hm(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=hC(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,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){We(this.options.afterUpdate,[this])}beforeSetDimensions(){We(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(){We(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),We(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){We(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,s,a;for(r=0,s=e.length;r<s;r++)a=e[r],a.label=We(n.callback,[a.value,r,e],this)}afterTickToLabelConversion(){We(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){We(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=zm(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,a=n.maxRotation;let o=s,i,l,c;if(!this._isVisible()||!n.display||s>=a||r<=1||!this.isHorizontal()){this.labelRotation=s;return}const d=this._getLabelSizes(),u=d.widest.width,h=d.highest.height,g=qt(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/r:g/(r-1),u+6>i&&(i=g/(r-(e.offset?.5:1)),l=this.maxHeight-Aa(e.grid)-n.padding-Ym(e.title,this.chart.options.font),c=Math.sqrt(u*u+h*h),o=P_(Math.min(Math.asin(qt((d.highest.height+6)/i,-1,1)),Math.asin(qt(l/c,-1,1))-Math.asin(qt(h/c,-1,1)))),o=Math.max(s,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){We(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){We(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:s,grid:a}}=this,o=this._isVisible(),i=this.isHorizontal();if(o){const l=Ym(s,n.options.font);if(i?(e.width=this.maxWidth,e.height=Aa(a)+l):(e.height=this.maxHeight,e.width=Aa(a)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:h}=this._getLabelSizes(),g=r.padding*2,m=Ar(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(i){const y=r.mirror?0:b*u.width+p*h.height;e.height=Math.min(this.maxHeight,e.height+y+g)}else{const y=r.mirror?0:p*u.width+b*h.height;e.width=Math.min(this.maxWidth,e.width+y+g)}this._calculatePadding(c,d,b,p)}}this._handleMargins(),i?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,s){const{ticks:{align:a,padding:o},position:i}=this.options,l=this.labelRotation!==0,c=i!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,g=0;l?c?(h=s*e.width,g=r*n.height):(h=r*e.height,g=s*n.width):a==="start"?g=n.width:a==="end"?h=e.width:a!=="inner"&&(h=e.width/2,g=n.width/2),this.paddingLeft=Math.max((h-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((g-u+o)*this.width/(this.width-u),0)}else{let d=n.height/2,u=e.height/2;a==="start"?(d=0,u=e.height):a==="end"&&(d=n.height,u=0),this.paddingTop=d+o,this.paddingBottom=u+o}}_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(){We(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)wt(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Hm(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:s,_longestTextCache:a}=this,o=[],i=[],l=Math.floor(n/zm(n,r));let c=0,d=0,u,h,g,m,p,b,y,v,k,w,x;for(u=0;u<n;u+=l){if(m=e[u].label,p=this._resolveTickFontOptions(u),s.font=b=p.string,y=a[b]=a[b]||{data:{},gc:[]},v=p.lineHeight,k=w=0,!wt(m)&&!mt(m))k=om(s,y.data,y.gc,k,m),w=v;else if(mt(m))for(h=0,g=m.length;h<g;++h)x=m[h],!wt(x)&&!mt(x)&&(k=om(s,y.data,y.gc,k,x),w+=v);o.push(k),i.push(w),c=Math.max(k,c),d=Math.max(w,d)}xC(a,n);const C=o.indexOf(c),N=i.indexOf(d),M=P=>({width:o[P]||0,height:i[P]||0});return{first:M(0),last:M(n-1),widest:M(C),highest:M(N),widths:o,heights:i}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return j_(this._alignToPixels?Lr(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=_C(this.getContext(),e,r))}return this.$context||(this.$context=kC(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Ar(this.labelRotation),r=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=e.autoSkipPadding||0,i=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>i*s?i/r:l/s:l*s<i*r?l/r:i/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,s=this.options,{grid:a,position:o,border:i}=s,l=a.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),h=Aa(a),g=[],m=i.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,y=function(E){return Lr(r,E,p)};let v,k,w,x,C,N,M,P,S,B,A,T;if(o==="top")v=y(this.bottom),N=this.bottom-h,P=v-b,B=y(e.top)+b,T=e.bottom;else if(o==="bottom")v=y(this.top),B=e.top,T=y(e.bottom)-b,N=v+b,P=this.top+h;else if(o==="left")v=y(this.right),C=this.right-h,M=v-b,S=y(e.left)+b,A=e.right;else if(o==="right")v=y(this.left),S=e.left,A=y(e.right)-b,C=v+b,M=this.left+h;else if(n==="x"){if(o==="center")v=y((e.top+e.bottom)/2+.5);else if(we(o)){const E=Object.keys(o)[0],Y=o[E];v=y(this.chart.scales[E].getPixelForValue(Y))}B=e.top,T=e.bottom,N=v+b,P=N+h}else if(n==="y"){if(o==="center")v=y((e.left+e.right)/2);else if(we(o)){const E=Object.keys(o)[0],Y=o[E];v=y(this.chart.scales[E].getPixelForValue(Y))}C=v-b,M=C-h,S=e.left,A=e.right}const D=Ee(s.ticks.maxTicksLimit,u),j=Math.max(1,Math.ceil(u/D));for(k=0;k<u;k+=j){const E=this.getContext(k),Y=a.setContext(E),X=i.setContext(E),ee=Y.lineWidth,I=Y.color,V=X.dash||[],F=X.dashOffset,L=Y.tickWidth,R=Y.tickColor,O=Y.tickBorderDash||[],z=Y.tickBorderDashOffset;w=vC(this,k,l),w!==void 0&&(x=Lr(r,w,ee),c?C=M=S=A=x:N=P=B=T=x,g.push({tx1:C,ty1:N,tx2:M,ty2:P,x1:S,y1:B,x2:A,y2:T,width:ee,color:I,borderDash:V,borderDashOffset:F,tickWidth:L,tickColor:R,tickBorderDash:O,tickBorderDashOffset:z}))}return this._ticksLength=u,this._borderValue=v,g}_computeLabelItems(e){const n=this.axis,r=this.options,{position:s,ticks:a}=r,o=this.isHorizontal(),i=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=a,h=Aa(r.grid),g=h+d,m=u?-d:g,p=-Ar(this.labelRotation),b=[];let y,v,k,w,x,C,N,M,P,S,B,A,T="middle";if(s==="top")C=this.bottom-m,N=this._getXAxisLabelAlignment();else if(s==="bottom")C=this.top+m,N=this._getXAxisLabelAlignment();else if(s==="left"){const j=this._getYAxisLabelAlignment(h);N=j.textAlign,x=j.x}else if(s==="right"){const j=this._getYAxisLabelAlignment(h);N=j.textAlign,x=j.x}else if(n==="x"){if(s==="center")C=(e.top+e.bottom)/2+g;else if(we(s)){const j=Object.keys(s)[0],E=s[j];C=this.chart.scales[j].getPixelForValue(E)+g}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")x=(e.left+e.right)/2-g;else if(we(s)){const j=Object.keys(s)[0],E=s[j];x=this.chart.scales[j].getPixelForValue(E)}N=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?T="top":l==="end"&&(T="bottom"));const D=this._getLabelSizes();for(y=0,v=i.length;y<v;++y){k=i[y],w=k.label;const j=a.setContext(this.getContext(y));M=this.getPixelForTick(y)+a.labelOffset,P=this._resolveTickFontOptions(y),S=P.lineHeight,B=mt(w)?w.length:1;const E=B/2,Y=j.color,X=j.textStrokeColor,ee=j.textStrokeWidth;let I=N;o?(x=M,N==="inner"&&(y===v-1?I=this.options.reverse?"left":"right":y===0?I=this.options.reverse?"right":"left":I="center"),s==="top"?c==="near"||p!==0?A=-B*S+S/2:c==="center"?A=-D.highest.height/2-E*S+S:A=-D.highest.height+S/2:c==="near"||p!==0?A=S/2:c==="center"?A=D.highest.height/2-E*S:A=D.highest.height-B*S,u&&(A*=-1),p!==0&&!j.showLabelBackdrop&&(x+=S/2*Math.sin(p))):(C=M,A=(1-B)*S/2);let V;if(j.showLabelBackdrop){const F=an(j.backdropPadding),L=D.heights[y],R=D.widths[y];let O=A-F.top,z=0-F.left;switch(T){case"middle":O-=L/2;break;case"bottom":O-=L;break}switch(N){case"center":z-=R/2;break;case"right":z-=R;break;case"inner":y===v-1?z-=R:y>0&&(z-=R/2);break}V={left:z,top:O,width:R+F.width,height:L+F.height,color:j.backdropColor}}b.push({label:w,font:P,textOffset:A,options:{rotation:p,color:Y,strokeColor:X,strokeWidth:ee,textAlign:I,textBaseline:T,translation:[x,C],backdrop:V}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Ar(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:s,padding:a}}=this.options,o=this._getLabelSizes(),i=e+a,l=o.widest.width;let c,d;return n==="left"?s?(d=this.right+a,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-i,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d=this.left)):n==="right"?s?(d=this.left+a,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+i,r==="near"?c="left":r==="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,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:s,width:a,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,s,a,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(a=>a.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,o;const i=(l,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=s.length;a<o;++a){const l=s[a];n.drawOnChartArea&&i({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&i({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:n,options:{border:r,grid:s}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const i=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,h;this.isHorizontal()?(c=Lr(e,this.left,o)-o/2,d=Lr(e,this.right,i)+i/2,u=h=l):(u=Lr(e,this.top,o)-o/2,h=Lr(e,this.bottom,i)+i/2,c=d=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(c,u),n.lineTo(d,h),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,s=this._computeLabelArea();s&&nd(r,s);const a=this.getLabelItems(e);for(const o of a){const i=o.options,l=o.font,c=o.label,d=o.textOffset;li(r,c,0,d,l,i)}s&&rd(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:s}}=this;if(!r.display)return;const a=Et(r.font),o=an(r.padding),i=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||we(n)?(l+=o.bottom,mt(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:h}=SC(this,l,n,i);li(e,r.text,0,0,a,{color:r.color,maxWidth:u,rotation:h,textAlign:CC(i,n,s),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,n=e.ticks&&e.ticks.z||0,r=Ee(e.grid&&e.grid.z,-1),s=Ee(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==yi.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",s=[];let a,o;for(a=0,o=n.length;a<o;++a){const i=n[a];i[r]===this.id&&(!e||i.type===e)&&s.push(i)}return s}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Et(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class wi{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;MC(n)&&(r=this.register(n));const s=this.items,a=e.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in s||(s[a]=e,OC(e,o,r),this.override&&Ze.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,s=this.scope;r in n&&delete n[r],s&&r in Ze[s]&&(delete Ze[s][r],this.override&&delete Rr[r])}}function OC(t,e,n){const r=va(Object.create(null),[n?Ze.get(n):{},Ze.get(e),t.defaults]);Ze.set(e,r),t.defaultRoutes&&DC(e,t.defaultRoutes),t.descriptors&&Ze.describe(e,t.descriptors)}function DC(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),s=r.pop(),a=[t].concat(r).join("."),o=e[n].split("."),i=o.pop(),l=o.join(".");Ze.route(a,s,l,i)})}function MC(t){return"id"in t&&"defaults"in t}class EC{constructor(){this.controllers=new wi(Ma,"datasets",!0),this.elements=new wi(Ia,"elements"),this.plugins=new wi(Object,"plugins"),this.scales=new wi(yi,"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,n,r){[...n].forEach(s=>{const a=r||this._getRegistryForType(s);r||a.isForType(s)||a===this.plugins&&s.id?this._exec(e,a,s):Te(s,o=>{const i=r||this._getRegistryForType(o);this._exec(e,i,o)})})}_exec(e,n,r){const s=Qc(e);We(r["before"+s],[],r),n[e](r),We(r["after"+s],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return s}}var vn=new EC;class TC{constructor(){this._init=void 0}notify(e,n,r,s){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const a=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(a,e,n,r);return n==="afterDestroy"&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),o}_notify(e,n,r,s){s=s||{};for(const a of e){const o=a.plugin,i=o[r],l=[n,s,a.options];if(We(i,l,o)===!1&&s.cancelable)return!1}return!0}invalidate(){wt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,s=Ee(r.options&&r.options.plugins,{}),a=PC(r);return s===!1&&!n?[]:jC(e,a,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,s=(a,o)=>a.filter(i=>!o.some(l=>i.plugin.id===l.plugin.id));this._notify(s(n,r),e,"stop"),this._notify(s(r,n),e,"start")}}function PC(t){const e={},n=[],r=Object.keys(vn.plugins.items);for(let a=0;a<r.length;a++)n.push(vn.getPlugin(r[a]));const s=t.plugins||[];for(let a=0;a<s.length;a++){const o=s[a];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function NC(t,e){return!e&&t===!1?null:t===!0?{}:t}function jC(t,{plugins:e,localIds:n},r,s){const a=[],o=t.getContext();for(const i of e){const l=i.id,c=NC(r[l],s);c!==null&&a.push({plugin:i,options:IC(t.config,{plugin:i,local:n[l]},c,o)})}return a}function IC(t,{plugin:e,local:n},r,s){const a=t.pluginScopeKeys(e),o=t.getOptionScopes(r,a);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function yd(t,e){const n=Ze.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function AC(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function RC(t,e){return t===e?"_index_":"_value_"}function Vm(t){if(t==="x"||t==="y"||t==="r")return t}function LC(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function wd(t,...e){if(Vm(t))return t;for(const n of e){const r=n.axis||LC(n.position)||t.length>1&&Vm(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Um(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function FC(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return Um(t,"x",n[0])||Um(t,"y",n[0])}return{}}function BC(t,e){const n=Rr[t.type]||{scales:{}},r=e.scales||{},s=yd(t.type,e),a=Object.create(null);return Object.keys(r).forEach(o=>{const i=r[o];if(!we(i))return console.error(`Invalid scale configuration for scale: ${o}`);if(i._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=wd(o,i,FC(o,t),Ze.scales[i.type]),c=RC(l,s),d=n.scales||{};a[o]=xa(Object.create(null),[{axis:l},i,d[l],d[c]])}),t.data.datasets.forEach(o=>{const i=o.type||t.type,l=o.indexAxis||yd(i,e),d=(Rr[i]||{}).scales||{};Object.keys(d).forEach(u=>{const h=AC(u,l),g=o[h+"AxisID"]||h;a[g]=a[g]||Object.create(null),xa(a[g],[{axis:h},r[g],d[u]])})}),Object.keys(a).forEach(o=>{const i=a[o];xa(i,[Ze.scales[i.type],Ze.scale])}),a}function Xm(t){const e=t.options||(t.options={});e.plugins=Ee(e.plugins,{}),e.scales=BC(t,e)}function Gm(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function WC(t){return t=t||{},t.data=Gm(t.data),Xm(t),t}const Km=new Map,Zm=new Set;function vi(t,e){let n=Km.get(t);return n||(n=e(),Km.set(t,n),Zm.add(n)),n}const Ra=(t,e,n)=>{const r=ka(e,n);r!==void 0&&t.add(r)};class zC{constructor(e){this._config=WC(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=Gm(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(),Xm(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return vi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return vi(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return vi(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return vi(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let s=r.get(e);return(!s||n)&&(s=new Map,r.set(e,s)),s}getOptionScopes(e,n,r){const{options:s,type:a}=this,o=this._cachedScopes(e,r),i=o.get(n);if(i)return i;const l=new Set;n.forEach(d=>{e&&(l.add(e),d.forEach(u=>Ra(l,e,u))),d.forEach(u=>Ra(l,s,u)),d.forEach(u=>Ra(l,Rr[a]||{},u)),d.forEach(u=>Ra(l,Ze,u)),d.forEach(u=>Ra(l,ed,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Zm.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,Rr[n]||{},Ze.datasets[n]||{},{type:n},Ze,ed]}resolveNamedOptions(e,n,r,s=[""]){const a={$shared:!0},{resolver:o,subPrefixes:i}=Qm(this._resolverCache,e,s);let l=o;if(YC(o,n)){a.$shared=!1,r=dr(r)?r():r;const c=this.createResolver(e,r,i);l=Os(o,r,c)}for(const c of n)a[c]=l[c];return a}createResolver(e,n,r=[""],s){const{resolver:a}=Qm(this._resolverCache,e,r);return we(n)?Os(a,n,void 0,s):a}}function Qm(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const s=n.join();let a=r.get(s);return a||(a={resolver:od(e,n),subPrefixes:n.filter(i=>!i.toLowerCase().includes("hover"))},r.set(s,a)),a}const HC=t=>we(t)&&Object.getOwnPropertyNames(t).some(e=>dr(t[e]));function YC(t,e){const{isScriptable:n,isIndexable:r}=um(t);for(const s of e){const a=n(s),o=r(s),i=(o||a)&&t[s];if(a&&(dr(i)||HC(i))||o&&mt(i))return!0}return!1}var VC="4.5.1";const UC=["top","bottom","left","right","chartArea"];function Jm(t,e){return t==="top"||t==="bottom"||UC.indexOf(t)===-1&&e==="x"}function qm(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function $m(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),We(n&&n.onComplete,[t],e)}function XC(t){const e=t.chart,n=e.options.animation;We(n&&n.onProgress,[t],e)}function ep(t){return cd()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const xi={},tp=t=>{const e=ep(t);return Object.values(xi).filter(n=>n.canvas===e).pop()};function GC(t,e,n){const r=Object.keys(t);for(const s of r){const a=+s;if(a>=e){const o=t[s];delete t[s],(n>0||a>e)&&(t[a+n]=o)}}}function KC(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}let ki=(_r=class{static register(...e){vn.add(...e),np()}static unregister(...e){vn.remove(...e),np()}constructor(e,n){const r=this.config=new zC(n),s=ep(e),a=tp(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||fC(s)),this.platform.updateConfig(r);const i=this.platform.acquireContext(s,o.aspectRatio),l=i&&i.canvas,c=l&&l.height,d=l&&l.width;if(this.id=x_(),this.ctx=i,this.canvas=l,this.width=d,this.height=c,this._options=o,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 TC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=F_(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],xi[this.id]=this,!i||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Yn.listen(this,"complete",$m),Yn.listen(this,"progress",XC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:s,_aspectRatio:a}=this;return wt(e)?n&&a?a:s?r/s: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 vn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():bm(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return im(this.canvas,this.ctx),this}stop(){return Yn.stop(this),this}resize(e,n){Yn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,s=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,a),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,bm(this,i,!0)&&(this.notifyPlugins("resize",{size:o}),We(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Te(n,(r,s)=>{r.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,s=Object.keys(r).reduce((o,i)=>(o[i]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const i=n[o],l=wd(o,i),c=l==="r",d=l==="x";return{options:i,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Te(a,o=>{const i=o.options,l=i.id,c=wd(l,i),d=Ee(i.type,o.dtype);(i.position===void 0||Jm(i.position,c)!==Jm(o.dposition))&&(i.position=o.dposition),s[l]=!0;let u=null;if(l in r&&r[l].type===d)u=r[l];else{const h=vn.getScale(d);u=new h({id:l,type:d,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,e)}),Te(s,(o,i)=>{o||delete r[i]}),Te(r,o=>{fr.configure(this,o,o.options),fr.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((s,a)=>s.index-a.index),r>n){for(let s=n;s<r;++s)this._destroyDatasetMeta(s);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(qm("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,s)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,s;for(this._removeUnreferencedMetasets(),r=0,s=n.length;r<s;r++){const a=n[r];let o=this.getDatasetMeta(r);const i=a.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=a.indexAxis||yd(i,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=vn.getController(i),{datasetElementType:c,dataElementType:d}=Ze.datasets[i];Object.assign(l,{dataElementType:vn.getElement(d),datasetElementType:c&&vn.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Te(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),h=!s&&a.indexOf(u)===-1;u.buildOrUpdateElements(h),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),s||Te(a,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(qm("z","_idx"));const{_active:i,_lastEvent:l}=this;l?this._eventHandler(l,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Te(this.scales,e=>{fr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!Xg(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:s,count:a}of n){const o=r==="_removeElements"?-a:a;GC(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(e.filter(o=>o[0]===a).map((o,i)=>i+","+o.splice(1).join(","))),s=r(0);for(let a=1;a<n;a++)if(!Xg(s,r(a)))return;return Array.from(s).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;fr.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Te(this.boxes,s=>{r&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,dr(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),s={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(r.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Yn.has(this)?this.attached&&!Yn.running(this)&&Yn.start(this):(this.draw(),$m({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},s=C3(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&nd(n,s),e.controller.draw(),s&&rd(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return dm(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,s){const a=U3.modes[n];return typeof a=="function"?a(this,e,r,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let s=r.filter(a=>a&&a._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(s)),s}getContext(){return this.$context||(this.$context=Ss(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const s=r?"show":"hide",a=this.getDatasetMeta(e),o=a.controller._resolveAnimations(void 0,s);ri(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(a,{visible:r}),this.update(i=>i.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Yn.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),im(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete xi[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,n=this.platform,r=(a,o)=>{n.addEventListener(this,a,o),e[a]=o},s=(a,o,i)=>{a.offsetX=o,a.offsetY=i,this._eventHandler(a)};Te(this.options.events,a=>r(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},s=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const i=()=>{s("attach",i),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),r("attach",i)},n.isAttached(this.canvas)?i():o()}unbindEvents(){Te(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Te(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const s=r?"set":"remove";let a,o,i,l;for(n==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),i=0,l=e.length;i<l;++i){o=e[i];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:a,index:o})=>{const i=this.getDatasetMeta(a);if(!i)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:i.data[o],index:o}});!ti(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const s=this.options.hover,a=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=a(n,e),i=r?e:a(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),i.length&&s.mode&&this.updateHoverStyle(i,s.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,s)===!1)return;const a=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,s),(a||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:s=[],options:a}=this,o=n,i=this._getActiveElements(e,s,r,o),l=D_(e),c=KC(e,this._lastEvent,r,l);r&&(this._lastEvent=null,We(a.onHover,[e,i,this],this),l&&We(a.onClick,[e,i,this],this));const d=!ti(i,s);return(d||n)&&(this._active=i,this._updateHoverStyles(i,s,n)),this._lastEvent=c,d}_getActiveElements(e,n,r,s){if(e.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,s)}},$(_r,"defaults",Ze),$(_r,"instances",xi),$(_r,"overrides",Rr),$(_r,"registry",vn),$(_r,"version",VC),$(_r,"getChart",tp),_r);function np(){return Te(ki.instances,t=>t._plugins.invalidate())}function ZC(t,e,n){const{startAngle:r,x:s,y:a,outerRadius:o,innerRadius:i,options:l}=e,{borderWidth:c,borderJoinStyle:d}=l,u=Math.min(c/o,wn(r-n));if(t.beginPath(),t.arc(s,a,o-c/2,r+u/2,n-u/2),i>0){const h=Math.min(c/i,wn(r-n));t.arc(s,a,i+c/2,n-h/2,r+h/2,!0)}else{const h=Math.min(c/2,o*wn(r-n));if(d==="round")t.arc(s,a,h,n-ze/2,r+ze/2,!0);else if(d==="bevel"){const g=2*h*h,m=-g*Math.cos(n+ze/2)+s,p=-g*Math.sin(n+ze/2)+a,b=g*Math.cos(r+ze/2)+s,y=g*Math.sin(r+ze/2)+a;t.lineTo(m,p),t.lineTo(b,y)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function QC(t,e,n){const{startAngle:r,pixelMargin:s,x:a,y:o,outerRadius:i,innerRadius:l}=e;let c=s/i;t.beginPath(),t.arc(a,o,i,r-c,n+c),l>s?(c=s/l,t.arc(a,o,l,n+c,r-c,!0)):t.arc(a,o,s,n+it,r-it),t.closePath(),t.clip()}function JC(t){return ad(t,["outerStart","outerEnd","innerStart","innerEnd"])}function qC(t,e,n,r){const s=JC(t.options.borderRadius),a=(n-e)/2,o=Math.min(a,r*e/2),i=l=>{const c=(n-Math.min(a,l))*r/2;return qt(l,0,Math.min(a,c))};return{outerStart:i(s.outerStart),outerEnd:i(s.outerEnd),innerStart:qt(s.innerStart,0,o),innerEnd:qt(s.innerEnd,0,o)}}function Ms(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function _i(t,e,n,r,s,a){const{x:o,y:i,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+r+n-c,0),h=d>0?d+r+n+c:0;let g=0;const m=s-l;if(r){const j=d>0?d-r:0,E=u>0?u-r:0,Y=(j+E)/2,X=Y!==0?m*Y/(Y+r):m;g=(m-X)/2}const p=Math.max(.001,m*u-n/ze)/u,b=(m-p)/2,y=l+b+g,v=s-b-g,{outerStart:k,outerEnd:w,innerStart:x,innerEnd:C}=qC(e,h,u,v-y),N=u-k,M=u-w,P=y+k/N,S=v-w/M,B=h+x,A=h+C,T=y+x/B,D=v-C/A;if(t.beginPath(),a){const j=(P+S)/2;if(t.arc(o,i,u,P,j),t.arc(o,i,u,j,S),w>0){const ee=Ms(M,S,o,i);t.arc(ee.x,ee.y,w,S,v+it)}const E=Ms(A,v,o,i);if(t.lineTo(E.x,E.y),C>0){const ee=Ms(A,D,o,i);t.arc(ee.x,ee.y,C,v+it,D+Math.PI)}const Y=(v-C/h+(y+x/h))/2;if(t.arc(o,i,h,v-C/h,Y,!0),t.arc(o,i,h,Y,y+x/h,!0),x>0){const ee=Ms(B,T,o,i);t.arc(ee.x,ee.y,x,T+Math.PI,y-it)}const X=Ms(N,y,o,i);if(t.lineTo(X.x,X.y),k>0){const ee=Ms(N,P,o,i);t.arc(ee.x,ee.y,k,y-it,P)}}else{t.moveTo(o,i);const j=Math.cos(P)*u+o,E=Math.sin(P)*u+i;t.lineTo(j,E);const Y=Math.cos(S)*u+o,X=Math.sin(S)*u+i;t.lineTo(Y,X)}t.closePath()}function $C(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i}=e;let l=e.endAngle;if(a){_i(t,e,n,r,l,s);for(let c=0;c<a;++c)t.fill();isNaN(i)||(l=o+(i%nt||nt))}return _i(t,e,n,r,l,s),t.fill(),l}function eS(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:h,borderRadius:g}=l,m=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=h,m?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let p=e.endAngle;if(a){_i(t,e,n,r,p,s);for(let b=0;b<a;++b)t.stroke();isNaN(i)||(p=o+(i%nt||nt))}m&&QC(t,e,p),l.selfJoin&&p-o>=ze&&g===0&&d!=="miter"&&ZC(t,e,p),a||(_i(t,e,n,r,p,s),t.stroke())}class La extends Ia{constructor(n){super();$(this,"circumference");$(this,"endAngle");$(this,"fullCircles");$(this,"innerRadius");$(this,"outerRadius");$(this,"pixelMargin");$(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,n&&Object.assign(this,n)}inRange(n,r,s){const a=this.getProps(["x","y"],s),{angle:o,distance:i}=Zg(a,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),g=(this.options.spacing+this.options.borderWidth)/2,m=Ee(h,c-l),p=oi(o,l,c)&&l!==c,b=m>=nt||p,y=_a(i,d+g,u+g);return b&&y}getCenterPoint(n){const{x:r,y:s,startAngle:a,endAngle:o,innerRadius:i,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,u=(a+o)/2,h=(i+l+d+c)/2;return{x:r+Math.cos(u)*h,y:s+Math.sin(u)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:s}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,i=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=s>nt?Math.floor(s/nt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const c=1-Math.sin(Math.min(ze,s||0)),d=a*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,$C(n,this,d,o,i),eS(n,this,d,o,i),n.restore()}}$(La,"id","arc"),$(La,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),$(La,"defaultRoutes",{backgroundColor:"backgroundColor"}),$(La,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});const rp=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},tS=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class sp extends Ia{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,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,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 n=We(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,s)=>e.sort(r,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,s=Et(r.font),a=s.size,o=this._computeTitleHeight(),{boxWidth:i,itemHeight:l}=rp(r,a);let c,d;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,a,i,l)+10):(d=this.maxHeight,c=this._fitCols(o,s,i,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,s){const{ctx:a,maxWidth:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=s+i;let u=e;a.textAlign="left",a.textBaseline="middle";let h=-1,g=-d;return this.legendItems.forEach((m,p)=>{const b=r+n/2+a.measureText(m.text).width;(p===0||c[c.length-1]+b+2*i>o)&&(u+=d,c[c.length-(p>0?0:1)]=0,g+=d,h++),l[p]={left:0,top:g,row:h,width:b,height:s},c[c.length-1]+=b+i}),u}_fitCols(e,n,r,s){const{ctx:a,maxHeight:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=i,h=0,g=0,m=0,p=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:v,itemHeight:k}=nS(r,n,a,b,s);y>0&&g+k+2*i>d&&(u+=h+i,c.push({width:h,height:g}),m+=h+i,p++,h=g=0),l[y]={left:m,top:g,col:p,width:v,height:k},h=Math.max(h,v),g+=k+i}),u+=h,c.push({width:h,height:g}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:s},rtl:a}}=this,o=Ds(a,this.left,this.width);if(this.isHorizontal()){let i=0,l=Ft(r,this.left+s,this.right-this.lineWidths[i]);for(const c of n)i!==c.row&&(i=c.row,l=Ft(r,this.left+s,this.right-this.lineWidths[i])),c.top+=this.top+e+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let i=0,l=Ft(r,this.top+e+s,this.bottom-this.columnSizes[i].height);for(const c of n)c.col!==i&&(i=c.col,l=Ft(r,this.top+e+s,this.bottom-this.columnSizes[i].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;nd(e,this),this._draw(),rd(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:s}=this,{align:a,labels:o}=e,i=Ze.color,l=Ds(e.rtl,this.left,this.width),c=Et(o.font),{padding:d}=o,u=c.size,h=u/2;let g;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=rp(o,u),y=function(C,N,M){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;s.save();const P=Ee(M.lineWidth,1);if(s.fillStyle=Ee(M.fillStyle,i),s.lineCap=Ee(M.lineCap,"butt"),s.lineDashOffset=Ee(M.lineDashOffset,0),s.lineJoin=Ee(M.lineJoin,"miter"),s.lineWidth=P,s.strokeStyle=Ee(M.strokeStyle,i),s.setLineDash(Ee(M.lineDash,[])),o.usePointStyle){const S={radius:p*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:P},B=l.xPlus(C,m/2),A=N+h;cm(s,S,B,A,o.pointStyleWidth&&m)}else{const S=N+Math.max((u-p)/2,0),B=l.leftForLtr(C,m),A=Oa(M.borderRadius);s.beginPath(),Object.values(A).some(T=>T!==0)?sd(s,{x:B,y:S,w:m,h:p,radius:A}):s.rect(B,S,m,p),s.fill(),P!==0&&s.stroke()}s.restore()},v=function(C,N,M){li(s,M.text,C,N+b/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},k=this.isHorizontal(),w=this._computeTitleHeight();k?g={x:Ft(a,this.left+d,this.right-r[0]),y:this.top+d+w,line:0}:g={x:this.left+d,y:Ft(a,this.top+w+d,this.bottom-n[0].height),line:0},wm(this.ctx,e.textDirection);const x=b+d;this.legendItems.forEach((C,N)=>{s.strokeStyle=C.fontColor,s.fillStyle=C.fontColor;const M=s.measureText(C.text).width,P=l.textAlign(C.textAlign||(C.textAlign=o.textAlign)),S=m+h+M;let B=g.x,A=g.y;l.setWidth(this.width),k?N>0&&B+S+d>this.right&&(A=g.y+=x,g.line++,B=g.x=Ft(a,this.left+d,this.right-r[g.line])):N>0&&A+x>this.bottom&&(B=g.x=B+n[g.line].width+d,g.line++,A=g.y=Ft(a,this.top+w+d,this.bottom-n[g.line].height));const T=l.x(B);if(y(T,A,C),B=B_(P,B+m+h,k?B+S:this.right,e.rtl),v(l.x(B),A,C),k)g.x+=S+d;else if(typeof C.text!="string"){const D=c.lineHeight;g.y+=ap(C,D)+d}else g.y+=x}),vm(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Et(n.font),s=an(n.padding);if(!n.display)return;const a=Ds(e.rtl,this.left,this.width),o=this.ctx,i=n.position,l=r.size/2,c=s.top+l;let d,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,u=Ft(e.align,u,this.right-h);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);d=c+Ft(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const g=Ft(i,u,u+h);o.textAlign=a.textAlign(em(i)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,li(o,n.text,g,d,r)}_computeTitleHeight(){const e=this.options.title,n=Et(e.font),r=an(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,s,a;if(_a(e,this.left,this.right)&&_a(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(s=a[r],_a(e,s.left,s.left+s.width)&&_a(n,s.top,s.top+s.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!aS(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,a=tS(s,r);s&&!a&&We(n.onLeave,[e,s,this],this),this._hoveredItem=r,r&&!a&&We(n.onHover,[e,r,this],this)}else r&&We(n.onClick,[e,r,this],this)}}function nS(t,e,n,r,s){const a=rS(r,t,e,n),o=sS(s,r,e.lineHeight);return{itemWidth:a,itemHeight:o}}function rS(t,e,n,r){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((a,o)=>a.length>o.length?a:o)),e+n.size/2+r.measureText(s).width}function sS(t,e,n){let r=t;return typeof e.text!="string"&&(r=ap(e,n)),r}function ap(t,e){const n=t.text?t.text.length:0;return e*n}function aS(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var oS={id:"legend",_element:sp,start(t,e,n){const r=t.legend=new sp({ctx:t.ctx,options:n,chart:t});fr.configure(t,r,n),fr.addBox(t,r)},stop(t){fr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;fr.configure(t,r,n),r.options=n},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,n){const r=e.datasetIndex,s=n.chart;s.isDatasetVisible(r)?(s.hide(r),e.hidden=!0):(s.show(r),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:n,pointStyle:r,textAlign:s,color:a,useBorderRadius:o,borderRadius:i}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=an(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:a,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:r||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:o&&(i||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 Fa={average(t){if(!t.length)return!1;let e,n,r=new Set,s=0,a=0;for(e=0,n=t.length;e<n;++e){const i=t[e].element;if(i&&i.hasValue()){const l=i.tooltipPosition();r.add(l.x),s+=l.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((i,l)=>i+l)/r.size,y:s/a}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,s=Number.POSITIVE_INFINITY,a,o,i;for(a=0,o=t.length;a<o;++a){const l=t[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=N_(e,c);d<s&&(s=d,i=l)}}if(i){const l=i.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function xn(t,e){return e&&(mt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Vn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
24
24
|
`)>-1?t.split(`
|
|
25
|
-
`):t}function rD(t,e){const{element:n,datasetIndex:r,index:s}=e,a=t.getDatasetMeta(r).controller,{label:o,value:i}=a.getLabelAndValue(s);return{chart:t,label:o,parsed:a.getParsed(s),raw:t.data.datasets[r].data[s],formattedValue:i,dataset:a.getDataset(),dataIndex:s,datasetIndex:r,element:n}}function a0(t,e){const n=t.chart.ctx,{body:r,footer:s,title:a}=t,{boxWidth:o,boxHeight:i}=e,l=Et(e.bodyFont),c=Et(e.titleFont),d=Et(e.footerFont),u=a.length,g=s.length,h=r.length,p=an(e.padding);let m=p.height,b=0,y=r.reduce((w,x)=>w+x.before.length+x.lines.length+x.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),y){const w=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;m+=h*w+(y-h)*l.lineHeight+(y-1)*e.bodySpacing}g&&(m+=e.footerMarginTop+g*d.lineHeight+(g-1)*e.footerSpacing);let v=0;const k=function(w){b=Math.max(b,n.measureText(w).width+v)};return n.save(),n.font=c.string,Te(t.title,k),n.font=l.string,Te(t.beforeBody.concat(t.afterBody),k),v=e.displayColors?o+2+e.boxPadding:0,Te(r,w=>{Te(w.before,k),Te(w.lines,k),Te(w.after,k)}),v=0,n.font=d.string,Te(t.footer,k),n.restore(),b+=p.width,{width:b,height:m}}function sD(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function aD(t,e,n,r){const{x:s,width:a}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&s+a+o>e.width||t==="right"&&s-a-o<0)return!0}function oD(t,e,n,r){const{x:s,width:a}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=s<=(i+l)/2?"left":"right":s<=a/2?c="left":s>=o-a/2&&(c="right"),aD(c,t,e,n)&&(c="center"),c}function o0(t,e,n){const r=n.yAlign||e.yAlign||sD(t,n);return{xAlign:n.xAlign||e.xAlign||oD(t,e,n,r),yAlign:r}}function iD(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function lD(t,e,n){let{y:r,height:s}=t;return e==="top"?r+=n:e==="bottom"?r-=s+n:r-=s/2,r}function i0(t,e,n,r){const{caretSize:s,caretPadding:a,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=s+a,{topLeft:d,topRight:u,bottomLeft:g,bottomRight:h}=Oa(o);let p=iD(e,i);const m=lD(e,l,c);return l==="center"?i==="left"?p+=c:i==="right"&&(p-=c):i==="left"?p-=Math.max(d,g)+s:i==="right"&&(p+=Math.max(u,h)+s),{x:qt(p,0,r.width-e.width),y:qt(m,0,r.height-e.height)}}function Si(t,e,n){const r=an(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function l0(t){return xn([],Vn(t))}function cD(t,e,n){return Cs(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function c0(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const d0={beforeTitle:zn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:zn,beforeBody:zn,beforeLabel:zn,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 n=t.formattedValue;return wt(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:zn,afterBody:zn,beforeFooter:zn,footer:zn,afterFooter:zn};function Tt(t,e,n,r){const s=t[e].call(n,r);return typeof s>"u"?d0[e].call(n,r):s}class vd extends Ia{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 n=this.chart,r=this.options.setContext(this.getContext()),s=r.enabled&&n.options.animation&&r.animations,a=new xp(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=cD(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,s=Tt(r,"beforeTitle",this,e),a=Tt(r,"title",this,e),o=Tt(r,"afterTitle",this,e);let i=[];return i=xn(i,Vn(s)),i=xn(i,Vn(a)),i=xn(i,Vn(o)),i}getBeforeBody(e,n){return l0(Tt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,s=[];return Te(e,a=>{const o={before:[],lines:[],after:[]},i=c0(r,a);xn(o.before,Vn(Tt(i,"beforeLabel",this,a))),xn(o.lines,Tt(i,"label",this,a)),xn(o.after,Vn(Tt(i,"afterLabel",this,a))),s.push(o)}),s}getAfterBody(e,n){return l0(Tt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,s=Tt(r,"beforeFooter",this,e),a=Tt(r,"footer",this,e),o=Tt(r,"afterFooter",this,e);let i=[];return i=xn(i,Vn(s)),i=xn(i,Vn(a)),i=xn(i,Vn(o)),i}_createItems(e){const n=this._active,r=this.chart.data,s=[],a=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(rD(this.chart,n[l]));return e.filter&&(i=i.filter((d,u,g)=>e.filter(d,u,g,r))),e.itemSort&&(i=i.sort((d,u)=>e.itemSort(d,u,r))),Te(i,d=>{const u=c0(e.callbacks,d);s.push(Tt(u,"labelColor",this,d)),a.push(Tt(u,"labelPointStyle",this,d)),o.push(Tt(u,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),s=this._active;let a,o=[];if(!s.length)this.opacity!==0&&(a={opacity:0});else{const i=Fa[r.position].call(this,s,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=a0(this,r),c=Object.assign({},i,l),d=o0(this.chart,r,c),u=i0(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,a={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:i.x,caretY:i.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,s){const a=this.getCaretPosition(e,r,s);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(e,n,r){const{xAlign:s,yAlign:a}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=Oa(i),{x:g,y:h}=e,{width:p,height:m}=n;let b,y,v,k,w,x;return a==="center"?(w=h+m/2,s==="left"?(b=g,y=b-o,k=w+o,x=w-o):(b=g+p,y=b+o,k=w-o,x=w+o),v=b):(s==="left"?y=g+Math.max(l,d)+o:s==="right"?y=g+p-Math.max(c,u)-o:y=this.caretX,a==="top"?(k=h,w=k-o,b=y-o,v=y+o):(k=h+m,w=k+o,b=y+o,v=y-o),x=k),{x1:b,x2:y,x3:v,y1:k,y2:w,y3:x}}drawTitle(e,n,r){const s=this.title,a=s.length;let o,i,l;if(a){const c=Ds(r.rtl,this.x,this.width);for(e.x=Si(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=Et(r.titleFont),i=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(s[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===a&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,s,a){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=a,d=Et(a.bodyFont),u=Si(this,"left",a),g=s.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,p=n.y+h;if(a.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=s.leftForLtr(g,c)+c/2,y=p+l/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,ip(e,m,b,y),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,ip(e,m,b,y)}else{e.lineWidth=we(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const m=s.leftForLtr(g,c),b=s.leftForLtr(s.xPlus(g,1),c-2),y=Oa(o.borderRadius);Object.values(y).some(v=>v!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,sd(e,{x:m,y:p,w:c,h:l,radius:y}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),sd(e,{x:b,y:p+1,w:c-2,h:l-2,radius:y}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(m,p,c,l),e.strokeRect(m,p,c,l),e.fillStyle=o.backgroundColor,e.fillRect(b,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:s}=this,{bodySpacing:a,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=Et(r.bodyFont);let g=u.lineHeight,h=0;const p=Ds(r.rtl,this.x,this.width),m=function(C){n.fillText(C,p.x(e.x+h),e.y+g/2),e.y+=g+a},b=p.textAlign(o);let y,v,k,w,x,S,P;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=Si(this,b,r),n.fillStyle=r.bodyColor,Te(this.beforeBody,m),h=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,w=0,S=s.length;w<S;++w){for(y=s[w],v=this.labelTextColors[w],n.fillStyle=v,Te(y.before,m),k=y.lines,i&&k.length&&(this._drawColorBox(n,e,w,p,r),g=Math.max(u.lineHeight,l)),x=0,P=k.length;x<P;++x)m(k[x]),g=u.lineHeight;Te(y.after,m)}h=0,g=u.lineHeight,Te(this.afterBody,m),e.y-=a}drawFooter(e,n,r){const s=this.footer,a=s.length;let o,i;if(a){const l=Ds(r.rtl,this.x,this.width);for(e.x=Si(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=Et(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,i=0;i<a;++i)n.fillText(s[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,s){const{xAlign:a,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:g,bottomLeft:h,bottomRight:p}=Oa(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,s),n.lineTo(i+c-g,l),n.quadraticCurveTo(i+c,l,i+c,l+g),o==="center"&&a==="right"&&this.drawCaret(e,n,r,s),n.lineTo(i+c,l+d-p),n.quadraticCurveTo(i+c,l+d,i+c-p,l+d),o==="bottom"&&this.drawCaret(e,n,r,s),n.lineTo(i+h,l+d),n.quadraticCurveTo(i,l+d,i,l+d-h),o==="center"&&a==="left"&&this.drawCaret(e,n,r,s),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,s=r&&r.x,a=r&&r.y;if(s||a){const o=Fa[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=a0(this,e),l=Object.assign({},o,this._size),c=o0(n,e,l),d=i0(e,l,c,n);(s._to!==d.x||a._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=i.width,this.height=i.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=an(n.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&i&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,s,n),yp(e,n.textDirection),a.y+=o.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),wp(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,s=e.map(({datasetIndex:i,index:l})=>{const c=this.chart.getDatasetMeta(i);if(!c)throw new Error("Cannot find a dataset at index "+i);return{datasetIndex:i,element:c.data[l],index:l}}),a=!ti(r,s),o=this._positionChanged(s,n);(a||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,a=this._active||[],o=this._getActiveElements(e,a,n,r),i=this._positionChanged(o,e),l=n||!ti(o,a)||i;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,s){const a=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(i=>this.chart.data.datasets[i.datasetIndex]&&this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:s,options:a}=this,o=Fa[a.position].call(this,e,n);return o!==!1&&(r!==o.x||s!==o.y)}}$(vd,"positioners",Fa);var dD={id:"tooltip",_element:vd,positioners:Fa,afterInit(t,e,n){n&&(t.tooltip=new vd({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,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:d0},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 Ci={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}},Pt=Object.keys(Ci);function u0(t,e){return t-e}function f0(t,e){if(wt(e))return null;const n=t._adapter,{parser:r,round:s,isoWeekday:a}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),Hn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(ai(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,s)),+o)}function h0(t,e,n,r){const s=Pt.length;for(let a=Pt.indexOf(t);a<s-1;++a){const o=Ci[Pt[a]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return Pt[a]}return Pt[s-1]}function uD(t,e,n,r,s){for(let a=Pt.length-1;a>=Pt.indexOf(n);a--){const o=Pt[a];if(Ci[o].common&&t._adapter.diff(s,r,o)>=e-1)return o}return Pt[n?Pt.indexOf(n):0]}function fD(t){for(let e=Pt.indexOf(t)+1,n=Pt.length;e<n;++e)if(Ci[Pt[e]].common)return Pt[e]}function g0(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:s}=Jc(n,e),a=n[r]>=e?n[r]:n[s];t[a]=!0}}function hD(t,e,n,r){const s=t._adapter,a=+s.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=a;i<=o;i=+s.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function m0(t,e,n){const r=[],s={},a=e.length;let o,i;for(o=0;o<a;++o)i=e[o],s[i]=o,r.push({value:i,major:!1});return a===0||!n?r:hD(t,r,s,n)}class Oi extends yi{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,n={}){const r=e.time||(e.time={}),s=this._adapter=new RC._date(e.adapters.date);s.init(n),xa(r.displayFormats,s.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:f0(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:s,max:a,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!i&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=Hn(s)&&!isNaN(s)?s:+n.startOf(Date.now(),r),a=Hn(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,s=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const a=this.min,o=this.max,i=PS(s,a,o);return this._unit=n.unit||(r.autoSkip?h0(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):uD(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:fD(this._unit),this.initOffsets(s),e.reverse&&i.reverse(),m0(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,s,a;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=qt(n,0,o),r=qt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,s=this.options,a=s.time,o=a.unit||h0(a.minUnit,n,r,this._getLabelCapacity(n)),i=Ee(s.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=ai(l)||l===!0,d={};let u=n,g,h;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":o),e.diff(r,n,o)>1e5*i)throw new Error(n+" and "+r+" are too far apart with stepSize of "+i+" "+o);const p=s.ticks.source==="data"&&this.getDataTimestamps();for(g=u,h=0;g<r;g=+e.add(g,i,o),h++)g0(d,g,p);return(g===r||s.bounds==="ticks"||h===1)&&g0(d,g,p),Object.keys(d).sort(u0).map(m=>+m)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,a=this._unit,o=n||s[a];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,s){const a=this.options,o=a.ticks.callback;if(o)return We(o,[e,n,r],this);const i=a.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&i[l],u=c&&i[c],g=r[n],h=c&&u&&g&&g.major;return this._adapter.format(e,s||(h?u:d))}generateTickLabels(e){let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n],s.label=this._tickFormatFunction(s.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,s=Ar(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(s),o=Math.sin(s),i=this._resolveTickFontOptions(0).size;return{w:r*a+i*o,h:r*o+i*a}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,s=r[n.unit]||r.millisecond,a=this._tickFormatFunction(e,0,m0(this,[e],this._majorUnit),s),o=this._getLabelSize(a),i=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return i>0?i:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,r=s.length;n<r;++n)e=e.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const s=this.getLabels();for(n=0,r=s.length;n<r;++n)e.push(f0(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return jS(e.sort(u0))}}$(Oi,"id","time"),$(Oi,"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 Di(t,e,n){let r=0,s=t.length-1,a,o,i,l;n?(e>=t[r].pos&&e<=t[s].pos&&({lo:r,hi:s}=qc(t,"pos",e)),{pos:a,time:i}=t[r],{pos:o,time:l}=t[s]):(e>=t[r].time&&e<=t[s].time&&({lo:r,hi:s}=qc(t,"time",e)),{time:a,pos:i}=t[r],{time:o,pos:l}=t[s]);const c=o-a;return c?i+(l-i)*(e-a)/c:i}class p0 extends Oi{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Di(n,this.min),this._tableRange=Di(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,s=[],a=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=s.length;o<i;++o)d=s[o+1],l=s[o-1],c=s[o],Math.round((d+l)/2)!==c&&a.push({time:c,pos:o/(i-1)});return a}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((s,a)=>s-a)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Di(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Di(this._table,r*this._tableRange+this._minPos,!0)}}$(p0,"id","timeseries"),$(p0,"defaults",Oi.defaults);const b0="label";function y0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function gD(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function w0(t,e){t.labels=e}function v0(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b0;const r=[];t.datasets=e.map(s=>{const a=t.datasets.find(o=>o[n]===s[n]);return!a||!s.data||r.includes(a)?{...s}:(r.push(a),Object.assign(a,s),a)})}function mD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b0;const n={labels:[],datasets:[]};return w0(n,t.labels),v0(n,t.datasets,e),n}function pD(t,e){const{height:n=150,width:r=300,redraw:s=!1,datasetIdKey:a,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...g}=t,h=_.useRef(null),p=_.useRef(null),m=()=>{h.current&&(p.current=new ki(h.current,{type:o,data:mD(i,a),options:l&&{...l},plugins:c}),y0(e,p.current))},b=()=>{y0(e,null),p.current&&(p.current.destroy(),p.current=null)};return _.useEffect(()=>{!s&&p.current&&l&&gD(p.current,l)},[s,l]),_.useEffect(()=>{!s&&p.current&&w0(p.current.config.data,i.labels)},[s,i.labels]),_.useEffect(()=>{!s&&p.current&&i.datasets&&v0(p.current.config.data,i.datasets,a)},[s,i.datasets]),_.useEffect(()=>{p.current&&(s?(b(),setTimeout(m)):p.current.update(u))},[s,l,i.labels,i.datasets,u]),_.useEffect(()=>{p.current&&(b(),setTimeout(m))},[o]),_.useEffect(()=>(m(),()=>b()),[]),_.createElement("canvas",{ref:h,role:"img",height:n,width:r,...g},d)}const bD=_.forwardRef(pD);function yD(t,e){return ki.register(e),_.forwardRef((n,r)=>_.createElement(bD,{...n,ref:r,type:t}))}const wD=yD("doughnut",Ea);ki.register(La,dD,nD);const x0=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),vD=({dataProps:t})=>{const e=t,n={responsive:!0,maintainAspectRatio:!1,cutout:`${t.cutout}%`,plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right",labels:{usePointStyle:!0,pointStyle:"circle",padding:15}},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:x0(e.datasets[0].data.reduce((a,o)=>a+o,0)),font:{size:"15"}}]}}},r={id:"textCenter",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l,height:c}}=a,d="Total",u=x0(e.datasets[0].data[1]),g=i+c*.75;o.save(),o.font="20px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(d,l/2,g-20),o.font=`bold ${t.fontSize}px Arial`,o.fillText(u,l/2,g+10),o.restore()}},s={id:"currencyLabel",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l}}=a;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+30),o.restore()}};return f.jsx("div",{children:f.jsx(wD,{data:e,options:n,plugins:[r,s]})})},xd={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function xD(t){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(t)}function kD(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)}const k0=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto",closeOnOverlayClick:s,isCloseButtonVisible:a=!0},o)=>{if(!t)return null;const i=s??!a,l=()=>{i&&e()};return f.jsx("div",{className:xd.overlay,onClick:l,children:f.jsxs("div",{ref:o,className:xd.modal,style:{width:r},onClick:c=>c.stopPropagation(),children:[a&&f.jsx("button",{onClick:e,className:xd.closeButton,children:f.jsx(kD,{})}),n]})})});/*! *****************************************************************************
|
|
25
|
+
`):t}function iS(t,e){const{element:n,datasetIndex:r,index:s}=e,a=t.getDatasetMeta(r).controller,{label:o,value:i}=a.getLabelAndValue(s);return{chart:t,label:o,parsed:a.getParsed(s),raw:t.data.datasets[r].data[s],formattedValue:i,dataset:a.getDataset(),dataIndex:s,datasetIndex:r,element:n}}function op(t,e){const n=t.chart.ctx,{body:r,footer:s,title:a}=t,{boxWidth:o,boxHeight:i}=e,l=Et(e.bodyFont),c=Et(e.titleFont),d=Et(e.footerFont),u=a.length,h=s.length,g=r.length,m=an(e.padding);let p=m.height,b=0,y=r.reduce((w,x)=>w+x.before.length+x.lines.length+x.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),y){const w=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;p+=g*w+(y-g)*l.lineHeight+(y-1)*e.bodySpacing}h&&(p+=e.footerMarginTop+h*d.lineHeight+(h-1)*e.footerSpacing);let v=0;const k=function(w){b=Math.max(b,n.measureText(w).width+v)};return n.save(),n.font=c.string,Te(t.title,k),n.font=l.string,Te(t.beforeBody.concat(t.afterBody),k),v=e.displayColors?o+2+e.boxPadding:0,Te(r,w=>{Te(w.before,k),Te(w.lines,k),Te(w.after,k)}),v=0,n.font=d.string,Te(t.footer,k),n.restore(),b+=m.width,{width:b,height:p}}function lS(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function cS(t,e,n,r){const{x:s,width:a}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&s+a+o>e.width||t==="right"&&s-a-o<0)return!0}function dS(t,e,n,r){const{x:s,width:a}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=s<=(i+l)/2?"left":"right":s<=a/2?c="left":s>=o-a/2&&(c="right"),cS(c,t,e,n)&&(c="center"),c}function ip(t,e,n){const r=n.yAlign||e.yAlign||lS(t,n);return{xAlign:n.xAlign||e.xAlign||dS(t,e,n,r),yAlign:r}}function uS(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function fS(t,e,n){let{y:r,height:s}=t;return e==="top"?r+=n:e==="bottom"?r-=s+n:r-=s/2,r}function lp(t,e,n,r){const{caretSize:s,caretPadding:a,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=s+a,{topLeft:d,topRight:u,bottomLeft:h,bottomRight:g}=Oa(o);let m=uS(e,i);const p=fS(e,l,c);return l==="center"?i==="left"?m+=c:i==="right"&&(m-=c):i==="left"?m-=Math.max(d,h)+s:i==="right"&&(m+=Math.max(u,g)+s),{x:qt(m,0,r.width-e.width),y:qt(p,0,r.height-e.height)}}function Ci(t,e,n){const r=an(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function cp(t){return xn([],Vn(t))}function hS(t,e,n){return Ss(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function dp(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const up={beforeTitle:zn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:zn,beforeBody:zn,beforeLabel:zn,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 n=t.formattedValue;return wt(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:zn,afterBody:zn,beforeFooter:zn,footer:zn,afterFooter:zn};function Tt(t,e,n,r){const s=t[e].call(n,r);return typeof s>"u"?up[e].call(n,r):s}class vd extends Ia{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 n=this.chart,r=this.options.setContext(this.getContext()),s=r.enabled&&n.options.animation&&r.animations,a=new km(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=hS(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,s=Tt(r,"beforeTitle",this,e),a=Tt(r,"title",this,e),o=Tt(r,"afterTitle",this,e);let i=[];return i=xn(i,Vn(s)),i=xn(i,Vn(a)),i=xn(i,Vn(o)),i}getBeforeBody(e,n){return cp(Tt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,s=[];return Te(e,a=>{const o={before:[],lines:[],after:[]},i=dp(r,a);xn(o.before,Vn(Tt(i,"beforeLabel",this,a))),xn(o.lines,Tt(i,"label",this,a)),xn(o.after,Vn(Tt(i,"afterLabel",this,a))),s.push(o)}),s}getAfterBody(e,n){return cp(Tt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,s=Tt(r,"beforeFooter",this,e),a=Tt(r,"footer",this,e),o=Tt(r,"afterFooter",this,e);let i=[];return i=xn(i,Vn(s)),i=xn(i,Vn(a)),i=xn(i,Vn(o)),i}_createItems(e){const n=this._active,r=this.chart.data,s=[],a=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(iS(this.chart,n[l]));return e.filter&&(i=i.filter((d,u,h)=>e.filter(d,u,h,r))),e.itemSort&&(i=i.sort((d,u)=>e.itemSort(d,u,r))),Te(i,d=>{const u=dp(e.callbacks,d);s.push(Tt(u,"labelColor",this,d)),a.push(Tt(u,"labelPointStyle",this,d)),o.push(Tt(u,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),s=this._active;let a,o=[];if(!s.length)this.opacity!==0&&(a={opacity:0});else{const i=Fa[r.position].call(this,s,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=op(this,r),c=Object.assign({},i,l),d=ip(this.chart,r,c),u=lp(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,a={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:i.x,caretY:i.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,s){const a=this.getCaretPosition(e,r,s);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(e,n,r){const{xAlign:s,yAlign:a}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=Oa(i),{x:h,y:g}=e,{width:m,height:p}=n;let b,y,v,k,w,x;return a==="center"?(w=g+p/2,s==="left"?(b=h,y=b-o,k=w+o,x=w-o):(b=h+m,y=b+o,k=w-o,x=w+o),v=b):(s==="left"?y=h+Math.max(l,d)+o:s==="right"?y=h+m-Math.max(c,u)-o:y=this.caretX,a==="top"?(k=g,w=k-o,b=y-o,v=y+o):(k=g+p,w=k+o,b=y+o,v=y-o),x=k),{x1:b,x2:y,x3:v,y1:k,y2:w,y3:x}}drawTitle(e,n,r){const s=this.title,a=s.length;let o,i,l;if(a){const c=Ds(r.rtl,this.x,this.width);for(e.x=Ci(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=Et(r.titleFont),i=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<a;++l)n.fillText(s[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===a&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,s,a){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=a,d=Et(a.bodyFont),u=Ci(this,"left",a),h=s.x(u),g=l<d.lineHeight?(d.lineHeight-l)/2:0,m=n.y+g;if(a.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=s.leftForLtr(h,c)+c/2,y=m+l/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,lm(e,p,b,y),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,lm(e,p,b,y)}else{e.lineWidth=we(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const p=s.leftForLtr(h,c),b=s.leftForLtr(s.xPlus(h,1),c-2),y=Oa(o.borderRadius);Object.values(y).some(v=>v!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,sd(e,{x:p,y:m,w:c,h:l,radius:y}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),sd(e,{x:b,y:m+1,w:c-2,h:l-2,radius:y}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(p,m,c,l),e.strokeRect(p,m,c,l),e.fillStyle=o.backgroundColor,e.fillRect(b,m+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:s}=this,{bodySpacing:a,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=Et(r.bodyFont);let h=u.lineHeight,g=0;const m=Ds(r.rtl,this.x,this.width),p=function(M){n.fillText(M,m.x(e.x+g),e.y+h/2),e.y+=h+a},b=m.textAlign(o);let y,v,k,w,x,C,N;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=Ci(this,b,r),n.fillStyle=r.bodyColor,Te(this.beforeBody,p),g=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,w=0,C=s.length;w<C;++w){for(y=s[w],v=this.labelTextColors[w],n.fillStyle=v,Te(y.before,p),k=y.lines,i&&k.length&&(this._drawColorBox(n,e,w,m,r),h=Math.max(u.lineHeight,l)),x=0,N=k.length;x<N;++x)p(k[x]),h=u.lineHeight;Te(y.after,p)}g=0,h=u.lineHeight,Te(this.afterBody,p),e.y-=a}drawFooter(e,n,r){const s=this.footer,a=s.length;let o,i;if(a){const l=Ds(r.rtl,this.x,this.width);for(e.x=Ci(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=Et(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,i=0;i<a;++i)n.fillText(s[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,s){const{xAlign:a,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:h,bottomLeft:g,bottomRight:m}=Oa(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,s),n.lineTo(i+c-h,l),n.quadraticCurveTo(i+c,l,i+c,l+h),o==="center"&&a==="right"&&this.drawCaret(e,n,r,s),n.lineTo(i+c,l+d-m),n.quadraticCurveTo(i+c,l+d,i+c-m,l+d),o==="bottom"&&this.drawCaret(e,n,r,s),n.lineTo(i+g,l+d),n.quadraticCurveTo(i,l+d,i,l+d-g),o==="center"&&a==="left"&&this.drawCaret(e,n,r,s),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,s=r&&r.x,a=r&&r.y;if(s||a){const o=Fa[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=op(this,e),l=Object.assign({},o,this._size),c=ip(n,e,l),d=lp(e,l,c,n);(s._to!==d.x||a._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=i.width,this.height=i.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=an(n.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&i&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,s,n),wm(e,n.textDirection),a.y+=o.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),vm(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,s=e.map(({datasetIndex:i,index:l})=>{const c=this.chart.getDatasetMeta(i);if(!c)throw new Error("Cannot find a dataset at index "+i);return{datasetIndex:i,element:c.data[l],index:l}}),a=!ti(r,s),o=this._positionChanged(s,n);(a||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,a=this._active||[],o=this._getActiveElements(e,a,n,r),i=this._positionChanged(o,e),l=n||!ti(o,a)||i;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,s){const a=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(i=>this.chart.data.datasets[i.datasetIndex]&&this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:s,options:a}=this,o=Fa[a.position].call(this,e,n);return o!==!1&&(r!==o.x||s!==o.y)}}$(vd,"positioners",Fa);var gS={id:"tooltip",_element:vd,positioners:Fa,afterInit(t,e,n){n&&(t.tooltip=new vd({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,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:up},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 Si={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}},Pt=Object.keys(Si);function fp(t,e){return t-e}function hp(t,e){if(wt(e))return null;const n=t._adapter,{parser:r,round:s,isoWeekday:a}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),Hn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(ai(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,s)),+o)}function gp(t,e,n,r){const s=Pt.length;for(let a=Pt.indexOf(t);a<s-1;++a){const o=Si[Pt[a]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return Pt[a]}return Pt[s-1]}function mS(t,e,n,r,s){for(let a=Pt.length-1;a>=Pt.indexOf(n);a--){const o=Pt[a];if(Si[o].common&&t._adapter.diff(s,r,o)>=e-1)return o}return Pt[n?Pt.indexOf(n):0]}function pS(t){for(let e=Pt.indexOf(t)+1,n=Pt.length;e<n;++e)if(Si[Pt[e]].common)return Pt[e]}function mp(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:s}=Jc(n,e),a=n[r]>=e?n[r]:n[s];t[a]=!0}}function bS(t,e,n,r){const s=t._adapter,a=+s.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=a;i<=o;i=+s.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function pp(t,e,n){const r=[],s={},a=e.length;let o,i;for(o=0;o<a;++o)i=e[o],s[i]=o,r.push({value:i,major:!1});return a===0||!n?r:bS(t,r,s,n)}class Oi extends yi{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,n={}){const r=e.time||(e.time={}),s=this._adapter=new W3._date(e.adapters.date);s.init(n),xa(r.displayFormats,s.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:hp(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:s,max:a,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!i&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=Hn(s)&&!isNaN(s)?s:+n.startOf(Date.now(),r),a=Hn(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,s=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const a=this.min,o=this.max,i=A_(s,a,o);return this._unit=n.unit||(r.autoSkip?gp(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):mS(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:pS(this._unit),this.initOffsets(s),e.reverse&&i.reverse(),pp(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,s,a;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=qt(n,0,o),r=qt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,s=this.options,a=s.time,o=a.unit||gp(a.minUnit,n,r,this._getLabelCapacity(n)),i=Ee(s.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=ai(l)||l===!0,d={};let u=n,h,g;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":o),e.diff(r,n,o)>1e5*i)throw new Error(n+" and "+r+" are too far apart with stepSize of "+i+" "+o);const m=s.ticks.source==="data"&&this.getDataTimestamps();for(h=u,g=0;h<r;h=+e.add(h,i,o),g++)mp(d,h,m);return(h===r||s.bounds==="ticks"||g===1)&&mp(d,h,m),Object.keys(d).sort(fp).map(p=>+p)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,a=this._unit,o=n||s[a];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,s){const a=this.options,o=a.ticks.callback;if(o)return We(o,[e,n,r],this);const i=a.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&i[l],u=c&&i[c],h=r[n],g=c&&u&&h&&h.major;return this._adapter.format(e,s||(g?u:d))}generateTickLabels(e){let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n],s.label=this._tickFormatFunction(s.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,s=Ar(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(s),o=Math.sin(s),i=this._resolveTickFontOptions(0).size;return{w:r*a+i*o,h:r*o+i*a}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,s=r[n.unit]||r.millisecond,a=this._tickFormatFunction(e,0,pp(this,[e],this._majorUnit),s),o=this._getLabelSize(a),i=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return i>0?i:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,r=s.length;n<r;++n)e=e.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const s=this.getLabels();for(n=0,r=s.length;n<r;++n)e.push(hp(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return L_(e.sort(fp))}}$(Oi,"id","time"),$(Oi,"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 Di(t,e,n){let r=0,s=t.length-1,a,o,i,l;n?(e>=t[r].pos&&e<=t[s].pos&&({lo:r,hi:s}=qc(t,"pos",e)),{pos:a,time:i}=t[r],{pos:o,time:l}=t[s]):(e>=t[r].time&&e<=t[s].time&&({lo:r,hi:s}=qc(t,"time",e)),{time:a,pos:i}=t[r],{time:o,pos:l}=t[s]);const c=o-a;return c?i+(l-i)*(e-a)/c:i}class bp extends Oi{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Di(n,this.min),this._tableRange=Di(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,s=[],a=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=s.length;o<i;++o)d=s[o+1],l=s[o-1],c=s[o],Math.round((d+l)/2)!==c&&a.push({time:c,pos:o/(i-1)});return a}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((s,a)=>s-a)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Di(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Di(this._table,r*this._tableRange+this._minPos,!0)}}$(bp,"id","timeseries"),$(bp,"defaults",Oi.defaults);const yp="label";function wp(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function yS(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function vp(t,e){t.labels=e}function xp(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yp;const r=[];t.datasets=e.map(s=>{const a=t.datasets.find(o=>o[n]===s[n]);return!a||!s.data||r.includes(a)?{...s}:(r.push(a),Object.assign(a,s),a)})}function wS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yp;const n={labels:[],datasets:[]};return vp(n,t.labels),xp(n,t.datasets,e),n}function vS(t,e){const{height:n=150,width:r=300,redraw:s=!1,datasetIdKey:a,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...h}=t,g=_.useRef(null),m=_.useRef(null),p=()=>{g.current&&(m.current=new ki(g.current,{type:o,data:wS(i,a),options:l&&{...l},plugins:c}),wp(e,m.current))},b=()=>{wp(e,null),m.current&&(m.current.destroy(),m.current=null)};return _.useEffect(()=>{!s&&m.current&&l&&yS(m.current,l)},[s,l]),_.useEffect(()=>{!s&&m.current&&vp(m.current.config.data,i.labels)},[s,i.labels]),_.useEffect(()=>{!s&&m.current&&i.datasets&&xp(m.current.config.data,i.datasets,a)},[s,i.datasets]),_.useEffect(()=>{m.current&&(s?(b(),setTimeout(p)):m.current.update(u))},[s,l,i.labels,i.datasets,u]),_.useEffect(()=>{m.current&&(b(),setTimeout(p))},[o]),_.useEffect(()=>(p(),()=>b()),[]),_.createElement("canvas",{ref:g,role:"img",height:n,width:r,...h},d)}const xS=_.forwardRef(vS);function kS(t,e){return ki.register(e),_.forwardRef((n,r)=>_.createElement(xS,{...n,ref:r,type:t}))}const _S=kS("doughnut",Ea);ki.register(La,gS,oS);const kp=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),CS=({dataProps:t})=>{const e=t,n={responsive:!0,maintainAspectRatio:!1,cutout:`${t.cutout}%`,plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right",labels:{usePointStyle:!0,pointStyle:"circle",padding:15}},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:kp(e.datasets[0].data.reduce((a,o)=>a+o,0)),font:{size:"15"}}]}}},r={id:"textCenter",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l,height:c}}=a,d="Total",u=kp(e.datasets[0].data[1]),h=i+c*.75;o.save(),o.font="20px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(d,l/2,h-20),o.font=`bold ${t.fontSize}px Arial`,o.fillText(u,l/2,h+10),o.restore()}},s={id:"currencyLabel",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l}}=a;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+30),o.restore()}};return f.jsx("div",{children:f.jsx(_S,{data:e,options:n,plugins:[r,s]})})},xd={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function SS(t){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(t)}function OS(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)}const _p=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto",closeOnOverlayClick:s,isCloseButtonVisible:a=!0},o)=>{if(!t)return null;const i=s??!a,l=()=>{i&&e()};return f.jsx("div",{className:xd.overlay,onClick:l,children:f.jsxs("div",{ref:o,className:xd.modal,style:{width:r},onClick:c=>c.stopPropagation(),children:[a&&f.jsx("button",{onClick:e,className:xd.closeButton,children:f.jsx(OS,{})}),n]})})});/*! *****************************************************************************
|
|
26
26
|
Copyright (c) Microsoft Corporation.
|
|
27
27
|
|
|
28
28
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -35,33 +35,33 @@
|
|
|
35
35
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
36
36
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37
37
|
PERFORMANCE OF THIS SOFTWARE.
|
|
38
|
-
***************************************************************************** */var Bt=function(){return Bt=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Bt.apply(this,arguments)};function zr(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function vt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function kd(){return kd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},kd.apply(this,arguments)}function Mi(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var
|
|
39
|
-
`+r+"\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||!a}if(this.isSpeedy){var o=CD(s);try{o.insertRule(r,o.cssRules.length)}catch(i){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(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',i)}}else s.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),xt="-ms-",Ei="-moz-",xe="-webkit-",_d="comm",Sd="rule",Cd="decl",MD="@import",_0="@keyframes",ED=Math.abs,Ti=String.fromCharCode,TD=Object.assign;function PD(t,e){return pt(t,0)^45?(((e<<2^pt(t,0))<<2^pt(t,1))<<2^pt(t,2))<<2^pt(t,3):0}function S0(t){return t.trim()}function ND(t,e){return(t=e.exec(t))?t[0]:t}function Oe(t,e,n){return t.replace(e,n)}function Od(t,e){return t.indexOf(e)}function pt(t,e){return t.charCodeAt(e)|0}function Ba(t,e,n){return t.slice(e,n)}function kn(t){return t.length}function Dd(t){return t.length}function Pi(t,e){return e.push(t),t}function jD(t,e){return t.map(e).join("")}var Ni=1,Es=1,C0=0,Nt=0,rt=0,Ts="";function ji(t,e,n,r,s,a,o){return{value:t,root:e,parent:n,type:r,props:s,children:a,line:Ni,column:Es,length:o,return:""}}function Wa(t,e){return TD(ji("",null,null,"",null,null,0),t,{length:-t.length},e)}function ID(){return rt}function AD(){return rt=Nt>0?pt(Ts,--Nt):0,Es--,rt===10&&(Es=1,Ni--),rt}function Wt(){return rt=Nt<C0?pt(Ts,Nt++):0,Es++,rt===10&&(Es=1,Ni++),rt}function _n(){return pt(Ts,Nt)}function Ii(){return Nt}function za(t,e){return Ba(Ts,t,e)}function Ha(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 O0(t){return Ni=Es=1,C0=kn(Ts=t),Nt=0,[]}function D0(t){return Ts="",t}function Ai(t){return S0(za(Nt-1,Md(t===91?t+2:t===40?t+1:t)))}function RD(t){for(;(rt=_n())&&rt<33;)Wt();return Ha(t)>2||Ha(rt)>3?"":" "}function LD(t,e){for(;--e&&Wt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return za(t,Ii()+(e<6&&_n()==32&&Wt()==32))}function Md(t){for(;Wt();)switch(rt){case t:return Nt;case 34:case 39:t!==34&&t!==39&&Md(rt);break;case 40:t===41&&Md(t);break;case 92:Wt();break}return Nt}function FD(t,e){for(;Wt()&&t+rt!==57;)if(t+rt===84&&_n()===47)break;return"/*"+za(e,Nt-1)+"*"+Ti(t===47?t:Wt())}function BD(t){for(;!Ha(_n());)Wt();return za(t,Nt)}function M0(t){return D0(Ri("",null,null,null,[""],t=O0(t),0,[0],t))}function Ri(t,e,n,r,s,a,o,i,l){for(var c=0,d=0,u=o,g=0,h=0,p=0,m=1,b=1,y=1,v=0,k="",w=s,x=a,S=r,P=k;b;)switch(p=v,v=Wt()){case 40:if(p!=108&&pt(P,u-1)==58){Od(P+=Oe(Ai(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:P+=Ai(v);break;case 9:case 10:case 13:case 32:P+=RD(p);break;case 92:P+=LD(Ii()-1,7);continue;case 47:switch(_n()){case 42:case 47:Pi(WD(FD(Wt(),Ii()),e,n),l);break;default:P+="/"}break;case 123*m:i[c++]=kn(P)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:h>0&&kn(P)-u&&Pi(h>32?T0(P+";",r,n,u-1):T0(Oe(P," ","")+";",r,n,u-2),l);break;case 59:P+=";";default:if(Pi(S=E0(P,e,n,c,d,s,i,k,w=[],x=[],u),a),v===123)if(d===0)Ri(P,e,S,S,w,a,u,i,x);else switch(g===99&&pt(P,3)===110?100:g){case 100:case 109:case 115:Ri(t,S,S,r&&Pi(E0(t,S,S,0,0,s,i,k,s,w=[],u),x),s,x,u,i,r?w:x);break;default:Ri(P,S,S,S,[""],x,0,i,x)}}c=d=h=0,m=y=1,k=P="",u=o;break;case 58:u=1+kn(P),h=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&AD()==125)continue}switch(P+=Ti(v),v*m){case 38:y=d>0?1:(P+="\f",-1);break;case 44:i[c++]=(kn(P)-1)*y,y=1;break;case 64:_n()===45&&(P+=Ai(Wt())),g=_n(),d=u=kn(k=P+=BD(Ii())),v++;break;case 45:p===45&&kn(P)==2&&(m=0)}}return a}function E0(t,e,n,r,s,a,o,i,l,c,d){for(var u=s-1,g=s===0?a:[""],h=Dd(g),p=0,m=0,b=0;p<r;++p)for(var y=0,v=Ba(t,u+1,u=ED(m=o[p])),k=t;y<h;++y)(k=S0(m>0?g[y]+" "+v:Oe(v,/&\f/g,g[y])))&&(l[b++]=k);return ji(t,e,n,s===0?Sd:i,l,c,d)}function WD(t,e,n){return ji(t,e,n,_d,Ti(ID()),Ba(t,2,-2),0)}function T0(t,e,n,r){return ji(t,e,n,Cd,Ba(t,0,r),Ba(t,r+1,-1),r)}function Hr(t,e){for(var n="",r=Dd(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function P0(t,e,n,r){switch(t.type){case MD:case Cd:return t.return=t.return||t.value;case _d:return"";case _0:return t.return=t.value+"{"+Hr(t.children,r)+"}";case Sd:t.value=t.props.join(",")}return kn(n=Hr(t.children,r))?t.return=t.value+"{"+n+"}":""}function N0(t){var e=Dd(t);return function(n,r,s,a){for(var o="",i=0;i<e;i++)o+=t[i](n,r,s,a)||"";return o}}function zD(t){return function(e){e.root||(e=e.return)&&t(e)}}var HD=function(e){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var s=e(r);return n.set(r,s),s}},YD=function(e,n,r){for(var s=0,a=0;s=a,a=_n(),s===38&&a===12&&(n[r]=1),!Ha(a);)Wt();return za(e,Nt)},VD=function(e,n){var r=-1,s=44;do switch(Ha(s)){case 0:s===38&&_n()===12&&(n[r]=1),e[r]+=YD(Nt-1,n,r);break;case 2:e[r]+=Ai(s);break;case 4:if(s===44){e[++r]=_n()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Ti(s)}while(s=Wt());return e},UD=function(e,n){return D0(VD(O0(e),n))},j0=new WeakMap,XD=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!j0.get(r))&&!s){j0.set(e,!0);for(var a=[],o=UD(n,a),i=r.props,l=0,c=0;l<o.length;l++)for(var d=0;d<i.length;d++,c++)e.props[c]=a[l]?o[l].replace(/&\f/g,i[d]):i[d]+" "+o[l]}}},GD=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},KD="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",QD=function(e){return e.type==="comm"&&e.children.indexOf(KD)>-1},ZD=function(e){return function(n,r,s){if(!(n.type!=="rule"||e.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=n.parent===s[0],i=o?s[0].children:s,l=i.length-1;l>=0;l--){var c=i[l];if(c.line<n.line)break;if(c.column<n.column){if(QD(c))return;break}}a.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".')})}}}},I0=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},JD=function(e,n){for(var r=e-1;r>=0;r--)if(!I0(n[r]))return!0;return!1},A0=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},qD=function(e,n,r){I0(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."),A0(e)):JD(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),A0(e)))};function R0(t,e){switch(PD(t,e)){case 5103:return xe+"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 xe+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return xe+t+Ei+t+xt+t+t;case 6828:case 4268:return xe+t+xt+t+t;case 6165:return xe+t+xt+"flex-"+t+t;case 5187:return xe+t+Oe(t,/(\w+).+(:[^]+)/,xe+"box-$1$2"+xt+"flex-$1$2")+t;case 5443:return xe+t+xt+"flex-item-"+Oe(t,/flex-|-self/,"")+t;case 4675:return xe+t+xt+"flex-line-pack"+Oe(t,/align-content|flex-|-self/,"")+t;case 5548:return xe+t+xt+Oe(t,"shrink","negative")+t;case 5292:return xe+t+xt+Oe(t,"basis","preferred-size")+t;case 6060:return xe+"box-"+Oe(t,"-grow","")+xe+t+xt+Oe(t,"grow","positive")+t;case 4554:return xe+Oe(t,/([^-])(transform)/g,"$1"+xe+"$2")+t;case 6187:return Oe(Oe(Oe(t,/(zoom-|grab)/,xe+"$1"),/(image-set)/,xe+"$1"),t,"")+t;case 5495:case 3959:return Oe(t,/(image-set\([^]*)/,xe+"$1$`$1");case 4968:return Oe(Oe(t,/(.+:)(flex-)?(.*)/,xe+"box-pack:$3"+xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xe+t+t;case 4095:case 3583:case 4068:case 2532:return Oe(t,/(.+)-inline(.+)/,xe+"$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(kn(t)-1-e>6)switch(pt(t,e+1)){case 109:if(pt(t,e+4)!==45)break;case 102:return Oe(t,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+Ei+(pt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Od(t,"stretch")?R0(Oe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(pt(t,e+1)!==115)break;case 6444:switch(pt(t,kn(t)-3-(~Od(t,"!important")&&10))){case 107:return Oe(t,":",":"+xe)+t;case 101:return Oe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xe+(pt(t,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+xt+"$2box$3")+t}break;case 5936:switch(pt(t,e+11)){case 114:return xe+t+xt+Oe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return xe+t+xt+Oe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return xe+t+xt+Oe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return xe+t+xt+t+t}return t}var $D=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case Cd:e.return=R0(e.value,e.length);break;case _0:return Hr([Wa(e,{value:Oe(e.value,"@","@"+xe)})],s);case Sd:if(e.length)return jD(e.props,function(a){switch(ND(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hr([Wa(e,{props:[Oe(a,/:(read-\w+)/,":"+Ei+"$1")]})],s);case"::placeholder":return Hr([Wa(e,{props:[Oe(a,/:(plac\w+)/,":"+xe+"input-$1")]}),Wa(e,{props:[Oe(a,/:(plac\w+)/,":"+Ei+"$1")]}),Wa(e,{props:[Oe(a,/:(plac\w+)/,xt+"input-$1")]})],s)}return""})}},Li=typeof document<"u",eM=Li?void 0:HD(function(){return Mi(function(){var t={};return function(e){return t[e]}})}),tM=[$D],L0=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)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.
|
|
40
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(Li&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var x=w.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var s=e.stylisPlugins||
|
|
38
|
+
***************************************************************************** */var Bt=function(){return Bt=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Bt.apply(this,arguments)};function zr(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function vt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function kd(){return kd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},kd.apply(this,arguments)}function Mi(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var DS=/^((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)-.*))$/,MS=Mi(function(t){return DS.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function ES(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 TS(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 PS=function(){function t(n){var r=this;this._insertTag=function(s){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,a),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(TS(this));var s=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
39
|
+
`+r+"\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||!a}if(this.isSpeedy){var o=ES(s);try{o.insertRule(r,o.cssRules.length)}catch(i){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(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',i)}}else s.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),xt="-ms-",Ei="-moz-",xe="-webkit-",_d="comm",Cd="rule",Sd="decl",NS="@import",Cp="@keyframes",jS=Math.abs,Ti=String.fromCharCode,IS=Object.assign;function AS(t,e){return pt(t,0)^45?(((e<<2^pt(t,0))<<2^pt(t,1))<<2^pt(t,2))<<2^pt(t,3):0}function Sp(t){return t.trim()}function RS(t,e){return(t=e.exec(t))?t[0]:t}function Oe(t,e,n){return t.replace(e,n)}function Od(t,e){return t.indexOf(e)}function pt(t,e){return t.charCodeAt(e)|0}function Ba(t,e,n){return t.slice(e,n)}function kn(t){return t.length}function Dd(t){return t.length}function Pi(t,e){return e.push(t),t}function LS(t,e){return t.map(e).join("")}var Ni=1,Es=1,Op=0,Nt=0,rt=0,Ts="";function ji(t,e,n,r,s,a,o){return{value:t,root:e,parent:n,type:r,props:s,children:a,line:Ni,column:Es,length:o,return:""}}function Wa(t,e){return IS(ji("",null,null,"",null,null,0),t,{length:-t.length},e)}function FS(){return rt}function BS(){return rt=Nt>0?pt(Ts,--Nt):0,Es--,rt===10&&(Es=1,Ni--),rt}function Wt(){return rt=Nt<Op?pt(Ts,Nt++):0,Es++,rt===10&&(Es=1,Ni++),rt}function _n(){return pt(Ts,Nt)}function Ii(){return Nt}function za(t,e){return Ba(Ts,t,e)}function Ha(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 Dp(t){return Ni=Es=1,Op=kn(Ts=t),Nt=0,[]}function Mp(t){return Ts="",t}function Ai(t){return Sp(za(Nt-1,Md(t===91?t+2:t===40?t+1:t)))}function WS(t){for(;(rt=_n())&&rt<33;)Wt();return Ha(t)>2||Ha(rt)>3?"":" "}function zS(t,e){for(;--e&&Wt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return za(t,Ii()+(e<6&&_n()==32&&Wt()==32))}function Md(t){for(;Wt();)switch(rt){case t:return Nt;case 34:case 39:t!==34&&t!==39&&Md(rt);break;case 40:t===41&&Md(t);break;case 92:Wt();break}return Nt}function HS(t,e){for(;Wt()&&t+rt!==57;)if(t+rt===84&&_n()===47)break;return"/*"+za(e,Nt-1)+"*"+Ti(t===47?t:Wt())}function YS(t){for(;!Ha(_n());)Wt();return za(t,Nt)}function Ep(t){return Mp(Ri("",null,null,null,[""],t=Dp(t),0,[0],t))}function Ri(t,e,n,r,s,a,o,i,l){for(var c=0,d=0,u=o,h=0,g=0,m=0,p=1,b=1,y=1,v=0,k="",w=s,x=a,C=r,N=k;b;)switch(m=v,v=Wt()){case 40:if(m!=108&&pt(N,u-1)==58){Od(N+=Oe(Ai(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=Ai(v);break;case 9:case 10:case 13:case 32:N+=WS(m);break;case 92:N+=zS(Ii()-1,7);continue;case 47:switch(_n()){case 42:case 47:Pi(VS(HS(Wt(),Ii()),e,n),l);break;default:N+="/"}break;case 123*p:i[c++]=kn(N)*y;case 125*p:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:g>0&&kn(N)-u&&Pi(g>32?Pp(N+";",r,n,u-1):Pp(Oe(N," ","")+";",r,n,u-2),l);break;case 59:N+=";";default:if(Pi(C=Tp(N,e,n,c,d,s,i,k,w=[],x=[],u),a),v===123)if(d===0)Ri(N,e,C,C,w,a,u,i,x);else switch(h===99&&pt(N,3)===110?100:h){case 100:case 109:case 115:Ri(t,C,C,r&&Pi(Tp(t,C,C,0,0,s,i,k,s,w=[],u),x),s,x,u,i,r?w:x);break;default:Ri(N,C,C,C,[""],x,0,i,x)}}c=d=g=0,p=y=1,k=N="",u=o;break;case 58:u=1+kn(N),g=m;default:if(p<1){if(v==123)--p;else if(v==125&&p++==0&&BS()==125)continue}switch(N+=Ti(v),v*p){case 38:y=d>0?1:(N+="\f",-1);break;case 44:i[c++]=(kn(N)-1)*y,y=1;break;case 64:_n()===45&&(N+=Ai(Wt())),h=_n(),d=u=kn(k=N+=YS(Ii())),v++;break;case 45:m===45&&kn(N)==2&&(p=0)}}return a}function Tp(t,e,n,r,s,a,o,i,l,c,d){for(var u=s-1,h=s===0?a:[""],g=Dd(h),m=0,p=0,b=0;m<r;++m)for(var y=0,v=Ba(t,u+1,u=jS(p=o[m])),k=t;y<g;++y)(k=Sp(p>0?h[y]+" "+v:Oe(v,/&\f/g,h[y])))&&(l[b++]=k);return ji(t,e,n,s===0?Cd:i,l,c,d)}function VS(t,e,n){return ji(t,e,n,_d,Ti(FS()),Ba(t,2,-2),0)}function Pp(t,e,n,r){return ji(t,e,n,Sd,Ba(t,0,r),Ba(t,r+1,-1),r)}function Hr(t,e){for(var n="",r=Dd(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function Np(t,e,n,r){switch(t.type){case NS:case Sd:return t.return=t.return||t.value;case _d:return"";case Cp:return t.return=t.value+"{"+Hr(t.children,r)+"}";case Cd:t.value=t.props.join(",")}return kn(n=Hr(t.children,r))?t.return=t.value+"{"+n+"}":""}function jp(t){var e=Dd(t);return function(n,r,s,a){for(var o="",i=0;i<e;i++)o+=t[i](n,r,s,a)||"";return o}}function US(t){return function(e){e.root||(e=e.return)&&t(e)}}var XS=function(e){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var s=e(r);return n.set(r,s),s}},GS=function(e,n,r){for(var s=0,a=0;s=a,a=_n(),s===38&&a===12&&(n[r]=1),!Ha(a);)Wt();return za(e,Nt)},KS=function(e,n){var r=-1,s=44;do switch(Ha(s)){case 0:s===38&&_n()===12&&(n[r]=1),e[r]+=GS(Nt-1,n,r);break;case 2:e[r]+=Ai(s);break;case 4:if(s===44){e[++r]=_n()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Ti(s)}while(s=Wt());return e},ZS=function(e,n){return Mp(KS(Dp(e),n))},Ip=new WeakMap,QS=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Ip.get(r))&&!s){Ip.set(e,!0);for(var a=[],o=ZS(n,a),i=r.props,l=0,c=0;l<o.length;l++)for(var d=0;d<i.length;d++,c++)e.props[c]=a[l]?o[l].replace(/&\f/g,i[d]):i[d]+" "+o[l]}}},JS=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},qS="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",$S=function(e){return e.type==="comm"&&e.children.indexOf(qS)>-1},e4=function(e){return function(n,r,s){if(!(n.type!=="rule"||e.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=n.parent===s[0],i=o?s[0].children:s,l=i.length-1;l>=0;l--){var c=i[l];if(c.line<n.line)break;if(c.column<n.column){if($S(c))return;break}}a.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".')})}}}},Ap=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},t4=function(e,n){for(var r=e-1;r>=0;r--)if(!Ap(n[r]))return!0;return!1},Rp=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},n4=function(e,n,r){Ap(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."),Rp(e)):t4(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Rp(e)))};function Lp(t,e){switch(AS(t,e)){case 5103:return xe+"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 xe+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return xe+t+Ei+t+xt+t+t;case 6828:case 4268:return xe+t+xt+t+t;case 6165:return xe+t+xt+"flex-"+t+t;case 5187:return xe+t+Oe(t,/(\w+).+(:[^]+)/,xe+"box-$1$2"+xt+"flex-$1$2")+t;case 5443:return xe+t+xt+"flex-item-"+Oe(t,/flex-|-self/,"")+t;case 4675:return xe+t+xt+"flex-line-pack"+Oe(t,/align-content|flex-|-self/,"")+t;case 5548:return xe+t+xt+Oe(t,"shrink","negative")+t;case 5292:return xe+t+xt+Oe(t,"basis","preferred-size")+t;case 6060:return xe+"box-"+Oe(t,"-grow","")+xe+t+xt+Oe(t,"grow","positive")+t;case 4554:return xe+Oe(t,/([^-])(transform)/g,"$1"+xe+"$2")+t;case 6187:return Oe(Oe(Oe(t,/(zoom-|grab)/,xe+"$1"),/(image-set)/,xe+"$1"),t,"")+t;case 5495:case 3959:return Oe(t,/(image-set\([^]*)/,xe+"$1$`$1");case 4968:return Oe(Oe(t,/(.+:)(flex-)?(.*)/,xe+"box-pack:$3"+xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xe+t+t;case 4095:case 3583:case 4068:case 2532:return Oe(t,/(.+)-inline(.+)/,xe+"$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(kn(t)-1-e>6)switch(pt(t,e+1)){case 109:if(pt(t,e+4)!==45)break;case 102:return Oe(t,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+Ei+(pt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Od(t,"stretch")?Lp(Oe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(pt(t,e+1)!==115)break;case 6444:switch(pt(t,kn(t)-3-(~Od(t,"!important")&&10))){case 107:return Oe(t,":",":"+xe)+t;case 101:return Oe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xe+(pt(t,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+xt+"$2box$3")+t}break;case 5936:switch(pt(t,e+11)){case 114:return xe+t+xt+Oe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return xe+t+xt+Oe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return xe+t+xt+Oe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return xe+t+xt+t+t}return t}var r4=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case Sd:e.return=Lp(e.value,e.length);break;case Cp:return Hr([Wa(e,{value:Oe(e.value,"@","@"+xe)})],s);case Cd:if(e.length)return LS(e.props,function(a){switch(RS(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hr([Wa(e,{props:[Oe(a,/:(read-\w+)/,":"+Ei+"$1")]})],s);case"::placeholder":return Hr([Wa(e,{props:[Oe(a,/:(plac\w+)/,":"+xe+"input-$1")]}),Wa(e,{props:[Oe(a,/:(plac\w+)/,":"+Ei+"$1")]}),Wa(e,{props:[Oe(a,/:(plac\w+)/,xt+"input-$1")]})],s)}return""})}},Li=typeof document<"u",s4=Li?void 0:XS(function(){return Mi(function(){var t={};return function(e){return t[e]}})}),a4=[r4],Fp=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)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.
|
|
40
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(Li&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var x=w.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var s=e.stylisPlugins||a4;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},o,i=[];Li&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var x=w.getAttribute("data-emotion").split(" "),C=1;C<x.length;C++)a[x[C]]=!0;i.push(w)}));var l,c=[QS,JS];if(process.env.NODE_ENV!=="production"&&c.push(e4({get compat(){return k.compat}}),n4),Li){var d,u=[Np,process.env.NODE_ENV!=="production"?function(w){w.root||(w.return?d.insert(w.return):w.value&&w.type!==_d&&d.insert(w.value+"{}"))}:US(function(w){d.insert(w)})],h=jp(c.concat(s,u)),g=function(x){return Hr(Ep(x),h)};l=function(x,C,N,M){d=N,process.env.NODE_ENV!=="production"&&C.map!==void 0&&(d={insert:function(S){N.insert(S+C.map)}}),g(x?x+"{"+C.styles+"}":C.styles),M&&(k.inserted[C.name]=!0)}}else{var m=[Np],p=jp(c.concat(s,m)),b=function(x){return Hr(Ep(x),p)},y=s4(s)(n),v=function(x,C){var N=C.name;return y[N]===void 0&&(y[N]=b(x?x+"{"+C.styles+"}":C.styles)),y[N]};l=function(x,C,N,M){var P=C.name,S=v(x,C);if(k.compat===void 0)return M&&(k.inserted[P]=!0),process.env.NODE_ENV==="development"&&C.map!==void 0?S+C.map:S;if(M)k.inserted[P]=S;else return S}}var k={key:n,sheet:new PS({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:l};return k.sheet.hydrate(i),k},Ed=typeof document<"u";function o4(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var Bp=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||Ed===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},i4=function(e,n,r){Bp(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!Ed&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!Ed&&a.length!==0)return a}};function l4(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&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 c4={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},Wp=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
41
41
|
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';".
|
|
42
42
|
You can read more about this here:
|
|
43
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
43
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,d4="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",u4=/[A-Z]|^ms/g,zp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Td=function(e){return e.charCodeAt(1)===45},Hp=function(e){return e!=null&&typeof e!="boolean"},Pd=Mi(function(t){return Td(t)?t:t.replace(u4,"-$&").toLowerCase()}),Fi=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(zp,function(r,s,a){return on={name:s,styles:a,next:on},s})}return c4[e]!==1&&!Td(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var f4=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,h4=["normal","none","initial","inherit","unset"],g4=Fi,m4=/^-ms-/,p4=/-(.)/g,Yp={};Fi=function(e,n){if(e==="content"&&(typeof n!="string"||h4.indexOf(n)===-1&&!f4.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=g4(e,n);return r!==""&&!Td(e)&&e.indexOf("-")!==-1&&Yp[e]===void 0&&(Yp[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(m4,"ms-").replace(p4,function(s,a){return a.toUpperCase()})+"?")),r}}var Vp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ya(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Vp);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return on={name:n.name,styles:n.styles,next:on},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)on={name:r.name,styles:r.styles,next:on},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return b4(t,e,n)}case"function":{if(t!==void 0){var a=on,o=n(t);return on=a,Ya(t,e,o)}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 i=[],l=n.replace(zp,function(c,d,u){var h="animation"+i.length;return i.push("const "+h+" = keyframes`"+u.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
|
|
44
44
|
`)+`
|
|
45
45
|
|
|
46
46
|
You should wrap it with \`css\` like this:
|
|
47
47
|
|
|
48
|
-
`+("css`"+l+"`"))}break}return n}function
|
|
48
|
+
`+("css`"+l+"`"))}break}return n}function b4(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ya(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")Hp(o)&&(r+=Pd(a)+":"+Fi(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Vp);if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var i=0;i<o.length;i++)Hp(o[i])&&(r+=Pd(a)+":"+Fi(a,o[i])+";");else{var l=Ya(t,e,o);switch(a){case"animation":case"animationName":{r+=Pd(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(d4),r+=a+"{"+l+"}"}}}}return r}var Up=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Xp;process.env.NODE_ENV!=="production"&&(Xp=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var on,Gp=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";on=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=Ya(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(Wp),a+=o[0]);for(var i=1;i<e.length;i++)a+=Ya(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(Wp),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(Xp,function(h){return l=h,""})),Up.lastIndex=0;for(var c="",d;(d=Up.exec(a))!==null;)c+="-"+d[1];var u=l4(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:on,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:a,next:on}},y4=typeof document<"u",Kp=function(e){return e()},w4=W.useInsertionEffect?W.useInsertionEffect:!1,Zp=y4&&w4||Kp,Qp=typeof document<"u",v4={}.hasOwnProperty,Va=_.createContext(typeof HTMLElement<"u"?Fp({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Va.displayName="EmotionCacheContext"),Va.Provider;var Nd=function(e){return _.forwardRef(function(n,r){var s=_.useContext(Va);return e(n,s,r)})};Qp||(Nd=function(e){return function(n){var r=_.useContext(Va);return r===null?(r=Fp({key:"css"}),_.createElement(Va.Provider,{value:r},e(n,r))):e(n,r)}});var jd=_.createContext({});process.env.NODE_ENV!=="production"&&(jd.displayName="EmotionThemeContext");var Jp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",qp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",x4=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;Bp(n,r,s);var a=Zp(function(){return i4(n,r,s)});if(!Qp&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},k4=Nd(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var s=t[Jp],a=[r],o="";typeof t.className=="string"?o=o4(e.registered,a,t.className):t.className!=null&&(o=t.className+" ");var i=Gp(a,void 0,_.useContext(jd));if(process.env.NODE_ENV!=="production"&&i.name.indexOf("-")===-1){var l=t[qp];l&&(i=Gp([i,"label:"+l+";"]))}o+=e.key+"-"+i.name;var c={};for(var d in t)v4.call(t,d)&&d!=="css"&&d!==Jp&&(process.env.NODE_ENV==="production"||d!==qp)&&(c[d]=t[d]);return c.ref=n,c.className=o,_.createElement(_.Fragment,null,_.createElement(x4,{cache:e,serialized:i,isStringTag:typeof s=="string"}),_.createElement(s,c))});process.env.NODE_ENV!=="production"&&(k4.displayName="EmotionCssPropInternal");var Id=typeof document<"u";function _4(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var $p=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||Id===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},C4=function(e,n,r){$p(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!Id&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!Id&&a.length!==0)return a}};function S4(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&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 O4={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},eb=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
49
49
|
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';".
|
|
50
50
|
You can read more about this here:
|
|
51
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
51
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,D4="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",M4=/[A-Z]|^ms/g,tb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ad=function(e){return e.charCodeAt(1)===45},nb=function(e){return e!=null&&typeof e!="boolean"},Rd=Mi(function(t){return Ad(t)?t:t.replace(M4,"-$&").toLowerCase()}),Bi=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(tb,function(r,s,a){return ln={name:s,styles:a,next:ln},s})}return O4[e]!==1&&!Ad(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var E4=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,T4=["normal","none","initial","inherit","unset"],P4=Bi,N4=/^-ms-/,j4=/-(.)/g,rb={};Bi=function(e,n){if(e==="content"&&(typeof n!="string"||T4.indexOf(n)===-1&&!E4.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=P4(e,n);return r!==""&&!Ad(e)&&e.indexOf("-")!==-1&&rb[e]===void 0&&(rb[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(N4,"ms-").replace(j4,function(s,a){return a.toUpperCase()})+"?")),r}}var sb="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ua(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(sb);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ln={name:n.name,styles:n.styles,next:ln},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ln={name:r.name,styles:r.styles,next:ln},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return I4(t,e,n)}case"function":{if(t!==void 0){var a=ln,o=n(t);return ln=a,Ua(t,e,o)}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 i=[],l=n.replace(tb,function(d,u,h){var g="animation"+i.length;return i.push("const "+g+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+g+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
|
|
52
52
|
`)+`
|
|
53
53
|
|
|
54
54
|
You should wrap it with \`css\` like this:
|
|
55
55
|
|
|
56
|
-
`+("css`"+l+"`"))}break}if(e==null)return n;var c=e[n];return c!==void 0?c:n}function
|
|
56
|
+
`+("css`"+l+"`"))}break}if(e==null)return n;var c=e[n];return c!==void 0?c:n}function I4(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ua(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=a+"{"+e[o]+"}":nb(o)&&(r+=Rd(a)+":"+Bi(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(sb);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var i=0;i<o.length;i++)nb(o[i])&&(r+=Rd(a)+":"+Bi(a,o[i])+";");else{var l=Ua(t,e,o);switch(a){case"animation":case"animationName":{r+=Rd(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(D4),r+=a+"{"+l+"}"}}}}return r}var ab=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ob;process.env.NODE_ENV!=="production"&&(ob=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ln,A4=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";ln=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=Ua(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(eb),a+=o[0]);for(var i=1;i<e.length;i++)a+=Ua(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(eb),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(ob,function(h){return l=h,""})),ab.lastIndex=0;for(var c="",d;(d=ab.exec(a))!==null;)c+="-"+d[1];var u=S4(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:ln,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:a,next:ln}},R4=MS,L4=function(e){return e!=="theme"},ib=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?R4:L4},lb=function(e,n,r){var s;if(n){var a=n.shouldForwardProp;s=e.__emotion_forwardProp&&a?function(o){return e.__emotion_forwardProp(o)&&a(o)}:a}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},cb=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
57
57
|
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';".
|
|
58
58
|
You can read more about this here:
|
|
59
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
60
|
-
You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,a,o;n!==void 0&&(a=n.label,o=n.target);var i=
|
|
59
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,F4=typeof document<"u",B4=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;$p(n,r,s);var a=Zp(function(){return C4(n,r,s)});if(!F4&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},W4=function t(e,n){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
60
|
+
You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,a,o;n!==void 0&&(a=n.label,o=n.target);var i=lb(e,n,r),l=i||ib(s),c=!l("as");return function(){var d=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),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(cb),u.push(d[0][0]);for(var h=d.length,g=1;g<h;g++)process.env.NODE_ENV!=="production"&&d[0][g]===void 0&&console.error(cb),u.push(d[g],d[0][g])}var m=Nd(function(p,b,y){var v=c&&p.as||s,k="",w=[],x=p;if(p.theme==null){x={};for(var C in p)x[C]=p[C];x.theme=_.useContext(jd)}typeof p.className=="string"?k=_4(b.registered,w,p.className):p.className!=null&&(k=p.className+" ");var N=A4(u.concat(w),b.registered,x);k+=b.key+"-"+N.name,o!==void 0&&(k+=" "+o);var M=c&&i===void 0?ib(v):l,P={};for(var S in p)c&&S==="as"||M(S)&&(P[S]=p[S]);return P.className=k,P.ref=y,_.createElement(_.Fragment,null,_.createElement(B4,{cache:b,serialized:N,isStringTag:typeof v=="string"}),_.createElement(v,P))});return m.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",m.defaultProps=e.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=u,m.__emotion_forwardProp=i,Object.defineProperty(m,"toString",{value:function(){return o===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(p,b){return t(p,kd({},n,b,{shouldForwardProp:lb(m,b,!0)})).apply(void 0,u)},m}},z4=["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"],dt=W4.bind();z4.forEach(function(t){dt[t]=dt(t)});var db={exports:{}};/*!
|
|
61
61
|
Copyright (c) 2018 Jed Watson.
|
|
62
62
|
Licensed under the MIT License (MIT), see
|
|
63
63
|
http://jedwatson.github.io/classnames
|
|
64
|
-
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],s=0;s<arguments.length;s++){var a=arguments[s];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&r.push(i)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)e.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(
|
|
64
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],s=0;s<arguments.length;s++){var a=arguments[s];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&r.push(i)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)e.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(db);var lt=db.exports,H4=_.createContext(void 0),Y4=function(){var t=_.useContext(H4);return t},V4=function(t){var e=_.useState(!!t&&typeof window<"u"&&window.matchMedia(t).matches),n=e[0],r=e[1];return _.useEffect(function(){if(t){var s=window.matchMedia(t),a=function(){s.matches!==n&&r(s.matches)};return a(),s.addEventListener("change",a),function(){return s.removeEventListener("change",a)}}},[n,t]),n},Ue={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"},ke={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"},U4=dt.div(ub||(ub=vt([`
|
|
65
65
|
position: fixed;
|
|
66
66
|
top: 0px;
|
|
67
67
|
right: 0px;
|
|
@@ -77,7 +77,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
77
77
|
left: 0px;
|
|
78
78
|
z-index: 1;
|
|
79
79
|
background-color: rgb(0, 0, 0, 0.3);
|
|
80
|
-
`]))),
|
|
80
|
+
`]))),ub,X4={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},G4=dt.aside(fb||(fb=vt([`
|
|
81
81
|
position: relative;
|
|
82
82
|
border-right-width: 1px;
|
|
83
83
|
border-right-style: solid;
|
|
@@ -185,7 +185,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
`,`
|
|
188
|
-
`])),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},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},Ue.rtl,Ue.broken,function(t){var e=t.rtl,n=t.width;return e?"":"left: -".concat(n,";")},Ue.collapsed,function(t){var e=t.rtl,n=t.collapsedWidth;return e?"":"left: -".concat(n,"; ")},Ue.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},Ue.rtl,function(t){var e=t.width;return e},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},Ue.toggled,function(t){var e=t.rootStyles;return e}),
|
|
188
|
+
`])),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},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},Ue.rtl,Ue.broken,function(t){var e=t.rtl,n=t.width;return e?"":"left: -".concat(n,";")},Ue.collapsed,function(t){var e=t.rtl,n=t.collapsedWidth;return e?"":"left: -".concat(n,"; ")},Ue.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},Ue.rtl,function(t){var e=t.width;return e},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},Ue.toggled,function(t){var e=t.rootStyles;return e}),K4=dt.div(hb||(hb=vt([`
|
|
189
189
|
position: relative;
|
|
190
190
|
height: 100%;
|
|
191
191
|
overflow-y: auto;
|
|
@@ -201,7 +201,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
201
201
|
z-index: 3;
|
|
202
202
|
|
|
203
203
|
`,`
|
|
204
|
-
`])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),
|
|
204
|
+
`])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),Z4=dt.img(gb||(gb=vt([`
|
|
205
205
|
&.`,` {
|
|
206
206
|
width: 100%;
|
|
207
207
|
height: 100%;
|
|
@@ -223,7 +223,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
223
223
|
top: 0;
|
|
224
224
|
z-index: 2;
|
|
225
225
|
}
|
|
226
|
-
`])),Ue.image),Wi=_.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),
|
|
226
|
+
`])),Ue.image),Wi=_.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),Q4=_.forwardRef(function(t,e){var n,r=t.collapsed,s=t.toggled,a=t.onBackdropClick,o=t.onBreakPoint,i=t.width,l=i===void 0?"250px":i,c=t.collapsedWidth,d=c===void 0?"80px":c,u=t.defaultCollapsed,h=t.className,g=t.children,m=t.breakPoint,p=t.customBreakPoint,b=t.backgroundColor,y=b===void 0?"rgb(249, 249, 249, 0.7)":b,v=t.transitionDuration,k=v===void 0?300:v,w=t.image,x=t.rtl,C=t.rootStyles,N=zr(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),M=function(){if(p)return"(max-width: ".concat(p,")");if(m)return["xs","sm","md","lg","xl","xxl"].includes(m)?"(max-width: ".concat(X4[m],")"):m==="always"||m==="all"?(m==="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(m,")")},P=_.useRef();P.current=function(X){o==null||o(X)};var S=V4(M()),B=_.useState(!1),A=B[0],T=B[1],D=Y4(),j=r??(!A&&u?!0:D==null?void 0:D.collapsed),E=s??(D==null?void 0:D.toggled),Y=function(){a==null||a(),D==null||D.updateSidebarState({toggled:!1})};return _.useEffect(function(){var X;(X=P.current)===null||X===void 0||X.call(P,S)},[S]),_.useEffect(function(){D==null||D.updateSidebarState({broken:S,rtl:x,transitionDuration:k})},[S,D==null?void 0:D.updateSidebarState,x,k]),_.useEffect(function(){A||(D==null||D.updateSidebarState({collapsed:u}),T(!0))},[u,A,D==null?void 0:D.updateSidebarState]),_.createElement(Wi.Provider,{value:{collapsed:j,toggled:E,rtl:x,transitionDuration:k}},_.createElement(G4,Bt({ref:e,"data-testid":"".concat(Ue.root,"-test-id"),rtl:x,rootStyles:C,width:l,collapsedWidth:d,transitionDuration:k,className:lt(Ue.root,(n={},n[Ue.collapsed]=j,n[Ue.toggled]=E,n[Ue.broken]=S,n[Ue.rtl]=x,n),h)},N),_.createElement(K4,{"data-testid":"".concat(Ue.container,"-test-id"),className:Ue.container,backgroundColor:y},g),w&&_.createElement(Z4,{"data-testid":"".concat(Ue.image,"-test-id"),src:w,alt:"sidebar background",className:Ue.image}),S&&E&&_.createElement(U4,{"data-testid":"".concat(Ue.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:Y,onKeyPress:Y,className:Ue.backdrop})))}),fb,hb,gb,mb=dt.ul(pb||(pb=vt([`
|
|
227
227
|
list-style-type: none;
|
|
228
228
|
padding: 0;
|
|
229
229
|
margin: 0;
|
|
@@ -231,7 +231,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
231
231
|
list-style-type: none;
|
|
232
232
|
padding: 0;
|
|
233
233
|
margin: 0;
|
|
234
|
-
`]))),
|
|
234
|
+
`]))),pb,J4=dt.nav(yb||(yb=vt([`
|
|
235
235
|
&.`,` {
|
|
236
236
|
`,`
|
|
237
237
|
}
|
|
@@ -239,7 +239,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
239
239
|
&.`,` {
|
|
240
240
|
`,`
|
|
241
241
|
}
|
|
242
|
-
`])),ke.root,function(t){var e=t.rootStyles;return e}),
|
|
242
|
+
`])),ke.root,function(t){var e=t.rootStyles;return e}),bb=_.createContext(void 0),zi=_.createContext(0),q4=function(t,e){var n=t.children,r=t.className,s=t.transitionDuration,a=s===void 0?300:s,o=t.closeOnClick,i=o===void 0?!1:o,l=t.rootStyles,c=t.menuItemStyles,d=t.renderExpandIcon,u=zr(t,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),h=_.useMemo(function(){return{transitionDuration:a,closeOnClick:i,menuItemStyles:c,renderExpandIcon:d}},[a,i,c,d]);return _.createElement(bb.Provider,{value:h},_.createElement(zi.Provider,{value:0},_.createElement(J4,Bt({ref:e,className:lt(ke.root,r),rootStyles:l},u),_.createElement(mb,null,n))))},$4=_.forwardRef(q4),yb,Ld=function(){var t=_.useContext(bb);if(t===void 0)throw new Error("Menu Component is required!");return t},eO=dt.div(wb||(wb=vt([`
|
|
243
243
|
height: 0px;
|
|
244
244
|
overflow: hidden;
|
|
245
245
|
z-index: 999;
|
|
@@ -284,7 +284,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
284
284
|
`):`
|
|
285
285
|
position: static!important;
|
|
286
286
|
transform: none!important;
|
|
287
|
-
`},function(t){var e=t.rootStyles;return e}),
|
|
287
|
+
`},function(t){var e=t.rootStyles;return e}),tO=function(t,e){var n=t.children,r=t.open,s=t.openWhenCollapsed,a=t.firstLevel,o=t.collapsed,i=t.defaultOpen,l=zr(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=Ld().transitionDuration,d=_.useState(i)[0];return _.createElement(eO,Bt({"data-testid":"".concat(ke.subMenuContent,"-test-id"),ref:e,firstLevel:a,collapsed:o,open:r,openWhenCollapsed:s,transitionDuration:c,defaultOpen:d},l),_.createElement(mb,null,n))},nO=_.forwardRef(tO),wb,vb=dt.span(xb||(xb=vt([`
|
|
288
288
|
flex-grow: 1;
|
|
289
289
|
overflow: hidden;
|
|
290
290
|
text-overflow: ellipsis;
|
|
@@ -298,7 +298,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
298
298
|
white-space: nowrap;
|
|
299
299
|
|
|
300
300
|
`,`;
|
|
301
|
-
`])),function(t){var e=t.rootStyles;return e}),
|
|
301
|
+
`])),function(t){var e=t.rootStyles;return e}),xb,kb=dt.span(_b||(_b=vt([`
|
|
302
302
|
width: 35px;
|
|
303
303
|
min-width: 35px;
|
|
304
304
|
height: 35px;
|
|
@@ -328,7 +328,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
328
328
|
`,`
|
|
329
329
|
|
|
330
330
|
`,`;
|
|
331
|
-
`])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),
|
|
331
|
+
`])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),_b,Cb=dt.span(Sb||(Sb=vt([`
|
|
332
332
|
`,`
|
|
333
333
|
opacity: `,`;
|
|
334
334
|
transition: opacity `,`ms;
|
|
@@ -340,7 +340,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
340
340
|
transition: opacity `,`ms;
|
|
341
341
|
|
|
342
342
|
`,`;
|
|
343
|
-
`])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),Sb,
|
|
343
|
+
`])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),Sb,Ob=dt.span(Db||(Db=vt([`
|
|
344
344
|
margin-right: 5px;
|
|
345
345
|
margin-left: 5px;
|
|
346
346
|
opacity: `,`;
|
|
@@ -354,7 +354,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
354
354
|
transition: opacity `,`ms;
|
|
355
355
|
|
|
356
356
|
`,`;
|
|
357
|
-
`])),function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),
|
|
357
|
+
`])),function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),Db,rO=dt.span(Mb||(Mb=vt([`
|
|
358
358
|
`,`
|
|
359
359
|
|
|
360
360
|
`,`;
|
|
@@ -368,7 +368,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
368
368
|
top: 50%;
|
|
369
369
|
transform: translateY(-50%);
|
|
370
370
|
|
|
371
|
-
`)},function(t){var e=t.rootStyles;return e}),
|
|
371
|
+
`)},function(t){var e=t.rootStyles;return e}),sO=dt.span(Eb||(Eb=vt([`
|
|
372
372
|
display: inline-block;
|
|
373
373
|
transition: transform 0.3s;
|
|
374
374
|
`,`
|
|
@@ -389,7 +389,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
389
389
|
border-top: 2px solid currentcolor;
|
|
390
390
|
`:` border-right: 2px solid currentcolor;
|
|
391
391
|
border-bottom: 2px solid currentcolor;
|
|
392
|
-
`},function(t){var e=t.open,n=t.rtl;return e?n?"-135deg":"45deg":"-45deg"}),
|
|
392
|
+
`},function(t){var e=t.open,n=t.rtl;return e?n?"-135deg":"45deg":"-45deg"}),aO=dt.span(Tb||(Tb=vt([`
|
|
393
393
|
width: 5px;
|
|
394
394
|
height: 5px;
|
|
395
395
|
background-color: currentcolor;
|
|
@@ -401,11 +401,11 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
401
401
|
background-color: currentcolor;
|
|
402
402
|
border-radius: 50%;
|
|
403
403
|
display: inline-block;
|
|
404
|
-
`]))),
|
|
404
|
+
`]))),Mb,Eb,Tb,jt="top",$t="bottom",en="right",It="left",Hi="auto",Xa=[jt,$t,en,It],Ps="start",Ga="end",oO="clippingParents",Pb="viewport",Ka="popper",iO="reference",Nb=Xa.reduce(function(t,e){return t.concat([e+"-"+Ps,e+"-"+Ga])},[]),jb=[].concat(Xa,[Hi]).reduce(function(t,e){return t.concat([e,e+"-"+Ps,e+"-"+Ga])},[]),lO="beforeRead",cO="read",dO="afterRead",uO="beforeMain",fO="main",hO="afterMain",gO="beforeWrite",mO="write",pO="afterWrite",Fd=[lO,cO,dO,uO,fO,hO,gO,mO,pO];function Cn(t){return t?(t.nodeName||"").toLowerCase():null}function tn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Yr(t){var e=tn(t).Element;return t instanceof e||t instanceof Element}function zt(t){var e=tn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Bd(t){if(typeof ShadowRoot>"u")return!1;var e=tn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function bO(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},a=e.elements[n];!zt(a)||!Cn(a)||(Object.assign(a.style,r),Object.keys(s).forEach(function(o){var i=s[o];i===!1?a.removeAttribute(o):a.setAttribute(o,i===!0?"":i)}))})}function yO(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],a=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),i=o.reduce(function(l,c){return l[c]="",l},{});!zt(s)||!Cn(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){s.removeAttribute(l)}))})}}var wO={name:"applyStyles",enabled:!0,phase:"write",fn:bO,effect:yO,requires:["computeStyles"]};function cn(t){return t.split("-")[0]}var Vr=Math.max,Yi=Math.min,Ns=Math.round;function Wd(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ib(){return!/^((?!chrome|android).)*safari/i.test(Wd())}function js(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,a=1;e&&zt(t)&&(s=t.offsetWidth>0&&Ns(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ns(r.height)/t.offsetHeight||1);var o=Yr(t)?tn(t):window,i=o.visualViewport,l=!Ib()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/s,d=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/s,h=r.height/a;return{width:u,height:h,top:d,right:c+u,bottom:d+h,left:c,x:c,y:d}}function zd(t){var e=js(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Ab(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Bd(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dn(t){return tn(t).getComputedStyle(t)}function vO(t){return["table","td","th"].indexOf(Cn(t))>=0}function hr(t){return((Yr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Vi(t){return Cn(t)==="html"?t:t.assignedSlot||t.parentNode||(Bd(t)?t.host:null)||hr(t)}function Rb(t){return!zt(t)||dn(t).position==="fixed"?null:t.offsetParent}function xO(t){var e=/firefox/i.test(Wd()),n=/Trident/i.test(Wd());if(n&&zt(t)){var r=dn(t);if(r.position==="fixed")return null}var s=Vi(t);for(Bd(s)&&(s=s.host);zt(s)&&["html","body"].indexOf(Cn(s))<0;){var a=dn(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Za(t){for(var e=tn(t),n=Rb(t);n&&vO(n)&&dn(n).position==="static";)n=Rb(n);return n&&(Cn(n)==="html"||Cn(n)==="body"&&dn(n).position==="static")?e:n||xO(t)||e}function Hd(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Qa(t,e,n){return Vr(t,Yi(e,n))}function kO(t,e,n){var r=Qa(t,e,n);return r>n?n:r}function Lb(){return{top:0,right:0,bottom:0,left:0}}function Fb(t){return Object.assign({},Lb(),t)}function Bb(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var _O=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Fb(typeof e!="number"?e:Bb(e,Xa))};function CO(t){var e,n=t.state,r=t.name,s=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,i=cn(n.placement),l=Hd(i),c=[It,en].indexOf(i)>=0,d=c?"height":"width";if(!(!a||!o)){var u=_O(s.padding,n),h=zd(a),g=l==="y"?jt:It,m=l==="y"?$t:en,p=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],b=o[l]-n.rects.reference[l],y=Za(a),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,k=p/2-b/2,w=u[g],x=v-h[d]-u[m],C=v/2-h[d]/2+k,N=Qa(w,C,x),M=l;n.modifiersData[r]=(e={},e[M]=N,e.centerOffset=N-C,e)}}function SO(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;if(s!=null&&!(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s))){if(process.env.NODE_ENV!=="production"&&(zt(s)||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(" "))),!Ab(e.elements.popper,s)){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=s}}var OO={name:"arrow",enabled:!0,phase:"main",fn:CO,effect:SO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Is(t){return t.split("-")[1]}var DO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MO(t){var e=t.x,n=t.y,r=window,s=r.devicePixelRatio||1;return{x:Ns(e*s)/s||0,y:Ns(n*s)/s||0}}function Wb(t){var e,n=t.popper,r=t.popperRect,s=t.placement,a=t.variation,o=t.offsets,i=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,h=o.x,g=h===void 0?0:h,m=o.y,p=m===void 0?0:m,b=typeof d=="function"?d({x:g,y:p}):{x:g,y:p};g=b.x,p=b.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),k=It,w=jt,x=window;if(c){var C=Za(n),N="clientHeight",M="clientWidth";if(C===tn(n)&&(C=hr(n),dn(C).position!=="static"&&i==="absolute"&&(N="scrollHeight",M="scrollWidth")),C=C,s===jt||(s===It||s===en)&&a===Ga){w=$t;var P=u&&C===x&&x.visualViewport?x.visualViewport.height:C[N];p-=P-r.height,p*=l?1:-1}if(s===It||(s===jt||s===$t)&&a===Ga){k=en;var S=u&&C===x&&x.visualViewport?x.visualViewport.width:C[M];g-=S-r.width,g*=l?1:-1}}var B=Object.assign({position:i},c&&DO),A=d===!0?MO({x:g,y:p}):{x:g,y:p};if(g=A.x,p=A.y,l){var T;return Object.assign({},B,(T={},T[w]=v?"0":"",T[k]=y?"0":"",T.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+p+"px)":"translate3d("+g+"px, "+p+"px, 0)",T))}return Object.assign({},B,(e={},e[w]=v?p+"px":"",e[k]=y?g+"px":"",e.transform="",e))}function EO(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i;if(process.env.NODE_ENV!=="production"){var c=dn(e.elements.popper).transitionProperty||"";o&&["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".',`
|
|
405
405
|
|
|
406
406
|
`,'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.",`
|
|
407
407
|
|
|
408
|
-
`,"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:cn(e.placement),variation:Is(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Bb(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Bb(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 OE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CE,data:{}},Ui={passive:!0};function DE(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,a=s===void 0?!0:s,o=r.resize,i=o===void 0?!0:o,l=tn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,Ui)}),i&&l.addEventListener("resize",n.update,Ui),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Ui)}),i&&l.removeEventListener("resize",n.update,Ui)}}var ME={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:DE,data:{}},EE={left:"right",right:"left",bottom:"top",top:"bottom"};function Xi(t){return t.replace(/left|right|bottom|top/g,function(e){return EE[e]})}var TE={start:"end",end:"start"};function Wb(t){return t.replace(/start|end/g,function(e){return TE[e]})}function Yd(t){var e=tn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Vd(t){return js(hr(t)).left+Yd(t).scrollLeft}function PE(t,e){var n=tn(t),r=hr(t),s=n.visualViewport,a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;var c=jb();(c||!c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i+Vd(t),y:l}}function NE(t){var e,n=hr(t),r=Yd(t),s=(e=t.ownerDocument)==null?void 0:e.body,a=Vr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Vr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-r.scrollLeft+Vd(t),l=-r.scrollTop;return dn(s||n).direction==="rtl"&&(i+=Vr(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:o,x:i,y:l}}function Ud(t){var e=dn(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function zb(t){return["html","body","#document"].indexOf(Sn(t))>=0?t.ownerDocument.body:zt(t)&&Ud(t)?t:zb(Vi(t))}function Ja(t,e){var n;e===void 0&&(e=[]);var r=zb(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),a=tn(r),o=s?[a].concat(a.visualViewport||[],Ud(r)?r:[]):r,i=e.concat(o);return s?i:i.concat(Ja(Vi(o)))}function Xd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function jE(t,e){var n=js(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Hb(t,e,n){return e===Tb?Xd(PE(t,n)):Yr(e)?jE(e,n):Xd(NE(hr(t)))}function IE(t){var e=Ja(Vi(t)),n=["absolute","fixed"].indexOf(dn(t).position)>=0,r=n&&zt(t)?Qa(t):t;return Yr(r)?e.filter(function(s){return Yr(s)&&Ib(s,r)&&Sn(s)!=="body"}):[]}function AE(t,e,n,r){var s=e==="clippingParents"?IE(t):[].concat(e),a=[].concat(s,[n]),o=a[0],i=a.reduce(function(l,c){var d=Hb(t,c,r);return l.top=Vr(d.top,l.top),l.right=Yi(d.right,l.right),l.bottom=Yi(d.bottom,l.bottom),l.left=Vr(d.left,l.left),l},Hb(t,o,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Yb(t){var e=t.reference,n=t.element,r=t.placement,s=r?cn(r):null,a=r?Is(r):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,l;switch(s){case jt:l={x:o,y:e.y-n.height};break;case $t:l={x:o,y:e.y+e.height};break;case en:l={x:e.x+e.width,y:i};break;case It:l={x:e.x-n.width,y:i};break;default:l={x:e.x,y:e.y}}var c=s?Hd(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case Ps:l[c]=l[c]-(e[d]/2-n[d]/2);break;case Ga:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function qa(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,a=n.strategy,o=a===void 0?t.strategy:a,i=n.boundary,l=i===void 0?nE:i,c=n.rootBoundary,d=c===void 0?Tb:c,u=n.elementContext,g=u===void 0?Ka:u,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,b=m===void 0?0:m,y=Lb(typeof b!="number"?b:Fb(b,Xa)),v=g===Ka?rE:Ka,k=t.rects.popper,w=t.elements[p?v:g],x=AE(Yr(w)?w:w.contextElement||hr(t.elements.popper),l,d,o),S=js(t.elements.reference),P=Yb({reference:S,element:k,placement:s}),C=Xd(Object.assign({},k,P)),N=g===Ka?C:S,T={top:x.top-N.top+y.top,bottom:N.bottom-x.bottom+y.bottom,left:x.left-N.left+y.left,right:N.right-x.right+y.right},Y=t.modifiersData.offset;if(g===Ka&&Y){var F=Y[s];Object.keys(T).forEach(function(E){var D=[en,$t].indexOf(E)>=0?1:-1,j=[jt,$t].indexOf(E)>=0?"y":"x";T[E]+=F[j]*D})}return T}function RE(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,a=n.rootBoundary,o=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Nb:l,d=Is(r),u=d?i?Pb:Pb.filter(function(p){return Is(p)===d}):Xa,g=u.filter(function(p){return c.indexOf(p)>=0});g.length===0&&(g=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=g.reduce(function(p,m){return p[m]=qa(t,{placement:m,boundary:s,rootBoundary:a,padding:o})[cn(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function LE(t){if(cn(t)===Hi)return[];var e=Xi(t);return[Wb(t),e,Wb(e)]}function FE(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,g=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,b=e.options.placement,y=cn(b),v=y===b,k=l||(v||!p?[Xi(b)]:LE(b)),w=[b].concat(k).reduce(function(A,O){return A.concat(cn(O)===Hi?RE(e,{placement:O,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):O)},[]),x=e.rects.reference,S=e.rects.popper,P=new Map,C=!0,N=w[0],T=0;T<w.length;T++){var Y=w[T],F=cn(Y),E=Is(Y)===Ps,D=[jt,$t].indexOf(F)>=0,j=D?"width":"height",M=qa(e,{placement:Y,boundary:d,rootBoundary:u,altBoundary:g,padding:c}),H=D?E?en:It:E?$t:jt;x[j]>S[j]&&(H=Xi(H));var X=Xi(H),ee=[];if(a&&ee.push(M[F]<=0),i&&ee.push(M[H]<=0,M[X]<=0),ee.every(function(A){return A})){N=Y,C=!1;break}P.set(Y,ee)}if(C)for(var I=p?3:1,V=function(O){var W=w.find(function(J){var K=P.get(J);if(K)return K.slice(0,O).every(function(q){return q})});if(W)return N=W,"break"},L=I;L>0;L--){var R=V(L);if(R==="break")break}e.placement!==N&&(e.modifiersData[r]._skip=!0,e.placement=N,e.reset=!0)}}var BE={name:"flip",enabled:!0,phase:"main",fn:FE,requiresIfExists:["offset"],data:{_skip:!1}};function Vb(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ub(t){return[jt,en,$t,It].some(function(e){return t[e]>=0})}function WE(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,a=e.modifiersData.preventOverflow,o=qa(e,{elementContext:"reference"}),i=qa(e,{altBoundary:!0}),l=Vb(o,r),c=Vb(i,s,a),d=Ub(l),u=Ub(c);e.modifiersData[n]={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 zE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WE};function HE(t,e,n){var r=cn(t),s=[It,jt].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],i=a[1];return o=o||0,i=(i||0)*s,[It,en].indexOf(r)>=0?{x:i,y:o}:{x:o,y:i}}function YE(t){var e=t.state,n=t.options,r=t.name,s=n.offset,a=s===void 0?[0,0]:s,o=Nb.reduce(function(d,u){return d[u]=HE(u,e.rects,a),d},{}),i=o[e.placement],l=i.x,c=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}var VE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:YE};function UE(t){var e=t.state,n=t.name;e.modifiersData[n]=Yb({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var XE={name:"popperOffsets",enabled:!0,phase:"read",fn:UE,data:{}};function GE(t){return t==="x"?"y":"x"}function KE(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,g=n.tether,h=g===void 0?!0:g,p=n.tetherOffset,m=p===void 0?0:p,b=qa(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),y=cn(e.placement),v=Is(e.placement),k=!v,w=Hd(y),x=GE(w),S=e.modifiersData.popperOffsets,P=e.rects.reference,C=e.rects.popper,N=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,T=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),Y=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(S){if(a){var E,D=w==="y"?jt:It,j=w==="y"?$t:en,M=w==="y"?"height":"width",H=S[w],X=H+b[D],ee=H-b[j],I=h?-C[M]/2:0,V=v===Ps?P[M]:C[M],L=v===Ps?-C[M]:-P[M],R=e.elements.arrow,A=h&&R?zd(R):{width:0,height:0},O=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Rb(),W=O[D],J=O[j],K=Za(0,P[M],A[M]),q=k?P[M]/2-I-K-W-T.mainAxis:V-K-W-T.mainAxis,te=k?-P[M]/2+I+K+J+T.mainAxis:L+K+J+T.mainAxis,ie=e.elements.arrow&&Qa(e.elements.arrow),U=ie?w==="y"?ie.clientTop||0:ie.clientLeft||0:0,le=(E=Y==null?void 0:Y[w])!=null?E:0,z=H+q-le-U,ne=H+te-le,ae=Za(h?Yi(X,z):X,H,h?Vr(ee,ne):ee);S[w]=ae,F[w]=ae-H}if(i){var se,oe=w==="x"?jt:It,ye=w==="x"?$t:en,me=S[x],Ce=x==="y"?"height":"width",Ge=me+b[oe],et=me-b[ye],Xt=[jt,It].indexOf(y)!==-1,Gt=(se=Y==null?void 0:Y[x])!=null?se:0,Kt=Xt?Ge:me-P[Ce]-C[Ce]-Gt+T.altAxis,Sr=Xt?me+P[Ce]+C[Ce]-Gt-T.altAxis:et,Qt=h&&Xt?yE(Kt,me,Sr):Za(h?Kt:Ge,me,h?Sr:et);S[x]=Qt,F[x]=Qt-me}e.modifiersData[r]=F}}var QE={name:"preventOverflow",enabled:!0,phase:"main",fn:KE,requiresIfExists:["offset"]};function ZE(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function JE(t){return t===tn(t)||!zt(t)?Yd(t):ZE(t)}function qE(t){var e=t.getBoundingClientRect(),n=Ns(e.width)/t.offsetWidth||1,r=Ns(e.height)/t.offsetHeight||1;return n!==1||r!==1}function $E(t,e,n){n===void 0&&(n=!1);var r=zt(e),s=zt(e)&&qE(e),a=hr(e),o=js(t,s,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Sn(e)!=="body"||Ud(a))&&(i=JE(e)),zt(e)?(l=js(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=Vd(a))),{x:o.left+i.scrollLeft-l.x,y:o.top+i.scrollTop-l.y,width:o.width,height:o.height}}function e5(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function s(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var l=e.get(i);l&&s(l)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||s(a)}),r}function t5(t){var e=e5(t);return Fd.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function n5(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function gr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(s,a){return s.replace(/%s/,a)},t)}var Ur='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',r5='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Xb=["name","enabled","phase","fn","effect","requires","options"];function s5(t){t.forEach(function(e){[].concat(Object.keys(e),Xb).filter(function(n,r,s){return s.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(gr(Ur,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(gr(Ur,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Fd.indexOf(e.phase)<0&&console.error(gr(Ur,e.name,'"phase"',"either "+Fd.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(gr(Ur,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(gr(Ur,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(gr(Ur,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(gr(Ur,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 '+Xb.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(s){return s.name===r})==null&&console.error(gr(r5,String(e.name),r,r))})})})}function a5(t,e){var n=new Set;return t.filter(function(r){var s=e(r);if(!n.has(s))return n.add(s),!0})}function o5(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Gb="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",i5="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Kb={placement:"bottom",modifiers:[],strategy:"absolute"};function Qb(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function l5(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,s=e.defaultOptions,a=s===void 0?Kb:s;return function(i,l,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kb,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},u=[],g=!1,h={state:d,setOptions:function(y){var v=typeof y=="function"?y(d.options):y;m(),d.options=Object.assign({},a,d.options,v),d.scrollParents={reference:Yr(i)?Ja(i):i.contextElement?Ja(i.contextElement):[],popper:Ja(l)};var k=t5(o5([].concat(r,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(Y){return Y.enabled}),process.env.NODE_ENV!=="production"){var w=a5([].concat(k,d.options.modifiers),function(Y){var F=Y.name;return F});if(s5(w),cn(d.options.placement)===Hi){var x=d.orderedModifiers.find(function(Y){var F=Y.name;return F==="flip"});x||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=dn(l),P=S.marginTop,C=S.marginRight,N=S.marginBottom,T=S.marginLeft;[P,C,N,T].some(function(Y){return parseFloat(Y)})&&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 p(),h.update()},forceUpdate:function(){if(!g){var y=d.elements,v=y.reference,k=y.popper;if(!Qb(v,k)){process.env.NODE_ENV!=="production"&&console.error(Gb);return}d.rects={reference:$E(v,Qa(k),d.options.strategy==="fixed"),popper:zd(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(Y){return d.modifiersData[Y.name]=Object.assign({},Y.data)});for(var w=0,x=0;x<d.orderedModifiers.length;x++){if(process.env.NODE_ENV!=="production"&&(w+=1,w>100)){console.error(i5);break}if(d.reset===!0){d.reset=!1,x=-1;continue}var S=d.orderedModifiers[x],P=S.fn,C=S.options,N=C===void 0?{}:C,T=S.name;typeof P=="function"&&(d=P({state:d,options:N,name:T,instance:h})||d)}}},update:n5(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){m(),g=!0}};if(!Qb(i,l))return process.env.NODE_ENV!=="production"&&console.error(Gb),h;h.setOptions(c).then(function(b){!g&&c.onFirstUpdate&&c.onFirstUpdate(b)});function p(){d.orderedModifiers.forEach(function(b){var y=b.name,v=b.options,k=v===void 0?{}:v,w=b.effect;if(typeof w=="function"){var x=w({state:d,name:y,instance:h,options:k}),S=function(){};u.push(x||S)}})}function m(){u.forEach(function(b){return b()}),u=[]}return h}}var c5=[ME,XE,OE,mE,VE,BE,QE,kE,zE],d5=l5({defaultModifiers:c5}),u5=function(t){var e=t.level,n=t.buttonRef,r=t.contentRef,s=_.useContext(Wi),a=s.collapsed,o=s.toggled,i=s.transitionDuration,l=_.useRef();return _.useEffect(function(){return e===0&&a&&r.current&&n.current&&(l.current=d5(n.current,r.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,a,r,n]),_.useEffect(function(){if(r.current&&n.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(r.current),c.observe(n.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},i)},[i,o,r,n]),{popperInstance:l.current}},Zb=function(t){var e=t.rtl,n=t.level,r=t.collapsed,s=t.disabled,a=t.active;return`
|
|
408
|
+
`,"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:cn(e.placement),variation:Is(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Wb(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Wb(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 TO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:EO,data:{}},Ui={passive:!0};function PO(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,a=s===void 0?!0:s,o=r.resize,i=o===void 0?!0:o,l=tn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,Ui)}),i&&l.addEventListener("resize",n.update,Ui),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Ui)}),i&&l.removeEventListener("resize",n.update,Ui)}}var NO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:PO,data:{}},jO={left:"right",right:"left",bottom:"top",top:"bottom"};function Xi(t){return t.replace(/left|right|bottom|top/g,function(e){return jO[e]})}var IO={start:"end",end:"start"};function zb(t){return t.replace(/start|end/g,function(e){return IO[e]})}function Yd(t){var e=tn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Vd(t){return js(hr(t)).left+Yd(t).scrollLeft}function AO(t,e){var n=tn(t),r=hr(t),s=n.visualViewport,a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;var c=Ib();(c||!c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i+Vd(t),y:l}}function RO(t){var e,n=hr(t),r=Yd(t),s=(e=t.ownerDocument)==null?void 0:e.body,a=Vr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Vr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-r.scrollLeft+Vd(t),l=-r.scrollTop;return dn(s||n).direction==="rtl"&&(i+=Vr(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:o,x:i,y:l}}function Ud(t){var e=dn(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Hb(t){return["html","body","#document"].indexOf(Cn(t))>=0?t.ownerDocument.body:zt(t)&&Ud(t)?t:Hb(Vi(t))}function Ja(t,e){var n;e===void 0&&(e=[]);var r=Hb(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),a=tn(r),o=s?[a].concat(a.visualViewport||[],Ud(r)?r:[]):r,i=e.concat(o);return s?i:i.concat(Ja(Vi(o)))}function Xd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function LO(t,e){var n=js(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Yb(t,e,n){return e===Pb?Xd(AO(t,n)):Yr(e)?LO(e,n):Xd(RO(hr(t)))}function FO(t){var e=Ja(Vi(t)),n=["absolute","fixed"].indexOf(dn(t).position)>=0,r=n&&zt(t)?Za(t):t;return Yr(r)?e.filter(function(s){return Yr(s)&&Ab(s,r)&&Cn(s)!=="body"}):[]}function BO(t,e,n,r){var s=e==="clippingParents"?FO(t):[].concat(e),a=[].concat(s,[n]),o=a[0],i=a.reduce(function(l,c){var d=Yb(t,c,r);return l.top=Vr(d.top,l.top),l.right=Yi(d.right,l.right),l.bottom=Yi(d.bottom,l.bottom),l.left=Vr(d.left,l.left),l},Yb(t,o,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Vb(t){var e=t.reference,n=t.element,r=t.placement,s=r?cn(r):null,a=r?Is(r):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,l;switch(s){case jt:l={x:o,y:e.y-n.height};break;case $t:l={x:o,y:e.y+e.height};break;case en:l={x:e.x+e.width,y:i};break;case It:l={x:e.x-n.width,y:i};break;default:l={x:e.x,y:e.y}}var c=s?Hd(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case Ps:l[c]=l[c]-(e[d]/2-n[d]/2);break;case Ga:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function qa(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,a=n.strategy,o=a===void 0?t.strategy:a,i=n.boundary,l=i===void 0?oO:i,c=n.rootBoundary,d=c===void 0?Pb:c,u=n.elementContext,h=u===void 0?Ka:u,g=n.altBoundary,m=g===void 0?!1:g,p=n.padding,b=p===void 0?0:p,y=Fb(typeof b!="number"?b:Bb(b,Xa)),v=h===Ka?iO:Ka,k=t.rects.popper,w=t.elements[m?v:h],x=BO(Yr(w)?w:w.contextElement||hr(t.elements.popper),l,d,o),C=js(t.elements.reference),N=Vb({reference:C,element:k,placement:s}),M=Xd(Object.assign({},k,N)),P=h===Ka?M:C,S={top:x.top-P.top+y.top,bottom:P.bottom-x.bottom+y.bottom,left:x.left-P.left+y.left,right:P.right-x.right+y.right},B=t.modifiersData.offset;if(h===Ka&&B){var A=B[s];Object.keys(S).forEach(function(T){var D=[en,$t].indexOf(T)>=0?1:-1,j=[jt,$t].indexOf(T)>=0?"y":"x";S[T]+=A[j]*D})}return S}function WO(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,a=n.rootBoundary,o=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?jb:l,d=Is(r),u=d?i?Nb:Nb.filter(function(m){return Is(m)===d}):Xa,h=u.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=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 g=h.reduce(function(m,p){return m[p]=qa(t,{placement:p,boundary:s,rootBoundary:a,padding:o})[cn(p)],m},{});return Object.keys(g).sort(function(m,p){return g[m]-g[p]})}function zO(t){if(cn(t)===Hi)return[];var e=Xi(t);return[zb(t),e,zb(e)]}function HO(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,p=n.allowedAutoPlacements,b=e.options.placement,y=cn(b),v=y===b,k=l||(v||!m?[Xi(b)]:zO(b)),w=[b].concat(k).reduce(function(R,O){return R.concat(cn(O)===Hi?WO(e,{placement:O,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:p}):O)},[]),x=e.rects.reference,C=e.rects.popper,N=new Map,M=!0,P=w[0],S=0;S<w.length;S++){var B=w[S],A=cn(B),T=Is(B)===Ps,D=[jt,$t].indexOf(A)>=0,j=D?"width":"height",E=qa(e,{placement:B,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),Y=D?T?en:It:T?$t:jt;x[j]>C[j]&&(Y=Xi(Y));var X=Xi(Y),ee=[];if(a&&ee.push(E[A]<=0),i&&ee.push(E[Y]<=0,E[X]<=0),ee.every(function(R){return R})){P=B,M=!1;break}N.set(B,ee)}if(M)for(var I=m?3:1,V=function(O){var z=w.find(function(J){var K=N.get(J);if(K)return K.slice(0,O).every(function(q){return q})});if(z)return P=z,"break"},F=I;F>0;F--){var L=V(F);if(L==="break")break}e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}}var YO={name:"flip",enabled:!0,phase:"main",fn:HO,requiresIfExists:["offset"],data:{_skip:!1}};function Ub(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Xb(t){return[jt,en,$t,It].some(function(e){return t[e]>=0})}function VO(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,a=e.modifiersData.preventOverflow,o=qa(e,{elementContext:"reference"}),i=qa(e,{altBoundary:!0}),l=Ub(o,r),c=Ub(i,s,a),d=Xb(l),u=Xb(c);e.modifiersData[n]={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 UO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:VO};function XO(t,e,n){var r=cn(t),s=[It,jt].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],i=a[1];return o=o||0,i=(i||0)*s,[It,en].indexOf(r)>=0?{x:i,y:o}:{x:o,y:i}}function GO(t){var e=t.state,n=t.options,r=t.name,s=n.offset,a=s===void 0?[0,0]:s,o=jb.reduce(function(d,u){return d[u]=XO(u,e.rects,a),d},{}),i=o[e.placement],l=i.x,c=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}var KO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:GO};function ZO(t){var e=t.state,n=t.name;e.modifiersData[n]=Vb({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var QO={name:"popperOffsets",enabled:!0,phase:"read",fn:ZO,data:{}};function JO(t){return t==="x"?"y":"x"}function qO(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,g=h===void 0?!0:h,m=n.tetherOffset,p=m===void 0?0:m,b=qa(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),y=cn(e.placement),v=Is(e.placement),k=!v,w=Hd(y),x=JO(w),C=e.modifiersData.popperOffsets,N=e.rects.reference,M=e.rects.popper,P=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,S=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(C){if(a){var T,D=w==="y"?jt:It,j=w==="y"?$t:en,E=w==="y"?"height":"width",Y=C[w],X=Y+b[D],ee=Y-b[j],I=g?-M[E]/2:0,V=v===Ps?N[E]:M[E],F=v===Ps?-M[E]:-N[E],L=e.elements.arrow,R=g&&L?zd(L):{width:0,height:0},O=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Lb(),z=O[D],J=O[j],K=Qa(0,N[E],R[E]),q=k?N[E]/2-I-K-z-S.mainAxis:V-K-z-S.mainAxis,te=k?-N[E]/2+I+K+J+S.mainAxis:F+K+J+S.mainAxis,ie=e.elements.arrow&&Za(e.elements.arrow),U=ie?w==="y"?ie.clientTop||0:ie.clientLeft||0:0,le=(T=B==null?void 0:B[w])!=null?T:0,H=Y+q-le-U,ne=Y+te-le,ae=Qa(g?Yi(X,H):X,Y,g?Vr(ee,ne):ee);C[w]=ae,A[w]=ae-Y}if(i){var se,oe=w==="x"?jt:It,ye=w==="x"?$t:en,me=C[x],Se=x==="y"?"height":"width",Ge=me+b[oe],et=me-b[ye],Xt=[jt,It].indexOf(y)!==-1,Gt=(se=B==null?void 0:B[x])!=null?se:0,Kt=Xt?Ge:me-N[Se]-M[Se]-Gt+S.altAxis,Cr=Xt?me+N[Se]+M[Se]-Gt-S.altAxis:et,Zt=g&&Xt?kO(Kt,me,Cr):Qa(g?Kt:Ge,me,g?Cr:et);C[x]=Zt,A[x]=Zt-me}e.modifiersData[r]=A}}var $O={name:"preventOverflow",enabled:!0,phase:"main",fn:qO,requiresIfExists:["offset"]};function eD(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function tD(t){return t===tn(t)||!zt(t)?Yd(t):eD(t)}function nD(t){var e=t.getBoundingClientRect(),n=Ns(e.width)/t.offsetWidth||1,r=Ns(e.height)/t.offsetHeight||1;return n!==1||r!==1}function rD(t,e,n){n===void 0&&(n=!1);var r=zt(e),s=zt(e)&&nD(e),a=hr(e),o=js(t,s,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Cn(e)!=="body"||Ud(a))&&(i=tD(e)),zt(e)?(l=js(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=Vd(a))),{x:o.left+i.scrollLeft-l.x,y:o.top+i.scrollTop-l.y,width:o.width,height:o.height}}function sD(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function s(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var l=e.get(i);l&&s(l)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||s(a)}),r}function aD(t){var e=sD(t);return Fd.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function oD(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function gr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(s,a){return s.replace(/%s/,a)},t)}var Ur='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',iD='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Gb=["name","enabled","phase","fn","effect","requires","options"];function lD(t){t.forEach(function(e){[].concat(Object.keys(e),Gb).filter(function(n,r,s){return s.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(gr(Ur,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(gr(Ur,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Fd.indexOf(e.phase)<0&&console.error(gr(Ur,e.name,'"phase"',"either "+Fd.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(gr(Ur,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(gr(Ur,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(gr(Ur,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(gr(Ur,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 '+Gb.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(s){return s.name===r})==null&&console.error(gr(iD,String(e.name),r,r))})})})}function cD(t,e){var n=new Set;return t.filter(function(r){var s=e(r);if(!n.has(s))return n.add(s),!0})}function dD(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Kb="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",uD="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Zb={placement:"bottom",modifiers:[],strategy:"absolute"};function Qb(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function fD(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,s=e.defaultOptions,a=s===void 0?Zb:s;return function(i,l,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zb,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},u=[],h=!1,g={state:d,setOptions:function(y){var v=typeof y=="function"?y(d.options):y;p(),d.options=Object.assign({},a,d.options,v),d.scrollParents={reference:Yr(i)?Ja(i):i.contextElement?Ja(i.contextElement):[],popper:Ja(l)};var k=aD(dD([].concat(r,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(B){return B.enabled}),process.env.NODE_ENV!=="production"){var w=cD([].concat(k,d.options.modifiers),function(B){var A=B.name;return A});if(lD(w),cn(d.options.placement)===Hi){var x=d.orderedModifiers.find(function(B){var A=B.name;return A==="flip"});x||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var C=dn(l),N=C.marginTop,M=C.marginRight,P=C.marginBottom,S=C.marginLeft;[N,M,P,S].some(function(B){return parseFloat(B)})&&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 m(),g.update()},forceUpdate:function(){if(!h){var y=d.elements,v=y.reference,k=y.popper;if(!Qb(v,k)){process.env.NODE_ENV!=="production"&&console.error(Kb);return}d.rects={reference:rD(v,Za(k),d.options.strategy==="fixed"),popper:zd(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(B){return d.modifiersData[B.name]=Object.assign({},B.data)});for(var w=0,x=0;x<d.orderedModifiers.length;x++){if(process.env.NODE_ENV!=="production"&&(w+=1,w>100)){console.error(uD);break}if(d.reset===!0){d.reset=!1,x=-1;continue}var C=d.orderedModifiers[x],N=C.fn,M=C.options,P=M===void 0?{}:M,S=C.name;typeof N=="function"&&(d=N({state:d,options:P,name:S,instance:g})||d)}}},update:oD(function(){return new Promise(function(b){g.forceUpdate(),b(d)})}),destroy:function(){p(),h=!0}};if(!Qb(i,l))return process.env.NODE_ENV!=="production"&&console.error(Kb),g;g.setOptions(c).then(function(b){!h&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var y=b.name,v=b.options,k=v===void 0?{}:v,w=b.effect;if(typeof w=="function"){var x=w({state:d,name:y,instance:g,options:k}),C=function(){};u.push(x||C)}})}function p(){u.forEach(function(b){return b()}),u=[]}return g}}var hD=[NO,QO,TO,wO,KO,YO,$O,OO,UO],gD=fD({defaultModifiers:hD}),mD=function(t){var e=t.level,n=t.buttonRef,r=t.contentRef,s=_.useContext(Wi),a=s.collapsed,o=s.toggled,i=s.transitionDuration,l=_.useRef();return _.useEffect(function(){return e===0&&a&&r.current&&n.current&&(l.current=gD(n.current,r.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,a,r,n]),_.useEffect(function(){if(r.current&&n.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(r.current),c.observe(n.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},i)},[i,o,r,n]),{popperInstance:l.current}},Jb=function(t){var e=t.rtl,n=t.level,r=t.collapsed,s=t.disabled,a=t.active;return`
|
|
409
409
|
display: flex;
|
|
410
410
|
align-items: center;
|
|
411
411
|
height: 50px;
|
|
@@ -432,7 +432,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
432
432
|
|
|
433
433
|
`).concat(a&&"background-color: #e2eef9;",`
|
|
434
434
|
|
|
435
|
-
`)},
|
|
435
|
+
`)},pD=function(t,e){var n=t.className,r=t.component,s=t.children,a=zr(t,["className","component","children"]);if(r){if(typeof r=="string")return _.createElement(r,Bt(Bt({className:lt(n)},a),{ref:e}),s);var o=r.props,i=o.className,l=zr(o,["className"]);return _.cloneElement(r,Bt(Bt(Bt({className:lt(n,i)},a),l),{ref:e}),s)}else return _.createElement("a",Bt({ref:e,className:lt(n)},a),s)},qb=_.forwardRef(pD),bD=dt.li($b||($b=vt([`
|
|
436
436
|
position: relative;
|
|
437
437
|
width: 100%;
|
|
438
438
|
|
|
@@ -458,7 +458,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
458
458
|
|
|
459
459
|
`,`;
|
|
460
460
|
}
|
|
461
|
-
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ke.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return
|
|
461
|
+
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ke.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Jb({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),yD=function(t,e){var n,r=t.children,s=t.className,a=t.label,o=t.icon,i=t.title,l=t.prefix,c=t.suffix,d=t.open,u=t.defaultOpen,h=t.active,g=h===void 0?!1:h,m=t.disabled,p=m===void 0?!1:m,b=t.rootStyles,y=t.component,v=t.onOpenChange,k=t.onClick,w=t.onKeyUp,x=zr(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),C=_.useContext(zi),N=_.useContext(Wi),M=N.collapsed,P=N.rtl,S=N.transitionDuration,B=Ld(),A=B.renderExpandIcon,T=B.closeOnClick,D=B.menuItemStyles,j=B.transitionDuration,E=_.useState(!!u),Y=E[0],X=E[1],ee=_.useState(!1),I=ee[0],V=ee[1],F=_.useState(!1),L=F[0],R=F[1],O=_.useRef(null),z=_.useRef(null),J=_.useRef(),K=mD({level:C,buttonRef:O,contentRef:z}).popperInstance,q=_.useCallback(function(){var ae,se=z.current;if(se){var oe=(ae=se==null?void 0:se.querySelector(".".concat(ke.subMenuContent," > ul")))===null||ae===void 0?void 0:ae.clientHeight;se.style.overflow="hidden",se.style.height="".concat(oe,"px"),J.current=setTimeout(function(){se.style.overflow="auto",se.style.height="auto"},j)}},[j]),te=function(){var ae,se=z.current;if(se){var oe=(ae=se==null?void 0:se.querySelector(".".concat(ke.subMenuContent," > ul")))===null||ae===void 0?void 0:ae.clientHeight;se.style.overflow="hidden",se.style.height="".concat(oe,"px"),se.offsetHeight,se.style.height="0px"}},ie=function(){C===0&&M||(typeof d>"u"?(clearTimeout(Number(J.current)),Y?te():q(),v==null||v(!Y),X(!Y)):v==null||v(!d))};_.useEffect(function(){!(C===0&&M)&&typeof d<"u"&&L&&(clearTimeout(Number(J.current)),d?q():te())},[M,q,a,C,v,d]);var U=function(ae){k==null||k(ae),ie()},le=function(ae){w==null||w(ae),ae.key==="Enter"&&ie()},H=function(ae){if(D){var se={level:C,disabled:p,active:g,isSubmenu:!0,open:d??Y},oe=D.root,ye=D.button,me=D.label,Se=D.icon,Ge=D.prefix,et=D.suffix,Xt=D.subMenuContent,Gt=D.SubMenuExpandIcon;switch(ae){case"root":return typeof oe=="function"?oe(se):oe;case"button":return typeof ye=="function"?ye(se):ye;case"label":return typeof me=="function"?me(se):me;case"icon":return typeof Se=="function"?Se(se):Se;case"prefix":return typeof Ge=="function"?Ge(se):Ge;case"suffix":return typeof et=="function"?et(se):et;case"SubMenuExpandIcon":return typeof Gt=="function"?Gt(se):Gt;case"subMenuContent":return typeof Xt=="function"?Xt(se):Xt;default:return}}};_.useEffect(function(){setTimeout(function(){return K==null?void 0:K.update()},S),M&&C===0&&V(!1)},[M,C,P,S,K]),_.useEffect(function(){var ae=function(me){var Se,Ge,et;!I&&(!((Se=O.current)===null||Se===void 0)&&Se.contains(me))?V(!0):(T&&!(!((Ge=me.closest(".".concat(ke.menuItemRoot)))===null||Ge===void 0)&&Ge.classList.contains(ke.subMenuRoot))||!(!((et=z.current)===null||et===void 0)&&et.contains(me))&&I)&&V(!1)},se=function(me){ae(me.target)},oe=function(me){me.key==="Enter"?ae(me.target):me.key==="Escape"&&V(!1)},ye=function(){document.removeEventListener("click",se),document.removeEventListener("keyup",oe)};return ye(),M&&C===0&&(document.addEventListener("click",se,!1),document.addEventListener("keyup",oe,!1)),function(){ye()}},[M,C,T,I]),_.useEffect(function(){R(!0)},[]);var ne=(n={},n[ke.active]=g,n[ke.disabled]=p,n[ke.open]=d??Y,n);return _.createElement(bD,{ref:e,className:lt(ke.menuItemRoot,ke.subMenuRoot,ne,s),menuItemStyles:H("root"),level:C,collapsed:M,rtl:P,disabled:p,active:g,buttonStyles:H("button"),rootStyles:b},_.createElement(qb,Bt({"data-testid":"".concat(ke.button,"-test-id"),ref:O,title:i,className:lt(ke.button,ne),onClick:U,onKeyUp:le,component:y,tabIndex:0},x),o&&_.createElement(kb,{rtl:P,className:lt(ke.icon,ne),rootStyles:H("icon")},o),l&&_.createElement(Cb,{collapsed:M,transitionDuration:S,firstLevel:C===0,className:lt(ke.prefix,ne),rtl:P,rootStyles:H("prefix")},l),_.createElement(vb,{className:lt(ke.label,ne),rootStyles:H("label")},a),c&&_.createElement(Ob,{collapsed:M,transitionDuration:S,firstLevel:C===0,className:lt(ke.suffix,ne),rootStyles:H("suffix")},c),_.createElement(rO,{rtl:P,className:lt(ke.SubMenuExpandIcon,ne),collapsed:M,level:C,rootStyles:H("SubMenuExpandIcon")},A?A({level:C,disabled:p,active:g,open:d??Y}):M&&C===0?_.createElement(aO,null):_.createElement(sO,{rtl:P,open:d??Y}))),_.createElement(nO,{ref:z,openWhenCollapsed:I,open:d??Y,firstLevel:C===0,collapsed:M,defaultOpen:d&&!L||u,className:lt(ke.subMenuContent,ne),rootStyles:H("subMenuContent")},_.createElement(zi.Provider,{value:C+1},r)))};_.forwardRef(yD);var $b,wD=dt.li(ey||(ey=vt([`
|
|
462
462
|
width: 100%;
|
|
463
463
|
position: relative;
|
|
464
464
|
|
|
@@ -484,13 +484,13 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
484
484
|
|
|
485
485
|
`,`;
|
|
486
486
|
}
|
|
487
|
-
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ke.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Zb({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),p5=function(t,e){var n,r=t.children,s=t.icon,a=t.className,o=t.prefix,i=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,g=t.component,h=t.rootStyles,p=zr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),m=_.useContext(zi),b=_.useContext(Wi),y=b.collapsed,v=b.rtl,k=b.transitionDuration,w=Ld().menuItemStyles,x=function(P){if(w){var C={level:m,disabled:u,active:c,isSubmenu:!1},N=w.root,T=w.button,Y=w.label,F=w.icon,E=w.prefix,D=w.suffix;switch(P){case"root":return typeof N=="function"?N(C):N;case"button":return typeof T=="function"?T(C):T;case"label":return typeof Y=="function"?Y(C):Y;case"icon":return typeof F=="function"?F(C):F;case"prefix":return typeof E=="function"?E(C):E;case"suffix":return typeof D=="function"?D(C):D;default:return}}},S=(n={},n[ke.active]=c,n[ke.disabled]=u,n);return _.createElement(m5,{ref:e,className:lt(ke.menuItemRoot,S,a),menuItemStyles:x("root"),level:m,collapsed:y,rtl:v,disabled:u,active:c,buttonStyles:x("button"),rootStyles:h},_.createElement(Jb,Bt({className:lt(ke.button,S),"data-testid":"".concat(ke.button,"-test-id"),component:g,tabIndex:0},p),s&&_.createElement(xb,{rtl:v,className:lt(ke.icon,S),rootStyles:x("icon")},s),o&&_.createElement(_b,{collapsed:y,transitionDuration:k,firstLevel:m===0,className:lt(ke.prefix,S),rtl:v,rootStyles:x("prefix")},o),_.createElement(wb,{className:lt(ke.label,S),rootStyles:x("label")},r),i&&_.createElement(Cb,{collapsed:y,transitionDuration:k,firstLevel:m===0,className:lt(ke.suffix,S),rootStyles:x("suffix")},i)))},b5=_.forwardRef(p5),$b;const y5="p-4 z-50 bg-[#191960] text-white text-xs text-start font-semibold max-w-[280px] whitespace-normal break-words";function $a({content:t,trigger:e,children:n,disabled:r}){return r?f.jsx("div",{className:"flex",children:n}):f.jsx("div",{className:"flex",children:f.jsx(Jo,{content:t,trigger:e,className:y5,children:n})})}const Gd="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200C13.971%200%2018%204.029%2018%209C18%2013.971%2013.971%2018%209%2018C4.029%2018%200%2013.971%200%209C0%204.029%204.029%200%209%200ZM8%208.25C7.58579%208.25%207.25%208.58579%207.25%209C7.25%209.41421%207.58579%209.75%208%209.75H8.25V14C8.25%2014.4142%208.58579%2014.75%209%2014.75C9.41421%2014.75%209.75%2014.4142%209.75%2014V9C9.75%208.58579%209.41421%208.25%209%208.25H8ZM8.74902%204.25C8.19966%204.25%207.74892%204.69502%207.75%205.25L7.75488%205.35254C7.80623%205.85661%208.2324%206.25%208.75%206.25C9.30221%206.25%209.75%205.80221%209.75%205.25C9.75%204.73062%209.35499%204.3061%208.85156%204.25488L8.74902%204.25Z'%20fill='%23191960'/%3e%3c/svg%3e",Kd=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:s,description:a,width:o,height:i,iconPosition:l,imagePosition:c,tooltip:d,tooltipContent:u,tooltipTrigger:g}=t,h={start:"justify-start",center:"justify-center",end:"justify-end"}[l||"center"];return f.jsx("div",{className:`${Im.Card} flex flex-col border px-3.5 py-7`,ref:e,children:f.jsxs("div",{className:"flex justify-between",children:[n?f.jsx(Cr,{classIm:c||"mx-auto",src:n,alt:s,width:o,height:i}):r?f.jsx("div",{className:`flex ${h}`,children:f.jsx(r,{size:o||50})}):null,f.jsxs("div",{className:"flex flex-col pl-8",children:[f.jsx("h3",{className:"font-bold text-base md:text-lg text-end",children:f.jsxs("span",{className:"inline-flex items-center gap-2",children:[f.jsx("span",{children:s}),d?f.jsx($a,{content:u||"",trigger:g||"hover",disabled:!u,children:f.jsx("img",{src:Gd,alt:"info",className:"size-4"})}):null]})}),a&&f.jsx("p",{className:"text-lg md:text-xl font-normal text-end",children:a})]})]})})});Kd.displayName="Card";const w5=({aHref:t,logo:e,menuItems:n,campaignCards:r=[],onLogout:s,defaultCollapsed:a=!1,background:o="linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",textColor:i="#ffffff",className:l=""})=>{const[c,d]=_.useState(a),[u,g]=_.useState(null),[h,p]=_.useState(new Set),[m,b]=_.useState(null),[y,v]=_.useState(null),k=n.filter(M=>M.position!=="bottom"),w=n.filter(M=>M.position==="bottom"),x=e.width.collapsed,S=e.width.expanded,P=c?x:S,C=M=>typeof M=="string"?f.jsx("img",{src:M,style:{width:"20px",height:"20px"}}):M?_.createElement(M,{style:{width:"20px",height:"20px"}}):null,N=(M=!1,H=!1)=>({background:c?"transparent":H?"#FFFFFF55":M?"#FFFFFF22":"#FFFFFF33",color:i,borderRadius:M?"15px":"20px",button:{width:c?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:c?"0 0.25rem":"0 0.5rem",color:i,fontSize:M?"0.9rem":void 0}}),T=(M,H=!1,X)=>{const ee=H?y===M.id:m===M.id;return f.jsx(b5,{icon:C(M.icon),onClick:()=>D(M,X),className:"mx-auto mb-1 rounded-md",rootStyles:N(H,ee),children:H?M.label:f.jsxs("div",{className:"flex w-full items-center justify-between",children:[f.jsx("span",{children:M.label}),M.subMenuSection&&f.jsx(xD,{className:`text-lg transition-transform duration-200 ${h.has(M.id)?"rotate-180":""}`})]})},M.id)},Y=M=>M.map(H=>f.jsxs("div",{children:[T(H),H.subMenuSection&&h.has(H.id)&&f.jsx("div",{className:"ml-4 space-y-1 mb-2",children:H.subMenuSection.items.map(X=>T(X,!0,H.id))})]},H.id)),F=()=>{u||d(!1)},E=()=>{u||(d(!0),p(new Set))},D=(M,H)=>{if(H?(b(H),v(M.id)):(b(M.id),v(null)),M.subMenuSection){const X=new Set(h);X.has(M.id)?X.delete(M.id):X.add(M.id),p(X)}else M.action?M.action():M.href&&(M.target==="_blank"?window.open(M.href,"_blank"):window.location.href=M.href)},j=M=>{M.action?M.action():M.href&&(M.target==="_blank"?window.open(M.href,"_blank"):window.location.href=M.href)};return f.jsx("div",{className:`fixed left-0 top-0 z-40 my-1 mx-2 ${l}`,children:f.jsxs("div",{className:"flex flex-col",onMouseEnter:F,onMouseLeave:E,children:[f.jsxs(XM,{collapsed:c,rootStyles:{[`.${Ue.container}`]:{background:o,color:i,height:"100vh",display:"flex",flexDirection:"column",width:c?"60px":"275px",transition:"all 400ms ease-in-out",borderRadius:"20px",boxShadow:"5px 0px 10px 0px #00000040;",padding:c?"0":"0.45rem"}},children:[f.jsx("div",{className:`${c?"mx-auto":""} mb-4 mt-10 `,children:f.jsx("a",{href:t||"/",children:f.jsx("div",{className:"overflow-hidden mx-3",style:{width:`${P}px`,transition:"width 400ms ease-in-out"},children:f.jsx(Cr,{src:e.src.expanded,alt:e.alt,width:S})})})}),f.jsxs("div",{className:"flex h-full flex-col",children:[f.jsxs(QM,{className:"mx-1 flex-1 relative",children:[f.jsx("div",{className:"flex flex-col",children:Y(k)}),f.jsx("div",{className:` ${h.size===0?"absolute bottom-0":""} w-full`,children:Y(w)})]}),s&&f.jsx("div",{className:"w-full cursor-pointer py-4 px-5 mt-auto mb-1",children:f.jsx("div",{className:"flex rounded-2xl mb-1",style:{background:c?"transparent":"#FFFFFF1A",float:c?"none":"right",width:c?"20px":"fit-content",height:c?"20px":"fit-content",padding:c?"0":"0.5rem"},onClick:s,children:f.jsx("button",{style:{color:i,width:c?"20px":"fit-content",height:c?"20px":"fit-content"},children:f.jsx("img",{src:"https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg",alt:"logout",width:c?"25px":"fit-content",height:c?"25px":"fit-content"})})})})]})]}),r.length>0&&f.jsx(k0,{width:"40%",isOpen:u==="campaigns",onClose:()=>g(null),children:f.jsxs("div",{className:"flex flex-col px-10 pb-5",children:[f.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),f.jsx("div",{className:"flex",children:r.map(M=>f.jsx("div",{className:"flex w-3/6 p-2",onClick:()=>j(M),children:f.jsx(Kd,{imageUrl:M.imageUrl,title:M.title,description:M.description})},M.id))})]})})]})})},Qd={"mth-color-primary":"pagination-module__mth-color-primary__hNTQd","mth-input-number":"pagination-module__mth-input-number__2TY-u"};function v5(t){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(t)}function x5(t){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(t)}function ey(t){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368 144 144m224 0L144 368"},child:[]}]})(t)}const Zd=({currentPage:t,totalPages:e,onPageChange:n,value:r})=>f.jsxs("div",{className:"flex items-center justify-center gap-4",children:[f.jsxs("span",{className:"text-xs text-gray-700",children:["Ver ",f.jsx("input",{type:"number",className:`w-8 h-8 text-xs ${Qd["mth-input-number"]}`,id:"itemsPerPage",defaultValue:r||15,maxLength:3})]}),f.jsx("button",{onClick:()=>n(t-1),disabled:t===1,className:" text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:f.jsx(v5,{className:`w-6 h-6 ${Qd["mth-color-primary"]}`})}),f.jsxs("span",{className:"text-xs text-gray-700",children:[t," DE ",e]}),f.jsx("button",{onClick:()=>n(t+1),disabled:t===e,className:"text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:f.jsx(x5,{className:`w-6 h-6 ${Qd["mth-color-primary"]}`})})]}),k5={mth_toggle:"toggle-module__mth_toggle__8NB4F"};function Jd({labelIzquierda:t,labelDerecha:e,checkedLabel:n,uncheckedLabel:r,checked:s=!1,disabled:a=!1,onChange:o,colors:i={},labelPosition:l="right",boldWhenActive:c=!1}){const[d,u]=_.useState(s),h={...{offBackgroundColor:"#EEEEEE",offCircleColor:"#BBBBBB",offCircleBorderColor:"#BBBBBB",onBackgroundColor:"#DEE9FF",onCircleColor:"#191960",onCircleBorderColor:"#191960"},...i},p=C=>{if(a)return;const N=C.target.checked;u(N),o==null||o(N)},m=d?h.onBackgroundColor:h.offBackgroundColor,b=d?h.onCircleColor:h.offCircleColor,y=d?h.onCircleBorderColor:h.offCircleBorderColor,v=t||n||r||e,k=`text-sm ${a?"text-gray-500":"text-gray-700"}`,w=t&&f.jsx("span",{className:!d&&c?"font-bold "+k:k,children:t}),x=e&&f.jsx("span",{className:d&&c?"font-bold "+k:k,children:e}),S=f.jsxs("label",{className:`inline-flex items-center ${a?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[f.jsx("input",{type:"checkbox",className:"peer sr-only",checked:d,onChange:p,disabled:a}),f.jsx("div",{className:`${k5.mth_toggle} peer relative h-5 w-9 rounded-full
|
|
487
|
+
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ke.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Jb({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),vD=function(t,e){var n,r=t.children,s=t.icon,a=t.className,o=t.prefix,i=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,h=t.component,g=t.rootStyles,m=zr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),p=_.useContext(zi),b=_.useContext(Wi),y=b.collapsed,v=b.rtl,k=b.transitionDuration,w=Ld().menuItemStyles,x=function(N){if(w){var M={level:p,disabled:u,active:c,isSubmenu:!1},P=w.root,S=w.button,B=w.label,A=w.icon,T=w.prefix,D=w.suffix;switch(N){case"root":return typeof P=="function"?P(M):P;case"button":return typeof S=="function"?S(M):S;case"label":return typeof B=="function"?B(M):B;case"icon":return typeof A=="function"?A(M):A;case"prefix":return typeof T=="function"?T(M):T;case"suffix":return typeof D=="function"?D(M):D;default:return}}},C=(n={},n[ke.active]=c,n[ke.disabled]=u,n);return _.createElement(wD,{ref:e,className:lt(ke.menuItemRoot,C,a),menuItemStyles:x("root"),level:p,collapsed:y,rtl:v,disabled:u,active:c,buttonStyles:x("button"),rootStyles:g},_.createElement(qb,Bt({className:lt(ke.button,C),"data-testid":"".concat(ke.button,"-test-id"),component:h,tabIndex:0},m),s&&_.createElement(kb,{rtl:v,className:lt(ke.icon,C),rootStyles:x("icon")},s),o&&_.createElement(Cb,{collapsed:y,transitionDuration:k,firstLevel:p===0,className:lt(ke.prefix,C),rtl:v,rootStyles:x("prefix")},o),_.createElement(vb,{className:lt(ke.label,C),rootStyles:x("label")},r),i&&_.createElement(Ob,{collapsed:y,transitionDuration:k,firstLevel:p===0,className:lt(ke.suffix,C),rootStyles:x("suffix")},i)))},xD=_.forwardRef(vD),ey;const kD="p-4 z-50 bg-[#191960] text-white text-xs text-start font-semibold max-w-[280px] whitespace-normal break-words";function $a({content:t,trigger:e,children:n,disabled:r}){return r?f.jsx("div",{className:"flex",children:n}):f.jsx("div",{className:"flex",children:f.jsx(Jo,{content:t,trigger:e,className:kD,children:n})})}const Gd="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200C13.971%200%2018%204.029%2018%209C18%2013.971%2013.971%2018%209%2018C4.029%2018%200%2013.971%200%209C0%204.029%204.029%200%209%200ZM8%208.25C7.58579%208.25%207.25%208.58579%207.25%209C7.25%209.41421%207.58579%209.75%208%209.75H8.25V14C8.25%2014.4142%208.58579%2014.75%209%2014.75C9.41421%2014.75%209.75%2014.4142%209.75%2014V9C9.75%208.58579%209.41421%208.25%209%208.25H8ZM8.74902%204.25C8.19966%204.25%207.74892%204.69502%207.75%205.25L7.75488%205.35254C7.80623%205.85661%208.2324%206.25%208.75%206.25C9.30221%206.25%209.75%205.80221%209.75%205.25C9.75%204.73062%209.35499%204.3061%208.85156%204.25488L8.74902%204.25Z'%20fill='%23191960'/%3e%3c/svg%3e",Kd=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:s,description:a,width:o,height:i,iconPosition:l,imagePosition:c,tooltip:d,tooltipContent:u,tooltipTrigger:h}=t,g={start:"justify-start",center:"justify-center",end:"justify-end"}[l||"center"];return f.jsx("div",{className:`${Ag.Card} flex flex-col border px-3.5 py-7`,ref:e,children:f.jsxs("div",{className:"flex justify-between",children:[n?f.jsx(Sr,{classIm:c||"mx-auto",src:n,alt:s,width:o,height:i}):r?f.jsx("div",{className:`flex ${g}`,children:f.jsx(r,{size:o||50})}):null,f.jsxs("div",{className:"flex flex-col pl-8",children:[f.jsx("h3",{className:"font-bold text-base md:text-lg text-end",children:f.jsxs("span",{className:"inline-flex items-center gap-2",children:[f.jsx("span",{children:s}),d?f.jsx($a,{content:u||"",trigger:h||"hover",disabled:!u,children:f.jsx("img",{src:Gd,alt:"info",className:"size-4"})}):null]})}),a&&f.jsx("p",{className:"text-lg md:text-xl font-normal text-end",children:a})]})]})})});Kd.displayName="Card";const _D=({aHref:t,logo:e,menuItems:n,campaignCards:r=[],onLogout:s,defaultCollapsed:a=!1,background:o="linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",textColor:i="#ffffff",className:l=""})=>{const[c,d]=_.useState(a),[u,h]=_.useState(null),[g,m]=_.useState(new Set),[p,b]=_.useState(null),[y,v]=_.useState(null),k=n.filter(E=>E.position!=="bottom"),w=n.filter(E=>E.position==="bottom"),x=e.width.collapsed,C=e.width.expanded,N=c?x:C,M=E=>typeof E=="string"?f.jsx("img",{src:E,style:{width:"20px",height:"20px"}}):E?_.createElement(E,{style:{width:"20px",height:"20px"}}):null,P=(E=!1,Y=!1)=>({background:c?"transparent":Y?"#FFFFFF55":E?"#FFFFFF22":"#FFFFFF33",color:i,borderRadius:E?"15px":"20px",button:{width:c?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:c?"0 0.25rem":"0 0.5rem",color:i,fontSize:E?"0.9rem":void 0}}),S=(E,Y=!1,X)=>{const ee=Y?y===E.id:p===E.id;return f.jsx(xD,{icon:M(E.icon),onClick:()=>D(E,X),className:"mx-auto mb-1 rounded-md",rootStyles:P(Y,ee),children:Y?E.label:f.jsxs("div",{className:"flex w-full items-center justify-between",children:[f.jsx("span",{children:E.label}),E.subMenuSection&&f.jsx(SS,{className:`text-lg transition-transform duration-200 ${g.has(E.id)?"rotate-180":""}`})]})},E.id)},B=E=>E.map(Y=>f.jsxs("div",{children:[S(Y),Y.subMenuSection&&g.has(Y.id)&&f.jsx("div",{className:"ml-4 space-y-1 mb-2",children:Y.subMenuSection.items.map(X=>S(X,!0,Y.id))})]},Y.id)),A=()=>{u||d(!1)},T=()=>{u||(d(!0),m(new Set))},D=(E,Y)=>{if(Y?(b(Y),v(E.id)):(b(E.id),v(null)),E.subMenuSection){const X=new Set(g);X.has(E.id)?X.delete(E.id):X.add(E.id),m(X)}else E.action?E.action():E.href&&(E.target==="_blank"?window.open(E.href,"_blank"):window.location.href=E.href)},j=E=>{E.action?E.action():E.href&&(E.target==="_blank"?window.open(E.href,"_blank"):window.location.href=E.href)};return f.jsx("div",{className:`fixed left-0 top-0 z-40 my-1 mx-2 ${l}`,children:f.jsxs("div",{className:"flex flex-col",onMouseEnter:A,onMouseLeave:T,children:[f.jsxs(Q4,{collapsed:c,rootStyles:{[`.${Ue.container}`]:{background:o,color:i,height:"100vh",display:"flex",flexDirection:"column",width:c?"60px":"275px",transition:"all 400ms ease-in-out",borderRadius:"20px",boxShadow:"5px 0px 10px 0px #00000040;",padding:c?"0":"0.45rem"}},children:[f.jsx("div",{className:`${c?"mx-auto":""} mb-4 mt-10 `,children:f.jsx("a",{href:t||"/",children:f.jsx("div",{className:"overflow-hidden mx-3",style:{width:`${N}px`,transition:"width 400ms ease-in-out"},children:f.jsx(Sr,{src:e.src.expanded,alt:e.alt,width:C})})})}),f.jsxs("div",{className:"flex h-full flex-col",children:[f.jsxs($4,{className:"mx-1 flex-1 relative",children:[f.jsx("div",{className:"flex flex-col",children:B(k)}),f.jsx("div",{className:` ${g.size===0?"absolute bottom-0":""} w-full`,children:B(w)})]}),s&&f.jsx("div",{className:"w-full cursor-pointer py-4 px-5 mt-auto mb-1",children:f.jsx("div",{className:"flex rounded-2xl mb-1",style:{background:c?"transparent":"#FFFFFF1A",float:c?"none":"right",width:c?"20px":"fit-content",height:c?"20px":"fit-content",padding:c?"0":"0.5rem"},onClick:s,children:f.jsx("button",{style:{color:i,width:c?"20px":"fit-content",height:c?"20px":"fit-content"},children:f.jsx("img",{src:"https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg",alt:"logout",width:c?"25px":"fit-content",height:c?"25px":"fit-content"})})})})]})]}),r.length>0&&f.jsx(_p,{width:"40%",isOpen:u==="campaigns",onClose:()=>h(null),children:f.jsxs("div",{className:"flex flex-col px-10 pb-5",children:[f.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),f.jsx("div",{className:"flex",children:r.map(E=>f.jsx("div",{className:"flex w-3/6 p-2",onClick:()=>j(E),children:f.jsx(Kd,{imageUrl:E.imageUrl,title:E.title,description:E.description})},E.id))})]})})]})})},Zd={"mth-color-primary":"pagination-module__mth-color-primary__hNTQd","mth-input-number":"pagination-module__mth-input-number__2TY-u"};function CD(t){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(t)}function SD(t){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(t)}function ty(t){return Pe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368 144 144m224 0L144 368"},child:[]}]})(t)}const Qd=({currentPage:t,totalPages:e,onPageChange:n,value:r})=>f.jsxs("div",{className:"flex items-center justify-center gap-4",children:[f.jsxs("span",{className:"text-xs text-gray-700",children:["Ver ",f.jsx("input",{type:"number",className:`w-8 h-8 text-xs ${Zd["mth-input-number"]}`,id:"itemsPerPage",defaultValue:r||15,maxLength:3})]}),f.jsx("button",{onClick:()=>n(t-1),disabled:t===1,className:" text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:f.jsx(CD,{className:`w-6 h-6 ${Zd["mth-color-primary"]}`})}),f.jsxs("span",{className:"text-xs text-gray-700",children:[t," DE ",e]}),f.jsx("button",{onClick:()=>n(t+1),disabled:t===e,className:"text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:f.jsx(SD,{className:`w-6 h-6 ${Zd["mth-color-primary"]}`})})]}),OD={mth_toggle:"toggle-module__mth_toggle__8NB4F"};function Jd({labelIzquierda:t,labelDerecha:e,checkedLabel:n,uncheckedLabel:r,checked:s=!1,disabled:a=!1,onChange:o,colors:i={},labelPosition:l="right",boldWhenActive:c=!1}){const[d,u]=_.useState(s),g={...{offBackgroundColor:"#EEEEEE",offCircleColor:"#BBBBBB",offCircleBorderColor:"#BBBBBB",onBackgroundColor:"#DEE9FF",onCircleColor:"#191960",onCircleBorderColor:"#191960"},...i},m=M=>{if(a)return;const P=M.target.checked;u(P),o==null||o(P)},p=d?g.onBackgroundColor:g.offBackgroundColor,b=d?g.onCircleColor:g.offCircleColor,y=d?g.onCircleBorderColor:g.offCircleBorderColor,v=t||n||r||e,k=`text-sm ${a?"text-gray-500":"text-gray-700"}`,w=t&&f.jsx("span",{className:!d&&c?"font-bold "+k:k,children:t}),x=e&&f.jsx("span",{className:d&&c?"font-bold "+k:k,children:e}),C=f.jsxs("label",{className:`inline-flex items-center ${a?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[f.jsx("input",{type:"checkbox",className:"peer sr-only",checked:d,onChange:m,disabled:a}),f.jsx("div",{className:`${OD.mth_toggle} peer relative h-5 w-9 rounded-full
|
|
488
488
|
after:absolute after:start-[2px]
|
|
489
489
|
after:top-0.5 after:h-4
|
|
490
490
|
after:w-4 after:rounded-full
|
|
491
491
|
after:border after:transition-all after:content-['']
|
|
492
492
|
peer-checked:after:translate-x-full
|
|
493
|
-
dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`,style:{backgroundColor:
|
|
493
|
+
dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`,style:{backgroundColor:p,borderColor:p,"--circle-color":b,"--circle-border-color":y}})]}),N=v&&f.jsx("span",{className:k,children:v});return l==="left"?f.jsxs("div",{className:"flex items-center gap-2",children:[w||N,C]}):l==="both"?f.jsxs("div",{className:"flex items-center gap-2",children:[w||N,C,x||N]}):f.jsxs("div",{className:"flex items-center gap-2",children:[C,x||N]})}const DD={"tag-status-active":"Tag-module__tag-status-active__sxB2B",tagStatusActive:"Tag-module__tag-status-active__sxB2B","tag-status-in-use":"Tag-module__tag-status-in-use__MxP6E",tagStatusInUse:"Tag-module__tag-status-in-use__MxP6E","tag-status-error":"Tag-module__tag-status-error__l5Sfk",tagStatusError:"Tag-module__tag-status-error__l5Sfk","tag-status-processing":"Tag-module__tag-status-processing__YZMyD",tagStatusProcessing:"Tag-module__tag-status-processing__YZMyD","tag-ip":"Tag-module__tag-ip__08Rj3",tagIp:"Tag-module__tag-ip__08Rj3","tag-hash":"Tag-module__tag-hash__4DaiP",tagHash:"Tag-module__tag-hash__4DaiP","tag-custom":"Tag-module__tag-custom__viYxs",tagCustom:"Tag-module__tag-custom__viYxs","tag-default":"Tag-module__tag-default__vcE6f",tagDefault:"Tag-module__tag-default__vcE6f","tag-platform-fb":"Tag-module__tag-platform-fb__eD3vD",tagPlatformFb:"Tag-module__tag-platform-fb__eD3vD","tag-platform-gl":"Tag-module__tag-platform-gl__VRF6b",tagPlatformGl:"Tag-module__tag-platform-gl__VRF6b","tag-platform-tk":"Tag-module__tag-platform-tk__vMNxk",tagPlatformTk:"Tag-module__tag-platform-tk__vMNxk","tag-platform-mth":"Tag-module__tag-platform-mth__qnGxi",tagPlatformMth:"Tag-module__tag-platform-mth__qnGxi"},qd=({variant:t,children:e})=>f.jsx("span",{className:`inline-flex items-center text-[10px] rounded-[10px] px-2 py-1 ${DD[t.bg]}`,children:e}),MD={bg:"bg-gray-100",text:"text-gray-500"},ny=(t,e)=>{const n=e.normalize?e.normalize(t):t.toLowerCase().trim();return e.variants[n]??e.defaultVariant??MD},ry=({value:t,config:e})=>{if(e.multiple){const r=Array.isArray(t)?t.map(String):t?[String(t)]:[];return f.jsx("div",{className:"flex flex-wrap gap-1",children:r.map(s=>f.jsx(qd,{variant:ny(s,e),shape:e.shape,children:s},s))})}const n=String(t??"");return f.jsx(qd,{variant:ny(n,e),shape:e.shape,children:n})},ED=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:h})=>{const[g,m]=W.useState(""),[p,b]=W.useState(1),[y,v]=W.useState(null),k=W.useMemo(()=>y?[...e].sort((T,D)=>{const j=T[y.key],E=D[y.key];return j==null||E==null?0:typeof j=="string"&&typeof E=="string"?y.direction==="asc"?j.localeCompare(E):E.localeCompare(j):y.direction==="asc"?Number(j)-Number(E):Number(E)-Number(j)}):e,[e,y]),w=W.useMemo(()=>g.trim()?k.filter(T=>t.some(D=>{const j=T[D.relation];return j!=null&&String(j).toLowerCase().includes(g.toLowerCase().trim())})):k,[k,g,t]),x=W.useMemo(()=>{const T=(p-1)*r,D=T+r;return w.slice(T,D)},[w,p,r]),C=Math.ceil(w.length/r),N=()=>{if(h){const T=x.length>0&&x.every(D=>c.has(D.id));h(!T)}},M=T=>{if(u){const D=c.has(T);u(T,!D)}},P=x.length>0&&x.every(T=>c.has(T.id)),S=c.size>0&&c.size<x.length,B=T=>{v(D=>!D||D.key!==T?{key:T,direction:"asc"}:{key:T,direction:D.direction==="asc"?"desc":"asc"})},A=(T,D)=>{const j=D[T.relation];if(T.isToggle){const E=!!j;return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Jd,{checked:E,onChange:Y=>d==null?void 0:d({rowId:D.id,checked:Y,row:D,columnKey:T.relation}),disabled:!1}),T.toggleText&&f.jsx("span",{className:"text-sm text-gray-600",children:E?T.toggleText.active:T.toggleText.inactive})]})}if(T.badgeConfig)return f.jsx(ry,{value:j,config:T.badgeConfig});if(T.cell)return T.cell(D);if(T.component){const E=T.component;return W.createElement(E,{row:D,value:j,...T.cellProps||{}})}return j??""};return f.jsxs("div",{className:"w-full",children:[f.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&f.jsx("h2",{className:"text-base font-bold",children:s})}),f.jsx("div",{className:"flex",children:n&&f.jsx("div",{className:"w-1/2",children:f.jsx(ds,{rightIcon:Mf,placeholder:"Buscar",value:g,onChange:T=>m(T.target.value)})})}),f.jsxs("div",{className:"mt-0",children:[f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(Ke,{children:[f.jsxs(Ke.Head,{className:`mth_head_table ${a}`,children:[l&&f.jsx(Ke.HeadCell,{children:f.jsx(oa,{checked:P,ref:T=>{T&&(T.indeterminate=S)},onChange:N})},`${l}-checkbox`),t.map((T,D)=>f.jsx(Ke.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>T.sortable!==!1&&B(T.relation),children:f.jsxs("div",{className:"flex items-center",children:[T.header,T.sortable!==!1&&f.jsx("span",{children:(y==null?void 0:y.key)===T.relation?y.direction==="desc"?f.jsx(xs,{className:"size-4"}):f.jsx(Lc,{className:"size-4"}):f.jsx(xs,{className:"size-4 opacity-50"})})]})},`column-${D}-${T.relation}`))]}),f.jsx(Ke.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:x.map(T=>f.jsxs(Ke.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[l&&f.jsx(Ke.Cell,{children:f.jsx(oa,{checked:c.has(T.id),onChange:()=>M(T.id)})},`${T.id}-checkbox`),t.map((D,j)=>f.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:A(D,T)},`${T.id}-${j}`))]},T.id))})]})}),i&&C>1&&f.jsx("div",{className:"mt-2 flex w-full justify-end",children:f.jsx(Qd,{currentPage:p,totalPages:C,onPageChange:b})})]})]})},TD={"m-image-container":"layoutOutside-module__m-image-container__sCvFu"},PD=({content:t})=>f.jsxs("div",{className:"mt-12",children:[f.jsx("div",{style:{backgroundImage:"url('https://ftp.mathilde-ads.com/382-b4bf8bd2281b8a39dac4187eeb2e4232.png')",backgroundRepeat:"no-repeat",backgroundSize:"300px 300px",backgroundPosition:"left bottom",height:"100vh"},className:TD["m-image-container"]}),f.jsx("div",{className:"mx-auto mb-4 flex justify-center",children:f.jsx(Sr,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/382-769cbed25990320dc541cb445528e4b2.png",alt:"Logo Mathilde ads",width:300,height:250})}),t]}),ND=({onOpenModal:t,checked:e,onChange:n,label:r,...s})=>{const a=()=>{e||t(),n(!1)};return f.jsx("div",{className:"mb-5",children:f.jsxs("label",{className:na["checkbox-container"],children:[f.jsx("input",{type:"checkbox",...s,checked:e,onChange:a,required:!0}),f.jsx("span",{className:na.checkmark}),r&&f.jsx("span",{children:r})]})})},sy=({validations:t})=>{const e=({isValid:r})=>f.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${r?"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:f.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"})}),n=[{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 f.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:n.map(({key:r,text:s})=>f.jsxs("li",{className:"flex items-center",children:[f.jsx(e,{isValid:t[r]}),s]},r))})},jD=()=>{const[t,e]=_.useState(""),[n,r]=_.useState(""),[s,a]=_.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});_.useEffect(()=>{a({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const o=()=>t.trim()&&n.trim()&&t===n&&Object.values(s).every(l=>l);return{password:t,setPassword:e,confirmPassword:n,setConfirmPassword:r,showError:()=>!o()&&t.trim()&&n.trim(),validations:s}},ID=({formik:t})=>{const{password:e,setPassword:n,confirmPassword:r,setConfirmPassword:s,validations:a}=jD();return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"block",children:[f.jsx(Vc,{placeholder:"Contraseña",value:e,onChange:o=>{n(o.target.value),t.setFieldValue("password",o.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),f.jsxs("div",{className:"block",children:[f.jsx(Vc,{placeholder:"Confirmar contraseña",value:r,onChange:o=>{s(o.target.value),t.setFieldValue("confirmPassword",o.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&f.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),f.jsx(sy,{validations:a})]})},AD=({items:t})=>{const[e,n]=_.useState([]),r=a=>{n(o=>o.includes(a)?o.filter(i=>i!==a):[...o,a])},s=(a,o=0)=>f.jsx("ul",{className:"list-none space-y-2",children:a.map(i=>{const l=i.subItems&&i.subItems.length>0,c=e.includes(i.id);return f.jsxs("li",{className:`
|
|
494
494
|
${o>0?"ml-7":""}
|
|
495
495
|
`,children:[f.jsxs("div",{className:"flex items-center gap-2 py-1",children:[f.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&f.jsx("button",{onClick:()=>r(i.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?f.jsx(Lc,{className:"text-sm text-gray-500"}):f.jsx(xs,{className:"text-sm text-gray-500"})}),!l&&f.jsx("div",{className:"w-[28px]"})," ",i.icon&&f.jsx(i.icon,{className:`text-lg ${i.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),f.jsx("a",{href:i.href,className:`
|
|
496
496
|
flex-grow transition-colors duration-200
|
|
@@ -498,7 +498,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
498
498
|
`,children:i.title})]}),l&&c&&s(i.subItems||[],o+1)]},i.id)})});return f.jsx("nav",{id:"TableOfContents",children:s(t)})};/*!
|
|
499
499
|
* sweetalert2 v11.26.4
|
|
500
500
|
* Released under the MIT License.
|
|
501
|
-
*/function
|
|
501
|
+
*/function ay(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function RD(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function oy(t,e){return t.get(ay(t,e))}function LD(t,e,n){RD(t,e),e.set(t,n)}function FD(t,e,n){return t.set(ay(t,e),n),n}const BD=100,fe={},WD=()=>{fe.previousActiveElement instanceof HTMLElement?(fe.previousActiveElement.focus(),fe.previousActiveElement=null):document.body&&document.body.focus()},zD=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;fe.restoreFocusTimeout=setTimeout(()=>{WD(),e()},BD),window.scrollTo(n,r)}),iy="swal2-",G=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((t,e)=>(t[e]=iy+e,t),{}),Gi=["success","warning","info","question","error"].reduce((t,e)=>(t[e]=iy+e,t),{}),ly="SweetAlert2:",$d=t=>t.charAt(0).toUpperCase()+t.slice(1),Ct=t=>{console.warn(`${ly} ${typeof t=="object"?t.join(" "):t}`)},Xr=t=>{console.error(`${ly} ${t}`)},cy=[],HD=t=>{cy.includes(t)||(cy.push(t),Ct(t))},dy=(t,e=null)=>{HD(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},Ki=t=>typeof t=="function"?t():t,eu=t=>t&&typeof t.toPromise=="function",eo=t=>eu(t)?t.toPromise():Promise.resolve(t),tu=t=>t&&Promise.resolve(t)===t,St=()=>document.body.querySelector(`.${G.container}`),to=t=>{const e=St();return e?e.querySelector(t):null},Ht=t=>to(`.${t}`),ve=()=>Ht(G.popup),As=()=>Ht(G.icon),YD=()=>Ht(G["icon-content"]),uy=()=>Ht(G.title),nu=()=>Ht(G["html-container"]),fy=()=>Ht(G.image),ru=()=>Ht(G["progress-steps"]),Zi=()=>Ht(G["validation-message"]),Sn=()=>to(`.${G.actions} .${G.confirm}`),Rs=()=>to(`.${G.actions} .${G.cancel}`),Gr=()=>to(`.${G.actions} .${G.deny}`),VD=()=>Ht(G["input-label"]),Ls=()=>to(`.${G.loader}`),no=()=>Ht(G.actions),hy=()=>Ht(G.footer),Qi=()=>Ht(G["timer-progress-bar"]),su=()=>Ht(G.close),UD=`
|
|
502
502
|
a[href],
|
|
503
503
|
area[href],
|
|
504
504
|
input:not([disabled]),
|
|
@@ -513,7 +513,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
513
513
|
audio[controls],
|
|
514
514
|
video[controls],
|
|
515
515
|
summary
|
|
516
|
-
`,au=()=>{const t=ve();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((a,o)=>{const i=parseInt(a.getAttribute("tabindex")||"0"),l=parseInt(o.getAttribute("tabindex")||"0");return i>l?1:i<l?-1:0}),r=t.querySelectorAll(
|
|
516
|
+
`,au=()=>{const t=ve();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((a,o)=>{const i=parseInt(a.getAttribute("tabindex")||"0"),l=parseInt(o.getAttribute("tabindex")||"0");return i>l?1:i<l?-1:0}),r=t.querySelectorAll(UD),s=Array.from(r).filter(a=>a.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(s))].filter(a=>At(a))},ou=()=>Un(document.body,G.shown)&&!Un(document.body,G["toast-shown"])&&!Un(document.body,G["no-backdrop"]),Ji=()=>{const t=ve();return t?Un(t,G.toast):!1},XD=()=>{const t=ve();return t?t.hasAttribute("data-loading"):!1},Yt=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html"),s=r.querySelector("head");s&&Array.from(s.childNodes).forEach(o=>{t.appendChild(o)});const a=r.querySelector("body");a&&Array.from(a.childNodes).forEach(o=>{o instanceof HTMLVideoElement||o instanceof HTMLAudioElement?t.appendChild(o.cloneNode(!0)):t.appendChild(o)})}},Un=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},GD=(t,e)=>{Array.from(t.classList).forEach(n=>{!Object.values(G).includes(n)&&!Object.values(Gi).includes(n)&&!Object.values(e.showClass||{}).includes(n)&&t.classList.remove(n)})},Vt=(t,e,n)=>{if(GD(t,e),!e.customClass)return;const r=e.customClass[n];if(r){if(typeof r!="string"&&!r.forEach){Ct(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);return}_e(t,r)}},qi=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${G.popup} > .${G[e]}`);case"checkbox":return t.querySelector(`.${G.popup} > .${G.checkbox} input`);case"radio":return t.querySelector(`.${G.popup} > .${G.radio} input:checked`)||t.querySelector(`.${G.popup} > .${G.radio} input:first-child`);case"range":return t.querySelector(`.${G.popup} > .${G.range} input`);default:return t.querySelector(`.${G.popup} > .${G.input}`)}},gy=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},my=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(s=>{n?s.classList.add(r):s.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},_e=(t,e)=>{my(t,e,!0)},nn=(t,e)=>{my(t,e,!1)},mr=(t,e)=>{const n=Array.from(t.children);for(let r=0;r<n.length;r++){const s=n[r];if(s instanceof HTMLElement&&Un(s,e))return s}},Kr=(t,e,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||parseInt(`${n}`)===0?t.style.setProperty(e,typeof n=="number"?`${n}px`:n):t.style.removeProperty(e)},ut=(t,e="flex")=>{t&&(t.style.display=e)},kt=t=>{t&&(t.style.display="none")},iu=(t,e="block")=>{t&&new MutationObserver(()=>{ro(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},py=(t,e,n,r)=>{const s=t.querySelector(e);s&&s.style.setProperty(n,r)},ro=(t,e,n="flex")=>{e?ut(t,n):kt(t)},At=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),KD=()=>!At(Sn())&&!At(Gr())&&!At(Rs()),lu=t=>t.scrollHeight>t.clientHeight,ZD=(t,e)=>{let n=t;for(;n&&n!==e;){if(lu(n))return!0;n=n.parentElement}return!1},by=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},cu=(t,e=!1)=>{const n=Qi();n&&At(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},QD=()=>{const t=Qi();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.width=`${r}%`},JD=()=>typeof window>"u"||typeof document>"u",qD=`
|
|
517
517
|
<div aria-labelledby="${G.title}" aria-describedby="${G["html-container"]}" class="${G.popup}" tabindex="-1">
|
|
518
518
|
<button type="button" class="${G.close}"></button>
|
|
519
519
|
<ul class="${G["progress-steps"]}"></ul>
|
|
@@ -546,39 +546,39 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
|
|
|
546
546
|
<div class="${G["timer-progress-bar"]}"></div>
|
|
547
547
|
</div>
|
|
548
548
|
</div>
|
|
549
|
-
`.replace(/(^|\n)\s*/g,"")
|
|
549
|
+
`.replace(/(^|\n)\s*/g,""),$D=()=>{const t=St();return t?(t.remove(),nn([document.documentElement,document.body],[G["no-backdrop"],G["toast-shown"],G["has-column"]]),!0):!1},Zr=()=>{fe.currentInstance.resetValidationMessage()},eM=()=>{const t=ve(),e=mr(t,G.input),n=mr(t,G.file),r=t.querySelector(`.${G.range} input`),s=t.querySelector(`.${G.range} output`),a=mr(t,G.select),o=t.querySelector(`.${G.checkbox} input`),i=mr(t,G.textarea);e.oninput=Zr,n.onchange=Zr,a.onchange=Zr,o.onchange=Zr,i.oninput=Zr,r.oninput=()=>{Zr(),s.value=r.value},r.onchange=()=>{Zr(),s.value=r.value}},tM=t=>typeof t=="string"?document.querySelector(t):t,nM=t=>{const e=ve();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},rM=t=>{window.getComputedStyle(t).direction==="rtl"&&(_e(St(),G.rtl),fe.isRTL=!0)},sM=t=>{const e=$D();if(JD()){Xr("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=G.container,e&&_e(n,G["no-transition"]),Yt(n,qD),n.dataset.swal2Theme=t.theme;const r=tM(t.target);r.appendChild(n),t.topLayer&&(n.setAttribute("popover",""),n.showPopover()),nM(t),rM(r),eM()},du=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?aM(t,e):t&&Yt(e,t)},aM=(t,e)=>{t.jquery?oM(e,t):Yt(e,t.toString())},oM=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},iM=(t,e)=>{const n=no(),r=Ls();!n||!r||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?kt(n):ut(n),Vt(n,e,"actions"),lM(n,r,e),Yt(r,e.loaderHtml||""),Vt(r,e,"loader"))};function lM(t,e,n){const r=Sn(),s=Gr(),a=Rs();!r||!s||!a||(fu(r,"confirm",n),fu(s,"deny",n),fu(a,"cancel",n),cM(r,s,a,n),n.reverseButtons&&(n.toast?(t.insertBefore(a,r),t.insertBefore(s,r)):(t.insertBefore(a,e),t.insertBefore(s,e),t.insertBefore(r,e))))}function cM(t,e,n,r){if(!r.buttonsStyling){nn([t,e,n],G.styled);return}_e([t,e,n],G.styled),r.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),uu(t),uu(e),uu(n)}function uu(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function fu(t,e,n){const r=$d(e);ro(t,n[`show${r}Button`],"inline-block"),Yt(t,n[`${e}ButtonText`]||""),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]||""),t.className=G[e],Vt(t,n,`${e}Button`)}const dM=(t,e)=>{const n=su();n&&(Yt(n,e.closeButtonHtml||""),Vt(n,e,"closeButton"),ro(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},uM=(t,e)=>{const n=St();n&&(fM(n,e.backdrop),hM(n,e.position),gM(n,e.grow),Vt(n,e,"container"))};function fM(t,e){typeof e=="string"?t.style.background=e:e||_e([document.documentElement,document.body],G["no-backdrop"])}function hM(t,e){e&&(e in G?_e(t,G[e]):(Ct('The "position" parameter is not valid, defaulting to "center"'),_e(t,G.center)))}function gM(t,e){e&&_e(t,G[`grow-${e}`])}var Le={innerParams:new WeakMap,domCache:new WeakMap};const mM=["input","file","range","select","radio","checkbox","textarea"],pM=(t,e)=>{const n=ve();if(!n)return;const r=Le.innerParams.get(t),s=!r||e.input!==r.input;mM.forEach(a=>{const o=mr(n,G[a]);o&&(wM(a,e.inputAttributes),o.className=G[a],s&&kt(o))}),e.input&&(s&&bM(e),vM(e))},bM=t=>{if(!t.input)return;if(!Qe[t.input]){Xr(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${t.input}"`);return}const e=yy(t.input);if(!e)return;const n=Qe[t.input](e,t);ut(e),t.inputAutoFocus&&setTimeout(()=>{gy(n)})},yM=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},wM=(t,e)=>{const n=ve();if(!n)return;const r=qi(n,t);if(r){yM(r);for(const s in e)r.setAttribute(s,e[s])}},vM=t=>{if(!t.input)return;const e=yy(t.input);e&&Vt(e,t,"input")},hu=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},so=(t,e,n)=>{if(n.inputLabel){const r=document.createElement("label"),s=G["input-label"];r.setAttribute("for",t.id),r.className=s,typeof n.customClass=="object"&&_e(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},yy=t=>{const e=ve();if(e)return mr(e,G[t]||G.input)},$i=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:tu(e)||Ct(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(t,e)=>($i(t,e.inputValue),so(t,t,e),hu(t,e),t.type=e.input,t),Qe.file=(t,e)=>(so(t,t,e),hu(t,e),t),Qe.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return $i(n,e.inputValue),n.type=e.input,$i(r,e.inputValue),so(n,t,e),t},Qe.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");Yt(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return so(t,t,e),t},Qe.radio=t=>(t.textContent="",t),Qe.checkbox=(t,e)=>{const n=qi(ve(),"checkbox");n.value="1",n.checked=!!e.inputValue;const r=t.querySelector("span");return Yt(r,e.inputPlaceholder||e.inputLabel),n},Qe.textarea=(t,e)=>{$i(t,e.inputValue),hu(t,e),so(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(ve()).width),s=()=>{if(!document.body.contains(t))return;const a=t.offsetWidth+n(t);a>r?ve().style.width=`${a}px`:Kr(ve(),"width",e.width)};new MutationObserver(s).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const xM=(t,e)=>{const n=nu();n&&(iu(n),Vt(n,e,"htmlContainer"),e.html?(du(e.html,n),ut(n,"block")):e.text?(n.textContent=e.text,ut(n,"block")):kt(n),pM(t,e))},kM=(t,e)=>{const n=hy();n&&(iu(n),ro(n,!!e.footer,"block"),e.footer&&du(e.footer,n),Vt(n,e,"footer"))},_M=(t,e)=>{const n=Le.innerParams.get(t),r=As();if(!r)return;if(n&&e.icon===n.icon){xy(r,e),wy(r,e);return}if(!e.icon&&!e.iconHtml){kt(r);return}if(e.icon&&Object.keys(Gi).indexOf(e.icon)===-1){Xr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),kt(r);return}ut(r),xy(r,e),wy(r,e),_e(r,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",vy)},wy=(t,e)=>{for(const[n,r]of Object.entries(Gi))e.icon!==n&&nn(t,r);_e(t,e.icon&&Gi[e.icon]),OM(t,e),vy(),Vt(t,e,"icon")},vy=()=>{const t=ve();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},CM=t=>`
|
|
550
550
|
${t.animation?'<div class="swal2-success-circular-line-left"></div>':""}
|
|
551
551
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
552
552
|
<div class="swal2-success-ring"></div>
|
|
553
553
|
${t.animation?'<div class="swal2-success-fix"></div>':""}
|
|
554
554
|
${t.animation?'<div class="swal2-success-circular-line-right"></div>':""}
|
|
555
|
-
`,
|
|
555
|
+
`,SM=`
|
|
556
556
|
<span class="swal2-x-mark">
|
|
557
557
|
<span class="swal2-x-mark-line-left"></span>
|
|
558
558
|
<span class="swal2-x-mark-line-right"></span>
|
|
559
559
|
</span>
|
|
560
|
-
`,vy=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,r="";e.iconHtml?r=xy(e.iconHtml):e.icon==="success"?(r=vT(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?r=xT:e.icon&&(r=xy({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==r.trim()&&Yt(t,r)},kT=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])my(t,n,"background-color",e.iconColor);my(t,".swal2-success-ring","border-color",e.iconColor)}},xy=t=>`<div class="${G["icon-content"]}">${t}</div>`,_T=(t,e)=>{const n=uy();if(n){if(!e.imageUrl){kt(n);return}ut(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),Kr(n,"width",e.imageWidth),Kr(n,"height",e.imageHeight),n.className=G.image,Vt(n,e,"image")}};let gu=!1,ky=0,_y=0,Sy=0,Cy=0;const ST=t=>{t.addEventListener("mousedown",el),document.body.addEventListener("mousemove",tl),t.addEventListener("mouseup",nl),t.addEventListener("touchstart",el),document.body.addEventListener("touchmove",tl),t.addEventListener("touchend",nl)},CT=t=>{t.removeEventListener("mousedown",el),document.body.removeEventListener("mousemove",tl),t.removeEventListener("mouseup",nl),t.removeEventListener("touchstart",el),document.body.removeEventListener("touchmove",tl),t.removeEventListener("touchend",nl)},el=t=>{const e=ve();if(t.target===e||As().contains(t.target)){gu=!0;const n=Oy(t);ky=n.clientX,_y=n.clientY,Sy=parseInt(e.style.insetInlineStart)||0,Cy=parseInt(e.style.insetBlockStart)||0,_e(e,"swal2-dragging")}},tl=t=>{const e=ve();if(gu){let{clientX:n,clientY:r}=Oy(t);const s=n-ky;e.style.insetInlineStart=`${Sy+(fe.isRTL?-s:s)}px`,e.style.insetBlockStart=`${Cy+(r-_y)}px`}},nl=()=>{const t=ve();gu=!1,nn(t,"swal2-dragging")},Oy=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},OT=(t,e)=>{const n=Ct(),r=ve();if(!(!n||!r)){if(e.toast){Kr(n,"width",e.width),r.style.width="100%";const s=Ls();s&&r.insertBefore(s,As())}else Kr(r,"width",e.width);Kr(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),kt(Qi()),DT(r,e),e.draggable&&!e.toast?(_e(r,G.draggable),ST(r)):(nn(r,G.draggable),CT(r))}},DT=(t,e)=>{const n=e.showClass||{};t.className=`${G.popup} ${At(t)?n.popup:""}`,e.toast?(_e([document.documentElement,document.body],G["toast-shown"]),_e(t,G.toast)):_e(t,G.modal),Vt(t,e,"popup"),typeof e.customClass=="string"&&_e(t,e.customClass),e.icon&&_e(t,G[`icon-${e.icon}`])},MT=(t,e)=>{const n=ru();if(!n)return;const{progressSteps:r,currentProgressStep:s}=e;if(!r||r.length===0||s===void 0){kt(n);return}ut(n),n.textContent="",s>=r.length&&St("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((a,o)=>{const i=ET(a);if(n.appendChild(i),o===s&&_e(i,G["active-progress-step"]),o!==r.length-1){const l=TT(e);n.appendChild(l)}})},ET=t=>{const e=document.createElement("li");return _e(e,G["progress-step"]),Yt(e,t),e},TT=t=>{const e=document.createElement("li");return _e(e,G["progress-step-line"]),t.progressStepsDistance&&Kr(e,"width",t.progressStepsDistance),e},PT=(t,e)=>{const n=dy();n&&(iu(n),ro(n,!!(e.title||e.titleText),"block"),e.title&&du(e.title,n),e.titleText&&(n.innerText=e.titleText),Vt(n,e,"title"))},Dy=(t,e)=>{OT(t,e),iT(t,e),MT(t,e),wT(t,e),_T(t,e),PT(t,e),oT(t,e),bT(t,e),rT(t,e),yT(t,e);const n=ve();typeof e.didRender=="function"&&n&&e.didRender(n),fe.eventEmitter.emit("didRender",n)},NT=()=>At(ve()),My=()=>{var t;return(t=Cn())===null||t===void 0?void 0:t.click()},jT=()=>{var t;return(t=Gr())===null||t===void 0?void 0:t.click()},IT=()=>{var t;return(t=Rs())===null||t===void 0?void 0:t.click()},Fs=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ey=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},AT=(t,e,n)=>{Ey(t),e.toast||(t.keydownHandler=r=>LT(e,r,n),t.keydownTarget=e.keydownListenerCapture?window:ve(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},mu=(t,e)=>{var n;const r=au();if(r.length){t=t+e,t===-2&&(t=r.length-1),t===r.length?t=0:t===-1&&(t=r.length-1),r[t].focus();return}(n=ve())===null||n===void 0||n.focus()},Ty=["ArrowRight","ArrowDown"],RT=["ArrowLeft","ArrowUp"],LT=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?FT(e,t):e.key==="Tab"?BT(e):[...Ty,...RT].includes(e.key)?WT(e.key):e.key==="Escape"&&zT(e,t,n)))},FT=(t,e)=>{if(!Ki(e.allowEnterKey))return;const n=qi(ve(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;My(),t.preventDefault()}},BT=t=>{const e=t.target,n=au();let r=-1;for(let s=0;s<n.length;s++)if(e===n[s]){r=s;break}t.shiftKey?mu(r,-1):mu(r,1),t.stopPropagation(),t.preventDefault()},WT=t=>{const e=no(),n=Cn(),r=Gr(),s=Rs();if(!e||!n||!r||!s)return;const a=[n,r,s];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=Ty.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let l=0;l<e.children.length;l++){if(i=i[o],!i)return;if(i instanceof HTMLButtonElement&&At(i))break}i instanceof HTMLButtonElement&&i.focus()}},zT=(t,e,n)=>{t.preventDefault(),Ki(e.allowEscapeKey)&&n(Fs.esc)};var Bs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const HT=()=>{const t=Ct();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Py=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Ny=typeof window<"u"&&!!window.GestureEvent,YT=()=>{if(Ny&&!Un(document.body,G.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,_e(document.body,G.iosfix),VT()}},VT=()=>{const t=Ct();if(!t)return;let e;t.ontouchstart=n=>{e=UT(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},UT=t=>{const e=t.target,n=Ct(),r=nu();return!n||!r||XT(t)||GT(t)?!1:e===n||!lu(n)&&e instanceof HTMLElement&&!U5(e,r)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(lu(r)&&r.contains(e))},XT=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",GT=t=>t.touches&&t.touches.length>1,KT=()=>{if(Un(document.body,G.iosfix)){const t=parseInt(document.body.style.top,10);nn(document.body,G.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},QT=()=>{const t=document.createElement("div");t.className=G["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let Ws=null;const ZT=t=>{Ws===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(Ws=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ws+QT()}px`)},JT=()=>{Ws!==null&&(document.body.style.paddingRight=`${Ws}px`,Ws=null)};function jy(t,e,n,r){Ji()?Ay(t,r):(L5(n).then(()=>Ay(t,r)),Ey(fe)),Ny?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),ou()&&(JT(),KT(),Py()),qT()}function qT(){nn([document.documentElement,document.body],[G.shown,G["height-auto"],G["no-backdrop"],G["toast-shown"]])}function pr(t){t=eP(t);const e=Bs.swalPromiseResolve.get(this),n=$T(this);this.isAwaitingPromise?t.isDismissed||(ao(this),e(t)):n&&e(t)}const $T=t=>{const e=ve();if(!e)return!1;const n=Le.innerParams.get(t);if(!n||Un(e,n.hideClass.popup))return!1;nn(e,n.showClass.popup),_e(e,n.hideClass.popup);const r=Ct();return nn(r,n.showClass.backdrop),_e(r,n.hideClass.backdrop),tP(t,e,n),!0};function Iy(t){const e=Bs.swalPromiseReject.get(this);ao(this),e&&e(t)}const ao=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,Le.innerParams.get(t)||t._destroy())},eP=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),tP=(t,e,n)=>{var r;const s=Ct(),a=py(e);typeof n.willClose=="function"&&n.willClose(e),(r=fe.eventEmitter)===null||r===void 0||r.emit("willClose",e),a?nP(t,e,s,n.returnFocus,n.didClose):jy(t,s,n.returnFocus,n.didClose)},nP=(t,e,n,r,s)=>{fe.swalCloseEventFinishedCallback=jy.bind(null,t,n,r,s);const a=function(o){if(o.target===e){var i;(i=fe.swalCloseEventFinishedCallback)===null||i===void 0||i.call(fe),delete fe.swalCloseEventFinishedCallback,e.removeEventListener("animationend",a),e.removeEventListener("transitionend",a)}};e.addEventListener("animationend",a),e.addEventListener("transitionend",a)},Ay=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=fe.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},zs=t=>{let e=ve();if(e||new Ys,e=ve(),!e)return;const n=Ls();Ji()?kt(As()):rP(e,t),ut(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},rP=(t,e)=>{const n=no(),r=Ls();!n||!r||(!e&&At(Cn())&&(e=Cn()),ut(n),e&&(kt(e),r.setAttribute("data-button-to-replace",e.className),n.insertBefore(r,e)),_e([t,n],G.loading))},sP=(t,e)=>{e.input==="select"||e.input==="radio"?cP(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(eu(e.inputValue)||tu(e.inputValue))&&(zs(Cn()),dP(t,e))},aP=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return oP(n);case"radio":return iP(n);case"file":return lP(n);default:return e.inputAutoTrim?n.value.trim():n.value}},oP=t=>t.checked?1:0,iP=t=>t.checked?t.value:null,lP=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,cP=(t,e)=>{const n=ve();if(!n)return;const r=s=>{e.input==="select"?uP(n,rl(s),e):e.input==="radio"&&fP(n,rl(s),e)};eu(e.inputOptions)||tu(e.inputOptions)?(zs(Cn()),eo(e.inputOptions).then(s=>{t.hideLoading(),r(s)})):typeof e.inputOptions=="object"?r(e.inputOptions):Xr(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},dP=(t,e)=>{const n=t.getInput();n&&(kt(n),eo(e.inputValue).then(r=>{n.value=e.input==="number"?`${parseFloat(r)||0}`:`${r}`,ut(n),n.focus(),t.hideLoading()}).catch(r=>{Xr(`Error in inputValue promise: ${r}`),n.value="",ut(n),n.focus(),t.hideLoading()}))};function uP(t,e,n){const r=mr(t,G.select);if(!r)return;const s=(a,o,i)=>{const l=document.createElement("option");l.value=i,Yt(l,o),l.selected=Ry(i,n.inputValue),a.appendChild(l)};e.forEach(a=>{const o=a[0],i=a[1];if(Array.isArray(i)){const l=document.createElement("optgroup");l.label=o,l.disabled=!1,r.appendChild(l),i.forEach(c=>s(l,c[1],c[0]))}else s(r,i,o)}),r.focus()}function fP(t,e,n){const r=mr(t,G.radio);if(!r)return;e.forEach(a=>{const o=a[0],i=a[1],l=document.createElement("input"),c=document.createElement("label");l.type="radio",l.name=G.radio,l.value=o,Ry(o,n.inputValue)&&(l.checked=!0);const d=document.createElement("span");Yt(d,i),d.className=G.label,c.appendChild(l),c.appendChild(d),r.appendChild(c)});const s=r.querySelectorAll("input");s.length&&s[0].focus()}const rl=t=>{const e=[];return t instanceof Map?t.forEach((n,r)=>{let s=n;typeof s=="object"&&(s=rl(s)),e.push([r,s])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=rl(r)),e.push([n,r])}),e},Ry=(t,e)=>!!e&&e.toString()===t.toString(),hP=t=>{const e=Le.innerParams.get(t);t.disableButtons(),e.input?Ly(t,"confirm"):bu(t,!0)},gP=t=>{const e=Le.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Ly(t,"deny"):pu(t,!1)},mP=(t,e)=>{t.disableButtons(),e(Fs.cancel)},Ly=(t,e)=>{const n=Le.innerParams.get(t);if(!n.input){Xr(`The "input" parameter is needed to be set when using returnInputValueOn${$d(e)}`);return}const r=t.getInput(),s=aP(t,n);n.inputValidator?pP(t,s,e):r&&!r.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||r.validationMessage)):e==="deny"?pu(t,s):bu(t,s)},pP=(t,e,n)=>{const r=Le.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>eo(r.inputValidator(e,r.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?pu(t,e):bu(t,e)})},pu=(t,e)=>{const n=Le.innerParams.get(t||void 0);n.showLoaderOnDeny&&zs(Gr()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>eo(n.preDeny(e,n.validationMessage))).then(s=>{s===!1?(t.hideLoading(),ao(t)):t.close({isDenied:!0,value:typeof s>"u"?e:s})}).catch(s=>By(t||void 0,s))):t.close({isDenied:!0,value:e})},Fy=(t,e)=>{t.close({isConfirmed:!0,value:e})},By=(t,e)=>{t.rejectPromise(e)},bu=(t,e)=>{const n=Le.innerParams.get(t||void 0);n.showLoaderOnConfirm&&zs(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>eo(n.preConfirm(e,n.validationMessage))).then(s=>{At(Qi())||s===!1?(t.hideLoading(),ao(t)):Fy(t,typeof s>"u"?e:s)}).catch(s=>By(t||void 0,s))):Fy(t,e)};function sl(){const t=Le.innerParams.get(this);if(!t)return;const e=Le.domCache.get(this);kt(e.loader),Ji()?t.icon&&ut(As()):bP(e),nn([e.popup,e.actions],G.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const bP=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ut(e[0],"inline-block"):V5()&&kt(t.actions)};function Wy(){const t=Le.innerParams.get(this),e=Le.domCache.get(this);return e?qi(e.popup,t.input):null}function zy(t,e,n){const r=Le.domCache.get(t);e.forEach(s=>{r[s].disabled=n})}function Hy(t,e){const n=ve();if(!(!n||!t))if(t.type==="radio"){const r=n.querySelectorAll(`[name="${G.radio}"]`);for(let s=0;s<r.length;s++)r[s].disabled=e}else t.disabled=e}function Yy(){zy(this,["confirmButton","denyButton","cancelButton"],!1)}function Vy(){zy(this,["confirmButton","denyButton","cancelButton"],!0)}function Uy(){Hy(this.getInput(),!1)}function Xy(){Hy(this.getInput(),!0)}function Gy(t){const e=Le.domCache.get(this),n=Le.innerParams.get(this);Yt(e.validationMessage,t),e.validationMessage.className=G["validation-message"],n.customClass&&n.customClass.validationMessage&&_e(e.validationMessage,n.customClass.validationMessage),ut(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",G["validation-message"]),hy(r),_e(r,G.inputerror))}function Ky(){const t=Le.domCache.get(this);t.validationMessage&&kt(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),nn(e,G.inputerror))}const Hs={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},yP=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],wP={allowEnterKey:void 0},vP=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Qy=t=>Object.prototype.hasOwnProperty.call(Hs,t),Zy=t=>yP.indexOf(t)!==-1,Jy=t=>wP[t],xP=t=>{Qy(t)||St(`Unknown parameter "${t}"`)},kP=t=>{vP.includes(t)&&St(`The parameter "${t}" is incompatible with toasts`)},_P=t=>{const e=Jy(t);e&&cy(t,e)},qy=t=>{t.backdrop===!1&&t.allowOutsideClick&&St('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&St(`Invalid theme "${t.theme}"`);for(const e in t)xP(e),t.toast&&kP(e),_P(e)};function $y(t){const e=Ct(),n=ve(),r=Le.innerParams.get(this);if(!n||Un(n,r.hideClass.popup)){St("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const s=SP(t),a=Object.assign({},r,s);qy(a),e.dataset.swal2Theme=a.theme,Dy(this,a),Le.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const SP=t=>{const e={};return Object.keys(t).forEach(n=>{Zy(n)?e[n]=t[n]:St(`Invalid parameter to update: ${n}`)}),e};function ew(){const t=Le.domCache.get(this),e=Le.innerParams.get(this);if(!e){tw(this);return}t.popup&&fe.swalCloseEventFinishedCallback&&(fe.swalCloseEventFinishedCallback(),delete fe.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),fe.eventEmitter.emit("didDestroy"),CP(this)}const CP=t=>{tw(t),delete t.params,delete fe.keydownHandler,delete fe.keydownTarget,delete fe.currentInstance},tw=t=>{t.isAwaitingPromise?(yu(Le,t),t.isAwaitingPromise=!0):(yu(Bs,t),yu(Le,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},yu=(t,e)=>{for(const n in t)t[n].delete(e)};var OP=Object.freeze({__proto__:null,_destroy:ew,close:pr,closeModal:pr,closePopup:pr,closeToast:pr,disableButtons:Vy,disableInput:Xy,disableLoading:sl,enableButtons:Yy,enableInput:Uy,getInput:Wy,handleAwaitingPromise:ao,hideLoading:sl,rejectPromise:Iy,resetValidationMessage:Ky,showValidationMessage:Gy,update:$y});const DP=(t,e,n)=>{t.toast?MP(t,e,n):(TP(e),PP(e),NP(t,e,n))},MP=(t,e,n)=>{e.popup.onclick=()=>{t&&(EP(t)||t.timer||t.input)||n(Fs.close)}},EP=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let al=!1;const TP=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(al=!0)}}},PP=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(al=!0)}}},NP=(t,e,n)=>{e.container.onclick=r=>{if(al){al=!1;return}r.target===e.container&&Ki(t.allowOutsideClick)&&n(Fs.backdrop)}},jP=t=>typeof t=="object"&&t.jquery,nw=t=>t instanceof Element||jP(t),IP=t=>{const e={};return typeof t[0]=="object"&&!nw(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const s=t[r];typeof s=="string"||nw(s)?e[n]=s:s!==void 0&&Xr(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),e};function AP(...t){return new this(...t)}function RP(t){class e extends this{_main(r,s){return super._main(r,Object.assign({},t,s))}}return e}const LP=()=>fe.timeout&&fe.timeout.getTimerLeft(),rw=()=>{if(fe.timeout)return X5(),fe.timeout.stop()},sw=()=>{if(fe.timeout){const t=fe.timeout.start();return cu(t),t}},FP=()=>{const t=fe.timeout;return t&&(t.running?rw():sw())},BP=t=>{if(fe.timeout){const e=fe.timeout.increase(t);return cu(e,!0),e}},WP=()=>!!(fe.timeout&&fe.timeout.isRunning());let aw=!1;const wu={};function zP(t="data-swal-template"){wu[t]=this,aw||(document.body.addEventListener("click",HP),aw=!0)}const HP=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in wu){const r=e.getAttribute(n);if(r){wu[n].fire({template:r});return}}};class YP{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const r=this._getHandlersByEventName(e);r.includes(n)||r.push(n)}once(e,n){const r=(...s)=>{this.removeListener(e,r),n.apply(this,s)};this.on(e,r)}emit(e,...n){this._getHandlersByEventName(e).forEach(r=>{try{r.apply(this,n)}catch(s){console.error(s)}})}removeListener(e,n){const r=this._getHandlersByEventName(e),s=r.indexOf(n);s>-1&&r.splice(s,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}fe.eventEmitter=new YP;var VP=Object.freeze({__proto__:null,argsToParams:IP,bindClickHandler:zP,clickCancel:IT,clickConfirm:My,clickDeny:jT,enableLoading:zs,fire:AP,getActions:no,getCancelButton:Rs,getCloseButton:su,getConfirmButton:Cn,getContainer:Ct,getDenyButton:Gr,getFocusableElements:au,getFooter:fy,getHtmlContainer:nu,getIcon:As,getIconContent:B5,getImage:uy,getInputLabel:W5,getLoader:Ls,getPopup:ve,getProgressSteps:ru,getTimerLeft:LP,getTimerProgressBar:Zi,getTitle:dy,getValidationMessage:Qi,increaseTimer:BP,isDeprecatedParameter:Jy,isLoading:H5,isTimerRunning:WP,isUpdatableParameter:Zy,isValidParameter:Qy,isVisible:NT,mixin:RP,off:(t,e)=>{if(!t){fe.eventEmitter.reset();return}e?fe.eventEmitter.removeListener(t,e):fe.eventEmitter.removeAllListeners(t)},on:(t,e)=>{fe.eventEmitter.on(t,e)},once:(t,e)=>{fe.eventEmitter.once(t,e)},resumeTimer:sw,showLoading:zs,stopTimer:rw,toggleTimer:FP});class UP{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ow=["swal-title","swal-html","swal-footer"],XP=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return eN(n),Object.assign(GP(n),KP(n),QP(n),ZP(n),JP(n),qP(n),$P(n,ow))},GP=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(r=>{Zr(r,["name","value"]);const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(typeof Hs[s]=="boolean"?e[s]=a!=="false":typeof Hs[s]=="object"?e[s]=JSON.parse(a):e[s]=a)}),e},KP=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(r=>{const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(e[s]=new Function(`return ${a}`)())}),e},QP=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(r=>{Zr(r,["type","color","aria-label"]);const s=r.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(e[`${s}ButtonText`]=r.innerHTML,e[`show${$d(s)}Button`]=!0,r.hasAttribute("color")&&(e[`${s}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(e[`${s}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),e},ZP=t=>{const e={},n=t.querySelector("swal-image");return n&&(Zr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},JP=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Zr(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},qP=t=>{const e={},n=t.querySelector("swal-input");n&&(Zr(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=Array.from(t.querySelectorAll("swal-input-option"));return r.length&&(e.inputOptions={},r.forEach(s=>{Zr(s,["value"]);const a=s.getAttribute("value");if(!a)return;const o=s.innerHTML;e.inputOptions[a]=o})),e},$P=(t,e)=>{const n={};for(const r in e){const s=e[r],a=t.querySelector(s);a&&(Zr(a,[]),n[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},eN=t=>{const e=ow.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.includes(r)||St(`Unrecognized element <${r}>`)})},Zr=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&St([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},iw=10,tN=t=>{const e=Ct(),n=ve();typeof t.willOpen=="function"&&t.willOpen(n),fe.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;sN(e,n,t),setTimeout(()=>{nN(e,n)},iw),ou()&&(rN(e,t.scrollbarPadding,s),HT()),!Ji()&&!fe.previousActiveElement&&(fe.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),fe.eventEmitter.emit("didOpen",n)},ol=t=>{const e=ve();if(t.target!==e)return;const n=Ct();e.removeEventListener("animationend",ol),e.removeEventListener("transitionend",ol),n.style.overflowY="auto",nn(n,G["no-transition"])},nN=(t,e)=>{py(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",ol),e.addEventListener("transitionend",ol)):t.style.overflowY="auto"},rN=(t,e,n)=>{YT(),e&&n!=="hidden"&&ZT(n),setTimeout(()=>{t.scrollTop=0})},sN=(t,e,n)=>{_e(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),ut(e,"grid"),setTimeout(()=>{_e(e,n.showClass.popup),e.style.removeProperty("opacity")},iw)):ut(e,"grid"),_e([document.documentElement,document.body],G.shown),n.heightAuto&&n.backdrop&&!n.toast&&_e([document.documentElement,document.body],G["height-auto"])};var lw={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function aN(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=lw.email),t.input==="url"&&(t.inputValidator=lw.url))}function oN(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(St('Target parameter is not valid, defaulting to "body"'),t.target="body")}function iN(t){aN(t),t.showLoaderOnConfirm&&!t.preConfirm&&St(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
560
|
+
`,xy=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,r="";e.iconHtml?r=ky(e.iconHtml):e.icon==="success"?(r=CM(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?r=SM:e.icon&&(r=ky({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==r.trim()&&Yt(t,r)},OM=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])py(t,n,"background-color",e.iconColor);py(t,".swal2-success-ring","border-color",e.iconColor)}},ky=t=>`<div class="${G["icon-content"]}">${t}</div>`,DM=(t,e)=>{const n=fy();if(n){if(!e.imageUrl){kt(n);return}ut(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),Kr(n,"width",e.imageWidth),Kr(n,"height",e.imageHeight),n.className=G.image,Vt(n,e,"image")}};let gu=!1,_y=0,Cy=0,Sy=0,Oy=0;const MM=t=>{t.addEventListener("mousedown",el),document.body.addEventListener("mousemove",tl),t.addEventListener("mouseup",nl),t.addEventListener("touchstart",el),document.body.addEventListener("touchmove",tl),t.addEventListener("touchend",nl)},EM=t=>{t.removeEventListener("mousedown",el),document.body.removeEventListener("mousemove",tl),t.removeEventListener("mouseup",nl),t.removeEventListener("touchstart",el),document.body.removeEventListener("touchmove",tl),t.removeEventListener("touchend",nl)},el=t=>{const e=ve();if(t.target===e||As().contains(t.target)){gu=!0;const n=Dy(t);_y=n.clientX,Cy=n.clientY,Sy=parseInt(e.style.insetInlineStart)||0,Oy=parseInt(e.style.insetBlockStart)||0,_e(e,"swal2-dragging")}},tl=t=>{const e=ve();if(gu){let{clientX:n,clientY:r}=Dy(t);const s=n-_y;e.style.insetInlineStart=`${Sy+(fe.isRTL?-s:s)}px`,e.style.insetBlockStart=`${Oy+(r-Cy)}px`}},nl=()=>{const t=ve();gu=!1,nn(t,"swal2-dragging")},Dy=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},TM=(t,e)=>{const n=St(),r=ve();if(!(!n||!r)){if(e.toast){Kr(n,"width",e.width),r.style.width="100%";const s=Ls();s&&r.insertBefore(s,As())}else Kr(r,"width",e.width);Kr(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),kt(Zi()),PM(r,e),e.draggable&&!e.toast?(_e(r,G.draggable),MM(r)):(nn(r,G.draggable),EM(r))}},PM=(t,e)=>{const n=e.showClass||{};t.className=`${G.popup} ${At(t)?n.popup:""}`,e.toast?(_e([document.documentElement,document.body],G["toast-shown"]),_e(t,G.toast)):_e(t,G.modal),Vt(t,e,"popup"),typeof e.customClass=="string"&&_e(t,e.customClass),e.icon&&_e(t,G[`icon-${e.icon}`])},NM=(t,e)=>{const n=ru();if(!n)return;const{progressSteps:r,currentProgressStep:s}=e;if(!r||r.length===0||s===void 0){kt(n);return}ut(n),n.textContent="",s>=r.length&&Ct("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((a,o)=>{const i=jM(a);if(n.appendChild(i),o===s&&_e(i,G["active-progress-step"]),o!==r.length-1){const l=IM(e);n.appendChild(l)}})},jM=t=>{const e=document.createElement("li");return _e(e,G["progress-step"]),Yt(e,t),e},IM=t=>{const e=document.createElement("li");return _e(e,G["progress-step-line"]),t.progressStepsDistance&&Kr(e,"width",t.progressStepsDistance),e},AM=(t,e)=>{const n=uy();n&&(iu(n),ro(n,!!(e.title||e.titleText),"block"),e.title&&du(e.title,n),e.titleText&&(n.innerText=e.titleText),Vt(n,e,"title"))},My=(t,e)=>{TM(t,e),uM(t,e),NM(t,e),_M(t,e),DM(t,e),AM(t,e),dM(t,e),xM(t,e),iM(t,e),kM(t,e);const n=ve();typeof e.didRender=="function"&&n&&e.didRender(n),fe.eventEmitter.emit("didRender",n)},RM=()=>At(ve()),Ey=()=>{var t;return(t=Sn())===null||t===void 0?void 0:t.click()},LM=()=>{var t;return(t=Gr())===null||t===void 0?void 0:t.click()},FM=()=>{var t;return(t=Rs())===null||t===void 0?void 0:t.click()},Fs=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ty=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},BM=(t,e,n)=>{Ty(t),e.toast||(t.keydownHandler=r=>zM(e,r,n),t.keydownTarget=e.keydownListenerCapture?window:ve(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},mu=(t,e)=>{var n;const r=au();if(r.length){t=t+e,t===-2&&(t=r.length-1),t===r.length?t=0:t===-1&&(t=r.length-1),r[t].focus();return}(n=ve())===null||n===void 0||n.focus()},Py=["ArrowRight","ArrowDown"],WM=["ArrowLeft","ArrowUp"],zM=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?HM(e,t):e.key==="Tab"?YM(e):[...Py,...WM].includes(e.key)?VM(e.key):e.key==="Escape"&&UM(e,t,n)))},HM=(t,e)=>{if(!Ki(e.allowEnterKey))return;const n=qi(ve(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;Ey(),t.preventDefault()}},YM=t=>{const e=t.target,n=au();let r=-1;for(let s=0;s<n.length;s++)if(e===n[s]){r=s;break}t.shiftKey?mu(r,-1):mu(r,1),t.stopPropagation(),t.preventDefault()},VM=t=>{const e=no(),n=Sn(),r=Gr(),s=Rs();if(!e||!n||!r||!s)return;const a=[n,r,s];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=Py.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let l=0;l<e.children.length;l++){if(i=i[o],!i)return;if(i instanceof HTMLButtonElement&&At(i))break}i instanceof HTMLButtonElement&&i.focus()}},UM=(t,e,n)=>{t.preventDefault(),Ki(e.allowEscapeKey)&&n(Fs.esc)};var Bs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const XM=()=>{const t=St();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Ny=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},jy=typeof window<"u"&&!!window.GestureEvent,GM=()=>{if(jy&&!Un(document.body,G.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,_e(document.body,G.iosfix),KM()}},KM=()=>{const t=St();if(!t)return;let e;t.ontouchstart=n=>{e=ZM(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},ZM=t=>{const e=t.target,n=St(),r=nu();return!n||!r||QM(t)||JM(t)?!1:e===n||!lu(n)&&e instanceof HTMLElement&&!ZD(e,r)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(lu(r)&&r.contains(e))},QM=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",JM=t=>t.touches&&t.touches.length>1,qM=()=>{if(Un(document.body,G.iosfix)){const t=parseInt(document.body.style.top,10);nn(document.body,G.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},$M=()=>{const t=document.createElement("div");t.className=G["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let Ws=null;const eE=t=>{Ws===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(Ws=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ws+$M()}px`)},tE=()=>{Ws!==null&&(document.body.style.paddingRight=`${Ws}px`,Ws=null)};function Iy(t,e,n,r){Ji()?Ry(t,r):(zD(n).then(()=>Ry(t,r)),Ty(fe)),jy?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),ou()&&(tE(),qM(),Ny()),nE()}function nE(){nn([document.documentElement,document.body],[G.shown,G["height-auto"],G["no-backdrop"],G["toast-shown"]])}function pr(t){t=sE(t);const e=Bs.swalPromiseResolve.get(this),n=rE(this);this.isAwaitingPromise?t.isDismissed||(ao(this),e(t)):n&&e(t)}const rE=t=>{const e=ve();if(!e)return!1;const n=Le.innerParams.get(t);if(!n||Un(e,n.hideClass.popup))return!1;nn(e,n.showClass.popup),_e(e,n.hideClass.popup);const r=St();return nn(r,n.showClass.backdrop),_e(r,n.hideClass.backdrop),aE(t,e,n),!0};function Ay(t){const e=Bs.swalPromiseReject.get(this);ao(this),e&&e(t)}const ao=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,Le.innerParams.get(t)||t._destroy())},sE=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),aE=(t,e,n)=>{var r;const s=St(),a=by(e);typeof n.willClose=="function"&&n.willClose(e),(r=fe.eventEmitter)===null||r===void 0||r.emit("willClose",e),a?oE(t,e,s,n.returnFocus,n.didClose):Iy(t,s,n.returnFocus,n.didClose)},oE=(t,e,n,r,s)=>{fe.swalCloseEventFinishedCallback=Iy.bind(null,t,n,r,s);const a=function(o){if(o.target===e){var i;(i=fe.swalCloseEventFinishedCallback)===null||i===void 0||i.call(fe),delete fe.swalCloseEventFinishedCallback,e.removeEventListener("animationend",a),e.removeEventListener("transitionend",a)}};e.addEventListener("animationend",a),e.addEventListener("transitionend",a)},Ry=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=fe.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},zs=t=>{let e=ve();if(e||new Ys,e=ve(),!e)return;const n=Ls();Ji()?kt(As()):iE(e,t),ut(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},iE=(t,e)=>{const n=no(),r=Ls();!n||!r||(!e&&At(Sn())&&(e=Sn()),ut(n),e&&(kt(e),r.setAttribute("data-button-to-replace",e.className),n.insertBefore(r,e)),_e([t,n],G.loading))},lE=(t,e)=>{e.input==="select"||e.input==="radio"?hE(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(eu(e.inputValue)||tu(e.inputValue))&&(zs(Sn()),gE(t,e))},cE=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return dE(n);case"radio":return uE(n);case"file":return fE(n);default:return e.inputAutoTrim?n.value.trim():n.value}},dE=t=>t.checked?1:0,uE=t=>t.checked?t.value:null,fE=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,hE=(t,e)=>{const n=ve();if(!n)return;const r=s=>{e.input==="select"?mE(n,rl(s),e):e.input==="radio"&&pE(n,rl(s),e)};eu(e.inputOptions)||tu(e.inputOptions)?(zs(Sn()),eo(e.inputOptions).then(s=>{t.hideLoading(),r(s)})):typeof e.inputOptions=="object"?r(e.inputOptions):Xr(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},gE=(t,e)=>{const n=t.getInput();n&&(kt(n),eo(e.inputValue).then(r=>{n.value=e.input==="number"?`${parseFloat(r)||0}`:`${r}`,ut(n),n.focus(),t.hideLoading()}).catch(r=>{Xr(`Error in inputValue promise: ${r}`),n.value="",ut(n),n.focus(),t.hideLoading()}))};function mE(t,e,n){const r=mr(t,G.select);if(!r)return;const s=(a,o,i)=>{const l=document.createElement("option");l.value=i,Yt(l,o),l.selected=Ly(i,n.inputValue),a.appendChild(l)};e.forEach(a=>{const o=a[0],i=a[1];if(Array.isArray(i)){const l=document.createElement("optgroup");l.label=o,l.disabled=!1,r.appendChild(l),i.forEach(c=>s(l,c[1],c[0]))}else s(r,i,o)}),r.focus()}function pE(t,e,n){const r=mr(t,G.radio);if(!r)return;e.forEach(a=>{const o=a[0],i=a[1],l=document.createElement("input"),c=document.createElement("label");l.type="radio",l.name=G.radio,l.value=o,Ly(o,n.inputValue)&&(l.checked=!0);const d=document.createElement("span");Yt(d,i),d.className=G.label,c.appendChild(l),c.appendChild(d),r.appendChild(c)});const s=r.querySelectorAll("input");s.length&&s[0].focus()}const rl=t=>{const e=[];return t instanceof Map?t.forEach((n,r)=>{let s=n;typeof s=="object"&&(s=rl(s)),e.push([r,s])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=rl(r)),e.push([n,r])}),e},Ly=(t,e)=>!!e&&e.toString()===t.toString(),bE=t=>{const e=Le.innerParams.get(t);t.disableButtons(),e.input?Fy(t,"confirm"):bu(t,!0)},yE=t=>{const e=Le.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Fy(t,"deny"):pu(t,!1)},wE=(t,e)=>{t.disableButtons(),e(Fs.cancel)},Fy=(t,e)=>{const n=Le.innerParams.get(t);if(!n.input){Xr(`The "input" parameter is needed to be set when using returnInputValueOn${$d(e)}`);return}const r=t.getInput(),s=cE(t,n);n.inputValidator?vE(t,s,e):r&&!r.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||r.validationMessage)):e==="deny"?pu(t,s):bu(t,s)},vE=(t,e,n)=>{const r=Le.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>eo(r.inputValidator(e,r.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?pu(t,e):bu(t,e)})},pu=(t,e)=>{const n=Le.innerParams.get(t||void 0);n.showLoaderOnDeny&&zs(Gr()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>eo(n.preDeny(e,n.validationMessage))).then(s=>{s===!1?(t.hideLoading(),ao(t)):t.close({isDenied:!0,value:typeof s>"u"?e:s})}).catch(s=>Wy(t||void 0,s))):t.close({isDenied:!0,value:e})},By=(t,e)=>{t.close({isConfirmed:!0,value:e})},Wy=(t,e)=>{t.rejectPromise(e)},bu=(t,e)=>{const n=Le.innerParams.get(t||void 0);n.showLoaderOnConfirm&&zs(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>eo(n.preConfirm(e,n.validationMessage))).then(s=>{At(Zi())||s===!1?(t.hideLoading(),ao(t)):By(t,typeof s>"u"?e:s)}).catch(s=>Wy(t||void 0,s))):By(t,e)};function sl(){const t=Le.innerParams.get(this);if(!t)return;const e=Le.domCache.get(this);kt(e.loader),Ji()?t.icon&&ut(As()):xE(e),nn([e.popup,e.actions],G.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const xE=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ut(e[0],"inline-block"):KD()&&kt(t.actions)};function zy(){const t=Le.innerParams.get(this),e=Le.domCache.get(this);return e?qi(e.popup,t.input):null}function Hy(t,e,n){const r=Le.domCache.get(t);e.forEach(s=>{r[s].disabled=n})}function Yy(t,e){const n=ve();if(!(!n||!t))if(t.type==="radio"){const r=n.querySelectorAll(`[name="${G.radio}"]`);for(let s=0;s<r.length;s++)r[s].disabled=e}else t.disabled=e}function Vy(){Hy(this,["confirmButton","denyButton","cancelButton"],!1)}function Uy(){Hy(this,["confirmButton","denyButton","cancelButton"],!0)}function Xy(){Yy(this.getInput(),!1)}function Gy(){Yy(this.getInput(),!0)}function Ky(t){const e=Le.domCache.get(this),n=Le.innerParams.get(this);Yt(e.validationMessage,t),e.validationMessage.className=G["validation-message"],n.customClass&&n.customClass.validationMessage&&_e(e.validationMessage,n.customClass.validationMessage),ut(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",G["validation-message"]),gy(r),_e(r,G.inputerror))}function Zy(){const t=Le.domCache.get(this);t.validationMessage&&kt(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),nn(e,G.inputerror))}const Hs={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},kE=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],_E={allowEnterKey:void 0},CE=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Qy=t=>Object.prototype.hasOwnProperty.call(Hs,t),Jy=t=>kE.indexOf(t)!==-1,qy=t=>_E[t],SE=t=>{Qy(t)||Ct(`Unknown parameter "${t}"`)},OE=t=>{CE.includes(t)&&Ct(`The parameter "${t}" is incompatible with toasts`)},DE=t=>{const e=qy(t);e&&dy(t,e)},$y=t=>{t.backdrop===!1&&t.allowOutsideClick&&Ct('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&Ct(`Invalid theme "${t.theme}"`);for(const e in t)SE(e),t.toast&&OE(e),DE(e)};function ew(t){const e=St(),n=ve(),r=Le.innerParams.get(this);if(!n||Un(n,r.hideClass.popup)){Ct("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const s=ME(t),a=Object.assign({},r,s);$y(a),e.dataset.swal2Theme=a.theme,My(this,a),Le.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ME=t=>{const e={};return Object.keys(t).forEach(n=>{Jy(n)?e[n]=t[n]:Ct(`Invalid parameter to update: ${n}`)}),e};function tw(){const t=Le.domCache.get(this),e=Le.innerParams.get(this);if(!e){nw(this);return}t.popup&&fe.swalCloseEventFinishedCallback&&(fe.swalCloseEventFinishedCallback(),delete fe.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),fe.eventEmitter.emit("didDestroy"),EE(this)}const EE=t=>{nw(t),delete t.params,delete fe.keydownHandler,delete fe.keydownTarget,delete fe.currentInstance},nw=t=>{t.isAwaitingPromise?(yu(Le,t),t.isAwaitingPromise=!0):(yu(Bs,t),yu(Le,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},yu=(t,e)=>{for(const n in t)t[n].delete(e)};var TE=Object.freeze({__proto__:null,_destroy:tw,close:pr,closeModal:pr,closePopup:pr,closeToast:pr,disableButtons:Uy,disableInput:Gy,disableLoading:sl,enableButtons:Vy,enableInput:Xy,getInput:zy,handleAwaitingPromise:ao,hideLoading:sl,rejectPromise:Ay,resetValidationMessage:Zy,showValidationMessage:Ky,update:ew});const PE=(t,e,n)=>{t.toast?NE(t,e,n):(IE(e),AE(e),RE(t,e,n))},NE=(t,e,n)=>{e.popup.onclick=()=>{t&&(jE(t)||t.timer||t.input)||n(Fs.close)}},jE=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let al=!1;const IE=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(al=!0)}}},AE=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(al=!0)}}},RE=(t,e,n)=>{e.container.onclick=r=>{if(al){al=!1;return}r.target===e.container&&Ki(t.allowOutsideClick)&&n(Fs.backdrop)}},LE=t=>typeof t=="object"&&t.jquery,rw=t=>t instanceof Element||LE(t),FE=t=>{const e={};return typeof t[0]=="object"&&!rw(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const s=t[r];typeof s=="string"||rw(s)?e[n]=s:s!==void 0&&Xr(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),e};function BE(...t){return new this(...t)}function WE(t){class e extends this{_main(r,s){return super._main(r,Object.assign({},t,s))}}return e}const zE=()=>fe.timeout&&fe.timeout.getTimerLeft(),sw=()=>{if(fe.timeout)return QD(),fe.timeout.stop()},aw=()=>{if(fe.timeout){const t=fe.timeout.start();return cu(t),t}},HE=()=>{const t=fe.timeout;return t&&(t.running?sw():aw())},YE=t=>{if(fe.timeout){const e=fe.timeout.increase(t);return cu(e,!0),e}},VE=()=>!!(fe.timeout&&fe.timeout.isRunning());let ow=!1;const wu={};function UE(t="data-swal-template"){wu[t]=this,ow||(document.body.addEventListener("click",XE),ow=!0)}const XE=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in wu){const r=e.getAttribute(n);if(r){wu[n].fire({template:r});return}}};class GE{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const r=this._getHandlersByEventName(e);r.includes(n)||r.push(n)}once(e,n){const r=(...s)=>{this.removeListener(e,r),n.apply(this,s)};this.on(e,r)}emit(e,...n){this._getHandlersByEventName(e).forEach(r=>{try{r.apply(this,n)}catch(s){console.error(s)}})}removeListener(e,n){const r=this._getHandlersByEventName(e),s=r.indexOf(n);s>-1&&r.splice(s,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}fe.eventEmitter=new GE;var KE=Object.freeze({__proto__:null,argsToParams:FE,bindClickHandler:UE,clickCancel:FM,clickConfirm:Ey,clickDeny:LM,enableLoading:zs,fire:BE,getActions:no,getCancelButton:Rs,getCloseButton:su,getConfirmButton:Sn,getContainer:St,getDenyButton:Gr,getFocusableElements:au,getFooter:hy,getHtmlContainer:nu,getIcon:As,getIconContent:YD,getImage:fy,getInputLabel:VD,getLoader:Ls,getPopup:ve,getProgressSteps:ru,getTimerLeft:zE,getTimerProgressBar:Qi,getTitle:uy,getValidationMessage:Zi,increaseTimer:YE,isDeprecatedParameter:qy,isLoading:XD,isTimerRunning:VE,isUpdatableParameter:Jy,isValidParameter:Qy,isVisible:RM,mixin:WE,off:(t,e)=>{if(!t){fe.eventEmitter.reset();return}e?fe.eventEmitter.removeListener(t,e):fe.eventEmitter.removeAllListeners(t)},on:(t,e)=>{fe.eventEmitter.on(t,e)},once:(t,e)=>{fe.eventEmitter.once(t,e)},resumeTimer:aw,showLoading:zs,stopTimer:sw,toggleTimer:HE});class ZE{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const iw=["swal-title","swal-html","swal-footer"],QE=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return sT(n),Object.assign(JE(n),qE(n),$E(n),eT(n),tT(n),nT(n),rT(n,iw))},JE=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(r=>{Qr(r,["name","value"]);const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(typeof Hs[s]=="boolean"?e[s]=a!=="false":typeof Hs[s]=="object"?e[s]=JSON.parse(a):e[s]=a)}),e},qE=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(r=>{const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(e[s]=new Function(`return ${a}`)())}),e},$E=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(r=>{Qr(r,["type","color","aria-label"]);const s=r.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(e[`${s}ButtonText`]=r.innerHTML,e[`show${$d(s)}Button`]=!0,r.hasAttribute("color")&&(e[`${s}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(e[`${s}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),e},eT=t=>{const e={},n=t.querySelector("swal-image");return n&&(Qr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},tT=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Qr(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},nT=t=>{const e={},n=t.querySelector("swal-input");n&&(Qr(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=Array.from(t.querySelectorAll("swal-input-option"));return r.length&&(e.inputOptions={},r.forEach(s=>{Qr(s,["value"]);const a=s.getAttribute("value");if(!a)return;const o=s.innerHTML;e.inputOptions[a]=o})),e},rT=(t,e)=>{const n={};for(const r in e){const s=e[r],a=t.querySelector(s);a&&(Qr(a,[]),n[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},sT=t=>{const e=iw.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.includes(r)||Ct(`Unrecognized element <${r}>`)})},Qr=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&Ct([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},lw=10,aT=t=>{const e=St(),n=ve();typeof t.willOpen=="function"&&t.willOpen(n),fe.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;lT(e,n,t),setTimeout(()=>{oT(e,n)},lw),ou()&&(iT(e,t.scrollbarPadding,s),XM()),!Ji()&&!fe.previousActiveElement&&(fe.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),fe.eventEmitter.emit("didOpen",n)},ol=t=>{const e=ve();if(t.target!==e)return;const n=St();e.removeEventListener("animationend",ol),e.removeEventListener("transitionend",ol),n.style.overflowY="auto",nn(n,G["no-transition"])},oT=(t,e)=>{by(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",ol),e.addEventListener("transitionend",ol)):t.style.overflowY="auto"},iT=(t,e,n)=>{GM(),e&&n!=="hidden"&&eE(n),setTimeout(()=>{t.scrollTop=0})},lT=(t,e,n)=>{_e(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),ut(e,"grid"),setTimeout(()=>{_e(e,n.showClass.popup),e.style.removeProperty("opacity")},lw)):ut(e,"grid"),_e([document.documentElement,document.body],G.shown),n.heightAuto&&n.backdrop&&!n.toast&&_e([document.documentElement,document.body],G["height-auto"])};var cw={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function cT(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=cw.email),t.input==="url"&&(t.inputValidator=cw.url))}function dT(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(Ct('Target parameter is not valid, defaulting to "body"'),t.target="body")}function uT(t){cT(t),t.showLoaderOnConfirm&&!t.preConfirm&&Ct(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
561
561
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
562
|
-
https://sweetalert2.github.io/#ajax-request`),
|
|
563
|
-
`).join("<br />")),eT(t)}let On;var il=new WeakMap;class Je{constructor(...e){if(j5(this,il,void 0),typeof window>"u")return;On=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,I5(il,this,this._main(On.params))}_main(e,n={}){if(qy(Object.assign({},n,e)),fe.currentInstance){const a=Bs.swalPromiseResolve.get(fe.currentInstance),{isAwaitingPromise:o}=fe.currentInstance;fe.currentInstance._destroy(),o||a({isDismissed:!0}),ou()&&Py()}fe.currentInstance=On;const r=cN(e,n);iN(r),Object.freeze(r),fe.timeout&&(fe.timeout.stop(),delete fe.timeout),clearTimeout(fe.restoreFocusTimeout);const s=dN(On);return Dy(On,r),Le.innerParams.set(On,r),lN(On,s,r)}then(e){return ay(il,this).then(e)}finally(e){return ay(il,this).finally(e)}}const lN=(t,e,n)=>new Promise((r,s)=>{const a=o=>{t.close({isDismissed:!0,dismiss:o,isConfirmed:!1,isDenied:!1})};Bs.swalPromiseResolve.set(t,r),Bs.swalPromiseReject.set(t,s),e.confirmButton.onclick=()=>{hP(t)},e.denyButton.onclick=()=>{gP(t)},e.cancelButton.onclick=()=>{mP(t,a)},e.closeButton.onclick=()=>{a(Fs.close)},DP(n,e,a),AT(fe,n,a),sP(t,n),tN(n),uN(fe,n,a),fN(e,n),setTimeout(()=>{e.container.scrollTop=0})}),cN=(t,e)=>{const n=XP(t),r=Object.assign({},Hs,e,n,t);return r.showClass=Object.assign({},Hs.showClass,r.showClass),r.hideClass=Object.assign({},Hs.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},dN=t=>{const e={popup:ve(),container:Ct(),actions:no(),confirmButton:Cn(),denyButton:Gr(),cancelButton:Rs(),loader:Ls(),closeButton:su(),validationMessage:Qi(),progressSteps:ru()};return Le.domCache.set(t,e),e},uN=(t,e,n)=>{const r=Zi();kt(r),e.timer&&(t.timeout=new UP(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ut(r),Vt(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&cu(e.timer)})))},fN=(t,e)=>{if(!e.toast){if(!Ki(e.allowEnterKey)){cy("allowEnterKey"),mN();return}hN(t)||gN(t,e)||mu(-1,1)}},hN=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&At(n))return n.focus(),!0;return!1},gN=(t,e)=>e.focusDeny&&At(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&At(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&At(t.confirmButton)?(t.confirmButton.focus(),!0):!1,mN=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Je.prototype.disableButtons=Vy,Je.prototype.enableButtons=Yy,Je.prototype.getInput=Wy,Je.prototype.disableInput=Xy,Je.prototype.enableInput=Uy,Je.prototype.hideLoading=sl,Je.prototype.disableLoading=sl,Je.prototype.showValidationMessage=Gy,Je.prototype.resetValidationMessage=Ky,Je.prototype.close=pr,Je.prototype.closePopup=pr,Je.prototype.closeModal=pr,Je.prototype.closeToast=pr,Je.prototype.rejectPromise=Iy,Je.prototype.update=$y,Je.prototype._destroy=ew,Object.assign(Je,VP),Object.keys(OP).forEach(t=>{Je[t]=function(...e){return On&&On[t]?On[t](...e):null}}),Je.DismissReason=Fs,Je.version="11.26.4";const Ys=Je;Ys.default=Ys,typeof document<"u"&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const cw={"image/*":"Imágenes (JPG, PNG, GIF, etc.)","application/pdf":"Documentos PDF","application/msword":"Documentos Word (.doc)","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"Documentos Word (.docx)","application/vnd.ms-excel":"Hojas de cálculo Excel (.xls)","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Hojas de cálculo Excel (.xlsx)","application/vnd.ms-powerpoint":"Presentaciones PowerPoint (.ppt)","application/vnd.openxmlformats-officedocument.presentationml.presentation":"Presentaciones PowerPoint (.pptx)","text/csv":"Archivos CSV","application/json":"Archivos JSON","application/xml":"Archivos XML"},pN=({onChange:t,accept:e="application/pdf",maxSize:n=10,multiple:r=!1,helperText:s="",disabled:a=!1})=>{const[o,i]=_.useState(!1),l=_.useRef(null),c=Array.isArray(e)?e.join(","):e,d=()=>Array.isArray(e)?e.map(b=>cw[b]||b).join(", "):cw[e]||e,u=_.useCallback(b=>{b.preventDefault(),b.stopPropagation(),a||i(!0)},[a]),g=_.useCallback(b=>{b.preventDefault(),b.stopPropagation(),i(!1)},[]),h=_.useCallback(b=>{if(b.preventDefault(),b.stopPropagation(),i(!1),a)return;const y=Array.from(b.dataTransfer.files);y.length>0&&m(y)},[a,e,n,r,t]),p=_.useCallback(b=>{if(a)return;const y=Array.from(b.target.files||[]);y.length>0&&m(y),l.current&&(l.current.value="")},[a,e,n,r,t]),m=_.useCallback(b=>{if(!r&&b.length>1){alert("Solo se permite un archivo");return}const y=b.filter(k=>Array.isArray(e)?e.some(w=>w==="image/*"?k.type.startsWith("image/"):k.type===w):e==="image/*"?k.type.startsWith("image/"):k.type===e);if(y.length===0){Ys.fire({title:"Error",text:`Tipo de archivo no permitido. Tipos permitidos: ${d()}`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"});return}const v=y.filter(k=>k.size<=n*1024*1024);v.length!==y.length&&Ys.fire({title:"Error",text:`Algunos archivos exceden el tamaño máximo de ${n}MB`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"}),v.length>0&&(t==null||t(v))},[e,n,r,t]);return f.jsx("div",{className:"flex w-full items-center justify-center",children:f.jsxs(Ac,{htmlFor:"dropzone-file",className:`flex w-full ${a?"cursor-not-allowed opacity-60":"cursor-pointer"} flex-col items-center justify-center rounded-lg border-2 border-dashed ${o&&!a?"border-blue-500 bg-blue-50":"border-[#C4C4C4] bg-gray-50"} ${!a&&"hover:bg-gray-100"} dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600`,onDragOver:u,onDragLeave:g,onDrop:h,children:[f.jsx("div",{className:"flex w-full items-center justify-center py-6 px-10",children:f.jsx("div",{className:"flex flex-col",children:f.jsxs("p",{className:"mb-2 text-center text-sm font-light text-gray-400 dark:text-gray-400",children:[f.jsx("span",{className:"text-gray-500",children:"Arrastra aquí tu archivo "}),f.jsx("br",{}),f.jsxs("span",{className:" text-gray-500",children:["o ",f.jsx("span",{className:"underline",children:"búscalo en el dispositivo"})]}),s]})})}),f.jsx(xg,{id:"dropzone-file",className:"hidden",onChange:p,accept:c,multiple:r,ref:l,disabled:a})]})})},bN=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${n[e]}`},yN=({files:t,onDelete:e,isMultiple:n=!0})=>{const r=n?t:t.slice(-1);return f.jsx("div",{className:"mt-4",children:f.jsx("ul",{className:"list-none",children:r.map((s,a)=>f.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-[#191960] bg-[#F4F4F4CC] p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(Cr,{classIm:"mr-2",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:40}),f.jsx("li",{className:"text-base text-gray-700",children:s.name})]}),f.jsxs("div",{className:"mx-4 flex flex-1 justify-between",children:[f.jsxs("p",{className:"ml-auto text-sm font-semibold",children:[bN(s.size)," "]}),f.jsx("div",{onClick:()=>e(s),children:f.jsx(Cr,{classIm:"ml-auto cursor-pointer",src:"https://ftp.mathilde-ads.com/382-d1647780b1ee3f437104400b2f8d6555.svg",alt:"icon dropzone",width:20})})]})]},a))})})},wN=({description:t=""})=>f.jsxs("div",{className:"flex flex-col items-center justify-center",children:[f.jsx("img",{src:"https://ftp.mathilde-ads.com/151-82821df9d4f7bd2662418d3147880fba.svg",alt:t.replace(/<[^>]*>/g,"")}),t&&f.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:t}})]}),dw={mth_tabs_tab_item:"tabs-module__mth_tabs_tab_item__dk-Z7",mth_tabs_tab_item_active:"tabs-module__mth_tabs_tab_item_active__p3kAi"};function vN({tabs:t,classes:e="",classesUl:n="",tabItemClasses:r="",activeTabStyles:s,inactiveTabStyles:a,contentClasses:o="",defaultActiveTab:i,onTabChange:l}){var p,m;const[c,d]=_.useState(i||((p=t[0])==null?void 0:p.id)||""),u=b=>{d(b),l==null||l(b)},g=b=>{const y=b.target.value;d(y),l==null||l(y)},h=(m=t.find(b=>b.id===c))==null?void 0:m.content;return f.jsxs("div",{className:`${e} tabs-container`,children:[f.jsxs("div",{className:"mb-4 sm:hidden",children:[f.jsx("label",{htmlFor:"tabs-select",className:"sr-only",children:"Selecciona una pestaña"}),f.jsx("select",{id:"tabs-select",value:c,onChange:g,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",children:t.map(b=>f.jsx("option",{value:b.id,children:b.title},b.id))})]}),f.jsx("ul",{className:`${n} text-sm font-medium text-center text-gray-500 rounded-lg shadow-sm sm:flex dark:divide-gray-700 dark:text-gray-400`,children:t.map(b=>{const y=c===b.id,v=()=>y&&s?s:!y&&a?a:{},k=()=>y?s?"":dw.mth_tabs_tab_item_active:a?"":dw.mth_tabs_tab_item;return f.jsx("li",{className:"w-full focus-within:z-10",children:f.jsxs("button",{onClick:()=>u(b.id),className:`${r} ${k()} uppercase`,style:v(),"aria-current":y?"page":void 0,children:[b.icon&&f.jsx("span",{className:"mr-2",children:b.icon}),b.title]})},b.id)})}),f.jsx("div",{className:`mt-0 ${o}`,children:h})]})}var uw={},oo={},vu={exports:{}},ll={exports:{}},De={};/** @license React v16.13.1
|
|
562
|
+
https://sweetalert2.github.io/#ajax-request`),dT(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
563
|
+
`).join("<br />")),sM(t)}let On;var il=new WeakMap;class Je{constructor(...e){if(LD(this,il,void 0),typeof window>"u")return;On=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,FD(il,this,this._main(On.params))}_main(e,n={}){if($y(Object.assign({},n,e)),fe.currentInstance){const a=Bs.swalPromiseResolve.get(fe.currentInstance),{isAwaitingPromise:o}=fe.currentInstance;fe.currentInstance._destroy(),o||a({isDismissed:!0}),ou()&&Ny()}fe.currentInstance=On;const r=hT(e,n);uT(r),Object.freeze(r),fe.timeout&&(fe.timeout.stop(),delete fe.timeout),clearTimeout(fe.restoreFocusTimeout);const s=gT(On);return My(On,r),Le.innerParams.set(On,r),fT(On,s,r)}then(e){return oy(il,this).then(e)}finally(e){return oy(il,this).finally(e)}}const fT=(t,e,n)=>new Promise((r,s)=>{const a=o=>{t.close({isDismissed:!0,dismiss:o,isConfirmed:!1,isDenied:!1})};Bs.swalPromiseResolve.set(t,r),Bs.swalPromiseReject.set(t,s),e.confirmButton.onclick=()=>{bE(t)},e.denyButton.onclick=()=>{yE(t)},e.cancelButton.onclick=()=>{wE(t,a)},e.closeButton.onclick=()=>{a(Fs.close)},PE(n,e,a),BM(fe,n,a),lE(t,n),aT(n),mT(fe,n,a),pT(e,n),setTimeout(()=>{e.container.scrollTop=0})}),hT=(t,e)=>{const n=QE(t),r=Object.assign({},Hs,e,n,t);return r.showClass=Object.assign({},Hs.showClass,r.showClass),r.hideClass=Object.assign({},Hs.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},gT=t=>{const e={popup:ve(),container:St(),actions:no(),confirmButton:Sn(),denyButton:Gr(),cancelButton:Rs(),loader:Ls(),closeButton:su(),validationMessage:Zi(),progressSteps:ru()};return Le.domCache.set(t,e),e},mT=(t,e,n)=>{const r=Qi();kt(r),e.timer&&(t.timeout=new ZE(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ut(r),Vt(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&cu(e.timer)})))},pT=(t,e)=>{if(!e.toast){if(!Ki(e.allowEnterKey)){dy("allowEnterKey"),wT();return}bT(t)||yT(t,e)||mu(-1,1)}},bT=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&At(n))return n.focus(),!0;return!1},yT=(t,e)=>e.focusDeny&&At(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&At(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&At(t.confirmButton)?(t.confirmButton.focus(),!0):!1,wT=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Je.prototype.disableButtons=Uy,Je.prototype.enableButtons=Vy,Je.prototype.getInput=zy,Je.prototype.disableInput=Gy,Je.prototype.enableInput=Xy,Je.prototype.hideLoading=sl,Je.prototype.disableLoading=sl,Je.prototype.showValidationMessage=Ky,Je.prototype.resetValidationMessage=Zy,Je.prototype.close=pr,Je.prototype.closePopup=pr,Je.prototype.closeModal=pr,Je.prototype.closeToast=pr,Je.prototype.rejectPromise=Ay,Je.prototype.update=ew,Je.prototype._destroy=tw,Object.assign(Je,KE),Object.keys(TE).forEach(t=>{Je[t]=function(...e){return On&&On[t]?On[t](...e):null}}),Je.DismissReason=Fs,Je.version="11.26.4";const Ys=Je;Ys.default=Ys,typeof document<"u"&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const dw={"image/*":"Imágenes (JPG, PNG, GIF, etc.)","application/pdf":"Documentos PDF","application/msword":"Documentos Word (.doc)","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"Documentos Word (.docx)","application/vnd.ms-excel":"Hojas de cálculo Excel (.xls)","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Hojas de cálculo Excel (.xlsx)","application/vnd.ms-powerpoint":"Presentaciones PowerPoint (.ppt)","application/vnd.openxmlformats-officedocument.presentationml.presentation":"Presentaciones PowerPoint (.pptx)","text/csv":"Archivos CSV","application/json":"Archivos JSON","application/xml":"Archivos XML"},vT=({onChange:t,accept:e="application/pdf",maxSize:n=10,multiple:r=!1,helperText:s="",disabled:a=!1})=>{const[o,i]=_.useState(!1),l=_.useRef(null),c=Array.isArray(e)?e.join(","):e,d=()=>Array.isArray(e)?e.map(b=>dw[b]||b).join(", "):dw[e]||e,u=_.useCallback(b=>{b.preventDefault(),b.stopPropagation(),a||i(!0)},[a]),h=_.useCallback(b=>{b.preventDefault(),b.stopPropagation(),i(!1)},[]),g=_.useCallback(b=>{if(b.preventDefault(),b.stopPropagation(),i(!1),a)return;const y=Array.from(b.dataTransfer.files);y.length>0&&p(y)},[a,e,n,r,t]),m=_.useCallback(b=>{if(a)return;const y=Array.from(b.target.files||[]);y.length>0&&p(y),l.current&&(l.current.value="")},[a,e,n,r,t]),p=_.useCallback(b=>{if(!r&&b.length>1){alert("Solo se permite un archivo");return}const y=b.filter(k=>Array.isArray(e)?e.some(w=>w==="image/*"?k.type.startsWith("image/"):k.type===w):e==="image/*"?k.type.startsWith("image/"):k.type===e);if(y.length===0){Ys.fire({title:"Error",text:`Tipo de archivo no permitido. Tipos permitidos: ${d()}`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"});return}const v=y.filter(k=>k.size<=n*1024*1024);v.length!==y.length&&Ys.fire({title:"Error",text:`Algunos archivos exceden el tamaño máximo de ${n}MB`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"}),v.length>0&&(t==null||t(v))},[e,n,r,t]);return f.jsx("div",{className:"flex w-full items-center justify-center",children:f.jsxs(Ac,{htmlFor:"dropzone-file",className:`flex w-full ${a?"cursor-not-allowed opacity-60":"cursor-pointer"} flex-col items-center justify-center rounded-lg border-2 border-dashed ${o&&!a?"border-blue-500 bg-blue-50":"border-[#C4C4C4] bg-gray-50"} ${!a&&"hover:bg-gray-100"} dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600`,onDragOver:u,onDragLeave:h,onDrop:g,children:[f.jsx("div",{className:"flex w-full items-center justify-center py-6 px-10",children:f.jsx("div",{className:"flex flex-col",children:f.jsxs("p",{className:"mb-2 text-center text-sm font-light text-gray-400 dark:text-gray-400",children:[f.jsx("span",{className:"text-gray-500",children:"Arrastra aquí tu archivo "}),f.jsx("br",{}),f.jsxs("span",{className:" text-gray-500",children:["o ",f.jsx("span",{className:"underline",children:"búscalo en el dispositivo"})]}),s]})})}),f.jsx(k0,{id:"dropzone-file",className:"hidden",onChange:m,accept:c,multiple:r,ref:l,disabled:a})]})})},xT=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${n[e]}`},kT=({files:t,onDelete:e,isMultiple:n=!0})=>{const r=n?t:t.slice(-1);return f.jsx("div",{className:"mt-4",children:f.jsx("ul",{className:"list-none",children:r.map((s,a)=>f.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-[#191960] bg-[#F4F4F4CC] p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx(Sr,{classIm:"mr-2",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:40}),f.jsx("li",{className:"text-base text-gray-700",children:s.name})]}),f.jsxs("div",{className:"mx-4 flex flex-1 justify-between",children:[f.jsxs("p",{className:"ml-auto text-sm font-semibold",children:[xT(s.size)," "]}),f.jsx("div",{onClick:()=>e(s),children:f.jsx(Sr,{classIm:"ml-auto cursor-pointer",src:"https://ftp.mathilde-ads.com/382-d1647780b1ee3f437104400b2f8d6555.svg",alt:"icon dropzone",width:20})})]})]},a))})})},_T=({description:t=""})=>f.jsxs("div",{className:"flex flex-col items-center justify-center",children:[f.jsx("img",{src:"https://ftp.mathilde-ads.com/151-82821df9d4f7bd2662418d3147880fba.svg",alt:t.replace(/<[^>]*>/g,"")}),t&&f.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:t}})]}),uw={mth_tabs_tab_item:"tabs-module__mth_tabs_tab_item__dk-Z7",mth_tabs_tab_item_active:"tabs-module__mth_tabs_tab_item_active__p3kAi"};function CT({tabs:t,classes:e="",classesUl:n="",tabItemClasses:r="",activeTabStyles:s,inactiveTabStyles:a,contentClasses:o="",defaultActiveTab:i,onTabChange:l}){var m,p;const[c,d]=_.useState(i||((m=t[0])==null?void 0:m.id)||""),u=b=>{d(b),l==null||l(b)},h=b=>{const y=b.target.value;d(y),l==null||l(y)},g=(p=t.find(b=>b.id===c))==null?void 0:p.content;return f.jsxs("div",{className:`${e} tabs-container`,children:[f.jsxs("div",{className:"mb-4 sm:hidden",children:[f.jsx("label",{htmlFor:"tabs-select",className:"sr-only",children:"Selecciona una pestaña"}),f.jsx("select",{id:"tabs-select",value:c,onChange:h,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",children:t.map(b=>f.jsx("option",{value:b.id,children:b.title},b.id))})]}),f.jsx("ul",{className:`${n} text-sm font-medium text-center text-gray-500 rounded-lg shadow-sm sm:flex dark:divide-gray-700 dark:text-gray-400`,children:t.map(b=>{const y=c===b.id,v=()=>y&&s?s:!y&&a?a:{},k=()=>y?s?"":uw.mth_tabs_tab_item_active:a?"":uw.mth_tabs_tab_item;return f.jsx("li",{className:"w-full focus-within:z-10",children:f.jsxs("button",{onClick:()=>u(b.id),className:`${r} ${k()} uppercase`,style:v(),"aria-current":y?"page":void 0,children:[b.icon&&f.jsx("span",{className:"mr-2",children:b.icon}),b.title]})},b.id)})}),f.jsx("div",{className:`mt-0 ${o}`,children:g})]})}var fw={},oo={},vu={exports:{}},ll={exports:{}},De={};/** @license React v16.13.1
|
|
564
564
|
* react-is.production.min.js
|
|
565
565
|
*
|
|
566
566
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
567
567
|
*
|
|
568
568
|
* This source code is licensed under the MIT license found in the
|
|
569
569
|
* LICENSE file in the root directory of this source tree.
|
|
570
|
-
*/var
|
|
570
|
+
*/var hw;function ST(){if(hw)return De;hw=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function k(x){if(typeof x=="object"&&x!==null){var C=x.$$typeof;switch(C){case e:switch(x=x.type,x){case l:case c:case r:case a:case s:case u:return x;default:switch(x=x&&x.$$typeof,x){case i:case d:case m:case g:case o:return x;default:return C}}case n:return C}}}function w(x){return k(x)===c}return De.AsyncMode=l,De.ConcurrentMode=c,De.ContextConsumer=i,De.ContextProvider=o,De.Element=e,De.ForwardRef=d,De.Fragment=r,De.Lazy=m,De.Memo=g,De.Portal=n,De.Profiler=a,De.StrictMode=s,De.Suspense=u,De.isAsyncMode=function(x){return w(x)||k(x)===l},De.isConcurrentMode=w,De.isContextConsumer=function(x){return k(x)===i},De.isContextProvider=function(x){return k(x)===o},De.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},De.isForwardRef=function(x){return k(x)===d},De.isFragment=function(x){return k(x)===r},De.isLazy=function(x){return k(x)===m},De.isMemo=function(x){return k(x)===g},De.isPortal=function(x){return k(x)===n},De.isProfiler=function(x){return k(x)===a},De.isStrictMode=function(x){return k(x)===s},De.isSuspense=function(x){return k(x)===u},De.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===a||x===s||x===u||x===h||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===g||x.$$typeof===o||x.$$typeof===i||x.$$typeof===d||x.$$typeof===b||x.$$typeof===y||x.$$typeof===v||x.$$typeof===p)},De.typeOf=k,De}var Me={};/** @license React v16.13.1
|
|
571
571
|
* react-is.development.js
|
|
572
572
|
*
|
|
573
573
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
574
574
|
*
|
|
575
575
|
* This source code is licensed under the MIT license found in the
|
|
576
576
|
* LICENSE file in the root directory of this source tree.
|
|
577
|
-
*/var
|
|
577
|
+
*/var gw;function OT(){return gw||(gw=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function k(U){return typeof U=="string"||typeof U=="function"||U===r||U===c||U===a||U===s||U===u||U===h||typeof U=="object"&&U!==null&&(U.$$typeof===m||U.$$typeof===g||U.$$typeof===o||U.$$typeof===i||U.$$typeof===d||U.$$typeof===b||U.$$typeof===y||U.$$typeof===v||U.$$typeof===p)}function w(U){if(typeof U=="object"&&U!==null){var le=U.$$typeof;switch(le){case e:var H=U.type;switch(H){case l:case c:case r:case a:case s:case u:return H;default:var ne=H&&H.$$typeof;switch(ne){case i:case d:case m:case g:case o:return ne;default:return le}}case n:return le}}}var x=l,C=c,N=i,M=o,P=e,S=d,B=r,A=m,T=g,D=n,j=a,E=s,Y=u,X=!1;function ee(U){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(U)||w(U)===l}function I(U){return w(U)===c}function V(U){return w(U)===i}function F(U){return w(U)===o}function L(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function R(U){return w(U)===d}function O(U){return w(U)===r}function z(U){return w(U)===m}function J(U){return w(U)===g}function K(U){return w(U)===n}function q(U){return w(U)===a}function te(U){return w(U)===s}function ie(U){return w(U)===u}Me.AsyncMode=x,Me.ConcurrentMode=C,Me.ContextConsumer=N,Me.ContextProvider=M,Me.Element=P,Me.ForwardRef=S,Me.Fragment=B,Me.Lazy=A,Me.Memo=T,Me.Portal=D,Me.Profiler=j,Me.StrictMode=E,Me.Suspense=Y,Me.isAsyncMode=ee,Me.isConcurrentMode=I,Me.isContextConsumer=V,Me.isContextProvider=F,Me.isElement=L,Me.isForwardRef=R,Me.isFragment=O,Me.isLazy=z,Me.isMemo=J,Me.isPortal=K,Me.isProfiler=q,Me.isStrictMode=te,Me.isSuspense=ie,Me.isValidElementType=k,Me.typeOf=w}()),Me}var mw;function pw(){return mw||(mw=1,process.env.NODE_ENV==="production"?ll.exports=ST():ll.exports=OT()),ll.exports}/*
|
|
578
578
|
object-assign
|
|
579
579
|
(c) Sindre Sorhus
|
|
580
580
|
@license MIT
|
|
581
|
-
*/var xu,
|
|
582
|
-
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var U=ie(J,te,A,O,W+"."+te,n);if(U)return U}return null}return b(V)}function D(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(D);if(I===null||i(I))return!0;var V=u(I);if(V){var L=V.call(I),R;if(V!==I.entries){for(;!(R=L.next()).done;)if(!D(R.value))return!1}else for(;!(R=L.next()).done;){var A=R.value;if(A&&!D(A[1]))return!1}}else return!1;return!0;default:return!1}}function j(I,V){return I==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function M(I){var V=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":j(V,I)?"symbol":V}function H(I){if(typeof I>"u"||I===null)return""+I;var V=M(I);if(V==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return V}function X(I){var V=H(I);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function ee(I){return!I.constructor||!I.constructor.name?g:I.constructor.name}return h.checkPropTypes=s,h.resetWarningCache=s.resetWarningCache,h.PropTypes=h,h},Ou}var Du,kw;function ON(){if(kw)return Du;kw=1;var t=_u();function e(){}function n(){}return n.resetWarningCache=e,Du=function(){function r(o,i,l,c,d,u){if(u!==t){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function s(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},Du}if(process.env.NODE_ENV!=="production"){var DN=mw(),MN=!0;vu.exports=CN()(DN.isElement,MN)}else vu.exports=ON()();var Xn=vu.exports,io={},Gn={};const _w=7,cl=365.2425,lo=6048e5,Sw=864e5,Kn=6e4,Jr=36e5,Mu=1e3,Cw=525600,Vs=43200,dl=1440,Ow=60,Dw=3,Mw=12,Ew=4,ul=3600,Eu=60,Tu=ul*24,EN=Tu*7,Tw=Tu*cl,Pw=Tw/12,TN=Pw*3,Nw=Symbol.for("constructDateFrom");function de(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Nw in t?t[Nw](e):t instanceof Date?new t.constructor(e):new Date(e)}function Z(t,e){return de(e||t,t)}function rn(t,e,n){const r=Z(t,n==null?void 0:n.in);return isNaN(e)?de((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function co(t,e,n){const r=Z(t,n==null?void 0:n.in);if(isNaN(e))return de((n==null?void 0:n.in)||t,NaN);if(!e)return r;const s=r.getDate(),a=de((n==null?void 0:n.in)||t,r.getTime());a.setMonth(r.getMonth()+e+1,0);const o=a.getDate();return s>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),s),r)}function Us(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Z(t,n==null?void 0:n.in),u=s||r?co(d,s+r*12):d,g=o||a?rn(u,o+a*7):u,h=l+i*60,m=(c+h*60)*1e3;return de((n==null?void 0:n.in)||t,+g+m)}function jw(t,e){return Z(t,e==null?void 0:e.in).getDay()===6}function Iw(t,e){return Z(t,e==null?void 0:e.in).getDay()===0}function Xs(t,e){const n=Z(t,e==null?void 0:e.in).getDay();return n===0||n===6}function Aw(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Xs(r,n);if(isNaN(e))return de(n==null?void 0:n.in,NaN);const a=r.getHours(),o=e<0?-1:1,i=Math.trunc(e/5);r.setDate(r.getDate()+i*7);let l=Math.abs(e%5);for(;l>0;)r.setDate(r.getDate()+o),Xs(r,n)||(l-=1);return s&&Xs(r,n)&&e!==0&&(jw(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),Iw(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(a),r}function fl(t,e,n){return de((n==null?void 0:n.in)||t,+Z(t)+e)}function Rw(t,e,n){return fl(t,e*Jr,n)}let Lw={};function Ot(){return Lw}function PN(t){Lw=t}function bt(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Z(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?7:0)+a-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function un(t,e){return bt(t,{...e,weekStartsOn:1})}function br(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=de(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const a=un(s),o=de(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=un(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function Rt(t){const e=Z(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function je(t,...e){const n=de.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Gs(t,e){const n=Z(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function Dn(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=Gs(r),o=Gs(s),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/Sw)}function yr(t,e){const n=br(t,e),r=de((e==null?void 0:e.in)||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),un(r)}function Fw(t,e,n){let r=Z(t,n==null?void 0:n.in);const s=Dn(r,yr(r,n)),a=de((n==null?void 0:n.in)||t,0);return a.setFullYear(e,0,4),a.setHours(0,0,0,0),r=yr(a),r.setDate(r.getDate()+s),r}function Bw(t,e,n){return Fw(t,br(t,n)+e,n)}function Pu(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setTime(r.getTime()+e*Kn),r}function Nu(t,e,n){return co(t,e*3,n)}function Ww(t,e,n){return fl(t,e*1e3,n)}function hl(t,e,n){return rn(t,e*7,n)}function zw(t,e,n){return co(t,e*12,n)}function NN(t,e,n){const[r,s]=[+Z(t.start,n==null?void 0:n.in),+Z(t.end,n==null?void 0:n.in)].sort((i,l)=>i-l),[a,o]=[+Z(e.start,n==null?void 0:n.in),+Z(e.end,n==null?void 0:n.in)].sort((i,l)=>i-l);return n!=null&&n.inclusive?r<=o&&a<=s:r<o&&a<s}function Hw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=de.bind(null,s));const a=Z(s,r);(!n||n<a||isNaN(+a))&&(n=a)}),de(r,n||NaN)}function Yw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=de.bind(null,s));const a=Z(s,r);(!n||n>a||isNaN(+a))&&(n=a)}),de(r,n||NaN)}function jN(t,e,n){const[r,s,a]=je(n==null?void 0:n.in,t,e.start,e.end);return Yw([Hw([r,s],n),a],n)}function Vw(t,e){const n=+Z(t);if(isNaN(n))return NaN;let r,s;return e.forEach((a,o)=>{const i=Z(a);if(isNaN(+i)){r=NaN,s=NaN;return}const l=Math.abs(n-+i);(r==null||l<s)&&(r=o,s=l)}),r}function IN(t,e,n){const[r,...s]=je(n==null?void 0:n.in,t,...e),a=Vw(r,s);if(typeof a=="number"&&isNaN(a))return de(r,NaN);if(a!==void 0)return s[a]}function Mn(t,e){const n=+Z(t)-+Z(e);return n<0?-1:n>0?1:n}function AN(t,e){const n=+Z(t)-+Z(e);return n>0?-1:n<0?1:n}function st(t){return de(t,Date.now())}function RN(t){const e=Math.trunc(t/_w);return e===0?0:e}function uo(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+Gs(r)==+Gs(s)}function Uw(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Qn(t){return!(!Uw(t)&&typeof t!="number"||isNaN(+Z(t)))}function LN(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);if(!Qn(r)||!Qn(s))return NaN;const a=Dn(r,s),o=a<0?-1:1,i=Math.trunc(a/7);let l=i*5,c=rn(s,i*7);for(;!uo(r,c);)l+=Xs(c,n)?0:o,c=rn(c,o);return l===0?0:l}function Xw(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return br(r,n)-br(s,n)}function FN(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=un(r),o=un(s),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/lo)}function gl(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return a*12+o}function ju(t,e){const n=Z(t,e==null?void 0:e.in);return Math.trunc(n.getMonth()/3)+1}function ml(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=ju(r)-ju(s);return a*4+o}function pl(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=bt(r,n),o=bt(s,n),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/lo)}function fo(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return r.getFullYear()-s.getFullYear()}function Iu(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=Gw(r,s),o=Math.abs(Dn(r,s));r.setDate(r.getDate()-a*o);const i=+(Gw(r,s)===-a),l=a*(o-i);return l===0?0:l}function Gw(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function wr(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function bl(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=(+r-+s)/Jr;return wr(n==null?void 0:n.roundingMethod)(a)}function Kw(t,e,n){return Bw(t,-e,n)}function BN(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=Mn(r,s),o=Math.abs(Xw(r,s,n)),i=Kw(r,a*o,n),l=+(Mn(i,s)===-a),c=a*(o-l);return c===0?0:c}function Au(t,e){return+Z(t)-+Z(e)}function yl(t,e,n){const r=Au(t,e)/Kn;return wr(n==null?void 0:n.roundingMethod)(r)}function Ru(t,e){const n=Z(t,e==null?void 0:e.in);return n.setHours(23,59,59,999),n}function Lu(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Qw(t,e){const n=Z(t,e==null?void 0:e.in);return+Ru(n,e)==+Lu(n,e)}function wl(t,e,n){const[r,s,a]=je(n==null?void 0:n.in,t,t,e),o=Mn(s,a),i=Math.abs(gl(s,a));if(i<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*i);let l=Mn(s,a)===-o;Qw(r)&&i===1&&Mn(r,a)===1&&(l=!1);const c=o*(i-+l);return c===0?0:c}function WN(t,e,n){const r=wl(t,e,n)/3;return wr(n==null?void 0:n.roundingMethod)(r)}function Ks(t,e,n){const r=Au(t,e)/1e3;return wr(n==null?void 0:n.roundingMethod)(r)}function zN(t,e,n){const r=Iu(t,e,n)/7;return wr(n==null?void 0:n.roundingMethod)(r)}function Zw(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=Mn(r,s),o=Math.abs(fo(r,s));r.setFullYear(1584),s.setFullYear(1584);const i=Mn(r,s)===-a,l=a*(o-+i);return l===0?0:l}function Zn(t,e){const[n,r]=je(t,e.start,e.end);return{start:n,end:r}}function Jw(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o.setDate(o.getDate()+i),o.setHours(0,0,0,0);return s?l.reverse():l}function HN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setMinutes(0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o.setHours(o.getHours()+i);return s?l.reverse():l}function YN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);n.setSeconds(0,0);let s=+n>+r;const a=s?+n:+r;let o=s?r:n,i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o=Pu(o,i);return s?l.reverse():l}function VN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setDate(1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o.setMonth(o.getMonth()+i);return s?l.reverse():l}function qr(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3;return n.setMonth(s,1),n.setHours(0,0,0,0),n}function UN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+qr(n):+qr(r);let o=qr(s?r:n),i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o=Nu(o,i);return s?l.reverse():l}function XN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=bt(s?r:n,e),o=bt(s?n:r,e);a.setHours(15),o.setHours(15);const i=+o.getTime();let l=a,c=(e==null?void 0:e.step)??1;if(!c)return[];c<0&&(c=-c,s=!s);const d=[];for(;+l<=i;)l.setHours(0),d.push(de(n,l)),l=hl(l,c),l.setHours(15);return s?d.reverse():d}function Fu(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t),s=Jw({start:n,end:r},e),a=[];let o=0;for(;o<s.length;){const i=s[o++];Xs(i)&&a.push(de(n,i))}return a}function vl(t,e){const n=Z(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function GN(t,e){const n=vl(t,e),r=Lu(t,e);return Fu({start:n,end:r},e)}function qw(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Bu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function KN(t,e){const n=Bu(t,e),r=qw(t,e);return Fu({start:n,end:r},e)}function QN(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o.setFullYear(o.getFullYear()+i);return s?l.reverse():l}function ZN(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s,11,31),n.setHours(23,59,59,999),n}function JN(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMinutes(59,59,999),n}function $w(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Z(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function qN(t,e){return $w(t,{...e,weekStartsOn:1})}function $N(t,e){const n=br(t,e),r=de((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=un(r,e);return s.setMilliseconds(s.getMilliseconds()-1),s}function ej(t,e){const n=Z(t,e==null?void 0:e.in);return n.setSeconds(59,999),n}function tj(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(23,59,59,999),n}function nj(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMilliseconds(999),n}function rj(t){return Ru(Date.now(),t)}function sj(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s+1),a.setHours(23,59,59,999),t!=null&&t.in?t.in(a):a}function aj(t){const e=st(t==null?void 0:t.in),n=de(t==null?void 0:t.in,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),n.setHours(23,59,59,999),n}const oj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ij=(t,e,n)=>{let r;const s=oj[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Qs(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const lj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uj={date:Qs({formats:lj,defaultWidth:"full"}),time:Qs({formats:cj,defaultWidth:"full"}),dateTime:Qs({formats:dj,defaultWidth:"full"})},fj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hj=(t,e,n,r)=>fj[t];function En(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}const gj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},yj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},vj={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:En({values:gj,defaultWidth:"wide"}),quarter:En({values:mj,defaultWidth:"wide",argumentCallback:t=>t-1}),month:En({values:pj,defaultWidth:"wide"}),day:En({values:bj,defaultWidth:"wide"}),dayPeriod:En({values:yj,defaultWidth:"wide",formattingValues:wj,defaultFormattingWidth:"wide"})};function Tn(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?kj(i,u=>u.test(o)):xj(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function xj(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function kj(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function ev(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}const _j=/^(\d+)(th|st|nd|rd)?/i,Sj=/\d+/i,Cj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Oj={any:[/^b/i,/^(a|c)/i]},Dj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Mj={any:[/1/i,/2/i,/3/i,/4/i]},Ej={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Tj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Pj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Nj={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},jj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ij={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Aj={ordinalNumber:ev({matchPattern:_j,parsePattern:Sj,valueCallback:t=>parseInt(t,10)}),era:Tn({matchPatterns:Cj,defaultMatchWidth:"wide",parsePatterns:Oj,defaultParseWidth:"any"}),quarter:Tn({matchPatterns:Dj,defaultMatchWidth:"wide",parsePatterns:Mj,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Tn({matchPatterns:Ej,defaultMatchWidth:"wide",parsePatterns:Tj,defaultParseWidth:"any"}),day:Tn({matchPatterns:Pj,defaultMatchWidth:"wide",parsePatterns:Nj,defaultParseWidth:"any"}),dayPeriod:Tn({matchPatterns:jj,defaultMatchWidth:"any",parsePatterns:Ij,defaultParseWidth:"any"})},Zs={code:"en-US",formatDistance:ij,formatLong:uj,formatRelative:hj,localize:vj,match:Aj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tv(t,e){const n=Z(t,e==null?void 0:e.in);return Dn(n,Bu(n))+1}function Wu(t,e){const n=Z(t,e==null?void 0:e.in),r=+un(n)-+yr(n);return Math.round(r/lo)+1}function xl(t,e){var d,u,g,h;const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=Ot(),a=(e==null?void 0:e.firstWeekContainsDate)??((u=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??s.firstWeekContainsDate??((h=(g=s.locale)==null?void 0:g.options)==null?void 0:h.firstWeekContainsDate)??1,o=de((e==null?void 0:e.in)||t,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const i=bt(o,e),l=de((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=bt(l,e);return+n>=+i?r+1:+n>=+c?r:r-1}function kl(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.firstWeekContainsDate)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=xl(t,e),a=de((e==null?void 0:e.in)||t,0);return a.setFullYear(s,0,r),a.setHours(0,0,0,0),bt(a,e)}function zu(t,e){const n=Z(t,e==null?void 0:e.in),r=+bt(n,e)-+kl(n,e);return Math.round(r/lo)+1}function ue(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Pn={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ue(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ue(n+1,2)},d(t,e){return ue(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return ue(t.getHours()%12||12,e.length)},H(t,e){return ue(t.getHours(),e.length)},m(t,e){return ue(t.getMinutes(),e.length)},s(t,e){return ue(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return ue(s,e.length)}},Js={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hu={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Pn.y(t,e)},Y:function(t,e,n,r){const s=xl(t,r),a=s>0?s:1-s;if(e==="YY"){const o=a%100;return ue(o,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):ue(a,e.length)},R:function(t,e){const n=br(t);return ue(n,e.length)},u:function(t,e){const n=t.getFullYear();return ue(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Pn.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const s=zu(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):ue(s,e.length)},I:function(t,e,n){const r=Wu(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ue(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Pn.d(t,e)},D:function(t,e,n){const r=tv(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ue(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return ue(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return ue(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return ue(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=Js.noon:r===0?s=Js.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=Js.evening:r>=12?s=Js.afternoon:r>=4?s=Js.morning:s=Js.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pn.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Pn.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Pn.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Pn.s(t,e)},S:function(t,e){return Pn.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return rv(r);case"XXXX":case"XX":return $r(r);case"XXXXX":case"XXX":default:return $r(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return rv(r);case"xxxx":case"xx":return $r(r);case"xxxxx":case"xxx":default:return $r(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+nv(r,":");case"OOOO":default:return"GMT"+$r(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+nv(r,":");case"zzzz":default:return"GMT"+$r(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return ue(r,e.length)},T:function(t,e,n){return ue(+t,e.length)}};function nv(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),a=r%60;return a===0?n+String(s):n+String(s)+e+ue(a,2)}function rv(t,e){return t%60===0?(t>0?"-":"+")+ue(Math.abs(t)/60,2):$r(t,e)}function $r(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=ue(Math.trunc(r/60),2),a=ue(r%60,2);return n+s+e+a}const sv=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},av=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},_l={p:av,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return sv(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",sv(r,e)).replace("{{time}}",av(s,e))}},Rj=/^D+$/,Lj=/^Y+$/,Fj=["D","DD","YY","YYYY"];function ov(t){return Rj.test(t)}function iv(t){return Lj.test(t)}function Yu(t,e,n){const r=Bj(t,e,n);if(console.warn(r),Fj.includes(t))throw new RangeError(r)}function Bj(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Wj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Hj=/^'([^]*?)'?$/,Yj=/''/g,Vj=/[a-zA-Z]/;function Sl(t,e,n){var d,u,g,h,p,m,b,y;const r=Ot(),s=(n==null?void 0:n.locale)??r.locale??Zs,a=(n==null?void 0:n.firstWeekContainsDate)??((u=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(g=r.locale)==null?void 0:g.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,i=Z(t,n==null?void 0:n.in);if(!Qn(i))throw new RangeError("Invalid time value");let l=e.match(zj).map(v=>{const k=v[0];if(k==="p"||k==="P"){const w=_l[k];return w(v,s.formatLong)}return v}).join("").match(Wj).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const k=v[0];if(k==="'")return{isToken:!1,value:Uj(v)};if(Hu[k])return{isToken:!0,value:v};if(k.match(Vj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:v}});s.localize.preprocessor&&(l=s.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return l.map(v=>{if(!v.isToken)return v.value;const k=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&iv(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&ov(k))&&Yu(k,e,String(t));const w=Hu[k[0]];return w(i,k,s.localize,c)}).join("")}function Uj(t){const e=t.match(Hj);return e?e[1].replace(Yj,"'"):t}function lv(t,e,n){const r=Ot(),s=(n==null?void 0:n.locale)??r.locale??Zs,a=2520,o=Mn(t,e);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:o}),[l,c]=je(n==null?void 0:n.in,...o>0?[e,t]:[t,e]),d=Ks(c,l),u=(Rt(c)-Rt(l))/1e3,g=Math.round((d-u)/60);let h;if(g<2)return n!=null&&n.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,i):d<10?s.formatDistance("lessThanXSeconds",10,i):d<20?s.formatDistance("lessThanXSeconds",20,i):d<40?s.formatDistance("halfAMinute",0,i):d<60?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",1,i):g===0?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",g,i);if(g<45)return s.formatDistance("xMinutes",g,i);if(g<90)return s.formatDistance("aboutXHours",1,i);if(g<dl){const p=Math.round(g/60);return s.formatDistance("aboutXHours",p,i)}else{if(g<a)return s.formatDistance("xDays",1,i);if(g<Vs){const p=Math.round(g/dl);return s.formatDistance("xDays",p,i)}else if(g<Vs*2)return h=Math.round(g/Vs),s.formatDistance("aboutXMonths",h,i)}if(h=wl(c,l),h<12){const p=Math.round(g/Vs);return s.formatDistance("xMonths",p,i)}else{const p=h%12,m=Math.trunc(h/12);return p<3?s.formatDistance("aboutXYears",m,i):p<9?s.formatDistance("overXYears",m,i):s.formatDistance("almostXYears",m+1,i)}}function cv(t,e,n){const r=Ot(),s=(n==null?void 0:n.locale)??r.locale??Zs,a=Mn(t,e);if(isNaN(a))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[i,l]=je(n==null?void 0:n.in,...a>0?[e,t]:[t,e]),c=wr((n==null?void 0:n.roundingMethod)??"round"),d=l.getTime()-i.getTime(),u=d/Kn,g=Rt(l)-Rt(i),h=(d-g)/Kn,p=n==null?void 0:n.unit;let m;if(p?m=p:u<1?m="second":u<60?m="minute":u<dl?m="hour":h<Vs?m="day":h<Cw?m="month":m="year",m==="second"){const b=c(d/1e3);return s.formatDistance("xSeconds",b,o)}else if(m==="minute"){const b=c(u);return s.formatDistance("xMinutes",b,o)}else if(m==="hour"){const b=c(u/60);return s.formatDistance("xHours",b,o)}else if(m==="day"){const b=c(h/dl);return s.formatDistance("xDays",b,o)}else if(m==="month"){const b=c(h/Vs);return b===12&&p!=="month"?s.formatDistance("xYears",1,o):s.formatDistance("xMonths",b,o)}else{const b=c(h/Cw);return s.formatDistance("xYears",b,o)}}function Xj(t,e){return lv(t,st(t),e)}function Gj(t,e){return cv(t,st(t),e)}const Kj=["years","months","weeks","days","hours","minutes","seconds"];function Qj(t,e){const n=Ot(),r=(e==null?void 0:e.locale)??n.locale??Zs,s=(e==null?void 0:e.format)??Kj,a=(e==null?void 0:e.zero)??!1,o=(e==null?void 0:e.delimiter)??" ";return r.formatDistance?s.reduce((l,c)=>{const d=`x${c.replace(/(^.)/,g=>g.toUpperCase())}`,u=t[c];return u!==void 0&&(a||t[c])?l.concat(r.formatDistance(d,u)):l},[]).join(o):""}function Zj(t,e){const n=Z(t,e==null?void 0:e.in);if(isNaN(+n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="",o="";const i=r==="extended"?"-":"",l=r==="extended"?":":"";if(s!=="time"){const c=ue(n.getDate(),2),d=ue(n.getMonth()+1,2);a=`${ue(n.getFullYear(),4)}${i}${d}${i}${c}`}if(s!=="date"){const c=n.getTimezoneOffset();if(c!==0){const m=Math.abs(c),b=ue(Math.trunc(m/60),2),y=ue(m%60,2);o=`${c<0?"+":"-"}${b}:${y}`}else o="Z";const d=ue(n.getHours(),2),u=ue(n.getMinutes(),2),g=ue(n.getSeconds(),2),h=a===""?"":"T",p=[d,u,g].join(l);a=`${a}${h}${p}${o}`}return a}function Jj(t,e){const n=Z(t,e==null?void 0:e.in);if(!Qn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="";const o=r==="extended"?"-":"",i=r==="extended"?":":"";if(s!=="time"){const l=ue(n.getDate(),2),c=ue(n.getMonth()+1,2);a=`${ue(n.getFullYear(),4)}${o}${c}${o}${l}`}if(s!=="date"){const l=ue(n.getHours(),2),c=ue(n.getMinutes(),2),d=ue(n.getSeconds(),2);a=`${a}${a===""?"":" "}${l}${i}${c}${i}${d}`}return a}function qj(t){const{years:e=0,months:n=0,days:r=0,hours:s=0,minutes:a=0,seconds:o=0}=t;return`P${e}Y${n}M${r}DT${s}H${a}M${o}S`}function $j(t,e){const n=Z(t,e==null?void 0:e.in);if(!Qn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.fractionDigits)??0,s=ue(n.getDate(),2),a=ue(n.getMonth()+1,2),o=n.getFullYear(),i=ue(n.getHours(),2),l=ue(n.getMinutes(),2),c=ue(n.getSeconds(),2);let d="";if(r>0){const h=n.getMilliseconds(),p=Math.trunc(h*Math.pow(10,r-3));d="."+ue(p,r)}let u="";const g=n.getTimezoneOffset();if(g!==0){const h=Math.abs(g),p=ue(Math.trunc(h/60),2),m=ue(h%60,2);u=`${g<0?"+":"-"}${p}:${m}`}else u="Z";return`${o}-${a}-${s}T${i}:${l}:${c}${d}${u}`}const eI=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function nI(t){const e=Z(t);if(!Qn(e))throw new RangeError("Invalid time value");const n=eI[e.getUTCDay()],r=ue(e.getUTCDate(),2),s=tI[e.getUTCMonth()],a=e.getUTCFullYear(),o=ue(e.getUTCHours(),2),i=ue(e.getUTCMinutes(),2),l=ue(e.getUTCSeconds(),2);return`${n}, ${r} ${s} ${a} ${o}:${i}:${l} GMT`}function rI(t,e,n){var u,g,h,p;const[r,s]=je(n==null?void 0:n.in,t,e),a=Ot(),o=(n==null?void 0:n.locale)??a.locale??Zs,i=(n==null?void 0:n.weekStartsOn)??((g=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:g.weekStartsOn)??a.weekStartsOn??((p=(h=a.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??0,l=Dn(r,s);if(isNaN(l))throw new RangeError("Invalid time value");let c;l<-6?c="other":l<-1?c="lastWeek":l<0?c="yesterday":l<1?c="today":l<2?c="tomorrow":l<7?c="nextWeek":c="other";const d=o.formatRelative(c,r,s,{locale:o,weekStartsOn:i});return Sl(r,d,{locale:o,weekStartsOn:i})}function sI(t,e){return Z(t*1e3,e==null?void 0:e.in)}function dv(t,e){return Z(t,e==null?void 0:e.in).getDate()}function Cl(t,e){return Z(t,e==null?void 0:e.in).getDay()}function uv(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=n.getMonth(),a=de(n,0);return a.setFullYear(r,s+1,0),a.setHours(0,0,0,0),a.getDate()}function fv(t,e){const r=Z(t,e==null?void 0:e.in).getFullYear();return r%400===0||r%4===0&&r%100!==0}function aI(t,e){const n=Z(t,e==null?void 0:e.in);return Number.isNaN(+n)?NaN:fv(n)?366:365}function oI(t,e){const r=Z(t,e==null?void 0:e.in).getFullYear();return Math.floor(r/10)*10}function hv(){return Object.assign({},Ot())}function iI(t,e){return Z(t,e==null?void 0:e.in).getHours()}function gv(t,e){const n=Z(t,e==null?void 0:e.in).getDay();return n===0?7:n}function lI(t,e){const n=yr(t,e),s=+yr(hl(n,60))-+n;return Math.round(s/lo)}function cI(t){return Z(t).getMilliseconds()}function dI(t,e){return Z(t,e==null?void 0:e.in).getMinutes()}function uI(t,e){return Z(t,e==null?void 0:e.in).getMonth()}function fI(t,e){const[n,r]=[+Z(t.start),+Z(t.end)].sort((u,g)=>u-g),[s,a]=[+Z(e.start),+Z(e.end)].sort((u,g)=>u-g);if(!(n<a&&s<r))return 0;const i=s<n?n:s,l=i-Rt(i),c=a>r?r:a,d=c-Rt(c);return Math.ceil((d-l)/Sw)}function hI(t){return Z(t).getSeconds()}function gI(t){return+Z(t)}function mI(t){return Math.trunc(+Z(t)/1e3)}function pI(t,e){var l,c,d,u;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=dv(Z(t,e==null?void 0:e.in));if(isNaN(s))return NaN;const a=Cl(vl(t,e));let o=r-a;o<=0&&(o+=7);const i=s-o;return Math.ceil(i/7)+1}function mv(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),Z(n,e==null?void 0:e.in)}function bI(t,e){const n=Z(t,e==null?void 0:e.in);return pl(mv(n,e),vl(n,e),e)+1}function yI(t,e){return Z(t,e==null?void 0:e.in).getFullYear()}function wI(t){return Math.trunc(t*Jr)}function vI(t){return Math.trunc(t*Ow)}function xI(t){return Math.trunc(t*ul)}function kI(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);if(isNaN(+r))throw new TypeError("Start date is invalid");if(isNaN(+s))throw new TypeError("End date is invalid");if(n!=null&&n.assertPositive&&+r>+s)throw new TypeError("End date must be after start date");return{start:r,end:s}}function _I(t,e){const{start:n,end:r}=Zn(e==null?void 0:e.in,t),s={},a=Zw(r,n);a&&(s.years=a);const o=Us(n,{years:s.years}),i=wl(r,o);i&&(s.months=i);const l=Us(o,{months:s.months}),c=Iu(r,l);c&&(s.days=c);const d=Us(l,{days:s.days}),u=bl(r,d);u&&(s.hours=u);const g=Us(d,{hours:s.hours}),h=yl(r,g);h&&(s.minutes=h);const p=Us(g,{minutes:s.minutes}),m=Ks(r,p);return m&&(s.seconds=m),s}function SI(t,e,n){let r;return CI(e)?r=e:n=e,new Intl.DateTimeFormat(n==null?void 0:n.locale,r).format(Z(t))}function CI(t){return t!==void 0&&!("locale"in t)}function OI(t,e,n){let r=0,s;const[a,o]=je(n==null?void 0:n.in,t,e);if(n!=null&&n.unit)s=n==null?void 0:n.unit,s==="second"?r=Ks(a,o):s==="minute"?r=yl(a,o):s==="hour"?r=bl(a,o):s==="day"?r=Dn(a,o):s==="week"?r=pl(a,o):s==="month"?r=gl(a,o):s==="quarter"?r=ml(a,o):s==="year"&&(r=fo(a,o));else{const l=Ks(a,o);Math.abs(l)<Eu?(r=Ks(a,o),s="second"):Math.abs(l)<ul?(r=yl(a,o),s="minute"):Math.abs(l)<Tu&&Math.abs(Dn(a,o))<1?(r=bl(a,o),s="hour"):Math.abs(l)<EN&&(r=Dn(a,o))&&Math.abs(r)<7?s="day":Math.abs(l)<Pw?(r=pl(a,o),s="week"):Math.abs(l)<TN?(r=gl(a,o),s="month"):Math.abs(l)<Tw&&ml(a,o)<4?(r=ml(a,o),s="quarter"):(r=fo(a,o),s="year")}return new Intl.RelativeTimeFormat(n==null?void 0:n.locale,{numeric:"auto",...n}).format(r,s)}function DI(t,e){return+Z(t)>+Z(e)}function MI(t,e){return+Z(t)<+Z(e)}function EI(t,e){return+Z(t)==+Z(e)}function TI(t,e,n){const r=new Date(t,e,n);return r.getFullYear()===t&&r.getMonth()===e&&r.getDate()===n}function PI(t,e){return Z(t,e==null?void 0:e.in).getDate()===1}function NI(t,e){return Z(t,e==null?void 0:e.in).getDay()===5}function jI(t){return+Z(t)>Date.now()}function pv(t,e){const n=II(e)?new e(0):de(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function II(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const AI=10;class bv{constructor(){$(this,"subPriority",0)}validate(e,n){return!0}}class RI extends bv{constructor(e,n,r,s,a){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=s,a&&(this.subPriority=a)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class LI extends bv{constructor(n,r){super();$(this,"priority",AI);$(this,"subPriority",-1);this.context=n||(s=>de(r,s))}set(n,r){return r.timestampIsSet?n:de(n,pv(n,this.context))}}class Se{run(e,n,r,s){const a=this.parse(e,n,r,s);return a?{setter:new RI(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,n,r){return!0}}class FI extends Se{constructor(){super(...arguments);$(this,"priority",140);$(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const qe={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Nn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function $e(t,e){return t&&{value:e(t.value),rest:t.rest}}function Ve(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function jn(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*Jr+a*Kn+o*Mu),rest:e.slice(n[0].length)}}function yv(t){return Ve(qe.anyDigitsSigned,t)}function Xe(t,e){switch(t){case 1:return Ve(qe.singleDigit,e);case 2:return Ve(qe.twoDigits,e);case 3:return Ve(qe.threeDigits,e);case 4:return Ve(qe.fourDigits,e);default:return Ve(new RegExp("^\\d{1,"+t+"}"),e)}}function Ol(t,e){switch(t){case 1:return Ve(qe.singleDigitSigned,e);case 2:return Ve(qe.twoDigitsSigned,e);case 3:return Ve(qe.threeDigitsSigned,e);case 4:return Ve(qe.fourDigitsSigned,e);default:return Ve(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Vu(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function wv(t,e){const n=e>0,r=n?e:1-e;let s;if(r<=50)s=t||100;else{const a=r+50,o=Math.trunc(a/100)*100,i=t>=a%100;s=t+o-(i?100:0)}return n?s:1-s}function vv(t){return t%400===0||t%4===0&&t%100!==0}class BI extends Se{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return $e(Xe(4,n),a);case"yo":return $e(s.ordinalNumber(n,{unit:"year"}),a);default:return $e(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const a=n.getFullYear();if(s.isTwoDigitYear){const i=wv(s.year,a);return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class WI extends Se{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return $e(Xe(4,n),a);case"Yo":return $e(s.ordinalNumber(n,{unit:"year"}),a);default:return $e(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,a){const o=xl(n,a);if(s.isTwoDigitYear){const l=wv(s.year,o);return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),bt(n,a)}const i=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(i,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),bt(n,a)}}class zI extends Se{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Ol(r==="R"?4:r.length,n)}set(n,r,s){const a=de(n,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),un(a)}}class HI extends Se{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Ol(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class YI extends Se{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return Xe(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class VI extends Se{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return Xe(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class UI extends Se{constructor(){super(...arguments);$(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);$(this,"priority",110)}parse(n,r,s){const a=o=>o-1;switch(r){case"M":return $e(Ve(qe.month,n),a);case"MM":return $e(Xe(2,n),a);case"Mo":return $e(s.ordinalNumber(n,{unit:"month"}),a);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class XI extends Se{constructor(){super(...arguments);$(this,"priority",110);$(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const a=o=>o-1;switch(r){case"L":return $e(Ve(qe.month,n),a);case"LL":return $e(Xe(2,n),a);case"Lo":return $e(s.ordinalNumber(n,{unit:"month"}),a);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function xv(t,e,n){const r=Z(t,n==null?void 0:n.in),s=zu(r,n)-e;return r.setDate(r.getDate()-s*7),Z(r,n==null?void 0:n.in)}class GI extends Se{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return Ve(qe.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,a){return bt(xv(n,s,a),a)}}function kv(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Wu(r,n)-e;return r.setDate(r.getDate()-s*7),r}class KI extends Se{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return Ve(qe.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return un(kv(n,s))}}const QI=[31,28,31,30,31,30,31,31,30,31,30,31],ZI=[31,29,31,30,31,30,31,31,30,31,30,31];class JI extends Se{constructor(){super(...arguments);$(this,"priority",90);$(this,"subPriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return Ve(qe.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear(),a=vv(s),o=n.getMonth();return a?r>=1&&r<=ZI[o]:r>=1&&r<=QI[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class qI extends Se{constructor(){super(...arguments);$(this,"priority",90);$(this,"subpriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return Ve(qe.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear();return vv(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function Dl(t,e,n){var u,g,h,p;const r=Ot(),s=(n==null?void 0:n.weekStartsOn)??((g=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??0,a=Z(t,n==null?void 0:n.in),o=a.getDay(),l=(e%7+7)%7,c=7-s,d=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return rn(a,d,n)}class $I extends Se{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Dl(n,s,a),n.setHours(0,0,0,0),n}}class e4 extends Se{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return $e(Xe(r.length,n),o);case"eo":return $e(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Dl(n,s,a),n.setHours(0,0,0,0),n}}class t4 extends Se{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return $e(Xe(r.length,n),o);case"co":return $e(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Dl(n,s,a),n.setHours(0,0,0,0),n}}function _v(t,e,n){const r=Z(t,n==null?void 0:n.in),s=gv(r,n),a=e-s;return rn(r,a,n)}class n4 extends Se{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const a=o=>o===0?7:o;switch(r){case"i":case"ii":return Xe(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return $e(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return $e(s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return $e(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return $e(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=_v(n,s),n.setHours(0,0,0,0),n}}class r4 extends Se{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Vu(s),0,0,0),n}}class s4 extends Se{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Vu(s),0,0,0),n}}class a4 extends Se{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Vu(s),0,0,0),n}}class o4 extends Se{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return Ve(qe.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const a=n.getHours()>=12;return a&&s<12?n.setHours(s+12,0,0,0):!a&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class i4 extends Se{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return Ve(qe.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class l4 extends Se{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return Ve(qe.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class c4 extends Se{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return Ve(qe.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const a=s<=24?s%24:s;return n.setHours(a,0,0,0),n}}class d4 extends Se{constructor(){super(...arguments);$(this,"priority",60);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return Ve(qe.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class u4 extends Se{constructor(){super(...arguments);$(this,"priority",50);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return Ve(qe.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class f4 extends Se{constructor(){super(...arguments);$(this,"priority",30);$(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=a=>Math.trunc(a*Math.pow(10,-r.length+3));return $e(Xe(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class h4 extends Se{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return jn(Nn.basicOptionalMinutes,n);case"XX":return jn(Nn.basic,n);case"XXXX":return jn(Nn.basicOptionalSeconds,n);case"XXXXX":return jn(Nn.extendedOptionalSeconds,n);case"XXX":default:return jn(Nn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:de(n,n.getTime()-Rt(n)-s)}}class g4 extends Se{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return jn(Nn.basicOptionalMinutes,n);case"xx":return jn(Nn.basic,n);case"xxxx":return jn(Nn.basicOptionalSeconds,n);case"xxxxx":return jn(Nn.extendedOptionalSeconds,n);case"xxx":default:return jn(Nn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:de(n,n.getTime()-Rt(n)-s)}}class m4 extends Se{constructor(){super(...arguments);$(this,"priority",40);$(this,"incompatibleTokens","*")}parse(n){return yv(n)}set(n,r,s){return[de(n,s*1e3),{timestampIsSet:!0}]}}class p4 extends Se{constructor(){super(...arguments);$(this,"priority",20);$(this,"incompatibleTokens","*")}parse(n){return yv(n)}set(n,r,s){return[de(n,s),{timestampIsSet:!0}]}}const Sv={G:new FI,y:new BI,Y:new WI,R:new zI,u:new HI,Q:new YI,q:new VI,M:new UI,L:new XI,w:new GI,I:new KI,d:new JI,D:new qI,E:new $I,e:new e4,c:new t4,i:new n4,a:new r4,b:new s4,B:new a4,h:new o4,H:new i4,K:new l4,k:new c4,m:new d4,s:new u4,S:new f4,X:new h4,x:new g4,t:new m4,T:new p4},b4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w4=/^'([^]*?)'?$/,v4=/''/g,x4=/\S/,k4=/[a-zA-Z]/;function Cv(t,e,n,r){var b,y,v,k,w,x,S,P;const s=()=>de((r==null?void 0:r.in)||n,NaN),a=hv(),o=(r==null?void 0:r.locale)??a.locale??Zs,i=(r==null?void 0:r.firstWeekContainsDate)??((y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(v=a.locale)==null?void 0:v.options)==null?void 0:k.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((x=(w=r==null?void 0:r.locale)==null?void 0:w.options)==null?void 0:x.weekStartsOn)??a.weekStartsOn??((P=(S=a.locale)==null?void 0:S.options)==null?void 0:P.weekStartsOn)??0;if(!e)return t?s():Z(n,r==null?void 0:r.in);const c={firstWeekContainsDate:i,weekStartsOn:l,locale:o},d=[new LI(r==null?void 0:r.in,n)],u=e.match(y4).map(C=>{const N=C[0];if(N in _l){const T=_l[N];return T(C,o.formatLong)}return C}).join("").match(b4),g=[];for(let C of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&iv(C)&&Yu(C,e,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ov(C)&&Yu(C,e,t);const N=C[0],T=Sv[N];if(T){const{incompatibleTokens:Y}=T;if(Array.isArray(Y)){const E=g.find(D=>Y.includes(D.token)||D.token===N);if(E)throw new RangeError(`The format string mustn't contain \`${E.fullToken}\` and \`${C}\` at the same time`)}else if(T.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);g.push({token:N,fullToken:C});const F=T.run(t,C,o.match,c);if(!F)return s();d.push(F.setter),t=F.rest}else{if(N.match(k4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");if(C==="''"?C="'":N==="'"&&(C=_4(C)),t.indexOf(C)===0)t=t.slice(C.length);else return s()}}if(t.length>0&&x4.test(t))return s();const h=d.map(C=>C.priority).sort((C,N)=>N-C).filter((C,N,T)=>T.indexOf(C)===N).map(C=>d.filter(N=>N.priority===C).sort((N,T)=>T.subPriority-N.subPriority)).map(C=>C[0]);let p=Z(n,r==null?void 0:r.in);if(isNaN(+p))return s();const m={};for(const C of h){if(!C.validate(p,c))return s();const N=C.set(p,m,c);Array.isArray(N)?(p=N[0],Object.assign(m,N[1])):p=N}return p}function _4(t){return t.match(w4)[1].replace(v4,"'")}function S4(t,e,n){return Qn(Cv(t,e,new Date,n))}function C4(t,e){return Z(t,e==null?void 0:e.in).getDay()===1}function O4(t){return+Z(t)<Date.now()}function Uu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMinutes(0,0,0),n}function Ov(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+Uu(r)==+Uu(s)}function Xu(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+bt(r,n)==+bt(s,n)}function Dv(t,e,n){return Xu(t,e,{...n,weekStartsOn:1})}function D4(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+yr(r)==+yr(s)}function Gu(t,e){const n=Z(t,e==null?void 0:e.in);return n.setSeconds(0,0),n}function Mv(t,e){return+Gu(t)==+Gu(e)}function Ev(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function Tv(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+qr(r)==+qr(s)}function Ku(t,e){const n=Z(t,e==null?void 0:e.in);return n.setMilliseconds(0),n}function Pv(t,e){return+Ku(t)==+Ku(e)}function Nv(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()}function M4(t,e){return Ov(Z(t,e==null?void 0:e.in),st((e==null?void 0:e.in)||t))}function E4(t,e){return Dv(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function T4(t){return Mv(t,st(t))}function P4(t,e){return Ev(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function N4(t,e){return Tv(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function j4(t){return Pv(t,st(t))}function I4(t,e){return Xu(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t),e)}function A4(t,e){return Nv(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function R4(t,e){return Z(t,e==null?void 0:e.in).getDay()===4}function L4(t,e){return uo(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function F4(t,e){return uo(t,rn(st((e==null?void 0:e.in)||t),1),e)}function B4(t,e){return Z(t,e==null?void 0:e.in).getDay()===2}function W4(t,e){return Z(t,e==null?void 0:e.in).getDay()===3}function z4(t,e,n){const r=+Z(t,n==null?void 0:n.in),[s,a]=[+Z(e.start,n==null?void 0:n.in),+Z(e.end,n==null?void 0:n.in)].sort((o,i)=>o-i);return r>=s&&r<=a}function Ml(t,e,n){return rn(t,-e,n)}function H4(t,e){return uo(de((e==null?void 0:e.in)||t,t),Ml(st((e==null?void 0:e.in)||t),1))}function Y4(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s+1,0,0),n.setHours(0,0,0,0),Z(n,e==null?void 0:e.in)}function jv(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Z(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setHours(0,0,0,0),s.setDate(s.getDate()+o),s}function V4(t,e){return jv(t,{...e,weekStartsOn:1})}function U4(t,e){const n=br(t,e),r=de((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=un(r,e);return s.setDate(s.getDate()-1),s}function X4(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(0,0,0,0),n}function G4(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}const K4=/(\w)\1*|''|'(''|[^'])+('|$)|./g,Q4=/^'([^]*?)'?$/,Z4=/''/g,J4=/[a-zA-Z]/;function q4(t,e){const n=Z(t);if(!Qn(n))throw new RangeError("Invalid time value");const r=e.match(K4);return r?r.map(a=>{if(a==="''")return"'";const o=a[0];if(o==="'")return $4(a);const i=Pn[o];if(i)return i(n,a);if(o.match(J4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return a}).join(""):""}function $4(t){const e=t.match(Q4);return e?e[1].replace(Z4,"'"):t}function eA({years:t,months:e,weeks:n,days:r,hours:s,minutes:a,seconds:o}){let i=0;t&&(i+=t*cl),e&&(i+=e*(cl/12)),n&&(i+=n*7),r&&(i+=r);let l=i*24*60*60;return s&&(l+=s*60*60),a&&(l+=a*60),o&&(l+=o),Math.trunc(l*1e3)}function tA(t){const e=t/Jr;return Math.trunc(e)}function nA(t){const e=t/Kn;return Math.trunc(e)}function rA(t){const e=t/Mu;return Math.trunc(e)}function sA(t){const e=t/Ow;return Math.trunc(e)}function aA(t){return Math.trunc(t*Kn)}function oA(t){return Math.trunc(t*Eu)}function iA(t){const e=t/Dw;return Math.trunc(e)}function lA(t){const e=t/Mw;return Math.trunc(e)}function vr(t,e,n){let r=e-Cl(t,n);return r<=0&&(r+=7),rn(t,r,n)}function cA(t,e){return vr(t,5,e)}function dA(t,e){return vr(t,1,e)}function uA(t,e){return vr(t,6,e)}function fA(t,e){return vr(t,0,e)}function hA(t,e){return vr(t,4,e)}function gA(t,e){return vr(t,2,e)}function mA(t,e){return vr(t,3,e)}function pA(t,e){const n=()=>de(e==null?void 0:e.in,NaN),r=(e==null?void 0:e.additionalDigits)??2,s=vA(t);let a;if(s.date){const c=xA(s.date,r);a=kA(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const o=+a;let i=0,l;if(s.time&&(i=_A(s.time),isNaN(i)))return n();if(s.timezone){if(l=SA(s.timezone),isNaN(l))return n()}else{const c=new Date(o+i),d=Z(0,e==null?void 0:e.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Z(o+i+l,e==null?void 0:e.in)}const El={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},bA=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,yA=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,wA=/^([+-])(\d{2})(?::?(\d{2}))?$/;function vA(t){const e={},n=t.split(El.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],El.timeZoneDelimiter.test(e.date)&&(e.date=t.split(El.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const s=El.timezone.exec(r);s?(e.time=r.replace(s[1],""),e.timezone=s[1]):e.time=r}return e}function xA(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const s=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?s:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function kA(t,e){if(e===null)return new Date(NaN);const n=t.match(bA);if(!n)return new Date(NaN);const r=!!n[4],s=ho(n[1]),a=ho(n[2])-1,o=ho(n[3]),i=ho(n[4]),l=ho(n[5])-1;if(r)return EA(e,i,l)?CA(e,i,l):new Date(NaN);{const c=new Date(0);return!DA(e,a,o)||!MA(e,s)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(s,o)),c)}}function ho(t){return t?parseInt(t):1}function _A(t){const e=t.match(yA);if(!e)return NaN;const n=Qu(e[1]),r=Qu(e[2]),s=Qu(e[3]);return TA(n,r,s)?n*Jr+r*Kn+s*1e3:NaN}function Qu(t){return t&&parseFloat(t.replace(",","."))||0}function SA(t){if(t==="Z")return 0;const e=t.match(wA);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return PA(r,s)?n*(r*Jr+s*Kn):NaN}function CA(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const s=r.getUTCDay()||7,a=(e-1)*7+n+1-s;return r.setUTCDate(r.getUTCDate()+a),r}const OA=[31,null,31,30,31,30,31,31,30,31,30,31];function Iv(t){return t%400===0||t%4===0&&t%100!==0}function DA(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(OA[e]||(Iv(t)?29:28))}function MA(t,e){return e>=1&&e<=(Iv(t)?366:365)}function EA(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function TA(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function PA(t,e){return e>=0&&e<=59}function NA(t,e){const n=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return Z(n?Date.UTC(+n[1],+n[2]-1,+n[3],+n[4]-(+n[9]||0)*(n[8]=="-"?-1:1),+n[5]-(+n[10]||0)*(n[8]=="-"?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3)):NaN,e==null?void 0:e.in)}function xr(t,e,n){let r=Cl(t,n)-e;return r<=0&&(r+=7),Ml(t,r,n)}function jA(t,e){return xr(t,5,e)}function IA(t,e){return xr(t,1,e)}function AA(t,e){return xr(t,6,e)}function RA(t,e){return xr(t,0,e)}function LA(t,e){return xr(t,4,e)}function FA(t,e){return xr(t,2,e)}function BA(t,e){return xr(t,3,e)}function WA(t){return Math.trunc(t*Dw)}function zA(t){const e=t/Ew;return Math.trunc(e)}function HA(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>12)return de((e==null?void 0:e.in)||t,NaN);const r=Z(t,e==null?void 0:e.in),s=r.getMinutes()/60,a=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,i=r.getHours()+s+a+o,l=(e==null?void 0:e.roundingMethod)??"round",d=wr(l)(i/n)*n;return r.setHours(d,0,0,0),r}function YA(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>30)return de(t,NaN);const r=Z(t,e==null?void 0:e.in),s=r.getSeconds()/60,a=r.getMilliseconds()/1e3/60,o=r.getMinutes()+s+a,i=(e==null?void 0:e.roundingMethod)??"round",c=wr(i)(o/n)*n;return r.setMinutes(c,0,0),r}function VA(t){const e=t/ul;return Math.trunc(e)}function UA(t){return t*Mu}function XA(t){const e=t/Eu;return Math.trunc(e)}function Zu(t,e,n){const r=Z(t,n==null?void 0:n.in),s=r.getFullYear(),a=r.getDate(),o=de((n==null?void 0:n.in)||t,0);o.setFullYear(s,e,15),o.setHours(0,0,0,0);const i=uv(o);return r.setMonth(e,Math.min(a,i)),r}function GA(t,e,n){let r=Z(t,n==null?void 0:n.in);return isNaN(+r)?de((n==null?void 0:n.in)||t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=Zu(r,e.month)),e.date!=null&&r.setDate(e.date),e.hours!=null&&r.setHours(e.hours),e.minutes!=null&&r.setMinutes(e.minutes),e.seconds!=null&&r.setSeconds(e.seconds),e.milliseconds!=null&&r.setMilliseconds(e.milliseconds),r)}function KA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setDate(e),r}function QA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setMonth(0),r.setDate(e),r}function ZA(t){const e={},n=Ot();for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);PN(e)}function JA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setHours(e),r}function qA(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setMilliseconds(e),r}function $A(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setMinutes(e),r}function e3(t,e,n){const r=Z(t,n==null?void 0:n.in),s=Math.trunc(r.getMonth()/3)+1,a=e-s;return Zu(r,r.getMonth()+a*3)}function t3(t,e,n){const r=Z(t,n==null?void 0:n.in);return r.setSeconds(e),r}function n3(t,e,n){var l,c,d,u;const r=Ot(),s=(n==null?void 0:n.firstWeekContainsDate)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(d=r.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,a=Dn(Z(t,n==null?void 0:n.in),kl(t,n),n),o=de((n==null?void 0:n.in)||t,0);o.setFullYear(e,0,s),o.setHours(0,0,0,0);const i=kl(o,n);return i.setDate(i.getDate()+a),i}function r3(t,e,n){const r=Z(t,n==null?void 0:n.in);return isNaN(+r)?de((n==null?void 0:n.in)||t,NaN):(r.setFullYear(e),r)}function s3(t,e){const n=Z(t,e==null?void 0:e.in),r=n.getFullYear(),s=Math.floor(r/10)*10;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}function a3(t){return Gs(Date.now(),t)}function o3(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=de(t==null?void 0:t.in,0);return a.setFullYear(n,r,s+1),a.setHours(0,0,0,0),a}function i3(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s-1),a.setHours(0,0,0,0),a}function Av(t,e,n){return co(t,-e,n)}function l3(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Av(t,s+r*12,n),u=Ml(d,o+a*7,n),g=l+i*60,p=(c+g*60)*1e3;return de((n==null?void 0:n.in)||t,+u-p)}function c3(t,e,n){return Aw(t,-e,n)}function d3(t,e,n){return Rw(t,-e,n)}function u3(t,e,n){return fl(t,-e,n)}function f3(t,e,n){return Pu(t,-e,n)}function h3(t,e,n){return Nu(t,-e,n)}function g3(t,e,n){return Ww(t,-e,n)}function m3(t,e,n){return hl(t,-e,n)}function p3(t,e,n){return zw(t,-e,n)}function b3(t){return Math.trunc(t*_w)}function y3(t){return Math.trunc(t*cl)}function w3(t){return Math.trunc(t*Mw)}function v3(t){return Math.trunc(t*Ew)}const es=sh(Object.freeze(Object.defineProperty({__proto__:null,add:Us,addBusinessDays:Aw,addDays:rn,addHours:Rw,addISOWeekYears:Bw,addMilliseconds:fl,addMinutes:Pu,addMonths:co,addQuarters:Nu,addSeconds:Ww,addWeeks:hl,addYears:zw,areIntervalsOverlapping:NN,clamp:jN,closestIndexTo:Vw,closestTo:IN,compareAsc:Mn,compareDesc:AN,constructFrom:de,constructNow:st,daysToWeeks:RN,differenceInBusinessDays:LN,differenceInCalendarDays:Dn,differenceInCalendarISOWeekYears:Xw,differenceInCalendarISOWeeks:FN,differenceInCalendarMonths:gl,differenceInCalendarQuarters:ml,differenceInCalendarWeeks:pl,differenceInCalendarYears:fo,differenceInDays:Iu,differenceInHours:bl,differenceInISOWeekYears:BN,differenceInMilliseconds:Au,differenceInMinutes:yl,differenceInMonths:wl,differenceInQuarters:WN,differenceInSeconds:Ks,differenceInWeeks:zN,differenceInYears:Zw,eachDayOfInterval:Jw,eachHourOfInterval:HN,eachMinuteOfInterval:YN,eachMonthOfInterval:VN,eachQuarterOfInterval:UN,eachWeekOfInterval:XN,eachWeekendOfInterval:Fu,eachWeekendOfMonth:GN,eachWeekendOfYear:KN,eachYearOfInterval:QN,endOfDay:Ru,endOfDecade:ZN,endOfHour:JN,endOfISOWeek:qN,endOfISOWeekYear:$N,endOfMinute:ej,endOfMonth:Lu,endOfQuarter:tj,endOfSecond:nj,endOfToday:rj,endOfTomorrow:sj,endOfWeek:$w,endOfYear:qw,endOfYesterday:aj,format:Sl,formatDate:Sl,formatDistance:lv,formatDistanceStrict:cv,formatDistanceToNow:Xj,formatDistanceToNowStrict:Gj,formatDuration:Qj,formatISO:Zj,formatISO9075:Jj,formatISODuration:qj,formatRFC3339:$j,formatRFC7231:nI,formatRelative:rI,formatters:Hu,fromUnixTime:sI,getDate:dv,getDay:Cl,getDayOfYear:tv,getDaysInMonth:uv,getDaysInYear:aI,getDecade:oI,getDefaultOptions:hv,getHours:iI,getISODay:gv,getISOWeek:Wu,getISOWeekYear:br,getISOWeeksInYear:lI,getMilliseconds:cI,getMinutes:dI,getMonth:uI,getOverlappingDaysInIntervals:fI,getQuarter:ju,getSeconds:hI,getTime:gI,getUnixTime:mI,getWeek:zu,getWeekOfMonth:pI,getWeekYear:xl,getWeeksInMonth:bI,getYear:yI,hoursToMilliseconds:wI,hoursToMinutes:vI,hoursToSeconds:xI,interval:kI,intervalToDuration:_I,intlFormat:SI,intlFormatDistance:OI,isAfter:DI,isBefore:MI,isDate:Uw,isEqual:EI,isExists:TI,isFirstDayOfMonth:PI,isFriday:NI,isFuture:jI,isLastDayOfMonth:Qw,isLeapYear:fv,isMatch:S4,isMonday:C4,isPast:O4,isSameDay:uo,isSameHour:Ov,isSameISOWeek:Dv,isSameISOWeekYear:D4,isSameMinute:Mv,isSameMonth:Ev,isSameQuarter:Tv,isSameSecond:Pv,isSameWeek:Xu,isSameYear:Nv,isSaturday:jw,isSunday:Iw,isThisHour:M4,isThisISOWeek:E4,isThisMinute:T4,isThisMonth:P4,isThisQuarter:N4,isThisSecond:j4,isThisWeek:I4,isThisYear:A4,isThursday:R4,isToday:L4,isTomorrow:F4,isTuesday:B4,isValid:Qn,isWednesday:W4,isWeekend:Xs,isWithinInterval:z4,isYesterday:H4,lastDayOfDecade:Y4,lastDayOfISOWeek:V4,lastDayOfISOWeekYear:U4,lastDayOfMonth:mv,lastDayOfQuarter:X4,lastDayOfWeek:jv,lastDayOfYear:G4,lightFormat:q4,lightFormatters:Pn,longFormatters:_l,max:Hw,milliseconds:eA,millisecondsToHours:tA,millisecondsToMinutes:nA,millisecondsToSeconds:rA,min:Yw,minutesToHours:sA,minutesToMilliseconds:aA,minutesToSeconds:oA,monthsToQuarters:iA,monthsToYears:lA,nextDay:vr,nextFriday:cA,nextMonday:dA,nextSaturday:uA,nextSunday:fA,nextThursday:hA,nextTuesday:gA,nextWednesday:mA,parse:Cv,parseISO:pA,parseJSON:NA,parsers:Sv,previousDay:xr,previousFriday:jA,previousMonday:IA,previousSaturday:AA,previousSunday:RA,previousThursday:LA,previousTuesday:FA,previousWednesday:BA,quartersToMonths:WA,quartersToYears:zA,roundToNearestHours:HA,roundToNearestMinutes:YA,secondsToHours:VA,secondsToMilliseconds:UA,secondsToMinutes:XA,set:GA,setDate:KA,setDay:Dl,setDayOfYear:QA,setDefaultOptions:ZA,setHours:JA,setISODay:_v,setISOWeek:kv,setISOWeekYear:Fw,setMilliseconds:qA,setMinutes:$A,setMonth:Zu,setQuarter:e3,setSeconds:t3,setWeek:xv,setWeekYear:n3,setYear:r3,startOfDay:Gs,startOfDecade:s3,startOfHour:Uu,startOfISOWeek:un,startOfISOWeekYear:yr,startOfMinute:Gu,startOfMonth:vl,startOfQuarter:qr,startOfSecond:Ku,startOfToday:a3,startOfTomorrow:o3,startOfWeek:bt,startOfWeekYear:kl,startOfYear:Bu,startOfYesterday:i3,sub:l3,subBusinessDays:c3,subDays:Ml,subHours:d3,subISOWeekYears:Kw,subMilliseconds:u3,subMinutes:f3,subMonths:Av,subQuarters:h3,subSeconds:g3,subWeeks:m3,subYears:p3,toDate:Z,transpose:pv,weeksToDays:b3,yearsToDays:y3,yearsToMonths:w3,yearsToQuarters:v3},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.rangeShape=Gn.default=void 0;var ts=x3(_),be=Rv(Xn),Ju=Rv(sr),Dt=es;function Rv(t){return t&&t.__esModule?t:{default:t}}function Lv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Lv=function(r){return r?n:e})(t)}function x3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Lv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function qu(){return qu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qu.apply(this,arguments)}function go(t,e,n){return e=k3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k3(t){var e=_3(t,"string");return typeof e=="symbol"?e:String(e)}function _3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class $u extends ts.Component{constructor(e,n){super(e,n),go(this,"handleKeyEvent",r=>{const{day:s,onMouseDown:a,onMouseUp:o}=this.props;[13,32].includes(r.keyCode)&&(r.type==="keydown"?a(s):o(s))}),go(this,"handleMouseEvent",r=>{const{day:s,disabled:a,onPreviewChange:o,onMouseEnter:i,onMouseDown:l,onMouseUp:c}=this.props,d={};if(a){o();return}switch(r.type){case"mouseenter":i(s),o(s),d.hover=!0;break;case"blur":case"mouseleave":d.hover=!1;break;case"mousedown":d.active=!0,l(s);break;case"mouseup":r.stopPropagation(),d.active=!1,c(s);break;case"focus":o(s);break}Object.keys(d).length&&this.setState(d)}),go(this,"getClassNames",()=>{const{isPassive:r,isToday:s,isWeekend:a,isStartOfWeek:o,isEndOfWeek:i,isStartOfMonth:l,isEndOfMonth:c,disabled:d,styles:u}=this.props;return(0,Ju.default)(u.day,{[u.dayPassive]:r,[u.dayDisabled]:d,[u.dayToday]:s,[u.dayWeekend]:a,[u.dayStartOfWeek]:o,[u.dayEndOfWeek]:i,[u.dayStartOfMonth]:l,[u.dayEndOfMonth]:c,[u.dayHovered]:this.state.hover,[u.dayActive]:this.state.active})}),go(this,"renderPreviewPlaceholder",()=>{const{preview:r,day:s,styles:a}=this.props;if(!r)return null;const o=r.startDate?(0,Dt.endOfDay)(r.startDate):null,i=r.endDate?(0,Dt.startOfDay)(r.endDate):null,l=(!o||(0,Dt.isAfter)(s,o))&&(!i||(0,Dt.isBefore)(s,i)),c=!l&&(0,Dt.isSameDay)(s,o),d=!l&&(0,Dt.isSameDay)(s,i);return ts.default.createElement("span",{className:(0,Ju.default)({[a.dayStartPreview]:c,[a.dayInPreview]:l,[a.dayEndPreview]:d}),style:{color:r.color}})}),go(this,"renderSelectionPlaceholders",()=>{const{styles:r,ranges:s,day:a}=this.props;return this.props.displayMode==="date"?(0,Dt.isSameDay)(this.props.day,this.props.date)?ts.default.createElement("span",{className:r.selected,style:{color:this.props.color}}):null:s.reduce((i,l)=>{let c=l.startDate,d=l.endDate;c&&d&&(0,Dt.isBefore)(d,c)&&([c,d]=[d,c]),c=c?(0,Dt.endOfDay)(c):null,d=d?(0,Dt.startOfDay)(d):null;const u=(!c||(0,Dt.isAfter)(a,c))&&(!d||(0,Dt.isBefore)(a,d)),g=!u&&(0,Dt.isSameDay)(a,c),h=!u&&(0,Dt.isSameDay)(a,d);return u||g||h?[...i,{isStartEdge:g,isEndEdge:h,isInRange:u,...l}]:i},[]).map((i,l)=>ts.default.createElement("span",{key:l,className:(0,Ju.default)({[r.startEdge]:i.isStartEdge,[r.endEdge]:i.isEndEdge,[r.inRange]:i.isInRange}),style:{color:i.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:e}=this.props;return ts.default.createElement("button",qu({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),ts.default.createElement("span",{className:this.props.styles.dayNumber},(e==null?void 0:e(this.props.day))||ts.default.createElement("span",null,(0,Dt.format)(this.props.day,this.props.dayDisplayFormat))))}}$u.defaultProps={};const S3=Gn.rangeShape=be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string,key:be.default.string,autoFocus:be.default.bool,disabled:be.default.bool,showDateDisplay:be.default.bool});$u.propTypes={day:be.default.object.isRequired,dayDisplayFormat:be.default.string,date:be.default.object,ranges:be.default.arrayOf(S3),preview:be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string}),onPreviewChange:be.default.func,previewColor:be.default.string,disabled:be.default.bool,isPassive:be.default.bool,isToday:be.default.bool,isWeekend:be.default.bool,isStartOfWeek:be.default.bool,isEndOfWeek:be.default.bool,isStartOfMonth:be.default.bool,isEndOfMonth:be.default.bool,color:be.default.string,displayMode:be.default.oneOf(["dateRange","date"]),styles:be.default.object,onMouseDown:be.default.func,onMouseUp:be.default.func,onMouseEnter:be.default.func,dayContentRenderer:be.default.func},Gn.default=$u;var Tl={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.calcFocusDate=D3,Jn.findNextRangeIndex=M3,Jn.generateStyles=T3,Jn.getMonthDisplayRange=E3;var C3=O3(sr),qn=es;function O3(t){return t&&t.__esModule?t:{default:t}}function D3(t,e){const{shownDate:n,date:r,months:s,ranges:a,focusedRange:o,displayMode:i}=e;let l;if(i==="dateRange"){const d=a[o[0]]||{};l={start:d.startDate,end:d.endDate}}else l={start:r,end:r};l.start=(0,qn.startOfMonth)(l.start||new Date),l.end=(0,qn.endOfMonth)(l.end||l.start);const c=l.start||l.end||n||new Date;return t?(0,qn.differenceInCalendarMonths)(l.start,l.end)>s?t:c:n||c}function M3(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const n=t.findIndex((r,s)=>s>e&&r.autoFocus!==!1&&!r.disabled);return n!==-1?n:t.findIndex(r=>r.autoFocus!==!1&&!r.disabled)}function E3(t,e,n){const r=(0,qn.startOfMonth)(t,e),s=(0,qn.endOfMonth)(t,e),a=(0,qn.startOfWeek)(r,e);let o=(0,qn.endOfWeek)(s,e);return n&&(0,qn.differenceInCalendarDays)(o,a)<=34&&(o=(0,qn.addDays)(o,7)),{start:a,end:o,startDateOfMonth:r,endDateOfMonth:s}}function T3(t){return t.length?t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(s=>{n[s]=(0,C3.default)(n[s],r[s])}),n),{}):{}}Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.default=void 0;var ns=Wv(_),Ae=N3(Xn),Fv=Wv(Gn),at=es,P3=Jn;function N3(t){return t&&t.__esModule?t:{default:t}}function Bv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Bv=function(r){return r?n:e})(t)}function Wv(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Bv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function ef(){return ef=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ef.apply(this,arguments)}function j3(t,e,n){const r=new Date;return ns.default.createElement("div",{className:t.weekDays},(0,at.eachDayOfInterval)({start:(0,at.startOfWeek)(r,e),end:(0,at.endOfWeek)(r,e)}).map((s,a)=>ns.default.createElement("span",{className:t.weekDay,key:a},(0,at.format)(s,n,e))))}class tf extends ns.PureComponent{render(){const e=new Date,{displayMode:n,focusedRange:r,drag:s,styles:a,disabledDates:o,disabledDay:i}=this.props,l=this.props.minDate&&(0,at.startOfDay)(this.props.minDate),c=this.props.maxDate&&(0,at.endOfDay)(this.props.maxDate),d=(0,P3.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let u=this.props.ranges;if(n==="dateRange"&&s.status){let{startDate:h,endDate:p}=s.range;u=u.map((m,b)=>b!==r[0]?m:{...m,startDate:h,endDate:p})}const g=this.props.showPreview&&!s.disablePreview;return ns.default.createElement("div",{className:a.month,style:this.props.style},this.props.showMonthName?ns.default.createElement("div",{className:a.monthName},(0,at.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&j3(a,this.props.dateOptions,this.props.weekdayDisplayFormat),ns.default.createElement("div",{className:a.days,onMouseLeave:this.props.onMouseLeave},(0,at.eachDayOfInterval)({start:d.start,end:d.end}).map((h,p)=>{const m=(0,at.isSameDay)(h,d.startDateOfMonth),b=(0,at.isSameDay)(h,d.endDateOfMonth),y=l&&(0,at.isBefore)(h,l)||c&&(0,at.isAfter)(h,c),v=o.some(w=>(0,at.isSameDay)(w,h)),k=i(h);return ns.default.createElement(Fv.default,ef({},this.props,{ranges:u,day:h,preview:g?this.props.preview:null,isWeekend:(0,at.isWeekend)(h,this.props.dateOptions),isToday:(0,at.isSameDay)(h,e),isStartOfWeek:(0,at.isSameDay)(h,(0,at.startOfWeek)(h,this.props.dateOptions)),isEndOfWeek:(0,at.isSameDay)(h,(0,at.endOfWeek)(h,this.props.dateOptions)),isStartOfMonth:m,isEndOfMonth:b,key:p,disabled:y||v||k,isPassive:!(0,at.isWithinInterval)(h,{start:d.startDateOfMonth,end:d.endDateOfMonth}),styles:a,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:s.range,drag:s.status}))})))}}tf.defaultProps={},tf.propTypes={style:Ae.default.object,styles:Ae.default.object,month:Ae.default.object,drag:Ae.default.object,dateOptions:Ae.default.object,disabledDates:Ae.default.array,disabledDay:Ae.default.func,preview:Ae.default.shape({startDate:Ae.default.object,endDate:Ae.default.object}),showPreview:Ae.default.bool,displayMode:Ae.default.oneOf(["dateRange","date"]),minDate:Ae.default.object,maxDate:Ae.default.object,ranges:Ae.default.arrayOf(Fv.rangeShape),focusedRange:Ae.default.arrayOf(Ae.default.number),onDragSelectionStart:Ae.default.func,onDragSelectionEnd:Ae.default.func,onDragSelectionMove:Ae.default.func,onMouseLeave:Ae.default.func,monthDisplayFormat:Ae.default.string,weekdayDisplayFormat:Ae.default.string,dayDisplayFormat:Ae.default.string,showWeekDays:Ae.default.bool,showMonthName:Ae.default.bool,fixedHeight:Ae.default.bool},Tl.default=tf;var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=void 0;var Nl=A3(_),In=zv(Xn),I3=zv(sr),mo=es;function zv(t){return t&&t.__esModule?t:{default:t}}function Hv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Hv=function(r){return r?n:e})(t)}function A3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Hv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function nf(t,e,n){return e=R3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function R3(t){var e=L3(t,"string");return typeof e=="symbol"?e:String(e)}function L3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class rf extends Nl.PureComponent{constructor(e,n){super(e,n),nf(this,"onKeyDown",r=>{const{value:s}=this.state;r.key==="Enter"&&this.update(s)}),nf(this,"onChange",r=>{this.setState({value:r.target.value,changed:!0,invalid:!1})}),nf(this,"onBlur",()=>{const{value:r}=this.state;this.update(r)}),this.state={invalid:!1,changed:!1,value:this.formatDate(e)}}componentDidUpdate(e){const{value:n}=e;(0,mo.isEqual)(n,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(e){let{value:n,dateDisplayFormat:r,dateOptions:s}=e;return n&&(0,mo.isValid)(n)?(0,mo.format)(n,r,s):""}update(e){const{invalid:n,changed:r}=this.state;if(n||!r||!e)return;const{onChange:s,dateDisplayFormat:a,dateOptions:o}=this.props,i=(0,mo.parse)(e,a,new Date,o);(0,mo.isValid)(i)?this.setState({changed:!1},()=>s(i)):this.setState({invalid:!0})}render(){const{className:e,readOnly:n,placeholder:r,ariaLabel:s,disabled:a,onFocus:o}=this.props,{value:i,invalid:l}=this.state;return Nl.default.createElement("span",{className:(0,I3.default)("rdrDateInput",e)},Nl.default.createElement("input",{readOnly:n,disabled:a,value:i,placeholder:r,"aria-label":s,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:o}),l&&Nl.default.createElement("span",{className:"rdrWarning"},"⚠"))}}rf.propTypes={value:In.default.object,placeholder:In.default.string,disabled:In.default.bool,readOnly:In.default.bool,dateOptions:In.default.object,dateDisplayFormat:In.default.string,ariaLabel:In.default.string,className:In.default.string,onFocus:In.default.func.isRequired,onChange:In.default.func.isRequired},rf.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},Pl.default=rf;var Yv={};(function(t){(function(e,n){n(t,_,f)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:ok,function(e,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function s(L){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},s(L)}function a(L,R){if(!(L instanceof R))throw new TypeError("Cannot call a class as a function")}function o(L,R){for(var A=0;A<R.length;A++){var O=R[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(L,v(O.key),O)}}function i(L,R,A){return R&&o(L.prototype,R),A&&o(L,A),Object.defineProperty(L,"prototype",{writable:!1}),L}function l(L,R,A){return R=g(R),c(L,u()?Reflect.construct(R,A||[],g(L).constructor):R.apply(L,A))}function c(L,R){if(R&&(s(R)=="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(L)}function d(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function u(){try{var L=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!L})()}function g(L){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},g(L)}function h(L,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(R&&R.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),R&&p(L,R)}function p(L,R){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,O){return A.__proto__=O,A},p(L,R)}function m(L,R){var A=Object.keys(L);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(L);R&&(O=O.filter(function(W){return Object.getOwnPropertyDescriptor(L,W).enumerable})),A.push.apply(A,O)}return A}function b(L){for(var R=1;R<arguments.length;R++){var A=arguments[R]!=null?arguments[R]:{};R%2?m(Object(A),!0).forEach(function(O){y(L,O,A[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(A)):m(Object(A)).forEach(function(O){Object.defineProperty(L,O,Object.getOwnPropertyDescriptor(A,O))})}return L}function y(L,R,A){return(R=v(R))in L?Object.defineProperty(L,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):L[R]=A,L}function v(L){var R=k(L,"string");return s(R)=="symbol"?R:R+""}function k(L,R){if(s(L)!="object"||!L)return L;var A=L[Symbol.toPrimitive];if(A!==void 0){var O=A.call(L,R);if(s(O)!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(L)}var w={x:"clientWidth",y:"clientHeight"},x={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},P={x:"offsetWidth",y:"offsetHeight"},C={x:"offsetLeft",y:"offsetTop"},N={x:"overflowX",y:"overflowY"},T={x:"scrollWidth",y:"scrollHeight"},Y={x:"scrollLeft",y:"scrollTop"},F={x:"width",y:"height"},E=function(){},D=function(){if(typeof window>"u")return!1;var L=!1;try{document.createElement("div").addEventListener("test",E,{get passive(){return L=!0,!1}})}catch{}return L}()?{passive:!0}:!1,j="ReactList failed to reach a stable state.",M=40,H=function(R,A){for(var O in A)if(R[O]!==A[O])return!1;return!0},X=function(R){for(var A=R.props.axis,O=R.getEl(),W=N[A];O=O.parentElement;)switch(window.getComputedStyle(O)[W]){case"auto":case"scroll":case"overlay":return O}return window},ee=function(R){var A=R.props.axis,O=R.scrollParent;return O===window?window[S[A]]:O[w[A]]},I=function(R,A){var O=R.length,W=R.minSize,J=R.type,K=A.from,q=A.size,te=A.itemsPerRow;q=Math.max(q,W);var ie=q%te;return ie&&(q+=te-ie),q>O&&(q=O),K=J==="simple"||!K?0:Math.max(Math.min(K,O-q),0),(ie=K%te)&&(K-=ie,q+=ie),K===A.from&&q===A.size?A:b(b({},A),{},{from:K,size:q})},V=e.default=function(L){function R(A){var O;return a(this,R),O=l(this,R,[A]),O.state=I(A,{itemsPerRow:1,from:A.initialIndex,size:0}),O.cache={},O.cachedScrollPosition=null,O.prevPrevState={},O.unstable=!1,O.updateCounter=0,O}return h(R,L),i(R,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(O){var W=this;if(this.props.axis!==O.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>M)return this.unstable=!0,console.error(j);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){W.updateCounter=0,delete W.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(O,W){if(H(this.state,O))return W();this.setState(O,W)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,D),this.scrollParent.removeEventListener("mousewheel",E,D)}},{key:"getOffset",value:function(O){var W=this.props.axis,J=O[x[W]]||0,K=C[W];do J+=O[K]||0;while(O=O.offsetParent);return J}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var O=this.scrollParent,W=this.props.axis,J=Y[W],K=O===window?document.body[J]||document.documentElement[J]:O[J],q=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),te=Math.max(0,Math.min(K,q)),ie=this.getEl();return this.cachedScrollPosition=this.getOffset(O)+te-this.getOffset(ie),this.cachedScrollPosition}},{key:"setScroll",value:function(O){var W=this.scrollParent,J=this.props.axis;if(O+=this.getOffset(this.getEl()),W===window)return window.scrollTo(0,O);O-=this.getOffset(this.scrollParent),W[Y[J]]=O}},{key:"getScrollSize",value:function(){var O=this.scrollParent,W=document,J=W.body,K=W.documentElement,q=T[this.props.axis];return O===window?Math.max(J[q],K[q]):O[q]}},{key:"hasDeterminateSize",value:function(){var O=this.props,W=O.itemSizeGetter,J=O.type;return J==="uniform"||W}},{key:"getStartAndEnd",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,W=this.getScrollPosition(),J=Math.max(0,W-O),K=W+this.props.scrollParentViewportSizeGetter(this)+O;return this.hasDeterminateSize()&&(K=Math.min(K,this.getSpaceBefore(this.props.length))),{start:J,end:K}}},{key:"getItemSizeAndItemsPerRow",value:function(){var O=this.props,W=O.axis,J=O.useStaticSize,K=this.state,q=K.itemSize,te=K.itemsPerRow;if(J&&q&&te)return{itemSize:q,itemsPerRow:te};var ie=this.items.children;if(!ie.length)return{};var U=ie[0],le=U[P[W]],z=Math.abs(le-q);if((isNaN(z)||z>=1)&&(q=le),!q)return{};var ne=C[W],ae=U[ne];te=1;for(var se=ie[te];se&&se[ne]===ae;se=ie[te])++te;return{itemSize:q,itemsPerRow:te}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(O){return this.clearSizeCache(),this.updateFrame(O)}},{key:"updateFrame",value:function(O){switch(this.updateScrollParent(),typeof O!="function"&&(O=E),this.props.type){case"simple":return this.updateSimpleFrame(O);case"variable":return this.updateVariableFrame(O);case"uniform":return this.updateUniformFrame(O)}}},{key:"updateScrollParent",value:function(){var O=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),O!==this.scrollParent&&(O&&(O.removeEventListener("scroll",this.updateFrameAndClearCache),O.removeEventListener("mousewheel",E)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,D),this.scrollParent.addEventListener("mousewheel",E,D))}},{key:"updateSimpleFrame",value:function(O){var W=this.getStartAndEnd(),J=W.end,K=this.items.children,q=0;if(K.length){var te=this.props.axis,ie=K[0],U=K[K.length-1];q=this.getOffset(U)+U[P[te]]-this.getOffset(ie)}if(q>J)return O();var le=this.props,z=le.pageSize,ne=le.length,ae=Math.min(this.state.size+z,ne);this.maybeSetState({size:ae},O)}},{key:"updateVariableFrame",value:function(O){this.props.itemSizeGetter||this.cacheSizes();for(var W=this.getStartAndEnd(),J=W.start,K=W.end,q=this.props,te=q.length,ie=q.pageSize,U=0,le=0,z=0,ne=te-1;le<ne;){var ae=this.getSizeOfItem(le);if(ae==null||U+ae>J)break;U+=ae,++le}for(var se=te-le;z<se&&U<K;){var oe=this.getSizeOfItem(le+z);if(oe==null){z=Math.min(z+ie,se);break}U+=oe,++z}this.maybeSetState(I(this.props,{from:le,itemsPerRow:1,size:z}),O)}},{key:"updateUniformFrame",value:function(O){var W=this.getItemSizeAndItemsPerRow(),J=W.itemSize,K=W.itemsPerRow;if(!J||!K)return O();var q=this.getStartAndEnd(),te=q.start,ie=q.end,U=I(this.props,{from:Math.floor(te/J)*K,size:(Math.ceil((ie-te)/J)+1)*K,itemsPerRow:K}),le=U.from,z=U.size;return this.maybeSetState({itemsPerRow:K,from:le,itemSize:J,size:z},O)}},{key:"getSpaceBefore",value:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(W[O]!=null)return W[O];var J=this.state,K=J.itemSize,q=J.itemsPerRow;if(K)return W[O]=Math.floor(O/q)*K;for(var te=O;te>0&&W[--te]==null;);for(var ie=W[te]||0,U=te;U<O;++U){W[U]=ie;var le=this.getSizeOfItem(U);if(le==null)break;ie+=le}return W[O]=ie}},{key:"cacheSizes",value:function(){for(var O=this.cache,W=this.state.from,J=this.items.children,K=P[this.props.axis],q=0,te=J.length;q<te;++q)O[W+q]=J[q][K]}},{key:"getSizeOfItem",value:function(O){var W=this.cache,J=this.items,K=this.props,q=K.axis,te=K.itemSizeGetter,ie=K.itemSizeEstimator,U=K.type,le=this.state,z=le.from,ne=le.itemSize,ae=le.size;if(ne)return ne;if(te)return te(O);if(O in W)return W[O];if(U==="simple"&&O>=z&&O<z+ae&&J){var se=J.children[O-z];if(se)return se[P[q]]}if(ie)return ie(O,W)}},{key:"scrollTo",value:function(O){O!=null&&this.setScroll(this.getSpaceBefore(O))}},{key:"scrollAround",value:function(O){var W=this.getScrollPosition(),J=this.getSpaceBefore(O),K=J-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(O),q=Math.min(K,J),te=Math.max(K,J);if(W<=q)return this.setScroll(q);if(W>te)return this.setScroll(te)}},{key:"getVisibleRange",value:function(){for(var O=this.state,W=O.from,J=O.size,K=this.getStartAndEnd(0),q=K.start,te=K.end,ie={},U,le,z=W;z<W+J;++z){var ne=this.getSpaceBefore(z,ie),ae=ne+this.getSizeOfItem(z);U==null&&ae>q&&(U=z),U!=null&&ne<te&&(le=z)}return[U,le]}},{key:"renderItems",value:function(){for(var O=this,W=this.props,J=W.itemRenderer,K=W.itemsRenderer,q=this.state,te=q.from,ie=q.size,U=[],le=0;le<ie;++le)U.push(J(te+le,le));return K(U,function(z){return O.items=z})}},{key:"render",value:function(){var O=this,W=this.props,J=W.axis,K=W.length,q=W.type,te=W.useTranslate3d,ie=this.state,U=ie.from,le=ie.itemsPerRow,z=this.renderItems();if(q==="simple")return z;var ne={position:"relative"},ae={},se=Math.ceil(K/le)*le,oe=this.getSpaceBefore(se,ae);oe&&(ne[F[J]]=oe,J==="x"&&(ne.overflowX="hidden"));var ye=this.getSpaceBefore(U,ae),me=J==="x"?ye:0,Ce=J==="y"?ye:0,Ge=te?"translate3d(".concat(me,"px, ").concat(Ce,"px, 0)"):"translate(".concat(me,"px, ").concat(Ce,"px)"),et={msTransform:Ge,WebkitTransform:Ge,transform:Ge};return(0,r.jsx)("div",{style:ne,ref:function(Gt){return O.el=Gt},children:(0,r.jsx)("div",{style:et,children:z})})}}],[{key:"getDerivedStateFromProps",value:function(O,W){var J=I(O,W);return J===W?null:J}}])}(n.Component);y(V,"displayName","ReactList"),y(V,"defaultProps",{axis:"y",itemRenderer:function(R,A){return(0,r.jsx)("div",{children:R},A)},itemsRenderer:function(R,A){return(0,r.jsx)("div",{ref:A,children:R})},length:0,minSize:1,pageSize:10,scrollParentGetter:X,scrollParentViewportSizeGetter:ee,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})})})(Yv);function F3(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),s=n.length;if(r.length!==s)return!1;for(var a=0;a<s;a++){var o=n[a];if(t[o]!==e[o]||!Object.prototype.hasOwnProperty.call(e,o))return!1}return!0}function B3(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=t.length;if(e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const W3=sh(Object.freeze(Object.defineProperty({__proto__:null,shallowEqualArrays:B3,shallowEqualObjects:F3},Symbol.toStringTag,{value:"Module"})));var sf={},af={};af.formatDistance=void 0;const z3={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},H3=(t,e,n)=>{let r;const s=z3[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};af.formatDistance=H3;var of={},Vv={};Vv.buildFormatLongFn=Y3;function Y3(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}of.formatLong=void 0;var lf=Vv;const V3={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},U3={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},X3={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};of.formatLong={date:(0,lf.buildFormatLongFn)({formats:V3,defaultWidth:"full"}),time:(0,lf.buildFormatLongFn)({formats:U3,defaultWidth:"full"}),dateTime:(0,lf.buildFormatLongFn)({formats:X3,defaultWidth:"full"})};var cf={};cf.formatRelative=void 0;const G3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},K3=(t,e,n,r)=>G3[t];cf.formatRelative=K3;var df={},Uv={};Uv.buildLocalizeFn=Q3;function Q3(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}df.localize=void 0;var po=Uv;const Z3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},J3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},q3={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},$3={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eR={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tR={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nR=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"};df.localize={ordinalNumber:nR,era:(0,po.buildLocalizeFn)({values:Z3,defaultWidth:"wide"}),quarter:(0,po.buildLocalizeFn)({values:J3,defaultWidth:"wide",argumentCallback:t=>t-1}),month:(0,po.buildLocalizeFn)({values:q3,defaultWidth:"wide"}),day:(0,po.buildLocalizeFn)({values:$3,defaultWidth:"wide"}),dayPeriod:(0,po.buildLocalizeFn)({values:eR,defaultWidth:"wide",formattingValues:tR,defaultFormattingWidth:"wide"})};var uf={},Xv={};Xv.buildMatchFn=rR;function rR(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?aR(i,u=>u.test(o)):sR(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function sR(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function aR(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}var Gv={};Gv.buildMatchPatternFn=oR;function oR(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}uf.match=void 0;var bo=Xv,iR=Gv;const lR=/^(\d+)(th|st|nd|rd)?/i,cR=/\d+/i,dR={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uR={any:[/^b/i,/^(a|c)/i]},fR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hR={any:[/1/i,/2/i,/3/i,/4/i]},gR={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},mR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},pR={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},bR={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},yR={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},wR={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};uf.match={ordinalNumber:(0,iR.buildMatchPatternFn)({matchPattern:lR,parsePattern:cR,valueCallback:t=>parseInt(t,10)}),era:(0,bo.buildMatchFn)({matchPatterns:dR,defaultMatchWidth:"wide",parsePatterns:uR,defaultParseWidth:"any"}),quarter:(0,bo.buildMatchFn)({matchPatterns:fR,defaultMatchWidth:"wide",parsePatterns:hR,defaultParseWidth:"any",valueCallback:t=>t+1}),month:(0,bo.buildMatchFn)({matchPatterns:gR,defaultMatchWidth:"wide",parsePatterns:mR,defaultParseWidth:"any"}),day:(0,bo.buildMatchFn)({matchPatterns:pR,defaultMatchWidth:"wide",parsePatterns:bR,defaultParseWidth:"any"}),dayPeriod:(0,bo.buildMatchFn)({matchPatterns:yR,defaultMatchWidth:"any",parsePatterns:wR,defaultParseWidth:"any"})},sf.enUS=void 0;var vR=af,xR=of,kR=cf,_R=df,SR=uf;sf.enUS={code:"en-US",formatDistance:vR.formatDistance,formatLong:xR.formatLong,formatRelative:kR.formatRelative,localize:_R.localize,match:SR.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};var rs={};Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=void 0,rs.default={dateRangeWrapper:"rdrDateRangeWrapper",calendarWrapper:"rdrCalendarWrapper",dateDisplay:"rdrDateDisplay",dateDisplayItem:"rdrDateDisplayItem",dateDisplayItemActive:"rdrDateDisplayItemActive",monthAndYearWrapper:"rdrMonthAndYearWrapper",monthAndYearPickers:"rdrMonthAndYearPickers",nextPrevButton:"rdrNextPrevButton",month:"rdrMonth",weekDays:"rdrWeekDays",weekDay:"rdrWeekDay",days:"rdrDays",day:"rdrDay",dayNumber:"rdrDayNumber",dayPassive:"rdrDayPassive",dayToday:"rdrDayToday",dayStartOfWeek:"rdrDayStartOfWeek",dayEndOfWeek:"rdrDayEndOfWeek",daySelected:"rdrDaySelected",dayDisabled:"rdrDayDisabled",dayStartOfMonth:"rdrDayStartOfMonth",dayEndOfMonth:"rdrDayEndOfMonth",dayWeekend:"rdrDayWeekend",dayStartPreview:"rdrDayStartPreview",dayInPreview:"rdrDayInPreview",dayEndPreview:"rdrDayEndPreview",dayHovered:"rdrDayHovered",dayActive:"rdrDayActive",inRange:"rdrInRange",endEdge:"rdrEndEdge",startEdge:"rdrStartEdge",prevButton:"rdrPprevButton",nextButton:"rdrNextButton",selected:"rdrSelected",months:"rdrMonths",monthPicker:"rdrMonthPicker",yearPicker:"rdrYearPicker",dateDisplayWrapper:"rdrDateDisplayWrapper",definedRangesWrapper:"rdrDefinedRangesWrapper",staticRanges:"rdrStaticRanges",staticRange:"rdrStaticRange",inputRanges:"rdrInputRanges",inputRange:"rdrInputRange",inputRangeInput:"rdrInputRangeInput",dateRangePickerWrapper:"rdrDateRangePickerWrapper",staticRangeLabel:"rdrStaticRangeLabel",staticRangeSelected:"rdrStaticRangeSelected",monthName:"rdrMonthName",infiniteMonths:"rdrInfiniteMonths",monthsVertical:"rdrMonthsVertical",monthsHorizontal:"rdrMonthsHorizontal"};var jl={};Object.defineProperty(jl,"__esModule",{value:!0}),jl.ariaLabelsShape=void 0;var $n=CR(Xn);function CR(t){return t&&t.__esModule?t:{default:t}}jl.ariaLabelsShape=$n.default.shape({dateInput:$n.default.objectOf($n.default.shape({startDate:$n.default.string,endDate:$n.default.string})),monthPicker:$n.default.string,yearPicker:$n.default.string,prevButton:$n.default.string,nextButton:$n.default.string}),Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var Ie=NR(_),he=qs(Xn),OR=Gn,Kv=qs(Tl),Qv=qs(Pl),Il=Jn,ss=qs(sr),DR=qs(Yv),MR=W3,He=es,ER=sf,TR=qs(rs),PR=jl;function qs(t){return t&&t.__esModule?t:{default:t}}function Zv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Zv=function(r){return r?n:e})(t)}function NR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Zv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Al(){return Al=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Al.apply(this,arguments)}function sn(t,e,n){return e=jR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jR(t){var e=IR(t,"string");return typeof e=="symbol"?e:String(e)}function IR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class $s extends Ie.PureComponent{constructor(e,n){var r;super(e,n),r=this,sn(this,"focusToDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.props,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!a.scroll.enabled){if(o&&a.preventSnapRefocus){const c=(0,He.differenceInCalendarMonths)(s,r.state.focusedDate),d=a.calendarFocus==="forwards"&&c>=0,u=a.calendarFocus==="backwards"&&c<=0;if((d||u)&&Math.abs(c)<a.months)return}r.setState({focusedDate:s});return}const i=(0,He.differenceInCalendarMonths)(s,a.minDate,r.dateOptions),l=r.list.getVisibleRange();o&&l.includes(i)||(r.isFirstRender=!0,r.list.scrollTo(i),r.setState({focusedDate:s}))}),sn(this,"updateShownDate",function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.props;const a=s.scroll.enabled?{...s,months:r.list.getVisibleRange().length}:s,o=(0,Il.calcFocusDate)(r.state.focusedDate,a);r.focusToDate(o,a)}),sn(this,"updatePreview",s=>{if(!s){this.setState({preview:null});return}const a={startDate:s,endDate:s,color:this.props.color};this.setState({preview:a})}),sn(this,"changeShownDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:o}=r.state,{onShownDateChange:i,minDate:l,maxDate:c}=r.props,d={monthOffset:()=>(0,He.addMonths)(o,s),setMonth:()=>(0,He.setMonth)(o,s),setYear:()=>(0,He.setYear)(o,s),set:()=>s},u=(0,He.min)([(0,He.max)([d[a](),l]),c]);r.focusToDate(u,r.props,!1),i&&i(u)}),sn(this,"handleRangeFocusChange",(s,a)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([s,a])}),sn(this,"handleScroll",()=>{const{onShownDateChange:s,minDate:a}=this.props,{focusedDate:o}=this.state,{isFirstRender:i}=this,l=this.list.getVisibleRange();if(l[0]===void 0)return;const c=(0,He.addMonths)(a,l[0]||0);!(0,He.isSameMonth)(c,o)&&!i&&(this.setState({focusedDate:c}),s&&s(c)),this.isFirstRender=!1}),sn(this,"renderMonthAndYear",(s,a,o)=>{const{showMonthArrow:i,minDate:l,maxDate:c,showMonthAndYearPickers:d,ariaLabels:u}=o,g=(c||$s.defaultProps.maxDate).getFullYear(),h=(l||$s.defaultProps.minDate).getFullYear(),p=this.styles;return Ie.default.createElement("div",{onMouseUp:m=>m.stopPropagation(),className:p.monthAndYearWrapper},i?Ie.default.createElement("button",{type:"button",className:(0,ss.default)(p.nextPrevButton,p.prevButton),onClick:()=>a(-1,"monthOffset"),"aria-label":u.prevButton},Ie.default.createElement("i",null)):null,d?Ie.default.createElement("span",{className:p.monthAndYearPickers},Ie.default.createElement("span",{className:p.monthPicker},Ie.default.createElement("select",{value:s.getMonth(),onChange:m=>a(m.target.value,"setMonth"),"aria-label":u.monthPicker},this.state.monthNames.map((m,b)=>Ie.default.createElement("option",{key:b,value:b},m)))),Ie.default.createElement("span",{className:p.monthAndYearDivider}),Ie.default.createElement("span",{className:p.yearPicker},Ie.default.createElement("select",{value:s.getFullYear(),onChange:m=>a(m.target.value,"setYear"),"aria-label":u.yearPicker},new Array(g-h+1).fill(g).map((m,b)=>{const y=m-b;return Ie.default.createElement("option",{key:y,value:y},y)})))):Ie.default.createElement("span",{className:p.monthAndYearPickers},this.state.monthNames[s.getMonth()]," ",s.getFullYear()),i?Ie.default.createElement("button",{type:"button",className:(0,ss.default)(p.nextPrevButton,p.nextButton),onClick:()=>a(1,"monthOffset"),"aria-label":u.nextButton},Ie.default.createElement("i",null)):null)}),sn(this,"renderDateDisplay",()=>{const{focusedRange:s,color:a,ranges:o,rangeColors:i,dateDisplayFormat:l,editableDateInputs:c,startDatePlaceholder:d,endDatePlaceholder:u,ariaLabels:g}=this.props,h=i[s[0]]||a,p=this.styles;return Ie.default.createElement("div",{className:p.dateDisplayWrapper},o.map((m,b)=>m.showDateDisplay===!1||m.disabled&&!m.showDateDisplay?null:Ie.default.createElement("div",{className:p.dateDisplay,key:b,style:{color:m.color||h}},Ie.default.createElement(Qv.default,{className:(0,ss.default)(p.dateDisplayItem,{[p.dateDisplayItemActive]:s[0]===b&&s[1]===0}),readOnly:!c,disabled:m.disabled,value:m.startDate,placeholder:d,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:g.dateInput&&g.dateInput[m.key]&&g.dateInput[m.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,0)}),Ie.default.createElement(Qv.default,{className:(0,ss.default)(p.dateDisplayItem,{[p.dateDisplayItemActive]:s[0]===b&&s[1]===1}),readOnly:!c,disabled:m.disabled,value:m.endDate,placeholder:u,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:g.dateInput&&g.dateInput[m.key]&&g.dateInput[m.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,1)}))))}),sn(this,"onDragSelectionStart",s=>{const{onChange:a,dragSelectionEnabled:o}=this.props;o?this.setState({drag:{status:!0,range:{startDate:s,endDate:s},disablePreview:!0}}):a&&a(s)}),sn(this,"onDragSelectionEnd",s=>{const{updateRange:a,displayMode:o,onChange:i,dragSelectionEnabled:l}=this.props;if(!l)return;if(o==="date"||!this.state.drag.status){i&&i(s);return}const c={startDate:this.state.drag.range.startDate,endDate:s};o!=="dateRange"||(0,He.isSameDay)(c.startDate,s)?this.setState({drag:{status:!1,range:{}}},()=>i&&i(s)):this.setState({drag:{status:!1,range:{}}},()=>{a&&a(c)})}),sn(this,"onDragSelectionMove",s=>{const{drag:a}=this.state;!a.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:a.status,range:{startDate:a.range.startDate,endDate:s},disablePreview:!0}})}),sn(this,"estimateMonthSize",(s,a)=>{const{direction:o,minDate:i}=this.props,{scrollArea:l}=this.state;if(a&&(this.listSizeCache=a,a[s]))return a[s];if(o==="horizontal")return l.monthWidth;const c=(0,He.addMonths)(i,s),{start:d,end:u}=(0,Il.getMonthDisplayRange)(c,this.dateOptions);return(0,He.differenceInDays)(u,d,this.dateOptions)+1>7*5?l.longMonthHeight:l.monthHeight}),this.dateOptions={locale:e.locale},e.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=e.weekStartsOn),this.styles=(0,Il.generateStyles)([TR.default,e.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,Il.calcFocusDate)(null,e),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(e)}}getMonthNames(){return[...Array(12).keys()].map(e=>this.props.locale.localize.month(e))}calcScrollArea(e){const{direction:n,months:r,scroll:s}=e;if(!s.enabled)return{enabled:!1};const a=s.longMonthHeight||s.monthHeight;return n==="vertical"?{enabled:!0,monthHeight:s.monthHeight||220,longMonthHeight:a||260,calendarWidth:"auto",calendarHeight:(s.calendarHeight||a||240)*r}:{enabled:!0,monthWidth:s.monthWidth||332,calendarWidth:(s.calendarWidth||s.monthWidth||332)*r,monthHeight:a||300,calendarHeight:a||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(e){const r={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[r]!==e[r]&&this.updateShownDate(this.props),(e.locale!==this.props.locale||e.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,MR.shallowEqualObjects)(e.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const e=new Date;return Ie.default.createElement("div",{className:this.styles.weekDays},(0,He.eachDayOfInterval)({start:(0,He.startOfWeek)(e,this.dateOptions),end:(0,He.endOfWeek)(e,this.dateOptions)}).map((n,r)=>Ie.default.createElement("span",{className:this.styles.weekDay,key:r},(0,He.format)(n,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:e,onPreviewChange:n,scroll:r,direction:s,disabledDates:a,disabledDay:o,maxDate:i,minDate:l,rangeColors:c,color:d,navigatorRenderer:u,className:g,preview:h}=this.props,{scrollArea:p,focusedDate:m}=this.state,b=s==="vertical",y=u||this.renderMonthAndYear,v=this.props.ranges.map((k,w)=>({...k,color:k.color||c[w]||d}));return Ie.default.createElement("div",{className:(0,ss.default)(this.styles.calendarWrapper,g),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},e&&this.renderDateDisplay(),y(m,this.changeShownDate,this.props),r.enabled?Ie.default.createElement("div",null,b&&this.renderWeekdays(this.dateOptions),Ie.default.createElement("div",{className:(0,ss.default)(this.styles.infiniteMonths,b?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>n&&n(),style:{width:p.calendarWidth+11,height:p.calendarHeight+11},onScroll:this.handleScroll},Ie.default.createElement(DR.default,{length:(0,He.differenceInCalendarMonths)((0,He.endOfMonth)(i),(0,He.addDays)((0,He.startOfMonth)(l),-1),this.dateOptions),treshold:500,type:"variable",ref:k=>this.list=k,itemSizeEstimator:this.estimateMonthSize,axis:b?"y":"x",itemRenderer:(k,w)=>{const x=(0,He.addMonths)(l,k);return Ie.default.createElement(Kv.default,Al({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:v,key:w,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:x,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,style:b?{height:this.estimateMonthSize(k)}:{height:p.monthHeight,width:this.estimateMonthSize(k)},showMonthName:!0,showWeekDays:!b}))}}))):Ie.default.createElement("div",{className:(0,ss.default)(this.styles.months,b?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((k,w)=>{let x=(0,He.addMonths)(this.state.focusedDate,w);return this.props.calendarFocus==="backwards"&&(x=(0,He.subMonths)(this.state.focusedDate,this.props.months-1-w)),Ie.default.createElement(Kv.default,Al({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:v,key:w,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:x,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,showWeekDays:!b||w===0,showMonthName:!b||w>0}))})))}}$s.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:ER.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,He.addYears)(new Date,20),minDate:(0,He.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},$s.propTypes={showMonthArrow:he.default.bool,showMonthAndYearPickers:he.default.bool,disabledDates:he.default.array,disabledDay:he.default.func,minDate:he.default.object,maxDate:he.default.object,date:he.default.object,onChange:he.default.func,onPreviewChange:he.default.func,onRangeFocusChange:he.default.func,classNames:he.default.object,locale:he.default.object,shownDate:he.default.object,onShownDateChange:he.default.func,ranges:he.default.arrayOf(OR.rangeShape),preview:he.default.shape({startDate:he.default.object,endDate:he.default.object,color:he.default.string}),dateDisplayFormat:he.default.string,monthDisplayFormat:he.default.string,weekdayDisplayFormat:he.default.string,weekStartsOn:he.default.number,dayDisplayFormat:he.default.string,focusedRange:he.default.arrayOf(he.default.number),initialFocusedRange:he.default.arrayOf(he.default.number),months:he.default.number,className:he.default.string,showDateDisplay:he.default.bool,showPreview:he.default.bool,displayMode:he.default.oneOf(["dateRange","date"]),color:he.default.string,updateRange:he.default.func,scroll:he.default.shape({enabled:he.default.bool,monthHeight:he.default.number,longMonthHeight:he.default.number,monthWidth:he.default.number,calendarWidth:he.default.number,calendarHeight:he.default.number}),direction:he.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:he.default.string,endDatePlaceholder:he.default.string,navigatorRenderer:he.default.func,rangeColors:he.default.arrayOf(he.default.string),editableDateInputs:he.default.bool,dragSelectionEnabled:he.default.bool,fixedHeight:he.default.bool,calendarFocus:he.default.string,preventSnapRefocus:he.default.bool,ariaLabels:PR.ariaLabelsShape},io.default=$s,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var Jv=FR(_),ea=Rl(Xn),qv=Rl(io),AR=Gn,ff=Jn,An=es,RR=Rl(sr),LR=Rl(rs);function Rl(t){return t&&t.__esModule?t:{default:t}}function $v(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return($v=function(r){return r?n:e})(t)}function FR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=$v(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function hf(){return hf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hf.apply(this,arguments)}function Ll(t,e,n){return e=BR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BR(t){var e=WR(t,"string");return typeof e=="symbol"?e:String(e)}function WR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class gf extends Jv.Component{constructor(e,n){var r;super(e,n),r=this,Ll(this,"calcNewSelection",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const o=r.props.focusedRange||r.state.focusedRange,{ranges:i,onChange:l,maxDate:c,moveRangeOnFirstSelection:d,retainEndDateOnFirstSelection:u,disabledDates:g}=r.props,h=o[0],p=i[h];if(!p||!l)return{};let{startDate:m,endDate:b}=p;const y=new Date;let v;if(!a)m=s.startDate,b=s.endDate;else if(o[1]===0){const x=(0,An.differenceInCalendarDays)(b||y,m),S=()=>d?(0,An.addDays)(s,x):u?!b||(0,An.isBefore)(s,b)?b:s:s||y;m=s,b=S(),c&&(b=(0,An.min)([b,c])),v=[o[0],1]}else b=s;let k=o[1]===0;(0,An.isBefore)(b,m)&&(k=!k,[m,b]=[b,m]);const w=g.filter(x=>(0,An.isWithinInterval)(x,{start:m,end:b}));return w.length>0&&(k?m=(0,An.addDays)((0,An.max)(w),1):b=(0,An.addDays)((0,An.min)(w),-1)),v||(v=[(0,ff.findNextRangeIndex)(r.props.ranges,o[0]),0]),{wasValid:!(w.length>0),range:{startDate:m,endDate:b},nextFocusRange:v}}),Ll(this,"setSelection",(s,a)=>{const{onChange:o,ranges:i,onRangeFocusChange:l}=this.props,d=(this.props.focusedRange||this.state.focusedRange)[0],u=i[d];if(!u)return;const g=this.calcNewSelection(s,a);o({[u.key||`range${d+1}`]:{...u,...g.range}}),this.setState({focusedRange:g.nextFocusRange,preview:null}),l&&l(g.nextFocusRange)}),Ll(this,"handleRangeFocusChange",s=>{this.setState({focusedRange:s}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(s)}),Ll(this,"updatePreview",s=>{var c;if(!s){this.setState({preview:null});return}const{rangeColors:a,ranges:o}=this.props,i=this.props.focusedRange||this.state.focusedRange,l=((c=o[i[0]])==null?void 0:c.color)||a[i[0]]||l;this.setState({preview:{...s.range,color:l}})}),this.state={focusedRange:e.initialFocusedRange||[(0,ff.findNextRangeIndex)(e.ranges),0],preview:null},this.styles=(0,ff.generateStyles)([LR.default,e.classNames])}render(){return Jv.default.createElement(qv.default,hf({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:e=>{this.updatePreview(e?this.calcNewSelection(e):null)}},this.props,{displayMode:"dateRange",className:(0,RR.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:e=>this.setSelection(e,!1),ref:e=>{this.calendar=e}}))}}gf.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},gf.propTypes={...qv.default.propTypes,onChange:ea.default.func,onRangeFocusChange:ea.default.func,className:ea.default.string,ranges:ea.default.arrayOf(AR.rangeShape),moveRangeOnFirstSelection:ea.default.bool,retainEndDateOnFirstSelection:ea.default.bool},oo.default=gf;var Fl={},yo={},kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.createStaticRanges=ex,kr.defaultStaticRanges=kr.defaultInputRanges=void 0;var Fe=es;const ft={startOfWeek:(0,Fe.startOfWeek)(new Date),endOfWeek:(0,Fe.endOfWeek)(new Date),startOfLastWeek:(0,Fe.startOfWeek)((0,Fe.addDays)(new Date,-7)),endOfLastWeek:(0,Fe.endOfWeek)((0,Fe.addDays)(new Date,-7)),startOfToday:(0,Fe.startOfDay)(new Date),endOfToday:(0,Fe.endOfDay)(new Date),startOfYesterday:(0,Fe.startOfDay)((0,Fe.addDays)(new Date,-1)),endOfYesterday:(0,Fe.endOfDay)((0,Fe.addDays)(new Date,-1)),startOfMonth:(0,Fe.startOfMonth)(new Date),endOfMonth:(0,Fe.endOfMonth)(new Date),startOfLastMonth:(0,Fe.startOfMonth)((0,Fe.addMonths)(new Date,-1)),endOfLastMonth:(0,Fe.endOfMonth)((0,Fe.addMonths)(new Date,-1))},zR={range:{},isSelected(t){const e=this.range();return(0,Fe.isSameDay)(t.startDate,e.startDate)&&(0,Fe.isSameDay)(t.endDate,e.endDate)}};function ex(t){return t.map(e=>({...zR,...e}))}kr.defaultStaticRanges=ex([{label:"Today",range:()=>({startDate:ft.startOfToday,endDate:ft.endOfToday})},{label:"Yesterday",range:()=>({startDate:ft.startOfYesterday,endDate:ft.endOfYesterday})},{label:"This Week",range:()=>({startDate:ft.startOfWeek,endDate:ft.endOfWeek})},{label:"Last Week",range:()=>({startDate:ft.startOfLastWeek,endDate:ft.endOfLastWeek})},{label:"This Month",range:()=>({startDate:ft.startOfMonth,endDate:ft.endOfMonth})},{label:"Last Month",range:()=>({startDate:ft.startOfLastMonth,endDate:ft.endOfLastMonth})}]),kr.defaultInputRanges=[{label:"days up to today",range(t){return{startDate:(0,Fe.addDays)(ft.startOfToday,(Math.max(Number(t),1)-1)*-1),endDate:ft.endOfToday}},getCurrentValue(t){return(0,Fe.isSameDay)(t.endDate,ft.endOfToday)?t.startDate?(0,Fe.differenceInCalendarDays)(ft.endOfToday,t.startDate)+1:"∞":"-"}},{label:"days starting today",range(t){const e=new Date;return{startDate:e,endDate:(0,Fe.addDays)(e,Math.max(Number(t),1)-1)}},getCurrentValue(t){return(0,Fe.isSameDay)(t.startDate,ft.startOfToday)?t.endDate?(0,Fe.differenceInCalendarDays)(t.endDate,ft.startOfToday)+1:"∞":"-"}}];var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.default=void 0;var Wl=YR(_),Lt=HR(Xn);function HR(t){return t&&t.__esModule?t:{default:t}}function tx(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(tx=function(r){return r?n:e})(t)}function YR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=tx(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function VR(t,e,n){return e=UR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function UR(t){var e=XR(t,"string");return typeof e=="symbol"?e:String(e)}function XR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const nx=0,rx=99999;class mf extends Wl.Component{constructor(e,n){super(e,n),VR(this,"onChange",r=>{const{onChange:s}=this.props;let a=parseInt(r.target.value,10);a=isNaN(a)?0:Math.max(Math.min(rx,a),nx),s(a)})}shouldComponentUpdate(e){const{value:n,label:r,placeholder:s}=this.props;return n!==e.value||r!==e.label||s!==e.placeholder}render(){const{label:e,placeholder:n,value:r,styles:s,onBlur:a,onFocus:o}=this.props;return Wl.default.createElement("div",{className:s.inputRange},Wl.default.createElement("input",{className:s.inputRangeInput,placeholder:n,value:r,min:nx,max:rx,onChange:this.onChange,onFocus:o,onBlur:a}),Wl.default.createElement("span",{className:s.inputRangeLabel},e))}}mf.propTypes={value:Lt.default.oneOfType([Lt.default.string,Lt.default.number]),label:Lt.default.oneOfType([Lt.default.element,Lt.default.node]).isRequired,placeholder:Lt.default.string,styles:Lt.default.shape({inputRange:Lt.default.string,inputRangeInput:Lt.default.string,inputRangeLabel:Lt.default.string}).isRequired,onBlur:Lt.default.func.isRequired,onFocus:Lt.default.func.isRequired,onChange:Lt.default.func.isRequired},mf.defaultProps={value:"",placeholder:"-"},Bl.default=mf,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=void 0;var as=QR(_),Ut=zl(Xn),os=zl(rs),sx=kr,GR=Gn,KR=zl(Bl),ax=zl(sr);function zl(t){return t&&t.__esModule?t:{default:t}}function ox(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ox=function(r){return r?n:e})(t)}function QR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ox(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function ZR(t,e,n){return e=JR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JR(t){var e=qR(t,"string");return typeof e=="symbol"?e:String(e)}function qR(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class pf extends as.Component{constructor(e){super(e),ZR(this,"handleRangeChange",n=>{const{onChange:r,ranges:s,focusedRange:a}=this.props,o=s[a[0]];!r||!o||r({[o.key||`range${a[0]+1}`]:{...o,...n}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(e){const{ranges:n=[],focusedRange:r=[]}=this.props;if(typeof e.getCurrentValue!="function")return"";const s=n[r[0]]||{};return e.getCurrentValue(s)||""}getSelectedRange(e,n){const r=e.findIndex(a=>!a.startDate||!a.endDate||a.disabled?!1:n.isSelected(a));return{selectedRange:e[r],focusedRangeIndex:r}}render(){const{headerContent:e,footerContent:n,onPreviewChange:r,inputRanges:s,staticRanges:a,ranges:o,renderStaticRangeLabel:i,rangeColors:l,className:c}=this.props;return as.default.createElement("div",{className:(0,ax.default)(os.default.definedRangesWrapper,c)},e,as.default.createElement("div",{className:os.default.staticRanges},a.map((d,u)=>{const{selectedRange:g,focusedRangeIndex:h}=this.getSelectedRange(o,d);let p;return d.hasCustomRendering?p=i(d):p=d.label,as.default.createElement("button",{type:"button",className:(0,ax.default)(os.default.staticRange,{[os.default.staticRangeSelected]:!!g}),style:{color:g?g.color||l[h]:null},key:u,onClick:()=>this.handleRangeChange(d.range(this.props)),onFocus:()=>r&&r(d.range(this.props)),onMouseOver:()=>r&&r(d.range(this.props)),onMouseLeave:()=>{r&&r()}},as.default.createElement("span",{tabIndex:-1,className:os.default.staticRangeLabel},p))})),as.default.createElement("div",{className:os.default.inputRanges},s.map((d,u)=>as.default.createElement(KR.default,{key:u,styles:os.default,label:d.label,onFocus:()=>this.setState({focusedInput:u,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:g=>this.handleRangeChange(d.range(g,this.props)),value:this.getRangeOptionValue(d)}))),n)}}pf.propTypes={inputRanges:Ut.default.array,staticRanges:Ut.default.array,ranges:Ut.default.arrayOf(GR.rangeShape),focusedRange:Ut.default.arrayOf(Ut.default.number),onPreviewChange:Ut.default.func,onChange:Ut.default.func,footerContent:Ut.default.any,headerContent:Ut.default.any,rangeColors:Ut.default.arrayOf(Ut.default.string),className:Ut.default.string,renderStaticRangeLabel:Ut.default.func},pf.defaultProps={inputRanges:sx.defaultInputRanges,staticRanges:sx.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},yo.default=pf,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=void 0;var Hl=nL(_),$R=wo(Xn),ix=wo(oo),lx=wo(yo),cx=Jn,eL=wo(sr),tL=wo(rs);function wo(t){return t&&t.__esModule?t:{default:t}}function dx(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(dx=function(r){return r?n:e})(t)}function nL(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=dx(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Yl(){return Yl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yl.apply(this,arguments)}let bf=class extends Hl.Component{constructor(e){super(e),this.state={focusedRange:[(0,cx.findNextRangeIndex)(e.ranges),0]},this.styles=(0,cx.generateStyles)([tL.default,e.classNames])}render(){const{focusedRange:e}=this.state;return Hl.default.createElement("div",{className:(0,eL.default)(this.styles.dateRangePickerWrapper,this.props.className)},Hl.default.createElement(lx.default,Yl({focusedRange:e,onPreviewChange:n=>this.dateRange.updatePreview(n?this.dateRange.calcNewSelection(n,typeof n=="string"):null)},this.props,{range:this.props.ranges[e[0]],className:void 0})),Hl.default.createElement(ix.default,Yl({onRangeFocusChange:n=>this.setState({focusedRange:n}),focusedRange:e},this.props,{ref:n=>this.dateRange=n,className:void 0})))}};bf.defaultProps={},bf.propTypes={...ix.default.propTypes,...lx.default.propTypes,className:$R.default.string},Fl.default=bf,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"DateRange",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DefinedRange",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"createStaticRanges",{enumerable:!0,get:function(){return a.createStaticRanges}}),Object.defineProperty(t,"defaultInputRanges",{enumerable:!0,get:function(){return a.defaultInputRanges}}),Object.defineProperty(t,"defaultStaticRanges",{enumerable:!0,get:function(){return a.defaultStaticRanges}});var e=o(oo),n=o(io),r=o(Fl),s=o(yo),a=kr;function o(i){return i&&i.__esModule?i:{default:i}}}(uw);const rL={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},sL=(t,e,n)=>{let r;const s=rL[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},aL={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},oL={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},iL={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lL={date:Qs({formats:aL,defaultWidth:"full"}),time:Qs({formats:oL,defaultWidth:"full"}),dateTime:Qs({formats:iL,defaultWidth:"full"})},cL={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},dL={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},uL=(t,e,n,r)=>e.getHours()!==1?dL[t]:cL[t],fL={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},hL={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},gL={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},mL={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},pL={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},bL={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},yL={ordinalNumber:(t,e)=>Number(t)+"º",era:En({values:fL,defaultWidth:"wide"}),quarter:En({values:hL,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:En({values:gL,defaultWidth:"wide"}),day:En({values:mL,defaultWidth:"wide"}),dayPeriod:En({values:pL,defaultWidth:"wide",formattingValues:bL,defaultFormattingWidth:"wide"})},wL=/^(\d+)(º)?/i,vL=/\d+/i,xL={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},kL={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},_L={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},SL={any:[/1/i,/2/i,/3/i,/4/i]},CL={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},OL={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},DL={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},ML={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},EL={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},TL={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},PL={ordinalNumber:ev({matchPattern:wL,parsePattern:vL,valueCallback:function(t){return parseInt(t,10)}}),era:Tn({matchPatterns:xL,defaultMatchWidth:"wide",parsePatterns:kL,defaultParseWidth:"any"}),quarter:Tn({matchPatterns:_L,defaultMatchWidth:"wide",parsePatterns:SL,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Tn({matchPatterns:CL,defaultMatchWidth:"wide",parsePatterns:OL,defaultParseWidth:"any"}),day:Tn({matchPatterns:DL,defaultMatchWidth:"wide",parsePatterns:ML,defaultParseWidth:"any"}),dayPeriod:Tn({matchPatterns:EL,defaultMatchWidth:"any",parsePatterns:TL,defaultParseWidth:"any"})},NL={code:"es",formatDistance:sL,formatLong:lL,formatRelative:uL,localize:yL,match:PL,options:{weekStartsOn:1,firstWeekContainsDate:1}},er={"date-container":"dateRangePicker-module__date-container__jh9s-","date-input":"dateRangePicker-module__date-input__xt4gs","date-popup":"dateRangePicker-module__date-popup__TQHMh","date-menu":"dateRangePicker-module__date-menu__Nv5nr","date-menuItem":"dateRangePicker-module__date-menuItem__AYJ32","date-menuItemReset":"dateRangePicker-module__date-menuItemReset__J9IdZ","date-calendar":"dateRangePicker-module__date-calendar__M10Iv"},jL=[{label:"Ayer",range:()=>{const t=new Date;return t.setDate(t.getDate()-1),{startDate:t,endDate:t}}},{label:"La semana pasada",range:()=>({startDate:rn(new Date,-6),endDate:new Date})},{label:"El mes pasado",range:()=>{const t=new Date,e=new Date(t.getFullYear(),t.getMonth()-1,1),n=new Date(t.getFullYear(),t.getMonth(),0);return{startDate:e,endDate:n}}}],IL=({value:t,onChange:e,minData:n,maxData:r,quickRanges:s,className:a})=>{const[o,i]=_.useState([{startDate:rn(new Date,-6),endDate:new Date,key:"selection"}]),[l,c]=_.useState(!1),[d,u]=_.useState({}),g=_.useRef(null),h=_.useRef(null),p=s??jL,m=t?[{...t,key:"selection"}]:o;_.useEffect(()=>{if(l&&h.current&&g.current){const w=h.current.getBoundingClientRect(),x=g.current.offsetWidth||700,S=window.innerWidth-w.right,P=w.left,C={right:0,left:"auto"};S<x&&P>=x&&(C.left=0,C.right="auto"),window.innerWidth<x&&(C.left=0,C.right=0,C.width="100vw",C.maxWidth="100vw"),u(C)}},[l]);const b=w=>{t||i([w.selection]),e==null||e(w.selection.startDate,w.selection.endDate)},y=w=>{const{startDate:x,endDate:S}=w();t||i([{startDate:x,endDate:S,key:"selection"}]),e==null||e(x,S),c(!1)},v=()=>{const w=new Date;t||i([{startDate:w,endDate:w,key:"selection"}]),e==null||e(w,w),c(!1)},k=w=>Sl(w,"dd MMM yy");return _.useEffect(()=>{if(!l)return;const w=x=>{g.current&&!g.current.contains(x.target)&&h.current&&!h.current.contains(x.target)&&c(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[l]),f.jsxs("div",{className:er["date-container"],children:[f.jsx("input",{ref:h,type:"text",readOnly:!0,value:`${k(m[0].startDate)} - ${k(m[0].endDate)}`,onClick:()=>c(!l),className:`${er["date-input"]} ${a}`}),l&&f.jsxs("div",{ref:g,className:er["date-popup"],style:d,children:[f.jsxs("div",{className:er["date-menu"],children:[p.map((w,x)=>f.jsx("div",{className:er["date-menuItem"]+(x===2?" "+er["date-menuItemActive"]:""),onClick:()=>y(w.range),children:w.label},w.label)),f.jsx("div",{className:er["date-menuItem"]+" "+er["date-menuItemReset"],onClick:v,children:"Reset"})]}),f.jsx("div",{className:er["date-calendar"],children:f.jsx(uw.DateRange,{editableDateInputs:!1,onChange:b,moveRangeOnFirstSelection:!1,ranges:m,rangeColors:["#C0D4FF99"],minDate:n,maxDate:r,locale:NL,dayContentRenderer:w=>{const x=w.getDay(),S={opacity:x===0||x===6?.5:1,color:x===0||x===6?"#999":"inherit"};return f.jsx("span",{style:S,children:w.getDate()})},navigationButtonsPosition:"center"})})]})]})},AL=({minDate:t,maxDate:e})=>f.jsx(ch,{minDate:t,maxDate:e,className:"custom-datepicker"}),is={"loader-wrapper":"loader-module__loader-wrapper__faxmX",container:"loader-module__container__Vj8hl","mathilde-loading":"loader-module__mathilde-loading__qdEVv","loading-1":"loader-module__loading-1__mro54",logo:"loader-module__logo__IXZKs","ball-container":"loader-module__ball-container__qDvi5",ball:"loader-module__ball__MSPUh"},RL=function(){return f.jsx("div",{className:`mth_loader ${is["loader-wrapper"]}`,children:f.jsx("div",{className:is.container,children:f.jsxs("div",{className:is["mathilde-loading"],children:[f.jsx("img",{className:is.logo,src:"https://ftp.mathilde-ads.com/345-38ea95da72fc8edd1d853f315945b449.png",alt:"Logo Mathilde"}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:is["loading-1"],children:f.jsx("circle",{cx:"50",cy:"50",r:"40"})}),f.jsx("div",{className:is["ball-container"],children:f.jsx("div",{className:is.ball})})]})})})},LL=({label:t,dismissOnClick:e,items:n,size:r,className:s,styles:a,mode:o="simple",columns:i=2,onSelectionChange:l,selectedItems:c=[],activeChevron:d=!0,icon:u,iconSize:g=20})=>{const[h,p]=_.useState(c),m=(k,w)=>{const x=w?[...h,k]:h.filter(S=>S!==k);p(x),l==null||l(x)},b=()=>n.map(k=>f.jsx(Ic,{...k,href:k.href,children:k.label},k.value||k.label)),y=()=>{const k=i===1?"grid-cols-1":i===2?"grid-cols-2":i===3?"grid-cols-3":i===4?"grid-cols-4":"grid-cols-2";return f.jsx("div",{className:`grid min-w-[200px] gap-2 p-2 ${k}`,children:n.map(w=>{const x=w.value||w.label,S=h.includes(x);return f.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded p-2 hover:bg-gray-100",children:[f.jsx("input",{type:"checkbox",checked:S,onChange:P=>m(x,P.target.checked),disabled:w.disabled,className:"size-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-blue-500"}),f.jsx("span",{className:`text-xs ${w.disabled?"text-gray-400":"text-black"}`,children:w.label})]},x)})})},v=k=>{if(!k)return null;if(typeof k=="string")return f.jsx("img",{src:k,alt:"icon",width:g,height:g});const w=k;return f.jsx(w,{size:g})};return f.jsx(f.Fragment,{children:f.jsx(O_,{label:t,dismissOnClick:o==="simple"?e:!1,size:r,renderTrigger:()=>f.jsx("button",{className:s,style:a,type:"button",children:f.jsxs("span",{className:"flex items-center gap-2",children:[v(u),t,d&&v(Zl)]})}),className:"left-0",children:o==="simple"?b():y()})})},FL=function({steps:t=[],initialStep:e=1,activeStep:n,onStepChange:r,renderControls:s,onNext:a,onBack:o,onFinish:i}){var b;const l=typeof n=="number",[c,d]=_.useState(e),u=l?n:c,g=()=>{if(u<t.length){const y=u+1;l?(r==null||r(y),a==null||a()):(d(y),a==null||a())}else i==null||i()},h=()=>{if(u>1){const y=u-1;l?(r==null||r(y),o==null||o()):(d(y),o==null||o())}},p=y=>{y!==u&&(y<1||y>t.length||(l?r==null||r(y):d(y)))},m={activeStep:u,stepsLength:t.length,isFirst:u===1,isLast:u===t.length,next:g,back:h,goToStep:p};return f.jsxs("div",{className:"mx-auto flex w-full flex-col md:flex-row",children:[f.jsx("ol",{className:"relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full self-start",children:t.map((y,v)=>{const k=v===t.length-1,w=v+1===u,x=v+1<u;return f.jsxs("li",{className:`ms-4 ${k?"":"mb-8"}`,children:[f.jsx("span",{className:`absolute -start-2 size-3.5 items-center justify-center rounded-full ring-1
|
|
581
|
+
*/var xu,bw;function DT(){if(bw)return xu;bw=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},i=0;i<10;i++)o["_"+String.fromCharCode(i)]=i;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xu=s()?Object.assign:function(a,o){for(var i,l=r(a),c,d=1;d<arguments.length;d++){i=Object(arguments[d]);for(var u in i)e.call(i,u)&&(l[u]=i[u]);if(t){c=t(i);for(var h=0;h<c.length;h++)n.call(i,c[h])&&(l[c[h]]=i[c[h]])}}return l},xu}var ku,yw;function _u(){if(yw)return ku;yw=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ku=t,ku}var Cu,ww;function vw(){return ww||(ww=1,Cu=Function.call.bind(Object.prototype.hasOwnProperty)),Cu}var Su,xw;function MT(){if(xw)return Su;xw=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=_u(),n={},r=vw();t=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(a,o,i,l,c){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var u;try{if(typeof a[d]!="function"){var h=Error((l||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}u=a[d](o,d,l,i,null,e)}catch(m){u=m}if(u&&!(u instanceof Error)&&t((l||"React class")+": type specification of "+i+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var g=c?c():"";t("Failed "+i+" type: "+u.message+(g??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Su=s,Su}var Ou,kw;function ET(){if(kw)return Ou;kw=1;var t=pw(),e=DT(),n=_u(),r=vw(),s=MT(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Ou=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(I){var V=I&&(c&&I[c]||I[d]);if(typeof V=="function")return V}var h="<<anonymous>>",g={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(),arrayOf:k,element:w(),elementType:x(),instanceOf:C,node:S(),objectOf:M,oneOf:N,oneOfType:P,shape:A,exact:T};function m(I,V){return I===V?I!==0||1/I===1/V:I!==I&&V!==V}function p(I,V){this.message=I,this.data=V&&typeof V=="object"?V:{},this.stack=""}p.prototype=Error.prototype;function b(I){if(process.env.NODE_ENV!=="production")var V={},F=0;function L(O,z,J,K,q,te,ie){if(K=K||h,te=te||J,ie!==n){if(l){var U=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=K+":"+J;!V[le]&&F<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[le]=!0,F++)}}return z[J]==null?O?z[J]===null?new p("The "+q+" `"+te+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new p("The "+q+" `"+te+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:I(z,J,K,q,te)}var R=L.bind(null,!1);return R.isRequired=L.bind(null,!0),R}function y(I){function V(F,L,R,O,z,J){var K=F[L],q=E(K);if(q!==I){var te=Y(K);return new p("Invalid "+O+" `"+z+"` of type "+("`"+te+"` supplied to `"+R+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return b(V)}function v(){return b(o)}function k(I){function V(F,L,R,O,z){if(typeof I!="function")return new p("Property `"+z+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var J=F[L];if(!Array.isArray(J)){var K=E(J);return new p("Invalid "+O+" `"+z+"` of type "+("`"+K+"` supplied to `"+R+"`, expected an array."))}for(var q=0;q<J.length;q++){var te=I(J,q,R,O,z+"["+q+"]",n);if(te instanceof Error)return te}return null}return b(V)}function w(){function I(V,F,L,R,O){var z=V[F];if(!i(z)){var J=E(z);return new p("Invalid "+R+" `"+O+"` of type "+("`"+J+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return b(I)}function x(){function I(V,F,L,R,O){var z=V[F];if(!t.isValidElementType(z)){var J=E(z);return new p("Invalid "+R+" `"+O+"` of type "+("`"+J+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return b(I)}function C(I){function V(F,L,R,O,z){if(!(F[L]instanceof I)){var J=I.name||h,K=ee(F[L]);return new p("Invalid "+O+" `"+z+"` of type "+("`"+K+"` supplied to `"+R+"`, expected ")+("instance of `"+J+"`."))}return null}return b(V)}function N(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function V(F,L,R,O,z){for(var J=F[L],K=0;K<I.length;K++)if(m(J,I[K]))return null;var q=JSON.stringify(I,function(ie,U){var le=Y(U);return le==="symbol"?String(U):U});return new p("Invalid "+O+" `"+z+"` of value `"+String(J)+"` "+("supplied to `"+R+"`, expected one of "+q+"."))}return b(V)}function M(I){function V(F,L,R,O,z){if(typeof I!="function")return new p("Property `"+z+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var J=F[L],K=E(J);if(K!=="object")return new p("Invalid "+O+" `"+z+"` of type "+("`"+K+"` supplied to `"+R+"`, expected an object."));for(var q in J)if(r(J,q)){var te=I(J,q,R,O,z+"."+q,n);if(te instanceof Error)return te}return null}return b(V)}function P(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var V=0;V<I.length;V++){var F=I[V];if(typeof F!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+X(F)+" at index "+V+"."),o}function L(R,O,z,J,K){for(var q=[],te=0;te<I.length;te++){var ie=I[te],U=ie(R,O,z,J,K,n);if(U==null)return null;U.data&&r(U.data,"expectedType")&&q.push(U.data.expectedType)}var le=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new p("Invalid "+J+" `"+K+"` supplied to "+("`"+z+"`"+le+"."))}return b(L)}function S(){function I(V,F,L,R,O){return D(V[F])?null:new p("Invalid "+R+" `"+O+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return b(I)}function B(I,V,F,L,R){return new p((I||"React class")+": "+V+" type `"+F+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function A(I){function V(F,L,R,O,z){var J=F[L],K=E(J);if(K!=="object")return new p("Invalid "+O+" `"+z+"` of type `"+K+"` "+("supplied to `"+R+"`, expected `object`."));for(var q in I){var te=I[q];if(typeof te!="function")return B(R,O,z,q,Y(te));var ie=te(J,q,R,O,z+"."+q,n);if(ie)return ie}return null}return b(V)}function T(I){function V(F,L,R,O,z){var J=F[L],K=E(J);if(K!=="object")return new p("Invalid "+O+" `"+z+"` of type `"+K+"` "+("supplied to `"+R+"`, expected `object`."));var q=e({},F[L],I);for(var te in q){var ie=I[te];if(r(I,te)&&typeof ie!="function")return B(R,O,z,te,Y(ie));if(!ie)return new p("Invalid "+O+" `"+z+"` key `"+te+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(F[L],null," ")+`
|
|
582
|
+
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var U=ie(J,te,R,O,z+"."+te,n);if(U)return U}return null}return b(V)}function D(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(D);if(I===null||i(I))return!0;var V=u(I);if(V){var F=V.call(I),L;if(V!==I.entries){for(;!(L=F.next()).done;)if(!D(L.value))return!1}else for(;!(L=F.next()).done;){var R=L.value;if(R&&!D(R[1]))return!1}}else return!1;return!0;default:return!1}}function j(I,V){return I==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function E(I){var V=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":j(V,I)?"symbol":V}function Y(I){if(typeof I>"u"||I===null)return""+I;var V=E(I);if(V==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return V}function X(I){var V=Y(I);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function ee(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return g.checkPropTypes=s,g.resetWarningCache=s.resetWarningCache,g.PropTypes=g,g},Ou}var Du,_w;function TT(){if(_w)return Du;_w=1;var t=_u();function e(){}function n(){}return n.resetWarningCache=e,Du=function(){function r(o,i,l,c,d,u){if(u!==t){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function s(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},Du}if(process.env.NODE_ENV!=="production"){var PT=pw(),NT=!0;vu.exports=ET()(PT.isElement,NT)}else vu.exports=TT()();var Xn=vu.exports,io={},Gn={};const Cw=7,cl=365.2425,lo=6048e5,Sw=864e5,Kn=6e4,Jr=36e5,Mu=1e3,Ow=525600,Vs=43200,dl=1440,Dw=60,Mw=3,Ew=12,Tw=4,ul=3600,Eu=60,Tu=ul*24,jT=Tu*7,Pw=Tu*cl,Nw=Pw/12,IT=Nw*3,jw=Symbol.for("constructDateFrom");function de(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&jw in t?t[jw](e):t instanceof Date?new t.constructor(e):new Date(e)}function Q(t,e){return de(e||t,t)}function rn(t,e,n){const r=Q(t,n==null?void 0:n.in);return isNaN(e)?de((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function co(t,e,n){const r=Q(t,n==null?void 0:n.in);if(isNaN(e))return de((n==null?void 0:n.in)||t,NaN);if(!e)return r;const s=r.getDate(),a=de((n==null?void 0:n.in)||t,r.getTime());a.setMonth(r.getMonth()+e+1,0);const o=a.getDate();return s>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),s),r)}function Us(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Q(t,n==null?void 0:n.in),u=s||r?co(d,s+r*12):d,h=o||a?rn(u,o+a*7):u,g=l+i*60,p=(c+g*60)*1e3;return de((n==null?void 0:n.in)||t,+h+p)}function Iw(t,e){return Q(t,e==null?void 0:e.in).getDay()===6}function Aw(t,e){return Q(t,e==null?void 0:e.in).getDay()===0}function Xs(t,e){const n=Q(t,e==null?void 0:e.in).getDay();return n===0||n===6}function Rw(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Xs(r,n);if(isNaN(e))return de(n==null?void 0:n.in,NaN);const a=r.getHours(),o=e<0?-1:1,i=Math.trunc(e/5);r.setDate(r.getDate()+i*7);let l=Math.abs(e%5);for(;l>0;)r.setDate(r.getDate()+o),Xs(r,n)||(l-=1);return s&&Xs(r,n)&&e!==0&&(Iw(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),Aw(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(a),r}function fl(t,e,n){return de((n==null?void 0:n.in)||t,+Q(t)+e)}function Lw(t,e,n){return fl(t,e*Jr,n)}let Fw={};function Ot(){return Fw}function AT(t){Fw=t}function bt(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Q(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?7:0)+a-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function un(t,e){return bt(t,{...e,weekStartsOn:1})}function br(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=de(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const a=un(s),o=de(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=un(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function Rt(t){const e=Q(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function je(t,...e){const n=de.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Gs(t,e){const n=Q(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function Dn(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=Gs(r),o=Gs(s),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/Sw)}function yr(t,e){const n=br(t,e),r=de((e==null?void 0:e.in)||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),un(r)}function Bw(t,e,n){let r=Q(t,n==null?void 0:n.in);const s=Dn(r,yr(r,n)),a=de((n==null?void 0:n.in)||t,0);return a.setFullYear(e,0,4),a.setHours(0,0,0,0),r=yr(a),r.setDate(r.getDate()+s),r}function Ww(t,e,n){return Bw(t,br(t,n)+e,n)}function Pu(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setTime(r.getTime()+e*Kn),r}function Nu(t,e,n){return co(t,e*3,n)}function zw(t,e,n){return fl(t,e*1e3,n)}function hl(t,e,n){return rn(t,e*7,n)}function Hw(t,e,n){return co(t,e*12,n)}function RT(t,e,n){const[r,s]=[+Q(t.start,n==null?void 0:n.in),+Q(t.end,n==null?void 0:n.in)].sort((i,l)=>i-l),[a,o]=[+Q(e.start,n==null?void 0:n.in),+Q(e.end,n==null?void 0:n.in)].sort((i,l)=>i-l);return n!=null&&n.inclusive?r<=o&&a<=s:r<o&&a<s}function Yw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=de.bind(null,s));const a=Q(s,r);(!n||n<a||isNaN(+a))&&(n=a)}),de(r,n||NaN)}function Vw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=de.bind(null,s));const a=Q(s,r);(!n||n>a||isNaN(+a))&&(n=a)}),de(r,n||NaN)}function LT(t,e,n){const[r,s,a]=je(n==null?void 0:n.in,t,e.start,e.end);return Vw([Yw([r,s],n),a],n)}function Uw(t,e){const n=+Q(t);if(isNaN(n))return NaN;let r,s;return e.forEach((a,o)=>{const i=Q(a);if(isNaN(+i)){r=NaN,s=NaN;return}const l=Math.abs(n-+i);(r==null||l<s)&&(r=o,s=l)}),r}function FT(t,e,n){const[r,...s]=je(n==null?void 0:n.in,t,...e),a=Uw(r,s);if(typeof a=="number"&&isNaN(a))return de(r,NaN);if(a!==void 0)return s[a]}function Mn(t,e){const n=+Q(t)-+Q(e);return n<0?-1:n>0?1:n}function BT(t,e){const n=+Q(t)-+Q(e);return n>0?-1:n<0?1:n}function st(t){return de(t,Date.now())}function WT(t){const e=Math.trunc(t/Cw);return e===0?0:e}function uo(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+Gs(r)==+Gs(s)}function Xw(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Zn(t){return!(!Xw(t)&&typeof t!="number"||isNaN(+Q(t)))}function zT(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);if(!Zn(r)||!Zn(s))return NaN;const a=Dn(r,s),o=a<0?-1:1,i=Math.trunc(a/7);let l=i*5,c=rn(s,i*7);for(;!uo(r,c);)l+=Xs(c,n)?0:o,c=rn(c,o);return l===0?0:l}function Gw(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return br(r,n)-br(s,n)}function HT(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=un(r),o=un(s),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/lo)}function gl(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return a*12+o}function ju(t,e){const n=Q(t,e==null?void 0:e.in);return Math.trunc(n.getMonth()/3)+1}function ml(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=ju(r)-ju(s);return a*4+o}function pl(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=bt(r,n),o=bt(s,n),i=+a-Rt(a),l=+o-Rt(o);return Math.round((i-l)/lo)}function fo(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return r.getFullYear()-s.getFullYear()}function Iu(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=Kw(r,s),o=Math.abs(Dn(r,s));r.setDate(r.getDate()-a*o);const i=+(Kw(r,s)===-a),l=a*(o-i);return l===0?0:l}function Kw(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function wr(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function bl(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=(+r-+s)/Jr;return wr(n==null?void 0:n.roundingMethod)(a)}function Zw(t,e,n){return Ww(t,-e,n)}function YT(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=Mn(r,s),o=Math.abs(Gw(r,s,n)),i=Zw(r,a*o,n),l=+(Mn(i,s)===-a),c=a*(o-l);return c===0?0:c}function Au(t,e){return+Q(t)-+Q(e)}function yl(t,e,n){const r=Au(t,e)/Kn;return wr(n==null?void 0:n.roundingMethod)(r)}function Ru(t,e){const n=Q(t,e==null?void 0:e.in);return n.setHours(23,59,59,999),n}function Lu(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Qw(t,e){const n=Q(t,e==null?void 0:e.in);return+Ru(n,e)==+Lu(n,e)}function wl(t,e,n){const[r,s,a]=je(n==null?void 0:n.in,t,t,e),o=Mn(s,a),i=Math.abs(gl(s,a));if(i<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*i);let l=Mn(s,a)===-o;Qw(r)&&i===1&&Mn(r,a)===1&&(l=!1);const c=o*(i-+l);return c===0?0:c}function VT(t,e,n){const r=wl(t,e,n)/3;return wr(n==null?void 0:n.roundingMethod)(r)}function Ks(t,e,n){const r=Au(t,e)/1e3;return wr(n==null?void 0:n.roundingMethod)(r)}function UT(t,e,n){const r=Iu(t,e,n)/7;return wr(n==null?void 0:n.roundingMethod)(r)}function Jw(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e),a=Mn(r,s),o=Math.abs(fo(r,s));r.setFullYear(1584),s.setFullYear(1584);const i=Mn(r,s)===-a,l=a*(o-+i);return l===0?0:l}function Qn(t,e){const[n,r]=je(t,e.start,e.end);return{start:n,end:r}}function qw(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o.setDate(o.getDate()+i),o.setHours(0,0,0,0);return s?l.reverse():l}function XT(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setMinutes(0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o.setHours(o.getHours()+i);return s?l.reverse():l}function GT(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);n.setSeconds(0,0);let s=+n>+r;const a=s?+n:+r;let o=s?r:n,i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o=Pu(o,i);return s?l.reverse():l}function KT(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setDate(1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o.setMonth(o.getMonth()+i);return s?l.reverse():l}function qr(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3;return n.setMonth(s,1),n.setHours(0,0,0,0),n}function ZT(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+qr(n):+qr(r);let o=qr(s?r:n),i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o=Nu(o,i);return s?l.reverse():l}function QT(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=bt(s?r:n,e),o=bt(s?n:r,e);a.setHours(15),o.setHours(15);const i=+o.getTime();let l=a,c=(e==null?void 0:e.step)??1;if(!c)return[];c<0&&(c=-c,s=!s);const d=[];for(;+l<=i;)l.setHours(0),d.push(de(n,l)),l=hl(l,c),l.setHours(15);return s?d.reverse():d}function Fu(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t),s=qw({start:n,end:r},e),a=[];let o=0;for(;o<s.length;){const i=s[o++];Xs(i)&&a.push(de(n,i))}return a}function vl(t,e){const n=Q(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function JT(t,e){const n=vl(t,e),r=Lu(t,e);return Fu({start:n,end:r},e)}function $w(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Bu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function qT(t,e){const n=Bu(t,e),r=$w(t,e);return Fu({start:n,end:r},e)}function $T(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(de(n,o)),o.setFullYear(o.getFullYear()+i);return s?l.reverse():l}function eP(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s,11,31),n.setHours(23,59,59,999),n}function tP(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMinutes(59,59,999),n}function ev(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Q(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function nP(t,e){return ev(t,{...e,weekStartsOn:1})}function rP(t,e){const n=br(t,e),r=de((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=un(r,e);return s.setMilliseconds(s.getMilliseconds()-1),s}function sP(t,e){const n=Q(t,e==null?void 0:e.in);return n.setSeconds(59,999),n}function aP(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(23,59,59,999),n}function oP(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMilliseconds(999),n}function iP(t){return Ru(Date.now(),t)}function lP(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s+1),a.setHours(23,59,59,999),t!=null&&t.in?t.in(a):a}function cP(t){const e=st(t==null?void 0:t.in),n=de(t==null?void 0:t.in,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),n.setHours(23,59,59,999),n}const dP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},uP=(t,e,n)=>{let r;const s=dP[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Zs(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const fP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mP={date:Zs({formats:fP,defaultWidth:"full"}),time:Zs({formats:hP,defaultWidth:"full"}),dateTime:Zs({formats:gP,defaultWidth:"full"})},pP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bP=(t,e,n,r)=>pP[t];function En(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}const yP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},wP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xP={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},kP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_P={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},CP={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:En({values:yP,defaultWidth:"wide"}),quarter:En({values:wP,defaultWidth:"wide",argumentCallback:t=>t-1}),month:En({values:vP,defaultWidth:"wide"}),day:En({values:xP,defaultWidth:"wide"}),dayPeriod:En({values:kP,defaultWidth:"wide",formattingValues:_P,defaultFormattingWidth:"wide"})};function Tn(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?OP(i,u=>u.test(o)):SP(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function SP(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function OP(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function tv(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}const DP=/^(\d+)(th|st|nd|rd)?/i,MP=/\d+/i,EP={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},TP={any:[/^b/i,/^(a|c)/i]},PP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},NP={any:[/1/i,/2/i,/3/i,/4/i]},jP={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},IP={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},AP={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RP={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LP={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FP={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},BP={ordinalNumber:tv({matchPattern:DP,parsePattern:MP,valueCallback:t=>parseInt(t,10)}),era:Tn({matchPatterns:EP,defaultMatchWidth:"wide",parsePatterns:TP,defaultParseWidth:"any"}),quarter:Tn({matchPatterns:PP,defaultMatchWidth:"wide",parsePatterns:NP,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Tn({matchPatterns:jP,defaultMatchWidth:"wide",parsePatterns:IP,defaultParseWidth:"any"}),day:Tn({matchPatterns:AP,defaultMatchWidth:"wide",parsePatterns:RP,defaultParseWidth:"any"}),dayPeriod:Tn({matchPatterns:LP,defaultMatchWidth:"any",parsePatterns:FP,defaultParseWidth:"any"})},Qs={code:"en-US",formatDistance:uP,formatLong:mP,formatRelative:bP,localize:CP,match:BP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function nv(t,e){const n=Q(t,e==null?void 0:e.in);return Dn(n,Bu(n))+1}function Wu(t,e){const n=Q(t,e==null?void 0:e.in),r=+un(n)-+yr(n);return Math.round(r/lo)+1}function xl(t,e){var d,u,h,g;const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=Ot(),a=(e==null?void 0:e.firstWeekContainsDate)??((u=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(h=s.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=de((e==null?void 0:e.in)||t,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const i=bt(o,e),l=de((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=bt(l,e);return+n>=+i?r+1:+n>=+c?r:r-1}function kl(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.firstWeekContainsDate)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=xl(t,e),a=de((e==null?void 0:e.in)||t,0);return a.setFullYear(s,0,r),a.setHours(0,0,0,0),bt(a,e)}function zu(t,e){const n=Q(t,e==null?void 0:e.in),r=+bt(n,e)-+kl(n,e);return Math.round(r/lo)+1}function ue(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Pn={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ue(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ue(n+1,2)},d(t,e){return ue(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return ue(t.getHours()%12||12,e.length)},H(t,e){return ue(t.getHours(),e.length)},m(t,e){return ue(t.getMinutes(),e.length)},s(t,e){return ue(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return ue(s,e.length)}},Js={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hu={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Pn.y(t,e)},Y:function(t,e,n,r){const s=xl(t,r),a=s>0?s:1-s;if(e==="YY"){const o=a%100;return ue(o,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):ue(a,e.length)},R:function(t,e){const n=br(t);return ue(n,e.length)},u:function(t,e){const n=t.getFullYear();return ue(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Pn.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const s=zu(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):ue(s,e.length)},I:function(t,e,n){const r=Wu(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ue(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Pn.d(t,e)},D:function(t,e,n){const r=nv(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ue(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return ue(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return ue(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return ue(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=Js.noon:r===0?s=Js.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=Js.evening:r>=12?s=Js.afternoon:r>=4?s=Js.morning:s=Js.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pn.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Pn.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Pn.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Pn.s(t,e)},S:function(t,e){return Pn.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return sv(r);case"XXXX":case"XX":return $r(r);case"XXXXX":case"XXX":default:return $r(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return sv(r);case"xxxx":case"xx":return $r(r);case"xxxxx":case"xxx":default:return $r(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+rv(r,":");case"OOOO":default:return"GMT"+$r(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+rv(r,":");case"zzzz":default:return"GMT"+$r(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return ue(r,e.length)},T:function(t,e,n){return ue(+t,e.length)}};function rv(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),a=r%60;return a===0?n+String(s):n+String(s)+e+ue(a,2)}function sv(t,e){return t%60===0?(t>0?"-":"+")+ue(Math.abs(t)/60,2):$r(t,e)}function $r(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=ue(Math.trunc(r/60),2),a=ue(r%60,2);return n+s+e+a}const av=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},ov=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},_l={p:ov,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return av(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",av(r,e)).replace("{{time}}",ov(s,e))}},WP=/^D+$/,zP=/^Y+$/,HP=["D","DD","YY","YYYY"];function iv(t){return WP.test(t)}function lv(t){return zP.test(t)}function Yu(t,e,n){const r=YP(t,e,n);if(console.warn(r),HP.includes(t))throw new RangeError(r)}function YP(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const VP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,UP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,XP=/^'([^]*?)'?$/,GP=/''/g,KP=/[a-zA-Z]/;function Cl(t,e,n){var d,u,h,g,m,p,b,y;const r=Ot(),s=(n==null?void 0:n.locale)??r.locale??Qs,a=(n==null?void 0:n.firstWeekContainsDate)??((u=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,i=Q(t,n==null?void 0:n.in);if(!Zn(i))throw new RangeError("Invalid time value");let l=e.match(UP).map(v=>{const k=v[0];if(k==="p"||k==="P"){const w=_l[k];return w(v,s.formatLong)}return v}).join("").match(VP).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const k=v[0];if(k==="'")return{isToken:!1,value:ZP(v)};if(Hu[k])return{isToken:!0,value:v};if(k.match(KP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:v}});s.localize.preprocessor&&(l=s.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return l.map(v=>{if(!v.isToken)return v.value;const k=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&lv(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&iv(k))&&Yu(k,e,String(t));const w=Hu[k[0]];return w(i,k,s.localize,c)}).join("")}function ZP(t){const e=t.match(XP);return e?e[1].replace(GP,"'"):t}function cv(t,e,n){const r=Ot(),s=(n==null?void 0:n.locale)??r.locale??Qs,a=2520,o=Mn(t,e);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:o}),[l,c]=je(n==null?void 0:n.in,...o>0?[e,t]:[t,e]),d=Ks(c,l),u=(Rt(c)-Rt(l))/1e3,h=Math.round((d-u)/60);let g;if(h<2)return n!=null&&n.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,i):d<10?s.formatDistance("lessThanXSeconds",10,i):d<20?s.formatDistance("lessThanXSeconds",20,i):d<40?s.formatDistance("halfAMinute",0,i):d<60?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",1,i):h===0?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",h,i);if(h<45)return s.formatDistance("xMinutes",h,i);if(h<90)return s.formatDistance("aboutXHours",1,i);if(h<dl){const m=Math.round(h/60);return s.formatDistance("aboutXHours",m,i)}else{if(h<a)return s.formatDistance("xDays",1,i);if(h<Vs){const m=Math.round(h/dl);return s.formatDistance("xDays",m,i)}else if(h<Vs*2)return g=Math.round(h/Vs),s.formatDistance("aboutXMonths",g,i)}if(g=wl(c,l),g<12){const m=Math.round(h/Vs);return s.formatDistance("xMonths",m,i)}else{const m=g%12,p=Math.trunc(g/12);return m<3?s.formatDistance("aboutXYears",p,i):m<9?s.formatDistance("overXYears",p,i):s.formatDistance("almostXYears",p+1,i)}}function dv(t,e,n){const r=Ot(),s=(n==null?void 0:n.locale)??r.locale??Qs,a=Mn(t,e);if(isNaN(a))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[i,l]=je(n==null?void 0:n.in,...a>0?[e,t]:[t,e]),c=wr((n==null?void 0:n.roundingMethod)??"round"),d=l.getTime()-i.getTime(),u=d/Kn,h=Rt(l)-Rt(i),g=(d-h)/Kn,m=n==null?void 0:n.unit;let p;if(m?p=m:u<1?p="second":u<60?p="minute":u<dl?p="hour":g<Vs?p="day":g<Ow?p="month":p="year",p==="second"){const b=c(d/1e3);return s.formatDistance("xSeconds",b,o)}else if(p==="minute"){const b=c(u);return s.formatDistance("xMinutes",b,o)}else if(p==="hour"){const b=c(u/60);return s.formatDistance("xHours",b,o)}else if(p==="day"){const b=c(g/dl);return s.formatDistance("xDays",b,o)}else if(p==="month"){const b=c(g/Vs);return b===12&&m!=="month"?s.formatDistance("xYears",1,o):s.formatDistance("xMonths",b,o)}else{const b=c(g/Ow);return s.formatDistance("xYears",b,o)}}function QP(t,e){return cv(t,st(t),e)}function JP(t,e){return dv(t,st(t),e)}const qP=["years","months","weeks","days","hours","minutes","seconds"];function $P(t,e){const n=Ot(),r=(e==null?void 0:e.locale)??n.locale??Qs,s=(e==null?void 0:e.format)??qP,a=(e==null?void 0:e.zero)??!1,o=(e==null?void 0:e.delimiter)??" ";return r.formatDistance?s.reduce((l,c)=>{const d=`x${c.replace(/(^.)/,h=>h.toUpperCase())}`,u=t[c];return u!==void 0&&(a||t[c])?l.concat(r.formatDistance(d,u)):l},[]).join(o):""}function e6(t,e){const n=Q(t,e==null?void 0:e.in);if(isNaN(+n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="",o="";const i=r==="extended"?"-":"",l=r==="extended"?":":"";if(s!=="time"){const c=ue(n.getDate(),2),d=ue(n.getMonth()+1,2);a=`${ue(n.getFullYear(),4)}${i}${d}${i}${c}`}if(s!=="date"){const c=n.getTimezoneOffset();if(c!==0){const p=Math.abs(c),b=ue(Math.trunc(p/60),2),y=ue(p%60,2);o=`${c<0?"+":"-"}${b}:${y}`}else o="Z";const d=ue(n.getHours(),2),u=ue(n.getMinutes(),2),h=ue(n.getSeconds(),2),g=a===""?"":"T",m=[d,u,h].join(l);a=`${a}${g}${m}${o}`}return a}function t6(t,e){const n=Q(t,e==null?void 0:e.in);if(!Zn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="";const o=r==="extended"?"-":"",i=r==="extended"?":":"";if(s!=="time"){const l=ue(n.getDate(),2),c=ue(n.getMonth()+1,2);a=`${ue(n.getFullYear(),4)}${o}${c}${o}${l}`}if(s!=="date"){const l=ue(n.getHours(),2),c=ue(n.getMinutes(),2),d=ue(n.getSeconds(),2);a=`${a}${a===""?"":" "}${l}${i}${c}${i}${d}`}return a}function n6(t){const{years:e=0,months:n=0,days:r=0,hours:s=0,minutes:a=0,seconds:o=0}=t;return`P${e}Y${n}M${r}DT${s}H${a}M${o}S`}function r6(t,e){const n=Q(t,e==null?void 0:e.in);if(!Zn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.fractionDigits)??0,s=ue(n.getDate(),2),a=ue(n.getMonth()+1,2),o=n.getFullYear(),i=ue(n.getHours(),2),l=ue(n.getMinutes(),2),c=ue(n.getSeconds(),2);let d="";if(r>0){const g=n.getMilliseconds(),m=Math.trunc(g*Math.pow(10,r-3));d="."+ue(m,r)}let u="";const h=n.getTimezoneOffset();if(h!==0){const g=Math.abs(h),m=ue(Math.trunc(g/60),2),p=ue(g%60,2);u=`${h<0?"+":"-"}${m}:${p}`}else u="Z";return`${o}-${a}-${s}T${i}:${l}:${c}${d}${u}`}const s6=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function o6(t){const e=Q(t);if(!Zn(e))throw new RangeError("Invalid time value");const n=s6[e.getUTCDay()],r=ue(e.getUTCDate(),2),s=a6[e.getUTCMonth()],a=e.getUTCFullYear(),o=ue(e.getUTCHours(),2),i=ue(e.getUTCMinutes(),2),l=ue(e.getUTCSeconds(),2);return`${n}, ${r} ${s} ${a} ${o}:${i}:${l} GMT`}function i6(t,e,n){var u,h,g,m;const[r,s]=je(n==null?void 0:n.in,t,e),a=Ot(),o=(n==null?void 0:n.locale)??a.locale??Qs,i=(n==null?void 0:n.weekStartsOn)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??a.weekStartsOn??((m=(g=a.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,l=Dn(r,s);if(isNaN(l))throw new RangeError("Invalid time value");let c;l<-6?c="other":l<-1?c="lastWeek":l<0?c="yesterday":l<1?c="today":l<2?c="tomorrow":l<7?c="nextWeek":c="other";const d=o.formatRelative(c,r,s,{locale:o,weekStartsOn:i});return Cl(r,d,{locale:o,weekStartsOn:i})}function l6(t,e){return Q(t*1e3,e==null?void 0:e.in)}function uv(t,e){return Q(t,e==null?void 0:e.in).getDate()}function Sl(t,e){return Q(t,e==null?void 0:e.in).getDay()}function fv(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=n.getMonth(),a=de(n,0);return a.setFullYear(r,s+1,0),a.setHours(0,0,0,0),a.getDate()}function hv(t,e){const r=Q(t,e==null?void 0:e.in).getFullYear();return r%400===0||r%4===0&&r%100!==0}function c6(t,e){const n=Q(t,e==null?void 0:e.in);return Number.isNaN(+n)?NaN:hv(n)?366:365}function d6(t,e){const r=Q(t,e==null?void 0:e.in).getFullYear();return Math.floor(r/10)*10}function gv(){return Object.assign({},Ot())}function u6(t,e){return Q(t,e==null?void 0:e.in).getHours()}function mv(t,e){const n=Q(t,e==null?void 0:e.in).getDay();return n===0?7:n}function f6(t,e){const n=yr(t,e),s=+yr(hl(n,60))-+n;return Math.round(s/lo)}function h6(t){return Q(t).getMilliseconds()}function g6(t,e){return Q(t,e==null?void 0:e.in).getMinutes()}function m6(t,e){return Q(t,e==null?void 0:e.in).getMonth()}function p6(t,e){const[n,r]=[+Q(t.start),+Q(t.end)].sort((u,h)=>u-h),[s,a]=[+Q(e.start),+Q(e.end)].sort((u,h)=>u-h);if(!(n<a&&s<r))return 0;const i=s<n?n:s,l=i-Rt(i),c=a>r?r:a,d=c-Rt(c);return Math.ceil((d-l)/Sw)}function b6(t){return Q(t).getSeconds()}function y6(t){return+Q(t)}function w6(t){return Math.trunc(+Q(t)/1e3)}function v6(t,e){var l,c,d,u;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=uv(Q(t,e==null?void 0:e.in));if(isNaN(s))return NaN;const a=Sl(vl(t,e));let o=r-a;o<=0&&(o+=7);const i=s-o;return Math.ceil(i/7)+1}function pv(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),Q(n,e==null?void 0:e.in)}function x6(t,e){const n=Q(t,e==null?void 0:e.in);return pl(pv(n,e),vl(n,e),e)+1}function k6(t,e){return Q(t,e==null?void 0:e.in).getFullYear()}function _6(t){return Math.trunc(t*Jr)}function C6(t){return Math.trunc(t*Dw)}function S6(t){return Math.trunc(t*ul)}function O6(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);if(isNaN(+r))throw new TypeError("Start date is invalid");if(isNaN(+s))throw new TypeError("End date is invalid");if(n!=null&&n.assertPositive&&+r>+s)throw new TypeError("End date must be after start date");return{start:r,end:s}}function D6(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t),s={},a=Jw(r,n);a&&(s.years=a);const o=Us(n,{years:s.years}),i=wl(r,o);i&&(s.months=i);const l=Us(o,{months:s.months}),c=Iu(r,l);c&&(s.days=c);const d=Us(l,{days:s.days}),u=bl(r,d);u&&(s.hours=u);const h=Us(d,{hours:s.hours}),g=yl(r,h);g&&(s.minutes=g);const m=Us(h,{minutes:s.minutes}),p=Ks(r,m);return p&&(s.seconds=p),s}function M6(t,e,n){let r;return E6(e)?r=e:n=e,new Intl.DateTimeFormat(n==null?void 0:n.locale,r).format(Q(t))}function E6(t){return t!==void 0&&!("locale"in t)}function T6(t,e,n){let r=0,s;const[a,o]=je(n==null?void 0:n.in,t,e);if(n!=null&&n.unit)s=n==null?void 0:n.unit,s==="second"?r=Ks(a,o):s==="minute"?r=yl(a,o):s==="hour"?r=bl(a,o):s==="day"?r=Dn(a,o):s==="week"?r=pl(a,o):s==="month"?r=gl(a,o):s==="quarter"?r=ml(a,o):s==="year"&&(r=fo(a,o));else{const l=Ks(a,o);Math.abs(l)<Eu?(r=Ks(a,o),s="second"):Math.abs(l)<ul?(r=yl(a,o),s="minute"):Math.abs(l)<Tu&&Math.abs(Dn(a,o))<1?(r=bl(a,o),s="hour"):Math.abs(l)<jT&&(r=Dn(a,o))&&Math.abs(r)<7?s="day":Math.abs(l)<Nw?(r=pl(a,o),s="week"):Math.abs(l)<IT?(r=gl(a,o),s="month"):Math.abs(l)<Pw&&ml(a,o)<4?(r=ml(a,o),s="quarter"):(r=fo(a,o),s="year")}return new Intl.RelativeTimeFormat(n==null?void 0:n.locale,{numeric:"auto",...n}).format(r,s)}function P6(t,e){return+Q(t)>+Q(e)}function N6(t,e){return+Q(t)<+Q(e)}function j6(t,e){return+Q(t)==+Q(e)}function I6(t,e,n){const r=new Date(t,e,n);return r.getFullYear()===t&&r.getMonth()===e&&r.getDate()===n}function A6(t,e){return Q(t,e==null?void 0:e.in).getDate()===1}function R6(t,e){return Q(t,e==null?void 0:e.in).getDay()===5}function L6(t){return+Q(t)>Date.now()}function bv(t,e){const n=F6(e)?new e(0):de(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function F6(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const B6=10;class yv{constructor(){$(this,"subPriority",0)}validate(e,n){return!0}}class W6 extends yv{constructor(e,n,r,s,a){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=s,a&&(this.subPriority=a)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class z6 extends yv{constructor(n,r){super();$(this,"priority",B6);$(this,"subPriority",-1);this.context=n||(s=>de(r,s))}set(n,r){return r.timestampIsSet?n:de(n,bv(n,this.context))}}class Ce{run(e,n,r,s){const a=this.parse(e,n,r,s);return a?{setter:new W6(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,n,r){return!0}}class H6 extends Ce{constructor(){super(...arguments);$(this,"priority",140);$(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const qe={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Nn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function $e(t,e){return t&&{value:e(t.value),rest:t.rest}}function Ve(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function jn(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*Jr+a*Kn+o*Mu),rest:e.slice(n[0].length)}}function wv(t){return Ve(qe.anyDigitsSigned,t)}function Xe(t,e){switch(t){case 1:return Ve(qe.singleDigit,e);case 2:return Ve(qe.twoDigits,e);case 3:return Ve(qe.threeDigits,e);case 4:return Ve(qe.fourDigits,e);default:return Ve(new RegExp("^\\d{1,"+t+"}"),e)}}function Ol(t,e){switch(t){case 1:return Ve(qe.singleDigitSigned,e);case 2:return Ve(qe.twoDigitsSigned,e);case 3:return Ve(qe.threeDigitsSigned,e);case 4:return Ve(qe.fourDigitsSigned,e);default:return Ve(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Vu(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function vv(t,e){const n=e>0,r=n?e:1-e;let s;if(r<=50)s=t||100;else{const a=r+50,o=Math.trunc(a/100)*100,i=t>=a%100;s=t+o-(i?100:0)}return n?s:1-s}function xv(t){return t%400===0||t%4===0&&t%100!==0}class Y6 extends Ce{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return $e(Xe(4,n),a);case"yo":return $e(s.ordinalNumber(n,{unit:"year"}),a);default:return $e(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const a=n.getFullYear();if(s.isTwoDigitYear){const i=vv(s.year,a);return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class V6 extends Ce{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return $e(Xe(4,n),a);case"Yo":return $e(s.ordinalNumber(n,{unit:"year"}),a);default:return $e(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,a){const o=xl(n,a);if(s.isTwoDigitYear){const l=vv(s.year,o);return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),bt(n,a)}const i=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(i,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),bt(n,a)}}class U6 extends Ce{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Ol(r==="R"?4:r.length,n)}set(n,r,s){const a=de(n,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),un(a)}}class X6 extends Ce{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Ol(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class G6 extends Ce{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return Xe(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class K6 extends Ce{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return Xe(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class Z6 extends Ce{constructor(){super(...arguments);$(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);$(this,"priority",110)}parse(n,r,s){const a=o=>o-1;switch(r){case"M":return $e(Ve(qe.month,n),a);case"MM":return $e(Xe(2,n),a);case"Mo":return $e(s.ordinalNumber(n,{unit:"month"}),a);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class Q6 extends Ce{constructor(){super(...arguments);$(this,"priority",110);$(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const a=o=>o-1;switch(r){case"L":return $e(Ve(qe.month,n),a);case"LL":return $e(Xe(2,n),a);case"Lo":return $e(s.ordinalNumber(n,{unit:"month"}),a);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function kv(t,e,n){const r=Q(t,n==null?void 0:n.in),s=zu(r,n)-e;return r.setDate(r.getDate()-s*7),Q(r,n==null?void 0:n.in)}class J6 extends Ce{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return Ve(qe.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,a){return bt(kv(n,s,a),a)}}function _v(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Wu(r,n)-e;return r.setDate(r.getDate()-s*7),r}class q6 extends Ce{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return Ve(qe.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return un(_v(n,s))}}const $6=[31,28,31,30,31,30,31,31,30,31,30,31],e7=[31,29,31,30,31,30,31,31,30,31,30,31];class t7 extends Ce{constructor(){super(...arguments);$(this,"priority",90);$(this,"subPriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return Ve(qe.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear(),a=xv(s),o=n.getMonth();return a?r>=1&&r<=e7[o]:r>=1&&r<=$6[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class n7 extends Ce{constructor(){super(...arguments);$(this,"priority",90);$(this,"subpriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return Ve(qe.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear();return xv(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function Dl(t,e,n){var u,h,g,m;const r=Ot(),s=(n==null?void 0:n.weekStartsOn)??((h=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((m=(g=r.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,a=Q(t,n==null?void 0:n.in),o=a.getDay(),l=(e%7+7)%7,c=7-s,d=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return rn(a,d,n)}class r7 extends Ce{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Dl(n,s,a),n.setHours(0,0,0,0),n}}class s7 extends Ce{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return $e(Xe(r.length,n),o);case"eo":return $e(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Dl(n,s,a),n.setHours(0,0,0,0),n}}class a7 extends Ce{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return $e(Xe(r.length,n),o);case"co":return $e(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=Dl(n,s,a),n.setHours(0,0,0,0),n}}function Cv(t,e,n){const r=Q(t,n==null?void 0:n.in),s=mv(r,n),a=e-s;return rn(r,a,n)}class o7 extends Ce{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const a=o=>o===0?7:o;switch(r){case"i":case"ii":return Xe(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return $e(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return $e(s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return $e(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return $e(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=Cv(n,s),n.setHours(0,0,0,0),n}}class i7 extends Ce{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Vu(s),0,0,0),n}}class l7 extends Ce{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Vu(s),0,0,0),n}}class c7 extends Ce{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Vu(s),0,0,0),n}}class d7 extends Ce{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return Ve(qe.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const a=n.getHours()>=12;return a&&s<12?n.setHours(s+12,0,0,0):!a&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class u7 extends Ce{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return Ve(qe.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class f7 extends Ce{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return Ve(qe.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class h7 extends Ce{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return Ve(qe.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const a=s<=24?s%24:s;return n.setHours(a,0,0,0),n}}class g7 extends Ce{constructor(){super(...arguments);$(this,"priority",60);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return Ve(qe.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class m7 extends Ce{constructor(){super(...arguments);$(this,"priority",50);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return Ve(qe.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class p7 extends Ce{constructor(){super(...arguments);$(this,"priority",30);$(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=a=>Math.trunc(a*Math.pow(10,-r.length+3));return $e(Xe(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class b7 extends Ce{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return jn(Nn.basicOptionalMinutes,n);case"XX":return jn(Nn.basic,n);case"XXXX":return jn(Nn.basicOptionalSeconds,n);case"XXXXX":return jn(Nn.extendedOptionalSeconds,n);case"XXX":default:return jn(Nn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:de(n,n.getTime()-Rt(n)-s)}}class y7 extends Ce{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return jn(Nn.basicOptionalMinutes,n);case"xx":return jn(Nn.basic,n);case"xxxx":return jn(Nn.basicOptionalSeconds,n);case"xxxxx":return jn(Nn.extendedOptionalSeconds,n);case"xxx":default:return jn(Nn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:de(n,n.getTime()-Rt(n)-s)}}class w7 extends Ce{constructor(){super(...arguments);$(this,"priority",40);$(this,"incompatibleTokens","*")}parse(n){return wv(n)}set(n,r,s){return[de(n,s*1e3),{timestampIsSet:!0}]}}class v7 extends Ce{constructor(){super(...arguments);$(this,"priority",20);$(this,"incompatibleTokens","*")}parse(n){return wv(n)}set(n,r,s){return[de(n,s),{timestampIsSet:!0}]}}const Sv={G:new H6,y:new Y6,Y:new V6,R:new U6,u:new X6,Q:new G6,q:new K6,M:new Z6,L:new Q6,w:new J6,I:new q6,d:new t7,D:new n7,E:new r7,e:new s7,c:new a7,i:new o7,a:new i7,b:new l7,B:new c7,h:new d7,H:new u7,K:new f7,k:new h7,m:new g7,s:new m7,S:new p7,X:new b7,x:new y7,t:new w7,T:new v7},x7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,k7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_7=/^'([^]*?)'?$/,C7=/''/g,S7=/\S/,O7=/[a-zA-Z]/;function Ov(t,e,n,r){var b,y,v,k,w,x,C,N;const s=()=>de((r==null?void 0:r.in)||n,NaN),a=gv(),o=(r==null?void 0:r.locale)??a.locale??Qs,i=(r==null?void 0:r.firstWeekContainsDate)??((y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(v=a.locale)==null?void 0:v.options)==null?void 0:k.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((x=(w=r==null?void 0:r.locale)==null?void 0:w.options)==null?void 0:x.weekStartsOn)??a.weekStartsOn??((N=(C=a.locale)==null?void 0:C.options)==null?void 0:N.weekStartsOn)??0;if(!e)return t?s():Q(n,r==null?void 0:r.in);const c={firstWeekContainsDate:i,weekStartsOn:l,locale:o},d=[new z6(r==null?void 0:r.in,n)],u=e.match(k7).map(M=>{const P=M[0];if(P in _l){const S=_l[P];return S(M,o.formatLong)}return M}).join("").match(x7),h=[];for(let M of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&lv(M)&&Yu(M,e,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&iv(M)&&Yu(M,e,t);const P=M[0],S=Sv[P];if(S){const{incompatibleTokens:B}=S;if(Array.isArray(B)){const T=h.find(D=>B.includes(D.token)||D.token===P);if(T)throw new RangeError(`The format string mustn't contain \`${T.fullToken}\` and \`${M}\` at the same time`)}else if(S.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${M}\` and any other token at the same time`);h.push({token:P,fullToken:M});const A=S.run(t,M,o.match,c);if(!A)return s();d.push(A.setter),t=A.rest}else{if(P.match(O7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");if(M==="''"?M="'":P==="'"&&(M=D7(M)),t.indexOf(M)===0)t=t.slice(M.length);else return s()}}if(t.length>0&&S7.test(t))return s();const g=d.map(M=>M.priority).sort((M,P)=>P-M).filter((M,P,S)=>S.indexOf(M)===P).map(M=>d.filter(P=>P.priority===M).sort((P,S)=>S.subPriority-P.subPriority)).map(M=>M[0]);let m=Q(n,r==null?void 0:r.in);if(isNaN(+m))return s();const p={};for(const M of g){if(!M.validate(m,c))return s();const P=M.set(m,p,c);Array.isArray(P)?(m=P[0],Object.assign(p,P[1])):m=P}return m}function D7(t){return t.match(_7)[1].replace(C7,"'")}function M7(t,e,n){return Zn(Ov(t,e,new Date,n))}function E7(t,e){return Q(t,e==null?void 0:e.in).getDay()===1}function T7(t){return+Q(t)<Date.now()}function Uu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMinutes(0,0,0),n}function Dv(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+Uu(r)==+Uu(s)}function Xu(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+bt(r,n)==+bt(s,n)}function Mv(t,e,n){return Xu(t,e,{...n,weekStartsOn:1})}function P7(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+yr(r)==+yr(s)}function Gu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setSeconds(0,0),n}function Ev(t,e){return+Gu(t)==+Gu(e)}function Tv(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function Pv(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return+qr(r)==+qr(s)}function Ku(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMilliseconds(0),n}function Nv(t,e){return+Ku(t)==+Ku(e)}function jv(t,e,n){const[r,s]=je(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()}function N7(t,e){return Dv(Q(t,e==null?void 0:e.in),st((e==null?void 0:e.in)||t))}function j7(t,e){return Mv(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function I7(t){return Ev(t,st(t))}function A7(t,e){return Tv(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function R7(t,e){return Pv(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function L7(t){return Nv(t,st(t))}function F7(t,e){return Xu(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t),e)}function B7(t,e){return jv(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function W7(t,e){return Q(t,e==null?void 0:e.in).getDay()===4}function z7(t,e){return uo(de((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function H7(t,e){return uo(t,rn(st((e==null?void 0:e.in)||t),1),e)}function Y7(t,e){return Q(t,e==null?void 0:e.in).getDay()===2}function V7(t,e){return Q(t,e==null?void 0:e.in).getDay()===3}function U7(t,e,n){const r=+Q(t,n==null?void 0:n.in),[s,a]=[+Q(e.start,n==null?void 0:n.in),+Q(e.end,n==null?void 0:n.in)].sort((o,i)=>o-i);return r>=s&&r<=a}function Ml(t,e,n){return rn(t,-e,n)}function X7(t,e){return uo(de((e==null?void 0:e.in)||t,t),Ml(st((e==null?void 0:e.in)||t),1))}function G7(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s+1,0,0),n.setHours(0,0,0,0),Q(n,e==null?void 0:e.in)}function Iv(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Q(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setHours(0,0,0,0),s.setDate(s.getDate()+o),s}function K7(t,e){return Iv(t,{...e,weekStartsOn:1})}function Z7(t,e){const n=br(t,e),r=de((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=un(r,e);return s.setDate(s.getDate()-1),s}function Q7(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(0,0,0,0),n}function J7(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}const q7=/(\w)\1*|''|'(''|[^'])+('|$)|./g,$7=/^'([^]*?)'?$/,e9=/''/g,t9=/[a-zA-Z]/;function n9(t,e){const n=Q(t);if(!Zn(n))throw new RangeError("Invalid time value");const r=e.match(q7);return r?r.map(a=>{if(a==="''")return"'";const o=a[0];if(o==="'")return r9(a);const i=Pn[o];if(i)return i(n,a);if(o.match(t9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return a}).join(""):""}function r9(t){const e=t.match($7);return e?e[1].replace(e9,"'"):t}function s9({years:t,months:e,weeks:n,days:r,hours:s,minutes:a,seconds:o}){let i=0;t&&(i+=t*cl),e&&(i+=e*(cl/12)),n&&(i+=n*7),r&&(i+=r);let l=i*24*60*60;return s&&(l+=s*60*60),a&&(l+=a*60),o&&(l+=o),Math.trunc(l*1e3)}function a9(t){const e=t/Jr;return Math.trunc(e)}function o9(t){const e=t/Kn;return Math.trunc(e)}function i9(t){const e=t/Mu;return Math.trunc(e)}function l9(t){const e=t/Dw;return Math.trunc(e)}function c9(t){return Math.trunc(t*Kn)}function d9(t){return Math.trunc(t*Eu)}function u9(t){const e=t/Mw;return Math.trunc(e)}function f9(t){const e=t/Ew;return Math.trunc(e)}function vr(t,e,n){let r=e-Sl(t,n);return r<=0&&(r+=7),rn(t,r,n)}function h9(t,e){return vr(t,5,e)}function g9(t,e){return vr(t,1,e)}function m9(t,e){return vr(t,6,e)}function p9(t,e){return vr(t,0,e)}function b9(t,e){return vr(t,4,e)}function y9(t,e){return vr(t,2,e)}function w9(t,e){return vr(t,3,e)}function v9(t,e){const n=()=>de(e==null?void 0:e.in,NaN),r=(e==null?void 0:e.additionalDigits)??2,s=C9(t);let a;if(s.date){const c=S9(s.date,r);a=O9(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const o=+a;let i=0,l;if(s.time&&(i=D9(s.time),isNaN(i)))return n();if(s.timezone){if(l=M9(s.timezone),isNaN(l))return n()}else{const c=new Date(o+i),d=Q(0,e==null?void 0:e.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Q(o+i+l,e==null?void 0:e.in)}const El={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},x9=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,k9=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_9=/^([+-])(\d{2})(?::?(\d{2}))?$/;function C9(t){const e={},n=t.split(El.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],El.timeZoneDelimiter.test(e.date)&&(e.date=t.split(El.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const s=El.timezone.exec(r);s?(e.time=r.replace(s[1],""),e.timezone=s[1]):e.time=r}return e}function S9(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const s=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?s:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function O9(t,e){if(e===null)return new Date(NaN);const n=t.match(x9);if(!n)return new Date(NaN);const r=!!n[4],s=ho(n[1]),a=ho(n[2])-1,o=ho(n[3]),i=ho(n[4]),l=ho(n[5])-1;if(r)return j9(e,i,l)?E9(e,i,l):new Date(NaN);{const c=new Date(0);return!P9(e,a,o)||!N9(e,s)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(s,o)),c)}}function ho(t){return t?parseInt(t):1}function D9(t){const e=t.match(k9);if(!e)return NaN;const n=Zu(e[1]),r=Zu(e[2]),s=Zu(e[3]);return I9(n,r,s)?n*Jr+r*Kn+s*1e3:NaN}function Zu(t){return t&&parseFloat(t.replace(",","."))||0}function M9(t){if(t==="Z")return 0;const e=t.match(_9);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return A9(r,s)?n*(r*Jr+s*Kn):NaN}function E9(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const s=r.getUTCDay()||7,a=(e-1)*7+n+1-s;return r.setUTCDate(r.getUTCDate()+a),r}const T9=[31,null,31,30,31,30,31,31,30,31,30,31];function Av(t){return t%400===0||t%4===0&&t%100!==0}function P9(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(T9[e]||(Av(t)?29:28))}function N9(t,e){return e>=1&&e<=(Av(t)?366:365)}function j9(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function I9(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function A9(t,e){return e>=0&&e<=59}function R9(t,e){const n=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return Q(n?Date.UTC(+n[1],+n[2]-1,+n[3],+n[4]-(+n[9]||0)*(n[8]=="-"?-1:1),+n[5]-(+n[10]||0)*(n[8]=="-"?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3)):NaN,e==null?void 0:e.in)}function xr(t,e,n){let r=Sl(t,n)-e;return r<=0&&(r+=7),Ml(t,r,n)}function L9(t,e){return xr(t,5,e)}function F9(t,e){return xr(t,1,e)}function B9(t,e){return xr(t,6,e)}function W9(t,e){return xr(t,0,e)}function z9(t,e){return xr(t,4,e)}function H9(t,e){return xr(t,2,e)}function Y9(t,e){return xr(t,3,e)}function V9(t){return Math.trunc(t*Mw)}function U9(t){const e=t/Tw;return Math.trunc(e)}function X9(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>12)return de((e==null?void 0:e.in)||t,NaN);const r=Q(t,e==null?void 0:e.in),s=r.getMinutes()/60,a=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,i=r.getHours()+s+a+o,l=(e==null?void 0:e.roundingMethod)??"round",d=wr(l)(i/n)*n;return r.setHours(d,0,0,0),r}function G9(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>30)return de(t,NaN);const r=Q(t,e==null?void 0:e.in),s=r.getSeconds()/60,a=r.getMilliseconds()/1e3/60,o=r.getMinutes()+s+a,i=(e==null?void 0:e.roundingMethod)??"round",c=wr(i)(o/n)*n;return r.setMinutes(c,0,0),r}function K9(t){const e=t/ul;return Math.trunc(e)}function Z9(t){return t*Mu}function Q9(t){const e=t/Eu;return Math.trunc(e)}function Qu(t,e,n){const r=Q(t,n==null?void 0:n.in),s=r.getFullYear(),a=r.getDate(),o=de((n==null?void 0:n.in)||t,0);o.setFullYear(s,e,15),o.setHours(0,0,0,0);const i=fv(o);return r.setMonth(e,Math.min(a,i)),r}function J9(t,e,n){let r=Q(t,n==null?void 0:n.in);return isNaN(+r)?de((n==null?void 0:n.in)||t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=Qu(r,e.month)),e.date!=null&&r.setDate(e.date),e.hours!=null&&r.setHours(e.hours),e.minutes!=null&&r.setMinutes(e.minutes),e.seconds!=null&&r.setSeconds(e.seconds),e.milliseconds!=null&&r.setMilliseconds(e.milliseconds),r)}function q9(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setDate(e),r}function $9(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setMonth(0),r.setDate(e),r}function eN(t){const e={},n=Ot();for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);AT(e)}function tN(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setHours(e),r}function nN(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setMilliseconds(e),r}function rN(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setMinutes(e),r}function sN(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Math.trunc(r.getMonth()/3)+1,a=e-s;return Qu(r,r.getMonth()+a*3)}function aN(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setSeconds(e),r}function oN(t,e,n){var l,c,d,u;const r=Ot(),s=(n==null?void 0:n.firstWeekContainsDate)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(d=r.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,a=Dn(Q(t,n==null?void 0:n.in),kl(t,n),n),o=de((n==null?void 0:n.in)||t,0);o.setFullYear(e,0,s),o.setHours(0,0,0,0);const i=kl(o,n);return i.setDate(i.getDate()+a),i}function iN(t,e,n){const r=Q(t,n==null?void 0:n.in);return isNaN(+r)?de((n==null?void 0:n.in)||t,NaN):(r.setFullYear(e),r)}function lN(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=Math.floor(r/10)*10;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}function cN(t){return Gs(Date.now(),t)}function dN(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=de(t==null?void 0:t.in,0);return a.setFullYear(n,r,s+1),a.setHours(0,0,0,0),a}function uN(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s-1),a.setHours(0,0,0,0),a}function Rv(t,e,n){return co(t,-e,n)}function fN(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Rv(t,s+r*12,n),u=Ml(d,o+a*7,n),h=l+i*60,m=(c+h*60)*1e3;return de((n==null?void 0:n.in)||t,+u-m)}function hN(t,e,n){return Rw(t,-e,n)}function gN(t,e,n){return Lw(t,-e,n)}function mN(t,e,n){return fl(t,-e,n)}function pN(t,e,n){return Pu(t,-e,n)}function bN(t,e,n){return Nu(t,-e,n)}function yN(t,e,n){return zw(t,-e,n)}function wN(t,e,n){return hl(t,-e,n)}function vN(t,e,n){return Hw(t,-e,n)}function xN(t){return Math.trunc(t*Cw)}function kN(t){return Math.trunc(t*cl)}function _N(t){return Math.trunc(t*Ew)}function CN(t){return Math.trunc(t*Tw)}const es=ah(Object.freeze(Object.defineProperty({__proto__:null,add:Us,addBusinessDays:Rw,addDays:rn,addHours:Lw,addISOWeekYears:Ww,addMilliseconds:fl,addMinutes:Pu,addMonths:co,addQuarters:Nu,addSeconds:zw,addWeeks:hl,addYears:Hw,areIntervalsOverlapping:RT,clamp:LT,closestIndexTo:Uw,closestTo:FT,compareAsc:Mn,compareDesc:BT,constructFrom:de,constructNow:st,daysToWeeks:WT,differenceInBusinessDays:zT,differenceInCalendarDays:Dn,differenceInCalendarISOWeekYears:Gw,differenceInCalendarISOWeeks:HT,differenceInCalendarMonths:gl,differenceInCalendarQuarters:ml,differenceInCalendarWeeks:pl,differenceInCalendarYears:fo,differenceInDays:Iu,differenceInHours:bl,differenceInISOWeekYears:YT,differenceInMilliseconds:Au,differenceInMinutes:yl,differenceInMonths:wl,differenceInQuarters:VT,differenceInSeconds:Ks,differenceInWeeks:UT,differenceInYears:Jw,eachDayOfInterval:qw,eachHourOfInterval:XT,eachMinuteOfInterval:GT,eachMonthOfInterval:KT,eachQuarterOfInterval:ZT,eachWeekOfInterval:QT,eachWeekendOfInterval:Fu,eachWeekendOfMonth:JT,eachWeekendOfYear:qT,eachYearOfInterval:$T,endOfDay:Ru,endOfDecade:eP,endOfHour:tP,endOfISOWeek:nP,endOfISOWeekYear:rP,endOfMinute:sP,endOfMonth:Lu,endOfQuarter:aP,endOfSecond:oP,endOfToday:iP,endOfTomorrow:lP,endOfWeek:ev,endOfYear:$w,endOfYesterday:cP,format:Cl,formatDate:Cl,formatDistance:cv,formatDistanceStrict:dv,formatDistanceToNow:QP,formatDistanceToNowStrict:JP,formatDuration:$P,formatISO:e6,formatISO9075:t6,formatISODuration:n6,formatRFC3339:r6,formatRFC7231:o6,formatRelative:i6,formatters:Hu,fromUnixTime:l6,getDate:uv,getDay:Sl,getDayOfYear:nv,getDaysInMonth:fv,getDaysInYear:c6,getDecade:d6,getDefaultOptions:gv,getHours:u6,getISODay:mv,getISOWeek:Wu,getISOWeekYear:br,getISOWeeksInYear:f6,getMilliseconds:h6,getMinutes:g6,getMonth:m6,getOverlappingDaysInIntervals:p6,getQuarter:ju,getSeconds:b6,getTime:y6,getUnixTime:w6,getWeek:zu,getWeekOfMonth:v6,getWeekYear:xl,getWeeksInMonth:x6,getYear:k6,hoursToMilliseconds:_6,hoursToMinutes:C6,hoursToSeconds:S6,interval:O6,intervalToDuration:D6,intlFormat:M6,intlFormatDistance:T6,isAfter:P6,isBefore:N6,isDate:Xw,isEqual:j6,isExists:I6,isFirstDayOfMonth:A6,isFriday:R6,isFuture:L6,isLastDayOfMonth:Qw,isLeapYear:hv,isMatch:M7,isMonday:E7,isPast:T7,isSameDay:uo,isSameHour:Dv,isSameISOWeek:Mv,isSameISOWeekYear:P7,isSameMinute:Ev,isSameMonth:Tv,isSameQuarter:Pv,isSameSecond:Nv,isSameWeek:Xu,isSameYear:jv,isSaturday:Iw,isSunday:Aw,isThisHour:N7,isThisISOWeek:j7,isThisMinute:I7,isThisMonth:A7,isThisQuarter:R7,isThisSecond:L7,isThisWeek:F7,isThisYear:B7,isThursday:W7,isToday:z7,isTomorrow:H7,isTuesday:Y7,isValid:Zn,isWednesday:V7,isWeekend:Xs,isWithinInterval:U7,isYesterday:X7,lastDayOfDecade:G7,lastDayOfISOWeek:K7,lastDayOfISOWeekYear:Z7,lastDayOfMonth:pv,lastDayOfQuarter:Q7,lastDayOfWeek:Iv,lastDayOfYear:J7,lightFormat:n9,lightFormatters:Pn,longFormatters:_l,max:Yw,milliseconds:s9,millisecondsToHours:a9,millisecondsToMinutes:o9,millisecondsToSeconds:i9,min:Vw,minutesToHours:l9,minutesToMilliseconds:c9,minutesToSeconds:d9,monthsToQuarters:u9,monthsToYears:f9,nextDay:vr,nextFriday:h9,nextMonday:g9,nextSaturday:m9,nextSunday:p9,nextThursday:b9,nextTuesday:y9,nextWednesday:w9,parse:Ov,parseISO:v9,parseJSON:R9,parsers:Sv,previousDay:xr,previousFriday:L9,previousMonday:F9,previousSaturday:B9,previousSunday:W9,previousThursday:z9,previousTuesday:H9,previousWednesday:Y9,quartersToMonths:V9,quartersToYears:U9,roundToNearestHours:X9,roundToNearestMinutes:G9,secondsToHours:K9,secondsToMilliseconds:Z9,secondsToMinutes:Q9,set:J9,setDate:q9,setDay:Dl,setDayOfYear:$9,setDefaultOptions:eN,setHours:tN,setISODay:Cv,setISOWeek:_v,setISOWeekYear:Bw,setMilliseconds:nN,setMinutes:rN,setMonth:Qu,setQuarter:sN,setSeconds:aN,setWeek:kv,setWeekYear:oN,setYear:iN,startOfDay:Gs,startOfDecade:lN,startOfHour:Uu,startOfISOWeek:un,startOfISOWeekYear:yr,startOfMinute:Gu,startOfMonth:vl,startOfQuarter:qr,startOfSecond:Ku,startOfToday:cN,startOfTomorrow:dN,startOfWeek:bt,startOfWeekYear:kl,startOfYear:Bu,startOfYesterday:uN,sub:fN,subBusinessDays:hN,subDays:Ml,subHours:gN,subISOWeekYears:Zw,subMilliseconds:mN,subMinutes:pN,subMonths:Rv,subQuarters:bN,subSeconds:yN,subWeeks:wN,subYears:vN,toDate:Q,transpose:bv,weeksToDays:xN,yearsToDays:kN,yearsToMonths:_N,yearsToQuarters:CN},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.rangeShape=Gn.default=void 0;var ts=SN(_),be=Lv(Xn),Ju=Lv(sr),Dt=es;function Lv(t){return t&&t.__esModule?t:{default:t}}function Fv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Fv=function(r){return r?n:e})(t)}function SN(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Fv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function qu(){return qu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qu.apply(this,arguments)}function go(t,e,n){return e=ON(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ON(t){var e=DN(t,"string");return typeof e=="symbol"?e:String(e)}function DN(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class $u extends ts.Component{constructor(e,n){super(e,n),go(this,"handleKeyEvent",r=>{const{day:s,onMouseDown:a,onMouseUp:o}=this.props;[13,32].includes(r.keyCode)&&(r.type==="keydown"?a(s):o(s))}),go(this,"handleMouseEvent",r=>{const{day:s,disabled:a,onPreviewChange:o,onMouseEnter:i,onMouseDown:l,onMouseUp:c}=this.props,d={};if(a){o();return}switch(r.type){case"mouseenter":i(s),o(s),d.hover=!0;break;case"blur":case"mouseleave":d.hover=!1;break;case"mousedown":d.active=!0,l(s);break;case"mouseup":r.stopPropagation(),d.active=!1,c(s);break;case"focus":o(s);break}Object.keys(d).length&&this.setState(d)}),go(this,"getClassNames",()=>{const{isPassive:r,isToday:s,isWeekend:a,isStartOfWeek:o,isEndOfWeek:i,isStartOfMonth:l,isEndOfMonth:c,disabled:d,styles:u}=this.props;return(0,Ju.default)(u.day,{[u.dayPassive]:r,[u.dayDisabled]:d,[u.dayToday]:s,[u.dayWeekend]:a,[u.dayStartOfWeek]:o,[u.dayEndOfWeek]:i,[u.dayStartOfMonth]:l,[u.dayEndOfMonth]:c,[u.dayHovered]:this.state.hover,[u.dayActive]:this.state.active})}),go(this,"renderPreviewPlaceholder",()=>{const{preview:r,day:s,styles:a}=this.props;if(!r)return null;const o=r.startDate?(0,Dt.endOfDay)(r.startDate):null,i=r.endDate?(0,Dt.startOfDay)(r.endDate):null,l=(!o||(0,Dt.isAfter)(s,o))&&(!i||(0,Dt.isBefore)(s,i)),c=!l&&(0,Dt.isSameDay)(s,o),d=!l&&(0,Dt.isSameDay)(s,i);return ts.default.createElement("span",{className:(0,Ju.default)({[a.dayStartPreview]:c,[a.dayInPreview]:l,[a.dayEndPreview]:d}),style:{color:r.color}})}),go(this,"renderSelectionPlaceholders",()=>{const{styles:r,ranges:s,day:a}=this.props;return this.props.displayMode==="date"?(0,Dt.isSameDay)(this.props.day,this.props.date)?ts.default.createElement("span",{className:r.selected,style:{color:this.props.color}}):null:s.reduce((i,l)=>{let c=l.startDate,d=l.endDate;c&&d&&(0,Dt.isBefore)(d,c)&&([c,d]=[d,c]),c=c?(0,Dt.endOfDay)(c):null,d=d?(0,Dt.startOfDay)(d):null;const u=(!c||(0,Dt.isAfter)(a,c))&&(!d||(0,Dt.isBefore)(a,d)),h=!u&&(0,Dt.isSameDay)(a,c),g=!u&&(0,Dt.isSameDay)(a,d);return u||h||g?[...i,{isStartEdge:h,isEndEdge:g,isInRange:u,...l}]:i},[]).map((i,l)=>ts.default.createElement("span",{key:l,className:(0,Ju.default)({[r.startEdge]:i.isStartEdge,[r.endEdge]:i.isEndEdge,[r.inRange]:i.isInRange}),style:{color:i.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:e}=this.props;return ts.default.createElement("button",qu({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),ts.default.createElement("span",{className:this.props.styles.dayNumber},(e==null?void 0:e(this.props.day))||ts.default.createElement("span",null,(0,Dt.format)(this.props.day,this.props.dayDisplayFormat))))}}$u.defaultProps={};const MN=Gn.rangeShape=be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string,key:be.default.string,autoFocus:be.default.bool,disabled:be.default.bool,showDateDisplay:be.default.bool});$u.propTypes={day:be.default.object.isRequired,dayDisplayFormat:be.default.string,date:be.default.object,ranges:be.default.arrayOf(MN),preview:be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string}),onPreviewChange:be.default.func,previewColor:be.default.string,disabled:be.default.bool,isPassive:be.default.bool,isToday:be.default.bool,isWeekend:be.default.bool,isStartOfWeek:be.default.bool,isEndOfWeek:be.default.bool,isStartOfMonth:be.default.bool,isEndOfMonth:be.default.bool,color:be.default.string,displayMode:be.default.oneOf(["dateRange","date"]),styles:be.default.object,onMouseDown:be.default.func,onMouseUp:be.default.func,onMouseEnter:be.default.func,dayContentRenderer:be.default.func},Gn.default=$u;var Tl={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.calcFocusDate=PN,Jn.findNextRangeIndex=NN,Jn.generateStyles=IN,Jn.getMonthDisplayRange=jN;var EN=TN(sr),qn=es;function TN(t){return t&&t.__esModule?t:{default:t}}function PN(t,e){const{shownDate:n,date:r,months:s,ranges:a,focusedRange:o,displayMode:i}=e;let l;if(i==="dateRange"){const d=a[o[0]]||{};l={start:d.startDate,end:d.endDate}}else l={start:r,end:r};l.start=(0,qn.startOfMonth)(l.start||new Date),l.end=(0,qn.endOfMonth)(l.end||l.start);const c=l.start||l.end||n||new Date;return t?(0,qn.differenceInCalendarMonths)(l.start,l.end)>s?t:c:n||c}function NN(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const n=t.findIndex((r,s)=>s>e&&r.autoFocus!==!1&&!r.disabled);return n!==-1?n:t.findIndex(r=>r.autoFocus!==!1&&!r.disabled)}function jN(t,e,n){const r=(0,qn.startOfMonth)(t,e),s=(0,qn.endOfMonth)(t,e),a=(0,qn.startOfWeek)(r,e);let o=(0,qn.endOfWeek)(s,e);return n&&(0,qn.differenceInCalendarDays)(o,a)<=34&&(o=(0,qn.addDays)(o,7)),{start:a,end:o,startDateOfMonth:r,endDateOfMonth:s}}function IN(t){return t.length?t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(s=>{n[s]=(0,EN.default)(n[s],r[s])}),n),{}):{}}Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.default=void 0;var ns=zv(_),Ae=RN(Xn),Bv=zv(Gn),at=es,AN=Jn;function RN(t){return t&&t.__esModule?t:{default:t}}function Wv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Wv=function(r){return r?n:e})(t)}function zv(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Wv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function ef(){return ef=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ef.apply(this,arguments)}function LN(t,e,n){const r=new Date;return ns.default.createElement("div",{className:t.weekDays},(0,at.eachDayOfInterval)({start:(0,at.startOfWeek)(r,e),end:(0,at.endOfWeek)(r,e)}).map((s,a)=>ns.default.createElement("span",{className:t.weekDay,key:a},(0,at.format)(s,n,e))))}class tf extends ns.PureComponent{render(){const e=new Date,{displayMode:n,focusedRange:r,drag:s,styles:a,disabledDates:o,disabledDay:i}=this.props,l=this.props.minDate&&(0,at.startOfDay)(this.props.minDate),c=this.props.maxDate&&(0,at.endOfDay)(this.props.maxDate),d=(0,AN.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let u=this.props.ranges;if(n==="dateRange"&&s.status){let{startDate:g,endDate:m}=s.range;u=u.map((p,b)=>b!==r[0]?p:{...p,startDate:g,endDate:m})}const h=this.props.showPreview&&!s.disablePreview;return ns.default.createElement("div",{className:a.month,style:this.props.style},this.props.showMonthName?ns.default.createElement("div",{className:a.monthName},(0,at.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&LN(a,this.props.dateOptions,this.props.weekdayDisplayFormat),ns.default.createElement("div",{className:a.days,onMouseLeave:this.props.onMouseLeave},(0,at.eachDayOfInterval)({start:d.start,end:d.end}).map((g,m)=>{const p=(0,at.isSameDay)(g,d.startDateOfMonth),b=(0,at.isSameDay)(g,d.endDateOfMonth),y=l&&(0,at.isBefore)(g,l)||c&&(0,at.isAfter)(g,c),v=o.some(w=>(0,at.isSameDay)(w,g)),k=i(g);return ns.default.createElement(Bv.default,ef({},this.props,{ranges:u,day:g,preview:h?this.props.preview:null,isWeekend:(0,at.isWeekend)(g,this.props.dateOptions),isToday:(0,at.isSameDay)(g,e),isStartOfWeek:(0,at.isSameDay)(g,(0,at.startOfWeek)(g,this.props.dateOptions)),isEndOfWeek:(0,at.isSameDay)(g,(0,at.endOfWeek)(g,this.props.dateOptions)),isStartOfMonth:p,isEndOfMonth:b,key:m,disabled:y||v||k,isPassive:!(0,at.isWithinInterval)(g,{start:d.startDateOfMonth,end:d.endDateOfMonth}),styles:a,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:s.range,drag:s.status}))})))}}tf.defaultProps={},tf.propTypes={style:Ae.default.object,styles:Ae.default.object,month:Ae.default.object,drag:Ae.default.object,dateOptions:Ae.default.object,disabledDates:Ae.default.array,disabledDay:Ae.default.func,preview:Ae.default.shape({startDate:Ae.default.object,endDate:Ae.default.object}),showPreview:Ae.default.bool,displayMode:Ae.default.oneOf(["dateRange","date"]),minDate:Ae.default.object,maxDate:Ae.default.object,ranges:Ae.default.arrayOf(Bv.rangeShape),focusedRange:Ae.default.arrayOf(Ae.default.number),onDragSelectionStart:Ae.default.func,onDragSelectionEnd:Ae.default.func,onDragSelectionMove:Ae.default.func,onMouseLeave:Ae.default.func,monthDisplayFormat:Ae.default.string,weekdayDisplayFormat:Ae.default.string,dayDisplayFormat:Ae.default.string,showWeekDays:Ae.default.bool,showMonthName:Ae.default.bool,fixedHeight:Ae.default.bool},Tl.default=tf;var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=void 0;var Nl=BN(_),In=Hv(Xn),FN=Hv(sr),mo=es;function Hv(t){return t&&t.__esModule?t:{default:t}}function Yv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Yv=function(r){return r?n:e})(t)}function BN(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Yv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function nf(t,e,n){return e=WN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function WN(t){var e=zN(t,"string");return typeof e=="symbol"?e:String(e)}function zN(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class rf extends Nl.PureComponent{constructor(e,n){super(e,n),nf(this,"onKeyDown",r=>{const{value:s}=this.state;r.key==="Enter"&&this.update(s)}),nf(this,"onChange",r=>{this.setState({value:r.target.value,changed:!0,invalid:!1})}),nf(this,"onBlur",()=>{const{value:r}=this.state;this.update(r)}),this.state={invalid:!1,changed:!1,value:this.formatDate(e)}}componentDidUpdate(e){const{value:n}=e;(0,mo.isEqual)(n,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(e){let{value:n,dateDisplayFormat:r,dateOptions:s}=e;return n&&(0,mo.isValid)(n)?(0,mo.format)(n,r,s):""}update(e){const{invalid:n,changed:r}=this.state;if(n||!r||!e)return;const{onChange:s,dateDisplayFormat:a,dateOptions:o}=this.props,i=(0,mo.parse)(e,a,new Date,o);(0,mo.isValid)(i)?this.setState({changed:!1},()=>s(i)):this.setState({invalid:!0})}render(){const{className:e,readOnly:n,placeholder:r,ariaLabel:s,disabled:a,onFocus:o}=this.props,{value:i,invalid:l}=this.state;return Nl.default.createElement("span",{className:(0,FN.default)("rdrDateInput",e)},Nl.default.createElement("input",{readOnly:n,disabled:a,value:i,placeholder:r,"aria-label":s,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:o}),l&&Nl.default.createElement("span",{className:"rdrWarning"},"⚠"))}}rf.propTypes={value:In.default.object,placeholder:In.default.string,disabled:In.default.bool,readOnly:In.default.bool,dateOptions:In.default.object,dateDisplayFormat:In.default.string,ariaLabel:In.default.string,className:In.default.string,onFocus:In.default.func.isRequired,onChange:In.default.func.isRequired},rf.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},Pl.default=rf;var Vv={};(function(t){(function(e,n){n(t,_,f)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:d1,function(e,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function s(F){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},s(F)}function a(F,L){if(!(F instanceof L))throw new TypeError("Cannot call a class as a function")}function o(F,L){for(var R=0;R<L.length;R++){var O=L[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(F,v(O.key),O)}}function i(F,L,R){return L&&o(F.prototype,L),R&&o(F,R),Object.defineProperty(F,"prototype",{writable:!1}),F}function l(F,L,R){return L=h(L),c(F,u()?Reflect.construct(L,R||[],h(F).constructor):L.apply(F,R))}function c(F,L){if(L&&(s(L)=="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(F)}function d(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function u(){try{var F=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!F})()}function h(F){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)},h(F)}function g(F,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(L&&L.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),L&&m(F,L)}function m(F,L){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,O){return R.__proto__=O,R},m(F,L)}function p(F,L){var R=Object.keys(F);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(F);L&&(O=O.filter(function(z){return Object.getOwnPropertyDescriptor(F,z).enumerable})),R.push.apply(R,O)}return R}function b(F){for(var L=1;L<arguments.length;L++){var R=arguments[L]!=null?arguments[L]:{};L%2?p(Object(R),!0).forEach(function(O){y(F,O,R[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(R)):p(Object(R)).forEach(function(O){Object.defineProperty(F,O,Object.getOwnPropertyDescriptor(R,O))})}return F}function y(F,L,R){return(L=v(L))in F?Object.defineProperty(F,L,{value:R,enumerable:!0,configurable:!0,writable:!0}):F[L]=R,F}function v(F){var L=k(F,"string");return s(L)=="symbol"?L:L+""}function k(F,L){if(s(F)!="object"||!F)return F;var R=F[Symbol.toPrimitive];if(R!==void 0){var O=R.call(F,L);if(s(O)!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(F)}var w={x:"clientWidth",y:"clientHeight"},x={x:"clientTop",y:"clientLeft"},C={x:"innerWidth",y:"innerHeight"},N={x:"offsetWidth",y:"offsetHeight"},M={x:"offsetLeft",y:"offsetTop"},P={x:"overflowX",y:"overflowY"},S={x:"scrollWidth",y:"scrollHeight"},B={x:"scrollLeft",y:"scrollTop"},A={x:"width",y:"height"},T=function(){},D=function(){if(typeof window>"u")return!1;var F=!1;try{document.createElement("div").addEventListener("test",T,{get passive(){return F=!0,!1}})}catch{}return F}()?{passive:!0}:!1,j="ReactList failed to reach a stable state.",E=40,Y=function(L,R){for(var O in R)if(L[O]!==R[O])return!1;return!0},X=function(L){for(var R=L.props.axis,O=L.getEl(),z=P[R];O=O.parentElement;)switch(window.getComputedStyle(O)[z]){case"auto":case"scroll":case"overlay":return O}return window},ee=function(L){var R=L.props.axis,O=L.scrollParent;return O===window?window[C[R]]:O[w[R]]},I=function(L,R){var O=L.length,z=L.minSize,J=L.type,K=R.from,q=R.size,te=R.itemsPerRow;q=Math.max(q,z);var ie=q%te;return ie&&(q+=te-ie),q>O&&(q=O),K=J==="simple"||!K?0:Math.max(Math.min(K,O-q),0),(ie=K%te)&&(K-=ie,q+=ie),K===R.from&&q===R.size?R:b(b({},R),{},{from:K,size:q})},V=e.default=function(F){function L(R){var O;return a(this,L),O=l(this,L,[R]),O.state=I(R,{itemsPerRow:1,from:R.initialIndex,size:0}),O.cache={},O.cachedScrollPosition=null,O.prevPrevState={},O.unstable=!1,O.updateCounter=0,O}return g(L,F),i(L,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(O){var z=this;if(this.props.axis!==O.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>E)return this.unstable=!0,console.error(j);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){z.updateCounter=0,delete z.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(O,z){if(Y(this.state,O))return z();this.setState(O,z)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,D),this.scrollParent.removeEventListener("mousewheel",T,D)}},{key:"getOffset",value:function(O){var z=this.props.axis,J=O[x[z]]||0,K=M[z];do J+=O[K]||0;while(O=O.offsetParent);return J}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var O=this.scrollParent,z=this.props.axis,J=B[z],K=O===window?document.body[J]||document.documentElement[J]:O[J],q=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),te=Math.max(0,Math.min(K,q)),ie=this.getEl();return this.cachedScrollPosition=this.getOffset(O)+te-this.getOffset(ie),this.cachedScrollPosition}},{key:"setScroll",value:function(O){var z=this.scrollParent,J=this.props.axis;if(O+=this.getOffset(this.getEl()),z===window)return window.scrollTo(0,O);O-=this.getOffset(this.scrollParent),z[B[J]]=O}},{key:"getScrollSize",value:function(){var O=this.scrollParent,z=document,J=z.body,K=z.documentElement,q=S[this.props.axis];return O===window?Math.max(J[q],K[q]):O[q]}},{key:"hasDeterminateSize",value:function(){var O=this.props,z=O.itemSizeGetter,J=O.type;return J==="uniform"||z}},{key:"getStartAndEnd",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,z=this.getScrollPosition(),J=Math.max(0,z-O),K=z+this.props.scrollParentViewportSizeGetter(this)+O;return this.hasDeterminateSize()&&(K=Math.min(K,this.getSpaceBefore(this.props.length))),{start:J,end:K}}},{key:"getItemSizeAndItemsPerRow",value:function(){var O=this.props,z=O.axis,J=O.useStaticSize,K=this.state,q=K.itemSize,te=K.itemsPerRow;if(J&&q&&te)return{itemSize:q,itemsPerRow:te};var ie=this.items.children;if(!ie.length)return{};var U=ie[0],le=U[N[z]],H=Math.abs(le-q);if((isNaN(H)||H>=1)&&(q=le),!q)return{};var ne=M[z],ae=U[ne];te=1;for(var se=ie[te];se&&se[ne]===ae;se=ie[te])++te;return{itemSize:q,itemsPerRow:te}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(O){return this.clearSizeCache(),this.updateFrame(O)}},{key:"updateFrame",value:function(O){switch(this.updateScrollParent(),typeof O!="function"&&(O=T),this.props.type){case"simple":return this.updateSimpleFrame(O);case"variable":return this.updateVariableFrame(O);case"uniform":return this.updateUniformFrame(O)}}},{key:"updateScrollParent",value:function(){var O=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),O!==this.scrollParent&&(O&&(O.removeEventListener("scroll",this.updateFrameAndClearCache),O.removeEventListener("mousewheel",T)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,D),this.scrollParent.addEventListener("mousewheel",T,D))}},{key:"updateSimpleFrame",value:function(O){var z=this.getStartAndEnd(),J=z.end,K=this.items.children,q=0;if(K.length){var te=this.props.axis,ie=K[0],U=K[K.length-1];q=this.getOffset(U)+U[N[te]]-this.getOffset(ie)}if(q>J)return O();var le=this.props,H=le.pageSize,ne=le.length,ae=Math.min(this.state.size+H,ne);this.maybeSetState({size:ae},O)}},{key:"updateVariableFrame",value:function(O){this.props.itemSizeGetter||this.cacheSizes();for(var z=this.getStartAndEnd(),J=z.start,K=z.end,q=this.props,te=q.length,ie=q.pageSize,U=0,le=0,H=0,ne=te-1;le<ne;){var ae=this.getSizeOfItem(le);if(ae==null||U+ae>J)break;U+=ae,++le}for(var se=te-le;H<se&&U<K;){var oe=this.getSizeOfItem(le+H);if(oe==null){H=Math.min(H+ie,se);break}U+=oe,++H}this.maybeSetState(I(this.props,{from:le,itemsPerRow:1,size:H}),O)}},{key:"updateUniformFrame",value:function(O){var z=this.getItemSizeAndItemsPerRow(),J=z.itemSize,K=z.itemsPerRow;if(!J||!K)return O();var q=this.getStartAndEnd(),te=q.start,ie=q.end,U=I(this.props,{from:Math.floor(te/J)*K,size:(Math.ceil((ie-te)/J)+1)*K,itemsPerRow:K}),le=U.from,H=U.size;return this.maybeSetState({itemsPerRow:K,from:le,itemSize:J,size:H},O)}},{key:"getSpaceBefore",value:function(O){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(z[O]!=null)return z[O];var J=this.state,K=J.itemSize,q=J.itemsPerRow;if(K)return z[O]=Math.floor(O/q)*K;for(var te=O;te>0&&z[--te]==null;);for(var ie=z[te]||0,U=te;U<O;++U){z[U]=ie;var le=this.getSizeOfItem(U);if(le==null)break;ie+=le}return z[O]=ie}},{key:"cacheSizes",value:function(){for(var O=this.cache,z=this.state.from,J=this.items.children,K=N[this.props.axis],q=0,te=J.length;q<te;++q)O[z+q]=J[q][K]}},{key:"getSizeOfItem",value:function(O){var z=this.cache,J=this.items,K=this.props,q=K.axis,te=K.itemSizeGetter,ie=K.itemSizeEstimator,U=K.type,le=this.state,H=le.from,ne=le.itemSize,ae=le.size;if(ne)return ne;if(te)return te(O);if(O in z)return z[O];if(U==="simple"&&O>=H&&O<H+ae&&J){var se=J.children[O-H];if(se)return se[N[q]]}if(ie)return ie(O,z)}},{key:"scrollTo",value:function(O){O!=null&&this.setScroll(this.getSpaceBefore(O))}},{key:"scrollAround",value:function(O){var z=this.getScrollPosition(),J=this.getSpaceBefore(O),K=J-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(O),q=Math.min(K,J),te=Math.max(K,J);if(z<=q)return this.setScroll(q);if(z>te)return this.setScroll(te)}},{key:"getVisibleRange",value:function(){for(var O=this.state,z=O.from,J=O.size,K=this.getStartAndEnd(0),q=K.start,te=K.end,ie={},U,le,H=z;H<z+J;++H){var ne=this.getSpaceBefore(H,ie),ae=ne+this.getSizeOfItem(H);U==null&&ae>q&&(U=H),U!=null&&ne<te&&(le=H)}return[U,le]}},{key:"renderItems",value:function(){for(var O=this,z=this.props,J=z.itemRenderer,K=z.itemsRenderer,q=this.state,te=q.from,ie=q.size,U=[],le=0;le<ie;++le)U.push(J(te+le,le));return K(U,function(H){return O.items=H})}},{key:"render",value:function(){var O=this,z=this.props,J=z.axis,K=z.length,q=z.type,te=z.useTranslate3d,ie=this.state,U=ie.from,le=ie.itemsPerRow,H=this.renderItems();if(q==="simple")return H;var ne={position:"relative"},ae={},se=Math.ceil(K/le)*le,oe=this.getSpaceBefore(se,ae);oe&&(ne[A[J]]=oe,J==="x"&&(ne.overflowX="hidden"));var ye=this.getSpaceBefore(U,ae),me=J==="x"?ye:0,Se=J==="y"?ye:0,Ge=te?"translate3d(".concat(me,"px, ").concat(Se,"px, 0)"):"translate(".concat(me,"px, ").concat(Se,"px)"),et={msTransform:Ge,WebkitTransform:Ge,transform:Ge};return(0,r.jsx)("div",{style:ne,ref:function(Gt){return O.el=Gt},children:(0,r.jsx)("div",{style:et,children:H})})}}],[{key:"getDerivedStateFromProps",value:function(O,z){var J=I(O,z);return J===z?null:J}}])}(n.Component);y(V,"displayName","ReactList"),y(V,"defaultProps",{axis:"y",itemRenderer:function(L,R){return(0,r.jsx)("div",{children:L},R)},itemsRenderer:function(L,R){return(0,r.jsx)("div",{ref:R,children:L})},length:0,minSize:1,pageSize:10,scrollParentGetter:X,scrollParentViewportSizeGetter:ee,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})})})(Vv);function HN(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),s=n.length;if(r.length!==s)return!1;for(var a=0;a<s;a++){var o=n[a];if(t[o]!==e[o]||!Object.prototype.hasOwnProperty.call(e,o))return!1}return!0}function YN(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=t.length;if(e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const VN=ah(Object.freeze(Object.defineProperty({__proto__:null,shallowEqualArrays:YN,shallowEqualObjects:HN},Symbol.toStringTag,{value:"Module"})));var sf={},af={};af.formatDistance=void 0;const UN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},XN=(t,e,n)=>{let r;const s=UN[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};af.formatDistance=XN;var of={},Uv={};Uv.buildFormatLongFn=GN;function GN(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}of.formatLong=void 0;var lf=Uv;const KN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ZN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QN={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};of.formatLong={date:(0,lf.buildFormatLongFn)({formats:KN,defaultWidth:"full"}),time:(0,lf.buildFormatLongFn)({formats:ZN,defaultWidth:"full"}),dateTime:(0,lf.buildFormatLongFn)({formats:QN,defaultWidth:"full"})};var cf={};cf.formatRelative=void 0;const JN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qN=(t,e,n,r)=>JN[t];cf.formatRelative=qN;var df={},Xv={};Xv.buildLocalizeFn=$N;function $N(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}df.localize=void 0;var po=Xv;const e8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},t8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n8={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},r8={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},a8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},o8=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"};df.localize={ordinalNumber:o8,era:(0,po.buildLocalizeFn)({values:e8,defaultWidth:"wide"}),quarter:(0,po.buildLocalizeFn)({values:t8,defaultWidth:"wide",argumentCallback:t=>t-1}),month:(0,po.buildLocalizeFn)({values:n8,defaultWidth:"wide"}),day:(0,po.buildLocalizeFn)({values:r8,defaultWidth:"wide"}),dayPeriod:(0,po.buildLocalizeFn)({values:s8,defaultWidth:"wide",formattingValues:a8,defaultFormattingWidth:"wide"})};var uf={},Gv={};Gv.buildMatchFn=i8;function i8(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?c8(i,u=>u.test(o)):l8(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function l8(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function c8(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}var Kv={};Kv.buildMatchPatternFn=d8;function d8(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}uf.match=void 0;var bo=Gv,u8=Kv;const f8=/^(\d+)(th|st|nd|rd)?/i,h8=/\d+/i,g8={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},m8={any:[/^b/i,/^(a|c)/i]},p8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},b8={any:[/1/i,/2/i,/3/i,/4/i]},y8={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},w8={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v8={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},x8={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},k8={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},_8={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};uf.match={ordinalNumber:(0,u8.buildMatchPatternFn)({matchPattern:f8,parsePattern:h8,valueCallback:t=>parseInt(t,10)}),era:(0,bo.buildMatchFn)({matchPatterns:g8,defaultMatchWidth:"wide",parsePatterns:m8,defaultParseWidth:"any"}),quarter:(0,bo.buildMatchFn)({matchPatterns:p8,defaultMatchWidth:"wide",parsePatterns:b8,defaultParseWidth:"any",valueCallback:t=>t+1}),month:(0,bo.buildMatchFn)({matchPatterns:y8,defaultMatchWidth:"wide",parsePatterns:w8,defaultParseWidth:"any"}),day:(0,bo.buildMatchFn)({matchPatterns:v8,defaultMatchWidth:"wide",parsePatterns:x8,defaultParseWidth:"any"}),dayPeriod:(0,bo.buildMatchFn)({matchPatterns:k8,defaultMatchWidth:"any",parsePatterns:_8,defaultParseWidth:"any"})},sf.enUS=void 0;var C8=af,S8=of,O8=cf,D8=df,M8=uf;sf.enUS={code:"en-US",formatDistance:C8.formatDistance,formatLong:S8.formatLong,formatRelative:O8.formatRelative,localize:D8.localize,match:M8.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};var rs={};Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=void 0,rs.default={dateRangeWrapper:"rdrDateRangeWrapper",calendarWrapper:"rdrCalendarWrapper",dateDisplay:"rdrDateDisplay",dateDisplayItem:"rdrDateDisplayItem",dateDisplayItemActive:"rdrDateDisplayItemActive",monthAndYearWrapper:"rdrMonthAndYearWrapper",monthAndYearPickers:"rdrMonthAndYearPickers",nextPrevButton:"rdrNextPrevButton",month:"rdrMonth",weekDays:"rdrWeekDays",weekDay:"rdrWeekDay",days:"rdrDays",day:"rdrDay",dayNumber:"rdrDayNumber",dayPassive:"rdrDayPassive",dayToday:"rdrDayToday",dayStartOfWeek:"rdrDayStartOfWeek",dayEndOfWeek:"rdrDayEndOfWeek",daySelected:"rdrDaySelected",dayDisabled:"rdrDayDisabled",dayStartOfMonth:"rdrDayStartOfMonth",dayEndOfMonth:"rdrDayEndOfMonth",dayWeekend:"rdrDayWeekend",dayStartPreview:"rdrDayStartPreview",dayInPreview:"rdrDayInPreview",dayEndPreview:"rdrDayEndPreview",dayHovered:"rdrDayHovered",dayActive:"rdrDayActive",inRange:"rdrInRange",endEdge:"rdrEndEdge",startEdge:"rdrStartEdge",prevButton:"rdrPprevButton",nextButton:"rdrNextButton",selected:"rdrSelected",months:"rdrMonths",monthPicker:"rdrMonthPicker",yearPicker:"rdrYearPicker",dateDisplayWrapper:"rdrDateDisplayWrapper",definedRangesWrapper:"rdrDefinedRangesWrapper",staticRanges:"rdrStaticRanges",staticRange:"rdrStaticRange",inputRanges:"rdrInputRanges",inputRange:"rdrInputRange",inputRangeInput:"rdrInputRangeInput",dateRangePickerWrapper:"rdrDateRangePickerWrapper",staticRangeLabel:"rdrStaticRangeLabel",staticRangeSelected:"rdrStaticRangeSelected",monthName:"rdrMonthName",infiniteMonths:"rdrInfiniteMonths",monthsVertical:"rdrMonthsVertical",monthsHorizontal:"rdrMonthsHorizontal"};var jl={};Object.defineProperty(jl,"__esModule",{value:!0}),jl.ariaLabelsShape=void 0;var $n=E8(Xn);function E8(t){return t&&t.__esModule?t:{default:t}}jl.ariaLabelsShape=$n.default.shape({dateInput:$n.default.objectOf($n.default.shape({startDate:$n.default.string,endDate:$n.default.string})),monthPicker:$n.default.string,yearPicker:$n.default.string,prevButton:$n.default.string,nextButton:$n.default.string}),Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var Ie=R8(_),he=qs(Xn),T8=Gn,Zv=qs(Tl),Qv=qs(Pl),Il=Jn,ss=qs(sr),P8=qs(Vv),N8=VN,He=es,j8=sf,I8=qs(rs),A8=jl;function qs(t){return t&&t.__esModule?t:{default:t}}function Jv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Jv=function(r){return r?n:e})(t)}function R8(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Jv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Al(){return Al=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Al.apply(this,arguments)}function sn(t,e,n){return e=L8(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L8(t){var e=F8(t,"string");return typeof e=="symbol"?e:String(e)}function F8(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class $s extends Ie.PureComponent{constructor(e,n){var r;super(e,n),r=this,sn(this,"focusToDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.props,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!a.scroll.enabled){if(o&&a.preventSnapRefocus){const c=(0,He.differenceInCalendarMonths)(s,r.state.focusedDate),d=a.calendarFocus==="forwards"&&c>=0,u=a.calendarFocus==="backwards"&&c<=0;if((d||u)&&Math.abs(c)<a.months)return}r.setState({focusedDate:s});return}const i=(0,He.differenceInCalendarMonths)(s,a.minDate,r.dateOptions),l=r.list.getVisibleRange();o&&l.includes(i)||(r.isFirstRender=!0,r.list.scrollTo(i),r.setState({focusedDate:s}))}),sn(this,"updateShownDate",function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.props;const a=s.scroll.enabled?{...s,months:r.list.getVisibleRange().length}:s,o=(0,Il.calcFocusDate)(r.state.focusedDate,a);r.focusToDate(o,a)}),sn(this,"updatePreview",s=>{if(!s){this.setState({preview:null});return}const a={startDate:s,endDate:s,color:this.props.color};this.setState({preview:a})}),sn(this,"changeShownDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:o}=r.state,{onShownDateChange:i,minDate:l,maxDate:c}=r.props,d={monthOffset:()=>(0,He.addMonths)(o,s),setMonth:()=>(0,He.setMonth)(o,s),setYear:()=>(0,He.setYear)(o,s),set:()=>s},u=(0,He.min)([(0,He.max)([d[a](),l]),c]);r.focusToDate(u,r.props,!1),i&&i(u)}),sn(this,"handleRangeFocusChange",(s,a)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([s,a])}),sn(this,"handleScroll",()=>{const{onShownDateChange:s,minDate:a}=this.props,{focusedDate:o}=this.state,{isFirstRender:i}=this,l=this.list.getVisibleRange();if(l[0]===void 0)return;const c=(0,He.addMonths)(a,l[0]||0);!(0,He.isSameMonth)(c,o)&&!i&&(this.setState({focusedDate:c}),s&&s(c)),this.isFirstRender=!1}),sn(this,"renderMonthAndYear",(s,a,o)=>{const{showMonthArrow:i,minDate:l,maxDate:c,showMonthAndYearPickers:d,ariaLabels:u}=o,h=(c||$s.defaultProps.maxDate).getFullYear(),g=(l||$s.defaultProps.minDate).getFullYear(),m=this.styles;return Ie.default.createElement("div",{onMouseUp:p=>p.stopPropagation(),className:m.monthAndYearWrapper},i?Ie.default.createElement("button",{type:"button",className:(0,ss.default)(m.nextPrevButton,m.prevButton),onClick:()=>a(-1,"monthOffset"),"aria-label":u.prevButton},Ie.default.createElement("i",null)):null,d?Ie.default.createElement("span",{className:m.monthAndYearPickers},Ie.default.createElement("span",{className:m.monthPicker},Ie.default.createElement("select",{value:s.getMonth(),onChange:p=>a(p.target.value,"setMonth"),"aria-label":u.monthPicker},this.state.monthNames.map((p,b)=>Ie.default.createElement("option",{key:b,value:b},p)))),Ie.default.createElement("span",{className:m.monthAndYearDivider}),Ie.default.createElement("span",{className:m.yearPicker},Ie.default.createElement("select",{value:s.getFullYear(),onChange:p=>a(p.target.value,"setYear"),"aria-label":u.yearPicker},new Array(h-g+1).fill(h).map((p,b)=>{const y=p-b;return Ie.default.createElement("option",{key:y,value:y},y)})))):Ie.default.createElement("span",{className:m.monthAndYearPickers},this.state.monthNames[s.getMonth()]," ",s.getFullYear()),i?Ie.default.createElement("button",{type:"button",className:(0,ss.default)(m.nextPrevButton,m.nextButton),onClick:()=>a(1,"monthOffset"),"aria-label":u.nextButton},Ie.default.createElement("i",null)):null)}),sn(this,"renderDateDisplay",()=>{const{focusedRange:s,color:a,ranges:o,rangeColors:i,dateDisplayFormat:l,editableDateInputs:c,startDatePlaceholder:d,endDatePlaceholder:u,ariaLabels:h}=this.props,g=i[s[0]]||a,m=this.styles;return Ie.default.createElement("div",{className:m.dateDisplayWrapper},o.map((p,b)=>p.showDateDisplay===!1||p.disabled&&!p.showDateDisplay?null:Ie.default.createElement("div",{className:m.dateDisplay,key:b,style:{color:p.color||g}},Ie.default.createElement(Qv.default,{className:(0,ss.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:s[0]===b&&s[1]===0}),readOnly:!c,disabled:p.disabled,value:p.startDate,placeholder:d,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:h.dateInput&&h.dateInput[p.key]&&h.dateInput[p.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,0)}),Ie.default.createElement(Qv.default,{className:(0,ss.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:s[0]===b&&s[1]===1}),readOnly:!c,disabled:p.disabled,value:p.endDate,placeholder:u,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:h.dateInput&&h.dateInput[p.key]&&h.dateInput[p.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,1)}))))}),sn(this,"onDragSelectionStart",s=>{const{onChange:a,dragSelectionEnabled:o}=this.props;o?this.setState({drag:{status:!0,range:{startDate:s,endDate:s},disablePreview:!0}}):a&&a(s)}),sn(this,"onDragSelectionEnd",s=>{const{updateRange:a,displayMode:o,onChange:i,dragSelectionEnabled:l}=this.props;if(!l)return;if(o==="date"||!this.state.drag.status){i&&i(s);return}const c={startDate:this.state.drag.range.startDate,endDate:s};o!=="dateRange"||(0,He.isSameDay)(c.startDate,s)?this.setState({drag:{status:!1,range:{}}},()=>i&&i(s)):this.setState({drag:{status:!1,range:{}}},()=>{a&&a(c)})}),sn(this,"onDragSelectionMove",s=>{const{drag:a}=this.state;!a.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:a.status,range:{startDate:a.range.startDate,endDate:s},disablePreview:!0}})}),sn(this,"estimateMonthSize",(s,a)=>{const{direction:o,minDate:i}=this.props,{scrollArea:l}=this.state;if(a&&(this.listSizeCache=a,a[s]))return a[s];if(o==="horizontal")return l.monthWidth;const c=(0,He.addMonths)(i,s),{start:d,end:u}=(0,Il.getMonthDisplayRange)(c,this.dateOptions);return(0,He.differenceInDays)(u,d,this.dateOptions)+1>7*5?l.longMonthHeight:l.monthHeight}),this.dateOptions={locale:e.locale},e.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=e.weekStartsOn),this.styles=(0,Il.generateStyles)([I8.default,e.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,Il.calcFocusDate)(null,e),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(e)}}getMonthNames(){return[...Array(12).keys()].map(e=>this.props.locale.localize.month(e))}calcScrollArea(e){const{direction:n,months:r,scroll:s}=e;if(!s.enabled)return{enabled:!1};const a=s.longMonthHeight||s.monthHeight;return n==="vertical"?{enabled:!0,monthHeight:s.monthHeight||220,longMonthHeight:a||260,calendarWidth:"auto",calendarHeight:(s.calendarHeight||a||240)*r}:{enabled:!0,monthWidth:s.monthWidth||332,calendarWidth:(s.calendarWidth||s.monthWidth||332)*r,monthHeight:a||300,calendarHeight:a||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(e){const r={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[r]!==e[r]&&this.updateShownDate(this.props),(e.locale!==this.props.locale||e.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,N8.shallowEqualObjects)(e.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const e=new Date;return Ie.default.createElement("div",{className:this.styles.weekDays},(0,He.eachDayOfInterval)({start:(0,He.startOfWeek)(e,this.dateOptions),end:(0,He.endOfWeek)(e,this.dateOptions)}).map((n,r)=>Ie.default.createElement("span",{className:this.styles.weekDay,key:r},(0,He.format)(n,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:e,onPreviewChange:n,scroll:r,direction:s,disabledDates:a,disabledDay:o,maxDate:i,minDate:l,rangeColors:c,color:d,navigatorRenderer:u,className:h,preview:g}=this.props,{scrollArea:m,focusedDate:p}=this.state,b=s==="vertical",y=u||this.renderMonthAndYear,v=this.props.ranges.map((k,w)=>({...k,color:k.color||c[w]||d}));return Ie.default.createElement("div",{className:(0,ss.default)(this.styles.calendarWrapper,h),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},e&&this.renderDateDisplay(),y(p,this.changeShownDate,this.props),r.enabled?Ie.default.createElement("div",null,b&&this.renderWeekdays(this.dateOptions),Ie.default.createElement("div",{className:(0,ss.default)(this.styles.infiniteMonths,b?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>n&&n(),style:{width:m.calendarWidth+11,height:m.calendarHeight+11},onScroll:this.handleScroll},Ie.default.createElement(P8.default,{length:(0,He.differenceInCalendarMonths)((0,He.endOfMonth)(i),(0,He.addDays)((0,He.startOfMonth)(l),-1),this.dateOptions),treshold:500,type:"variable",ref:k=>this.list=k,itemSizeEstimator:this.estimateMonthSize,axis:b?"y":"x",itemRenderer:(k,w)=>{const x=(0,He.addMonths)(l,k);return Ie.default.createElement(Zv.default,Al({},this.props,{onPreviewChange:n||this.updatePreview,preview:g||this.state.preview,ranges:v,key:w,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:x,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,style:b?{height:this.estimateMonthSize(k)}:{height:m.monthHeight,width:this.estimateMonthSize(k)},showMonthName:!0,showWeekDays:!b}))}}))):Ie.default.createElement("div",{className:(0,ss.default)(this.styles.months,b?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((k,w)=>{let x=(0,He.addMonths)(this.state.focusedDate,w);return this.props.calendarFocus==="backwards"&&(x=(0,He.subMonths)(this.state.focusedDate,this.props.months-1-w)),Ie.default.createElement(Zv.default,Al({},this.props,{onPreviewChange:n||this.updatePreview,preview:g||this.state.preview,ranges:v,key:w,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:x,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,showWeekDays:!b||w===0,showMonthName:!b||w>0}))})))}}$s.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:j8.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,He.addYears)(new Date,20),minDate:(0,He.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},$s.propTypes={showMonthArrow:he.default.bool,showMonthAndYearPickers:he.default.bool,disabledDates:he.default.array,disabledDay:he.default.func,minDate:he.default.object,maxDate:he.default.object,date:he.default.object,onChange:he.default.func,onPreviewChange:he.default.func,onRangeFocusChange:he.default.func,classNames:he.default.object,locale:he.default.object,shownDate:he.default.object,onShownDateChange:he.default.func,ranges:he.default.arrayOf(T8.rangeShape),preview:he.default.shape({startDate:he.default.object,endDate:he.default.object,color:he.default.string}),dateDisplayFormat:he.default.string,monthDisplayFormat:he.default.string,weekdayDisplayFormat:he.default.string,weekStartsOn:he.default.number,dayDisplayFormat:he.default.string,focusedRange:he.default.arrayOf(he.default.number),initialFocusedRange:he.default.arrayOf(he.default.number),months:he.default.number,className:he.default.string,showDateDisplay:he.default.bool,showPreview:he.default.bool,displayMode:he.default.oneOf(["dateRange","date"]),color:he.default.string,updateRange:he.default.func,scroll:he.default.shape({enabled:he.default.bool,monthHeight:he.default.number,longMonthHeight:he.default.number,monthWidth:he.default.number,calendarWidth:he.default.number,calendarHeight:he.default.number}),direction:he.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:he.default.string,endDatePlaceholder:he.default.string,navigatorRenderer:he.default.func,rangeColors:he.default.arrayOf(he.default.string),editableDateInputs:he.default.bool,dragSelectionEnabled:he.default.bool,fixedHeight:he.default.bool,calendarFocus:he.default.string,preventSnapRefocus:he.default.bool,ariaLabels:A8.ariaLabelsShape},io.default=$s,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;var qv=H8(_),ea=Rl(Xn),$v=Rl(io),B8=Gn,ff=Jn,An=es,W8=Rl(sr),z8=Rl(rs);function Rl(t){return t&&t.__esModule?t:{default:t}}function ex(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ex=function(r){return r?n:e})(t)}function H8(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ex(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function hf(){return hf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hf.apply(this,arguments)}function Ll(t,e,n){return e=Y8(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Y8(t){var e=V8(t,"string");return typeof e=="symbol"?e:String(e)}function V8(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class gf extends qv.Component{constructor(e,n){var r;super(e,n),r=this,Ll(this,"calcNewSelection",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const o=r.props.focusedRange||r.state.focusedRange,{ranges:i,onChange:l,maxDate:c,moveRangeOnFirstSelection:d,retainEndDateOnFirstSelection:u,disabledDates:h}=r.props,g=o[0],m=i[g];if(!m||!l)return{};let{startDate:p,endDate:b}=m;const y=new Date;let v;if(!a)p=s.startDate,b=s.endDate;else if(o[1]===0){const x=(0,An.differenceInCalendarDays)(b||y,p),C=()=>d?(0,An.addDays)(s,x):u?!b||(0,An.isBefore)(s,b)?b:s:s||y;p=s,b=C(),c&&(b=(0,An.min)([b,c])),v=[o[0],1]}else b=s;let k=o[1]===0;(0,An.isBefore)(b,p)&&(k=!k,[p,b]=[b,p]);const w=h.filter(x=>(0,An.isWithinInterval)(x,{start:p,end:b}));return w.length>0&&(k?p=(0,An.addDays)((0,An.max)(w),1):b=(0,An.addDays)((0,An.min)(w),-1)),v||(v=[(0,ff.findNextRangeIndex)(r.props.ranges,o[0]),0]),{wasValid:!(w.length>0),range:{startDate:p,endDate:b},nextFocusRange:v}}),Ll(this,"setSelection",(s,a)=>{const{onChange:o,ranges:i,onRangeFocusChange:l}=this.props,d=(this.props.focusedRange||this.state.focusedRange)[0],u=i[d];if(!u)return;const h=this.calcNewSelection(s,a);o({[u.key||`range${d+1}`]:{...u,...h.range}}),this.setState({focusedRange:h.nextFocusRange,preview:null}),l&&l(h.nextFocusRange)}),Ll(this,"handleRangeFocusChange",s=>{this.setState({focusedRange:s}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(s)}),Ll(this,"updatePreview",s=>{var c;if(!s){this.setState({preview:null});return}const{rangeColors:a,ranges:o}=this.props,i=this.props.focusedRange||this.state.focusedRange,l=((c=o[i[0]])==null?void 0:c.color)||a[i[0]]||l;this.setState({preview:{...s.range,color:l}})}),this.state={focusedRange:e.initialFocusedRange||[(0,ff.findNextRangeIndex)(e.ranges),0],preview:null},this.styles=(0,ff.generateStyles)([z8.default,e.classNames])}render(){return qv.default.createElement($v.default,hf({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:e=>{this.updatePreview(e?this.calcNewSelection(e):null)}},this.props,{displayMode:"dateRange",className:(0,W8.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:e=>this.setSelection(e,!1),ref:e=>{this.calendar=e}}))}}gf.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},gf.propTypes={...$v.default.propTypes,onChange:ea.default.func,onRangeFocusChange:ea.default.func,className:ea.default.string,ranges:ea.default.arrayOf(B8.rangeShape),moveRangeOnFirstSelection:ea.default.bool,retainEndDateOnFirstSelection:ea.default.bool},oo.default=gf;var Fl={},yo={},kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.createStaticRanges=tx,kr.defaultStaticRanges=kr.defaultInputRanges=void 0;var Fe=es;const ft={startOfWeek:(0,Fe.startOfWeek)(new Date),endOfWeek:(0,Fe.endOfWeek)(new Date),startOfLastWeek:(0,Fe.startOfWeek)((0,Fe.addDays)(new Date,-7)),endOfLastWeek:(0,Fe.endOfWeek)((0,Fe.addDays)(new Date,-7)),startOfToday:(0,Fe.startOfDay)(new Date),endOfToday:(0,Fe.endOfDay)(new Date),startOfYesterday:(0,Fe.startOfDay)((0,Fe.addDays)(new Date,-1)),endOfYesterday:(0,Fe.endOfDay)((0,Fe.addDays)(new Date,-1)),startOfMonth:(0,Fe.startOfMonth)(new Date),endOfMonth:(0,Fe.endOfMonth)(new Date),startOfLastMonth:(0,Fe.startOfMonth)((0,Fe.addMonths)(new Date,-1)),endOfLastMonth:(0,Fe.endOfMonth)((0,Fe.addMonths)(new Date,-1))},U8={range:{},isSelected(t){const e=this.range();return(0,Fe.isSameDay)(t.startDate,e.startDate)&&(0,Fe.isSameDay)(t.endDate,e.endDate)}};function tx(t){return t.map(e=>({...U8,...e}))}kr.defaultStaticRanges=tx([{label:"Today",range:()=>({startDate:ft.startOfToday,endDate:ft.endOfToday})},{label:"Yesterday",range:()=>({startDate:ft.startOfYesterday,endDate:ft.endOfYesterday})},{label:"This Week",range:()=>({startDate:ft.startOfWeek,endDate:ft.endOfWeek})},{label:"Last Week",range:()=>({startDate:ft.startOfLastWeek,endDate:ft.endOfLastWeek})},{label:"This Month",range:()=>({startDate:ft.startOfMonth,endDate:ft.endOfMonth})},{label:"Last Month",range:()=>({startDate:ft.startOfLastMonth,endDate:ft.endOfLastMonth})}]),kr.defaultInputRanges=[{label:"days up to today",range(t){return{startDate:(0,Fe.addDays)(ft.startOfToday,(Math.max(Number(t),1)-1)*-1),endDate:ft.endOfToday}},getCurrentValue(t){return(0,Fe.isSameDay)(t.endDate,ft.endOfToday)?t.startDate?(0,Fe.differenceInCalendarDays)(ft.endOfToday,t.startDate)+1:"∞":"-"}},{label:"days starting today",range(t){const e=new Date;return{startDate:e,endDate:(0,Fe.addDays)(e,Math.max(Number(t),1)-1)}},getCurrentValue(t){return(0,Fe.isSameDay)(t.startDate,ft.startOfToday)?t.endDate?(0,Fe.differenceInCalendarDays)(t.endDate,ft.startOfToday)+1:"∞":"-"}}];var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.default=void 0;var Wl=G8(_),Lt=X8(Xn);function X8(t){return t&&t.__esModule?t:{default:t}}function nx(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(nx=function(r){return r?n:e})(t)}function G8(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=nx(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function K8(t,e,n){return e=Z8(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z8(t){var e=Q8(t,"string");return typeof e=="symbol"?e:String(e)}function Q8(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const rx=0,sx=99999;class mf extends Wl.Component{constructor(e,n){super(e,n),K8(this,"onChange",r=>{const{onChange:s}=this.props;let a=parseInt(r.target.value,10);a=isNaN(a)?0:Math.max(Math.min(sx,a),rx),s(a)})}shouldComponentUpdate(e){const{value:n,label:r,placeholder:s}=this.props;return n!==e.value||r!==e.label||s!==e.placeholder}render(){const{label:e,placeholder:n,value:r,styles:s,onBlur:a,onFocus:o}=this.props;return Wl.default.createElement("div",{className:s.inputRange},Wl.default.createElement("input",{className:s.inputRangeInput,placeholder:n,value:r,min:rx,max:sx,onChange:this.onChange,onFocus:o,onBlur:a}),Wl.default.createElement("span",{className:s.inputRangeLabel},e))}}mf.propTypes={value:Lt.default.oneOfType([Lt.default.string,Lt.default.number]),label:Lt.default.oneOfType([Lt.default.element,Lt.default.node]).isRequired,placeholder:Lt.default.string,styles:Lt.default.shape({inputRange:Lt.default.string,inputRangeInput:Lt.default.string,inputRangeLabel:Lt.default.string}).isRequired,onBlur:Lt.default.func.isRequired,onFocus:Lt.default.func.isRequired,onChange:Lt.default.func.isRequired},mf.defaultProps={value:"",placeholder:"-"},Bl.default=mf,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=void 0;var as=$8(_),Ut=zl(Xn),os=zl(rs),ax=kr,J8=Gn,q8=zl(Bl),ox=zl(sr);function zl(t){return t&&t.__esModule?t:{default:t}}function ix(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ix=function(r){return r?n:e})(t)}function $8(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ix(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function ej(t,e,n){return e=tj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tj(t){var e=nj(t,"string");return typeof e=="symbol"?e:String(e)}function nj(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class pf extends as.Component{constructor(e){super(e),ej(this,"handleRangeChange",n=>{const{onChange:r,ranges:s,focusedRange:a}=this.props,o=s[a[0]];!r||!o||r({[o.key||`range${a[0]+1}`]:{...o,...n}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(e){const{ranges:n=[],focusedRange:r=[]}=this.props;if(typeof e.getCurrentValue!="function")return"";const s=n[r[0]]||{};return e.getCurrentValue(s)||""}getSelectedRange(e,n){const r=e.findIndex(a=>!a.startDate||!a.endDate||a.disabled?!1:n.isSelected(a));return{selectedRange:e[r],focusedRangeIndex:r}}render(){const{headerContent:e,footerContent:n,onPreviewChange:r,inputRanges:s,staticRanges:a,ranges:o,renderStaticRangeLabel:i,rangeColors:l,className:c}=this.props;return as.default.createElement("div",{className:(0,ox.default)(os.default.definedRangesWrapper,c)},e,as.default.createElement("div",{className:os.default.staticRanges},a.map((d,u)=>{const{selectedRange:h,focusedRangeIndex:g}=this.getSelectedRange(o,d);let m;return d.hasCustomRendering?m=i(d):m=d.label,as.default.createElement("button",{type:"button",className:(0,ox.default)(os.default.staticRange,{[os.default.staticRangeSelected]:!!h}),style:{color:h?h.color||l[g]:null},key:u,onClick:()=>this.handleRangeChange(d.range(this.props)),onFocus:()=>r&&r(d.range(this.props)),onMouseOver:()=>r&&r(d.range(this.props)),onMouseLeave:()=>{r&&r()}},as.default.createElement("span",{tabIndex:-1,className:os.default.staticRangeLabel},m))})),as.default.createElement("div",{className:os.default.inputRanges},s.map((d,u)=>as.default.createElement(q8.default,{key:u,styles:os.default,label:d.label,onFocus:()=>this.setState({focusedInput:u,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:h=>this.handleRangeChange(d.range(h,this.props)),value:this.getRangeOptionValue(d)}))),n)}}pf.propTypes={inputRanges:Ut.default.array,staticRanges:Ut.default.array,ranges:Ut.default.arrayOf(J8.rangeShape),focusedRange:Ut.default.arrayOf(Ut.default.number),onPreviewChange:Ut.default.func,onChange:Ut.default.func,footerContent:Ut.default.any,headerContent:Ut.default.any,rangeColors:Ut.default.arrayOf(Ut.default.string),className:Ut.default.string,renderStaticRangeLabel:Ut.default.func},pf.defaultProps={inputRanges:ax.defaultInputRanges,staticRanges:ax.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},yo.default=pf,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=void 0;var Hl=oj(_),rj=wo(Xn),lx=wo(oo),cx=wo(yo),dx=Jn,sj=wo(sr),aj=wo(rs);function wo(t){return t&&t.__esModule?t:{default:t}}function ux(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ux=function(r){return r?n:e})(t)}function oj(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ux(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Yl(){return Yl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yl.apply(this,arguments)}let bf=class extends Hl.Component{constructor(e){super(e),this.state={focusedRange:[(0,dx.findNextRangeIndex)(e.ranges),0]},this.styles=(0,dx.generateStyles)([aj.default,e.classNames])}render(){const{focusedRange:e}=this.state;return Hl.default.createElement("div",{className:(0,sj.default)(this.styles.dateRangePickerWrapper,this.props.className)},Hl.default.createElement(cx.default,Yl({focusedRange:e,onPreviewChange:n=>this.dateRange.updatePreview(n?this.dateRange.calcNewSelection(n,typeof n=="string"):null)},this.props,{range:this.props.ranges[e[0]],className:void 0})),Hl.default.createElement(lx.default,Yl({onRangeFocusChange:n=>this.setState({focusedRange:n}),focusedRange:e},this.props,{ref:n=>this.dateRange=n,className:void 0})))}};bf.defaultProps={},bf.propTypes={...lx.default.propTypes,...cx.default.propTypes,className:rj.default.string},Fl.default=bf,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"DateRange",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DefinedRange",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"createStaticRanges",{enumerable:!0,get:function(){return a.createStaticRanges}}),Object.defineProperty(t,"defaultInputRanges",{enumerable:!0,get:function(){return a.defaultInputRanges}}),Object.defineProperty(t,"defaultStaticRanges",{enumerable:!0,get:function(){return a.defaultStaticRanges}});var e=o(oo),n=o(io),r=o(Fl),s=o(yo),a=kr;function o(i){return i&&i.__esModule?i:{default:i}}}(fw);const ij={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},lj=(t,e,n)=>{let r;const s=ij[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},cj={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},dj={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},uj={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fj={date:Zs({formats:cj,defaultWidth:"full"}),time:Zs({formats:dj,defaultWidth:"full"}),dateTime:Zs({formats:uj,defaultWidth:"full"})},hj={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},gj={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},mj=(t,e,n,r)=>e.getHours()!==1?gj[t]:hj[t],pj={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},bj={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},yj={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},wj={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},vj={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},xj={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},kj={ordinalNumber:(t,e)=>Number(t)+"º",era:En({values:pj,defaultWidth:"wide"}),quarter:En({values:bj,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:En({values:yj,defaultWidth:"wide"}),day:En({values:wj,defaultWidth:"wide"}),dayPeriod:En({values:vj,defaultWidth:"wide",formattingValues:xj,defaultFormattingWidth:"wide"})},_j=/^(\d+)(º)?/i,Cj=/\d+/i,Sj={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},Oj={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},Dj={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Mj={any:[/1/i,/2/i,/3/i,/4/i]},Ej={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},Tj={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Pj={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},Nj={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},jj={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},Ij={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Aj={ordinalNumber:tv({matchPattern:_j,parsePattern:Cj,valueCallback:function(t){return parseInt(t,10)}}),era:Tn({matchPatterns:Sj,defaultMatchWidth:"wide",parsePatterns:Oj,defaultParseWidth:"any"}),quarter:Tn({matchPatterns:Dj,defaultMatchWidth:"wide",parsePatterns:Mj,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Tn({matchPatterns:Ej,defaultMatchWidth:"wide",parsePatterns:Tj,defaultParseWidth:"any"}),day:Tn({matchPatterns:Pj,defaultMatchWidth:"wide",parsePatterns:Nj,defaultParseWidth:"any"}),dayPeriod:Tn({matchPatterns:jj,defaultMatchWidth:"any",parsePatterns:Ij,defaultParseWidth:"any"})},Rj={code:"es",formatDistance:lj,formatLong:fj,formatRelative:mj,localize:kj,match:Aj,options:{weekStartsOn:1,firstWeekContainsDate:1}},er={"date-container":"dateRangePicker-module__date-container__jh9s-","date-input":"dateRangePicker-module__date-input__xt4gs","date-popup":"dateRangePicker-module__date-popup__TQHMh","date-menu":"dateRangePicker-module__date-menu__Nv5nr","date-menuItem":"dateRangePicker-module__date-menuItem__AYJ32","date-menuItemReset":"dateRangePicker-module__date-menuItemReset__J9IdZ","date-calendar":"dateRangePicker-module__date-calendar__M10Iv"},Lj=[{label:"Ayer",range:()=>{const t=new Date;return t.setDate(t.getDate()-1),{startDate:t,endDate:t}}},{label:"La semana pasada",range:()=>({startDate:rn(new Date,-6),endDate:new Date})},{label:"El mes pasado",range:()=>{const t=new Date,e=new Date(t.getFullYear(),t.getMonth()-1,1),n=new Date(t.getFullYear(),t.getMonth(),0);return{startDate:e,endDate:n}}}],Fj=({value:t,onChange:e,minData:n,maxData:r,quickRanges:s,className:a})=>{const[o,i]=_.useState([{startDate:rn(new Date,-6),endDate:new Date,key:"selection"}]),[l,c]=_.useState(!1),[d,u]=_.useState({}),h=_.useRef(null),g=_.useRef(null),m=s??Lj,p=t?[{...t,key:"selection"}]:o;_.useEffect(()=>{if(l&&g.current&&h.current){const w=g.current.getBoundingClientRect(),x=h.current.offsetWidth||700,C=window.innerWidth-w.right,N=w.left,M={right:0,left:"auto"};C<x&&N>=x&&(M.left=0,M.right="auto"),window.innerWidth<x&&(M.left=0,M.right=0,M.width="100vw",M.maxWidth="100vw"),u(M)}},[l]);const b=w=>{t||i([w.selection]),e==null||e(w.selection.startDate,w.selection.endDate)},y=w=>{const{startDate:x,endDate:C}=w();t||i([{startDate:x,endDate:C,key:"selection"}]),e==null||e(x,C),c(!1)},v=()=>{const w=new Date;t||i([{startDate:w,endDate:w,key:"selection"}]),e==null||e(w,w),c(!1)},k=w=>Cl(w,"dd MMM yy");return _.useEffect(()=>{if(!l)return;const w=x=>{h.current&&!h.current.contains(x.target)&&g.current&&!g.current.contains(x.target)&&c(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[l]),f.jsxs("div",{className:er["date-container"],children:[f.jsx("input",{ref:g,type:"text",readOnly:!0,value:`${k(p[0].startDate)} - ${k(p[0].endDate)}`,onClick:()=>c(!l),className:`${er["date-input"]} ${a}`}),l&&f.jsxs("div",{ref:h,className:er["date-popup"],style:d,children:[f.jsxs("div",{className:er["date-menu"],children:[m.map((w,x)=>f.jsx("div",{className:er["date-menuItem"]+(x===2?" "+er["date-menuItemActive"]:""),onClick:()=>y(w.range),children:w.label},w.label)),f.jsx("div",{className:er["date-menuItem"]+" "+er["date-menuItemReset"],onClick:v,children:"Reset"})]}),f.jsx("div",{className:er["date-calendar"],children:f.jsx(fw.DateRange,{editableDateInputs:!1,onChange:b,moveRangeOnFirstSelection:!1,ranges:p,rangeColors:["#C0D4FF99"],minDate:n,maxDate:r,locale:Rj,dayContentRenderer:w=>{const x=w.getDay(),C={opacity:x===0||x===6?.5:1,color:x===0||x===6?"#999":"inherit"};return f.jsx("span",{style:C,children:w.getDate()})},navigationButtonsPosition:"center"})})]})]})},Bj=({minDate:t,maxDate:e})=>f.jsx(dh,{minDate:t,maxDate:e,className:"custom-datepicker"}),is={"loader-wrapper":"loader-module__loader-wrapper__faxmX",container:"loader-module__container__Vj8hl","mathilde-loading":"loader-module__mathilde-loading__qdEVv","loading-1":"loader-module__loading-1__mro54",logo:"loader-module__logo__IXZKs","ball-container":"loader-module__ball-container__qDvi5",ball:"loader-module__ball__MSPUh"},Wj=function(){return f.jsx("div",{className:`mth_loader ${is["loader-wrapper"]}`,children:f.jsx("div",{className:is.container,children:f.jsxs("div",{className:is["mathilde-loading"],children:[f.jsx("img",{className:is.logo,src:"https://ftp.mathilde-ads.com/345-38ea95da72fc8edd1d853f315945b449.png",alt:"Logo Mathilde"}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:is["loading-1"],children:f.jsx("circle",{cx:"50",cy:"50",r:"40"})}),f.jsx("div",{className:is["ball-container"],children:f.jsx("div",{className:is.ball})})]})})})},zj=({label:t,dismissOnClick:e,items:n,size:r,className:s,styles:a,mode:o="simple",columns:i=2,onSelectionChange:l,selectedItems:c=[],activeChevron:d=!0,icon:u,iconSize:h=20})=>{const[g,m]=_.useState(c),p=(k,w)=>{const x=w?[...g,k]:g.filter(C=>C!==k);m(x),l==null||l(x)},b=()=>n.map(k=>f.jsx(Ic,{...k,href:k.href,children:k.label},k.value||k.label)),y=()=>{const k=i===1?"grid-cols-1":i===2?"grid-cols-2":i===3?"grid-cols-3":i===4?"grid-cols-4":"grid-cols-2";return f.jsx("div",{className:`grid min-w-[200px] gap-2 p-2 ${k}`,children:n.map(w=>{const x=w.value||w.label,C=g.includes(x);return f.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded p-2 hover:bg-gray-100",children:[f.jsx("input",{type:"checkbox",checked:C,onChange:N=>p(x,N.target.checked),disabled:w.disabled,className:"size-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-blue-500"}),f.jsx("span",{className:`text-xs ${w.disabled?"text-gray-400":"text-black"}`,children:w.label})]},x)})})},v=k=>{if(!k)return null;if(typeof k=="string")return f.jsx("img",{src:k,alt:"icon",width:h,height:h});const w=k;return f.jsx(w,{size:h})};return f.jsx(f.Fragment,{children:f.jsx(T5,{label:t,dismissOnClick:o==="simple"?e:!1,size:r,renderTrigger:()=>f.jsx("button",{className:s,style:a,type:"button",children:f.jsxs("span",{className:"flex items-center gap-2",children:[v(u),t,d&&v(Ql)]})}),className:"left-0",children:o==="simple"?b():y()})})},Hj=function({steps:t=[],initialStep:e=1,activeStep:n,onStepChange:r,renderControls:s,onNext:a,onBack:o,onFinish:i}){var b;const l=typeof n=="number",[c,d]=_.useState(e),u=l?n:c,h=()=>{if(u<t.length){const y=u+1;l?(r==null||r(y),a==null||a()):(d(y),a==null||a())}else i==null||i()},g=()=>{if(u>1){const y=u-1;l?(r==null||r(y),o==null||o()):(d(y),o==null||o())}},m=y=>{y!==u&&(y<1||y>t.length||(l?r==null||r(y):d(y)))},p={activeStep:u,stepsLength:t.length,isFirst:u===1,isLast:u===t.length,next:h,back:g,goToStep:m};return f.jsxs("div",{className:"mx-auto flex w-full flex-col md:flex-row",children:[f.jsx("ol",{className:"relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full self-start",children:t.map((y,v)=>{const k=v===t.length-1,w=v+1===u,x=v+1<u;return f.jsxs("li",{className:`ms-4 ${k?"":"mb-8"}`,children:[f.jsx("span",{className:`absolute -start-2 size-3.5 items-center justify-center rounded-full ring-1
|
|
583
583
|
${x||w?"bg-[#191960] ring-[#191960]":"bg-[#C0D4FF] ring-[#C0D4FF]"}`}),f.jsx("h3",{className:`text-sm font-medium leading-tight transition-colors duration-300
|
|
584
|
-
${x||w?"text-black":"text-gray-600"}`,children:y.title})]},y.title)})}),f.jsxs("div",{className:"w-full mt-6 ml-10 flex flex-col justify-between border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300",children:[f.jsx("div",{children:((b=t[u-1])==null?void 0:b.content)||f.jsx("p",{children:"No hay contenido."})}),f.jsx("div",{className:"bottom-0 left-0 w-full",children:f.jsx("div",{className:"flex justify-end gap-2",children:s?f.jsx("div",{className:"w-full flex justify-end",children:s(m)}):f.jsxs(f.Fragment,{children:[f.jsx(tr,{typeButton:"white",txtBtn:"Atrás",disabled:u===1,onClick:h,type:"button",full:!1}),u<t.length?f.jsx(tr,{typeButton:"blue",txtBtn:"Siguiente",onClick:g,type:"button",full:!1}):f.jsx(tr,{typeButton:"blue",txtBtn:"Finalizar",onClick:i,type:"button",full:!1})]})})})]})]})},BL=({label:t,options:e,classNameRadio:n,classNameLabel:r,className:s,onChange:a})=>f.jsxs("div",{className:`flex max-w-md flex-col gap-2 ${s??""}`,children:[t?f.jsx("div",{className:"text-sm font-medium text-gray-900",children:t}):null,f.jsx("div",{className:"flex items-center gap-4",children:e==null?void 0:e.map(o=>f.jsxs("div",{className:"flex items-center gap-x-1.5",children:[f.jsx(Xg,{id:o.id,value:o.value,name:o.name,onChange:a,defaultChecked:o.checked,disabled:o.disabled,className:`ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] cursor-pointer size-5 ${n??""} ${o.disabled?"ring-[#C4C4C4] bg-[#DDDDDD] cursor-not-allowed":""}`}),f.jsx(Ac,{htmlFor:o.id,className:`text-sm font-medium text-gray-900 ${r??""} ${o.disabled?"text-[#9F9F9F]":""}`,children:o.label}),o.tooltip?f.jsx($a,{content:o.tooltip,trigger:o.tooltipTrigger??"hover",disabled:o.disabled,children:o.tooltipChildren??f.jsx("button",{type:"button","aria-label":"Más información",className:"inline-flex size-4 items-center justify-center rounded-full border border-gray-300 text-[10px] leading-none text-gray-600 hover:bg-gray-50",children:"i"})}):null]},o.id))})]});function ux(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=ux(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ls(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=ux(t))&&(r&&(r+=" "),r+=e);return r}const vo=({id:t,title:e,children:n,isOpen:r,onToggle:s,variant:a="minimal",icon:o,iconPosition:i="right",classes:l,titleClasses:c})=>{const d=ls({minimal:"",bordered:"border border-gray-300 dark:border-gray-600",shadow:"shadow-md",ghost:"bg-transparent"}[a]);return f.jsxs("div",{id:t,className:ls("rounded-lg w-full",d),children:[f.jsxs("button",{onClick:s,className:ls("flex w-full items-center justify-between px-5 cursor-pointer text-left ",l||"p-4"),children:[f.jsxs("div",{className:"flex items-center gap-2",children:[o&&i==="left"&&f.jsx("span",{className:ls("transition-transform text-[#191960]",r&&"rotate-90"),children:o}),f.jsx("span",{className:ls(c||"text-base font-semibold"),children:e})]}),o&&i==="right"&&f.jsx("span",{className:ls("transition-transform text-[#191960]",r&&"rotate-90"),children:o})]}),r&&f.jsx("div",{className:"overflow-hidden",children:f.jsx("div",{className:"px-4 pb-3 text-gray-700 dark:text-gray-300",children:n})},"content")]})},fx=({items:t,mode:e="multi",defaultOpen:n=[],className:r})=>{const[s,a]=_.useState(n),o=i=>{a(e==="multi"?l=>l.includes(i)?l.filter(c=>c!==i):[...l,i]:l=>l.includes(i)?[]:[i])};return f.jsx("div",{className:r,children:t.map(i=>f.jsx("div",{className:ls("mb-2 rounded-[10px]",i.containerButtonClasses?i.containerButtonClasses:"border-[1px] border-[#C4C4C4]"),children:f.jsx(vo,{id:i.id,title:i.title,isOpen:s.includes(i.id),onToggle:()=>o(i.id),variant:i.variant,icon:i.icon,iconPosition:i.iconPosition,classes:i.classes??"p-5",titleClasses:i.titleClasses,children:i.content})},i.id))})},WL={dropdownListUl:"dropdownList-module__dropdownListUl__M0NZ4"},zL=({onSelect:t,items:e=[],placeholder:n="Buscar país, región o ciudad",fetchItems:r,minCharsToSearch:s=3,debounceMs:a=300,classIncludes:o,disabled:i=!1})=>{const[l,c]=_.useState(!1),[d,u]=_.useState(""),[g,h]=_.useState(e),p=_.useRef(null);_.useEffect(()=>{h(e)},[e]),_.useEffect(()=>{if(!r)return;if(d.trim().length<s){h([]);return}const b=new AbortController,y=setTimeout(async()=>{try{const v=await r(d.trim());h(v)}catch{h([])}},a);return()=>{clearTimeout(y),b.abort()}},[d,r,a,s]);const m=b=>{t(b),u(b.label),c(!1)};return f.jsxs("div",{ref:p,className:o,children:[f.jsx(_s,{style:{borderRadius:"10px",width:"290px"},type:"search",placeholder:n,name:"search",value:d,onChange:b=>{u(b.target.value),c(!0)},onFocus:()=>c(!0),onBlur:()=>{c(!1)},icon:!1,autoComplete:"off",disabled:i}),l&&g.length>0&&f.jsx("ul",{className:WL.dropdownListUl,children:g.map(b=>f.jsx("li",{onMouseDown:y=>{y.preventDefault(),y.stopPropagation(),m(b)},children:f.jsx("div",{className:"text-xs",children:b.label})},b.id))})]})},yf={dropdownListUl:"dropdownListWithCheckbox-module__dropdownListUl__hLddF",dropdownListItem:"dropdownListWithCheckbox-module__dropdownListItem__x1PgS",selected:"dropdownListWithCheckbox-module__selected__xNGEj"},HL=({onSelect:t,items:e=[],placeholder:n="Buscar país, región o ciudad",fetchItems:r,minCharsToSearch:s=3,debounceMs:a=300,classIncludes:o,iconSearch:i=!1,disabled:l=!1,selectedItems:c=[],selectAll:d=!1})=>{const[u,g]=_.useState(!1),[h,p]=_.useState(""),[m,b]=_.useState(e),[y,v]=_.useState(c),k=_.useRef(null);_.useEffect(()=>{b(e)},[e]),_.useEffect(()=>{v(c)},[c]),_.useEffect(()=>{d&&m.length>0?(v(m),t(m)):d||(v([]),t([]))},[d,m]),_.useEffect(()=>{if(!r)return;if(h.trim().length<s){b([]);return}const S=new AbortController,P=setTimeout(async()=>{try{const C=await r(h.trim());b(C)}catch{b([])}},a);return()=>{clearTimeout(P),S.abort()}},[h,r,a,s]),_.useEffect(()=>{const S=P=>{k.current&&!k.current.contains(P.target)&&g(!1)};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[]);const w=_.useCallback(S=>y.some(P=>P.id===S.id),[y]),x=S=>{const P=w(S);let C;P?C=y.filter(N=>N.id!==S.id):C=[...y,S],v(C),t(C)};return f.jsxs("div",{ref:k,className:o,children:[f.jsx(_s,{classInclude:`rounded-[10px] w-min-290px ${l?"opacity-80 cursor-not-allowed":"border border-[#19196080]"}`,type:"search",placeholder:n,name:"search",value:h,onChange:S=>{p(S.target.value),g(!0)},onFocus:()=>g(!0),icon:i,autoComplete:"off",disabled:l}),u&&m.length>0&&f.jsx("ul",{className:yf.dropdownListUl,children:m.map(S=>f.jsx("li",{className:`${yf.dropdownListItem} ${w(S)?yf.selected:""}`,children:f.jsx(kf,{label:S.label,value:S.id,checked:w(S),onChange:()=>x(S)})},S.id))})]})},YL=({items:t,title:e,onRemove:n,colors:r={},className:s="",containerClassName:a="",titleClassName:o="",showTitle:i=!0})=>{const c={...{backgroundColor:"#EEEEEE",textColor:"#191960",closeButtonBackgroundColor:"#191960",closeButtonTextColor:"#FFFFFF",borderRadius:20},...r},d={borderRadius:`${c.borderRadius}px`,backgroundColor:c.backgroundColor},u={color:c.textColor},g={backgroundColor:c.closeButtonBackgroundColor,color:c.closeButtonTextColor};return f.jsxs("div",{className:`${s}`,children:[i&&e&&f.jsx("h2",{className:`${o}`,children:e}),f.jsx("div",{className:`${a}`,style:{marginTop:6},children:f.jsx("div",{children:t.map(h=>f.jsxs("div",{className:"mb-1 ml-1 inline-flex items-center gap-2 bg-[#EEEEEE] px-2 py-1",style:d,children:[f.jsx("span",{className:"text-xs text-[#191960]",style:u,children:h.name}),f.jsx("button",{className:"flex size-4 items-center justify-center rounded-full font-semibold",style:g,onClick:()=>n(h.id),"aria-label":`Eliminar ${h.name}`,type:"button",children:"×"})]},h.id))})})]})},hx={success:{url:"https://ftp.mathilde-ads.com/382-fd0ab04039e5e3af316d454eb3ae0c89.svg",imageWidth:70,imageHeight:70},error:{url:"https://ftp.mathilde-ads.com/382-39f2a6acf3e4d6764f422b18995f0d78.svg",imageWidth:70,imageHeight:70},warning:{url:"https://ftp.mathilde-ads.com/382-2f512deea742dcc31826f8f0f612bbb9.svg",imageWidth:70,imageHeight:70}},Vl={};function VL(t){Object.assign(Vl,t)}function UL(t){return Vl[t]??hx[t]}function XL(){for(const t of Object.keys(Vl))delete Vl[t]}const xo={mth_image_icon:"styles-module__mth_image_icon__ivJY8",mth_alert_title:"styles-module__mth_alert_title__beG0Z",mth_alert_container:"styles-module__mth_alert_container__P-oAe",mth_confirm_button:"styles-module__mth_confirm_button__yrvkf",mth_cancel_button:"styles-module__mth_cancel_button__EWLco"},gx={title:xo.mth_alert_title,htmlContainer:xo.mth_alert_container,image:xo.mth_image_icon,cancelButton:xo.mth_cancel_button,confirmButton:xo.mth_confirm_button};function mx(t){if(t!==void 0){if(Array.isArray(t))return t.join(" ").trim()||void 0;if(typeof t=="string")return t.trim()||void 0}}function GL(t){const e=new Set([...Object.keys(gx),...t?Object.keys(t):[]]),n={};for(const r of e){const s=mx(gx[r]),a=mx(t==null?void 0:t[r]),o=[s,a].filter(Boolean).join(" ");o&&(n[r]=o)}return Object.keys(n).length?n:void 0}function KL(t){const{imageIconKey:e,imageUrl:n,imageWidth:r,imageHeight:s,...a}=t,o=()=>({...a,imageUrl:n,imageWidth:r,imageHeight:s});if(!e||n)return o();const i=UL(e);return i?{...a,imageUrl:i.url,imageWidth:r??i.imageWidth??70,imageHeight:s??i.imageHeight??70}:o()}const QL=({isOpen:t,onConfirm:e,onCancel:n,onClose:r,...s})=>(_.useEffect(()=>{if(!t)return;const a=KL(s),{customClass:o,...i}=a,l=GL(o);Ys.fire({...i,...l?{customClass:l}:{}}).then(c=>{c.isConfirmed&&e&&e(),c.isDismissed&&n&&n(),r&&r()})},[t,n,r,e,s]),null),Ul={"mth-parent-row":"collapsibleTable-module__mth-parent-row__X3y2O","mth-sub-row":"collapsibleTable-module__mth-sub-row__WQDui",mth_head_table:"collapsibleTable-module__mth_head_table__BLx3L",mth_body_table:"collapsibleTable-module__mth_body_table__eXjny"},ZL=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:g,isRowSelectable:h=()=>!0,collapsible:p=!1,collapseMode:m="multi",defaultOpenRows:b=[],onCollapseChange:y,openRowIds:v,getSubRows:k,collapseToggleColumnKey:w="id",collapseButtonClassName:x,parentRowClassName:S,subRowClassName:P})=>{const[C,N]=B.useState(""),[T,Y]=B.useState(1),[F,E]=B.useState(null),[D,j]=B.useState(b),M=v??D,H=z=>{if(v)return y==null?void 0:y(z);j(z),y==null||y(z)},X=z=>{p&&H(m==="multi"?M.includes(z)?M.filter(ne=>ne!==z):[...M,z]:M.includes(z)?[]:[z])},ee=B.useMemo(()=>F?[...e].sort((z,ne)=>{const ae=z[F.key],se=ne[F.key];return ae==null||se==null?0:typeof ae=="string"&&typeof se=="string"?F.direction==="asc"?ae.localeCompare(se):se.localeCompare(ae):F.direction==="asc"?Number(ae)-Number(se):Number(se)-Number(ae)}):e,[e,F]),I=B.useMemo(()=>{if(!C.trim())return ee;const z=C.toLowerCase().trim();return ee.filter(ne=>t.some(ae=>{const se=ne[ae.relation];return se!=null&&String(se).toLowerCase().includes(z)}))},[ee,C,t]),V=B.useMemo(()=>{const z=(T-1)*r,ne=z+r;return I.slice(z,ne)},[I,T,r]),L=Math.ceil(I.length/r),R=()=>{if(!g)return;const z=V.filter(ae=>h(ae)),ne=z.length>0&&z.every(ae=>c.has(ae.id));g(!ne,z.map(ae=>ae.id))},A=z=>{if(!u||!h(z))return;const ne=z.id,ae=c.has(ne);u(ne,!ae)},O=B.useMemo(()=>V.filter(z=>h(z)),[V,h]),W=O.filter(z=>c.has(z.id)).length,J=O.length>0&&W===O.length,K=W>0&&W<O.length,q=z=>{E(ne=>!ne||ne.key!==z?{key:z,direction:"asc"}:{key:z,direction:ne.direction==="asc"?"desc":"asc"})},te=(z,ne)=>typeof z=="function"?z(ne):!!z,ie=(z,ne)=>typeof z=="function"?z(ne):z,U=(z,ne,ae)=>{const se=ne[z.relation],oe=!!(ae!=null&&ae.isSubRow);if(z.isToggle){const me=!!se;return f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Jd,{checked:me,onChange:Ce=>d==null?void 0:d({rowId:ne.id,checked:Ce,row:ne,columnKey:z.relation}),disabled:!1}),z.toggleText&&f.jsx("span",{className:"text-sm text-gray-600",children:me?z.toggleText.active:z.toggleText.inactive})]})}if(z.badgeConfig)return f.jsx(ny,{value:se,config:z.badgeConfig});if(z.cell)return z.cell(ne);if(z.component){const me=z.component;return B.createElement(me,{row:ne,value:se,...z.cellProps||{}})}const ye=se??"";if(oe&&z.subRowTooltip&&te(z.subRowTooltip.enabled,ne)){const Ce=ie(z.subRowTooltip.content,ne);return f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("span",{children:ye}),f.jsx($a,{content:Ce,trigger:z.subRowTooltip.trigger??"hover",children:f.jsx("img",{className:"size-4",src:Gd,alt:z.subRowTooltip.iconAlt??"info"})})]})}return ye},le=(z,ne,ae,se)=>f.jsxs("div",{className:"flex items-center gap-1",children:[ae?f.jsx("button",{type:"button",onClick:()=>X(ne.id),className:x??"mth-collapse-btn","aria-label":se?"Colapsar fila":"Expandir fila",children:se?f.jsx(xs,{className:"size-3 text-[#191960] -ml-3"}):f.jsx(E_,{className:"size-3 text-[#191960] -ml-3"})}):f.jsx("span",{className:"mth-collapse-spacer"}),U(z,ne)]});return f.jsxs("div",{className:"w-full",children:[f.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&f.jsx("h2",{className:"text-base font-bold",children:s})}),f.jsx("div",{className:"flex",children:n&&f.jsx("div",{className:"w-1/2",children:f.jsx(ds,{rightIcon:Df,placeholder:"Buscar",value:C,onChange:z=>{N(z.target.value),Y(1)}})})}),f.jsxs("div",{className:"mt-0",children:[f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(Ke,{children:[f.jsxs(Ke.Head,{className:`${Ul.mth_head_table} ${a}`,children:[l&&f.jsx(Ke.HeadCell,{children:f.jsx(oa,{className:"bg-transparent",checked:J,ref:z=>{z&&(z.indeterminate=K)},onChange:R})},"checkbox-head"),t.map((z,ne)=>f.jsx(Ke.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>z.sortable!==!1&&q(z.relation),children:f.jsxs("div",{className:"flex items-center gap-1",children:[z.header,z.sortable!==!1&&f.jsx("span",{children:(F==null?void 0:F.key)===z.relation?F.direction==="desc"?f.jsx(xs,{className:"size-3"}):f.jsx(Lc,{className:"size-3"}):f.jsx(xs,{className:"size-3 opacity-50"})})]})},`column-${ne}-${z.relation}`))]}),f.jsx(Ke.Body,{className:`divide-y text-xs md:text-base lg:text-base ${Ul.mth_body_table} ${o}`,children:V.map(z=>{const ne=k?k(z):[],ae=p&&ne.length>0,se=ae&&M.includes(z.id);return f.jsxs(B.Fragment,{children:[f.jsxs(Ke.Row,{className:`${se?Ul["mth-parent-row"]:""} ${S}`,children:[l&&f.jsx(Ke.Cell,{children:f.jsx(oa,{className:"bg-transparent",checked:c.has(z.id),disabled:!h(z),onChange:()=>A(z)})}),t.map((oe,ye)=>oe.relation===w?f.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium ",children:le(oe,z,ae,se)},`${z.id}-${ye}`):f.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium",children:U(oe,z)},`${z.id}-${ye}`))]}),ae&&se&&ne.map((oe,ye)=>f.jsxs(Ke.Row,{className:`${se?Ul["mth-sub-row"]:""} ${P}`,children:[l&&f.jsx(Ke.Cell,{}),t.map((me,Ce)=>me.relation===w?f.jsx(Ke.Cell,{className:"whitespace-nowrap font-normal",children:f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("span",{className:"mth-collapse-spacer"}),U(me,oe,{isSubRow:!0})]})},`${z.id}-sub-${ye}-${Ce}`):f.jsx(Ke.Cell,{className:"whitespace-nowrap font-normal",children:U(me,oe,{isSubRow:!0})},`${z.id}-sub-${ye}-${Ce}`))]},`${z.id}-sub-${ye}`))]},z.id)})})]})}),i&&L>1&&f.jsx("div",{className:"mt-2 flex w-full justify-end",children:f.jsx(Zd,{currentPage:T,totalPages:L,onPageChange:Y})})]})]})};function Xl(t){return Pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10zm0 5.25a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75a.75.75 0 01-.75-.75z",clipRule:"evenodd"},child:[]}]})(t)}function Gl(t){return Pe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(t)}const ta=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,JL=({item:t,categoryId:e})=>f.jsx("div",{className:"px-4 py-1 w-fit text-black font-light rounded-[10px] text-sm cursor-move hover:bg-[#C0D4FF] border border-[#c4c4c4] flex flex-col items-center",draggable:!0,onDragStart:n=>{n.dataTransfer.effectAllowed="copy",n.dataTransfer.setData("application/json",JSON.stringify({categoryId:e,itemId:t.id,label:t.label}))},children:f.jsxs("span",{className:"select-none flex items-center gap-2 text-sm",children:[f.jsx(Xl,{className:"w-4 h-4 text-[#191960]"}),t.label]})}),qL=({groupId:t,conditions:e,onDrop:n,onRemoveCondition:r})=>{const[s,a]=_.useState(!1),o=c=>{c.preventDefault(),c.dataTransfer.dropEffect="copy",a(!0)},i=()=>{a(!1)},l=c=>{c.preventDefault(),a(!1);try{const d=JSON.parse(c.dataTransfer.getData("application/json")),u={id:ta(),categoryId:d.categoryId,itemId:d.itemId,label:d.label};n(t,u)}catch(d){console.error("Error al procesar el drop:",d)}};return f.jsx("div",{className:`min-h-[40px] p-2 border-[1px] rounded-[10px] transition-colors ${s?"border-[#191960] bg-[#C0D4FF]":"border-[#C4C4C4] bg-gray-50"}`,onDragOver:o,onDragLeave:i,onDrop:l,children:e.length===0?f.jsx("div",{className:"text-gray-400 text-sm text-center",children:"Arrastra elementos aquí"}):f.jsx("div",{className:"flex flex-wrap gap-2 max-h-[200px] overflow-y-auto",children:e.map((c,d)=>f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs("div",{className:"px-2 py-1 border border-[#C4C4C4] rounded-[10px] text-sm inline-flex items-center gap-2",children:[f.jsx(Xl,{className:"w-4 h-4 text-[#191960]"}),f.jsx("span",{children:c.label}),f.jsx(tr,{leftIcon:ey,iconSize:16,txtBtn:"",typeButton:"red",full:!1,type:"button",onClick:()=>r(t,c.id),classes:"px-1 py-0.5 rounded-[10px]"})]}),d<e.length-1&&f.jsx("span",{className:"text-xs font-semibold text-gray-500 px-1",children:"AND"})]},c.id))})})},$L=({categories:t,onQueryChange:e,maxGroups:n=3,titleCategories:r="Buscar categorías"})=>{const[s,a]=_.useState([]),[o,i]=_.useState([{id:ta(),title:"Incluir",groups:[{id:ta(),conditions:[],operator:"AND"}]},{id:ta(),title:"Excluir",groups:[{id:ta(),conditions:[],operator:"AND"}]}]),l=h=>{a(p=>p.includes(h)?p.filter(m=>m!==h):[...p,h])},c=(h,p,m)=>{const b=o.map(y=>{if(y.id===h){const v=y.groups.map(k=>k.id===p?k.conditions.some(x=>x.categoryId===m.categoryId&&x.itemId===m.itemId)?k:{...k,conditions:[...k.conditions,m]}:k);return{...y,groups:v}}return y});i(b),e==null||e(b)},d=(h,p,m)=>{const b=o.map(y=>{if(y.id===h){const v=y.groups.map(k=>k.id===p?{...k,conditions:k.conditions.filter(w=>w.id!==m)}:k);return{...y,groups:v}}return y});i(b),e==null||e(b)},u=h=>{const p=o.map(m=>m.id===h&&m.groups.length<n?{...m,groups:[...m.groups,{id:ta(),conditions:[],operator:"OR"}]}:m);i(p),e==null||e(p)},g=(h,p)=>{const m=o.map(b=>b.id===h&&b.groups.length>1?{...b,groups:b.groups.filter(y=>y.id!==p)}:b);i(m),e==null||e(m)};return f.jsxs("div",{className:"flex gap-4 w-full h-full",children:[f.jsxs("div",{className:"w-1/4 bg-white p-4 overflow-y-auto",children:[f.jsx("h3",{className:"text-sm font-semibold mb-2 text-gray-700",children:r||"Categorías"}),f.jsx("div",{className:"bg-white mb-2 overflow-y-auto",children:f.jsx(_s,{type:"search",placeholder:"Buscar",classInclude:"w-full py-0 rounded-[10px]",className:"mb-2",icon:!1})}),f.jsx("div",{className:"space-y-1 border rounded-[10px] p-5",children:t.map(h=>f.jsx(vo,{id:h.id,title:h.title,isOpen:s.includes(h.id),onToggle:()=>l(h.id),icon:f.jsx(Gl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-2",children:f.jsx("div",{className:"space-y-1",children:f.jsx("div",{className:"space-y-1",children:h.items.map(p=>f.jsx(JL,{item:p,categoryId:h.id},p.id))})},h.id)},h.id))})]}),f.jsx("div",{className:"flex-1 bg-white border border-gray-200 rounded-lg p-4 overflow-y-auto",children:f.jsx("div",{className:"space-y-2",children:o.map(h=>f.jsx(vo,{id:h.id,title:h.title,isOpen:s.includes(h.id),onToggle:()=>l(h.id),variant:"bordered",icon:f.jsx(Gl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-4",children:f.jsxs("div",{className:"space-y-2",children:[h.groups.map((p,m)=>f.jsxs("div",{children:[m>0&&f.jsx("div",{className:"flex justify-center my-2",children:f.jsx("span",{className:"px-2 py-1 bg-[#191960] text-white text-xs font-semibold rounded",children:"OR"})}),f.jsxs("div",{className:"flex flex-row space-y-1",children:[f.jsx("div",{className:"w-11/12",children:f.jsx(qL,{groupId:p.id,conditions:p.conditions,onDrop:(b,y)=>c(h.id,b,y),onRemoveCondition:(b,y)=>d(h.id,b,y)})}),f.jsx("div",{className:"w-1/12",children:h.groups.length>1&&m>0&&f.jsx("div",{className:"flex justify-end",children:f.jsx(tr,{leftIcon:"https://ftp.mathilde-ads.com/382-6986b247c2c7729fb231da467b8e913c.svg",iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>g(h.id,p.id),classes:"px-1 rounded-[10px] text-white w-8 h-8"})})})]})]},p.id)),h.groups.length<n&&f.jsx("div",{className:"flex mt-3",children:f.jsx(tr,{leftIcon:N_,iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>u(h.id),classes:"px-2 py-2 rounded-[10px]"})})]})},h.id))})})]})},wf=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,px=(t,e)=>t.some(n=>n.categoryId===e.categoryId&&n.itemId===e.itemId),bx=(t,e,n)=>t.map(r=>r.id===e?{...r,conditions:[...r.conditions,n]}:r),e6=(t,e,n,r,s)=>t.map(a=>{if(a.id!==e)return a;if(n){const i=a.groups.find(l=>l.id===n);return!i||px(i.conditions,r)?a:{...a,groups:bx(a.groups,n,r)}}const o=a.groups.find(i=>i.conditions.length>0&&i.conditions[0].categoryId===r.categoryId);return o?px(o.conditions,r)?a:{...a,groups:bx(a.groups,o.id,r)}:a.groups.length>=s?a:{...a,groups:[...a.groups,{id:wf(),conditions:[r],operator:"OR"}]}}),t6=(t,e,n,r)=>t.map(s=>{if(s.id!==e)return s;const a=s.groups.map(o=>o.id===n?{...o,conditions:o.conditions.filter(i=>i.id!==r)}:o).filter(o=>o.conditions.length>0);return{...s,groups:a}}),n6=({categories:t,onQueryChange:e,maxGroups:n})=>{const[r,s]=_.useState([]),[a,o]=_.useState(null),[i,l]=_.useState(null),[c,d]=_.useState(()=>[{id:wf(),title:"Configuración de audiencia",operator:"AND",groups:[]}]);return _.useEffect(()=>{s(m=>m.length===0&&c.length>0?[c[0].id]:m)},[]),{filterSections:c,openCategoryId:i,openAccordions:r,dragData:a,setDragData:o,toggleAccordion:m=>{s(b=>b.includes(m)?b.filter(y=>y!==m):[...b,m])},handleDrop:(m,b,y)=>{const v=e6(c,m,b,y,n);d(v),e==null||e(v)},handleRemoveCondition:(m,b,y)=>{const v=t6(c,m,b,y);d(v),e==null||e(v)},handleSearch:m=>{const b=m.trim().toLowerCase();if(!b){l(null);return}const y=t.find(v=>{const k=v.title.toLowerCase().includes(b),w=v.items.some(x=>x.label.toLowerCase().includes(b));return k||w});l(y?y.id:null)}}},yx=_.createContext({dragData:null,setDragData:()=>{}}),wx=()=>_.useContext(yx),vx="drag-cursor-override",r6=({item:t,categoryId:e})=>{const[n,r]=_.useState(!1),{setDragData:s}=wx(),a={categoryId:e,itemId:t.id,label:t.label},o=_.useRef(!1),i=_.useCallback(()=>{const d=document.getElementById(vx);d&&d.remove()},[]),l=_.useCallback(()=>{i();const d=document.createElement("style");d.id=vx,d.textContent="* { cursor: grabbing !important; }",document.head.appendChild(d)},[i]),c=_.useCallback(()=>{r(!1),s(null),i(),o.current=!1},[i,s]);return _.useEffect(()=>{const d=()=>{c()};return window.addEventListener("dragend",d),window.addEventListener("drop",d),()=>{window.removeEventListener("dragend",d),window.removeEventListener("drop",d),i()}},[i,c]),f.jsx("div",{className:`flex max-w-[200px] items-center rounded-[5px] border border-qb-border px-3 py-1.5 text-sm font-light text-black transition-all hover:bg-qb-chip-hover ${n?"cursor-grabbing opacity-50":"cursor-grab"}`,draggable:!0,onPointerDown:()=>{o.current=!1,l()},onPointerUp:()=>{o.current||i()},onDragStart:d=>{o.current=!0,r(!0),s(a),d.dataTransfer.effectAllowed="all";try{d.dataTransfer.dropEffect="copy"}catch{}d.dataTransfer.setData("application/json",JSON.stringify(a)),l();const u=d.currentTarget.cloneNode(!0);u.style.position="absolute",u.style.top="-9999px",u.style.left="-9999px",u.style.opacity="0.9",u.style.transform="rotate(3deg)",u.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)",document.body.appendChild(u);const g=d.currentTarget.getBoundingClientRect();d.dataTransfer.setDragImage(u,g.width/2,g.height/2),setTimeout(()=>{document.body.contains(u)&&document.body.removeChild(u)},0)},onDragEnd:c,children:f.jsxs("span",{className:"flex min-w-0 flex-1 select-none items-start gap-2",children:[f.jsx(Xl,{className:"mt-0.5 size-4 shrink-0 text-qb-primary"}),f.jsx("span",{className:"min-w-0 break-words",children:t.label})]})})},s6=({title:t,categories:e,openCategoryId:n,onSearch:r,selectedItemKeys:s})=>{const[a,o]=_.useState(""),i=_.useMemo(()=>{const c=a.trim().toLowerCase(),d=e.map(u=>({...u,items:u.items.filter(g=>!s.has(`${u.id}:${g.id}`))})).filter(u=>u.items.length>0);return c?d.map(u=>{const g=u.title.toLowerCase().includes(c),h=u.items.filter(p=>p.label.toLowerCase().includes(c));return g?u:h.length===0?null:{...u,items:h}}).filter(u=>u!==null):d},[e,a,s]),l=i.length===0?[]:n&&i.some(c=>c.id===n)?[n]:[i[0].id];return f.jsxs("div",{className:"w-1/3 overflow-y-auto bg-white p-4",children:[f.jsx("h3",{className:"mb-2 text-base font-semibold text-black",children:t||"Categorías"}),f.jsx("div",{className:"mb-2 overflow-y-auto bg-white",children:f.jsx(_s,{type:"search",placeholder:"Buscar",classInclude:"w-full py-0 rounded-[10px]",className:"mb-2",icon:!1,onChange:c=>{const d=c.target.value;o(d),r(d)}})}),f.jsx("div",{className:"rounded-[10px] border border-qb-border p-2",children:f.jsx(fx,{mode:"single",defaultOpen:l,items:i.map(c=>({id:c.id,title:c.title,icon:f.jsx(Gl,{className:"size-5"}),iconPosition:"right",classes:"p-1",titleClasses:"text-sm",containerButtonClasses:"border-none",content:f.jsx("div",{className:"max-h-[200px] space-y-1 overflow-y-auto",children:c.items.map(d=>f.jsx(r6,{item:d,categoryId:c.id},d.id))})}))},n??"accordion-categories")})]})},a6=({groupId:t,conditions:e,onRemoveCondition:n})=>f.jsx("div",{className:"flex flex-col gap-2",children:e.map(r=>f.jsx("div",{className:"flex items-center",children:f.jsxs("div",{className:"flex w-[200px] items-start gap-1 rounded-[5px] border border-qb-border px-3 py-1.5 text-sm",children:[f.jsx(Xl,{className:"mt-0.5 size-4 shrink-0 text-qb-primary"}),f.jsx("span",{className:"min-w-0 flex-1 break-words",children:r.label}),f.jsx(tr,{leftIcon:ey,iconSize:18,txtBtn:"",typeButton:"red",full:!1,type:"button",onClick:()=>n(t||"",r.id),classes:"text-black"})]})},r.id))}),o6=({section:t,onDrop:e,onRemoveCondition:n})=>{const[r,s]=_.useState(!1),{dragData:a}=wx(),o=t.groups.some(d=>d.conditions.length>0),i=d=>{d.preventDefault(),d.dataTransfer.dropEffect="copy",s(!0)},l=d=>{d.currentTarget.contains(d.relatedTarget)||s(!1)},c=d=>{d.preventDefault(),s(!1);let u=null;const g=d.dataTransfer.getData("application/json");if(g!=null&&g.trim())try{u=JSON.parse(g)}catch(p){console.error("Error al procesar el drop:",p);return}else a&&(u=a);if(!u)return;const h={id:wf(),categoryId:u.categoryId,itemId:u.itemId,label:u.label};e(t.id,null,h)};return f.jsx("div",{className:`border rounded-[10px] p-2.5 min-h-[60px] w-full transition-colors ${r?"bg-qb-drop-bg border-qb-primary":"border-qb-border"}`,onDragOver:i,onDragLeave:l,onDrop:c,children:o?f.jsx("div",{className:"flex flex-col items-start gap-1 2xl:flex-row 2xl:flex-wrap 2xl:gap-1",children:t.groups.map((d,u)=>f.jsxs(_.Fragment,{children:[u>0&&f.jsx("div",{className:"flex items-center justify-center my-1 2xl:my-0 2xl:px-2",children:f.jsx("span",{className:"px-2 py-1 bg-qb-primary text-white text-xs font-semibold rounded",children:"AND"})}),f.jsx("div",{className:"shrink-0",children:f.jsx(a6,{groupId:d.id,conditions:d.conditions,onRemoveCondition:(g,h)=>n(t.id,g||d.id,h)})})]},d.id))}):f.jsx("span",{className:"text-sm text-[#9F9F9F] font-normal",children:"Selecciona las opciones y arrastra hasta aquí."})})},i6=({filterSections:t,openAccordions:e,sectionTitle:n,onToggleAccordion:r,onDrop:s,onRemoveCondition:a})=>f.jsx("div",{className:"flex-1 bg-white px-1 py-4 overflow-y-auto",children:f.jsx("div",{className:"space-y-2 mt-8",children:t.map(o=>f.jsx(vo,{id:o.id,title:n,isOpen:e.includes(o.id),onToggle:()=>r(o.id),variant:"bordered",icon:f.jsx(Gl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-5",children:f.jsx(o6,{section:o,onDrop:s,onRemoveCondition:a})},o.id))})}),l6=({categories:t,onQueryChange:e,maxGroups:n=3,titleCategories:r="Buscar categorías",isToolTipOpen:s=!1,toolTipContent:a="Configuración de audiencia"})=>{const{filterSections:o,openCategoryId:i,openAccordions:l,dragData:c,setDragData:d,toggleAccordion:u,handleDrop:g,handleRemoveCondition:h,handleSearch:p}=n6({categories:t,onQueryChange:e,maxGroups:n}),m=_.useMemo(()=>{const y=new Set;return o.forEach(v=>{v.groups.forEach(k=>{k.conditions.forEach(w=>{y.add(`${w.categoryId}:${w.itemId}`)})})}),y},[o]),b=s?f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{children:"Configuración de audiencia"}),f.jsx($a,{content:a,trigger:"hover",children:f.jsx("img",{className:"size-4 text-qb-primary",src:Gd,alt:"info"})})]}):"Configuración de audiencia";return f.jsx(yx.Provider,{value:{dragData:c,setDragData:d},children:f.jsxs("div",{className:"flex w-full",children:[f.jsx(s6,{title:r,categories:t,openCategoryId:i,onSearch:p,selectedItemKeys:m}),f.jsx(i6,{filterSections:o,openAccordions:l,maxGroups:n,sectionTitle:b,onToggleAccordion:u,onDrop:g,onRemoveCondition:h})]})})},ct={"audience-loading":"spinnerMth-module__audience-loading__LEgdv",spinner:"spinnerMth-module__spinner__fFqhw","spinner-center":"spinnerMth-module__spinner-center__GyDhh","spinner-segment":"spinnerMth-module__spinner-segment__gU-wW","segment-1":"spinnerMth-module__segment-1__sSDuK","segment-2":"spinnerMth-module__segment-2__9W-CH","segment-3":"spinnerMth-module__segment-3__fyp4E","segment-4":"spinnerMth-module__segment-4__hMDSa","segment-5":"spinnerMth-module__segment-5__0b-Ow","segment-6":"spinnerMth-module__segment-6__-u1-Q","segment-7":"spinnerMth-module__segment-7__UD-7L","segment-8":"spinnerMth-module__segment-8__6-wy2"},c6=({description:t=""})=>f.jsx(f.Fragment,{children:f.jsxs("div",{className:ct["audience-loading"],children:[f.jsxs("div",{className:ct.spinner,children:[f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-1"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-2"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-3"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-4"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-5"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-6"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-7"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-8"]}`}),f.jsx("div",{className:ct["spinner-center"]})]}),t&&f.jsx("p",{className:"audience-text",dangerouslySetInnerHTML:{__html:t}})]})});ce.Accordion=vo,ce.AccordionGroup=fx,ce.Alert=QL,ce.BUILT_IN_ALERT_IMAGE_ICONS=hx,ce.ButtonFormat=tr,ce.Card=Kd,ce.CardIndicator=K_,ce.Checkbox=kf,ce.ChipList=YL,ce.CollapsibleTable=ZL,ce.CustomPagination=Zd,ce.DatePicker=AL,ce.DateRangePicker=IL,ce.DragAndDrop=l6,ce.DropdownButton=LL,ce.DropdownList=zL,ce.DropdownListWithCheckbox=HL,ce.Dropzone=pN,ce.ImageFormat=Cr,ce.InputForm=_s,ce.LayoutOutside=D5,ce.ListFile=yN,ce.Loader=RL,ce.ModalFormat=k0,ce.MyDoughnutChart=vD,ce.PasswordInput=Vc,ce.PasswordValidationList=ry,ce.ProgressBar=Nm,ce.QueryBuilder=$L,ce.RadioButton=BL,ce.SelectForm=jm,ce.SidebarPro=w5,ce.Spinner=wN,ce.SpinnerMth=c6,ce.Stepper=FL,ce.TableComponent=C5,ce.TableOfContents=P5,ce.TabsComponent=vN,ce.Tag=qd,ce.TermsCheckbox=M5,ce.Toggle=Jd,ce.TooltipComponent=$a,ce.ValidationPassword=T5,ce.clearAlertImageIcons=XL,ce.registerAlertImageIcons=VL,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})});
|
|
584
|
+
${x||w?"text-black":"text-gray-600"}`,children:y.title})]},y.title)})}),f.jsxs("div",{className:"w-full mt-6 ml-10 flex flex-col justify-between border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300",children:[f.jsx("div",{children:((b=t[u-1])==null?void 0:b.content)||f.jsx("p",{children:"No hay contenido."})}),f.jsx("div",{className:"bottom-0 left-0 w-full",children:f.jsx("div",{className:"flex justify-end gap-2",children:s?f.jsx("div",{className:"w-full flex justify-end",children:s(p)}):f.jsxs(f.Fragment,{children:[f.jsx(tr,{typeButton:"white",txtBtn:"Atrás",disabled:u===1,onClick:g,type:"button",full:!1}),u<t.length?f.jsx(tr,{typeButton:"blue",txtBtn:"Siguiente",onClick:h,type:"button",full:!1}):f.jsx(tr,{typeButton:"blue",txtBtn:"Finalizar",onClick:i,type:"button",full:!1})]})})})]})]})},Yj=({label:t,options:e,classNameRadio:n,classNameLabel:r,className:s,onChange:a})=>f.jsxs("div",{className:`flex max-w-md flex-col gap-2 ${s??""}`,children:[t?f.jsx("div",{className:"text-sm font-medium text-gray-900",children:t}):null,f.jsx("div",{className:"flex items-center gap-4",children:e==null?void 0:e.map(o=>f.jsxs("div",{className:"flex items-center gap-x-1.5",children:[f.jsx(G0,{id:o.id,value:o.value,name:o.name,onChange:a,defaultChecked:o.checked,disabled:o.disabled,className:`ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] cursor-pointer size-5 ${n??""} ${o.disabled?"ring-[#C4C4C4] bg-[#DDDDDD] cursor-not-allowed":""}`}),f.jsx(Ac,{htmlFor:o.id,className:`text-sm font-medium text-gray-900 ${r??""} ${o.disabled?"text-[#9F9F9F]":""}`,children:o.label}),o.tooltip?f.jsx($a,{content:o.tooltip,trigger:o.tooltipTrigger??"hover",disabled:o.disabled,children:o.tooltipChildren??f.jsx("button",{type:"button","aria-label":"Más información",className:"inline-flex size-4 items-center justify-center rounded-full border border-gray-300 text-[10px] leading-none text-gray-600 hover:bg-gray-50",children:"i"})}):null]},o.id))})]});function fx(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=fx(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function ls(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=fx(t))&&(r&&(r+=" "),r+=e);return r}const vo=({id:t,title:e,children:n,isOpen:r,onToggle:s,variant:a="minimal",icon:o,iconPosition:i="right",classes:l,titleClasses:c})=>{const d=ls({minimal:"",bordered:"border border-gray-300 dark:border-gray-600",shadow:"shadow-md",ghost:"bg-transparent"}[a]);return f.jsxs("div",{id:t,className:ls("rounded-lg w-full",d),children:[f.jsxs("button",{onClick:s,className:ls("flex w-full items-center justify-between px-5 cursor-pointer text-left ",l||"p-4"),children:[f.jsxs("div",{className:"flex items-center gap-2",children:[o&&i==="left"&&f.jsx("span",{className:ls("transition-transform text-[#191960]",r&&"rotate-90"),children:o}),f.jsx("span",{className:ls(c||"text-base font-semibold"),children:e})]}),o&&i==="right"&&f.jsx("span",{className:ls("transition-transform text-[#191960]",r&&"rotate-90"),children:o})]}),r&&f.jsx("div",{className:"overflow-hidden",children:f.jsx("div",{className:"px-4 pb-3 text-gray-700 dark:text-gray-300",children:n})},"content")]})},hx=({items:t,mode:e="multi",defaultOpen:n=[],className:r})=>{const[s,a]=_.useState(n),o=i=>{a(e==="multi"?l=>l.includes(i)?l.filter(c=>c!==i):[...l,i]:l=>l.includes(i)?[]:[i])};return f.jsx("div",{className:r,children:t.map(i=>f.jsx("div",{className:ls("mb-2 rounded-[10px]",i.containerButtonClasses?i.containerButtonClasses:"border-[1px] border-[#C4C4C4]"),children:f.jsx(vo,{id:i.id,title:i.title,isOpen:s.includes(i.id),onToggle:()=>o(i.id),variant:i.variant,icon:i.icon,iconPosition:i.iconPosition,classes:i.classes??"p-5",titleClasses:i.titleClasses,children:i.content})},i.id))})},Vj={dropdownListUl:"dropdownList-module__dropdownListUl__M0NZ4"},Uj=({onSelect:t,items:e=[],placeholder:n="Buscar país, región o ciudad",fetchItems:r,minCharsToSearch:s=3,debounceMs:a=300,classIncludes:o,disabled:i=!1})=>{const[l,c]=_.useState(!1),[d,u]=_.useState(""),[h,g]=_.useState(e),m=_.useRef(null);_.useEffect(()=>{g(e)},[e]),_.useEffect(()=>{if(!r)return;if(d.trim().length<s){g([]);return}const b=new AbortController,y=setTimeout(async()=>{try{const v=await r(d.trim());g(v)}catch{g([])}},a);return()=>{clearTimeout(y),b.abort()}},[d,r,a,s]);const p=b=>{t(b),u(b.label),c(!1)};return f.jsxs("div",{ref:m,className:o,children:[f.jsx(_s,{style:{borderRadius:"10px",width:"290px"},type:"search",placeholder:n,name:"search",value:d,onChange:b=>{u(b.target.value),c(!0)},onFocus:()=>c(!0),onBlur:()=>{c(!1)},icon:!1,autoComplete:"off",disabled:i}),l&&h.length>0&&f.jsx("ul",{className:Vj.dropdownListUl,children:h.map(b=>f.jsx("li",{onMouseDown:y=>{y.preventDefault(),y.stopPropagation(),p(b)},children:f.jsx("div",{className:"text-xs",children:b.label})},b.id))})]})},yf={dropdownListUl:"dropdownListWithCheckbox-module__dropdownListUl__hLddF",dropdownListItem:"dropdownListWithCheckbox-module__dropdownListItem__x1PgS",selected:"dropdownListWithCheckbox-module__selected__xNGEj"},Xj=({items:t=[],fetchItems:e,value:n,defaultValue:r=[],onChange:s,selectAll:a,placeholder:o="Buscar...",disabled:i=!1,iconSearch:l=!1,minCharsToSearch:c=3,debounceMs:d=300,className:u})=>{const h=n!==void 0,[g,m]=_.useState(r),p=h?n:g,[b,y]=_.useState(!1),[v,k]=_.useState(""),[w,x]=_.useState(t),C=_.useRef(null);_.useEffect(()=>{e||x(t)},[t,e]),_.useEffect(()=>{if(!e)return;if(v.trim().length<c){x([]);return}const S=setTimeout(async()=>{try{const B=await e(v.trim());x(B)}catch{x([])}},d);return()=>clearTimeout(S)},[v,e,d,c]),_.useEffect(()=>{const S=B=>{C.current&&!C.current.contains(B.target)&&y(!1)};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[]),_.useEffect(()=>{if(!a)return;const S=new Set(p.map(A=>A.id));if(!w.every(A=>S.has(A.id))&&w.length>0){const A=w;h||m(A),s==null||s(A)}},[a,w]);const N=_.useCallback(S=>p.some(B=>B.id===S.id),[p]),M=S=>{h||m(S),s==null||s(S)},P=S=>{const A=N(S)?p.filter(T=>T.id!==S.id):[...p,S];M(A)};return f.jsxs("div",{ref:C,className:u,children:[f.jsx(_s,{type:"search",placeholder:o,value:v,onChange:S=>{k(S.target.value),y(!0)},onFocus:()=>y(!0),icon:l,disabled:i,autoComplete:"off",classInclude:`rounded-[10px] ${i?"opacity-60":"border border-[#19196080]"}`}),b&&w.length>0&&f.jsx("ul",{className:yf.dropdownListUl,children:w.map(S=>f.jsx("li",{className:`${yf.dropdownListItem} ${N(S)?yf.selected:""}`,children:f.jsx(_f,{label:S.label,value:S.value,icono:S.icono,checked:N(S),onChange:()=>P(S)})},S.id))})]})},Gj=({items:t,title:e,onRemove:n,colors:r={},className:s="",containerClassName:a="",titleClassName:o="",showTitle:i=!0})=>{const c={...{backgroundColor:"#EEEEEE",textColor:"#191960",closeButtonBackgroundColor:"#191960",closeButtonTextColor:"#FFFFFF",borderRadius:20},...r},d={borderRadius:`${c.borderRadius}px`,backgroundColor:c.backgroundColor},u={color:c.textColor},h={backgroundColor:c.closeButtonBackgroundColor,color:c.closeButtonTextColor};return f.jsxs("div",{className:`${s}`,children:[i&&e&&f.jsx("h2",{className:`${o}`,children:e}),f.jsx("div",{className:`${a}`,style:{marginTop:6},children:f.jsx("div",{children:t.map(g=>f.jsxs("div",{className:"mb-1 ml-1 inline-flex items-center gap-2 bg-[#EEEEEE] px-2 py-1",style:d,children:[f.jsx("span",{className:"text-xs text-[#191960]",style:u,children:g.name}),f.jsx("button",{className:"flex size-4 items-center justify-center rounded-full font-semibold",style:h,onClick:()=>n(g.id),"aria-label":`Eliminar ${g.name}`,type:"button",children:"×"})]},g.id))})})]})},gx={success:{url:"https://ftp.mathilde-ads.com/382-fd0ab04039e5e3af316d454eb3ae0c89.svg",imageWidth:70,imageHeight:70},error:{url:"https://ftp.mathilde-ads.com/382-39f2a6acf3e4d6764f422b18995f0d78.svg",imageWidth:70,imageHeight:70},warning:{url:"https://ftp.mathilde-ads.com/382-2f512deea742dcc31826f8f0f612bbb9.svg",imageWidth:70,imageHeight:70}},Vl={};function Kj(t){Object.assign(Vl,t)}function Zj(t){return Vl[t]??gx[t]}function Qj(){for(const t of Object.keys(Vl))delete Vl[t]}const xo={mth_image_icon:"styles-module__mth_image_icon__ivJY8",mth_alert_title:"styles-module__mth_alert_title__beG0Z",mth_alert_container:"styles-module__mth_alert_container__P-oAe",mth_confirm_button:"styles-module__mth_confirm_button__yrvkf",mth_cancel_button:"styles-module__mth_cancel_button__EWLco"},mx={title:xo.mth_alert_title,htmlContainer:xo.mth_alert_container,image:xo.mth_image_icon,cancelButton:xo.mth_cancel_button,confirmButton:xo.mth_confirm_button};function px(t){if(t!==void 0){if(Array.isArray(t))return t.join(" ").trim()||void 0;if(typeof t=="string")return t.trim()||void 0}}function Jj(t){const e=new Set([...Object.keys(mx),...t?Object.keys(t):[]]),n={};for(const r of e){const s=px(mx[r]),a=px(t==null?void 0:t[r]),o=[s,a].filter(Boolean).join(" ");o&&(n[r]=o)}return Object.keys(n).length?n:void 0}function qj(t){const{imageIconKey:e,imageUrl:n,imageWidth:r,imageHeight:s,...a}=t,o=()=>({...a,imageUrl:n,imageWidth:r,imageHeight:s});if(!e||n)return o();const i=Zj(e);return i?{...a,imageUrl:i.url,imageWidth:r??i.imageWidth??70,imageHeight:s??i.imageHeight??70}:o()}const $j=({isOpen:t,onConfirm:e,onCancel:n,onClose:r,...s})=>(_.useEffect(()=>{if(!t)return;const a=qj(s),{customClass:o,...i}=a,l=Jj(o);Ys.fire({...i,...l?{customClass:l}:{}}).then(c=>{c.isConfirmed&&e&&e(),c.isDismissed&&n&&n(),r&&r()})},[t,n,r,e,s]),null),Ul={"mth-parent-row":"collapsibleTable-module__mth-parent-row__X3y2O","mth-sub-row":"collapsibleTable-module__mth-sub-row__WQDui",mth_head_table:"collapsibleTable-module__mth_head_table__BLx3L",mth_body_table:"collapsibleTable-module__mth_body_table__eXjny"},eI=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:h,isRowSelectable:g=()=>!0,collapsible:m=!1,collapseMode:p="multi",defaultOpenRows:b=[],onCollapseChange:y,openRowIds:v,getSubRows:k,collapseToggleColumnKey:w="id",collapseButtonClassName:x,parentRowClassName:C,subRowClassName:N})=>{const[M,P]=W.useState(""),[S,B]=W.useState(1),[A,T]=W.useState(null),[D,j]=W.useState(b),E=v??D,Y=H=>{if(v)return y==null?void 0:y(H);j(H),y==null||y(H)},X=H=>{m&&Y(p==="multi"?E.includes(H)?E.filter(ne=>ne!==H):[...E,H]:E.includes(H)?[]:[H])},ee=W.useMemo(()=>A?[...e].sort((H,ne)=>{const ae=H[A.key],se=ne[A.key];return ae==null||se==null?0:typeof ae=="string"&&typeof se=="string"?A.direction==="asc"?ae.localeCompare(se):se.localeCompare(ae):A.direction==="asc"?Number(ae)-Number(se):Number(se)-Number(ae)}):e,[e,A]),I=W.useMemo(()=>{if(!M.trim())return ee;const H=M.toLowerCase().trim();return ee.filter(ne=>t.some(ae=>{const se=ne[ae.relation];return se!=null&&String(se).toLowerCase().includes(H)}))},[ee,M,t]),V=W.useMemo(()=>{const H=(S-1)*r,ne=H+r;return I.slice(H,ne)},[I,S,r]),F=Math.ceil(I.length/r),L=()=>{if(!h)return;const H=V.filter(ae=>g(ae)),ne=H.length>0&&H.every(ae=>c.has(ae.id));h(!ne,H.map(ae=>ae.id))},R=H=>{if(!u||!g(H))return;const ne=H.id,ae=c.has(ne);u(ne,!ae)},O=W.useMemo(()=>V.filter(H=>g(H)),[V,g]),z=O.filter(H=>c.has(H.id)).length,J=O.length>0&&z===O.length,K=z>0&&z<O.length,q=H=>{T(ne=>!ne||ne.key!==H?{key:H,direction:"asc"}:{key:H,direction:ne.direction==="asc"?"desc":"asc"})},te=(H,ne)=>typeof H=="function"?H(ne):!!H,ie=(H,ne)=>typeof H=="function"?H(ne):H,U=(H,ne,ae)=>{const se=ne[H.relation],oe=!!(ae!=null&&ae.isSubRow);if(H.isToggle){const me=!!se;return f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Jd,{checked:me,onChange:Se=>d==null?void 0:d({rowId:ne.id,checked:Se,row:ne,columnKey:H.relation}),disabled:!1}),H.toggleText&&f.jsx("span",{className:"text-sm text-gray-600",children:me?H.toggleText.active:H.toggleText.inactive})]})}if(H.badgeConfig)return f.jsx(ry,{value:se,config:H.badgeConfig});if(H.cell)return H.cell(ne);if(H.component){const me=H.component;return W.createElement(me,{row:ne,value:se,...H.cellProps||{}})}const ye=se??"";if(oe&&H.subRowTooltip&&te(H.subRowTooltip.enabled,ne)){const Se=ie(H.subRowTooltip.content,ne);return f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("span",{children:ye}),f.jsx($a,{content:Se,trigger:H.subRowTooltip.trigger??"hover",children:f.jsx("img",{className:"size-4",src:Gd,alt:H.subRowTooltip.iconAlt??"info"})})]})}return ye},le=(H,ne,ae,se)=>f.jsxs("div",{className:"flex items-center gap-1",children:[ae?f.jsx("button",{type:"button",onClick:()=>X(ne.id),className:x??"mth-collapse-btn","aria-label":se?"Colapsar fila":"Expandir fila",children:se?f.jsx(xs,{className:"size-3 text-[#191960] -ml-3"}):f.jsx(j5,{className:"size-3 text-[#191960] -ml-3"})}):f.jsx("span",{className:"mth-collapse-spacer"}),U(H,ne)]});return f.jsxs("div",{className:"w-full",children:[f.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&f.jsx("h2",{className:"text-base font-bold",children:s})}),f.jsx("div",{className:"flex",children:n&&f.jsx("div",{className:"w-1/2",children:f.jsx(ds,{rightIcon:Mf,placeholder:"Buscar",value:M,onChange:H=>{P(H.target.value),B(1)}})})}),f.jsxs("div",{className:"mt-0",children:[f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(Ke,{children:[f.jsxs(Ke.Head,{className:`${Ul.mth_head_table} ${a}`,children:[l&&f.jsx(Ke.HeadCell,{children:f.jsx(oa,{className:"bg-transparent",checked:J,ref:H=>{H&&(H.indeterminate=K)},onChange:L})},"checkbox-head"),t.map((H,ne)=>f.jsx(Ke.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>H.sortable!==!1&&q(H.relation),children:f.jsxs("div",{className:"flex items-center gap-1",children:[H.header,H.sortable!==!1&&f.jsx("span",{children:(A==null?void 0:A.key)===H.relation?A.direction==="desc"?f.jsx(xs,{className:"size-3"}):f.jsx(Lc,{className:"size-3"}):f.jsx(xs,{className:"size-3 opacity-50"})})]})},`column-${ne}-${H.relation}`))]}),f.jsx(Ke.Body,{className:`divide-y text-xs md:text-base lg:text-base ${Ul.mth_body_table} ${o}`,children:V.map(H=>{const ne=k?k(H):[],ae=m&&ne.length>0,se=ae&&E.includes(H.id);return f.jsxs(W.Fragment,{children:[f.jsxs(Ke.Row,{className:`${se?Ul["mth-parent-row"]:""} ${C}`,children:[l&&f.jsx(Ke.Cell,{children:f.jsx(oa,{className:"bg-transparent",checked:c.has(H.id),disabled:!g(H),onChange:()=>R(H)})}),t.map((oe,ye)=>oe.relation===w?f.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium ",children:le(oe,H,ae,se)},`${H.id}-${ye}`):f.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium",children:U(oe,H)},`${H.id}-${ye}`))]}),ae&&se&&ne.map((oe,ye)=>f.jsxs(Ke.Row,{className:`${se?Ul["mth-sub-row"]:""} ${N}`,children:[l&&f.jsx(Ke.Cell,{}),t.map((me,Se)=>me.relation===w?f.jsx(Ke.Cell,{className:"whitespace-nowrap font-normal",children:f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("span",{className:"mth-collapse-spacer"}),U(me,oe,{isSubRow:!0})]})},`${H.id}-sub-${ye}-${Se}`):f.jsx(Ke.Cell,{className:"whitespace-nowrap font-normal",children:U(me,oe,{isSubRow:!0})},`${H.id}-sub-${ye}-${Se}`))]},`${H.id}-sub-${ye}`))]},H.id)})})]})}),i&&F>1&&f.jsx("div",{className:"mt-2 flex w-full justify-end",children:f.jsx(Qd,{currentPage:S,totalPages:F,onPageChange:B})})]})]})};function Xl(t){return Pe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10zm0 5.25a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75a.75.75 0 01-.75-.75z",clipRule:"evenodd"},child:[]}]})(t)}function Gl(t){return Pe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(t)}const ta=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,tI=({item:t,categoryId:e})=>f.jsx("div",{className:"px-4 py-1 w-fit text-black font-light rounded-[10px] text-sm cursor-move hover:bg-[#C0D4FF] border border-[#c4c4c4] flex flex-col items-center",draggable:!0,onDragStart:n=>{n.dataTransfer.effectAllowed="copy",n.dataTransfer.setData("application/json",JSON.stringify({categoryId:e,itemId:t.id,label:t.label}))},children:f.jsxs("span",{className:"select-none flex items-center gap-2 text-sm",children:[f.jsx(Xl,{className:"w-4 h-4 text-[#191960]"}),t.label]})}),nI=({groupId:t,conditions:e,onDrop:n,onRemoveCondition:r})=>{const[s,a]=_.useState(!1),o=c=>{c.preventDefault(),c.dataTransfer.dropEffect="copy",a(!0)},i=()=>{a(!1)},l=c=>{c.preventDefault(),a(!1);try{const d=JSON.parse(c.dataTransfer.getData("application/json")),u={id:ta(),categoryId:d.categoryId,itemId:d.itemId,label:d.label};n(t,u)}catch(d){console.error("Error al procesar el drop:",d)}};return f.jsx("div",{className:`min-h-[40px] p-2 border-[1px] rounded-[10px] transition-colors ${s?"border-[#191960] bg-[#C0D4FF]":"border-[#C4C4C4] bg-gray-50"}`,onDragOver:o,onDragLeave:i,onDrop:l,children:e.length===0?f.jsx("div",{className:"text-gray-400 text-sm text-center",children:"Arrastra elementos aquí"}):f.jsx("div",{className:"flex flex-wrap gap-2 max-h-[200px] overflow-y-auto",children:e.map((c,d)=>f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs("div",{className:"px-2 py-1 border border-[#C4C4C4] rounded-[10px] text-sm inline-flex items-center gap-2",children:[f.jsx(Xl,{className:"w-4 h-4 text-[#191960]"}),f.jsx("span",{children:c.label}),f.jsx(tr,{leftIcon:ty,iconSize:16,txtBtn:"",typeButton:"red",full:!1,type:"button",onClick:()=>r(t,c.id),classes:"px-1 py-0.5 rounded-[10px]"})]}),d<e.length-1&&f.jsx("span",{className:"text-xs font-semibold text-gray-500 px-1",children:"AND"})]},c.id))})})},rI=({categories:t,onQueryChange:e,maxGroups:n=3,titleCategories:r="Buscar categorías"})=>{const[s,a]=_.useState([]),[o,i]=_.useState([{id:ta(),title:"Incluir",groups:[{id:ta(),conditions:[],operator:"AND"}]},{id:ta(),title:"Excluir",groups:[{id:ta(),conditions:[],operator:"AND"}]}]),l=g=>{a(m=>m.includes(g)?m.filter(p=>p!==g):[...m,g])},c=(g,m,p)=>{const b=o.map(y=>{if(y.id===g){const v=y.groups.map(k=>k.id===m?k.conditions.some(x=>x.categoryId===p.categoryId&&x.itemId===p.itemId)?k:{...k,conditions:[...k.conditions,p]}:k);return{...y,groups:v}}return y});i(b),e==null||e(b)},d=(g,m,p)=>{const b=o.map(y=>{if(y.id===g){const v=y.groups.map(k=>k.id===m?{...k,conditions:k.conditions.filter(w=>w.id!==p)}:k);return{...y,groups:v}}return y});i(b),e==null||e(b)},u=g=>{const m=o.map(p=>p.id===g&&p.groups.length<n?{...p,groups:[...p.groups,{id:ta(),conditions:[],operator:"OR"}]}:p);i(m),e==null||e(m)},h=(g,m)=>{const p=o.map(b=>b.id===g&&b.groups.length>1?{...b,groups:b.groups.filter(y=>y.id!==m)}:b);i(p),e==null||e(p)};return f.jsxs("div",{className:"flex gap-4 w-full h-full",children:[f.jsxs("div",{className:"w-1/4 bg-white p-4 overflow-y-auto",children:[f.jsx("h3",{className:"text-sm font-semibold mb-2 text-gray-700",children:r||"Categorías"}),f.jsx("div",{className:"bg-white mb-2 overflow-y-auto",children:f.jsx(_s,{type:"search",placeholder:"Buscar",classInclude:"w-full py-0 rounded-[10px]",className:"mb-2",icon:!1})}),f.jsx("div",{className:"space-y-1 border rounded-[10px] p-5",children:t.map(g=>f.jsx(vo,{id:g.id,title:g.title,isOpen:s.includes(g.id),onToggle:()=>l(g.id),icon:f.jsx(Gl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-2",children:f.jsx("div",{className:"space-y-1",children:f.jsx("div",{className:"space-y-1",children:g.items.map(m=>f.jsx(tI,{item:m,categoryId:g.id},m.id))})},g.id)},g.id))})]}),f.jsx("div",{className:"flex-1 bg-white border border-gray-200 rounded-lg p-4 overflow-y-auto",children:f.jsx("div",{className:"space-y-2",children:o.map(g=>f.jsx(vo,{id:g.id,title:g.title,isOpen:s.includes(g.id),onToggle:()=>l(g.id),variant:"bordered",icon:f.jsx(Gl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-4",children:f.jsxs("div",{className:"space-y-2",children:[g.groups.map((m,p)=>f.jsxs("div",{children:[p>0&&f.jsx("div",{className:"flex justify-center my-2",children:f.jsx("span",{className:"px-2 py-1 bg-[#191960] text-white text-xs font-semibold rounded",children:"OR"})}),f.jsxs("div",{className:"flex flex-row space-y-1",children:[f.jsx("div",{className:"w-11/12",children:f.jsx(nI,{groupId:m.id,conditions:m.conditions,onDrop:(b,y)=>c(g.id,b,y),onRemoveCondition:(b,y)=>d(g.id,b,y)})}),f.jsx("div",{className:"w-1/12",children:g.groups.length>1&&p>0&&f.jsx("div",{className:"flex justify-end",children:f.jsx(tr,{leftIcon:"https://ftp.mathilde-ads.com/382-6986b247c2c7729fb231da467b8e913c.svg",iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>h(g.id,m.id),classes:"px-1 rounded-[10px] text-white w-8 h-8"})})})]})]},m.id)),g.groups.length<n&&f.jsx("div",{className:"flex mt-3",children:f.jsx(tr,{leftIcon:R5,iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>u(g.id),classes:"px-2 py-2 rounded-[10px]"})})]})},g.id))})})]})},wf=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,bx=(t,e)=>t.some(n=>n.categoryId===e.categoryId&&n.itemId===e.itemId),yx=(t,e,n)=>t.map(r=>r.id===e?{...r,conditions:[...r.conditions,n]}:r),sI=(t,e,n,r,s)=>t.map(a=>{if(a.id!==e)return a;if(n){const i=a.groups.find(l=>l.id===n);return!i||bx(i.conditions,r)?a:{...a,groups:yx(a.groups,n,r)}}const o=a.groups.find(i=>i.conditions.length>0&&i.conditions[0].categoryId===r.categoryId);return o?bx(o.conditions,r)?a:{...a,groups:yx(a.groups,o.id,r)}:a.groups.length>=s?a:{...a,groups:[...a.groups,{id:wf(),conditions:[r],operator:"OR"}]}}),aI=(t,e,n,r)=>t.map(s=>{if(s.id!==e)return s;const a=s.groups.map(o=>o.id===n?{...o,conditions:o.conditions.filter(i=>i.id!==r)}:o).filter(o=>o.conditions.length>0);return{...s,groups:a}}),oI=({categories:t,onQueryChange:e,maxGroups:n})=>{const[r,s]=_.useState([]),[a,o]=_.useState(null),[i,l]=_.useState(null),[c,d]=_.useState(()=>[{id:wf(),title:"Configuración de audiencia",operator:"AND",groups:[]}]);return _.useEffect(()=>{s(p=>p.length===0&&c.length>0?[c[0].id]:p)},[]),{filterSections:c,openCategoryId:i,openAccordions:r,dragData:a,setDragData:o,toggleAccordion:p=>{s(b=>b.includes(p)?b.filter(y=>y!==p):[...b,p])},handleDrop:(p,b,y)=>{const v=sI(c,p,b,y,n);d(v),e==null||e(v)},handleRemoveCondition:(p,b,y)=>{const v=aI(c,p,b,y);d(v),e==null||e(v)},handleSearch:p=>{const b=p.trim().toLowerCase();if(!b){l(null);return}const y=t.find(v=>{const k=v.title.toLowerCase().includes(b),w=v.items.some(x=>x.label.toLowerCase().includes(b));return k||w});l(y?y.id:null)}}},wx=_.createContext({dragData:null,setDragData:()=>{}}),vx=()=>_.useContext(wx),xx="drag-cursor-override",iI=({item:t,categoryId:e})=>{const[n,r]=_.useState(!1),{setDragData:s}=vx(),a={categoryId:e,itemId:t.id,label:t.label},o=_.useRef(!1),i=_.useCallback(()=>{const d=document.getElementById(xx);d&&d.remove()},[]),l=_.useCallback(()=>{i();const d=document.createElement("style");d.id=xx,d.textContent="* { cursor: grabbing !important; }",document.head.appendChild(d)},[i]),c=_.useCallback(()=>{r(!1),s(null),i(),o.current=!1},[i,s]);return _.useEffect(()=>{const d=()=>{c()};return window.addEventListener("dragend",d),window.addEventListener("drop",d),()=>{window.removeEventListener("dragend",d),window.removeEventListener("drop",d),i()}},[i,c]),f.jsx("div",{className:`flex max-w-[200px] items-center rounded-[5px] border border-qb-border px-3 py-1.5 text-sm font-light text-black transition-all hover:bg-qb-chip-hover ${n?"cursor-grabbing opacity-50":"cursor-grab"}`,draggable:!0,onPointerDown:()=>{o.current=!1,l()},onPointerUp:()=>{o.current||i()},onDragStart:d=>{o.current=!0,r(!0),s(a),d.dataTransfer.effectAllowed="all";try{d.dataTransfer.dropEffect="copy"}catch{}d.dataTransfer.setData("application/json",JSON.stringify(a)),l();const u=d.currentTarget.cloneNode(!0);u.style.position="absolute",u.style.top="-9999px",u.style.left="-9999px",u.style.opacity="0.9",u.style.transform="rotate(3deg)",u.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)",document.body.appendChild(u);const h=d.currentTarget.getBoundingClientRect();d.dataTransfer.setDragImage(u,h.width/2,h.height/2),setTimeout(()=>{document.body.contains(u)&&document.body.removeChild(u)},0)},onDragEnd:c,children:f.jsxs("span",{className:"flex min-w-0 flex-1 select-none items-start gap-2",children:[f.jsx(Xl,{className:"mt-0.5 size-4 shrink-0 text-qb-primary"}),f.jsx("span",{className:"min-w-0 break-words",children:t.label})]})})},lI=({title:t,categories:e,openCategoryId:n,onSearch:r,selectedItemKeys:s})=>{const[a,o]=_.useState(""),i=_.useMemo(()=>{const c=a.trim().toLowerCase(),d=e.map(u=>({...u,items:u.items.filter(h=>!s.has(`${u.id}:${h.id}`))})).filter(u=>u.items.length>0);return c?d.map(u=>{const h=u.title.toLowerCase().includes(c),g=u.items.filter(m=>m.label.toLowerCase().includes(c));return h?u:g.length===0?null:{...u,items:g}}).filter(u=>u!==null):d},[e,a,s]),l=i.length===0?[]:n&&i.some(c=>c.id===n)?[n]:[i[0].id];return f.jsxs("div",{className:"w-1/3 overflow-y-auto bg-white p-4",children:[f.jsx("h3",{className:"mb-2 text-base font-semibold text-black",children:t||"Categorías"}),f.jsx("div",{className:"mb-2 overflow-y-auto bg-white",children:f.jsx(_s,{type:"search",placeholder:"Buscar",classInclude:"w-full py-0 rounded-[10px]",className:"mb-2",icon:!1,onChange:c=>{const d=c.target.value;o(d),r(d)}})}),f.jsx("div",{className:"rounded-[10px] border border-qb-border p-2",children:f.jsx(hx,{mode:"single",defaultOpen:l,items:i.map(c=>({id:c.id,title:c.title,icon:f.jsx(Gl,{className:"size-5"}),iconPosition:"right",classes:"p-1",titleClasses:"text-sm",containerButtonClasses:"border-none",content:f.jsx("div",{className:"max-h-[200px] space-y-1 overflow-y-auto",children:c.items.map(d=>f.jsx(iI,{item:d,categoryId:c.id},d.id))})}))},n??"accordion-categories")})]})},cI=({groupId:t,conditions:e,onRemoveCondition:n})=>f.jsx("div",{className:"flex flex-col gap-2",children:e.map(r=>f.jsx("div",{className:"flex items-center",children:f.jsxs("div",{className:"flex w-[200px] items-start gap-1 rounded-[5px] border border-qb-border px-3 py-1.5 text-sm",children:[f.jsx(Xl,{className:"mt-0.5 size-4 shrink-0 text-qb-primary"}),f.jsx("span",{className:"min-w-0 flex-1 break-words",children:r.label}),f.jsx(tr,{leftIcon:ty,iconSize:18,txtBtn:"",typeButton:"red",full:!1,type:"button",onClick:()=>n(t||"",r.id),classes:"text-black"})]})},r.id))}),dI=({section:t,onDrop:e,onRemoveCondition:n})=>{const[r,s]=_.useState(!1),{dragData:a}=vx(),o=t.groups.some(d=>d.conditions.length>0),i=d=>{d.preventDefault(),d.dataTransfer.dropEffect="copy",s(!0)},l=d=>{d.currentTarget.contains(d.relatedTarget)||s(!1)},c=d=>{d.preventDefault(),s(!1);let u=null;const h=d.dataTransfer.getData("application/json");if(h!=null&&h.trim())try{u=JSON.parse(h)}catch(m){console.error("Error al procesar el drop:",m);return}else a&&(u=a);if(!u)return;const g={id:wf(),categoryId:u.categoryId,itemId:u.itemId,label:u.label};e(t.id,null,g)};return f.jsx("div",{className:`border rounded-[10px] p-2.5 min-h-[60px] w-full transition-colors ${r?"bg-qb-drop-bg border-qb-primary":"border-qb-border"}`,onDragOver:i,onDragLeave:l,onDrop:c,children:o?f.jsx("div",{className:"flex flex-col items-start gap-1 2xl:flex-row 2xl:flex-wrap 2xl:gap-1",children:t.groups.map((d,u)=>f.jsxs(_.Fragment,{children:[u>0&&f.jsx("div",{className:"flex items-center justify-center my-1 2xl:my-0 2xl:px-2",children:f.jsx("span",{className:"px-2 py-1 bg-qb-primary text-white text-xs font-semibold rounded",children:"AND"})}),f.jsx("div",{className:"shrink-0",children:f.jsx(cI,{groupId:d.id,conditions:d.conditions,onRemoveCondition:(h,g)=>n(t.id,h||d.id,g)})})]},d.id))}):f.jsx("span",{className:"text-sm text-[#9F9F9F] font-normal",children:"Selecciona las opciones y arrastra hasta aquí."})})},uI=({filterSections:t,openAccordions:e,sectionTitle:n,onToggleAccordion:r,onDrop:s,onRemoveCondition:a})=>f.jsx("div",{className:"flex-1 bg-white px-1 py-4 overflow-y-auto",children:f.jsx("div",{className:"space-y-2 mt-8",children:t.map(o=>f.jsx(vo,{id:o.id,title:n,isOpen:e.includes(o.id),onToggle:()=>r(o.id),variant:"bordered",icon:f.jsx(Gl,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-5",children:f.jsx(dI,{section:o,onDrop:s,onRemoveCondition:a})},o.id))})}),fI=({categories:t,onQueryChange:e,maxGroups:n=3,titleCategories:r="Buscar categorías",isToolTipOpen:s=!1,toolTipContent:a="Configuración de audiencia"})=>{const{filterSections:o,openCategoryId:i,openAccordions:l,dragData:c,setDragData:d,toggleAccordion:u,handleDrop:h,handleRemoveCondition:g,handleSearch:m}=oI({categories:t,onQueryChange:e,maxGroups:n}),p=_.useMemo(()=>{const y=new Set;return o.forEach(v=>{v.groups.forEach(k=>{k.conditions.forEach(w=>{y.add(`${w.categoryId}:${w.itemId}`)})})}),y},[o]),b=s?f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{children:"Configuración de audiencia"}),f.jsx($a,{content:a,trigger:"hover",children:f.jsx("img",{className:"size-4 text-qb-primary",src:Gd,alt:"info"})})]}):"Configuración de audiencia";return f.jsx(wx.Provider,{value:{dragData:c,setDragData:d},children:f.jsxs("div",{className:"flex w-full",children:[f.jsx(lI,{title:r,categories:t,openCategoryId:i,onSearch:m,selectedItemKeys:p}),f.jsx(uI,{filterSections:o,openAccordions:l,maxGroups:n,sectionTitle:b,onToggleAccordion:u,onDrop:h,onRemoveCondition:g})]})})},ct={"audience-loading":"spinnerMth-module__audience-loading__LEgdv",spinner:"spinnerMth-module__spinner__fFqhw","spinner-center":"spinnerMth-module__spinner-center__GyDhh","spinner-segment":"spinnerMth-module__spinner-segment__gU-wW","segment-1":"spinnerMth-module__segment-1__sSDuK","segment-2":"spinnerMth-module__segment-2__9W-CH","segment-3":"spinnerMth-module__segment-3__fyp4E","segment-4":"spinnerMth-module__segment-4__hMDSa","segment-5":"spinnerMth-module__segment-5__0b-Ow","segment-6":"spinnerMth-module__segment-6__-u1-Q","segment-7":"spinnerMth-module__segment-7__UD-7L","segment-8":"spinnerMth-module__segment-8__6-wy2"},hI=({description:t=""})=>f.jsx(f.Fragment,{children:f.jsxs("div",{className:ct["audience-loading"],children:[f.jsxs("div",{className:ct.spinner,children:[f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-1"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-2"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-3"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-4"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-5"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-6"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-7"]}`}),f.jsx("div",{className:`${ct["spinner-segment"]} ${ct["segment-8"]}`}),f.jsx("div",{className:ct["spinner-center"]})]}),t&&f.jsx("p",{className:"audience-text",dangerouslySetInnerHTML:{__html:t}})]})});ce.Accordion=vo,ce.AccordionGroup=hx,ce.Alert=$j,ce.BUILT_IN_ALERT_IMAGE_ICONS=gx,ce.ButtonFormat=tr,ce.Card=Kd,ce.CardIndicator=q5,ce.Checkbox=_f,ce.ChipList=Gj,ce.CollapsibleTable=eI,ce.CustomPagination=Qd,ce.DatePicker=Bj,ce.DateRangePicker=Fj,ce.DragAndDrop=fI,ce.DropdownButton=zj,ce.DropdownList=Uj,ce.DropdownListWithCheckbox=Xj,ce.Dropzone=vT,ce.ImageFormat=Sr,ce.InputForm=_s,ce.LayoutOutside=PD,ce.ListFile=kT,ce.Loader=Wj,ce.ModalFormat=_p,ce.MyDoughnutChart=CS,ce.PasswordInput=Vc,ce.PasswordValidationList=sy,ce.ProgressBar=jg,ce.QueryBuilder=rI,ce.RadioButton=Yj,ce.SelectForm=Ig,ce.SidebarPro=_D,ce.Spinner=_T,ce.SpinnerMth=hI,ce.Stepper=Hj,ce.TableComponent=ED,ce.TableOfContents=AD,ce.TabsComponent=CT,ce.Tag=qd,ce.TermsCheckbox=ND,ce.Toggle=Jd,ce.TooltipComponent=$a,ce.ValidationPassword=ID,ce.clearAlertImageIcons=Qj,ce.registerAlertImageIcons=Kj,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})});
|