lizaui 5.0.3 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,51 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../chunks/jsx-runtime-BjzqJBtL.js"),b=require("react"),fn=require("react-dom"),ir=require("../chunks/iconBase-C4boY5mo.js"),De=require("../chunks/clsx-C11secjj.js"),Cr=require("../chunks/bundle-mjs-eyqxolf6.js"),ri=require("../chunks/label-error-01rbhr3C.js"),ni=require("../chunks/utils-BRdagWxe.js"),zn=require("../chunks/button-CuSv0p75.js"),ai=require("../chunks/v4-CIWTflUD.js");function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wt={},_t={},Gn;function ii(){if(Gn)return _t;Gn=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.PopoverPortal=void 0;var e=b,t=fn,r=function(n){var a=n.container,o=n.element,i=n.scoutElement,s=n.children;return(0,e.useLayoutEffect)(function(){return a.appendChild(o),a.appendChild(i),function(){a.removeChild(o),a.removeChild(i)}},[a,o,i]),(0,t.createPortal)(s,o)};return _t.PopoverPortal=r,_t}var xt={},Bn;function pn(){return Bn||(Bn=1,(function(e){var t=xt&&xt.__assign||function(){return t=Object.assign||function(c){for(var u,d=1,p=arguments.length;d<p;d++){u=arguments[d];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(c[f]=u[f])}return c},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getNudgedPopoverRect=e.getNewPopoverRect=e.popoverRectForPosition=e.createContainer=e.rectsAreEqual=e.createRect=e.EMPTY_RECT=void 0,e.EMPTY_RECT={top:0,left:0,right:0,bottom:0,width:0,height:0};var r=function(c){var u=c.top,d=c.left,p=c.width,f=c.height;return{top:u,left:d,width:p,height:f,right:d+p,bottom:u+f}};e.createRect=r;var n=function(c,u){return c===u||c?.bottom===u?.bottom&&c?.height===u?.height&&c?.left===u?.left&&c?.right===u?.right&&c?.top===u?.top&&c?.width===u?.width};e.rectsAreEqual=n;var a=function(c){var u=c.containerStyle,d=c.containerClassName,p=window.document.createElement("div");return d&&(p.className=d),Object.assign(p.style,u),p};e.createContainer=a;var o=function(c,u,d,p,f){var l=u.left+u.width/2,h=u.top+u.height/2,m=d.width,y=d.height,g,_;switch(c){case"left":g=h-y/2,_=u.left-p-m,f==="start"&&(g=u.top),f==="end"&&(g=u.bottom-y);break;case"bottom":g=u.bottom+p,_=l-m/2,f==="start"&&(_=u.left),f==="end"&&(_=u.right-m);break;case"right":g=h-y/2,_=u.right+p,f==="start"&&(g=u.top),f==="end"&&(g=u.bottom-y);break;default:g=u.top-y-p,_=l-m/2,f==="start"&&(_=u.left),f==="end"&&(_=u.right-m);break}return(0,e.createRect)({left:_,top:g,width:m,height:y})};e.popoverRectForPosition=o;var i=function(c,u){var d=c.position,p=c.align,f=c.childRect,l=c.popoverRect,h=c.boundaryRect,m=c.padding,y=c.reposition,g=(0,e.popoverRectForPosition)(d,f,l,m,p),_=y&&(d==="top"&&g.top<h.top+u||d==="left"&&g.left<h.left+u||d==="right"&&g.right>h.right-u||d==="bottom"&&g.bottom>h.bottom-u);return{rect:g,boundaryViolation:_}};e.getNewPopoverRect=i;var s=function(c,u,d){var p=u.top+d,f=u.left+d,l=u.right-d,h=u.bottom-d,m=c.top<p?p:c.top;m=m+c.height>h?h-c.height:m;var y=c.left<f?f:c.left;return y=y+c.width>l?l-c.width:y,(0,e.createRect)(t(t({},c),{top:m,left:y}))};e.getNudgedPopoverRect=s})(xt)),xt}var Et={},St={},qn;function si(){if(qn)return St;qn=1,Object.defineProperty(St,"__esModule",{value:!0}),St.useElementRef=void 0;var e=b,t=pn(),r=function(n){var a=n.containerClassName,o=n.containerStyle,i=(0,e.useRef)(),s=(0,e.useState)(function(){return(0,t.createContainer)({containerStyle:o,containerClassName:a})})[0];return(0,e.useLayoutEffect)(function(){s.className=a},[a,s]),(0,e.useLayoutEffect)(function(){Object.assign(s.style,o)},[o,s]),i.current=s,i};return St.useElementRef=r,St}var Un;function ci(){if(Un)return Et;Un=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.usePopover=void 0;var e=b,t=pn(),r=si(),n={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"},o=function(i){var s=i.isOpen,c=i.childRef,u=i.positions,d=i.containerClassName,p=i.parentElement,f=i.transform,l=i.transformMode,h=i.align,m=i.padding,y=i.reposition,g=i.boundaryInset,_=i.boundaryElement,E=i.onPositionPopover,O=(0,r.useElementRef)({containerClassName:"react-tiny-popover-scout",containerStyle:a}),C=(0,r.useElementRef)({containerClassName:d!=null&&d.length>0&&d!=="react-tiny-popover-container"?"react-tiny-popover-container ".concat(d):"react-tiny-popover-container",containerStyle:n}),x=(0,e.useCallback)(function(S){var A,U,W=S===void 0?{}:S,te=W.positionIndex,Q=te===void 0?0:te,se=W.parentRect,H=se===void 0?p.getBoundingClientRect():se,re=W.childRect,T=re===void 0?(A=c?.current)===null||A===void 0?void 0:A.getBoundingClientRect():re,ae=W.scoutRect,ne=ae===void 0?(U=O?.current)===null||U===void 0?void 0:U.getBoundingClientRect():ae,R=W.popoverRect,M=R===void 0?C.current.getBoundingClientRect():R,F=W.boundaryRect,L=F===void 0?_===p?H:_.getBoundingClientRect():F;if(!(!T||!H||!s)){if(f&&l==="absolute"){var N=typeof f=="function"?f({childRect:T,popoverRect:M,parentRect:H,boundaryRect:L,padding:m,align:h,nudgedTop:0,nudgedLeft:0,boundaryInset:g,violations:t.EMPTY_RECT,hasViolations:!1}):f,J=N.top,ce=N.left,z=Math.round(H.left+ce-ne.left),G=Math.round(H.top+J-ne.top);C.current.style.transform="translate(".concat(z,"px, ").concat(G,"px)"),E({childRect:T,popoverRect:(0,t.createRect)({left:z,top:G,width:M.width,height:M.height}),parentRect:H,boundaryRect:L,padding:m,align:h,transform:{top:J,left:ce},nudgedTop:0,nudgedLeft:0,boundaryInset:g,violations:t.EMPTY_RECT,hasViolations:!1});return}var $=Q===u.length,oe=$?u[0]:u[Q],Z=(0,t.getNewPopoverRect)({childRect:T,popoverRect:M,boundaryRect:L,position:oe,align:h,padding:m,reposition:y},g),ve=Z.rect,de=Z.boundaryViolation;if(de&&y&&!$){x({positionIndex:Q+1,childRect:T,popoverRect:M,parentRect:H,boundaryRect:L});return}var we=ve.top,B=ve.left,ue=ve.width,le=ve.height,me=y&&!$,xe=(0,t.getNudgedPopoverRect)(ve,L,g),j=xe.left,k=xe.top,D=we,w=B;me&&(D=k,w=j),D=Math.round(D-ne.top),w=Math.round(w-ne.left),C.current.style.transform="translate(".concat(w,"px, ").concat(D,"px)");var P={top:L.top+g-D,left:L.left+g-w,right:w+ue-L.right+g,bottom:D+le-L.bottom+g},Y={childRect:T,popoverRect:(0,t.createRect)({left:w,top:D,width:ue,height:le}),parentRect:H,boundaryRect:L,position:oe,align:h,padding:m,nudgedTop:k-we,nudgedLeft:j-B,boundaryInset:g,violations:{top:P.top<=0?0:P.top,left:P.left<=0?0:P.left,right:P.right<=0?0:P.right,bottom:P.bottom<=0?0:P.bottom},hasViolations:P.top>0||P.left>0||P.right>0||P.bottom>0};if(f){E(Y);var I=typeof f=="function"?f(Y):f,K=I.top,ie=I.left;C.current.style.transform="translate(".concat(Math.round(w+(ie??0)),"px, ").concat(Math.round(D+(K??0)),"px)"),Y.nudgedLeft+=ie??0,Y.nudgedTop+=K??0,Y.transform={top:K,left:ie}}E(Y)}},[p,c,O,C,_,s,f,l,u,h,m,y,g,E]);return{positionPopover:x,popoverRef:C,scoutRef:O}};return Et.usePopover=o,Et}var Ot={},Hn;function ui(){if(Hn)return Ot;Hn=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.useMemoizedArray=void 0;var e=b,t=function(r){var n=(0,e.useRef)(r),a=(0,e.useMemo)(function(){if(n.current===r)return n.current;if(n.current.length!==r.length)return n.current=r,r;for(var o=0;o<r.length;o+=1)if(r[o]!==n.current[o])return n.current=r,r;return n.current},[r]);return a};return Ot.useMemoizedArray=t,Ot}var jt={},Kn;function li(){if(Kn)return jt;Kn=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.useHandlePrevValues=void 0;var e=b,t=function(r){var n=(0,e.useRef)(r.positions),a=(0,e.useRef)(r.reposition),o=(0,e.useRef)(r.transformMode),i=(0,e.useRef)(r.transform),s=(0,e.useRef)(r.boundaryElement),c=(0,e.useRef)(r.boundaryInset),u=(0,e.useCallback)(function(){n.current=r.positions,a.current=r.reposition,o.current=r.transformMode,i.current=r.transform,s.current=r.boundaryElement,c.current=r.boundaryInset},[r.boundaryElement,r.boundaryInset,r.positions,r.reposition,r.transform,r.transformMode]);return{prev:{positions:n.current,reposition:a.current,transformMode:o.current,transform:i.current,boundaryElement:s.current,boundaryInset:c.current},updatePrevValues:u}};return jt.useHandlePrevValues=t,jt}var Ze={},Zn;function Wa(){if(Zn)return Ze;Zn=1;var e=Ze&&Ze.__assign||function(){return e=Object.assign||function(n){for(var a,o=1,i=arguments.length;o<i;o++){a=arguments[o];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])}return n},e.apply(this,arguments)};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.useArrowContainer=void 0;var t=b,r=function(n){var a=n.childRect,o=n.popoverRect,i=n.position,s=n.arrowSize,c=n.arrowColor,u=(0,t.useMemo)(function(){return{padding:s}},[s]),d=(0,t.useMemo)(function(){return e({position:"absolute"},(function(){var p=s*2,f=a.top-o.top+a.height/2-p/2,l=a.left-o.left+a.width/2-p/2,h=s,m=o.width-s,y=o.height-s;switch(l=l<h?h:l,l=l+p>m?m-p:l,f=f<h?h:f,f=f+p>y?y-p:f,f=Number.isNaN(f)?0:f,l=Number.isNaN(l)?0:l,i){case"right":return{borderTop:"".concat(s,"px solid transparent"),borderBottom:"".concat(s,"px solid transparent"),borderRight:"".concat(s,"px solid ").concat(c),left:0,top:f};case"left":return{borderTop:"".concat(s,"px solid transparent"),borderBottom:"".concat(s,"px solid transparent"),borderLeft:"".concat(s,"px solid ").concat(c),right:0,top:f};case"bottom":return{borderLeft:"".concat(s,"px solid transparent"),borderRight:"".concat(s,"px solid transparent"),borderBottom:"".concat(s,"px solid ").concat(c),top:0,left:l};case"top":return{borderLeft:"".concat(s,"px solid transparent"),borderRight:"".concat(s,"px solid transparent"),borderTop:"".concat(s,"px solid ").concat(c),bottom:0,left:l};default:return{display:"hidden"}}})())},[c,s,a.height,a.left,a.top,a.width,o.height,o.left,o.top,o.width,i]);return{arrowContainerStyle:u,arrowStyle:d}};return Ze.useArrowContainer=r,Ze}var Xe={},Xn;function di(){if(Xn)return Xe;Xn=1;var e=Xe&&Xe.__assign||function(){return e=Object.assign||function(o){for(var i,s=1,c=arguments.length;s<c;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(o[u]=i[u])}return o},e.apply(this,arguments)};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.ArrowContainer=void 0;var t=v.requireJsxRuntime(),r=b,n=Wa(),a=function(o){var i=o.childRect,s=o.popoverRect,c=o.position,u=o.arrowColor,d=o.arrowSize,p=o.arrowClassName,f=o.arrowStyle,l=o.className,h=o.children,m=o.style,y=(0,n.useArrowContainer)({childRect:i,popoverRect:s,position:c,arrowColor:u,arrowSize:d}),g=y.arrowContainerStyle,_=y.arrowStyle,E=(0,r.useMemo)(function(){return e(e({},g),m)},[g,m]),O=(0,r.useMemo)(function(){return e(e({},_),f)},[_,f]);return(0,t.jsxs)("div",{className:l,style:E,children:[(0,t.jsx)("div",{style:O,className:p}),h]})};return Xe.ArrowContainer=a,Xe}var Jn;function fi(){return Jn||(Jn=1,(function(e){var t=wt&&wt.__assign||function(){return t=Object.assign||function(l){for(var h,m=1,y=arguments.length;m<y;m++){h=arguments[m];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(l[g]=h[g])}return l},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Popover=e.usePopover=e.ArrowContainer=e.useArrowContainer=void 0;var r=v.requireJsxRuntime(),n=b,a=ii(),o=pn(),i=ci();Object.defineProperty(e,"usePopover",{enumerable:!0,get:function(){return i.usePopover}});var s=ui(),c=li(),u=Wa();Object.defineProperty(e,"useArrowContainer",{enumerable:!0,get:function(){return u.useArrowContainer}});var d=di();Object.defineProperty(e,"ArrowContainer",{enumerable:!0,get:function(){return d.ArrowContainer}});var p=["top","left","right","bottom"],f=(0,n.forwardRef)(function(l,h){var m=l.isOpen,y=l.children,g=l.content,_=l.positions,E=_===void 0?p:_,O=l.align,C=O===void 0?"center":O,x=l.padding,S=x===void 0?0:x,A=l.reposition,U=A===void 0?!0:A,W=l.parentElement,te=W===void 0?window.document.body:W,Q=l.boundaryElement,se=Q===void 0?te:Q,H=l.containerClassName,re=l.containerStyle,T=l.transform,ae=l.transformMode,ne=ae===void 0?"absolute":ae,R=l.boundaryInset,M=R===void 0?0:R,F=l.onClickOutside,L=l.clickOutsideCapture,N=L===void 0?!1:L,J=(0,s.useMemoizedArray)(Array.isArray(E)?E:[E]),ce=(0,c.useHandlePrevValues)({positions:J,reposition:U,transformMode:ne,transform:T,boundaryElement:se,boundaryInset:M}),z=ce.prev,G=ce.updatePrevValues,$=(0,n.useRef)(),oe=(0,n.useState)({align:C,nudgedLeft:0,nudgedTop:0,position:J[0],padding:S,childRect:o.EMPTY_RECT,popoverRect:o.EMPTY_RECT,parentRect:o.EMPTY_RECT,boundaryRect:o.EMPTY_RECT,boundaryInset:M,violations:o.EMPTY_RECT,hasViolations:!1}),Z=oe[0],ve=oe[1],de=(0,n.useCallback)(function(w){return ve(w)},[]),we=(0,i.usePopover)({isOpen:m,childRef:$,containerClassName:H,parentElement:te,boundaryElement:se,transform:T,transformMode:ne,positions:J,align:C,padding:S,boundaryInset:M,reposition:U,onPositionPopover:de}),B=we.positionPopover,ue=we.popoverRef,le=we.scoutRef;(0,n.useLayoutEffect)(function(){var w=!0,P=function(){var Y,I;if(m&&w){var K=(Y=$?.current)===null||Y===void 0?void 0:Y.getBoundingClientRect(),ie=(I=ue?.current)===null||I===void 0?void 0:I.getBoundingClientRect();K!=null&&ie!=null&&(!(0,o.rectsAreEqual)(K,Z.childRect)||ie.width!==Z.popoverRect.width||ie.height!==Z.popoverRect.height||Z.padding!==S||Z.align!==C||J!==z.positions||U!==z.reposition||ne!==z.transformMode||T!==z.transform||se!==z.boundaryElement||M!==z.boundaryInset)&&B(),G(),w&&window.requestAnimationFrame(P)}};return P(),function(){w=!1}},[C,se,M,m,S,ue,Z.align,Z.childRect,Z.padding,Z.popoverRect.height,Z.popoverRect.width,B,J,z.boundaryElement,z.boundaryInset,z.positions,z.reposition,z.transform,z.transformMode,U,T,ne,G]),(0,n.useEffect)(function(){var w=ue.current;return Object.assign(w.style,re),function(){Object.keys(re??{}).forEach(function(P){return delete w.style[P]})}},[re,m,ue]);var me=(0,n.useCallback)(function(w){var P,Y;m&&!(!((P=ue.current)===null||P===void 0)&&P.contains(w.target))&&!(!((Y=$.current)===null||Y===void 0)&&Y.contains(w.target))&&F?.(w)},[m,F,ue]),xe=(0,n.useCallback)(function(){$.current&&m&&window.requestAnimationFrame(function(){return B()})},[B,m]);(0,n.useEffect)(function(){var w=te.ownerDocument.body;return w.addEventListener("click",me,N),w.addEventListener("contextmenu",me,N),window.addEventListener("resize",xe),function(){w.removeEventListener("click",me,N),w.removeEventListener("contextmenu",me,N),window.removeEventListener("resize",xe)}},[N,me,xe,te]);var j=(0,n.useCallback)(function(w){$.current=w,h!=null&&(typeof h=="object"?h.current=w:typeof h=="function"&&h(w))},[h]),k=function(){return(0,n.cloneElement)(y,{ref:j})},D=function(){return m?(0,r.jsx)(a.PopoverPortal,{element:ue.current,scoutElement:le.current,container:te,children:typeof g=="function"?g(Z):g}):null};return(0,r.jsxs)(r.Fragment,{children:[k(),D()]})});e.Popover=(0,n.forwardRef)(function(l,h){return typeof window>"u"?l.children:(0,r.jsx)(f,t({},l,{ref:h}))})})(wt)),wt}var pi=fi();function vi(e){return ir.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"},child:[]}]})(e)}function hi(e){return ir.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"},child:[]}]})(e)}const mi=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const a=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);!gi(a,o)&&n||Object.defineProperty(e,r,o)},gi=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},yi=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},bi=(e,t)=>`/* Wrapped ${e}*/
2
- ${t}`,wi=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),_i=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),xi=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,a=bi.bind(null,n,t.toString());Object.defineProperty(a,"name",_i);const{writable:o,enumerable:i,configurable:s}=wi;Object.defineProperty(e,"toString",{value:a,writable:o,enumerable:i,configurable:s})};function Ei(e,t,{ignoreNonConfigurable:r=!1}={}){const{name:n}=e;for(const a of Reflect.ownKeys(t))mi(e,t,a,r);return yi(e,t),xi(e,t,n),e}const Si=new WeakMap,Qn=new WeakMap;function Ya(e,{cacheKey:t,cache:r=new Map,maxAge:n}={}){if(n===0)return e;if(typeof n=="number"){if(n>2147483647)throw new TypeError("The `maxAge` option cannot exceed 2147483647.");if(n<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const a=function(...o){const i=t?t(o):o[0],s=r.get(i);if(s)return s.data;const c=e.apply(this,o),u=typeof n=="function"?n(...o):n;if(r.set(i,{data:c,maxAge:u?Date.now()+u:Number.POSITIVE_INFINITY}),u&&u>0&&u!==Number.POSITIVE_INFINITY){const d=setTimeout(()=>{r.delete(i)},u);d.unref?.();const p=Qn.get(e)??new Set;p.add(d),Qn.set(e,p)}return c};return Ei(a,e,{ignoreNonConfigurable:!0}),Si.set(a,r),a}function Oi(e){return typeof e=="string"}function ji(e,t,r){return r.indexOf(e)===t}function ki(e){return e.toLowerCase()===e}function ea(e){return e.indexOf(",")===-1?e:e.split(",")}function Vr(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var t=e.split(".")[0],r=t===void 0?"":t;return Vr(r)}if(e.indexOf("@")!==-1){var n=e.split("@")[0],r=n===void 0?"":n;return Vr(r)}if(e.indexOf("-")===-1||!ki(e))return e;var a=e.split("-"),o=a[0],i=a[1],s=i===void 0?"":i;return"".concat(o,"-").concat(s.toUpperCase())}function Ci(e){var t=e===void 0?{}:e,r=t.useFallbackLocale,n=r===void 0?!0:r,a=t.fallbackLocale,o=a===void 0?"en-US":a,i=[];if(typeof navigator<"u"){for(var s=navigator.languages||[],c=[],u=0,d=s;u<d.length;u++){var p=d[u];c=c.concat(ea(p))}var f=navigator.language,l=f&&ea(f);i=i.concat(c,l)}return n&&i.push(o),i.filter(Oi).map(Vr).filter(ji)}var Pi=Ya(Ci,{cacheKey:JSON.stringify});function Di(e){return Pi(e)[0]||null}var vn=Ya(Di,{cacheKey:JSON.stringify});function Ye(e,t,r){return function(a,o=r){const i=e(a)+o;return t(i)}}function At(e){return function(r){return new Date(e(r).getTime()-1)}}function It(e,t){return function(n){return[e(n),t(n)]}}function X(e){if(e instanceof Date)return e.getFullYear();if(typeof e=="number")return e;const t=Number.parseInt(e,10);if(typeof e=="string"&&!Number.isNaN(t))return t;throw new Error(`Failed to get year from date: ${e}.`)}function qe(e){if(e instanceof Date)return e.getMonth();throw new Error(`Failed to get month from date: ${e}.`)}function We(e){if(e instanceof Date)return e.getMonth()+1;throw new Error(`Failed to get human-readable month from date: ${e}.`)}function Be(e){if(e instanceof Date)return e.getDate();throw new Error(`Failed to get year from date: ${e}.`)}function ht(e){const t=X(e),r=t+(-t+1)%100,n=new Date;return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}const Ri=Ye(X,ht,-100),za=Ye(X,ht,100),hn=At(za),Ni=Ye(X,hn,-100),Ga=It(ht,hn);function ze(e){const t=X(e),r=t+(-t+1)%10,n=new Date;return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}const Ba=Ye(X,ze,-10),mn=Ye(X,ze,10),Tt=At(mn),qa=Ye(X,Tt,-10),Ua=It(ze,Tt);function at(e){const t=X(e),r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}const Ha=Ye(X,at,-1),gn=Ye(X,at,1),Mt=At(gn),Ka=Ye(X,Mt,-1),Ai=It(at,Mt);function yn(e,t){return function(n,a=t){const o=X(n),i=qe(n)+a,s=new Date;return s.setFullYear(o,i,1),s.setHours(0,0,0,0),e(s)}}function Ue(e){const t=X(e),r=qe(e),n=new Date;return n.setFullYear(t,r,1),n.setHours(0,0,0,0),n}const Za=yn(Ue,-1),bn=yn(Ue,1),mt=At(bn),Xa=yn(mt,-1),Ii=It(Ue,mt);function Ti(e,t){return function(n,a=t){const o=X(n),i=qe(n),s=Be(n)+a,c=new Date;return c.setFullYear(o,i,s),c.setHours(0,0,0,0),e(c)}}function gt(e){const t=X(e),r=qe(e),n=Be(e),a=new Date;return a.setFullYear(t,r,n),a.setHours(0,0,0,0),a}const Mi=Ti(gt,1),sr=At(Mi),Li=It(gt,sr);function wn(e){return Be(mt(e))}function Pt(e,t=2){const r=`${e}`;return r.length>=t?e:`0000${r}`.slice(-t)}function $i(e){const t=Pt(X(e),4),r=Pt(We(e));return`${t}-${r}`}function Fi(e){const t=Pt(X(e),4),r=Pt(We(e)),n=Pt(Be(e));return`${t}-${r}-${n}`}var Ee={GREGORY:"gregory",HEBREW:"hebrew",ISLAMIC:"islamic",ISO_8601:"iso8601"},Vi={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},_n=[0,1,2,3,4,5,6],Pr=new Map;function Wi(e){return function(r,n){var a=r||vn();Pr.has(a)||Pr.set(a,new Map);var o=Pr.get(a);return o.has(e)||o.set(e,new Intl.DateTimeFormat(a||void 0,e).format),o.get(e)(n)}}function Yi(e){var t=new Date(e);return new Date(t.setHours(12))}function ot(e){return function(t,r){return Wi(e)(t,Yi(r))}}var zi={day:"numeric"},Gi={day:"numeric",month:"long",year:"numeric"},Bi={month:"long"},qi={month:"long",year:"numeric"},Ui={weekday:"short"},Hi={weekday:"long"},Ki={year:"numeric"},Zi=ot(zi),Xi=ot(Gi),Ji=ot(Bi),Ja=ot(qi),Qi=ot(Ui),es=ot(Hi),cr=ot(Ki),ts=_n[0],rs=_n[5],ta=_n[6];function Rt(e,t){t===void 0&&(t=Ee.ISO_8601);var r=e.getDay();switch(t){case Ee.ISO_8601:return(r+6)%7;case Ee.ISLAMIC:return(r+1)%7;case Ee.HEBREW:case Ee.GREGORY:return r;default:throw new Error("Unsupported calendar type.")}}function ns(e){var t=ht(e);return X(t)}function as(e){var t=ze(e);return X(t)}function Wr(e,t){t===void 0&&(t=Ee.ISO_8601);var r=X(e),n=qe(e),a=e.getDate()-Rt(e,t);return new Date(r,n,a)}function os(e,t){t===void 0&&(t=Ee.ISO_8601);var r=t===Ee.GREGORY?Ee.GREGORY:Ee.ISO_8601,n=Wr(e,t),a=X(e)+1,o,i;do o=new Date(a,0,r===Ee.ISO_8601?4:1),i=Wr(o,t),a-=1;while(e<i);return Math.round((n.getTime()-i.getTime())/(864e5*7))+1}function et(e,t){switch(e){case"century":return ht(t);case"decade":return ze(t);case"year":return at(t);case"month":return Ue(t);case"day":return gt(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function is(e,t){switch(e){case"century":return Ri(t);case"decade":return Ba(t);case"year":return Ha(t);case"month":return Za(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Qa(e,t){switch(e){case"century":return za(t);case"decade":return mn(t);case"year":return gn(t);case"month":return bn(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function ss(e,t){switch(e){case"decade":return Ba(t,-100);case"year":return Ha(t,-10);case"month":return Za(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function cs(e,t){switch(e){case"decade":return mn(t,100);case"year":return gn(t,10);case"month":return bn(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}}function eo(e,t){switch(e){case"century":return hn(t);case"decade":return Tt(t);case"year":return Mt(t);case"month":return mt(t);case"day":return sr(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function us(e,t){switch(e){case"century":return Ni(t);case"decade":return qa(t);case"year":return Ka(t);case"month":return Xa(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function ls(e,t){switch(e){case"decade":return qa(t,-100);case"year":return Ka(t,-10);case"month":return Xa(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function ra(e,t){switch(e){case"century":return Ga(t);case"decade":return Ua(t);case"year":return Ai(t);case"month":return Ii(t);case"day":return Li(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function ds(e,t,r){var n=[t,r].sort(function(a,o){return a.getTime()-o.getTime()});return[et(e,n[0]),eo(e,n[1])]}function to(e,t,r){return r.map(function(n){return(t||cr)(e,n)}).join(" – ")}function fs(e,t,r){return to(e,t,Ga(r))}function ro(e,t,r){return to(e,t,Ua(r))}function ps(e){return e.getDay()===new Date().getDay()}function no(e,t){t===void 0&&(t=Ee.ISO_8601);var r=e.getDay();switch(t){case Ee.ISLAMIC:case Ee.HEBREW:return r===rs||r===ta;case Ee.ISO_8601:case Ee.GREGORY:return r===ta||r===ts;default:throw new Error("Unsupported calendar type.")}}var Me="react-calendar__navigation";function vs(e){var t=e.activeStartDate,r=e.drillUp,n=e.formatMonthYear,a=n===void 0?Ja:n,o=e.formatYear,i=o===void 0?cr:o,s=e.locale,c=e.maxDate,u=e.minDate,d=e.navigationAriaLabel,p=d===void 0?"":d,f=e.navigationAriaLive,l=e.navigationLabel,h=e.next2AriaLabel,m=h===void 0?"":h,y=e.next2Label,g=y===void 0?"»":y,_=e.nextAriaLabel,E=_===void 0?"":_,O=e.nextLabel,C=O===void 0?"›":O,x=e.prev2AriaLabel,S=x===void 0?"":x,A=e.prev2Label,U=A===void 0?"«":A,W=e.prevAriaLabel,te=W===void 0?"":W,Q=e.prevLabel,se=Q===void 0?"‹":Q,H=e.setActiveStartDate,re=e.showDoubleView,T=e.view,ae=e.views,ne=ae.indexOf(T)>0,R=T!=="century",M=is(T,t),F=R?ss(T,t):void 0,L=Qa(T,t),N=R?cs(T,t):void 0,J=(function(){if(M.getFullYear()<0)return!0;var B=us(T,t);return u&&u>=B})(),ce=R&&(function(){if(F.getFullYear()<0)return!0;var B=ls(T,t);return u&&u>=B})(),z=c&&c<L,G=R&&c&&c<N;function $(){H(M,"prev")}function oe(){H(F,"prev2")}function Z(){H(L,"next")}function ve(){H(N,"next2")}function de(B){var ue=(function(){switch(T){case"century":return fs(s,i,B);case"decade":return ro(s,i,B);case"year":return i(s,B);case"month":return a(s,B);default:throw new Error("Invalid view: ".concat(T,"."))}})();return l?l({date:B,label:ue,locale:s||vn()||void 0,view:T}):ue}function we(){var B="".concat(Me,"__label");return v.jsxRuntimeExports.jsxs("button",{"aria-label":p,"aria-live":f,className:B,disabled:!ne,onClick:r,style:{flexGrow:1},type:"button",children:[v.jsxRuntimeExports.jsx("span",{className:"".concat(B,"__labelText ").concat(B,"__labelText--from"),children:de(t)}),re?v.jsxRuntimeExports.jsxs(v.jsxRuntimeExports.Fragment,{children:[v.jsxRuntimeExports.jsx("span",{className:"".concat(B,"__divider"),children:" – "}),v.jsxRuntimeExports.jsx("span",{className:"".concat(B,"__labelText ").concat(B,"__labelText--to"),children:de(L)})]}):null]})}return v.jsxRuntimeExports.jsxs("div",{className:Me,children:[U!==null&&R?v.jsxRuntimeExports.jsx("button",{"aria-label":S,className:"".concat(Me,"__arrow ").concat(Me,"__prev2-button"),disabled:ce,onClick:oe,type:"button",children:U}):null,se!==null&&v.jsxRuntimeExports.jsx("button",{"aria-label":te,className:"".concat(Me,"__arrow ").concat(Me,"__prev-button"),disabled:J,onClick:$,type:"button",children:se}),we(),C!==null&&v.jsxRuntimeExports.jsx("button",{"aria-label":E,className:"".concat(Me,"__arrow ").concat(Me,"__next-button"),disabled:z,onClick:Z,type:"button",children:C}),g!==null&&R?v.jsxRuntimeExports.jsx("button",{"aria-label":m,className:"".concat(Me,"__arrow ").concat(Me,"__next2-button"),disabled:G,onClick:ve,type:"button",children:g}):null]})}var st=function(){return st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},st.apply(this,arguments)},hs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function na(e){return"".concat(e,"%")}function xn(e){var t=e.children,r=e.className,n=e.count,a=e.direction,o=e.offset,i=e.style,s=e.wrap,c=hs(e,["children","className","count","direction","offset","style","wrap"]);return v.jsxRuntimeExports.jsx("div",st({className:r,style:st({display:"flex",flexDirection:a,flexWrap:s?"wrap":"nowrap"},i)},c,{children:b.Children.map(t,function(u,d){var p=o&&d===0?na(100*o/n):null;return b.cloneElement(u,st(st({},u.props),{style:{flexBasis:na(100/n),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:p,marginInlineStart:p,marginInlineEnd:0}}))})}))}function ms(e,t,r){return t&&t>e?t:r&&r<e?r:e}function Nt(e,t){return t[0]<=e&&t[1]>=e}function gs(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function ao(e,t){return Nt(e[0],t)||Nt(e[1],t)}function aa(e,t,r){var n=ao(t,e),a=[];if(n){a.push(r);var o=Nt(e[0],t),i=Nt(e[1],t);o&&a.push("".concat(r,"Start")),i&&a.push("".concat(r,"End")),o&&i&&a.push("".concat(r,"BothEnds"))}return a}function ys(e){return Array.isArray(e)?e[0]!==null&&e[1]!==null:e!==null}function bs(e){if(!e)throw new Error("args is required");var t=e.value,r=e.date,n=e.hover,a="react-calendar__tile",o=[a];if(!r)return o;var i=new Date,s=(function(){if(Array.isArray(r))return r;var l=e.dateType;if(!l)throw new Error("dateType is required when date is not an array of two dates");return ra(l,r)})();if(Nt(i,s)&&o.push("".concat(a,"--now")),!t||!ys(t))return o;var c=(function(){if(Array.isArray(t))return t;var l=e.valueType;if(!l)throw new Error("valueType is required when value is not an array of two dates");return ra(l,t)})();gs(c,s)?o.push("".concat(a,"--active")):ao(c,s)&&o.push("".concat(a,"--hasActive"));var u=aa(c,s,"".concat(a,"--range"));o.push.apply(o,u);var d=Array.isArray(t)?t:[t];if(n&&d.length===1){var p=n>c[0]?[c[0],n]:[n,c[0]],f=aa(p,s,"".concat(a,"--hover"));o.push.apply(o,f)}return o}function ur(e){for(var t=e.className,r=e.count,n=r===void 0?3:r,a=e.dateTransform,o=e.dateType,i=e.end,s=e.hover,c=e.offset,u=e.renderTile,d=e.start,p=e.step,f=p===void 0?1:p,l=e.value,h=e.valueType,m=[],y=d;y<=i;y+=f){var g=a(y);m.push(u({classes:bs({date:g,dateType:o,hover:s,value:l,valueType:h}),date:g}))}return v.jsxRuntimeExports.jsx(xn,{className:t,count:n,offset:c,wrap:!0,children:m})}function lr(e){var t=e.activeStartDate,r=e.children,n=e.classes,a=e.date,o=e.formatAbbr,i=e.locale,s=e.maxDate,c=e.maxDateTransform,u=e.minDate,d=e.minDateTransform,p=e.onClick,f=e.onMouseOver,l=e.style,h=e.tileClassName,m=e.tileContent,y=e.tileDisabled,g=e.view,_=b.useMemo(function(){var O={activeStartDate:t,date:a,view:g};return typeof h=="function"?h(O):h},[t,a,h,g]),E=b.useMemo(function(){var O={activeStartDate:t,date:a,view:g};return typeof m=="function"?m(O):m},[t,a,m,g]);return v.jsxRuntimeExports.jsxs("button",{className:De.clsx(n,_),disabled:u&&d(u)>a||s&&c(s)<a||y?.({activeStartDate:t,date:a,view:g}),onClick:p?function(O){return p(a,O)}:void 0,onFocus:f?function(){return f(a)}:void 0,onMouseOver:f?function(){return f(a)}:void 0,style:l,type:"button",children:[o?v.jsxRuntimeExports.jsx("abbr",{"aria-label":o(i,a),children:r}):r,E]})}var Yr=function(){return Yr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Yr.apply(this,arguments)},ws=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},oa="react-calendar__century-view__decades__decade";function _s(e){var t=e.classes,r=t===void 0?[]:t,n=e.currentCentury,a=e.formatYear,o=a===void 0?cr:a,i=ws(e,["classes","currentCentury","formatYear"]),s=i.date,c=i.locale,u=[];return r&&u.push.apply(u,r),u.push(oa),ht(s).getFullYear()!==n&&u.push("".concat(oa,"--neighboringCentury")),v.jsxRuntimeExports.jsx(lr,Yr({},i,{classes:u,maxDateTransform:Tt,minDateTransform:ze,view:"century",children:ro(c,o,s)}))}var zr=function(){return zr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},zr.apply(this,arguments)},ia=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function xs(e){var t=e.activeStartDate,r=e.hover,n=e.showNeighboringCentury,a=e.value,o=e.valueType,i=ia(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),s=ns(t),c=s+(n?119:99);return v.jsxRuntimeExports.jsx(ur,{className:"react-calendar__century-view__decades",dateTransform:ze,dateType:"decade",end:c,hover:r,renderTile:function(u){var d=u.date,p=ia(u,["date"]);return v.jsxRuntimeExports.jsx(_s,zr({},i,p,{activeStartDate:t,currentCentury:s,date:d}),d.getTime())},start:s,step:10,value:a,valueType:o})}var Gr=function(){return Gr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Gr.apply(this,arguments)};function Es(e){function t(){return v.jsxRuntimeExports.jsx(xs,Gr({},e))}return v.jsxRuntimeExports.jsx("div",{className:"react-calendar__century-view",children:t()})}var Br=function(){return Br=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Br.apply(this,arguments)},Ss=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},sa="react-calendar__decade-view__years__year";function Os(e){var t=e.classes,r=t===void 0?[]:t,n=e.currentDecade,a=e.formatYear,o=a===void 0?cr:a,i=Ss(e,["classes","currentDecade","formatYear"]),s=i.date,c=i.locale,u=[];return r&&u.push.apply(u,r),u.push(sa),ze(s).getFullYear()!==n&&u.push("".concat(sa,"--neighboringDecade")),v.jsxRuntimeExports.jsx(lr,Br({},i,{classes:u,maxDateTransform:Mt,minDateTransform:at,view:"decade",children:o(c,s)}))}var qr=function(){return qr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},qr.apply(this,arguments)},ca=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function js(e){var t=e.activeStartDate,r=e.hover,n=e.showNeighboringDecade,a=e.value,o=e.valueType,i=ca(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),s=as(t),c=s+(n?11:9);return v.jsxRuntimeExports.jsx(ur,{className:"react-calendar__decade-view__years",dateTransform:at,dateType:"year",end:c,hover:r,renderTile:function(u){var d=u.date,p=ca(u,["date"]);return v.jsxRuntimeExports.jsx(Os,qr({},i,p,{activeStartDate:t,currentDecade:s,date:d}),d.getTime())},start:s,value:a,valueType:o})}var Ur=function(){return Ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ur.apply(this,arguments)};function ks(e){function t(){return v.jsxRuntimeExports.jsx(js,Ur({},e))}return v.jsxRuntimeExports.jsx("div",{className:"react-calendar__decade-view",children:t()})}var Hr=function(){return Hr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Hr.apply(this,arguments)},Cs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ua=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Ps="react-calendar__year-view__months__month";function Ds(e){var t=e.classes,r=t===void 0?[]:t,n=e.formatMonth,a=n===void 0?Ji:n,o=e.formatMonthYear,i=o===void 0?Ja:o,s=Cs(e,["classes","formatMonth","formatMonthYear"]),c=s.date,u=s.locale;return v.jsxRuntimeExports.jsx(lr,Hr({},s,{classes:ua(ua([],r,!0),[Ps],!1),formatAbbr:i,maxDateTransform:mt,minDateTransform:Ue,view:"year",children:a(u,c)}))}var Kr=function(){return Kr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Kr.apply(this,arguments)},la=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Rs(e){var t=e.activeStartDate,r=e.hover,n=e.value,a=e.valueType,o=la(e,["activeStartDate","hover","value","valueType"]),i=0,s=11,c=X(t);return v.jsxRuntimeExports.jsx(ur,{className:"react-calendar__year-view__months",dateTransform:function(u){var d=new Date;return d.setFullYear(c,u,1),Ue(d)},dateType:"month",end:s,hover:r,renderTile:function(u){var d=u.date,p=la(u,["date"]);return v.jsxRuntimeExports.jsx(Ds,Kr({},o,p,{activeStartDate:t,date:d}),d.getTime())},start:i,value:n,valueType:a})}var Zr=function(){return Zr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Zr.apply(this,arguments)};function Ns(e){function t(){return v.jsxRuntimeExports.jsx(Rs,Zr({},e))}return v.jsxRuntimeExports.jsx("div",{className:"react-calendar__year-view",children:t()})}var Xr=function(){return Xr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Xr.apply(this,arguments)},As=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Dr="react-calendar__month-view__days__day";function Is(e){var t=e.calendarType,r=e.classes,n=r===void 0?[]:r,a=e.currentMonthIndex,o=e.formatDay,i=o===void 0?Zi:o,s=e.formatLongDate,c=s===void 0?Xi:s,u=As(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),d=u.date,p=u.locale,f=[];return n&&f.push.apply(f,n),f.push(Dr),no(d,t)&&f.push("".concat(Dr,"--weekend")),d.getMonth()!==a&&f.push("".concat(Dr,"--neighboringMonth")),v.jsxRuntimeExports.jsx(lr,Xr({},u,{classes:f,formatAbbr:c,maxDateTransform:sr,minDateTransform:gt,view:"month",children:i(p,d)}))}var Jr=function(){return Jr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Jr.apply(this,arguments)},da=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Ts(e){var t=e.activeStartDate,r=e.calendarType,n=e.hover,a=e.showFixedNumberOfWeeks,o=e.showNeighboringMonth,i=e.value,s=e.valueType,c=da(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),u=X(t),d=qe(t),p=a||o,f=Rt(t,r),l=p?0:f,h=(p?-f:0)+1,m=(function(){if(a)return h+42-1;var y=wn(t);if(o){var g=new Date;g.setFullYear(u,d,y),g.setHours(0,0,0,0);var _=7-Rt(g,r)-1;return y+_}return y})();return v.jsxRuntimeExports.jsx(ur,{className:"react-calendar__month-view__days",count:7,dateTransform:function(y){var g=new Date;return g.setFullYear(u,d,y),gt(g)},dateType:"day",hover:n,end:m,renderTile:function(y){var g=y.date,_=da(y,["date"]);return v.jsxRuntimeExports.jsx(Is,Jr({},c,_,{activeStartDate:t,calendarType:r,currentMonthIndex:d,date:g}),g.getTime())},offset:l,start:h,value:i,valueType:s})}var oo="react-calendar__month-view__weekdays",Rr="".concat(oo,"__weekday");function Ms(e){for(var t=e.calendarType,r=e.formatShortWeekday,n=r===void 0?Qi:r,a=e.formatWeekday,o=a===void 0?es:a,i=e.locale,s=e.onMouseLeave,c=new Date,u=Ue(c),d=X(u),p=qe(u),f=[],l=1;l<=7;l+=1){var h=new Date(d,p,l-Rt(u,t)),m=o(i,h);f.push(v.jsxRuntimeExports.jsx("div",{className:De.clsx(Rr,ps(h)&&"".concat(Rr,"--current"),no(h,t)&&"".concat(Rr,"--weekend")),children:v.jsxRuntimeExports.jsx("abbr",{"aria-label":m,title:m,children:n(i,h).replace(".","")})},l))}return v.jsxRuntimeExports.jsx(xn,{className:oo,count:7,onFocus:s,onMouseOver:s,children:f})}var er=function(){return er=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},er.apply(this,arguments)},fa=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},pa="react-calendar__tile";function Ls(e){var t=e.onClickWeekNumber,r=e.weekNumber,n=v.jsxRuntimeExports.jsx("span",{children:r});if(t){var a=e.date,o=e.onClickWeekNumber,i=e.weekNumber,s=fa(e,["date","onClickWeekNumber","weekNumber"]);return v.jsxRuntimeExports.jsx("button",er({},s,{className:pa,onClick:function(c){return o(i,a,c)},type:"button",children:n}))}else{e.date,e.onClickWeekNumber,e.weekNumber;var s=fa(e,["date","onClickWeekNumber","weekNumber"]);return v.jsxRuntimeExports.jsx("div",er({},s,{className:pa,children:n}))}}function $s(e){var t=e.activeStartDate,r=e.calendarType,n=e.onClickWeekNumber,a=e.onMouseLeave,o=e.showFixedNumberOfWeeks,i=(function(){if(o)return 6;var u=wn(t),d=Rt(t,r),p=u-(7-d);return 1+Math.ceil(p/7)})(),s=(function(){for(var u=X(t),d=qe(t),p=Be(t),f=[],l=0;l<i;l+=1)f.push(Wr(new Date(u,d,p+l*7),r));return f})(),c=s.map(function(u){return os(u,r)});return v.jsxRuntimeExports.jsx(xn,{className:"react-calendar__month-view__weekNumbers",count:i,direction:"column",onFocus:a,onMouseOver:a,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:c.map(function(u,d){var p=s[d];if(!p)throw new Error("date is not defined");return v.jsxRuntimeExports.jsx(Ls,{date:p,onClickWeekNumber:n,weekNumber:u},u)})})}var Qr=function(){return Qr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Qr.apply(this,arguments)},Fs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Vs(e){if(e)for(var t=0,r=Object.entries(Vi);t<r.length;t++){var n=r[t],a=n[0],o=n[1];if(o.includes(e))return a}return Ee.ISO_8601}function Ws(e){var t=e.activeStartDate,r=e.locale,n=e.onMouseLeave,a=e.showFixedNumberOfWeeks,o=e.calendarType,i=o===void 0?Vs(r):o,s=e.formatShortWeekday,c=e.formatWeekday,u=e.onClickWeekNumber,d=e.showWeekNumbers,p=Fs(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);function f(){return v.jsxRuntimeExports.jsx(Ms,{calendarType:i,formatShortWeekday:s,formatWeekday:c,locale:r,onMouseLeave:n})}function l(){return d?v.jsxRuntimeExports.jsx($s,{activeStartDate:t,calendarType:i,onClickWeekNumber:u,onMouseLeave:n,showFixedNumberOfWeeks:a}):null}function h(){return v.jsxRuntimeExports.jsx(Ts,Qr({calendarType:i},p))}var m="react-calendar__month-view";return v.jsxRuntimeExports.jsx("div",{className:De.clsx(m,d?"".concat(m,"--weekNumbers"):""),children:v.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"flex-end"},children:[l(),v.jsxRuntimeExports.jsxs("div",{style:{flexGrow:1,width:"100%"},children:[f(),h()]})]})})}var ct=function(){return ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ct.apply(this,arguments)},Vt="react-calendar",Ht=["century","decade","year","month"],Ys=["decade","year","month","day"],En=new Date;En.setFullYear(1,0,1);En.setHours(0,0,0,0);var zs=new Date(864e13);function kt(e){return e instanceof Date?e:new Date(e)}function io(e,t){return Ht.slice(Ht.indexOf(e),Ht.indexOf(t)+1)}function Gs(e,t,r){var n=io(t,r);return n.indexOf(e)!==-1}function Sn(e,t,r){return e&&Gs(e,t,r)?e:r}function so(e){var t=Ht.indexOf(e);return Ys[t]}function Bs(e,t){var r=Array.isArray(e)?e[t]:e;if(!r)return null;var n=kt(r);if(Number.isNaN(n.getTime()))throw new Error("Invalid date: ".concat(e));return n}function co(e,t){var r=e.value,n=e.minDate,a=e.maxDate,o=e.maxDetail,i=Bs(r,t);if(!i)return null;var s=so(o),c=(function(){switch(t){case 0:return et(s,i);case 1:return eo(s,i);default:throw new Error("Invalid index value: ".concat(t))}})();return ms(c,n,a)}var On=function(e){return co(e,0)},uo=function(e){return co(e,1)},qs=function(e){return[On,uo].map(function(t){return t(e)})};function lo(e){var t=e.maxDate,r=e.maxDetail,n=e.minDate,a=e.minDetail,o=e.value,i=e.view,s=Sn(i,a,r),c=On({value:o,minDate:n,maxDate:t,maxDetail:r})||new Date;return et(s,c)}function Us(e){var t=e.activeStartDate,r=e.defaultActiveStartDate,n=e.defaultValue,a=e.defaultView,o=e.maxDate,i=e.maxDetail,s=e.minDate,c=e.minDetail,u=e.value,d=e.view,p=Sn(d,c,i),f=t||r;return f?et(p,f):lo({maxDate:o,maxDetail:i,minDate:s,minDetail:c,value:u||n,view:d||a})}function Nr(e){return e&&(!Array.isArray(e)||e.length===1)}function Wt(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var jn=b.forwardRef(function(t,r){var n=t.activeStartDate,a=t.allowPartialRange,o=t.calendarType,i=t.className,s=t.defaultActiveStartDate,c=t.defaultValue,u=t.defaultView,d=t.formatDay,p=t.formatLongDate,f=t.formatMonth,l=t.formatMonthYear,h=t.formatShortWeekday,m=t.formatWeekday,y=t.formatYear,g=t.goToRangeStartOnSelect,_=g===void 0?!0:g,E=t.inputRef,O=t.locale,C=t.maxDate,x=C===void 0?zs:C,S=t.maxDetail,A=S===void 0?"month":S,U=t.minDate,W=U===void 0?En:U,te=t.minDetail,Q=te===void 0?"century":te,se=t.navigationAriaLabel,H=t.navigationAriaLive,re=t.navigationLabel,T=t.next2AriaLabel,ae=t.next2Label,ne=t.nextAriaLabel,R=t.nextLabel,M=t.onActiveStartDateChange,F=t.onChange,L=t.onClickDay,N=t.onClickDecade,J=t.onClickMonth,ce=t.onClickWeekNumber,z=t.onClickYear,G=t.onDrillDown,$=t.onDrillUp,oe=t.onViewChange,Z=t.prev2AriaLabel,ve=t.prev2Label,de=t.prevAriaLabel,we=t.prevLabel,B=t.returnValue,ue=B===void 0?"start":B,le=t.selectRange,me=t.showDoubleView,xe=t.showFixedNumberOfWeeks,j=t.showNavigation,k=j===void 0?!0:j,D=t.showNeighboringCentury,w=t.showNeighboringDecade,P=t.showNeighboringMonth,Y=P===void 0?!0:P,I=t.showWeekNumbers,K=t.tileClassName,ie=t.tileContent,ge=t.tileDisabled,$e=t.value,He=t.view,Ke=b.useState(s),br=Ke[0],Lt=Ke[1],Tn=b.useState(null),Uo=Tn[0],Mn=Tn[1],Ln=b.useState(Array.isArray(c)?c.map(function(q){return q!==null?kt(q):null}):c!=null?kt(c):null),wr=Ln[0],Ho=Ln[1],$n=b.useState(u),Ko=$n[0],Fn=$n[1],je=n||br||Us({activeStartDate:n,defaultActiveStartDate:s,defaultValue:c,defaultView:u,maxDate:x,maxDetail:A,minDate:W,minDetail:Q,value:$e,view:He}),ke=(function(){var q=(function(){return le&&Nr(wr)?wr:$e!==void 0?$e:wr})();return q?Array.isArray(q)?q.map(function(he){return he!==null?kt(he):null}):q!==null?kt(q):null:null})(),$t=so(A),pe=Sn(He||Ko,Q,A),Te=io(Q,A),Zo=le?Uo:null,_r=Te.indexOf(pe)<Te.length-1,Vn=Te.indexOf(pe)>0,Wn=b.useCallback(function(q){var he=(function(){switch(ue){case"start":return On;case"end":return uo;case"range":return qs;default:throw new Error("Invalid returnValue.")}})();return he({maxDate:x,maxDetail:A,minDate:W,value:q})},[x,A,W,ue]),xr=b.useCallback(function(q,he){Lt(q);var ye={action:he,activeStartDate:q,value:ke,view:pe};M&&!Wt(je,q)&&M(ye)},[je,M,ke,pe]),Ft=b.useCallback(function(q,he){var ye=(function(){switch(pe){case"century":return N;case"decade":return z;case"year":return J;case"month":return L;default:throw new Error("Invalid view: ".concat(pe,"."))}})();ye&&ye(q,he)},[L,N,J,z,pe]),Er=b.useCallback(function(q,he){if(_r){Ft(q,he);var ye=Te[Te.indexOf(pe)+1];if(!ye)throw new Error("Attempted to drill down from the lowest view.");Lt(q),Fn(ye);var Ne={action:"drillDown",activeStartDate:q,value:ke,view:ye};M&&!Wt(je,q)&&M(Ne),oe&&pe!==ye&&oe(Ne),G&&G(Ne)}},[je,_r,M,Ft,G,oe,ke,pe,Te]),Sr=b.useCallback(function(){if(Vn){var q=Te[Te.indexOf(pe)-1];if(!q)throw new Error("Attempted to drill up from the highest view.");var he=et(q,je);Lt(he),Fn(q);var ye={action:"drillUp",activeStartDate:he,value:ke,view:q};M&&!Wt(je,he)&&M(ye),oe&&pe!==q&&oe(ye),$&&$(ye)}},[je,Vn,M,$,oe,ke,pe,Te]),Or=b.useCallback(function(q,he){var ye=ke;Ft(q,he);var Ne=le&&!Nr(ye),Ae;if(le)if(Ne)Ae=et($t,q);else{if(!ye)throw new Error("previousValue is required");if(Array.isArray(ye))throw new Error("previousValue must not be an array");Ae=ds($t,ye,q)}else Ae=Wn(q);var kr=!le||Ne||_?lo({maxDate:x,maxDetail:A,minDate:W,minDetail:Q,value:Ae,view:pe}):null;he.persist(),Lt(kr),Ho(Ae);var ei={action:"onChange",activeStartDate:kr,value:Ae,view:pe};if(M&&!Wt(je,kr)&&M(ei),F)if(le){var ti=Nr(Ae);if(!ti)F(Ae||null,he);else if(a){if(Array.isArray(Ae))throw new Error("value must not be an array");F([Ae||null,null],he)}}else F(Ae||null,he)},[je,a,Wn,_,x,A,W,Q,M,F,Ft,le,ke,$t,pe]);function Xo(q){Mn(q)}function jr(){Mn(null)}b.useImperativeHandle(r,function(){return{activeStartDate:je,drillDown:Er,drillUp:Sr,onChange:Or,setActiveStartDate:xr,value:ke,view:pe}},[je,Er,Sr,Or,xr,ke,pe]);function Yn(q){var he=q?Qa(pe,je):et(pe,je),ye=_r?Er:Or,Ne={activeStartDate:he,hover:Zo,locale:O,maxDate:x,minDate:W,onClick:ye,onMouseOver:le?Xo:void 0,tileClassName:K,tileContent:ie,tileDisabled:ge,value:ke,valueType:$t};switch(pe){case"century":return v.jsxRuntimeExports.jsx(Es,ct({formatYear:y,showNeighboringCentury:D},Ne));case"decade":return v.jsxRuntimeExports.jsx(ks,ct({formatYear:y,showNeighboringDecade:w},Ne));case"year":return v.jsxRuntimeExports.jsx(Ns,ct({formatMonth:f,formatMonthYear:l},Ne));case"month":return v.jsxRuntimeExports.jsx(Ws,ct({calendarType:o,formatDay:d,formatLongDate:p,formatShortWeekday:h,formatWeekday:m,onClickWeekNumber:ce,onMouseLeave:le?jr:void 0,showFixedNumberOfWeeks:typeof xe<"u"?xe:me,showNeighboringMonth:Y,showWeekNumbers:I},Ne));default:throw new Error("Invalid view: ".concat(pe,"."))}}function Jo(){return k?v.jsxRuntimeExports.jsx(vs,{activeStartDate:je,drillUp:Sr,formatMonthYear:l,formatYear:y,locale:O,maxDate:x,minDate:W,navigationAriaLabel:se,navigationAriaLive:H,navigationLabel:re,next2AriaLabel:T,next2Label:ae,nextAriaLabel:ne,nextLabel:R,prev2AriaLabel:Z,prev2Label:ve,prevAriaLabel:de,prevLabel:we,setActiveStartDate:xr,showDoubleView:me,view:pe,views:Te}):null}var Qo=Array.isArray(ke)?ke:[ke];return v.jsxRuntimeExports.jsxs("div",{className:De.clsx(Vt,le&&Qo.length===1&&"".concat(Vt,"--selectRange"),me&&"".concat(Vt,"--doubleView"),i),ref:E,children:[Jo(),v.jsxRuntimeExports.jsxs("div",{className:"".concat(Vt,"__viewContainer"),onBlur:le?jr:void 0,onMouseLeave:le?jr:void 0,children:[Yn(),me?Yn(!0):null]})]})});const Hs=["onCopy","onCut","onPaste"],Ks=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],Zs=["onFocus","onBlur"],Xs=["onInput","onInvalid","onReset","onSubmit"],Js=["onLoad","onError"],Qs=["onKeyDown","onKeyPress","onKeyUp"],ec=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],tc=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],rc=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],nc=["onSelect"],ac=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],oc=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],ic=["onScroll"],sc=["onWheel"],cc=["onAnimationStart","onAnimationEnd","onAnimationIteration"],uc=["onTransitionEnd"],lc=["onToggle"],dc=["onChange"],fc=[...Hs,...Ks,...Zs,...Xs,...Js,...Qs,...ec,...tc,...rc,...nc,...ac,...oc,...ic,...sc,...cc,...uc,...dc,...lc];function fo(e,t){const r={};for(const n of fc){const a=e[n];a&&(r[n]=a)}return r}function Se(e){return e.getBoundingClientRect()}function va(e,t){return{get collidedTop(){return Se(e).top<Se(t).top},get collidedBottom(){return Se(e).bottom>Se(t).bottom},get collidedLeft(){return Se(e).left<Se(t).left},get collidedRight(){return Se(e).right>Se(t).right},get overflowTop(){return Se(t).top-Se(e).top},get overflowBottom(){return Se(e).bottom-Se(t).bottom},get overflowLeft(){return Se(t).left-Se(e).left},get overflowRight(){return Se(e).right-Se(t).right}}}var Ar,ha;function pc(){if(ha)return Ar;ha=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var r=function(a,o){var i=arguments.length;o=new Array(i>1?i-1:0);for(var s=1;s<i;s++)o[s-1]=arguments[s];var c=0,u="Warning: "+a.replace(/%s/g,function(){return o[c++]});try{throw new Error(u)}catch{}};t=function(n,a,o){var i=arguments.length;o=new Array(i>2?i-2:0);for(var s=2;s<i;s++)o[s-2]=arguments[s];if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");n||r.apply(null,[a].concat(o))}}return Ar=t,Ar}var vc=pc();const ma=oi(vc);var hc=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const mc=typeof window<"u",gc=mc&&"MutationObserver"in window;function Yt(e){return e.charAt(0).toUpperCase()+e.slice(1)}function yc(e){let t=e.parentElement;for(;t;){const{overflow:r}=window.getComputedStyle(t);if(r.split(" ").every(n=>n==="auto"||n==="scroll"))return t;t=t.parentElement}return document.documentElement}function po({axis:e,container:t,element:r,invertAxis:n,scrollContainer:a,secondary:o,spacing:i}){const s=window.getComputedStyle(r),c=t.parentElement;if(!c)return;const u=va(c,a),d=va(c,document.documentElement),p=e==="x",f=p?"left":"top",l=p?"right":"bottom",h=p?"width":"height",m=`overflow${Yt(f)}`,y=`overflow${Yt(l)}`,g=`scroll${Yt(f)}`,_=Yt(h),E=`offset${_}`,O=`client${_}`,C=`min-${h}`,x=a[E]-a[O],S=typeof i=="object"?i[f]:i;let A=-Math.max(u[m],d[m]+document.documentElement[g])-S;const U=typeof i=="object"?i[l]:i;let W=-Math.max(u[y],d[y]-document.documentElement[g])-U-x;o&&(A+=c[O],W+=c[O]);const te=r[E];function Q(){r.style[f]="auto",r.style[l]=o?"0":"100%"}function se(){r.style[f]=o?"0":"100%",r.style[l]="auto"}function H(R,M){const F=te<=R;return F&&M(),F}function re(){return H(A,Q)}function T(){return H(W,se)}function ae(){const R=A>W,M=s.getPropertyValue(C),F=M?Number.parseInt(M,10):null;function L(N){ma(!F||N>=F,`<Fit />'s child will not fit anywhere with its current ${C} of ${F}px.`);const J=Math.max(N,F||0);ma(!1,`<Fit />'s child needed to have its ${h} decreased to ${J}px.`),r.style[h]=`${J}px`}R?(L(A),Q()):(L(W),se())}let ne;n?ne=re()||T():ne=T()||re(),ne||ae()}function bc(e){po(e)}function wc(e){po(Object.assign(Object.assign({},e),{axis:e.axis==="x"?"y":"x",secondary:!0}))}function _c(e){const{invertAxis:t,invertSecondaryAxis:r}=e,n=hc(e,["invertAxis","invertSecondaryAxis"]);bc(Object.assign(Object.assign({},n),{invertAxis:t})),wc(Object.assign(Object.assign({},n),{invertAxis:r}))}function vo({children:e,invertAxis:t,invertSecondaryAxis:r,mainAxis:n="y",spacing:a=8}){const o=b.useRef(void 0),i=b.useRef(void 0),s=b.useRef(void 0),c=b.useRef(void 0),u=b.useRef(void 0),d=b.useCallback(()=>{if(!u.current||!o.current||!i.current)return;const l=i.current.clientWidth,h=i.current.clientHeight;if(s.current===l&&c.current===h)return;s.current=l,c.current=h;const m=o.current.parentElement;if(!m)return;const y=window.getComputedStyle(i.current),{position:g}=y;g!=="absolute"&&(i.current.style.position="absolute");const _=window.getComputedStyle(m),{position:E}=_;E!=="relative"&&E!=="absolute"&&(m.style.position="relative"),_c({axis:n,container:o.current,element:i.current,invertAxis:t,invertSecondaryAxis:r,scrollContainer:u.current,spacing:a})},[t,r,n,a]),p=b.Children.only(e);b.useEffect(()=>{d();function l(){d()}gc&&i.current&&new MutationObserver(l).observe(i.current,{attributes:!0,attributeFilter:["class","style"]})},[d]);function f(l){!l||!(l instanceof HTMLElement)||(i.current=l,u.current=yc(l))}return v.jsxRuntimeExports.jsx("span",{ref:l=>{if(!l)return;o.current=l;const h=l?.firstElementChild;f(h)},style:{display:"contents"},children:p})}var xc=["normal","small-caps"];function ho(e){if(!e)return"";var t=window.getComputedStyle(e);if(t.font)return t.font;var r=t.fontFamily!=="";if(!r)return"";var n=xc.includes(t.fontVariant)?t.fontVariant:"normal";return"".concat(t.fontStyle," ").concat(n," ").concat(t.fontWeight," ").concat(t.fontSize," / ").concat(t.lineHeight," ").concat(t.fontFamily)}var ga;function Ec(e,t){var r=ga||(ga=document.createElement("canvas")),n=r.getContext("2d");if(!n)return null;n.font=t;var a=n.measureText(e).width;return Math.ceil(a)}function tr(e){if(typeof document>"u"||!e)return null;var t=ho(e),r=e.value||e.placeholder,n=Ec(r,t);return n===null?null:(e.style.width="".concat(n,"px"),n)}const kn=typeof window<"u",Sc=kn?b.useLayoutEffect:b.useEffect,Oc=kn&&/(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent),jc=kn&&/Firefox/.test(navigator.userAgent);function kc(e){const{target:t}=e;Oc?requestAnimationFrame(()=>t.select()):t.select()}function Cc(e){if(document.readyState==="complete")return;function t(){tr(e)}window.addEventListener("load",t)}function Pc(e){if(!document.fonts)return;const t=ho(e);if(!t||document.fonts.check(t))return;function n(){tr(e)}document.fonts.addEventListener("loadingdone",n)}function Dc(e){if(e&&"selectionStart"in e&&e.selectionStart!==null&&"selectionEnd"in e&&e.selectionEnd!==null)return e.value.slice(e.selectionStart,e.selectionEnd);if("getSelection"in window){const t=window.getSelection();return t?.toString()}return null}function Rc(e){if(e!==null)return function(r){if(jc)return;const{key:n,target:a}=r,{value:o}=a,i=n.length===1&&/\d/.test(n),s=Dc(a);(!i||!(s||o.length<e))&&r.preventDefault()}}function Cn({ariaLabel:e,autoFocus:t,className:r,disabled:n,inputRef:a,max:o,min:i,name:s,nameForClass:c,onChange:u,onKeyDown:d,onKeyUp:p,placeholder:f="--",required:l,showLeadingZeros:h,step:m,value:y}){Sc(()=>{!a||!a.current||(tr(a.current),Cc(a.current),Pc(a.current))},[a,y]);const g=h&&y&&Number(y)<10&&(y==="0"||!y.toString().startsWith("0")),_=o?o.toString().length:null;return v.jsxRuntimeExports.jsxs(v.jsxRuntimeExports.Fragment,{children:[g?v.jsxRuntimeExports.jsx("span",{className:`${r}__leadingZero`,children:"0"}):null,v.jsxRuntimeExports.jsx("input",{"aria-label":e,autoComplete:"off",autoFocus:t,className:De.clsx(`${r}__input`,`${r}__${c||s}`,g&&`${r}__input--hasLeadingZero`),"data-input":"true",disabled:n,inputMode:"numeric",max:o,min:i,name:s,onChange:u,onFocus:kc,onKeyDown:d,onKeyPress:Rc(_),onKeyUp:E=>{tr(E.target),p&&p(E)},placeholder:f,ref:a,required:l,step:m,type:"number",value:y!==null?y:""})]})}function Nc(e,t,r){return t&&t>e?t:r&&r<e?r:e}function mo(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function dr(...e){return Math.min(...e.filter(mo))}function fr(...e){return Math.max(...e.filter(mo))}function Ac({maxDate:e,minDate:t,month:r,year:n,...a}){const o=r?wn(new Date(Number(n),Number(r)-1,1)):31;function i(u){return n===X(u).toString()&&r===We(u).toString()}const s=dr(o,e&&i(e)&&Be(e)),c=fr(1,t&&i(t)&&Be(t));return v.jsxRuntimeExports.jsx(Cn,{max:s,min:c,name:"day",...a})}function Ic({maxDate:e,minDate:t,year:r,...n}){function a(s){return s&&r===X(s).toString()}const o=dr(12,e&&a(e)&&We(e)),i=fr(1,t&&a(t)&&We(t));return v.jsxRuntimeExports.jsx(Cn,{max:o,min:i,name:"month",...n})}const Ir=new Map;function en(e){return function(r,n){const a=r||vn();Ir.has(a)||Ir.set(a,new Map);const o=Ir.get(a);return o.has(e)||o.set(e,new Intl.DateTimeFormat(a||void 0,e).format),o.get(e)(n)}}function Tc(e){const t=new Date(e);return new Date(t.setHours(12))}function go(e){return(t,r)=>en(e)(t,Tc(r))}const Mc={month:"long"},Lc={month:"short"},$c=go(Mc),Fc=go(Lc);function Vc({ariaLabel:e,autoFocus:t,className:r,disabled:n,inputRef:a,locale:o,maxDate:i,minDate:s,onChange:c,onKeyDown:u,placeholder:d="--",required:p,short:f,value:l,year:h}){function m(C){return C&&h===X(C).toString()}const y=dr(12,i&&m(i)&&We(i)),g=fr(1,s&&m(s)&&We(s)),_=[...Array(12)].map((C,x)=>new Date(2019,x,1)),E="month",O=f?Fc:$c;return v.jsxRuntimeExports.jsxs("select",{"aria-label":e,autoFocus:t,className:De.clsx(`${r}__input`,`${r}__${E}`),"data-input":"true","data-select":"true",disabled:n,name:E,onChange:c,onKeyDown:u,ref:a,required:p,value:l!==null?l:"",children:[!l&&v.jsxRuntimeExports.jsx("option",{value:"",children:d}),_.map(C=>{const x=We(C),S=x<g||x>y;return v.jsxRuntimeExports.jsx("option",{disabled:S,value:x,children:O(o,C)},x)})]})}function Wc({ariaLabel:e,disabled:t,maxDate:r,minDate:n,name:a,onChange:o,required:i,value:s,valueType:c}){const u=(()=>{switch(c){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType")}})(),d=(()=>{switch(c){case"decade":case"year":return X;case"month":return $i;case"day":return Fi;default:throw new Error("Invalid valueType")}})();function p(f){f.stopPropagation()}return v.jsxRuntimeExports.jsx("input",{"aria-label":e,disabled:t,hidden:!0,max:r?d(r):void 0,min:n?d(n):void 0,name:a,onChange:o,onFocus:p,required:i,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:u,value:s?d(s):""})}function Yc({maxDate:e,minDate:t,placeholder:r="----",valueType:n,...a}){const o=dr(275760,e&&X(e)),i=fr(1,t&&X(t)),s=n==="century"?10:1;return v.jsxRuntimeExports.jsx(Cn,{max:o,min:i,name:"year",placeholder:r,step:s,...a})}function zc({children:e}){return v.jsxRuntimeExports.jsx("span",{className:"react-date-picker__inputGroup__divider",children:e})}function Gc(e,t){switch(e){case"decade":return ze(t);case"year":return at(t);case"month":return Ue(t);case"day":return gt(t);default:throw new Error(`Invalid rangeType: ${e}`)}}function Bc(e,t){switch(e){case"decade":return Tt(t);case"year":return Mt(t);case"month":return mt(t);case"day":return sr(t);default:throw new Error(`Invalid rangeType: ${e}`)}}const zt={},rr=new Date;rr.setFullYear(1,0,1);rr.setHours(0,0,0,0);const ya=new Date(864e13),Pn=["century","decade","year","month"],qc=[...Pn.slice(1),"day"];function Uc(e){return e instanceof Date?e:new Date(e)}function yo(e){const t=Pn.indexOf(e);return qc[t]}function Hc(e,t){const r=Array.isArray(e)?e[t]:e;if(!r)return null;const n=Uc(r);if(Number.isNaN(n.getTime()))throw new Error(`Invalid date: ${e}`);return n}function bo({value:e,minDate:t,maxDate:r,maxDetail:n},a){const o=Hc(e,a);if(!o)return null;const i=yo(n),s=(()=>{switch(a){case 0:return Gc(i,o);case 1:return Bc(i,o);default:throw new Error(`Invalid index value: ${a}`)}})();return Nc(s,t,r)}const tn=e=>bo(e,0),wo=e=>bo(e,1),Kc=e=>[tn,wo].map(t=>t(e));function Zc(e){return e.dataset.input==="true"}function ba(e,t){let r=e;do r=r[t];while(r&&!Zc(r));return r}function Tr(e){e&&e.focus()}function Xc(e,t,r){const n=[],a=new RegExp(Object.keys(t).map(i=>`${i}+`).join("|"),"g"),o=e.match(a);return e.split(a).reduce((i,s,c)=>{const u=s&&v.jsxRuntimeExports.jsx(zc,{children:s},`separator_${c}`);i.push(u);const d=o?.[c];if(d){const p=t[d]||t[Object.keys(t).find(f=>d.match(f))];if(!p)return i;!r&&n.includes(p)?i.push(d):(i.push(p(d,c)),n.push(p))}return i},[])}function rn({autoFocus:e,className:t,dayAriaLabel:r,dayPlaceholder:n,disabled:a,format:o,isCalendarOpen:i=null,locale:s,maxDate:c,maxDetail:u="month",minDate:d,monthAriaLabel:p,monthPlaceholder:f,name:l="date",nativeInputAriaLabel:h,onChange:m,onInvalidChange:y,required:g,returnValue:_="start",showLeadingZeros:E,value:O,yearAriaLabel:C,yearPlaceholder:x}){const[S,A]=b.useState(null),[U,W]=b.useState(null),[te,Q]=b.useState(null),[se,H]=b.useState(null),re=b.useRef(null),T=b.useRef(null),ae=b.useRef(null),ne=b.useRef(null),[R,M]=b.useState(i),F=b.useRef(void 0);b.useEffect(()=>{M(i)},[i]),b.useEffect(()=>{const j=tn({value:O,minDate:d,maxDate:c,maxDetail:u});j?(A(X(j).toString()),W(We(j).toString()),Q(Be(j).toString()),H(j)):(A(null),W(null),Q(null),H(null))},[O,d,c,u,R]);const L=yo(u),N=(()=>{const j=Pn.indexOf(u),k=zt[j]||(()=>{const D={year:"numeric"};return j>=2&&(D.month="numeric"),j>=3&&(D.day="numeric"),zt[j]=D,D})();return en(k)})();function J(j){return(()=>{switch(_){case"start":return tn;case"end":return wo;case"range":return Kc;default:throw new Error("Invalid returnValue.")}})()({value:j,minDate:d,maxDate:c,maxDetail:u})}const ce=o||(()=>{const w=new Date(2017,11,11),P=N(s,w),Y=["year","month","day"],I=["y","M","d"];function K(ge,$e){const He=zt[ge]||(()=>{const Ke={[ge]:"numeric"};return zt[ge]=Ke,Ke})();return en(He)(s,$e).match(/\d{1,}/)}let ie=P;return Y.forEach((ge,$e)=>{const He=K(ge,w);if(He){const Ke=He[0],br=I[$e];ie=ie.replace(Ke,br)}}),ie=ie.replace("17","y"),ie})(),z=(()=>{const j=ce.match(/[^0-9a-z]/i);return j?j[0]:null})();function G(j){if(j.target===j.currentTarget){const k=j.target.children[1];Tr(k)}}function $(j){switch(F.current=j.key,j.key){case"ArrowLeft":case"ArrowRight":case z:{j.preventDefault();const{target:k}=j,D=j.key==="ArrowLeft"?"previousElementSibling":"nextElementSibling",w=ba(k,D);Tr(w);break}}}function oe(j){const{key:k,target:D}=j;if(!(F.current===k)||!!Number.isNaN(Number(k)))return;const Y=D.getAttribute("max");if(!Y)return;const{value:I}=D;if(Number(I)*10>Number(Y)||I.length>=Y.length){const ie=ba(D,"nextElementSibling");Tr(ie)}}function Z(){if(!m)return;function j(I){return!!I}const k=[ne.current,T.current,ae.current,re.current].filter(j),D={};for(const I of k)D[I.name]="valueAsNumber"in I?I.valueAsNumber:Number(I.value);if(k.every(I=>!I.value)){m(null,!1);return}const P=k.every(I=>I.value),Y=k.every(I=>I.validity.valid);if(P&&Y){const I=Number(D.year||new Date().getFullYear()),K=Number(D.month||1)-1,ie=Number(D.day||1),ge=new Date;ge.setFullYear(I,K,ie),ge.setHours(0,0,0,0);const $e=J(ge);m($e,!1);return}y&&y()}function ve(j){const{name:k,value:D}=j.target;switch(k){case"year":A(D);break;case"month":W(D);break;case"day":Q(D);break}Z()}function de(j){const{value:k}=j.target;if(!m)return;const D=(()=>{if(!k)return null;const[w,P,Y]=k.split("-"),I=Number(w),K=Number(P)-1||0,ie=Number(Y)||1,ge=new Date;return ge.setFullYear(I,K,ie),ge.setHours(0,0,0,0),ge})();m(D,!1)}const we={className:t,disabled:a,maxDate:c||ya,minDate:d||rr,onChange:ve,onKeyDown:$,onKeyUp:oe,required:!!(g||R)};function B(j,k){if(j&&j.length>2)throw new Error(`Unsupported token: ${j}`);const D=j&&j.length===2;return v.jsxRuntimeExports.jsx(Ac,{...we,ariaLabel:r,autoFocus:k===0&&e,inputRef:ne,month:U,placeholder:n,showLeadingZeros:D||E,value:te,year:S},"day")}function ue(j,k){if(j&&j.length>4)throw new Error(`Unsupported token: ${j}`);if(j.length>2)return v.jsxRuntimeExports.jsx(Vc,{...we,ariaLabel:p,autoFocus:k===0&&e,inputRef:ae,locale:s,placeholder:f,short:j.length===3,value:U,year:S},"month");const D=j&&j.length===2;return v.jsxRuntimeExports.jsx(Ic,{...we,ariaLabel:p,autoFocus:k===0&&e,inputRef:T,placeholder:f,showLeadingZeros:D||E,value:U,year:S},"month")}function le(j,k){return v.jsxRuntimeExports.jsx(Yc,{...we,ariaLabel:C,autoFocus:k===0&&e,inputRef:re,placeholder:x,value:S,valueType:L},"year")}function me(){return Xc(ce,{d:B,M:ue,y:le},typeof o<"u")}function xe(){return v.jsxRuntimeExports.jsx(Wc,{ariaLabel:h,disabled:a,maxDate:c||ya,minDate:d||rr,name:l,onChange:de,required:g,value:se,valueType:L},"date")}return v.jsxRuntimeExports.jsxs("div",{className:t,onClick:G,children:[xe(),me()]})}const Ce="react-date-picker",Jc=["mousedown","focusin","touchstart"],_o={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},Qc=v.jsxRuntimeExports.jsxs("svg",{..._o,"aria-hidden":"true",className:`${Ce}__calendar-button__icon ${Ce}__button__icon`,children:[v.jsxRuntimeExports.jsx("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),v.jsxRuntimeExports.jsx("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),v.jsxRuntimeExports.jsx("line",{x1:"13",x2:"13",y1:"0",y2:"4"})]}),eu=v.jsxRuntimeExports.jsxs("svg",{..._o,"aria-hidden":"true",className:`${Ce}__clear-button__icon ${Ce}__button__icon`,children:[v.jsxRuntimeExports.jsx("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),v.jsxRuntimeExports.jsx("line",{x1:"15",x2:"4",y1:"4",y2:"15"})]});function tu(e){const{autoFocus:t,calendarAriaLabel:r,calendarIcon:n=Qc,className:a,clearAriaLabel:o,clearIcon:i=eu,closeCalendar:s=!0,"data-testid":c,dayAriaLabel:u,dayPlaceholder:d,disableCalendar:p,disabled:f,format:l,id:h,isOpen:m=null,locale:y,maxDate:g,maxDetail:_="month",minDate:E,monthAriaLabel:O,monthPlaceholder:C,name:x="date",nativeInputAriaLabel:S,onCalendarClose:A,onCalendarOpen:U,onChange:W,onFocus:te,onInvalidChange:Q,openCalendarOnFocus:se=!0,required:H,returnValue:re="start",shouldCloseCalendar:T,shouldOpenCalendar:ae,showLeadingZeros:ne,value:R,yearAriaLabel:M,yearPlaceholder:F,...L}=e,[N,J]=b.useState(m),ce=b.useRef(null),z=b.useRef(null);b.useEffect(()=>{J(m)},[m]);function G({reason:k}){ae&&!ae({reason:k})||(J(!0),U&&U())}const $=b.useCallback(({reason:k})=>{T&&!T({reason:k})||(J(!1),A&&A())},[A,T]);function oe(){N?$({reason:"buttonClick"}):G({reason:"buttonClick"})}function Z(k,D=s){D&&$({reason:"select"}),W&&W(k)}function ve(k){te&&te(k),!(f||N||!se||k.target.dataset.select==="true")&&G({reason:"focus"})}const de=b.useCallback(k=>{k.key==="Escape"&&$({reason:"escape"})},[$]);function we(){Z(null)}function B(k){k.stopPropagation()}const ue=b.useCallback(k=>{const{current:D}=ce,{current:w}=z,P="composedPath"in k?k.composedPath()[0]:k.target;P&&D&&!D.contains(P)&&(!w||!w.contains(P))&&$({reason:"outsideAction"})},[$]),le=b.useCallback((k=N)=>{for(const D of Jc)k?document.addEventListener(D,ue):document.removeEventListener(D,ue);k?document.addEventListener("keydown",de):document.removeEventListener("keydown",de)},[N,ue,de]);b.useEffect(()=>(le(),()=>{le(!1)}),[le]);function me(){const[k]=Array.isArray(R)?R:[R],D={dayAriaLabel:u,monthAriaLabel:O,nativeInputAriaLabel:S,yearAriaLabel:M},w={dayPlaceholder:d,monthPlaceholder:C,yearPlaceholder:F};return v.jsxRuntimeExports.jsxs("div",{className:`${Ce}__wrapper`,children:[v.jsxRuntimeExports.jsx(rn,{...D,...w,autoFocus:t,className:`${Ce}__inputGroup`,disabled:f,format:l,isCalendarOpen:N,locale:y,maxDate:g,maxDetail:_,minDate:E,name:x,onChange:Z,onInvalidChange:Q,required:H,returnValue:re,showLeadingZeros:ne,value:k}),i!==null&&v.jsxRuntimeExports.jsx("button",{"aria-label":o,className:`${Ce}__clear-button ${Ce}__button`,disabled:f,onClick:we,onFocus:B,type:"button",children:typeof i=="function"?b.createElement(i):i}),n!==null&&!p&&v.jsxRuntimeExports.jsx("button",{"aria-expanded":N||!1,"aria-label":r,className:`${Ce}__calendar-button ${Ce}__button`,disabled:f,onClick:oe,onFocus:B,type:"button",children:typeof n=="function"?b.createElement(n):n})]})}function xe(){if(N===null||p)return null;const{calendarProps:k,portalContainer:D,value:w}=e,P=`${Ce}__calendar`,Y=De.clsx(P,`${P}--${N?"open":"closed"}`),I=v.jsxRuntimeExports.jsx(jn,{locale:y,maxDate:g,maxDetail:_,minDate:E,onChange:K=>Z(K),value:w,...k});return D?fn.createPortal(v.jsxRuntimeExports.jsx("div",{ref:z,className:Y,children:I}),D):v.jsxRuntimeExports.jsx(vo,{children:v.jsxRuntimeExports.jsx("div",{ref:K=>{K&&!N&&K.removeAttribute("style")},className:Y,children:I})})}const j=b.useMemo(()=>fo(L),[L]);return v.jsxRuntimeExports.jsxs("div",{className:De.clsx(Ce,`${Ce}--${N?"open":"closed"}`,`${Ce}--${f?"disabled":"enabled"}`,a),"data-testid":c,id:h,...j,onFocus:ve,ref:ce,children:[me(),xe()]})}const Oe="react-daterange-picker",ru=["mousedown","focusin","touchstart"],xo={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},nu=v.jsxRuntimeExports.jsxs("svg",{...xo,"aria-hidden":"true",className:`${Oe}__calendar-button__icon ${Oe}__button__icon`,children:[v.jsxRuntimeExports.jsx("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),v.jsxRuntimeExports.jsx("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),v.jsxRuntimeExports.jsx("line",{x1:"13",x2:"13",y1:"0",y2:"4"})]}),au=v.jsxRuntimeExports.jsxs("svg",{...xo,"aria-hidden":"true",className:`${Oe}__clear-button__icon ${Oe}__button__icon`,children:[v.jsxRuntimeExports.jsx("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),v.jsxRuntimeExports.jsx("line",{x1:"15",x2:"4",y1:"4",y2:"15"})]});function ou(e){const{autoFocus:t,calendarAriaLabel:r,calendarIcon:n=nu,className:a,clearAriaLabel:o,clearIcon:i=au,closeCalendar:s=!0,"data-testid":c,dayAriaLabel:u,dayPlaceholder:d,disableCalendar:p,disabled:f,format:l,id:h,isOpen:m=null,locale:y,maxDate:g,maxDetail:_="month",minDate:E,monthAriaLabel:O,monthPlaceholder:C,name:x="daterange",nativeInputAriaLabel:S,onCalendarClose:A,onCalendarOpen:U,onChange:W,onFocus:te,onInvalidChange:Q,openCalendarOnFocus:se=!0,rangeDivider:H="–",required:re,shouldCloseCalendar:T,shouldOpenCalendar:ae,showLeadingZeros:ne,value:R,yearAriaLabel:M,yearPlaceholder:F,...L}=e,[N,J]=b.useState(m),ce=b.useRef(null),z=b.useRef(null);b.useEffect(()=>{J(m)},[m]);function G({reason:w}){ae&&!ae({reason:w})||(J(!0),U&&U())}const $=b.useCallback(({reason:w})=>{T&&!T({reason:w})||(J(!1),A&&A())},[A,T]);function oe(){N?$({reason:"buttonClick"}):G({reason:"buttonClick"})}function Z(w,P=s){P&&$({reason:"select"}),W&&W(w)}function ve(w,P){const[Y]=Array.isArray(w)?w:[w],[,I]=Array.isArray(R)?R:[R],K=I?new Date(I):null;Z([Y,K],P)}function de(w,P){const[,Y]=Array.isArray(w)?w:[null,w],[I]=Array.isArray(R)?R:[R],K=I?new Date(I):null;Z([K,Y],P)}function we(w){te&&te(w),!(f||N||!se||w.target.dataset.select==="true")&&G({reason:"focus"})}const B=b.useCallback(w=>{w.key==="Escape"&&$({reason:"escape"})},[$]);function ue(){Z(null)}function le(w){w.stopPropagation()}const me=b.useCallback(w=>{const{current:P}=ce,{current:Y}=z,I="composedPath"in w?w.composedPath()[0]:w.target;I&&P&&!P.contains(I)&&(!Y||!Y.contains(I))&&$({reason:"outsideAction"})},[$]),xe=b.useCallback((w=N)=>{for(const P of ru)w?document.addEventListener(P,me):document.removeEventListener(P,me);w?document.addEventListener("keydown",B):document.removeEventListener("keydown",B)},[N,me,B]);b.useEffect(()=>(xe(),()=>{xe(!1)}),[xe,N]);function j(){const[w,P]=Array.isArray(R)?R:[R],K={...{dayAriaLabel:u,monthAriaLabel:O,nativeInputAriaLabel:S,yearAriaLabel:M},...{dayPlaceholder:d,monthPlaceholder:C,yearPlaceholder:F},className:`${Oe}__inputGroup`,disabled:f,format:l,isCalendarOpen:N,locale:y,maxDate:g,maxDetail:_,minDate:E,onInvalidChange:Q,required:re,showLeadingZeros:ne};return v.jsxRuntimeExports.jsxs("div",{className:`${Oe}__wrapper`,children:[v.jsxRuntimeExports.jsx(rn,{...K,autoFocus:t,name:`${x}_from`,onChange:ve,returnValue:"start",value:w}),v.jsxRuntimeExports.jsx("span",{className:`${Oe}__range-divider`,children:H}),v.jsxRuntimeExports.jsx(rn,{...K,name:`${x}_to`,onChange:de,returnValue:"end",value:P}),i!==null&&v.jsxRuntimeExports.jsx("button",{"aria-label":o,className:`${Oe}__clear-button ${Oe}__button`,disabled:f,onClick:ue,onFocus:le,type:"button",children:typeof i=="function"?b.createElement(i):i}),n!==null&&!p&&v.jsxRuntimeExports.jsx("button",{"aria-expanded":N||!1,"aria-label":r,className:`${Oe}__calendar-button ${Oe}__button`,disabled:f,onClick:oe,onFocus:le,type:"button",children:typeof n=="function"?b.createElement(n):n})]})}function k(){if(N===null||p)return null;const{calendarProps:w,portalContainer:P,value:Y}=e,I=`${Oe}__calendar`,K=De.clsx(I,`${I}--${N?"open":"closed"}`),ie=v.jsxRuntimeExports.jsx(jn,{locale:y,maxDate:g,maxDetail:_,minDate:E,onChange:ge=>Z(ge),selectRange:!0,value:Y,...w});return P?fn.createPortal(v.jsxRuntimeExports.jsx("div",{ref:z,className:K,children:ie}),P):v.jsxRuntimeExports.jsx(vo,{children:v.jsxRuntimeExports.jsx("div",{ref:ge=>{ge&&!N&&ge.removeAttribute("style")},className:K,children:ie})})}const D=b.useMemo(()=>fo(L),[L]);return v.jsxRuntimeExports.jsxs("div",{className:De.clsx(Oe,`${Oe}--${N?"open":"closed"}`,`${Oe}--${f?"disabled":"enabled"}`,a),"data-testid":c,id:h,...D,onFocus:we,ref:ce,children:[j(),k()]})}function iu(e){return ir.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"},child:[]}]})(e)}function su(e){return ir.GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}const wa=({disabled:e,error:t})=>v.jsxRuntimeExports.jsx(iu,{className:De.clsx({"fill-gray-400":e,"fill-gray-500":!e&&!t,"fill-red-500":t&&!e})}),_a=({disabled:e,error:t,onClick:r})=>v.jsxRuntimeExports.jsx(su,{className:De.clsx("w-5 h-5",{"fill-gray-400":e,"fill-gray-500":!e&&!t,"fill-red-500":t&&!e}),onClick:n=>{n.stopPropagation(),r()}});var Pe=function(){return Pe=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Pe.apply(this,arguments)};function ut(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function cu(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var uu=/^((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|disableRemotePlayback|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)-.*))$/,lu=cu(function(e){return uu.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),fe="-ms-",Dt="-moz-",ee="-webkit-",Eo="comm",pr="rule",Dn="decl",du="@import",So="@keyframes",fu="@layer",Oo=Math.abs,Rn=String.fromCharCode,nn=Object.assign;function pu(e,t){return _e(e,0)^45?(((t<<2^_e(e,0))<<2^_e(e,1))<<2^_e(e,2))<<2^_e(e,3):0}function jo(e){return e.trim()}function Ve(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function Kt(e,t,r){return e.indexOf(t,r)}function _e(e,t){return e.charCodeAt(t)|0}function lt(e,t,r){return e.slice(t,r)}function Le(e){return e.length}function ko(e){return e.length}function Ct(e,t){return t.push(e),e}function vu(e,t){return e.map(t).join("")}function xa(e,t){return e.filter(function(r){return!Ve(r,t)})}var vr=1,dt=1,Co=0,Re=0,be=0,yt="";function hr(e,t,r,n,a,o,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:vr,column:dt,length:i,return:"",siblings:s}}function Ge(e,t){return nn(hr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function it(e){for(;e.root;)e=Ge(e.root,{children:[e]});Ct(e,e.siblings)}function hu(){return be}function mu(){return be=Re>0?_e(yt,--Re):0,dt--,be===10&&(dt=1,vr--),be}function Ie(){return be=Re<Co?_e(yt,Re++):0,dt++,be===10&&(dt=1,vr++),be}function tt(){return _e(yt,Re)}function Zt(){return Re}function mr(e,t){return lt(yt,e,t)}function an(e){switch(e){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 gu(e){return vr=dt=1,Co=Le(yt=e),Re=0,[]}function yu(e){return yt="",e}function Mr(e){return jo(mr(Re-1,on(e===91?e+2:e===40?e+1:e)))}function bu(e){for(;(be=tt())&&be<33;)Ie();return an(e)>2||an(be)>3?"":" "}function wu(e,t){for(;--t&&Ie()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return mr(e,Zt()+(t<6&&tt()==32&&Ie()==32))}function on(e){for(;Ie();)switch(be){case e:return Re;case 34:case 39:e!==34&&e!==39&&on(be);break;case 40:e===41&&on(e);break;case 92:Ie();break}return Re}function _u(e,t){for(;Ie()&&e+be!==57;)if(e+be===84&&tt()===47)break;return"/*"+mr(t,Re-1)+"*"+Rn(e===47?e:Ie())}function xu(e){for(;!an(tt());)Ie();return mr(e,Re)}function Eu(e){return yu(Xt("",null,null,null,[""],e=gu(e),0,[0],e))}function Xt(e,t,r,n,a,o,i,s,c){for(var u=0,d=0,p=i,f=0,l=0,h=0,m=1,y=1,g=1,_=0,E="",O=a,C=o,x=n,S=E;y;)switch(h=_,_=Ie()){case 40:if(h!=108&&_e(S,p-1)==58){Kt(S+=V(Mr(_),"&","&\f"),"&\f",Oo(u?s[u-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:S+=Mr(_);break;case 9:case 10:case 13:case 32:S+=bu(h);break;case 92:S+=wu(Zt()-1,7);continue;case 47:switch(tt()){case 42:case 47:Ct(Su(_u(Ie(),Zt()),t,r,c),c);break;default:S+="/"}break;case 123*m:s[u++]=Le(S)*g;case 125*m:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:g==-1&&(S=V(S,/\f/g,"")),l>0&&Le(S)-p&&Ct(l>32?Sa(S+";",n,r,p-1,c):Sa(V(S," ","")+";",n,r,p-2,c),c);break;case 59:S+=";";default:if(Ct(x=Ea(S,t,r,u,d,a,s,E,O=[],C=[],p,o),o),_===123)if(d===0)Xt(S,t,x,x,O,o,p,s,C);else switch(f===99&&_e(S,3)===110?100:f){case 100:case 108:case 109:case 115:Xt(e,x,x,n&&Ct(Ea(e,x,x,0,0,a,s,E,a,O=[],p,C),C),a,C,p,s,n?O:C);break;default:Xt(S,x,x,x,[""],C,0,s,C)}}u=d=l=0,m=g=1,E=S="",p=i;break;case 58:p=1+Le(S),l=h;default:if(m<1){if(_==123)--m;else if(_==125&&m++==0&&mu()==125)continue}switch(S+=Rn(_),_*m){case 38:g=d>0?1:(S+="\f",-1);break;case 44:s[u++]=(Le(S)-1)*g,g=1;break;case 64:tt()===45&&(S+=Mr(Ie())),f=tt(),d=p=Le(E=S+=xu(Zt())),_++;break;case 45:h===45&&Le(S)==2&&(m=0)}}return o}function Ea(e,t,r,n,a,o,i,s,c,u,d,p){for(var f=a-1,l=a===0?o:[""],h=ko(l),m=0,y=0,g=0;m<n;++m)for(var _=0,E=lt(e,f+1,f=Oo(y=i[m])),O=e;_<h;++_)(O=jo(y>0?l[_]+" "+E:V(E,/&\f/g,l[_])))&&(c[g++]=O);return hr(e,t,r,a===0?pr:s,c,u,d,p)}function Su(e,t,r,n){return hr(e,t,r,Eo,Rn(hu()),lt(e,2,-2),0,n)}function Sa(e,t,r,n,a){return hr(e,t,r,Dn,lt(e,0,n),lt(e,n+1,-1),n,a)}function Po(e,t,r){switch(pu(e,t)){case 5103:return ee+"print-"+e+e;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 ee+e+e;case 4789:return Dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Dt+e+fe+e+e;case 5936:switch(_e(e,t+11)){case 114:return ee+e+fe+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+fe+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+fe+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ee+e+fe+e+e;case 6165:return ee+e+fe+"flex-"+e+e;case 5187:return ee+e+V(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+fe+"flex-$1$2")+e;case 5443:return ee+e+fe+"flex-item-"+V(e,/flex-|-self/g,"")+(Ve(e,/flex-|baseline/)?"":fe+"grid-row-"+V(e,/flex-|-self/g,""))+e;case 4675:return ee+e+fe+"flex-line-pack"+V(e,/align-content|flex-|-self/g,"")+e;case 5548:return ee+e+fe+V(e,"shrink","negative")+e;case 5292:return ee+e+fe+V(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+V(e,"-grow","")+ee+e+fe+V(e,"grow","positive")+e;case 4554:return ee+V(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4200:if(!Ve(e,/flex-|baseline/))return fe+"grid-column-align"+lt(e,t)+e;break;case 2592:case 3360:return fe+V(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,a){return t=a,Ve(n.props,/grid-\w+-end/)})?~Kt(e+(r=r[t].value),"span",0)?e:fe+V(e,"-start","")+e+fe+"grid-row-span:"+(~Kt(r,"span",0)?Ve(r,/\d+/):+Ve(r,/\d+/)-+Ve(e,/\d+/))+";":fe+V(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Ve(n.props,/grid-\w+-start/)})?e:fe+V(V(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,ee+"$1$2")+e;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(Le(e)-1-t>6)switch(_e(e,t+1)){case 109:if(_e(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Dt+(_e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kt(e,"stretch",0)?Po(V(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return V(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,a,o,i,s,c,u){return fe+a+":"+o+u+(i?fe+a+"-span:"+(s?c:+c-+o)+u:"")+e});case 4949:if(_e(e,t+6)===121)return V(e,":",":"+ee)+e;break;case 6444:switch(_e(e,_e(e,14)===45?18:11)){case 120:return V(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ee+(_e(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+fe+"$2box$3")+e;case 100:return V(e,":",":"+fe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return V(e,"scroll-","scroll-snap-")+e}return e}function nr(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ou(e,t,r,n){switch(e.type){case fu:if(e.children.length)break;case du:case Dn:return e.return=e.return||e.value;case Eo:return"";case So:return e.return=e.value+"{"+nr(e.children,n)+"}";case pr:if(!Le(e.value=e.props.join(",")))return""}return Le(r=nr(e.children,n))?e.return=e.value+"{"+r+"}":""}function ju(e){var t=ko(e);return function(r,n,a,o){for(var i="",s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}function ku(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cu(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Dn:e.return=Po(e.value,e.length,r);return;case So:return nr([Ge(e,{value:V(e.value,"@","@"+ee)})],n);case pr:if(e.length)return vu(r=e.props,function(a){switch(Ve(a,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":it(Ge(e,{props:[V(a,/:(read-\w+)/,":"+Dt+"$1")]})),it(Ge(e,{props:[a]})),nn(e,{props:xa(r,n)});break;case"::placeholder":it(Ge(e,{props:[V(a,/:(plac\w+)/,":"+ee+"input-$1")]})),it(Ge(e,{props:[V(a,/:(plac\w+)/,":"+Dt+"$1")]})),it(Ge(e,{props:[V(a,/:(plac\w+)/,fe+"input-$1")]})),it(Ge(e,{props:[a]})),nn(e,{props:xa(r,n)});break}return""})}}var Pu={animationIterationCount:1,aspectRatio: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},nt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Do="active",Ro="data-styled-version",gr="6.1.19",Nn=`/*!sc*/
3
- `,ar=typeof window<"u"&&typeof document<"u",Du=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Oa=/invalid hook call/i,Gt=new Set,Ru=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
4
- `)+`You may see this warning because you've called styled inside another component.
5
- To resolve this only create new StyledComponents outside of any render method and function component.
6
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
7
- `,a=console.error;try{var o=!0;console.error=function(i){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];Oa.test(i)?(o=!1,Gt.delete(n)):a.apply(void 0,ut([i],s,!1))},b.useRef(),o&&!Gt.has(n)&&Gt.add(n)}catch(i){Oa.test(i.message)&&Gt.delete(n)}finally{console.error=a}}},yr=Object.freeze([]),ft=Object.freeze({});function Nu(e,t,r){return r===void 0&&(r=ft),e.theme!==r.theme&&e.theme||t||r.theme}var sn=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Au=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Iu=/(^-|-$)/g;function ja(e){return e.replace(Au,"-").replace(Iu,"")}var Tu=/(a)(d)/gi,Bt=52,ka=function(e){return String.fromCharCode(e+(e>25?39:97))};function cn(e){var t,r="";for(t=Math.abs(e);t>Bt;t=t/Bt|0)r=ka(t%Bt)+r;return(ka(t%Bt)+r).replace(Tu,"$1-$2")}var Lr,No=5381,Je=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ao=function(e){return Je(No,e)};function Mu(e){return cn(Ao(e)>>>0)}function Lu(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function $r(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Io=typeof Symbol=="function"&&Symbol.for,To=Io?Symbol.for("react.memo"):60115,$u=Io?Symbol.for("react.forward_ref"):60112,Fu={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vu={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Mo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wu=((Lr={})[$u]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lr[To]=Mo,Lr);function Ca(e){return("type"in(t=e)&&t.type.$$typeof)===To?Mo:"$$typeof"in e?Wu[e.$$typeof]:Fu;var t}var Yu=Object.defineProperty,zu=Object.getOwnPropertyNames,Pa=Object.getOwnPropertySymbols,Gu=Object.getOwnPropertyDescriptor,Bu=Object.getPrototypeOf,Da=Object.prototype;function Lo(e,t,r){if(typeof t!="string"){if(Da){var n=Bu(t);n&&n!==Da&&Lo(e,n,r)}var a=zu(t);Pa&&(a=a.concat(Pa(t)));for(var o=Ca(e),i=Ca(t),s=0;s<a.length;++s){var c=a[s];if(!(c in Vu||r&&r[c]||i&&c in i||o&&c in o)){var u=Gu(t,c);try{Yu(e,c,u)}catch{}}}}return e}function pt(e){return typeof e=="function"}function An(e){return typeof e=="object"&&"styledComponentId"in e}function Qe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ra(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function vt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function un(e,t,r){if(r===void 0&&(r=!1),!r&&!vt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=un(e[n],t[n]);else if(vt(t))for(var n in t)e[n]=un(e[n],t[n]);return e}function In(e,t){Object.defineProperty(e,"toString",{value:t})}var qu=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
8
-
9
- `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
10
-
11
- - Are you trying to reuse it across renders?
12
- - Are you accidentally calling collectStyles twice?
13
-
14
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
15
-
16
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
17
-
18
- - Does this error occur on the client and is your target falsy?
19
- - Does this error occur on the server and is the sheet falsy?
20
-
21
- `,5:`The clone method cannot be used on the client!
22
-
23
- - Are you running in a client-like environment on the server?
24
- - Are you trying to run SSR on the client?
25
-
26
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
27
-
28
- - Are you using a custom target that isn't mounted?
29
- - Does your document not have a valid head element?
30
- - Have you accidentally removed a style tag manually?
31
-
32
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
33
-
34
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
35
-
36
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
37
-
38
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
39
-
40
- `,14:`ThemeProvider: "theme" prop is required.
41
-
42
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
43
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
44
- as for instance in your render method then you may be running into this limitation.
45
-
46
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
47
- Has styled-components' style tag been unmounted or altered by another script?
48
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Uu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],a=1,o=e.length;a<o;a+=1)n.push(e[a]);return n.forEach(function(i){r=r.replace(/%[a-z]/,i)}),r}function bt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Uu.apply(void 0,ut([qu[e]],t,!1)).trim())}var Hu=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,a=n.length,o=a;t>=o;)if((o<<=1)<0)throw bt(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=a;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(t+1),c=(i=0,r.length);i<c;i++)this.tag.insertRule(s,r[i])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),a=n+r;this.groupSizes[t]=0;for(var o=n;o<a;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],a=this.indexOfGroup(t),o=a+n,i=a;i<o;i++)r+="".concat(this.tag.getRule(i)).concat(Nn);return r},e})(),Ku=1<<30,Jt=new Map,or=new Map,Qt=1,qt=function(e){if(Jt.has(e))return Jt.get(e);for(;or.has(Qt);)Qt++;var t=Qt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Ku))throw bt(16,"".concat(t));return Jt.set(e,t),or.set(t,e),t},Zu=function(e,t){Qt=t+1,Jt.set(e,t),or.set(t,e)},Xu="style[".concat(nt,"][").concat(Ro,'="').concat(gr,'"]'),Ju=new RegExp("^".concat(nt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Qu=function(e,t,r){for(var n,a=r.split(","),o=0,i=a.length;o<i;o++)(n=a[o])&&e.registerName(t,n)},el=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Nn),a=[],o=0,i=n.length;o<i;o++){var s=n[o].trim();if(s){var c=s.match(Ju);if(c){var u=0|parseInt(c[1],10),d=c[2];u!==0&&(Zu(d,u),Qu(e,d,c[3]),e.getTag().insertRules(u,a)),a.length=0}else a.push(s)}}},Na=function(e){for(var t=document.querySelectorAll(Xu),r=0,n=t.length;r<n;r++){var a=t[r];a&&a.getAttribute(nt)!==Do&&(el(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function tl(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var $o=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=(function(s){var c=Array.from(s.querySelectorAll("style[".concat(nt,"]")));return c[c.length-1]})(r),o=a!==void 0?a.nextSibling:null;n.setAttribute(nt,Do),n.setAttribute(Ro,gr);var i=tl();return i&&n.setAttribute("nonce",i),r.insertBefore(n,o),n},rl=(function(){function e(t){this.element=$o(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,a=0,o=n.length;a<o;a++){var i=n[a];if(i.ownerNode===r)return i}throw bt(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),nl=(function(){function e(t){this.element=$o(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),al=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Aa=ar,ol={isServer:!ar,useCSSOMInjection:!Du},Fo=(function(){function e(t,r,n){t===void 0&&(t=ft),r===void 0&&(r={});var a=this;this.options=Pe(Pe({},ol),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&ar&&Aa&&(Aa=!1,Na(this)),In(this,function(){return(function(o){for(var i=o.getTag(),s=i.length,c="",u=function(p){var f=(function(g){return or.get(g)})(p);if(f===void 0)return"continue";var l=o.names.get(f),h=i.getGroup(p);if(l===void 0||!l.size||h.length===0)return"continue";var m="".concat(nt,".g").concat(p,'[id="').concat(f,'"]'),y="";l!==void 0&&l.forEach(function(g){g.length>0&&(y+="".concat(g,","))}),c+="".concat(h).concat(m,'{content:"').concat(y,'"}').concat(Nn)},d=0;d<s;d++)u(d);return c})(a)})}return e.registerId=function(t){return qt(t)},e.prototype.rehydrate=function(){!this.server&&ar&&Na(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(Pe(Pe({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,a=r.target;return r.isServer?new al(a):n?new rl(a):new nl(a)})(this.options),new Hu(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(qt(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(qt(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(qt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),il=/&/g,sl=/^\s*\/\/.*$/gm;function Vo(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Vo(r.children,t)),r})}function cl(e){var t,r,n,a=ft,o=a.options,i=o===void 0?ft:o,s=a.plugins,c=s===void 0?yr:s,u=function(f,l,h){return h.startsWith(r)&&h.endsWith(r)&&h.replaceAll(r,"").length>0?".".concat(t):f},d=c.slice();d.push(function(f){f.type===pr&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(il,r).replace(n,u))}),i.prefix&&d.push(Cu),d.push(Ou);var p=function(f,l,h,m){l===void 0&&(l=""),h===void 0&&(h=""),m===void 0&&(m="&"),t=m,r=l,n=new RegExp("\\".concat(r,"\\b"),"g");var y=f.replace(sl,""),g=Eu(h||l?"".concat(h," ").concat(l," { ").concat(y," }"):y);i.namespace&&(g=Vo(g,i.namespace));var _=[];return nr(g,ju(d.concat(ku(function(E){return _.push(E)})))),_};return p.hash=c.length?c.reduce(function(f,l){return l.name||bt(15),Je(f,l.name)},No).toString():"",p}var ul=new Fo,ln=cl(),Wo=b.createContext({shouldForwardProp:void 0,styleSheet:ul,stylis:ln});Wo.Consumer;b.createContext(void 0);function Ia(){return b.useContext(Wo)}var Ta=(function(){function e(t,r){var n=this;this.inject=function(a,o){o===void 0&&(o=ln);var i=n.name+o.hash;a.hasNameForId(n.id,i)||a.insertRules(n.id,i,o(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,In(this,function(){throw bt(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ln),this.name+t.hash},e})(),ll=function(e){return e>="A"&&e<="Z"};function Ma(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;ll(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Yo=function(e){return e==null||e===!1||e===""},zo=function(e){var t,r,n=[];for(var a in e){var o=e[a];e.hasOwnProperty(a)&&!Yo(o)&&(Array.isArray(o)&&o.isCss||pt(o)?n.push("".concat(Ma(a),":"),o,";"):vt(o)?n.push.apply(n,ut(ut(["".concat(a," {")],zo(o),!1),["}"],!1)):n.push("".concat(Ma(a),": ").concat((t=a,(r=o)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Pu||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function rt(e,t,r,n){if(Yo(e))return[];if(An(e))return[".".concat(e.styledComponentId)];if(pt(e)){if(!pt(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var a=e(t);return process.env.NODE_ENV==="production"||typeof a!="object"||Array.isArray(a)||a instanceof Ta||vt(a),rt(a,t,r,n)}var o;return e instanceof Ta?r?(e.inject(r,n),[e.getName(n)]):[e]:vt(e)?zo(e):Array.isArray(e)?Array.prototype.concat.apply(yr,e.map(function(i){return rt(i,t,r,n)})):[e.toString()]}function dl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(pt(r)&&!An(r))return!1}return!0}var fl=Ao(gr),pl=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&dl(t),this.componentId=r,this.baseHash=Je(fl,r),this.baseStyle=n,Fo.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var a=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))a=Qe(a,this.staticRulesId);else{var o=Ra(rt(this.rules,t,r,n)),i=cn(Je(this.baseHash,o)>>>0);if(!r.hasNameForId(this.componentId,i)){var s=n(o,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,s)}a=Qe(a,i),this.staticRulesId=i}else{for(var c=Je(this.baseHash,n.hash),u="",d=0;d<this.rules.length;d++){var p=this.rules[d];if(typeof p=="string")u+=p,process.env.NODE_ENV!=="production"&&(c=Je(c,p));else if(p){var f=Ra(rt(p,t,r,n));c=Je(c,f+d),u+=f}}if(u){var l=cn(c>>>0);r.hasNameForId(this.componentId,l)||r.insertRules(this.componentId,l,n(u,".".concat(l),void 0,this.componentId)),a=Qe(a,l)}}return a},e})(),Go=b.createContext(void 0);Go.Consumer;var Fr={},La=new Set;function vl(e,t,r){var n=An(e),a=e,o=!$r(e),i=t.attrs,s=i===void 0?yr:i,c=t.componentId,u=c===void 0?(function(O,C){var x=typeof O!="string"?"sc":ja(O);Fr[x]=(Fr[x]||0)+1;var S="".concat(x,"-").concat(Mu(gr+x+Fr[x]));return C?"".concat(C,"-").concat(S):S})(t.displayName,t.parentComponentId):c,d=t.displayName,p=d===void 0?(function(O){return $r(O)?"styled.".concat(O):"Styled(".concat(Lu(O),")")})(e):d,f=t.displayName&&t.componentId?"".concat(ja(t.displayName),"-").concat(t.componentId):t.componentId||u,l=n&&a.attrs?a.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(n&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;h=function(O,C){return m(O,C)&&y(O,C)}}else h=m}var g=new pl(r,f,n?a.componentStyle:void 0);function _(O,C){return(function(x,S,A){var U=x.attrs,W=x.componentStyle,te=x.defaultProps,Q=x.foldedComponentIds,se=x.styledComponentId,H=x.target,re=b.useContext(Go),T=Ia(),ae=x.shouldForwardProp||T.shouldForwardProp;process.env.NODE_ENV!=="production"&&b.useDebugValue(se);var ne=Nu(S,re,te)||ft,R=(function(ce,z,G){for(var $,oe=Pe(Pe({},z),{className:void 0,theme:G}),Z=0;Z<ce.length;Z+=1){var ve=pt($=ce[Z])?$(oe):$;for(var de in ve)oe[de]=de==="className"?Qe(oe[de],ve[de]):de==="style"?Pe(Pe({},oe[de]),ve[de]):ve[de]}return z.className&&(oe.className=Qe(oe.className,z.className)),oe})(U,S,ne),M=R.as||H,F={};for(var L in R)R[L]===void 0||L[0]==="$"||L==="as"||L==="theme"&&R.theme===ne||(L==="forwardedAs"?F.as=R.forwardedAs:ae&&!ae(L,M)||(F[L]=R[L],ae||process.env.NODE_ENV!=="development"||lu(L)||La.has(L)||!sn.has(M)||La.add(L)));var N=(function(ce,z){var G=Ia(),$=ce.generateAndInjectStyles(z,G.styleSheet,G.stylis);return process.env.NODE_ENV!=="production"&&b.useDebugValue($),$})(W,R);process.env.NODE_ENV!=="production"&&x.warnTooManyClasses&&x.warnTooManyClasses(N);var J=Qe(Q,se);return N&&(J+=" "+N),R.className&&(J+=" "+R.className),F[$r(M)&&!sn.has(M)?"class":"className"]=J,A&&(F.ref=A),b.createElement(M,F)})(E,O,C)}_.displayName=p;var E=b.forwardRef(_);return E.attrs=l,E.componentStyle=g,E.displayName=p,E.shouldForwardProp=h,E.foldedComponentIds=n?Qe(a.foldedComponentIds,a.styledComponentId):"",E.styledComponentId=f,E.target=n?a.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(O){this._foldedDefaultProps=n?(function(C){for(var x=[],S=1;S<arguments.length;S++)x[S-1]=arguments[S];for(var A=0,U=x;A<U.length;A++)un(C,U[A],!0);return C})({},a.defaultProps,O):O}}),process.env.NODE_ENV!=="production"&&(Ru(p,f),E.warnTooManyClasses=(function(O,C){var x={},S=!1;return function(A){if(!S&&(x[A]=!0,Object.keys(x).length>=200)){var U=C?' with the id of "'.concat(C,'"'):"";S=!0,x={}}}})(p,f)),In(E,function(){return".".concat(E.styledComponentId)}),o&&Lo(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function $a(e,t){for(var r=[e[0]],n=0,a=t.length;n<a;n+=1)r.push(t[n],e[n+1]);return r}var Fa=function(e){return Object.assign(e,{isCss:!0})};function Fe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(pt(e)||vt(e))return Fa(rt($a(yr,ut([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?rt(n):Fa(rt($a(n,t)))}function dn(e,t,r){if(r===void 0&&(r=ft),!t)throw bt(1,t);var n=function(a){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Fe.apply(void 0,ut([a],o,!1)))};return n.attrs=function(a){return dn(e,t,Pe(Pe({},r),{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},n.withConfig=function(a){return dn(e,t,Pe(Pe({},r),a))},n}var Bo=function(e){return dn(vl,e)},qo=Bo;sn.forEach(function(e){qo[e]=Bo(e)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product;var Ut="__sc-".concat(nt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ut]||(window[Ut]=0),window[Ut],window[Ut]+=1);const Va=qo.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../chunks/jsx-runtime-BjzqJBtL.js"),x=require("react"),Vt=require("react-dom"),rt=require("../chunks/iconBase-C4boY5mo.js"),je=require("../chunks/clsx-C11secjj.js"),d=require("../chunks/styled-components.browser.esm-DwaG9BxE.js"),gt=require("../chunks/bundle-mjs-eyqxolf6.js"),un=require("../chunks/label-error-01rbhr3C.js"),dn=require("../chunks/utils-BRdagWxe.js"),or=require("../chunks/button-CuSv0p75.js"),fn=require("../chunks/v4-CIWTflUD.js");var Te={},$e={},ir;function vn(){if(ir)return $e;ir=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.PopoverPortal=void 0;var e=x,t=Vt,n=function(r){var a=r.container,o=r.element,s=r.scoutElement,l=r.children;return(0,e.useLayoutEffect)(function(){return a.appendChild(o),a.appendChild(s),function(){a.removeChild(o),a.removeChild(s)}},[a,o,s]),(0,t.createPortal)(l,o)};return $e.PopoverPortal=n,$e}var Ye={},cr;function Ft(){return cr||(cr=1,(function(e){var t=Ye&&Ye.__assign||function(){return t=Object.assign||function(c){for(var i,f=1,h=arguments.length;f<h;f++){i=arguments[f];for(var v in i)Object.prototype.hasOwnProperty.call(i,v)&&(c[v]=i[v])}return c},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getNudgedPopoverRect=e.getNewPopoverRect=e.popoverRectForPosition=e.createContainer=e.rectsAreEqual=e.createRect=e.EMPTY_RECT=void 0,e.EMPTY_RECT={top:0,left:0,right:0,bottom:0,width:0,height:0};var n=function(c){var i=c.top,f=c.left,h=c.width,v=c.height;return{top:i,left:f,width:h,height:v,right:f+h,bottom:i+v}};e.createRect=n;var r=function(c,i){return c===i||c?.bottom===i?.bottom&&c?.height===i?.height&&c?.left===i?.left&&c?.right===i?.right&&c?.top===i?.top&&c?.width===i?.width};e.rectsAreEqual=r;var a=function(c){var i=c.containerStyle,f=c.containerClassName,h=window.document.createElement("div");return f&&(h.className=f),Object.assign(h.style,i),h};e.createContainer=a;var o=function(c,i,f,h,v){var m=i.left+i.width/2,y=i.top+i.height/2,p=f.width,b=f.height,_,O;switch(c){case"left":_=y-b/2,O=i.left-h-p,v==="start"&&(_=i.top),v==="end"&&(_=i.bottom-b);break;case"bottom":_=i.bottom+h,O=m-p/2,v==="start"&&(O=i.left),v==="end"&&(O=i.right-p);break;case"right":_=y-b/2,O=i.right+h,v==="start"&&(_=i.top),v==="end"&&(_=i.bottom-b);break;default:_=i.top-b-h,O=m-p/2,v==="start"&&(O=i.left),v==="end"&&(O=i.right-p);break}return(0,e.createRect)({left:O,top:_,width:p,height:b})};e.popoverRectForPosition=o;var s=function(c,i){var f=c.position,h=c.align,v=c.childRect,m=c.popoverRect,y=c.boundaryRect,p=c.padding,b=c.reposition,_=(0,e.popoverRectForPosition)(f,v,m,p,h),O=b&&(f==="top"&&_.top<y.top+i||f==="left"&&_.left<y.left+i||f==="right"&&_.right>y.right-i||f==="bottom"&&_.bottom>y.bottom-i);return{rect:_,boundaryViolation:O}};e.getNewPopoverRect=s;var l=function(c,i,f){var h=i.top+f,v=i.left+f,m=i.right-f,y=i.bottom-f,p=c.top<h?h:c.top;p=p+c.height>y?y-c.height:p;var b=c.left<v?v:c.left;return b=b+c.width>m?m-c.width:b,(0,e.createRect)(t(t({},c),{top:p,left:b}))};e.getNudgedPopoverRect=l})(Ye)),Ye}var Ve={},Fe={},lr;function mn(){if(lr)return Fe;lr=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.useElementRef=void 0;var e=x,t=Ft(),n=function(r){var a=r.containerClassName,o=r.containerStyle,s=(0,e.useRef)(),l=(0,e.useState)(function(){return(0,t.createContainer)({containerStyle:o,containerClassName:a})})[0];return(0,e.useLayoutEffect)(function(){l.className=a},[a,l]),(0,e.useLayoutEffect)(function(){Object.assign(l.style,o)},[o,l]),s.current=l,s};return Fe.useElementRef=n,Fe}var sr;function hn(){if(sr)return Ve;sr=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.usePopover=void 0;var e=x,t=Ft(),n=mn(),r={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"},o=function(s){var l=s.isOpen,c=s.childRef,i=s.positions,f=s.containerClassName,h=s.parentElement,v=s.transform,m=s.transformMode,y=s.align,p=s.padding,b=s.reposition,_=s.boundaryInset,O=s.boundaryElement,P=s.onPositionPopover,T=(0,n.useElementRef)({containerClassName:"react-tiny-popover-scout",containerStyle:a}),F=(0,n.useElementRef)({containerClassName:f!=null&&f.length>0&&f!=="react-tiny-popover-container"?"react-tiny-popover-container ".concat(f):"react-tiny-popover-container",containerStyle:r}),Y=(0,e.useCallback)(function(K){var V,Z,W=K===void 0?{}:K,ee=W.positionIndex,te=ee===void 0?0:ee,se=W.parentRect,U=se===void 0?h.getBoundingClientRect():se,ne=W.childRect,k=ne===void 0?(V=c?.current)===null||V===void 0?void 0:V.getBoundingClientRect():ne,oe=W.scoutRect,ie=oe===void 0?(Z=T?.current)===null||Z===void 0?void 0:Z.getBoundingClientRect():oe,M=W.popoverRect,L=M===void 0?F.current.getBoundingClientRect():M,J=W.boundaryRect,q=J===void 0?O===h?U:O.getBoundingClientRect():J;if(!(!k||!U||!l)){if(v&&m==="absolute"){var C=typeof v=="function"?v({childRect:k,popoverRect:L,parentRect:U,boundaryRect:q,padding:p,align:y,nudgedTop:0,nudgedLeft:0,boundaryInset:_,violations:t.EMPTY_RECT,hasViolations:!1}):v,re=C.top,le=C.left,B=Math.round(U.left+le-ie.left),G=Math.round(U.top+re-ie.top);F.current.style.transform="translate(".concat(B,"px, ").concat(G,"px)"),P({childRect:k,popoverRect:(0,t.createRect)({left:B,top:G,width:L.width,height:L.height}),parentRect:U,boundaryRect:q,padding:p,align:y,transform:{top:re,left:le},nudgedTop:0,nudgedLeft:0,boundaryInset:_,violations:t.EMPTY_RECT,hasViolations:!1});return}var I=te===i.length,ue=I?i[0]:i[te],H=(0,t.getNewPopoverRect)({childRect:k,popoverRect:L,boundaryRect:q,position:ue,align:y,padding:p,reposition:b},_),he=H.rect,ye=H.boundaryViolation;if(ye&&b&&!I){Y({positionIndex:te+1,childRect:k,popoverRect:L,parentRect:U,boundaryRect:q});return}var me=he.top,N=he.left,Q=he.width,X=he.height,de=b&&!I,pe=(0,t.getNudgedPopoverRect)(he,q,_),w=pe.left,j=pe.top,D=me,g=N;de&&(D=j,g=w),D=Math.round(D-ie.top),g=Math.round(g-ie.left),F.current.style.transform="translate(".concat(g,"px, ").concat(D,"px)");var E={top:q.top+_-D,left:q.left+_-g,right:g+Q-q.right+_,bottom:D+X-q.bottom+_},S={childRect:k,popoverRect:(0,t.createRect)({left:g,top:D,width:Q,height:X}),parentRect:U,boundaryRect:q,position:ue,align:y,padding:p,nudgedTop:j-me,nudgedLeft:w-N,boundaryInset:_,violations:{top:E.top<=0?0:E.top,left:E.left<=0?0:E.left,right:E.right<=0?0:E.right,bottom:E.bottom<=0?0:E.bottom},hasViolations:E.top>0||E.left>0||E.right>0||E.bottom>0};if(v){P(S);var R=typeof v=="function"?v(S):v,$=R.top,z=R.left;F.current.style.transform="translate(".concat(Math.round(g+(z??0)),"px, ").concat(Math.round(D+($??0)),"px)"),S.nudgedLeft+=z??0,S.nudgedTop+=$??0,S.transform={top:$,left:z}}P(S)}},[h,c,T,F,O,l,v,m,i,y,p,b,_,P]);return{positionPopover:Y,popoverRef:F,scoutRef:T}};return Ve.usePopover=o,Ve}var We={},ur;function pn(){if(ur)return We;ur=1,Object.defineProperty(We,"__esModule",{value:!0}),We.useMemoizedArray=void 0;var e=x,t=function(n){var r=(0,e.useRef)(n),a=(0,e.useMemo)(function(){if(r.current===n)return r.current;if(r.current.length!==n.length)return r.current=n,n;for(var o=0;o<n.length;o+=1)if(n[o]!==r.current[o])return r.current=n,n;return r.current},[n]);return a};return We.useMemoizedArray=t,We}var qe={},dr;function gn(){if(dr)return qe;dr=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.useHandlePrevValues=void 0;var e=x,t=function(n){var r=(0,e.useRef)(n.positions),a=(0,e.useRef)(n.reposition),o=(0,e.useRef)(n.transformMode),s=(0,e.useRef)(n.transform),l=(0,e.useRef)(n.boundaryElement),c=(0,e.useRef)(n.boundaryInset),i=(0,e.useCallback)(function(){r.current=n.positions,a.current=n.reposition,o.current=n.transformMode,s.current=n.transform,l.current=n.boundaryElement,c.current=n.boundaryInset},[n.boundaryElement,n.boundaryInset,n.positions,n.reposition,n.transform,n.transformMode]);return{prev:{positions:r.current,reposition:a.current,transformMode:o.current,transform:s.current,boundaryElement:l.current,boundaryInset:c.current},updatePrevValues:i}};return qe.useHandlePrevValues=t,qe}var Pe={},fr;function Ar(){if(fr)return Pe;fr=1;var e=Pe&&Pe.__assign||function(){return e=Object.assign||function(r){for(var a,o=1,s=arguments.length;o<s;o++){a=arguments[o];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(r[l]=a[l])}return r},e.apply(this,arguments)};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.useArrowContainer=void 0;var t=x,n=function(r){var a=r.childRect,o=r.popoverRect,s=r.position,l=r.arrowSize,c=r.arrowColor,i=(0,t.useMemo)(function(){return{padding:l}},[l]),f=(0,t.useMemo)(function(){return e({position:"absolute"},(function(){var h=l*2,v=a.top-o.top+a.height/2-h/2,m=a.left-o.left+a.width/2-h/2,y=l,p=o.width-l,b=o.height-l;switch(m=m<y?y:m,m=m+h>p?p-h:m,v=v<y?y:v,v=v+h>b?b-h:v,v=Number.isNaN(v)?0:v,m=Number.isNaN(m)?0:m,s){case"right":return{borderTop:"".concat(l,"px solid transparent"),borderBottom:"".concat(l,"px solid transparent"),borderRight:"".concat(l,"px solid ").concat(c),left:0,top:v};case"left":return{borderTop:"".concat(l,"px solid transparent"),borderBottom:"".concat(l,"px solid transparent"),borderLeft:"".concat(l,"px solid ").concat(c),right:0,top:v};case"bottom":return{borderLeft:"".concat(l,"px solid transparent"),borderRight:"".concat(l,"px solid transparent"),borderBottom:"".concat(l,"px solid ").concat(c),top:0,left:m};case"top":return{borderLeft:"".concat(l,"px solid transparent"),borderRight:"".concat(l,"px solid transparent"),borderTop:"".concat(l,"px solid ").concat(c),bottom:0,left:m};default:return{display:"hidden"}}})())},[c,l,a.height,a.left,a.top,a.width,o.height,o.left,o.top,o.width,s]);return{arrowContainerStyle:i,arrowStyle:f}};return Pe.useArrowContainer=n,Pe}var Ne={},vr;function yn(){if(vr)return Ne;vr=1;var e=Ne&&Ne.__assign||function(){return e=Object.assign||function(o){for(var s,l=1,c=arguments.length;l<c;l++){s=arguments[l];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(o[i]=s[i])}return o},e.apply(this,arguments)};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.ArrowContainer=void 0;var t=u.requireJsxRuntime(),n=x,r=Ar(),a=function(o){var s=o.childRect,l=o.popoverRect,c=o.position,i=o.arrowColor,f=o.arrowSize,h=o.arrowClassName,v=o.arrowStyle,m=o.className,y=o.children,p=o.style,b=(0,r.useArrowContainer)({childRect:s,popoverRect:l,position:c,arrowColor:i,arrowSize:f}),_=b.arrowContainerStyle,O=b.arrowStyle,P=(0,n.useMemo)(function(){return e(e({},_),p)},[_,p]),T=(0,n.useMemo)(function(){return e(e({},O),v)},[O,v]);return(0,t.jsxs)("div",{className:m,style:P,children:[(0,t.jsx)("div",{style:T,className:h}),y]})};return Ne.ArrowContainer=a,Ne}var mr;function _n(){return mr||(mr=1,(function(e){var t=Te&&Te.__assign||function(){return t=Object.assign||function(m){for(var y,p=1,b=arguments.length;p<b;p++){y=arguments[p];for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(m[_]=y[_])}return m},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Popover=e.usePopover=e.ArrowContainer=e.useArrowContainer=void 0;var n=u.requireJsxRuntime(),r=x,a=vn(),o=Ft(),s=hn();Object.defineProperty(e,"usePopover",{enumerable:!0,get:function(){return s.usePopover}});var l=pn(),c=gn(),i=Ar();Object.defineProperty(e,"useArrowContainer",{enumerable:!0,get:function(){return i.useArrowContainer}});var f=yn();Object.defineProperty(e,"ArrowContainer",{enumerable:!0,get:function(){return f.ArrowContainer}});var h=["top","left","right","bottom"],v=(0,r.forwardRef)(function(m,y){var p=m.isOpen,b=m.children,_=m.content,O=m.positions,P=O===void 0?h:O,T=m.align,F=T===void 0?"center":T,Y=m.padding,K=Y===void 0?0:Y,V=m.reposition,Z=V===void 0?!0:V,W=m.parentElement,ee=W===void 0?window.document.body:W,te=m.boundaryElement,se=te===void 0?ee:te,U=m.containerClassName,ne=m.containerStyle,k=m.transform,oe=m.transformMode,ie=oe===void 0?"absolute":oe,M=m.boundaryInset,L=M===void 0?0:M,J=m.onClickOutside,q=m.clickOutsideCapture,C=q===void 0?!1:q,re=(0,l.useMemoizedArray)(Array.isArray(P)?P:[P]),le=(0,c.useHandlePrevValues)({positions:re,reposition:Z,transformMode:ie,transform:k,boundaryElement:se,boundaryInset:L}),B=le.prev,G=le.updatePrevValues,I=(0,r.useRef)(),ue=(0,r.useState)({align:F,nudgedLeft:0,nudgedTop:0,position:re[0],padding:K,childRect:o.EMPTY_RECT,popoverRect:o.EMPTY_RECT,parentRect:o.EMPTY_RECT,boundaryRect:o.EMPTY_RECT,boundaryInset:L,violations:o.EMPTY_RECT,hasViolations:!1}),H=ue[0],he=ue[1],ye=(0,r.useCallback)(function(g){return he(g)},[]),me=(0,s.usePopover)({isOpen:p,childRef:I,containerClassName:U,parentElement:ee,boundaryElement:se,transform:k,transformMode:ie,positions:re,align:F,padding:K,boundaryInset:L,reposition:Z,onPositionPopover:ye}),N=me.positionPopover,Q=me.popoverRef,X=me.scoutRef;(0,r.useLayoutEffect)(function(){var g=!0,E=function(){var S,R;if(p&&g){var $=(S=I?.current)===null||S===void 0?void 0:S.getBoundingClientRect(),z=(R=Q?.current)===null||R===void 0?void 0:R.getBoundingClientRect();$!=null&&z!=null&&(!(0,o.rectsAreEqual)($,H.childRect)||z.width!==H.popoverRect.width||z.height!==H.popoverRect.height||H.padding!==K||H.align!==F||re!==B.positions||Z!==B.reposition||ie!==B.transformMode||k!==B.transform||se!==B.boundaryElement||L!==B.boundaryInset)&&N(),G(),g&&window.requestAnimationFrame(E)}};return E(),function(){g=!1}},[F,se,L,p,K,Q,H.align,H.childRect,H.padding,H.popoverRect.height,H.popoverRect.width,N,re,B.boundaryElement,B.boundaryInset,B.positions,B.reposition,B.transform,B.transformMode,Z,k,ie,G]),(0,r.useEffect)(function(){var g=Q.current;return Object.assign(g.style,ne),function(){Object.keys(ne??{}).forEach(function(E){return delete g.style[E]})}},[ne,p,Q]);var de=(0,r.useCallback)(function(g){var E,S;p&&!(!((E=Q.current)===null||E===void 0)&&E.contains(g.target))&&!(!((S=I.current)===null||S===void 0)&&S.contains(g.target))&&J?.(g)},[p,J,Q]),pe=(0,r.useCallback)(function(){I.current&&p&&window.requestAnimationFrame(function(){return N()})},[N,p]);(0,r.useEffect)(function(){var g=ee.ownerDocument.body;return g.addEventListener("click",de,C),g.addEventListener("contextmenu",de,C),window.addEventListener("resize",pe),function(){g.removeEventListener("click",de,C),g.removeEventListener("contextmenu",de,C),window.removeEventListener("resize",pe)}},[C,de,pe,ee]);var w=(0,r.useCallback)(function(g){I.current=g,y!=null&&(typeof y=="object"?y.current=g:typeof y=="function"&&y(g))},[y]),j=function(){return(0,r.cloneElement)(b,{ref:w})},D=function(){return p?(0,n.jsx)(a.PopoverPortal,{element:Q.current,scoutElement:X.current,container:ee,children:typeof _=="function"?_(H):_}):null};return(0,n.jsxs)(n.Fragment,{children:[j(),D()]})});e.Popover=(0,r.forwardRef)(function(m,y){return typeof window>"u"?m.children:(0,n.jsx)(v,t({},m,{ref:y}))})})(Te)),Te}var bn=_n();function xn(e){return rt.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"},child:[]}]})(e)}function wn(e){return rt.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"},child:[]}]})(e)}var ge={GREGORY:"gregory",HEBREW:"hebrew",ISLAMIC:"islamic",ISO_8601:"iso8601"},jn={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},Wt=[0,1,2,3,4,5,6],yt=new Map;function En(e){return function(n,r){var a=n||d.getUserLocale();yt.has(a)||yt.set(a,new Map);var o=yt.get(a);return o.has(e)||o.set(e,new Intl.DateTimeFormat(a||void 0,e).format),o.get(e)(r)}}function Dn(e){var t=new Date(e);return new Date(t.setHours(12))}function Me(e){return function(t,n){return En(e)(t,Dn(n))}}var On={day:"numeric"},Rn={day:"numeric",month:"long",year:"numeric"},kn={month:"long"},Cn={month:"long",year:"numeric"},Sn={weekday:"short"},Pn={weekday:"long"},Nn={year:"numeric"},An=Me(On),Mn=Me(Rn),Ln=Me(kn),Mr=Me(Cn),In=Me(Sn),Tn=Me(Pn),nt=Me(Nn),$n=Wt[0],Yn=Wt[5],hr=Wt[6];function Be(e,t){t===void 0&&(t=ge.ISO_8601);var n=e.getDay();switch(t){case ge.ISO_8601:return(n+6)%7;case ge.ISLAMIC:return(n+1)%7;case ge.HEBREW:case ge.GREGORY:return n;default:throw new Error("Unsupported calendar type.")}}function Vn(e){var t=d.getCenturyStart(e);return d.getYear(t)}function Fn(e){var t=d.getDecadeStart(e);return d.getYear(t)}function Et(e,t){t===void 0&&(t=ge.ISO_8601);var n=d.getYear(e),r=d.getMonth(e),a=e.getDate()-Be(e,t);return new Date(n,r,a)}function Wn(e,t){t===void 0&&(t=ge.ISO_8601);var n=t===ge.GREGORY?ge.GREGORY:ge.ISO_8601,r=Et(e,t),a=d.getYear(e)+1,o,s;do o=new Date(a,0,n===ge.ISO_8601?4:1),s=Et(o,t),a-=1;while(e<s);return Math.round((r.getTime()-s.getTime())/(864e5*7))+1}function Ae(e,t){switch(e){case"century":return d.getCenturyStart(t);case"decade":return d.getDecadeStart(t);case"year":return d.getYearStart(t);case"month":return d.getMonthStart(t);case"day":return d.getDayStart(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function qn(e,t){switch(e){case"century":return d.getPreviousCenturyStart(t);case"decade":return d.getPreviousDecadeStart(t);case"year":return d.getPreviousYearStart(t);case"month":return d.getPreviousMonthStart(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Lr(e,t){switch(e){case"century":return d.getNextCenturyStart(t);case"decade":return d.getNextDecadeStart(t);case"year":return d.getNextYearStart(t);case"month":return d.getNextMonthStart(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Gn(e,t){switch(e){case"decade":return d.getPreviousDecadeStart(t,-100);case"year":return d.getPreviousYearStart(t,-10);case"month":return d.getPreviousMonthStart(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function Bn(e,t){switch(e){case"decade":return d.getNextDecadeStart(t,100);case"year":return d.getNextYearStart(t,10);case"month":return d.getNextMonthStart(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}}function Ir(e,t){switch(e){case"century":return d.getCenturyEnd(t);case"decade":return d.getDecadeEnd(t);case"year":return d.getYearEnd(t);case"month":return d.getMonthEnd(t);case"day":return d.getDayEnd(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Un(e,t){switch(e){case"century":return d.getPreviousCenturyEnd(t);case"decade":return d.getPreviousDecadeEnd(t);case"year":return d.getPreviousYearEnd(t);case"month":return d.getPreviousMonthEnd(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Hn(e,t){switch(e){case"decade":return d.getPreviousDecadeEnd(t,-100);case"year":return d.getPreviousYearEnd(t,-10);case"month":return d.getPreviousMonthEnd(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function pr(e,t){switch(e){case"century":return d.getCenturyRange(t);case"decade":return d.getDecadeRange(t);case"year":return d.getYearRange(t);case"month":return d.getMonthRange(t);case"day":return d.getDayRange(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function zn(e,t,n){var r=[t,n].sort(function(a,o){return a.getTime()-o.getTime()});return[Ae(e,r[0]),Ir(e,r[1])]}function Tr(e,t,n){return n.map(function(r){return(t||nt)(e,r)}).join(" – ")}function Zn(e,t,n){return Tr(e,t,d.getCenturyRange(n))}function $r(e,t,n){return Tr(e,t,d.getDecadeRange(n))}function Kn(e){return e.getDay()===new Date().getDay()}function Yr(e,t){t===void 0&&(t=ge.ISO_8601);var n=e.getDay();switch(t){case ge.ISLAMIC:case ge.HEBREW:return n===Yn||n===hr;case ge.ISO_8601:case ge.GREGORY:return n===hr||n===$n;default:throw new Error("Unsupported calendar type.")}}var Re="react-calendar__navigation";function Jn(e){var t=e.activeStartDate,n=e.drillUp,r=e.formatMonthYear,a=r===void 0?Mr:r,o=e.formatYear,s=o===void 0?nt:o,l=e.locale,c=e.maxDate,i=e.minDate,f=e.navigationAriaLabel,h=f===void 0?"":f,v=e.navigationAriaLive,m=e.navigationLabel,y=e.next2AriaLabel,p=y===void 0?"":y,b=e.next2Label,_=b===void 0?"»":b,O=e.nextAriaLabel,P=O===void 0?"":O,T=e.nextLabel,F=T===void 0?"›":T,Y=e.prev2AriaLabel,K=Y===void 0?"":Y,V=e.prev2Label,Z=V===void 0?"«":V,W=e.prevAriaLabel,ee=W===void 0?"":W,te=e.prevLabel,se=te===void 0?"‹":te,U=e.setActiveStartDate,ne=e.showDoubleView,k=e.view,oe=e.views,ie=oe.indexOf(k)>0,M=k!=="century",L=qn(k,t),J=M?Gn(k,t):void 0,q=Lr(k,t),C=M?Bn(k,t):void 0,re=(function(){if(L.getFullYear()<0)return!0;var N=Un(k,t);return i&&i>=N})(),le=M&&(function(){if(J.getFullYear()<0)return!0;var N=Hn(k,t);return i&&i>=N})(),B=c&&c<q,G=M&&c&&c<C;function I(){U(L,"prev")}function ue(){U(J,"prev2")}function H(){U(q,"next")}function he(){U(C,"next2")}function ye(N){var Q=(function(){switch(k){case"century":return Zn(l,s,N);case"decade":return $r(l,s,N);case"year":return s(l,N);case"month":return a(l,N);default:throw new Error("Invalid view: ".concat(k,"."))}})();return m?m({date:N,label:Q,locale:l||d.getUserLocale()||void 0,view:k}):Q}function me(){var N="".concat(Re,"__label");return u.jsxRuntimeExports.jsxs("button",{"aria-label":h,"aria-live":v,className:N,disabled:!ie,onClick:n,style:{flexGrow:1},type:"button",children:[u.jsxRuntimeExports.jsx("span",{className:"".concat(N,"__labelText ").concat(N,"__labelText--from"),children:ye(t)}),ne?u.jsxRuntimeExports.jsxs(u.jsxRuntimeExports.Fragment,{children:[u.jsxRuntimeExports.jsx("span",{className:"".concat(N,"__divider"),children:" – "}),u.jsxRuntimeExports.jsx("span",{className:"".concat(N,"__labelText ").concat(N,"__labelText--to"),children:ye(q)})]}):null]})}return u.jsxRuntimeExports.jsxs("div",{className:Re,children:[Z!==null&&M?u.jsxRuntimeExports.jsx("button",{"aria-label":K,className:"".concat(Re,"__arrow ").concat(Re,"__prev2-button"),disabled:le,onClick:ue,type:"button",children:Z}):null,se!==null&&u.jsxRuntimeExports.jsx("button",{"aria-label":ee,className:"".concat(Re,"__arrow ").concat(Re,"__prev-button"),disabled:re,onClick:I,type:"button",children:se}),me(),F!==null&&u.jsxRuntimeExports.jsx("button",{"aria-label":P,className:"".concat(Re,"__arrow ").concat(Re,"__next-button"),disabled:B,onClick:H,type:"button",children:F}),_!==null&&M?u.jsxRuntimeExports.jsx("button",{"aria-label":p,className:"".concat(Re,"__arrow ").concat(Re,"__next2-button"),disabled:G,onClick:he,type:"button",children:_}):null]})}var Le=function(){return Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Le.apply(this,arguments)},Qn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function gr(e){return"".concat(e,"%")}function qt(e){var t=e.children,n=e.className,r=e.count,a=e.direction,o=e.offset,s=e.style,l=e.wrap,c=Qn(e,["children","className","count","direction","offset","style","wrap"]);return u.jsxRuntimeExports.jsx("div",Le({className:n,style:Le({display:"flex",flexDirection:a,flexWrap:l?"wrap":"nowrap"},s)},c,{children:x.Children.map(t,function(i,f){var h=o&&f===0?gr(100*o/r):null;return x.cloneElement(i,Le(Le({},i.props),{style:{flexBasis:gr(100/r),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:h,marginInlineStart:h,marginInlineEnd:0}}))})}))}function Xn(e,t,n){return t&&t>e?t:n&&n<e?n:e}function Ue(e,t){return t[0]<=e&&t[1]>=e}function ea(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function Vr(e,t){return Ue(e[0],t)||Ue(e[1],t)}function yr(e,t,n){var r=Vr(t,e),a=[];if(r){a.push(n);var o=Ue(e[0],t),s=Ue(e[1],t);o&&a.push("".concat(n,"Start")),s&&a.push("".concat(n,"End")),o&&s&&a.push("".concat(n,"BothEnds"))}return a}function ta(e){return Array.isArray(e)?e[0]!==null&&e[1]!==null:e!==null}function ra(e){if(!e)throw new Error("args is required");var t=e.value,n=e.date,r=e.hover,a="react-calendar__tile",o=[a];if(!n)return o;var s=new Date,l=(function(){if(Array.isArray(n))return n;var m=e.dateType;if(!m)throw new Error("dateType is required when date is not an array of two dates");return pr(m,n)})();if(Ue(s,l)&&o.push("".concat(a,"--now")),!t||!ta(t))return o;var c=(function(){if(Array.isArray(t))return t;var m=e.valueType;if(!m)throw new Error("valueType is required when value is not an array of two dates");return pr(m,t)})();ea(c,l)?o.push("".concat(a,"--active")):Vr(c,l)&&o.push("".concat(a,"--hasActive"));var i=yr(c,l,"".concat(a,"--range"));o.push.apply(o,i);var f=Array.isArray(t)?t:[t];if(r&&f.length===1){var h=r>c[0]?[c[0],r]:[r,c[0]],v=yr(h,l,"".concat(a,"--hover"));o.push.apply(o,v)}return o}function at(e){for(var t=e.className,n=e.count,r=n===void 0?3:n,a=e.dateTransform,o=e.dateType,s=e.end,l=e.hover,c=e.offset,i=e.renderTile,f=e.start,h=e.step,v=h===void 0?1:h,m=e.value,y=e.valueType,p=[],b=f;b<=s;b+=v){var _=a(b);p.push(i({classes:ra({date:_,dateType:o,hover:l,value:m,valueType:y}),date:_}))}return u.jsxRuntimeExports.jsx(qt,{className:t,count:r,offset:c,wrap:!0,children:p})}function ot(e){var t=e.activeStartDate,n=e.children,r=e.classes,a=e.date,o=e.formatAbbr,s=e.locale,l=e.maxDate,c=e.maxDateTransform,i=e.minDate,f=e.minDateTransform,h=e.onClick,v=e.onMouseOver,m=e.style,y=e.tileClassName,p=e.tileContent,b=e.tileDisabled,_=e.view,O=x.useMemo(function(){var T={activeStartDate:t,date:a,view:_};return typeof y=="function"?y(T):y},[t,a,y,_]),P=x.useMemo(function(){var T={activeStartDate:t,date:a,view:_};return typeof p=="function"?p(T):p},[t,a,p,_]);return u.jsxRuntimeExports.jsxs("button",{className:je.clsx(r,O),disabled:i&&f(i)>a||l&&c(l)<a||b?.({activeStartDate:t,date:a,view:_}),onClick:h?function(T){return h(a,T)}:void 0,onFocus:v?function(){return v(a)}:void 0,onMouseOver:v?function(){return v(a)}:void 0,style:m,type:"button",children:[o?u.jsxRuntimeExports.jsx("abbr",{"aria-label":o(s,a),children:n}):n,P]})}var Dt=function(){return Dt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Dt.apply(this,arguments)},na=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},_r="react-calendar__century-view__decades__decade";function aa(e){var t=e.classes,n=t===void 0?[]:t,r=e.currentCentury,a=e.formatYear,o=a===void 0?nt:a,s=na(e,["classes","currentCentury","formatYear"]),l=s.date,c=s.locale,i=[];return n&&i.push.apply(i,n),i.push(_r),d.getCenturyStart(l).getFullYear()!==r&&i.push("".concat(_r,"--neighboringCentury")),u.jsxRuntimeExports.jsx(ot,Dt({},s,{classes:i,maxDateTransform:d.getDecadeEnd,minDateTransform:d.getDecadeStart,view:"century",children:$r(c,o,l)}))}var Ot=function(){return Ot=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ot.apply(this,arguments)},br=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function oa(e){var t=e.activeStartDate,n=e.hover,r=e.showNeighboringCentury,a=e.value,o=e.valueType,s=br(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),l=Vn(t),c=l+(r?119:99);return u.jsxRuntimeExports.jsx(at,{className:"react-calendar__century-view__decades",dateTransform:d.getDecadeStart,dateType:"decade",end:c,hover:n,renderTile:function(i){var f=i.date,h=br(i,["date"]);return u.jsxRuntimeExports.jsx(aa,Ot({},s,h,{activeStartDate:t,currentCentury:l,date:f}),f.getTime())},start:l,step:10,value:a,valueType:o})}var Rt=function(){return Rt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Rt.apply(this,arguments)};function ia(e){function t(){return u.jsxRuntimeExports.jsx(oa,Rt({},e))}return u.jsxRuntimeExports.jsx("div",{className:"react-calendar__century-view",children:t()})}var kt=function(){return kt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},kt.apply(this,arguments)},ca=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},xr="react-calendar__decade-view__years__year";function la(e){var t=e.classes,n=t===void 0?[]:t,r=e.currentDecade,a=e.formatYear,o=a===void 0?nt:a,s=ca(e,["classes","currentDecade","formatYear"]),l=s.date,c=s.locale,i=[];return n&&i.push.apply(i,n),i.push(xr),d.getDecadeStart(l).getFullYear()!==r&&i.push("".concat(xr,"--neighboringDecade")),u.jsxRuntimeExports.jsx(ot,kt({},s,{classes:i,maxDateTransform:d.getYearEnd,minDateTransform:d.getYearStart,view:"decade",children:o(c,l)}))}var Ct=function(){return Ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ct.apply(this,arguments)},wr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function sa(e){var t=e.activeStartDate,n=e.hover,r=e.showNeighboringDecade,a=e.value,o=e.valueType,s=wr(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),l=Fn(t),c=l+(r?11:9);return u.jsxRuntimeExports.jsx(at,{className:"react-calendar__decade-view__years",dateTransform:d.getYearStart,dateType:"year",end:c,hover:n,renderTile:function(i){var f=i.date,h=wr(i,["date"]);return u.jsxRuntimeExports.jsx(la,Ct({},s,h,{activeStartDate:t,currentDecade:l,date:f}),f.getTime())},start:l,value:a,valueType:o})}var St=function(){return St=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},St.apply(this,arguments)};function ua(e){function t(){return u.jsxRuntimeExports.jsx(sa,St({},e))}return u.jsxRuntimeExports.jsx("div",{className:"react-calendar__decade-view",children:t()})}var Pt=function(){return Pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Pt.apply(this,arguments)},da=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},jr=function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},fa="react-calendar__year-view__months__month";function va(e){var t=e.classes,n=t===void 0?[]:t,r=e.formatMonth,a=r===void 0?Ln:r,o=e.formatMonthYear,s=o===void 0?Mr:o,l=da(e,["classes","formatMonth","formatMonthYear"]),c=l.date,i=l.locale;return u.jsxRuntimeExports.jsx(ot,Pt({},l,{classes:jr(jr([],n,!0),[fa],!1),formatAbbr:s,maxDateTransform:d.getMonthEnd,minDateTransform:d.getMonthStart,view:"year",children:a(i,c)}))}var Nt=function(){return Nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Nt.apply(this,arguments)},Er=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ma(e){var t=e.activeStartDate,n=e.hover,r=e.value,a=e.valueType,o=Er(e,["activeStartDate","hover","value","valueType"]),s=0,l=11,c=d.getYear(t);return u.jsxRuntimeExports.jsx(at,{className:"react-calendar__year-view__months",dateTransform:function(i){var f=new Date;return f.setFullYear(c,i,1),d.getMonthStart(f)},dateType:"month",end:l,hover:n,renderTile:function(i){var f=i.date,h=Er(i,["date"]);return u.jsxRuntimeExports.jsx(va,Nt({},o,h,{activeStartDate:t,date:f}),f.getTime())},start:s,value:r,valueType:a})}var At=function(){return At=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},At.apply(this,arguments)};function ha(e){function t(){return u.jsxRuntimeExports.jsx(ma,At({},e))}return u.jsxRuntimeExports.jsx("div",{className:"react-calendar__year-view",children:t()})}var Mt=function(){return Mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Mt.apply(this,arguments)},pa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},_t="react-calendar__month-view__days__day";function ga(e){var t=e.calendarType,n=e.classes,r=n===void 0?[]:n,a=e.currentMonthIndex,o=e.formatDay,s=o===void 0?An:o,l=e.formatLongDate,c=l===void 0?Mn:l,i=pa(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),f=i.date,h=i.locale,v=[];return r&&v.push.apply(v,r),v.push(_t),Yr(f,t)&&v.push("".concat(_t,"--weekend")),f.getMonth()!==a&&v.push("".concat(_t,"--neighboringMonth")),u.jsxRuntimeExports.jsx(ot,Mt({},i,{classes:v,formatAbbr:c,maxDateTransform:d.getDayEnd,minDateTransform:d.getDayStart,view:"month",children:s(h,f)}))}var Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Lt.apply(this,arguments)},Dr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ya(e){var t=e.activeStartDate,n=e.calendarType,r=e.hover,a=e.showFixedNumberOfWeeks,o=e.showNeighboringMonth,s=e.value,l=e.valueType,c=Dr(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),i=d.getYear(t),f=d.getMonth(t),h=a||o,v=Be(t,n),m=h?0:v,y=(h?-v:0)+1,p=(function(){if(a)return y+42-1;var b=d.getDaysInMonth(t);if(o){var _=new Date;_.setFullYear(i,f,b),_.setHours(0,0,0,0);var O=7-Be(_,n)-1;return b+O}return b})();return u.jsxRuntimeExports.jsx(at,{className:"react-calendar__month-view__days",count:7,dateTransform:function(b){var _=new Date;return _.setFullYear(i,f,b),d.getDayStart(_)},dateType:"day",hover:r,end:p,renderTile:function(b){var _=b.date,O=Dr(b,["date"]);return u.jsxRuntimeExports.jsx(ga,Lt({},c,O,{activeStartDate:t,calendarType:n,currentMonthIndex:f,date:_}),_.getTime())},offset:m,start:y,value:s,valueType:l})}var Fr="react-calendar__month-view__weekdays",bt="".concat(Fr,"__weekday");function _a(e){for(var t=e.calendarType,n=e.formatShortWeekday,r=n===void 0?In:n,a=e.formatWeekday,o=a===void 0?Tn:a,s=e.locale,l=e.onMouseLeave,c=new Date,i=d.getMonthStart(c),f=d.getYear(i),h=d.getMonth(i),v=[],m=1;m<=7;m+=1){var y=new Date(f,h,m-Be(i,t)),p=o(s,y);v.push(u.jsxRuntimeExports.jsx("div",{className:je.clsx(bt,Kn(y)&&"".concat(bt,"--current"),Yr(y,t)&&"".concat(bt,"--weekend")),children:u.jsxRuntimeExports.jsx("abbr",{"aria-label":p,title:p,children:r(s,y).replace(".","")})},m))}return u.jsxRuntimeExports.jsx(qt,{className:Fr,count:7,onFocus:l,onMouseOver:l,children:v})}var et=function(){return et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},et.apply(this,arguments)},Or=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},Rr="react-calendar__tile";function ba(e){var t=e.onClickWeekNumber,n=e.weekNumber,r=u.jsxRuntimeExports.jsx("span",{children:n});if(t){var a=e.date,o=e.onClickWeekNumber,s=e.weekNumber,l=Or(e,["date","onClickWeekNumber","weekNumber"]);return u.jsxRuntimeExports.jsx("button",et({},l,{className:Rr,onClick:function(c){return o(s,a,c)},type:"button",children:r}))}else{e.date,e.onClickWeekNumber,e.weekNumber;var l=Or(e,["date","onClickWeekNumber","weekNumber"]);return u.jsxRuntimeExports.jsx("div",et({},l,{className:Rr,children:r}))}}function xa(e){var t=e.activeStartDate,n=e.calendarType,r=e.onClickWeekNumber,a=e.onMouseLeave,o=e.showFixedNumberOfWeeks,s=(function(){if(o)return 6;var i=d.getDaysInMonth(t),f=Be(t,n),h=i-(7-f);return 1+Math.ceil(h/7)})(),l=(function(){for(var i=d.getYear(t),f=d.getMonth(t),h=d.getDate(t),v=[],m=0;m<s;m+=1)v.push(Et(new Date(i,f,h+m*7),n));return v})(),c=l.map(function(i){return Wn(i,n)});return u.jsxRuntimeExports.jsx(qt,{className:"react-calendar__month-view__weekNumbers",count:s,direction:"column",onFocus:a,onMouseOver:a,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:c.map(function(i,f){var h=l[f];if(!h)throw new Error("date is not defined");return u.jsxRuntimeExports.jsx(ba,{date:h,onClickWeekNumber:r,weekNumber:i},i)})})}var It=function(){return It=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},It.apply(this,arguments)},wa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function ja(e){if(e)for(var t=0,n=Object.entries(jn);t<n.length;t++){var r=n[t],a=r[0],o=r[1];if(o.includes(e))return a}return ge.ISO_8601}function Ea(e){var t=e.activeStartDate,n=e.locale,r=e.onMouseLeave,a=e.showFixedNumberOfWeeks,o=e.calendarType,s=o===void 0?ja(n):o,l=e.formatShortWeekday,c=e.formatWeekday,i=e.onClickWeekNumber,f=e.showWeekNumbers,h=wa(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);function v(){return u.jsxRuntimeExports.jsx(_a,{calendarType:s,formatShortWeekday:l,formatWeekday:c,locale:n,onMouseLeave:r})}function m(){return f?u.jsxRuntimeExports.jsx(xa,{activeStartDate:t,calendarType:s,onClickWeekNumber:i,onMouseLeave:r,showFixedNumberOfWeeks:a}):null}function y(){return u.jsxRuntimeExports.jsx(ya,It({calendarType:s},h))}var p="react-calendar__month-view";return u.jsxRuntimeExports.jsx("div",{className:je.clsx(p,f?"".concat(p,"--weekNumbers"):""),children:u.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"flex-end"},children:[m(),u.jsxRuntimeExports.jsxs("div",{style:{flexGrow:1,width:"100%"},children:[v(),y()]})]})})}var Ie=function(){return Ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ie.apply(this,arguments)},Ke="react-calendar",Xe=["century","decade","year","month"],Da=["decade","year","month","day"],Gt=new Date;Gt.setFullYear(1,0,1);Gt.setHours(0,0,0,0);var Oa=new Date(864e13);function Ge(e){return e instanceof Date?e:new Date(e)}function Wr(e,t){return Xe.slice(Xe.indexOf(e),Xe.indexOf(t)+1)}function Ra(e,t,n){var r=Wr(t,n);return r.indexOf(e)!==-1}function Bt(e,t,n){return e&&Ra(e,t,n)?e:n}function qr(e){var t=Xe.indexOf(e);return Da[t]}function ka(e,t){var n=Array.isArray(e)?e[t]:e;if(!n)return null;var r=Ge(n);if(Number.isNaN(r.getTime()))throw new Error("Invalid date: ".concat(e));return r}function Gr(e,t){var n=e.value,r=e.minDate,a=e.maxDate,o=e.maxDetail,s=ka(n,t);if(!s)return null;var l=qr(o),c=(function(){switch(t){case 0:return Ae(l,s);case 1:return Ir(l,s);default:throw new Error("Invalid index value: ".concat(t))}})();return Xn(c,r,a)}var Ut=function(e){return Gr(e,0)},Br=function(e){return Gr(e,1)},Ca=function(e){return[Ut,Br].map(function(t){return t(e)})};function Ur(e){var t=e.maxDate,n=e.maxDetail,r=e.minDate,a=e.minDetail,o=e.value,s=e.view,l=Bt(s,a,n),c=Ut({value:o,minDate:r,maxDate:t,maxDetail:n})||new Date;return Ae(l,c)}function Sa(e){var t=e.activeStartDate,n=e.defaultActiveStartDate,r=e.defaultValue,a=e.defaultView,o=e.maxDate,s=e.maxDetail,l=e.minDate,c=e.minDetail,i=e.value,f=e.view,h=Bt(f,c,s),v=t||n;return v?Ae(h,v):Ur({maxDate:o,maxDetail:s,minDate:l,minDetail:c,value:i||r,view:f||a})}function xt(e){return e&&(!Array.isArray(e)||e.length===1)}function Je(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var Ht=x.forwardRef(function(t,n){var r=t.activeStartDate,a=t.allowPartialRange,o=t.calendarType,s=t.className,l=t.defaultActiveStartDate,c=t.defaultValue,i=t.defaultView,f=t.formatDay,h=t.formatLongDate,v=t.formatMonth,m=t.formatMonthYear,y=t.formatShortWeekday,p=t.formatWeekday,b=t.formatYear,_=t.goToRangeStartOnSelect,O=_===void 0?!0:_,P=t.inputRef,T=t.locale,F=t.maxDate,Y=F===void 0?Oa:F,K=t.maxDetail,V=K===void 0?"month":K,Z=t.minDate,W=Z===void 0?Gt:Z,ee=t.minDetail,te=ee===void 0?"century":ee,se=t.navigationAriaLabel,U=t.navigationAriaLive,ne=t.navigationLabel,k=t.next2AriaLabel,oe=t.next2Label,ie=t.nextAriaLabel,M=t.nextLabel,L=t.onActiveStartDateChange,J=t.onChange,q=t.onClickDay,C=t.onClickDecade,re=t.onClickMonth,le=t.onClickWeekNumber,B=t.onClickYear,G=t.onDrillDown,I=t.onDrillUp,ue=t.onViewChange,H=t.prev2AriaLabel,he=t.prev2Label,ye=t.prevAriaLabel,me=t.prevLabel,N=t.returnValue,Q=N===void 0?"start":N,X=t.selectRange,de=t.showDoubleView,pe=t.showFixedNumberOfWeeks,w=t.showNavigation,j=w===void 0?!0:w,D=t.showNeighboringCentury,g=t.showNeighboringDecade,E=t.showNeighboringMonth,S=E===void 0?!0:E,R=t.showWeekNumbers,$=t.tileClassName,z=t.tileContent,fe=t.tileDisabled,ke=t.value,Ce=t.view,Se=x.useState(l),lt=Se[0],He=Se[1],Jt=x.useState(null),en=Jt[0],Qt=Jt[1],Xt=x.useState(Array.isArray(c)?c.map(function(A){return A!==null?Ge(A):null}):c!=null?Ge(c):null),st=Xt[0],tn=Xt[1],er=x.useState(i),rn=er[0],tr=er[1],be=r||lt||Sa({activeStartDate:r,defaultActiveStartDate:l,defaultValue:c,defaultView:i,maxDate:Y,maxDetail:V,minDate:W,minDetail:te,value:ke,view:Ce}),xe=(function(){var A=(function(){return X&&xt(st)?st:ke!==void 0?ke:st})();return A?Array.isArray(A)?A.map(function(ce){return ce!==null?Ge(ce):null}):A!==null?Ge(A):null:null})(),ze=qr(V),ae=Bt(Ce||rn,te,V),Oe=Wr(te,V),nn=X?en:null,ut=Oe.indexOf(ae)<Oe.length-1,rr=Oe.indexOf(ae)>0,nr=x.useCallback(function(A){var ce=(function(){switch(Q){case"start":return Ut;case"end":return Br;case"range":return Ca;default:throw new Error("Invalid returnValue.")}})();return ce({maxDate:Y,maxDetail:V,minDate:W,value:A})},[Y,V,W,Q]),dt=x.useCallback(function(A,ce){He(A);var ve={action:ce,activeStartDate:A,value:xe,view:ae};L&&!Je(be,A)&&L(ve)},[be,L,xe,ae]),Ze=x.useCallback(function(A,ce){var ve=(function(){switch(ae){case"century":return C;case"decade":return B;case"year":return re;case"month":return q;default:throw new Error("Invalid view: ".concat(ae,"."))}})();ve&&ve(A,ce)},[q,C,re,B,ae]),ft=x.useCallback(function(A,ce){if(ut){Ze(A,ce);var ve=Oe[Oe.indexOf(ae)+1];if(!ve)throw new Error("Attempted to drill down from the lowest view.");He(A),tr(ve);var Ee={action:"drillDown",activeStartDate:A,value:xe,view:ve};L&&!Je(be,A)&&L(Ee),ue&&ae!==ve&&ue(Ee),G&&G(Ee)}},[be,ut,L,Ze,G,ue,xe,ae,Oe]),vt=x.useCallback(function(){if(rr){var A=Oe[Oe.indexOf(ae)-1];if(!A)throw new Error("Attempted to drill up from the highest view.");var ce=Ae(A,be);He(ce),tr(A);var ve={action:"drillUp",activeStartDate:ce,value:xe,view:A};L&&!Je(be,ce)&&L(ve),ue&&ae!==A&&ue(ve),I&&I(ve)}},[be,rr,L,I,ue,xe,ae,Oe]),mt=x.useCallback(function(A,ce){var ve=xe;Ze(A,ce);var Ee=X&&!xt(ve),De;if(X)if(Ee)De=Ae(ze,A);else{if(!ve)throw new Error("previousValue is required");if(Array.isArray(ve))throw new Error("previousValue must not be an array");De=zn(ze,ve,A)}else De=nr(A);var pt=!X||Ee||O?Ur({maxDate:Y,maxDetail:V,minDate:W,minDetail:te,value:De,view:ae}):null;ce.persist(),He(pt),tn(De);var ln={action:"onChange",activeStartDate:pt,value:De,view:ae};if(L&&!Je(be,pt)&&L(ln),J)if(X){var sn=xt(De);if(!sn)J(De||null,ce);else if(a){if(Array.isArray(De))throw new Error("value must not be an array");J([De||null,null],ce)}}else J(De||null,ce)},[be,a,nr,O,Y,V,W,te,L,J,Ze,X,xe,ze,ae]);function an(A){Qt(A)}function ht(){Qt(null)}x.useImperativeHandle(n,function(){return{activeStartDate:be,drillDown:ft,drillUp:vt,onChange:mt,setActiveStartDate:dt,value:xe,view:ae}},[be,ft,vt,mt,dt,xe,ae]);function ar(A){var ce=A?Lr(ae,be):Ae(ae,be),ve=ut?ft:mt,Ee={activeStartDate:ce,hover:nn,locale:T,maxDate:Y,minDate:W,onClick:ve,onMouseOver:X?an:void 0,tileClassName:$,tileContent:z,tileDisabled:fe,value:xe,valueType:ze};switch(ae){case"century":return u.jsxRuntimeExports.jsx(ia,Ie({formatYear:b,showNeighboringCentury:D},Ee));case"decade":return u.jsxRuntimeExports.jsx(ua,Ie({formatYear:b,showNeighboringDecade:g},Ee));case"year":return u.jsxRuntimeExports.jsx(ha,Ie({formatMonth:v,formatMonthYear:m},Ee));case"month":return u.jsxRuntimeExports.jsx(Ea,Ie({calendarType:o,formatDay:f,formatLongDate:h,formatShortWeekday:y,formatWeekday:p,onClickWeekNumber:le,onMouseLeave:X?ht:void 0,showFixedNumberOfWeeks:typeof pe<"u"?pe:de,showNeighboringMonth:S,showWeekNumbers:R},Ee));default:throw new Error("Invalid view: ".concat(ae,"."))}}function on(){return j?u.jsxRuntimeExports.jsx(Jn,{activeStartDate:be,drillUp:vt,formatMonthYear:m,formatYear:b,locale:T,maxDate:Y,minDate:W,navigationAriaLabel:se,navigationAriaLive:U,navigationLabel:ne,next2AriaLabel:k,next2Label:oe,nextAriaLabel:ie,nextLabel:M,prev2AriaLabel:H,prev2Label:he,prevAriaLabel:ye,prevLabel:me,setActiveStartDate:dt,showDoubleView:de,view:ae,views:Oe}):null}var cn=Array.isArray(xe)?xe:[xe];return u.jsxRuntimeExports.jsxs("div",{className:je.clsx(Ke,X&&cn.length===1&&"".concat(Ke,"--selectRange"),de&&"".concat(Ke,"--doubleView"),s),ref:P,children:[on(),u.jsxRuntimeExports.jsxs("div",{className:"".concat(Ke,"__viewContainer"),onBlur:X?ht:void 0,onMouseLeave:X?ht:void 0,children:[ar(),de?ar(!0):null]})]})});const zt=typeof window<"u",Pa=zt?x.useLayoutEffect:x.useEffect,Na=zt&&/(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent),Aa=zt&&/Firefox/.test(navigator.userAgent);function Ma(e){const{target:t}=e;Na?requestAnimationFrame(()=>t.select()):t.select()}function La(e){if(document.readyState==="complete")return;function t(){d.updateInputWidth(e)}window.addEventListener("load",t)}function Ia(e){if(!document.fonts)return;const t=d.getFontShorthand(e);if(!t||document.fonts.check(t))return;function r(){d.updateInputWidth(e)}document.fonts.addEventListener("loadingdone",r)}function Ta(e){if(e&&"selectionStart"in e&&e.selectionStart!==null&&"selectionEnd"in e&&e.selectionEnd!==null)return e.value.slice(e.selectionStart,e.selectionEnd);if("getSelection"in window){const t=window.getSelection();return t?.toString()}return null}function $a(e){if(e!==null)return function(n){if(Aa)return;const{key:r,target:a}=n,{value:o}=a,s=r.length===1&&/\d/.test(r),l=Ta(a);(!s||!(l||o.length<e))&&n.preventDefault()}}function Zt({ariaLabel:e,autoFocus:t,className:n,disabled:r,inputRef:a,max:o,min:s,name:l,nameForClass:c,onChange:i,onKeyDown:f,onKeyUp:h,placeholder:v="--",required:m,showLeadingZeros:y,step:p,value:b}){Pa(()=>{!a||!a.current||(d.updateInputWidth(a.current),La(a.current),Ia(a.current))},[a,b]);const _=y&&b&&Number(b)<10&&(b==="0"||!b.toString().startsWith("0")),O=o?o.toString().length:null;return u.jsxRuntimeExports.jsxs(u.jsxRuntimeExports.Fragment,{children:[_?u.jsxRuntimeExports.jsx("span",{className:`${n}__leadingZero`,children:"0"}):null,u.jsxRuntimeExports.jsx("input",{"aria-label":e,autoComplete:"off",autoFocus:t,className:je.clsx(`${n}__input`,`${n}__${c||l}`,_&&`${n}__input--hasLeadingZero`),"data-input":"true",disabled:r,inputMode:"numeric",max:o,min:s,name:l,onChange:i,onFocus:Ma,onKeyDown:f,onKeyPress:$a(O),onKeyUp:P=>{d.updateInputWidth(P.target),h&&h(P)},placeholder:v,ref:a,required:m,step:p,type:"number",value:b!==null?b:""})]})}function Ya(e,t,n){return t&&t>e?t:n&&n<e?n:e}function Hr(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function it(...e){return Math.min(...e.filter(Hr))}function ct(...e){return Math.max(...e.filter(Hr))}function Va({maxDate:e,minDate:t,month:n,year:r,...a}){const o=n?d.getDaysInMonth(new Date(Number(r),Number(n)-1,1)):31;function s(i){return r===d.getYear(i).toString()&&n===d.getMonthHuman(i).toString()}const l=it(o,e&&s(e)&&d.getDate(e)),c=ct(1,t&&s(t)&&d.getDate(t));return u.jsxRuntimeExports.jsx(Zt,{max:l,min:c,name:"day",...a})}function Fa({maxDate:e,minDate:t,year:n,...r}){function a(l){return l&&n===d.getYear(l).toString()}const o=it(12,e&&a(e)&&d.getMonthHuman(e)),s=ct(1,t&&a(t)&&d.getMonthHuman(t));return u.jsxRuntimeExports.jsx(Zt,{max:o,min:s,name:"month",...r})}const wt=new Map;function Tt(e){return function(n,r){const a=n||d.getUserLocale();wt.has(a)||wt.set(a,new Map);const o=wt.get(a);return o.has(e)||o.set(e,new Intl.DateTimeFormat(a||void 0,e).format),o.get(e)(r)}}function Wa(e){const t=new Date(e);return new Date(t.setHours(12))}function zr(e){return(t,n)=>Tt(e)(t,Wa(n))}const qa={month:"long"},Ga={month:"short"},Ba=zr(qa),Ua=zr(Ga);function Ha({ariaLabel:e,autoFocus:t,className:n,disabled:r,inputRef:a,locale:o,maxDate:s,minDate:l,onChange:c,onKeyDown:i,placeholder:f="--",required:h,short:v,value:m,year:y}){function p(F){return F&&y===d.getYear(F).toString()}const b=it(12,s&&p(s)&&d.getMonthHuman(s)),_=ct(1,l&&p(l)&&d.getMonthHuman(l)),O=[...Array(12)].map((F,Y)=>new Date(2019,Y,1)),P="month",T=v?Ua:Ba;return u.jsxRuntimeExports.jsxs("select",{"aria-label":e,autoFocus:t,className:je.clsx(`${n}__input`,`${n}__${P}`),"data-input":"true","data-select":"true",disabled:r,name:P,onChange:c,onKeyDown:i,ref:a,required:h,value:m!==null?m:"",children:[!m&&u.jsxRuntimeExports.jsx("option",{value:"",children:f}),O.map(F=>{const Y=d.getMonthHuman(F),K=Y<_||Y>b;return u.jsxRuntimeExports.jsx("option",{disabled:K,value:Y,children:T(o,F)},Y)})]})}function za({ariaLabel:e,disabled:t,maxDate:n,minDate:r,name:a,onChange:o,required:s,value:l,valueType:c}){const i=(()=>{switch(c){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType")}})(),f=(()=>{switch(c){case"decade":case"year":return d.getYear;case"month":return d.getISOLocalMonth;case"day":return d.getISOLocalDate;default:throw new Error("Invalid valueType")}})();function h(v){v.stopPropagation()}return u.jsxRuntimeExports.jsx("input",{"aria-label":e,disabled:t,hidden:!0,max:n?f(n):void 0,min:r?f(r):void 0,name:a,onChange:o,onFocus:h,required:s,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:i,value:l?f(l):""})}function Za({maxDate:e,minDate:t,placeholder:n="----",valueType:r,...a}){const o=it(275760,e&&d.getYear(e)),s=ct(1,t&&d.getYear(t)),l=r==="century"?10:1;return u.jsxRuntimeExports.jsx(Zt,{max:o,min:s,name:"year",placeholder:n,step:l,...a})}function Ka({children:e}){return u.jsxRuntimeExports.jsx("span",{className:"react-date-picker__inputGroup__divider",children:e})}function Ja(e,t){switch(e){case"decade":return d.getDecadeStart(t);case"year":return d.getYearStart(t);case"month":return d.getMonthStart(t);case"day":return d.getDayStart(t);default:throw new Error(`Invalid rangeType: ${e}`)}}function Qa(e,t){switch(e){case"decade":return d.getDecadeEnd(t);case"year":return d.getYearEnd(t);case"month":return d.getMonthEnd(t);case"day":return d.getDayEnd(t);default:throw new Error(`Invalid rangeType: ${e}`)}}const Qe={},tt=new Date;tt.setFullYear(1,0,1);tt.setHours(0,0,0,0);const kr=new Date(864e13),Kt=["century","decade","year","month"],Xa=[...Kt.slice(1),"day"];function eo(e){return e instanceof Date?e:new Date(e)}function Zr(e){const t=Kt.indexOf(e);return Xa[t]}function to(e,t){const n=Array.isArray(e)?e[t]:e;if(!n)return null;const r=eo(n);if(Number.isNaN(r.getTime()))throw new Error(`Invalid date: ${e}`);return r}function Kr({value:e,minDate:t,maxDate:n,maxDetail:r},a){const o=to(e,a);if(!o)return null;const s=Zr(r),l=(()=>{switch(a){case 0:return Ja(s,o);case 1:return Qa(s,o);default:throw new Error(`Invalid index value: ${a}`)}})();return Ya(l,t,n)}const $t=e=>Kr(e,0),Jr=e=>Kr(e,1),ro=e=>[$t,Jr].map(t=>t(e));function no(e){return e.dataset.input==="true"}function Cr(e,t){let n=e;do n=n[t];while(n&&!no(n));return n}function jt(e){e&&e.focus()}function ao(e,t,n){const r=[],a=new RegExp(Object.keys(t).map(s=>`${s}+`).join("|"),"g"),o=e.match(a);return e.split(a).reduce((s,l,c)=>{const i=l&&u.jsxRuntimeExports.jsx(Ka,{children:l},`separator_${c}`);s.push(i);const f=o?.[c];if(f){const h=t[f]||t[Object.keys(t).find(v=>f.match(v))];if(!h)return s;!n&&r.includes(h)?s.push(f):(s.push(h(f,c)),r.push(h))}return s},[])}function Yt({autoFocus:e,className:t,dayAriaLabel:n,dayPlaceholder:r,disabled:a,format:o,isCalendarOpen:s=null,locale:l,maxDate:c,maxDetail:i="month",minDate:f,monthAriaLabel:h,monthPlaceholder:v,name:m="date",nativeInputAriaLabel:y,onChange:p,onInvalidChange:b,required:_,returnValue:O="start",showLeadingZeros:P,value:T,yearAriaLabel:F,yearPlaceholder:Y}){const[K,V]=x.useState(null),[Z,W]=x.useState(null),[ee,te]=x.useState(null),[se,U]=x.useState(null),ne=x.useRef(null),k=x.useRef(null),oe=x.useRef(null),ie=x.useRef(null),[M,L]=x.useState(s),J=x.useRef(void 0);x.useEffect(()=>{L(s)},[s]),x.useEffect(()=>{const w=$t({value:T,minDate:f,maxDate:c,maxDetail:i});w?(V(d.getYear(w).toString()),W(d.getMonthHuman(w).toString()),te(d.getDate(w).toString()),U(w)):(V(null),W(null),te(null),U(null))},[T,f,c,i,M]);const q=Zr(i),C=(()=>{const w=Kt.indexOf(i),j=Qe[w]||(()=>{const D={year:"numeric"};return w>=2&&(D.month="numeric"),w>=3&&(D.day="numeric"),Qe[w]=D,D})();return Tt(j)})();function re(w){return(()=>{switch(O){case"start":return $t;case"end":return Jr;case"range":return ro;default:throw new Error("Invalid returnValue.")}})()({value:w,minDate:f,maxDate:c,maxDetail:i})}const le=o||(()=>{const g=new Date(2017,11,11),E=C(l,g),S=["year","month","day"],R=["y","M","d"];function $(fe,ke){const Ce=Qe[fe]||(()=>{const Se={[fe]:"numeric"};return Qe[fe]=Se,Se})();return Tt(Ce)(l,ke).match(/\d{1,}/)}let z=E;return S.forEach((fe,ke)=>{const Ce=$(fe,g);if(Ce){const Se=Ce[0],lt=R[ke];z=z.replace(Se,lt)}}),z=z.replace("17","y"),z})(),B=(()=>{const w=le.match(/[^0-9a-z]/i);return w?w[0]:null})();function G(w){if(w.target===w.currentTarget){const j=w.target.children[1];jt(j)}}function I(w){switch(J.current=w.key,w.key){case"ArrowLeft":case"ArrowRight":case B:{w.preventDefault();const{target:j}=w,D=w.key==="ArrowLeft"?"previousElementSibling":"nextElementSibling",g=Cr(j,D);jt(g);break}}}function ue(w){const{key:j,target:D}=w;if(!(J.current===j)||!!Number.isNaN(Number(j)))return;const S=D.getAttribute("max");if(!S)return;const{value:R}=D;if(Number(R)*10>Number(S)||R.length>=S.length){const z=Cr(D,"nextElementSibling");jt(z)}}function H(){if(!p)return;function w(R){return!!R}const j=[ie.current,k.current,oe.current,ne.current].filter(w),D={};for(const R of j)D[R.name]="valueAsNumber"in R?R.valueAsNumber:Number(R.value);if(j.every(R=>!R.value)){p(null,!1);return}const E=j.every(R=>R.value),S=j.every(R=>R.validity.valid);if(E&&S){const R=Number(D.year||new Date().getFullYear()),$=Number(D.month||1)-1,z=Number(D.day||1),fe=new Date;fe.setFullYear(R,$,z),fe.setHours(0,0,0,0);const ke=re(fe);p(ke,!1);return}b&&b()}function he(w){const{name:j,value:D}=w.target;switch(j){case"year":V(D);break;case"month":W(D);break;case"day":te(D);break}H()}function ye(w){const{value:j}=w.target;if(!p)return;const D=(()=>{if(!j)return null;const[g,E,S]=j.split("-"),R=Number(g),$=Number(E)-1||0,z=Number(S)||1,fe=new Date;return fe.setFullYear(R,$,z),fe.setHours(0,0,0,0),fe})();p(D,!1)}const me={className:t,disabled:a,maxDate:c||kr,minDate:f||tt,onChange:he,onKeyDown:I,onKeyUp:ue,required:!!(_||M)};function N(w,j){if(w&&w.length>2)throw new Error(`Unsupported token: ${w}`);const D=w&&w.length===2;return u.jsxRuntimeExports.jsx(Va,{...me,ariaLabel:n,autoFocus:j===0&&e,inputRef:ie,month:Z,placeholder:r,showLeadingZeros:D||P,value:ee,year:K},"day")}function Q(w,j){if(w&&w.length>4)throw new Error(`Unsupported token: ${w}`);if(w.length>2)return u.jsxRuntimeExports.jsx(Ha,{...me,ariaLabel:h,autoFocus:j===0&&e,inputRef:oe,locale:l,placeholder:v,short:w.length===3,value:Z,year:K},"month");const D=w&&w.length===2;return u.jsxRuntimeExports.jsx(Fa,{...me,ariaLabel:h,autoFocus:j===0&&e,inputRef:k,placeholder:v,showLeadingZeros:D||P,value:Z,year:K},"month")}function X(w,j){return u.jsxRuntimeExports.jsx(Za,{...me,ariaLabel:F,autoFocus:j===0&&e,inputRef:ne,placeholder:Y,value:K,valueType:q},"year")}function de(){return ao(le,{d:N,M:Q,y:X},typeof o<"u")}function pe(){return u.jsxRuntimeExports.jsx(za,{ariaLabel:y,disabled:a,maxDate:c||kr,minDate:f||tt,name:m,onChange:ye,required:_,value:se,valueType:q},"date")}return u.jsxRuntimeExports.jsxs("div",{className:t,onClick:G,children:[pe(),de()]})}const we="react-date-picker",oo=["mousedown","focusin","touchstart"],Qr={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},io=u.jsxRuntimeExports.jsxs("svg",{...Qr,"aria-hidden":"true",className:`${we}__calendar-button__icon ${we}__button__icon`,children:[u.jsxRuntimeExports.jsx("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),u.jsxRuntimeExports.jsx("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),u.jsxRuntimeExports.jsx("line",{x1:"13",x2:"13",y1:"0",y2:"4"})]}),co=u.jsxRuntimeExports.jsxs("svg",{...Qr,"aria-hidden":"true",className:`${we}__clear-button__icon ${we}__button__icon`,children:[u.jsxRuntimeExports.jsx("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),u.jsxRuntimeExports.jsx("line",{x1:"15",x2:"4",y1:"4",y2:"15"})]});function lo(e){const{autoFocus:t,calendarAriaLabel:n,calendarIcon:r=io,className:a,clearAriaLabel:o,clearIcon:s=co,closeCalendar:l=!0,"data-testid":c,dayAriaLabel:i,dayPlaceholder:f,disableCalendar:h,disabled:v,format:m,id:y,isOpen:p=null,locale:b,maxDate:_,maxDetail:O="month",minDate:P,monthAriaLabel:T,monthPlaceholder:F,name:Y="date",nativeInputAriaLabel:K,onCalendarClose:V,onCalendarOpen:Z,onChange:W,onFocus:ee,onInvalidChange:te,openCalendarOnFocus:se=!0,required:U,returnValue:ne="start",shouldCloseCalendar:k,shouldOpenCalendar:oe,showLeadingZeros:ie,value:M,yearAriaLabel:L,yearPlaceholder:J,...q}=e,[C,re]=x.useState(p),le=x.useRef(null),B=x.useRef(null);x.useEffect(()=>{re(p)},[p]);function G({reason:j}){oe&&!oe({reason:j})||(re(!0),Z&&Z())}const I=x.useCallback(({reason:j})=>{k&&!k({reason:j})||(re(!1),V&&V())},[V,k]);function ue(){C?I({reason:"buttonClick"}):G({reason:"buttonClick"})}function H(j,D=l){D&&I({reason:"select"}),W&&W(j)}function he(j){ee&&ee(j),!(v||C||!se||j.target.dataset.select==="true")&&G({reason:"focus"})}const ye=x.useCallback(j=>{j.key==="Escape"&&I({reason:"escape"})},[I]);function me(){H(null)}function N(j){j.stopPropagation()}const Q=x.useCallback(j=>{const{current:D}=le,{current:g}=B,E="composedPath"in j?j.composedPath()[0]:j.target;E&&D&&!D.contains(E)&&(!g||!g.contains(E))&&I({reason:"outsideAction"})},[I]),X=x.useCallback((j=C)=>{for(const D of oo)j?document.addEventListener(D,Q):document.removeEventListener(D,Q);j?document.addEventListener("keydown",ye):document.removeEventListener("keydown",ye)},[C,Q,ye]);x.useEffect(()=>(X(),()=>{X(!1)}),[X]);function de(){const[j]=Array.isArray(M)?M:[M],D={dayAriaLabel:i,monthAriaLabel:T,nativeInputAriaLabel:K,yearAriaLabel:L},g={dayPlaceholder:f,monthPlaceholder:F,yearPlaceholder:J};return u.jsxRuntimeExports.jsxs("div",{className:`${we}__wrapper`,children:[u.jsxRuntimeExports.jsx(Yt,{...D,...g,autoFocus:t,className:`${we}__inputGroup`,disabled:v,format:m,isCalendarOpen:C,locale:b,maxDate:_,maxDetail:O,minDate:P,name:Y,onChange:H,onInvalidChange:te,required:U,returnValue:ne,showLeadingZeros:ie,value:j}),s!==null&&u.jsxRuntimeExports.jsx("button",{"aria-label":o,className:`${we}__clear-button ${we}__button`,disabled:v,onClick:me,onFocus:N,type:"button",children:typeof s=="function"?x.createElement(s):s}),r!==null&&!h&&u.jsxRuntimeExports.jsx("button",{"aria-expanded":C||!1,"aria-label":n,className:`${we}__calendar-button ${we}__button`,disabled:v,onClick:ue,onFocus:N,type:"button",children:typeof r=="function"?x.createElement(r):r})]})}function pe(){if(C===null||h)return null;const{calendarProps:j,portalContainer:D,value:g}=e,E=`${we}__calendar`,S=je.clsx(E,`${E}--${C?"open":"closed"}`),R=u.jsxRuntimeExports.jsx(Ht,{locale:b,maxDate:_,maxDetail:O,minDate:P,onChange:$=>H($),value:g,...j});return D?Vt.createPortal(u.jsxRuntimeExports.jsx("div",{ref:B,className:S,children:R}),D):u.jsxRuntimeExports.jsx(d.Fit,{children:u.jsxRuntimeExports.jsx("div",{ref:$=>{$&&!C&&$.removeAttribute("style")},className:S,children:R})})}const w=x.useMemo(()=>d.makeEventProps(q),[q]);return u.jsxRuntimeExports.jsxs("div",{className:je.clsx(we,`${we}--${C?"open":"closed"}`,`${we}--${v?"disabled":"enabled"}`,a),"data-testid":c,id:y,...w,onFocus:he,ref:le,children:[de(),pe()]})}const _e="react-daterange-picker",so=["mousedown","focusin","touchstart"],Xr={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},uo=u.jsxRuntimeExports.jsxs("svg",{...Xr,"aria-hidden":"true",className:`${_e}__calendar-button__icon ${_e}__button__icon`,children:[u.jsxRuntimeExports.jsx("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),u.jsxRuntimeExports.jsx("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),u.jsxRuntimeExports.jsx("line",{x1:"13",x2:"13",y1:"0",y2:"4"})]}),fo=u.jsxRuntimeExports.jsxs("svg",{...Xr,"aria-hidden":"true",className:`${_e}__clear-button__icon ${_e}__button__icon`,children:[u.jsxRuntimeExports.jsx("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),u.jsxRuntimeExports.jsx("line",{x1:"15",x2:"4",y1:"4",y2:"15"})]});function vo(e){const{autoFocus:t,calendarAriaLabel:n,calendarIcon:r=uo,className:a,clearAriaLabel:o,clearIcon:s=fo,closeCalendar:l=!0,"data-testid":c,dayAriaLabel:i,dayPlaceholder:f,disableCalendar:h,disabled:v,format:m,id:y,isOpen:p=null,locale:b,maxDate:_,maxDetail:O="month",minDate:P,monthAriaLabel:T,monthPlaceholder:F,name:Y="daterange",nativeInputAriaLabel:K,onCalendarClose:V,onCalendarOpen:Z,onChange:W,onFocus:ee,onInvalidChange:te,openCalendarOnFocus:se=!0,rangeDivider:U="–",required:ne,shouldCloseCalendar:k,shouldOpenCalendar:oe,showLeadingZeros:ie,value:M,yearAriaLabel:L,yearPlaceholder:J,...q}=e,[C,re]=x.useState(p),le=x.useRef(null),B=x.useRef(null);x.useEffect(()=>{re(p)},[p]);function G({reason:g}){oe&&!oe({reason:g})||(re(!0),Z&&Z())}const I=x.useCallback(({reason:g})=>{k&&!k({reason:g})||(re(!1),V&&V())},[V,k]);function ue(){C?I({reason:"buttonClick"}):G({reason:"buttonClick"})}function H(g,E=l){E&&I({reason:"select"}),W&&W(g)}function he(g,E){const[S]=Array.isArray(g)?g:[g],[,R]=Array.isArray(M)?M:[M],$=R?new Date(R):null;H([S,$],E)}function ye(g,E){const[,S]=Array.isArray(g)?g:[null,g],[R]=Array.isArray(M)?M:[M],$=R?new Date(R):null;H([$,S],E)}function me(g){ee&&ee(g),!(v||C||!se||g.target.dataset.select==="true")&&G({reason:"focus"})}const N=x.useCallback(g=>{g.key==="Escape"&&I({reason:"escape"})},[I]);function Q(){H(null)}function X(g){g.stopPropagation()}const de=x.useCallback(g=>{const{current:E}=le,{current:S}=B,R="composedPath"in g?g.composedPath()[0]:g.target;R&&E&&!E.contains(R)&&(!S||!S.contains(R))&&I({reason:"outsideAction"})},[I]),pe=x.useCallback((g=C)=>{for(const E of so)g?document.addEventListener(E,de):document.removeEventListener(E,de);g?document.addEventListener("keydown",N):document.removeEventListener("keydown",N)},[C,de,N]);x.useEffect(()=>(pe(),()=>{pe(!1)}),[pe,C]);function w(){const[g,E]=Array.isArray(M)?M:[M],$={...{dayAriaLabel:i,monthAriaLabel:T,nativeInputAriaLabel:K,yearAriaLabel:L},...{dayPlaceholder:f,monthPlaceholder:F,yearPlaceholder:J},className:`${_e}__inputGroup`,disabled:v,format:m,isCalendarOpen:C,locale:b,maxDate:_,maxDetail:O,minDate:P,onInvalidChange:te,required:ne,showLeadingZeros:ie};return u.jsxRuntimeExports.jsxs("div",{className:`${_e}__wrapper`,children:[u.jsxRuntimeExports.jsx(Yt,{...$,autoFocus:t,name:`${Y}_from`,onChange:he,returnValue:"start",value:g}),u.jsxRuntimeExports.jsx("span",{className:`${_e}__range-divider`,children:U}),u.jsxRuntimeExports.jsx(Yt,{...$,name:`${Y}_to`,onChange:ye,returnValue:"end",value:E}),s!==null&&u.jsxRuntimeExports.jsx("button",{"aria-label":o,className:`${_e}__clear-button ${_e}__button`,disabled:v,onClick:Q,onFocus:X,type:"button",children:typeof s=="function"?x.createElement(s):s}),r!==null&&!h&&u.jsxRuntimeExports.jsx("button",{"aria-expanded":C||!1,"aria-label":n,className:`${_e}__calendar-button ${_e}__button`,disabled:v,onClick:ue,onFocus:X,type:"button",children:typeof r=="function"?x.createElement(r):r})]})}function j(){if(C===null||h)return null;const{calendarProps:g,portalContainer:E,value:S}=e,R=`${_e}__calendar`,$=je.clsx(R,`${R}--${C?"open":"closed"}`),z=u.jsxRuntimeExports.jsx(Ht,{locale:b,maxDate:_,maxDetail:O,minDate:P,onChange:fe=>H(fe),selectRange:!0,value:S,...g});return E?Vt.createPortal(u.jsxRuntimeExports.jsx("div",{ref:B,className:$,children:z}),E):u.jsxRuntimeExports.jsx(d.Fit,{children:u.jsxRuntimeExports.jsx("div",{ref:fe=>{fe&&!C&&fe.removeAttribute("style")},className:$,children:z})})}const D=x.useMemo(()=>d.makeEventProps(q),[q]);return u.jsxRuntimeExports.jsxs("div",{className:je.clsx(_e,`${_e}--${C?"open":"closed"}`,`${_e}--${v?"disabled":"enabled"}`,a),"data-testid":c,id:y,...D,onFocus:me,ref:le,children:[w(),j()]})}function mo(e){return rt.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"},child:[]}]})(e)}function ho(e){return rt.GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}const Sr=({disabled:e,error:t})=>u.jsxRuntimeExports.jsx(mo,{className:je.clsx({"fill-gray-400":e,"fill-gray-500":!e&&!t,"fill-red-500":t&&!e})}),Pr=({disabled:e,error:t,onClick:n})=>u.jsxRuntimeExports.jsx(ho,{className:je.clsx("w-5 h-5",{"fill-gray-400":e,"fill-gray-500":!e&&!t,"fill-red-500":t&&!e}),onClick:r=>{r.stopPropagation(),n()}}),Nr=d.dt.div`
49
2
  position: relative;
50
3
 
51
4
  input[type="number"]::-webkit-inner-spin-button,
@@ -100,20 +53,20 @@ Has styled-components' style tag been unmounted or altered by another script?
100
53
  flex-grow: 1;
101
54
  flex-shrink: 0;
102
55
 
103
- ${({showcalendar:e,error:t})=>{if(t)return Fe`
56
+ ${({showcalendar:e,error:t})=>{if(t)return d.lt`
104
57
  /* box-shadow: var(--shadow-inputError); */
105
58
  border-color: var(--color-danger);
106
- `;if(e==="true")return Fe`
59
+ `;if(e==="true")return d.lt`
107
60
  /* box-shadow: var(--shadow-inputBase); */
108
61
  /* border-color: var(--color-primary-700); */
109
62
  `}}
110
- ${({size:e})=>{if(e==="sm")return Fe`
63
+ ${({size:e})=>{if(e==="sm")return d.lt`
111
64
  padding-top: 2px;
112
65
  padding-bottom: 2px;
113
- `;if(e==="md")return Fe`
66
+ `;if(e==="md")return d.lt`
114
67
  padding-top: 4px;
115
68
  padding-bottom: 4px;
116
- `;if(e==="lg")return Fe`
69
+ `;if(e==="lg")return d.lt`
117
70
  padding-top: 6px;
118
71
  padding-bottom: 6px;
119
72
  `}}
@@ -295,7 +248,7 @@ Has styled-components' style tag been unmounted or altered by another script?
295
248
  border-radius: 50%;
296
249
  }
297
250
 
298
- ${({color:e})=>{switch(e){case"primary":return Fe`
251
+ ${({color:e})=>{switch(e){case"primary":return d.lt`
299
252
  .react-calendar__tile:enabled:hover,
300
253
  .react-calendar__tile:enabled:focus {
301
254
  background-color: var(--color-primary-100);
@@ -350,7 +303,7 @@ Has styled-components' style tag been unmounted or altered by another script?
350
303
 
351
304
  border-radius: 0 8px 8px 0;
352
305
  }
353
- `;case"success":return Fe`
306
+ `;case"success":return d.lt`
354
307
  .react-calendar__tile:enabled:hover,
355
308
  .react-calendar__tile:enabled:focus {
356
309
  background-color: var(--color-success-100);
@@ -405,7 +358,7 @@ Has styled-components' style tag been unmounted or altered by another script?
405
358
 
406
359
  border-radius: 0 8px 8px 0;
407
360
  }
408
- `;default:return Fe``}}}
361
+ `;default:return d.lt``}}}
409
362
 
410
363
  .react-calendar--doubleView .react-calendar__tile--active {
411
364
  background-color: var(--color-gray-100);
@@ -423,5 +376,5 @@ Has styled-components' style tag been unmounted or altered by another script?
423
376
  }
424
377
 
425
378
  /* RANGE */
426
- `,hl=({id:e,value:t,showDoubleView:r,classNameContainer:n,className:a,color:o="primary",minDate:i,maxDate:s,showCalendar:c=!1,loading:u,widthCalendar:d,locale:p="es",format:f="MM/dd/yyyy",disabled:l,error:h,label:m,touched:y,required:g,onChange:_,onCloseCalendar:E,onOpenCalendar:O,tileDisabled:C,onClearCalendar:x,onInvalidChange:S,onKeyDown:A,onKeyUp:U,onBlur:W,type:te="date-picker",size:Q="md",tileContent:se=null})=>{const[H,re]=b.useState(c),T=b.useRef(0),ae=ai.v4(),ne=b.useId(),R=e||ne,M=!l&&!!h&&y;b.useEffect(()=>{const G=document.getElementById(ae);G&&(d?T.current=d:T.current=G.clientWidth)},[r,ae,d]);const F=G=>{_(G),re(!1)},L=()=>{const G=new Date,$=new Date(G.getFullYear(),G.getMonth(),G.getDate(),0,0,0);F($)},N=()=>{l||(re(!1),E&&E())},J=()=>{if(l)return;const G=!H;re(G),G&&O?O():E&&E()},ce=()=>{if(!l){if(x)return x();_(null)}},z=ni.cn("form-control-label block font-normal text-sm text-foreground mb-1",{"text-danger":M});return v.jsxRuntimeExports.jsx(pi.Popover,{isOpen:H,containerStyle:{zIndex:"100"},content:v.jsxRuntimeExports.jsxs(Va,{color:o,showcalendar:H.toString(),widthcalendar:T.current,className:"shadow-medium bg-content1 rounded-md",children:[u?v.jsxRuntimeExports.jsx("p",{children:"loading"}):null,v.jsxRuntimeExports.jsxs("div",{className:"w-full relative flex flex-col gap-2",children:[v.jsxRuntimeExports.jsx(jn,{value:t,onChange:F,locale:p,showDoubleView:r,calendarType:"gregory",minDate:i,maxDate:s,tileDisabled:C,selectRange:te==="date-range-picker",returnValue:te==="date-range-picker"?"range":"start",prevLabel:v.jsxRuntimeExports.jsx(vi,{className:"w-4 h-5"}),nextLabel:v.jsxRuntimeExports.jsx(hi,{className:"w-4 h-5"}),tileContent:se}),v.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-x-4 p-3 w-full",children:[v.jsxRuntimeExports.jsx(zn.Button,{onClick:L,color:o,className:"flex-1",children:"Hoy"}),v.jsxRuntimeExports.jsx(zn.Button,{color:"default",variant:"bordered",className:"flex-1",onClick:()=>re(!1),children:"Cerrar"})]})]})]}),positions:["bottom","top"],reposition:!0,onClickOutside:N,clickOutsideCapture:!0,children:v.jsxRuntimeExports.jsxs(Va,{color:o,className:Cr.twMerge(n,"relative"),onClick:J,showcalendar:H.toString(),id:ae,widthcalendar:T.current,error:h,size:Q,children:[m&&v.jsxRuntimeExports.jsxs("label",{htmlFor:R,className:z,children:[m," ",g&&v.jsxRuntimeExports.jsx("span",{className:"text-danger",children:"*"})]}),te==="date-picker"?v.jsxRuntimeExports.jsx(tu,{id:R,value:t,onChange:_,calendarIcon:v.jsxRuntimeExports.jsx(wa,{disabled:l,error:h}),shouldOpenCalendar:()=>!1,className:Cr.twMerge("w-full h-input-default",a),format:f,locale:p,showLeadingZeros:!0,clearIcon:v.jsxRuntimeExports.jsx(_a,{disabled:l,error:h,onClick:ce}),minDate:i,maxDate:s,disabled:l,onInvalidChange:S,isOpen:!1,onKeyDown:A,onKeyUp:U,onBlur:W,dayPlaceholder:"DD",monthPlaceholder:"MM",yearPlaceholder:"YYYY"}):v.jsxRuntimeExports.jsx(ou,{id:R,value:t,onChange:_,calendarIcon:v.jsxRuntimeExports.jsx(wa,{disabled:l,error:h}),shouldOpenCalendar:()=>!1,className:Cr.twMerge("w-full",a),format:f,locale:p,showLeadingZeros:!0,clearIcon:v.jsxRuntimeExports.jsx(_a,{disabled:l,error:h,onClick:ce}),minDate:i,maxDate:s,disabled:l,onInvalidChange:S,isOpen:!1,onKeyDown:A,onKeyUp:U,dayPlaceholder:"DD",monthPlaceholder:"MM",yearPlaceholder:"YYYY"}),!l&&h?v.jsxRuntimeExports.jsx(ri.LabelError,{text:h}):null]})})};exports.CalendarPicker=hl;
379
+ `,po=({id:e,value:t,showDoubleView:n,classNameContainer:r,className:a,color:o="primary",minDate:s,maxDate:l,showCalendar:c=!1,loading:i,widthCalendar:f,locale:h="es",format:v="MM/dd/yyyy",disabled:m,error:y,label:p,touched:b,required:_,onChange:O,onCloseCalendar:P,onOpenCalendar:T,tileDisabled:F,onClearCalendar:Y,onInvalidChange:K,onKeyDown:V,onKeyUp:Z,onBlur:W,type:ee="date-picker",size:te="md",tileContent:se=null})=>{const[U,ne]=x.useState(c),k=x.useRef(0),oe=fn.v4(),ie=x.useId(),M=e||ie,L=!m&&!!y&&b;x.useEffect(()=>{const G=document.getElementById(oe);G&&(f?k.current=f:k.current=G.clientWidth)},[n,oe,f]);const J=G=>{O(G),ne(!1)},q=()=>{const G=new Date,I=new Date(G.getFullYear(),G.getMonth(),G.getDate(),0,0,0);J(I)},C=()=>{m||(ne(!1),P&&P())},re=()=>{if(m)return;const G=!U;ne(G),G&&T?T():P&&P()},le=()=>{if(!m){if(Y)return Y();O(null)}},B=dn.cn("form-control-label block font-normal text-sm text-foreground mb-1",{"text-danger":L});return u.jsxRuntimeExports.jsx(bn.Popover,{isOpen:U,containerStyle:{zIndex:"100"},content:u.jsxRuntimeExports.jsxs(Nr,{color:o,showcalendar:U.toString(),widthcalendar:k.current,className:"shadow-medium bg-content1 rounded-md",children:[i?u.jsxRuntimeExports.jsx("p",{children:"loading"}):null,u.jsxRuntimeExports.jsxs("div",{className:"w-full relative flex flex-col gap-2",children:[u.jsxRuntimeExports.jsx(Ht,{value:t,onChange:J,locale:h,showDoubleView:n,calendarType:"gregory",minDate:s,maxDate:l,tileDisabled:F,selectRange:ee==="date-range-picker",returnValue:ee==="date-range-picker"?"range":"start",prevLabel:u.jsxRuntimeExports.jsx(xn,{className:"w-4 h-5"}),nextLabel:u.jsxRuntimeExports.jsx(wn,{className:"w-4 h-5"}),tileContent:se}),u.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-x-4 p-3 w-full",children:[u.jsxRuntimeExports.jsx(or.Button,{onClick:q,color:o,className:"flex-1",children:"Hoy"}),u.jsxRuntimeExports.jsx(or.Button,{color:"default",variant:"bordered",className:"flex-1",onClick:()=>ne(!1),children:"Cerrar"})]})]})]}),positions:["bottom","top"],reposition:!0,onClickOutside:C,clickOutsideCapture:!0,children:u.jsxRuntimeExports.jsxs(Nr,{color:o,className:gt.twMerge(r,"relative"),onClick:re,showcalendar:U.toString(),id:oe,widthcalendar:k.current,error:y,size:te,children:[p&&u.jsxRuntimeExports.jsxs("label",{htmlFor:M,className:B,children:[p," ",_&&u.jsxRuntimeExports.jsx("span",{className:"text-danger",children:"*"})]}),ee==="date-picker"?u.jsxRuntimeExports.jsx(lo,{id:M,value:t,onChange:O,calendarIcon:u.jsxRuntimeExports.jsx(Sr,{disabled:m,error:y}),shouldOpenCalendar:()=>!1,className:gt.twMerge("w-full h-input-default",a),format:v,locale:h,showLeadingZeros:!0,clearIcon:u.jsxRuntimeExports.jsx(Pr,{disabled:m,error:y,onClick:le}),minDate:s,maxDate:l,disabled:m,onInvalidChange:K,isOpen:!1,onKeyDown:V,onKeyUp:Z,onBlur:W,dayPlaceholder:"DD",monthPlaceholder:"MM",yearPlaceholder:"YYYY"}):u.jsxRuntimeExports.jsx(vo,{id:M,value:t,onChange:O,calendarIcon:u.jsxRuntimeExports.jsx(Sr,{disabled:m,error:y}),shouldOpenCalendar:()=>!1,className:gt.twMerge("w-full",a),format:v,locale:h,showLeadingZeros:!0,clearIcon:u.jsxRuntimeExports.jsx(Pr,{disabled:m,error:y,onClick:le}),minDate:s,maxDate:l,disabled:m,onInvalidChange:K,isOpen:!1,onKeyDown:V,onKeyUp:Z,dayPlaceholder:"DD",monthPlaceholder:"MM",yearPlaceholder:"YYYY"}),!m&&y?u.jsxRuntimeExports.jsx(un.LabelError,{text:y}):null]})})};exports.CalendarPicker=po;
427
380
  //# sourceMappingURL=index.cjs.js.map