diff --git a/asset-manifest.json b/asset-manifest.json index d0f6982..ac46ade 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,14 +1,14 @@ { "files": { "main.css": "/json-edit-react/static/css/main.8f0c8e39.css", - "main.js": "/json-edit-react/static/js/main.76f3572e.js", + "main.js": "/json-edit-react/static/js/main.550c9c88.js", "static/media/logo_400.png": "/json-edit-react/static/media/logo_400.8a91f110688ad1aa0011.png", "index.html": "/json-edit-react/index.html", "main.8f0c8e39.css.map": "/json-edit-react/static/css/main.8f0c8e39.css.map", - "main.76f3572e.js.map": "/json-edit-react/static/js/main.76f3572e.js.map" + "main.550c9c88.js.map": "/json-edit-react/static/js/main.550c9c88.js.map" }, "entrypoints": [ "static/css/main.8f0c8e39.css", - "static/js/main.76f3572e.js" + "static/js/main.550c9c88.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index b24d247..afc6e81 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -JSON•Edit•React
\ No newline at end of file +JSON•Edit•React
\ No newline at end of file diff --git a/static/js/main.76f3572e.js b/static/js/main.550c9c88.js similarity index 99% rename from static/js/main.76f3572e.js rename to static/js/main.550c9c88.js index 19b1d56..d3f9555 100644 --- a/static/js/main.76f3572e.js +++ b/static/js/main.550c9c88.js @@ -1,3 +1,3 @@ -/*! For license information please see main.76f3572e.js.LICENSE.txt */ -(()=>{var e={4101:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>Vt,CompositeItem:()=>Ut,FloatingArrow:()=>Zt,FloatingDelayGroup:()=>dn,FloatingFocusManager:()=>Un,FloatingList:()=>Mt,FloatingNode:()=>tn,FloatingOverlay:()=>Hn,FloatingPortal:()=>On,FloatingTree:()=>nn,arrow:()=>Ve,autoPlacement:()=>Re,autoUpdate:()=>Pe,computePosition:()=>Be,detectOverflow:()=>ue,flip:()=>Ie,getOverflowAncestors:()=>x,hide:()=>Oe,inline:()=>je,inner:()=>wr,limitShift:()=>Fe,offset:()=>pe,platform:()=>Ae,safePolygon:()=>Sr,shift:()=>Ne,size:()=>Me,useClick:()=>Kn,useClientPoint:()=>Gn,useDelayGroup:()=>hn,useDelayGroupContext:()=>un,useDismiss:()=>Jn,useFloating:()=>er,useFloatingNodeId:()=>en,useFloatingParentNodeId:()=>Xt,useFloatingPortalNode:()=>Mn,useFloatingTree:()=>Jt,useFocus:()=>tr,useHover:()=>ln,useId:()=>Kt,useInnerOffset:()=>kr,useInteractions:()=>ar,useListItem:()=>Ot,useListNavigation:()=>dr,useMergeRefs:()=>ft,useRole:()=>fr,useTransitionStatus:()=>gr,useTransitionStyles:()=>vr,useTypeahead:()=>yr});var r=n(2791),o=n.t(r,2);function a(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return e instanceof Node||e instanceof i(e).Node}function c(e){return e instanceof Element||e instanceof i(e).Element}function u(e){return e instanceof HTMLElement||e instanceof i(e).HTMLElement}function d(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function h(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function f(e){return["table","td","th"].includes(a(e))}function p(e){const t=g(),n=y(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function m(e){let t=w(e);for(;u(t)&&!v(t);){if(p(t))return t;t=w(t)}return null}function g(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function v(e){return["html","body","#document"].includes(a(e))}function y(e){return i(e).getComputedStyle(e)}function b(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function w(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||d(e)&&e.host||s(e);return d(t)?t.host:t}function k(e){const t=w(e);return v(t)?e.ownerDocument?e.ownerDocument.body:e.body:u(t)&&h(t)?t:k(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=k(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),s=i(o);return a?t.concat(s,s.visualViewport||[],h(o)?o:[],s.frameElement&&n?x(s.frameElement):[]):t.concat(o,x(o,[],n))}function S(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function C(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&d(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function E(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function _(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function T(e){return!(0!==e.mozInputSource||!e.isTrusted)||(P()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function D(e){return!_().includes("jsdom/")&&(!P()&&0===e.width&&0===e.height||P()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function A(){return/apple/i.test(navigator.vendor)}function P(){const e=/android/i;return e.test(E())||e.test(_())}function R(){return E().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function N(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function I(e){return(null==e?void 0:e.ownerDocument)||document}function M(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function O(e){return"composedPath"in e?e.composedPath()[0]:e.target}const L="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function j(e){return u(e)&&e.matches(L)}function F(e){e.preventDefault(),e.stopPropagation()}function B(e){return!!e&&("combobox"===e.getAttribute("role")&&j(e))}const z=["top","right","bottom","left"],V=["start","end"],U=z.reduce(((e,t)=>e.concat(t,t+"-"+V[0],t+"-"+V[1])),[]),W=Math.min,H=Math.max,Y=Math.round,q=Math.floor,K=e=>({x:e,y:e}),Z={left:"right",right:"left",bottom:"top",top:"bottom"},G={start:"end",end:"start"};function Q(e,t,n){return H(e,W(t,n))}function $(e,t){return"function"===typeof e?e(t):e}function X(e){return e.split("-")[0]}function J(e){return e.split("-")[1]}function ee(e){return"x"===e?"y":"x"}function te(e){return"y"===e?"height":"width"}function ne(e){return["top","bottom"].includes(X(e))?"y":"x"}function re(e){return ee(ne(e))}function oe(e,t,n){void 0===n&&(n=!1);const r=J(e),o=re(e),a=te(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=ie(i)),[i,ie(i)]}function ae(e){return e.replace(/start|end/g,(e=>G[e]))}function ie(e){return e.replace(/left|right|bottom|top/g,(e=>Z[e]))}function se(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function le(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ce(e,t,n){let{reference:r,floating:o}=e;const a=ne(t),i=re(t),s=te(i),l=X(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(J(t)){case"start":f[i]-=h*(n&&c?-1:1);break;case"end":f[i]+=h*(n&&c?-1:1)}return f}async function ue(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=$(t,e),p=se(f),m=s[h?"floating"===d?"reference":"floating":d],g=le(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...i.floating,x:r,y:o}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=le(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}function de(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function he(e){return z.some((t=>e[t]>=0))}function fe(e){const t=W(...e.map((e=>e.left))),n=W(...e.map((e=>e.top)));return{x:t,y:n,width:H(...e.map((e=>e.right)))-t,height:H(...e.map((e=>e.bottom)))-n}}const pe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=X(n),s=J(n),l="y"===ne(n),c=["left","top"].includes(i)?-1:1,u=a&&l?-1:1,d=$(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"===typeof p&&(f="end"===s?-1*p:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}};function me(e){const t=y(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=u(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Y(n)!==a||Y(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function ge(e){return c(e)?e:e.contextElement}function ve(e){const t=ge(e);if(!u(t))return K(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=me(t);let i=(a?Y(n.width):n.width)/r,s=(a?Y(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const ye=K(0);function be(e){const t=i(e);return g()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ye}function we(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=ge(e);let s=K(1);t&&(r?c(r)&&(s=ve(r)):s=ve(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==i(e))&&t}(a,n,r)?be(a):K(0);let u=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,h=o.width/s.x,f=o.height/s.y;if(a){const e=i(a),t=r&&c(r)?i(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=ve(n),t=n.getBoundingClientRect(),r=y(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,h*=e.x,f*=e.y,u+=o,d+=a,n=i(n).frameElement}}return le({width:h,height:f,x:u,y:d})}const ke=[":popover-open",":modal"];function xe(e){let t=!1,n=0,r=0;ke.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch(r){}}(n)}));const o=m(e);if(t&&o){const e=o.getBoundingClientRect();n=e.x,r=e.y}return[t,n,r]}function Se(e){return we(s(e)).left+b(e).scrollLeft}function Ce(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=i(e),r=s(e),o=n.visualViewport;let a=r.clientWidth,l=r.clientHeight,c=0,u=0;if(o){a=o.width,l=o.height;const e=g();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:l,x:c,y:u}}(e,n);else if("document"===t)r=function(e){const t=s(e),n=b(e),r=e.ownerDocument.body,o=H(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=H(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Se(e);const l=-n.scrollTop;return"rtl"===y(r).direction&&(i+=H(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(s(e));else if(c(t))r=function(e,t){const n=we(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=u(e)?ve(e):K(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=be(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return le(r)}function Ee(e,t){const n=w(e);return!(n===t||!c(n)||v(n))&&("fixed"===y(n).position||Ee(n,t))}function _e(e,t,n,r){const o=u(t),i=s(t),l="fixed"===n,c=we(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const f=K(0);if(o||!o&&!l)if(("body"!==a(t)||h(i))&&(d=b(t)),o){const e=we(t,!0,l,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}else i&&(f.x=Se(i));let p=c.left+d.scrollLeft-f.x,m=c.top+d.scrollTop-f.y;const[g,v,y]=xe(r);return g&&(p+=v,m+=y,o&&(p+=t.clientLeft,m+=t.clientTop)),{x:p,y:m,width:c.width,height:c.height}}function Te(e,t){return u(e)&&"fixed"!==y(e).position?t?t(e):e.offsetParent:null}function De(e,t){const n=i(e);if(!u(e))return n;let r=Te(e,t);for(;r&&f(r)&&"static"===y(r).position;)r=Te(r,t);return r&&("html"===a(r)||"body"===a(r)&&"static"===y(r).position&&!p(r))?n:r||m(e)||n}const Ae={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=s(r),[l]=t?xe(t.floating):[!1];if(r===i||l)return n;let c={scrollLeft:0,scrollTop:0},d=K(1);const f=K(0),p=u(r);if((p||!p&&"fixed"!==o)&&(("body"!==a(r)||h(i))&&(c=b(r)),u(r))){const e=we(r);d=ve(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x,y:n.y*d.y-c.scrollTop*d.y+f.y}},getDocumentElement:s,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=x(e,[],!1).filter((e=>c(e)&&"body"!==a(e))),o=null;const i="fixed"===y(e).position;let s=i?w(e):e;for(;c(s)&&!v(s);){const t=y(s),n=p(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||h(s)&&!n&&Ee(e,s))?r=r.filter((e=>e!==s)):o=t,s=w(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],l=i.reduce(((e,n)=>{const r=Ce(t,n,o);return e.top=H(r.top,e.top),e.right=W(r.right,e.right),e.bottom=W(r.bottom,e.bottom),e.left=H(r.left,e.left),e}),Ce(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:De,getElementRects:async function(e){const t=this.getOffsetParent||De,n=this.getDimensions;return{reference:_e(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=me(e);return{width:t,height:n}},getScale:ve,isElement:c,isRTL:function(e){return"rtl"===y(e).direction}};function Pe(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"===typeof ResizeObserver,layoutShift:l="function"===typeof IntersectionObserver,animationFrame:c=!1}=r,u=ge(e),d=o||a?[...u?x(u):[],...x(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const h=u&&l?function(e,t){let n,r=null;const o=s(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f={rootMargin:-q(u)+"px "+-q(o.clientWidth-(c+d))+"px "+-q(o.clientHeight-(u+h))+"px "+-q(c)+"px",threshold:H(0,W(1,l))||1};let p=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}p=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(g){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),u&&!c&&m.observe(u),m.observe(t));let g=c?we(e):null;return c&&function t(){const r=we(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(f)}}const Re=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:a,middlewareData:i,placement:s,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:h=U,autoAlignment:f=!0,...p}=$(e,t),m=void 0!==d||h===U?function(e,t,n){return(e?[...n.filter((t=>J(t)===e)),...n.filter((t=>J(t)!==e))]:n.filter((e=>X(e)===e))).filter((n=>!e||J(n)===e||!!t&&ae(n)!==n))}(d||null,f,h):h,g=await ue(t,p),v=(null==(n=i.autoPlacement)?void 0:n.index)||0,y=m[v];if(null==y)return{};const b=oe(y,a,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==y)return{reset:{placement:m[0]}};const w=[g[X(y)],g[b[0]],g[b[1]]],k=[...(null==(r=i.autoPlacement)?void 0:r.overflows)||[],{placement:y,overflows:w}],x=m[v+1];if(x)return{data:{index:v+1,overflows:k},reset:{placement:x}};const S=k.map((e=>{const t=J(e.placement);return[e.placement,t&&u?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),C=(null==(o=S.filter((e=>e[2].slice(0,J(e[0])?2:3).every((e=>e<=0))))[0])?void 0:o[0])||S[0][0];return C!==s?{data:{index:v+1,overflows:k},reset:{placement:C}}:{}}}},Ne=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$(e,t),c={x:n,y:r},u=await ue(t,l),d=ne(X(o)),h=ee(d);let f=c[h],p=c[d];if(a){const e="y"===h?"bottom":"right";f=Q(f+u["y"===h?"top":"left"],f,f-u[e])}if(i){const e="y"===d?"bottom":"right";p=Q(p+u["y"===d?"top":"left"],p,p-u[e])}const m=s.fn({...t,[h]:f,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Ie=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=$(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const v=X(o),y=X(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=h||(y||!m?[ie(s)]:function(e){const t=ie(e);return[ae(e),t,ae(t)]}(s));h||"none"===p||w.push(...function(e,t,n,r){const o=J(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(X(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(ae)))),a}(s,m,p,b));const k=[s,...w],x=await ue(t,g),S=[];let C=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&S.push(x[v]),d){const e=oe(o,i,b);S.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,_;const e=((null==(E=a.flip)?void 0:E.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(_=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:_.placement;if(!n)switch(f){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Me=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=(()=>{}),...s}=$(e,t),l=await ue(t,s),c=X(n),u=J(n),d="y"===ne(n),{width:h,height:f}=r.floating;let p,m;"top"===c||"bottom"===c?(p=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=c,p="end"===u?"top":"bottom");const g=f-l[p],v=h-l[m],y=!t.middlewareData.shift;let b=g,w=v;if(d){const e=h-l.left-l.right;w=u||y?W(v,e):e}else{const e=f-l.top-l.bottom;b=u||y?W(g,e):e}if(y&&!u){const e=H(l.left,0),t=H(l.right,0),n=H(l.top,0),r=H(l.bottom,0);d?w=h-2*(0!==e||0!==t?e+t:H(l.left,l.right)):b=f-2*(0!==n||0!==r?n+r:H(l.top,l.bottom))}await i({...t,availableWidth:w,availableHeight:b});const k=await o.getDimensions(a.floating);return h!==k.width||f!==k.height?{reset:{rects:!0}}:{}}}},Oe=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=$(e,t);switch(r){case"referenceHidden":{const e=de(await ue(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:he(e)}}}case"escaped":{const e=de(await ue(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:he(e)}}}default:return{}}}}},Le=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=$(e,t)||{};if(null==c)return{};const d=se(u),h={x:n,y:r},f=re(o),p=te(f),m=await i.getDimensions(c),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[p]+a.reference[f]-h[f]-a.floating[p],k=h[f]-a.reference[f],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let S=x?x[b]:0;S&&await(null==i.isElement?void 0:i.isElement(x))||(S=s.floating[b]||a.floating[p]);const C=w/2-k/2,E=S/2-m[p]/2-1,_=W(d[v],E),T=W(d[y],E),D=_,A=S-m[p]-T,P=S/2-m[p]/2+C,R=Q(D,P,A),N=!l.arrow&&null!=J(o)&&P!==R&&a.reference[p]/2-(Pe.y-t.y)),n=[];let r=null;for(let o=0;or.height/2?n.push([e]):n[n.length-1].push(e),r=e}return n.map((e=>le(fe(e))))}(u),h=le(fe(u)),f=se(s);const p=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=c)return d.find((e=>l>e.left-f.left&&le.top-f.top&&c=2){if("y"===ne(n)){const e=d[0],t=d[d.length-1],r="top"===X(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:a,left:i,right:s,width:s-i,height:a-o,x:i,y:o}}const e="left"===X(n),t=H(...d.map((e=>e.right))),r=W(...d.map((e=>e.left))),o=d.filter((n=>e?n.left===r:n.right===t)),a=o[0].top,i=o[o.length-1].bottom;return{top:a,bottom:i,left:r,right:t,width:t-r,height:i-a,x:r,y:a}}return h}},floating:r.floating,strategy:i});return o.reference.x!==p.reference.x||o.reference.y!==p.reference.y||o.reference.width!==p.reference.width||o.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},Fe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=$(e,t),u={x:n,y:r},d=ne(o),h=ee(d);let f=u[h],p=u[d];const m=$(s,t),g="number"===typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===h?"height":"width",t=a.reference[h]-a.floating[e]+g.mainAxis,n=a.reference[h]+a.reference[e]-g.mainAxis;fn&&(f=n)}if(c){var v,y;const e="y"===h?"width":"height",t=["top","left"].includes(X(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);pr&&(p=r)}return{[h]:f,[d]:p}}}},Be=(e,t,n)=>{const r=new Map,o={platform:Ae,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=ce(c,r,l),h=r,f={},p=0;for(let m=0;m({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"===typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Le({element:n.current,padding:r}).fn(t):{}:n?Le({element:n,padding:r}).fn(t):{};var o}});var Ue="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function We(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!We(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!We(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function He(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ye(e,t){const n=He(e);return Math.round(t*n)/n}function qe(e){const t=r.useRef(e);return Ue((()=>{t.current=e})),t}var Ke=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ze=Ke.join(","),Ge="undefined"===typeof Element,Qe=Ge?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$e=!Ge&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},Xe=function e(t,n){var r;void 0===n&&(n=!0);var o=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},Je=function(e,t,n){if(Xe(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Ze));return t&&Qe.call(e,Ze)&&r.unshift(e),r=r.filter(n)},et=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!Xe(i,!1))if("SLOT"===i.tagName){var s=i.assignedElements(),l=e(s.length?s:i.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{Qe.call(i,Ze)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var c=i.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(i),u=!Xe(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(c&&u){var d=e(!0===c?i.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},tt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},nt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!tt(e)?0:e.tabIndex},rt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ot=function(e){return"INPUT"===e.tagName},at=function(e){return function(e){return ot(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||$e(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(Qe.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return it(e)}else{if("function"===typeof r){for(var a=e;e;){var i=e.parentElement,s=$e(e);if(i&&!i.shadowRoot&&!0===r(i))return it(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=a}if(function(e){var t,n,r,o,a=e&&$e(e),i=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&i;){var l,c,u;s=!(null===(c=i=null===(l=a=$e(i))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},lt=function(e,t){return!(t.disabled||Xe(t)||function(e){return ot(e)&&"hidden"===e.type}(t)||st(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},dt=function e(t){var n=[],r=[];return t.forEach((function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,s=function(e,t){var n=nt(e);return n<0&&t&&!tt(e)?0:n}(i,a),l=a?e(t.candidates):i;0===s?a?n.push.apply(n,l):n.push(i):r.push({documentOrder:o,tabIndex:s,item:t,isScope:a,content:l})})),r.sort(rt).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},ht=function(e,t){var n;return n=(t=t||{}).getShadowRoot?et([e],t.includeContainer,{filter:ct.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ut}):Je(e,t.includeContainer,ct.bind(null,t)),dt(n)};function ft(e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"===typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const pt=o["useInsertionEffect".toString()]||(e=>e());function mt(e){const t=r.useRef((()=>{0}));return pt((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r=e.current.length}function xt(e,t){return Ct(e,{disabledIndices:t})}function St(e,t){return Ct(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Ct(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t;const i=e.current,s=o?e=>o.includes(e):e=>{const t=i[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let l=n;do{l+=r?-a:a}while(l>=0&&l<=i.length-1&&s(l));return l}function Et(e,t){let{event:n,orientation:r,loop:o,cols:a,disabledIndices:i,minIndex:s,maxIndex:l,prevIndex:c,stopEvent:u=!1}=t,d=c;if(n.key===gt){if(u&&F(n),-1===c)d=l;else if(d=Ct(e,{startingIndex:d,amount:a,decrement:!0,disabledIndices:i}),o&&(c-ae?n:n-a}kt(e,d)&&(d=c)}if(n.key===vt&&(u&&F(n),-1===c?d=s:(d=Ct(e,{startingIndex:c,amount:a,disabledIndices:i}),o&&c+a>l&&(d=Ct(e,{startingIndex:c%a-a,amount:a,disabledIndices:i}))),kt(e,d)&&(d=c)),"both"===r){const t=q(c/a);n.key===bt&&(u&&F(n),c%a!==a-1?(d=Ct(e,{startingIndex:c,disabledIndices:i}),o&&wt(d,a,t)&&(d=Ct(e,{startingIndex:c-c%a-1,disabledIndices:i}))):o&&(d=Ct(e,{startingIndex:c-c%a-1,disabledIndices:i})),wt(d,a,t)&&(d=c)),n.key===yt&&(u&&F(n),c%a!==0?(d=Ct(e,{startingIndex:c,disabledIndices:i,decrement:!0}),o&&wt(d,a,t)&&(d=Ct(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:i}))):o&&(d=Ct(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:i})),wt(d,a,t)&&(d=c));const r=q(l/a)===t;kt(e,d)&&(d=o&&r?n.key===yt?l:Ct(e,{startingIndex:c-c%a-1,disabledIndices:i}):c)}return d}function _t(e,t,n){const r=[];let o=0;return e.forEach(((e,a)=>{let{width:i,height:s}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;nnull==r[e]))?(e.forEach((e=>{r[e]=a})),l=!0):o++}})),[...r]}function Tt(e,t,n,r,o){if(-1===e)return-1;const a=n.indexOf(e);switch(o){case"tl":return a;case"tr":return a+t[e].width-1;case"bl":return a+(t[e].height-1)*r;case"br":return n.lastIndexOf(e)}}function Dt(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}let At=0;function Pt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(At);const a=()=>null==e?void 0:e.focus({preventScroll:n});o?a():At=requestAnimationFrame(a)}var Rt="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function Nt(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const It=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Mt(e){let{children:t,elementsRef:n,labelsRef:o}=e;const[a,i]=r.useState((()=>new Map)),s=r.useCallback((e=>{i((t=>new Map(t).set(e,null)))}),[]),l=r.useCallback((e=>{i((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return Rt((()=>{const e=new Map(a);Array.from(e.keys()).sort(Nt).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(a,e)||i(e)}),[a]),r.createElement(It.Provider,{value:r.useMemo((()=>({register:s,unregister:l,map:a,elementsRef:n,labelsRef:o})),[s,l,a,n,o])},t)}function Ot(e){let{label:t}=void 0===e?{}:e;const[n,o]=r.useState(null),a=r.useRef(null),{register:i,unregister:s,map:l,elementsRef:c,labelsRef:u}=r.useContext(It),d=r.useCallback((e=>{if(a.current=e,null!==n&&(c.current[n]=e,u)){var r;const o=void 0!==t;u.current[n]=o?t:null!=(r=null==e?void 0:e.textContent)?r:null}}),[n,c,u,t]);return Rt((()=>{const e=a.current;if(e)return i(e),()=>{s(e)}}),[i,s]),Rt((()=>{const e=a.current?l.get(a.current):null;null!=e&&o(e)}),[l]),r.useMemo((()=>({ref:d,index:null==n?-1:n})),[n,d])}function Lt(e,t){return"function"===typeof e?e(t):e?r.cloneElement(e,t):r.createElement("div",t)}const jt=r.createContext({activeIndex:0,onNavigate:()=>{}}),Ft=[yt,bt],Bt=[gt,vt],zt=[...Ft,...Bt],Vt=r.forwardRef((function(e,t){let{render:n,orientation:o="both",loop:a=!0,cols:i=1,disabledIndices:s=[],activeIndex:l,onNavigate:c,itemSizes:u,dense:d=!1,...h}=e;const[f,p]=r.useState(0),m=null!=l?l:f,g=mt(null!=c?c:p),v=r.useRef([]),y=n&&"function"!==typeof n?n.props:{},b=r.useMemo((()=>({activeIndex:m,onNavigate:g})),[m,g]),w=i>1;const k={...h,...y,ref:t,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==h.onKeyDown||h.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!zt.includes(e.key))return;let t=m;if(w){const n=u||Array.from({length:v.current.length},(()=>({width:1,height:1}))),r=_t(n,i,d),l=r.findIndex((e=>null!=e&&!s.includes(e))),c=r.reduce(((e,t,n)=>null==t||null!=s&&s.includes(t)?e:n),-1);t=r[Et({current:r.map((e=>e?v.current[e]:null))},{event:e,orientation:o,loop:a,cols:i,disabledIndices:Dt([...s,void 0],r),minIndex:l,maxIndex:c,prevIndex:Tt(m,n,r,i,e.key===vt?"bl":e.key===bt?"tr":"tl")})]}const n=xt(v,s),r=St(v,s),l={horizontal:[bt],vertical:[vt],both:[bt,vt]}[o],c={horizontal:[yt],vertical:[gt],both:[yt,gt]}[o],h=w?zt:{horizontal:Ft,vertical:Bt,both:zt}[o];t===m&&[...l,...c].includes(e.key)&&(t=a&&t===r&&l.includes(e.key)?n:a&&t===n&&c.includes(e.key)?r:Ct(v,{startingIndex:t,decrement:c.includes(e.key),disabledIndices:s})),t===m||kt(v,t)||(e.stopPropagation(),h.includes(e.key)&&e.preventDefault(),g(t),queueMicrotask((()=>{Pt(v.current[t])})))}(e)}};return r.createElement(jt.Provider,{value:b},r.createElement(Mt,{elementsRef:v},Lt(n,k)))})),Ut=r.forwardRef((function(e,t){let{render:n,...o}=e;const a=n&&"function"!==typeof n?n.props:{},{activeIndex:i,onNavigate:s}=r.useContext(jt),{ref:l,index:c}=Ot(),u=ft([l,t,a.ref]),d=i===c;return Lt(n,{...o,...a,ref:u,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==a.onFocus||a.onFocus(e),s(c)}})}));function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Yt++;const Kt=o["useId".toString()]||function(){const[e,t]=r.useState((()=>Ht?qt():void 0));return Rt((()=>{null==e&&t(qt())}),[]),r.useEffect((()=>{Ht||(Ht=!0)}),[]),e},Zt=r.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:s=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:h,style:{transform:f,...p}={},...m}=e;const g=Kt();if(!o)return null;c*=2;const v=c/2,y=i/2*(l/-8+1),b=s/2*l/4,[w,k]=n.split("-"),x=Ae.isRTL(o),S=!!h,C="top"===w||"bottom"===w,E=u&&"end"===k?"bottom":"top";let _=u&&"end"===k?"right":"left";u&&x&&(_="end"===k?"left":"right");const T=null!=(null==a?void 0:a.x)?u||a.x:"",D=null!=(null==a?void 0:a.y)?u||a.y:"",A=h||"M0,0 H"+i+" L"+(i-y)+","+(s-b)+" Q"+i/2+","+s+" "+y+","+(s-b)+" Z",P={top:S?"rotate(180deg)":"",left:S?"rotate(90deg)":"rotate(-90deg)",bottom:S?"":"rotate(180deg)",right:S?"rotate(-90deg)":"rotate(90deg)"}[w];return r.createElement("svg",Wt({},m,{"aria-hidden":!0,ref:t,width:S?i:i+c,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[_]:T,[E]:D,[w]:C||S?"100%":"calc(100% - "+c/2+"px)",transform:""+P+(null!=f?f:""),...p}}),c>0&&r.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:c+(h?0:1),d:A}),r.createElement("path",{stroke:c&&!h?m.fill:"none",d:A}),r.createElement("clipPath",{id:g},r.createElement("rect",{x:-v,y:v*(S?-1:1),width:i+c,height:i})))}));function Gt(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const Qt=r.createContext(null),$t=r.createContext(null),Xt=()=>{var e;return(null==(e=r.useContext(Qt))?void 0:e.id)||null},Jt=()=>r.useContext($t);function en(e){const t=Kt(),n=Jt(),r=Xt(),o=e||r;return Rt((()=>{const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,o]),t}function tn(e){let{children:t,id:n}=e;const o=Xt();return r.createElement(Qt.Provider,{value:r.useMemo((()=>({id:n,parentId:o})),[n,o])},t)}function nn(e){let{children:t}=e;const n=r.useRef([]),o=r.useCallback((e=>{n.current=[...n.current,e]}),[]),a=r.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),i=r.useState((()=>Gt()))[0];return r.createElement($t.Provider,{value:r.useMemo((()=>({nodesRef:n,addNode:o,removeNode:a,events:i})),[o,a,i])},t)}function rn(e){return"data-floating-ui-"+e}function on(e){const t=(0,r.useRef)(e);return Rt((()=>{t.current=e})),t}const an=rn("safe-polygon");function sn(e,t,n){return n&&!N(n)?0:"number"===typeof e?e:null==e?void 0:e[t]}function ln(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:{domReference:s,floating:l},refs:u}=e,{enabled:d=!0,delay:h=0,handleClose:f=null,mouseOnly:p=!1,restMs:m=0,move:g=!0}=t,v=Jt(),y=Xt(),b=on(f),w=on(h),k=r.useRef(),x=r.useRef(),S=r.useRef(),E=r.useRef(),_=r.useRef(!0),T=r.useRef(!1),D=r.useRef((()=>{})),A=r.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);r.useEffect((()=>{if(d)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(E.current),_.current=!0)}}),[d,i]),r.useEffect((()=>{if(!d||!b.current||!n)return;function e(e){A()&&o(!1,e,"hover")}const t=I(l).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[l,n,o,d,b,A]);const P=r.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=sn(w.current,"close",k.current);r&&!S.current?(clearTimeout(x.current),x.current=setTimeout((()=>o(!1,e,n)),r)):t&&(clearTimeout(x.current),o(!1,e,n))}),[w,o]),R=r.useCallback((()=>{D.current(),S.current=void 0}),[]),M=r.useCallback((()=>{if(T.current){const e=I(u.floating.current).body;e.style.pointerEvents="",e.removeAttribute(an),T.current=!1}}),[u]);return r.useEffect((()=>{if(d&&c(s)){const e=s;return n&&e.addEventListener("mouseleave",u),null==l||l.addEventListener("mouseleave",u),g&&e.addEventListener("mousemove",r,{once:!0}),e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",i),()=>{n&&e.removeEventListener("mouseleave",u),null==l||l.removeEventListener("mouseleave",u),g&&e.removeEventListener("mousemove",r),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",i)}}function t(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function r(e){if(clearTimeout(x.current),_.current=!1,p&&!N(k.current)||m>0&&0===sn(w.current,"open"))return;const t=sn(w.current,"open",k.current);t?x.current=setTimeout((()=>{o(!0,e,"hover")}),t):o(!0,e,"hover")}function i(r){if(t())return;D.current();const o=I(l);if(clearTimeout(E.current),b.current){n||clearTimeout(x.current),S.current=b.current({...e,tree:v,x:r.clientX,y:r.clientY,onClose(){M(),R(),P(r,!0,"safe-polygon")}});const t=S.current;return o.addEventListener("mousemove",t),void(D.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==k.current||!C(l,r.relatedTarget))&&P(r)}function u(n){t()||null==b.current||b.current({...e,tree:v,x:n.clientX,y:n.clientY,onClose(){M(),R(),P(n)}})(n)}}),[s,l,d,e,p,m,g,P,R,M,o,n,v,w,b,a]),Rt((()=>{var e;if(d&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&A()){const e=I(l).body;if(e.setAttribute(an,""),e.style.pointerEvents="none",T.current=!0,c(s)&&l){var t;const e=s,n=null==v||null==(t=v.nodesRef.current.find((e=>e.id===y)))||null==(t=t.context)?void 0:t.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{e.style.pointerEvents="",l.style.pointerEvents=""}}}}),[d,n,y,l,s,v,b,A]),Rt((()=>{n||(k.current=void 0,R(),M())}),[n,R,M]),r.useEffect((()=>()=>{R(),clearTimeout(x.current),clearTimeout(E.current),M()}),[d,s,R,M]),r.useMemo((()=>{if(!d)return{};function e(e){k.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===m||(clearTimeout(E.current),E.current=setTimeout((()=>{_.current||o(!0,e.nativeEvent,"hover")}),m))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){P(e.nativeEvent,!1)}}}}),[d,m,n,o,P])}const cn=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),un=()=>r.useContext(cn),dn=e=>{let{children:t,delay:n,timeoutMs:o=0}=e;const[a,i]=r.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=r.useRef(null),l=r.useCallback((e=>{i({currentId:e})}),[]);return Rt((()=>{a.currentId?null===s.current?s.current=a.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),s.current=null)}),[a.currentId]),r.createElement(cn.Provider,{value:r.useMemo((()=>({...a,setState:i,setCurrentId:l})),[a,l])},t)},hn=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t;const{currentId:a,setCurrentId:i,initialDelay:s,setState:l,timeoutMs:c}=un();Rt((()=>{a&&(l({delay:{open:1,close:sn(s,"close")}}),a!==o&&r(!1))}),[o,r,l,a,s]),Rt((()=>{function e(){r(!1),l({delay:s,currentId:null})}if(!n&&a===o){if(c){const t=window.setTimeout(e,c);return()=>{clearTimeout(t)}}e()}}),[n,l,a,o,r,s,c]),Rt((()=>{n&&i(o)}),[n,i,o])};function fn(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let pn=new WeakMap,mn=new WeakSet,gn={},vn=0;const yn=()=>"undefined"!==typeof HTMLElement&&"inert"in HTMLElement.prototype,bn=e=>e&&(e.host||bn(e.parentNode)),wn=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=bn(t);return e.contains(n)?n:null})).filter((e=>null!=e));function kn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=I(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,i=wn(t,e),s=new Set,l=new Set(i),c=[];gn[o]||(gn[o]=new WeakMap);const u=gn[o];return i.forEach((function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!l.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(s.has(t))e(t);else{const e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=(pn.get(t)||0)+1,i=(u.get(t)||0)+1;pn.set(t,r),u.set(t,i),c.push(t),1===r&&n&&mn.add(t),1===i&&t.setAttribute(o,""),!n&&a&&t.setAttribute(a,"true")}}))}(t),s.clear(),vn++,()=>{c.forEach((e=>{const t=(pn.get(e)||0)-1,n=(u.get(e)||0)-1;pn.set(e,t),u.set(e,n),t||(!mn.has(e)&&a&&e.removeAttribute(a),mn.delete(e)),n||e.removeAttribute(o)})),vn--,vn||(pn=new WeakMap,pn=new WeakMap,mn=new WeakSet,gn={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const xn=()=>({getShadowRoot:!0,displayCheck:"function"===typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Sn(e,t){const n=ht(e,xn());"prev"===t&&n.reverse();const r=n.indexOf(S(I(e)));return n.slice(r+1)[0]}function Cn(){return Sn(document.body,"next")}function En(){return Sn(document.body,"prev")}function _n(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!C(n,r)}function Tn(e){ht(e,xn()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Dn(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const An={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Pn(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Rn=r.forwardRef((function(e,t){const[n,o]=r.useState();Rt((()=>(A()&&o("button"),document.addEventListener("keydown",Pn),()=>{document.removeEventListener("keydown",Pn)})),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[rn("focus-guard")]:"",style:An};return r.createElement("span",Wt({},e,a))})),Nn=r.createContext(null),In=rn("portal");function Mn(e){let{id:t,root:n}=void 0===e?{}:e;const[o,a]=r.useState(null),i=Kt(),s=Ln(),l=r.useRef(null);return Rt((()=>()=>{null==o||o.remove(),queueMicrotask((()=>{l.current=null}))}),[o]),Rt((()=>{if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=i,n.setAttribute(In,""),e.appendChild(n),l.current=n,a(n)}),[t,i]),Rt((()=>{if(l.current)return;let e=n||(null==s?void 0:s.portalNode);e&&!c(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const o=document.createElement("div");o.id=i,o.setAttribute(In,""),e=r||e,e.appendChild(o),l.current=o,a(o)}),[t,n,i,s]),o}function On(e){let{children:t,id:n,root:o=null,preserveTabOrder:a=!0}=e;const i=Mn({id:n,root:o}),[s,l]=r.useState(null),c=r.useRef(null),u=r.useRef(null),d=r.useRef(null),h=r.useRef(null),f=!!s&&!s.modal&&s.open&&a&&!(!o&&!i);return r.useEffect((()=>{if(i&&a&&(null==s||!s.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&_n(e)){("focusin"===e.type?Dn:Tn)(i)}}}),[i,a,null==s?void 0:s.modal]),r.createElement(Nn.Provider,{value:r.useMemo((()=>({preserveTabOrder:a,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:h,portalNode:i,setFocusManagerState:l})),[a,i])},f&&i&&r.createElement(Rn,{"data-type":"outside",ref:c,onFocus:e=>{if(_n(e,i)){var t;null==(t=d.current)||t.focus()}else{const e=En()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),f&&i&&r.createElement("span",{"aria-owns":i.id,style:An}),i&&(0,ze.createPortal)(t,i),f&&i&&r.createElement(Rn,{"data-type":"outside",ref:u,onFocus:e=>{if(_n(e,i)){var t;null==(t=h.current)||t.focus()}else{const t=Cn()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const Ln=()=>r.useContext(Nn),jn=20;let Fn=[];function Bn(e){Fn=Fn.filter((e=>e.isConnected)),e&&"body"!==a(e)&&(Fn.push(e),Fn.length>jn&&(Fn=Fn.slice(-jn)))}function zn(){return Fn.slice().reverse().find((e=>e.isConnected))}const Vn=r.forwardRef((function(e,t){return r.createElement("button",Wt({},e,{type:"button",ref:t,tabIndex:-1,style:An}))}));function Un(e){const{context:t,children:n,disabled:o=!1,order:a=["content"],guards:i=!0,initialFocus:s=0,returnFocus:l=!0,modal:c=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:h=!0}=e,{open:f,refs:p,nodeId:m,onOpenChange:g,events:v,dataRef:y,elements:{domReference:b,floating:w}}=t,k="number"===typeof s&&s<0,x=B(b)&&k,E=!yn()||i,_=on(a),A=on(s),P=on(l),R=Jt(),N=Ln(),M=r.useRef(null),L=r.useRef(null),j=r.useRef(!1),z=r.useRef(!1),V=null!=N,U=r.useCallback((function(e){return void 0===e&&(e=w),e?ht(e,xn()):[]}),[w]),W=r.useCallback((e=>{const t=U(e);return _.current.map((e=>b&&"reference"===e?b:w&&"floating"===e?w:t)).filter(Boolean).flat()}),[b,w,_,U]);function H(e){return!o&&d&&c?r.createElement(Vn,{ref:"start"===e?M:L,onClick:e=>g(!1,e.nativeEvent)},"string"===typeof d?d:"Dismiss"):null}r.useEffect((()=>{if(o||!c)return;function e(e){if("Tab"===e.key){C(w,S(I(w)))&&0===U().length&&!x&&F(e);const t=W(),n=O(e);"reference"===_.current[0]&&n===b&&(F(e),e.shiftKey?Pt(t[t.length-1]):Pt(t[1])),"floating"===_.current[1]&&n===w&&e.shiftKey&&(F(e),Pt(t[0]))}}const t=I(w);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,b,w,c,_,x,U,W]),r.useEffect((()=>{if(!o&&h)return w&&u(b)?(b.addEventListener("focusout",t),b.addEventListener("pointerdown",e),!c&&w.addEventListener("focusout",t),()=>{b.removeEventListener("focusout",t),b.removeEventListener("pointerdown",e),!c&&w.removeEventListener("focusout",t)}):void 0;function e(){z.current=!0,setTimeout((()=>{z.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(C(b,t)||C(w,t)||C(t,w)||C(null==N?void 0:N.portalNode,t)||null!=t&&t.hasAttribute(rn("focus-guard"))||R&&(fn(R.nodesRef.current,m).find((e=>{var n,r;return C(null==(n=e.context)?void 0:n.elements.floating,t)||C(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(R.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!z.current&&t!==zn()&&(j.current=!0,g(!1,e))}))}}),[o,b,w,c,m,R,N,g,h]),r.useEffect((()=>{var e;if(o)return;const t=Array.from((null==N||null==(e=N.portalNode)?void 0:e.querySelectorAll("["+rn("portal")+"]"))||[]);if(w){const e=[w,...t,M.current,L.current,_.current.includes("reference")||x?b:null].filter((e=>null!=e)),n=c||x?kn(e,E,!E):kn(e);return()=>{n()}}}),[o,b,w,c,_,N,x,E]),Rt((()=>{if(o||!w)return;const e=S(I(w));queueMicrotask((()=>{const t=W(w),n=A.current,r=("number"===typeof n?t[n]:n.current)||w,o=C(w,e);k||o||!f||Pt(r,{preventScroll:r===w})}))}),[o,f,w,k,W,A]),Rt((()=>{if(o||!w)return;let e=!1;const t=I(w),n=S(t),r=y.current;function a(t){let{reason:n,event:r,nested:o}=t;"escape-key"===n&&p.domReference.current&&Bn(p.domReference.current),"hover"===n&&"mouseleave"===r.type&&(j.current=!0),"outside-press"===n&&(o?(j.current=!1,e=!0):j.current=!(T(r)||D(r)))}return Bn(n),v.on("openchange",a),()=>{v.off("openchange",a);const n=S(t),o=C(w,n)||R&&fn(R.nodesRef.current,m).some((e=>{var t;return C(null==(t=e.context)?void 0:t.elements.floating,n)}));(o||r.openEvent&&["click","mousedown"].includes(r.openEvent.type))&&p.domReference.current&&Bn(p.domReference.current);const i=zn();P.current&&!j.current&&u(i)&&(i===n||n===t.body||o)&&Pt(i,{cancelPrevious:!1,preventScroll:e})}}),[o,w,P,y,p,v,R,m]),Rt((()=>{if(!o&&N)return N.setFocusManagerState({modal:c,closeOnFocusOut:h,open:f,onOpenChange:g,refs:p}),()=>{N.setFocusManagerState(null)}}),[o,N,c,f,g,p,h]),Rt((()=>{if(o||!w||"function"!==typeof MutationObserver||k)return;const e=()=>{const e=w.getAttribute("tabindex");_.current.includes("floating")||S(I(w))!==p.domReference.current&&0===U().length?"0"!==e&&w.setAttribute("tabindex","0"):"-1"!==e&&w.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(w,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[o,w,p,_,U,k]);const Y=!o&&E&&(V||c);return r.createElement(r.Fragment,null,Y&&r.createElement(Rn,{"data-type":"inside",ref:null==N?void 0:N.beforeInsideRef,onFocus:e=>{if(c){const e=W();Pt("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(j.current=!1,_n(e,N.portalNode)){const e=Cn()||b;null==e||e.focus()}else{var t;null==(t=N.beforeOutsideRef.current)||t.focus()}}}),!x&&H("start"),n,H("end"),Y&&r.createElement(Rn,{"data-type":"inside",ref:null==N?void 0:N.afterInsideRef,onFocus:e=>{if(c)Pt(W()[0]);else if(null!=N&&N.preserveTabOrder&&N.portalNode)if(h&&(j.current=!0),_n(e,N.portalNode)){const e=En()||b;null==e||e.focus()}else{var t;null==(t=N.afterOutsideRef.current)||t.focus()}}}))}const Wn=new Set,Hn=r.forwardRef((function(e,t){let{lockScroll:n=!1,...o}=e;const a=Kt();return Rt((()=>{if(!n)return;Wn.add(a);const e=/iP(hone|ad|od)|iOS/.test(E()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.pageXOffset,s=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var l,c;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,n=(null==(c=window.visualViewport)?void 0:c.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Wn.delete(a),0===Wn.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,s)))}}),[a,n]),r.createElement("div",Wt({ref:t},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))}));function Yn(e){return u(e.target)&&"BUTTON"===e.target.tagName}function qn(e){return j(e)}function Kn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:a,elements:{domReference:i}}=e,{enabled:s=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=t,h=r.useRef(),f=r.useRef(!1);return r.useMemo((()=>s?{reference:{onPointerDown(e){h.current=e.pointerType},onMouseDown(e){0===e.button&&(N(h.current,!0)&&u||"click"!==l&&(!n||!c||a.current.openEvent&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===l&&h.current?h.current=void 0:N(h.current,!0)&&u||(!n||!c||a.current.openEvent&&"click"!==a.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,e.defaultPrevented||!d||Yn(e)||(" "!==e.key||qn(i)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&o(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Yn(e)||qn(i)||" "===e.key&&f.current&&(f.current=!1,o(!n||!c,e.nativeEvent,"click"))}}}:{}),[s,a,l,u,d,i,c,n,o])}function Zn(e){return null!=e&&null!=e.clientX}function Gn(e,t){void 0===t&&(t={});const{open:n,refs:o,dataRef:a,elements:{floating:s}}=e,{enabled:l=!0,axis:c="both",x:u=null,y:d=null}=t,h=r.useRef(!1),f=r.useRef(null),[p,m]=r.useState(),[g,v]=r.useState([]),y=mt(((e,t)=>{h.current||a.current.openEvent&&!Zn(a.current.openEvent)||o.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e.current||void 0,getBoundingClientRect(){var a,i;const s=(null==(a=e.current)?void 0:a.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l="x"===t.axis||"both"===t.axis,c="y"===t.axis||"both"===t.axis,u=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let d=s.width,h=s.height,f=s.x,p=s.y;return null==n&&t.x&&l&&(n=s.x-t.x),null==r&&t.y&&c&&(r=s.y-t.y),f-=n||0,p-=r||0,d=0,h=0,!o||u?(d="y"===t.axis?s.width:0,h="x"===t.axis?s.height:0,f=l&&null!=t.x?t.x:f,p=c&&null!=t.y?t.y:p):o&&!u&&(h="x"===t.axis?s.height:h,d="y"===t.axis?s.width:d),o=!0,{width:d,height:h,x:f,y:p,top:p,right:f+d,bottom:p+h,left:f}}}}(o.domReference,{x:e,y:t,axis:c,dataRef:a,pointerType:p}))})),b=mt((e=>{null==u&&null==d&&(n?f.current||v([]):y(e.clientX,e.clientY))})),w=N(p)?s:n,k=r.useCallback((()=>{if(!w||!l||null!=u||null!=d)return;const e=i(o.floating.current);function t(n){const r=O(n);C(o.floating.current,r)?(e.removeEventListener("mousemove",t),f.current=null):y(n.clientX,n.clientY)}if(!a.current.openEvent||Zn(a.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}o.setPositionReference(o.domReference.current)}),[a,l,w,o,y,u,d]);return r.useEffect((()=>k()),[k,g]),r.useEffect((()=>{l&&!s&&(h.current=!1)}),[l,s]),r.useEffect((()=>{!l&&n&&(h.current=!0)}),[l,n]),Rt((()=>{!l||null==u&&null==d||(h.current=!1,y(u,d))}),[l,u,d,y]),r.useMemo((()=>{if(!l)return{};function e(e){let{pointerType:t}=e;m(t)}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove:b,onMouseEnter:b}}}),[l,b])}const Qn={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},$n={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xn=e=>{var t,n;return{escapeKey:"boolean"===typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"===typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Jn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,nodeId:a,elements:{reference:i,domReference:s,floating:l},dataRef:d}=e,{enabled:h=!0,escapeKey:f=!0,outsidePress:p=!0,outsidePressEvent:m="pointerdown",referencePress:g=!1,referencePressEvent:b="pointerdown",ancestorScroll:k=!1,bubbles:S,capture:E}=t,_=Jt(),T=mt("function"===typeof p?p:()=>!1),D="function"===typeof p?T:p,A=r.useRef(!1),P=r.useRef(!1),{escapeKey:R,outsidePress:N}=Xn(S),{escapeKey:L,outsidePress:j}=Xn(E),F=mt((e=>{if(!n||!h||!f||"Escape"!==e.key)return;const t=_?fn(_.nodesRef.current,a):[];if(!R&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),B=mt((e=>{var t;const n=()=>{var t;F(e),null==(t=O(e))||t.removeEventListener("keydown",n)};null==(t=O(e))||t.addEventListener("keydown",n)})),z=mt((e=>{const t=A.current;A.current=!1;const n=P.current;if(P.current=!1,"click"===m&&n)return;if(t)return;if("function"===typeof D&&!D(e))return;const r=O(e),i="["+rn("inert")+"]",d=I(l).querySelectorAll(i);let h=c(r)?r:null;for(;h&&!v(h);){const e=w(h);if(v(e)||!c(e))break;h=e}if(d.length&&c(r)&&!r.matches("html,body")&&!C(r,l)&&Array.from(d).every((e=>!C(h,e))))return;if(u(r)&&l){const t=r.clientWidth>0&&r.scrollWidth>r.clientWidth,n=r.clientHeight>0&&r.scrollHeight>r.clientHeight;let o=n&&e.offsetX>r.clientWidth;if(n){"rtl"===y(r).direction&&(o=e.offsetX<=r.offsetWidth-r.clientWidth)}if(o||t&&e.offsetY>r.clientHeight)return}const f=_&&fn(_.nodesRef.current,a).some((t=>{var n;return M(e,null==(n=t.context)?void 0:n.elements.floating)}));if(M(e,l)||M(e,s)||f)return;const p=_?fn(_.nodesRef.current,a):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),V=mt((e=>{var t;const n=()=>{var t;z(e),null==(t=O(e))||t.removeEventListener(m,n)};null==(t=O(e))||t.addEventListener(m,n)}));return r.useEffect((()=>{if(!n||!h)return;function e(e){o(!1,e,"ancestor-scroll")}d.current.__escapeKeyBubbles=R,d.current.__outsidePressBubbles=N;const t=I(l);f&&t.addEventListener("keydown",L?B:F,L),D&&t.addEventListener(m,j?V:z,j);let r=[];return k&&(c(s)&&(r=x(s)),c(l)&&(r=r.concat(x(l))),!c(i)&&i&&i.contextElement&&(r=r.concat(x(i.contextElement)))),r=r.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),r.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{f&&t.removeEventListener("keydown",L?B:F,L),D&&t.removeEventListener(m,j?V:z,j),r.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[d,l,s,i,f,D,m,n,o,k,h,R,N,F,L,B,z,j,V]),r.useEffect((()=>{A.current=!1}),[D,m]),r.useMemo((()=>h?{reference:{onKeyDown:F,[Qn[b]]:e=>{g&&o(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:F,onMouseDown(){P.current=!0},onMouseUp(){P.current=!0},[$n[m]]:()=>{A.current=!0}}}:{}),[h,g,m,b,o,F])}function er(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:o,nodeId:a}=e;const[i,s]=r.useState(null),l=(null==(t=e.elements)?void 0:t.reference)||i,u=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=r.useState(o);We(f,o)||p(o);const[m,g]=r.useState(null),[v,y]=r.useState(null),b=r.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),w=r.useCallback((e=>{e!==C.current&&(C.current=e,y(e))}),[]),k=i||m,x=s||v,S=r.useRef(null),C=r.useRef(null),E=r.useRef(d),_=null!=c,T=qe(c),D=qe(a),A=r.useCallback((()=>{if(!S.current||!C.current)return;const e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Be(S.current,C.current,e).then((e=>{const t={...e,isPositioned:!0};P.current&&!We(E.current,t)&&(E.current=t,ze.flushSync((()=>{h(t)})))}))}),[f,t,n,D]);Ue((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[u]);const P=r.useRef(!1);Ue((()=>(P.current=!0,()=>{P.current=!1})),[]),Ue((()=>{if(k&&(S.current=k),x&&(C.current=x),k&&x){if(T.current)return T.current(k,x,A);A()}}),[k,x,A,T,_]);const R=r.useMemo((()=>({reference:S,floating:C,setReference:b,setFloating:w})),[b,w]),N=r.useMemo((()=>({reference:k,floating:x})),[k,x]),I=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Ye(N.floating,d.x),r=Ye(N.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...He(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,N.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:A,refs:R,elements:N,floatingStyles:I})),[d,A,R,N,I])}(e),d=Jt(),h=null!=Xt(),f=mt(((e,t,n)=>{e&&(m.current.openEvent=t),g.emit("openchange",{open:e,event:t,reason:n,nested:h}),null==o||o(e,t,n)})),p=r.useRef(null),m=r.useRef({}),g=r.useState((()=>Gt()))[0],v=Kt(),y=r.useCallback((e=>{const t=c(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u.refs.setReference(t)}),[u.refs]),b=r.useCallback((e=>{(c(e)||null===e)&&(p.current=e,s(e)),(c(u.refs.reference.current)||null===u.refs.reference.current||null!==e&&!c(e))&&u.refs.setReference(e)}),[u.refs]),w=r.useMemo((()=>({...u.refs,setReference:b,setPositionReference:y,domReference:p})),[u.refs,b,y]),k=r.useMemo((()=>({...u.elements,domReference:l})),[u.elements,l]),x=r.useMemo((()=>({...u,refs:w,elements:k,dataRef:m,nodeId:a,floatingId:v,events:g,open:n,onOpenChange:f})),[u,a,v,g,n,f,w,k]);return Rt((()=>{const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===a));e&&(e.context=x)})),r.useMemo((()=>({...u,context:x,refs:w,elements:k})),[u,w,k,x])}function tr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,events:a,refs:s,elements:{domReference:l}}=e,{enabled:d=!0,visibleOnly:h=!0}=t,f=r.useRef(!1),p=r.useRef(),m=r.useRef(!0);return r.useEffect((()=>{if(!d)return;const e=i(l);function t(){!n&&u(l)&&l===S(I(l))&&(f.current=!0)}function r(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[l,n,d]),r.useEffect((()=>{if(d)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(f.current=!0)}}),[a,d]),r.useEffect((()=>()=>{clearTimeout(p.current)}),[]),r.useMemo((()=>d?{reference:{onPointerDown(e){D(e.nativeEvent)||(m.current=!1)},onMouseLeave(){f.current=!1},onFocus(e){if(f.current)return;const t=O(e.nativeEvent);if(h&&c(t))try{if(A()&&R())throw Error();if(!t.matches(":focus-visible"))return}catch(n){if(!m.current&&!j(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){f.current=!1;const t=e.relatedTarget,n=c(t)&&t.hasAttribute(rn("focus-guard"))&&"outside"===t.getAttribute("data-type");p.current=window.setTimeout((()=>{const r=S(l?l.ownerDocument:document);(t||r!==l)&&(C(s.floating.current,t)||C(l,t)||n||o(!1,e.nativeEvent,"focus"))}))}}}:{}),[d,h,l,s,o])}const nr="active",rr="selected";function or(e,t,n){const r=new Map,o="item"===n;let a=e;if(o&&e){const{[nr]:t,[rr]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1},...a,...t.map((t=>{const r=t?t[n]:null;return"function"===typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;o&&[nr,rr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"===typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;ae(...o))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}function ar(e){void 0===e&&(e=[]);const t=e,n=r.useCallback((t=>or(t,e,"reference")),t),o=r.useCallback((t=>or(t,e,"floating")),t),a=r.useCallback((t=>or(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:a})),[n,o,a])}let ir=!1;function sr(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function lr(e,t){return sr(t,e===gt||e===vt,e===yt||e===bt)}function cr(e,t,n){return sr(t,e===vt,n?e===yt:e===bt)||"Enter"===e||" "===e||""===e}function ur(e,t,n){return sr(t,n?e===bt:e===yt,e===gt)}function dr(e,t){const{open:n,onOpenChange:o,refs:a,elements:{domReference:i,floating:s}}=e,{listRef:l,activeIndex:c,onNavigate:d=(()=>{}),enabled:h=!0,selectedIndex:f=null,allowEscape:p=!1,loop:m=!1,nested:g=!1,rtl:v=!1,virtual:y=!1,focusItemOnOpen:b="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:k=!0,disabledIndices:x,orientation:E="vertical",cols:_=1,scrollItemIntoView:P=!0,virtualItemRef:N,itemSizes:M,dense:O=!1}=t;const L=Xt(),j=Jt(),z=mt(d),V=r.useRef(b),U=r.useRef(null!=f?f:-1),W=r.useRef(null),H=r.useRef(!0),Y=r.useRef(z),q=r.useRef(!!s),K=r.useRef(!1),Z=r.useRef(!1),G=on(x),Q=on(n),$=on(P),[X,J]=r.useState(),[ee,te]=r.useState(),ne=mt((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(y?(J(r.id),null==j||j.events.emit("virtualfocus",r),N&&(N.current=r)):Pt(r,{preventScroll:!0,sync:!(!R()||!A())&&(ir||K.current)}),requestAnimationFrame((()=>{const e=$.current;e&&r&&(n||!H.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"===typeof e?{block:"nearest",inline:"nearest"}:e))})))}));Rt((()=>{document.createElement("div").focus({get preventScroll(){return ir=!0,!1}})}),[]),Rt((()=>{h&&(n&&s?V.current&&null!=f&&(Z.current=!0,U.current=f,z(f)):q.current&&(U.current=-1,Y.current(null)))}),[h,n,s,f,z]),Rt((()=>{if(h&&n&&s)if(null==c){if(K.current=!1,null!=f)return;if(q.current&&(U.current=-1,ne(l,U)),!q.current&&V.current&&(null!=W.current||!0===V.current&&null==W.current)){let e=0;const t=()=>{if(null==l.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else U.current=null==W.current||cr(W.current,E,v)||g?xt(l,G.current):St(l,G.current),W.current=null,z(U.current)};t()}}else kt(l,c)||(U.current=c,ne(l,U,Z.current),Z.current=!1)}),[h,n,s,c,f,g,l,E,v,z,ne,G]),Rt((()=>{var e;if(!h||s||!j||y||!q.current)return;const t=j.nodesRef.current,n=null==(e=t.find((e=>e.id===L)))||null==(e=e.context)?void 0:e.elements.floating,r=S(I(s)),o=t.some((e=>e.context&&C(e.context.elements.floating,r)));n&&!o&&H.current&&n.focus({preventScroll:!0})}),[h,s,j,L,y]),Rt((()=>{if(h&&j&&y&&!L)return j.events.on("virtualfocus",e),()=>{j.events.off("virtualfocus",e)};function e(e){te(e.id),N&&(N.current=e)}}),[h,j,y,L,N]),Rt((()=>{Y.current=z,q.current=!!s})),Rt((()=>{n||(W.current=null)}),[n]);const re=null!=c,oe=r.useMemo((()=>{function e(e){if(!n)return;const t=l.current.indexOf(e);-1!==t&&z(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...w&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;H.current&&"touch"!==t&&(U.current=-1,ne(l,U),z(null),y||Pt(a.floating.current,{preventScroll:!0}))}}}}),[n,a,ne,w,l,z,y]);return r.useMemo((()=>{if(!h)return{};const e=G.current;function t(t){if(H.current=!1,K.current=!0,!Q.current&&t.currentTarget===a.floating.current)return;if(g&&ur(t.key,E,v))return F(t),o(!1,t.nativeEvent,"list-navigation"),void(u(i)&&!y&&i.focus());const r=U.current,s=xt(l,e),c=St(l,e);if("Home"===t.key&&(F(t),U.current=s,z(U.current)),"End"===t.key&&(F(t),U.current=c,z(U.current)),_>1){const n=M||Array.from({length:l.current.length},(()=>({width:1,height:1}))),r=_t(n,_,O),o=r.findIndex((t=>null!=t&&!(null!=e&&e.includes(t)))),a=r.reduce(((t,n,r)=>null==n||null!=e&&e.includes(n)?t:r),-1);if(U.current=r[Et({current:r.map((e=>null!=e?l.current[e]:null))},{event:t,orientation:E,loop:m,cols:_,disabledIndices:Dt([...e||[],void 0],r),minIndex:o,maxIndex:a,prevIndex:Tt(U.current,n,r,_,t.key===vt?"bl":t.key===bt?"tr":"tl"),stopEvent:!0})],z(U.current),"both"===E)return}if(lr(t.key,E)){if(F(t),n&&!y&&S(t.currentTarget.ownerDocument)===t.currentTarget)return U.current=cr(t.key,E,v)?s:c,void z(U.current);cr(t.key,E,v)?U.current=m?r>=c?p&&r!==l.current.length?-1:s:Ct(l,{startingIndex:r,disabledIndices:e}):Math.min(c,Ct(l,{startingIndex:r,disabledIndices:e})):U.current=m?r<=s?p&&-1!==r?l.current.length:c:Ct(l,{startingIndex:r,decrement:!0,disabledIndices:e}):Math.max(s,Ct(l,{startingIndex:r,decrement:!0,disabledIndices:e})),kt(l,U.current)?z(null):z(U.current)}}function r(e){"auto"===b&&T(e.nativeEvent)&&(V.current=!0)}const s=y&&n&&re&&{"aria-activedescendant":ee||X},c=l.current.find((e=>(null==e?void 0:e.id)===X));return{reference:{...s,onKeyDown(r){H.current=!1;const a=0===r.key.indexOf("Arrow"),i=function(e,t,n){return sr(t,n?e===yt:e===bt,e===vt)}(r.key,E,v),s=ur(r.key,E,v),u=lr(r.key,E),d=(g?i:u)||"Enter"===r.key||""===r.key.trim();if(y&&n){const e=null==j?void 0:j.nodesRef.current.find((e=>null==e.parentId)),n=j&&e?function(e,t){let n,r=-1;return function t(o,a){a>r&&(n=o,r=a),fn(e,o).forEach((e=>{t(e.id,a+1)}))}(t,0),e.find((e=>e.id===n))}(j.nodesRef.current,e.id):null;if(a&&n&&N){const e=new KeyboardEvent("keydown",{key:r.key,bubbles:!0});if(i||s){var h,p;const t=(null==(h=n.context)?void 0:h.elements.domReference)===r.currentTarget,o=s&&!t?null==(p=n.context)?void 0:p.elements.domReference:i?c:null;o&&(F(r),o.dispatchEvent(e),te(void 0))}var m;if(u&&n.context)if(n.context.open&&n.parentId&&r.currentTarget!==n.context.elements.domReference)return F(r),void(null==(m=n.context.elements.domReference)||m.dispatchEvent(e))}return t(r)}(n||k||!a)&&(d&&(W.current=g&&u?null:r.key),g?i&&(F(r),n?(U.current=xt(l,e),z(U.current)):o(!0,r.nativeEvent,"list-navigation")):u&&(null!=f&&(U.current=f),F(r),!n&&k?o(!0,r.nativeEvent,"list-navigation"):t(r),n&&z(U.current)))},onFocus(){n&&z(null)},onPointerDown:function(e){V.current=b,"auto"===b&&D(e.nativeEvent)&&(V.current=!0)},onMouseDown:r,onClick:r},floating:{"aria-orientation":"both"===E?void 0:E,...!B(i)&&s,onKeyDown:t,onPointerMove(){H.current=!0}},item:oe}}),[i,a,X,ee,G,Q,l,h,E,v,y,n,re,g,f,k,p,_,m,b,z,o,oe,j,N,M,O])}const hr=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function fr(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:a}=e,{enabled:i=!0,role:s="dialog"}=t,l=null!=(n=hr.get(s))?n:s,c=Kt(),u=null!=Xt();return r.useMemo((()=>{if(!i)return{};const e={id:a,...l&&{role:l}};return"tooltip"===l||"label"===s?{reference:{["aria-"+("label"===s?"labelledby":"describedby")]:o?a:void 0},floating:e}:{reference:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":o?a:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===l&&{"aria-labelledby":c}},item(e){let{active:t,selected:n}=e;const r={role:"option",...t&&{id:a+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}}),[i,s,l,o,a,c,u])}const pr=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function mr(e,t){return"function"===typeof e?e(t):e}function gr(e,t){void 0===t&&(t={});const{open:n,elements:{floating:o}}=e,{duration:a=250}=t,i=("number"===typeof a?a:a.close)||0,[s,l]=r.useState(!1),[c,u]=r.useState("unmounted"),d=function(e,t){const[n,o]=r.useState(e);return e&&!n&&o(!0),r.useEffect((()=>{if(!e){const e=setTimeout((()=>o(!1)),t);return()=>clearTimeout(e)}}),[e,t]),n}(n,i);return Rt((()=>{s&&!d&&u("unmounted")}),[s,d]),Rt((()=>{if(o){if(n){u("initial");const e=requestAnimationFrame((()=>{u("open")}));return()=>{cancelAnimationFrame(e)}}l(!0),u("close")}}),[n,o]),{isMounted:d,status:c}}function vr(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:o,close:a,common:i,duration:s=250}=t,l=e.placement,c=l.split("-")[0],u=r.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"===typeof s,h=(d?s:s.open)||0,f=(d?s:s.close)||0,[p,m]=r.useState((()=>({...mr(i,u),...mr(n,u)}))),{isMounted:g,status:v}=gr(e,{duration:s}),y=on(n),b=on(o),w=on(a),k=on(i);return Rt((()=>{const e=mr(y.current,u),t=mr(w.current,u),n=mr(k.current,u),r=mr(b.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===v&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===v&&m({transitionProperty:Object.keys(r).map(pr).join(","),transitionDuration:h+"ms",...n,...r}),"close"===v){const r=t||e;m({transitionProperty:Object.keys(r).map(pr).join(","),transitionDuration:f+"ms",...n,...r})}}),[f,w,y,b,k,h,v,u]),{isMounted:g,styles:p}}function yr(e,t){var n;const{open:o,dataRef:a}=e,{listRef:i,activeIndex:s,onMatch:l,onTypingChange:c,enabled:u=!0,findMatch:d=null,resetMs:h=750,ignoreKeys:f=[],selectedIndex:p=null}=t,m=r.useRef(),g=r.useRef(""),v=r.useRef(null!=(n=null!=p?p:s)?n:-1),y=r.useRef(null),b=mt(l),w=mt(c),k=on(d),x=on(f);return Rt((()=>{o&&(clearTimeout(m.current),y.current=null,g.current="")}),[o]),Rt((()=>{var e;o&&""===g.current&&(v.current=null!=(e=null!=p?p:s)?e:-1)}),[o,p,s]),r.useMemo((()=>{if(!u)return{};function e(e){e?a.current.typing||(a.current.typing=e,w(e)):a.current.typing&&(a.current.typing=e,w(e))}function t(e,t,n){const r=k.current?k.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}function n(n){const r=i.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(r,r,g.current)?e(!1):" "===n.key&&F(n)),null==r||x.current.includes(n.key)||1!==n.key.length||n.ctrlKey||n.metaKey||n.altKey)return;o&&" "!==n.key&&(F(n),e(!0));r.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&g.current===n.key&&(g.current="",v.current=y.current),g.current+=n.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",v.current=y.current,e(!1)}),h);const a=v.current,s=t(r,[...r.slice((a||0)+1),...r.slice(0,(a||0)+1)],g.current);-1!==s?(b(s),y.current=s):" "!==n.key&&(g.current="",e(!1))}return{reference:{onKeyDown:n},floating:{onKeyDown:n,onKeyUp(t){" "===t.key&&e(!1)}}}}),[u,o,a,i,h,x,k,b,w])}function br(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const wr=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=e,{rects:d,elements:{floating:h}}=t,f=n.current[i];if(!f)return{};const p={...t,...await pe(-f.offsetTop-h.clientTop-d.reference.height/2-f.offsetHeight/2-a).fn(t)},m=(null==c?void 0:c.current)||h,g=await ue(br(p,m.scrollHeight),u),v=await ue(p,{...u,elementContext:"reference"}),y=Math.max(0,g.top),b=p.y+y,w=Math.max(0,m.scrollHeight-y-Math.max(0,g.bottom));return m.style.maxHeight=w+"px",m.scrollTop=y,o&&(m.offsetHeight=-l||v.bottom>=-l?(0,ze.flushSync)((()=>o(!0))):(0,ze.flushSync)((()=>o(!1)))),r&&(r.current=await ue(br({...p,y:b},m.offsetHeight),u)),{y:b}}});function kr(e,t){const{open:n,elements:o}=e,{enabled:a=!0,overflowRef:i,scrollRef:s,onChange:l}=t,c=mt(l),u=r.useRef(!1),d=r.useRef(null),h=r.useRef(null);return r.useEffect((()=>{if(!a)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,ze.flushSync)((()=>{c((e=>e+Math[l](n,a*s)))}))):/firefox/i.test(_())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=i.current&&(h.current={...i.current})})),()=>{d.current=null,h.current=null,t.removeEventListener("wheel",e)}):void 0}),[a,n,o.floating,i,s,c]),r.useMemo((()=>a?{floating:{onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==s?void 0:s.current)||o.floating;if(i.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&(0,ze.flushSync)((()=>c((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}}}:{}),[a,i,o.floating,s,c])}function xr(e,t){const[n,r]=e;let o=!1;const a=t.length;for(let i=0,s=a-1;i=r!==c>=r&&n<=(l-e)*(r-a)/(c-a)+e&&(o=!o)}return o}function Sr(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,a=!1,i=null,s=null,l=performance.now();const u=e=>{let{x:n,y:u,placement:d,elements:h,onClose:f,nodeId:p,tree:m}=e;return function(e){function g(){clearTimeout(o),f()}if(clearTimeout(o),!h.domReference||!h.floating||null==d||null==n||null==u)return;const{clientX:v,clientY:y}=e,b=[v,y],w=O(e),k="mouseleave"===e.type,x=C(h.floating,w),S=C(h.domReference,w),E=h.domReference.getBoundingClientRect(),_=h.floating.getBoundingClientRect(),T=d.split("-")[0],D=n>_.right-_.width/2,A=u>_.bottom-_.height/2,P=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,E),R=_.width>E.width,N=_.height>E.height,I=(R?E:_).left,M=(R?E:_).right,L=(N?E:_).top,j=(N?E:_).bottom;if(x&&(a=!0,!k))return;if(S&&(a=!1),S&&!k)return void(a=!0);if(k&&c(e.relatedTarget)&&C(h.floating,e.relatedTarget))return;if(m&&fn(m.nodesRef.current,p).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===T&&u>=E.bottom-1||"bottom"===T&&u<=E.top+1||"left"===T&&n>=E.right-1||"right"===T&&n<=E.left+1)return g();let F=[];switch(T){case"top":F=[[I,E.top+1],[I,_.bottom-1],[M,_.bottom-1],[M,E.top+1]];break;case"bottom":F=[[I,_.top+1],[I,E.bottom-1],[M,E.bottom-1],[M,_.top+1]];break;case"left":F=[[_.right-1,j],[_.right-1,L],[E.left+1,L],[E.left+1,j]];break;case"right":F=[[E.right-1,j],[E.right-1,L],[_.left+1,L],[_.left+1,j]]}if(!xr([v,y],F)){if(a&&!P)return g();if(!k&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===i||null===s||0===r)return i=e,s=t,l=n,null;const o=e-i,a=t-s,c=Math.sqrt(o*o+a*a);return i=e,s=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}xr([v,y],function(e){let[n,r]=e;switch(T){case"top":return[[R?n+t/2:D?n+4*t:n-4*t,r+t+1],[R?n-t/2:D?n+4*t:n-4*t,r+t+1],...[[_.left,D||R?_.bottom-t:_.top],[_.right,D?R?_.bottom-t:_.top:_.bottom-t]]];case"bottom":return[[R?n+t/2:D?n+4*t:n-4*t,r-t],[R?n-t/2:D?n+4*t:n-4*t,r-t],...[[_.left,D||R?_.top+t:_.bottom],[_.right,D?R?_.top+t:_.bottom:_.top+t]]];case"left":{const e=[n+t+1,N?r+t/2:A?r+4*t:r-4*t],o=[n+t+1,N?r-t/2:A?r+4*t:r-4*t];return[...[[A||N?_.right-t:_.left,_.top],[A?N?_.right-t:_.left:_.right-t,_.bottom]],e,o]}case"right":return[[n-t,N?r+t/2:A?r+4*t:r-4*t],[n-t,N?r-t/2:A?r+4*t:r-4*t],...[[A||N?_.left+t:_.right,_.top],[A?N?_.left+t:_.right:_.left+t,_.bottom]]]}}([n,u]))?!a&&r&&(o=window.setTimeout(g,40)):g()}}};return u.__options={blockPointerEvents:n},u}},6674:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const o=function(e,t,n){var o,a=r[e];return o="string"===typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function a(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var i={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=null!==n&&void 0!==n&&n.width?String(n.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var i=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[i]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function c(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(u={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(u.matchPattern);if(!n)return null;var r=n[0],o=e.match(u.parsePattern);if(!o)return null;var a=u.valueCallback?u.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(r.length)}}),era:c({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:c({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:c({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:c({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:c({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},4408:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r={};function o(){return r}},3462:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},o=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const a={p:o,P:function(e,t){var n,a=e.match(/(P+)(p+)?/)||[],i=a[1],s=a[2];if(!s)return r(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(i,t)).replace("{{time}}",o(s,t))}}},4697:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:()=>r})},9153:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8527),o=n(9853),a=n(5611),i=n(4522);var s=6048e5;function l(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=(0,o.Z)(t).getTime()-function(e){(0,i.Z)(1,arguments);var t=(0,a.Z)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,o.Z)(n)}(t).getTime();return Math.round(n/s)+1}},5611:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8527),o=n(4522),a=n(9853);function i(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var s=(0,a.Z)(i),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,a.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},9934:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(8527),o=n(1230),a=n(9726),i=n(4522),s=n(9297),l=n(4408);var c=6048e5;function u(e,t){(0,i.Z)(1,arguments);var n=(0,r.default)(e),u=(0,o.Z)(n,t).getTime()-function(e,t){var n,r,c,u,d,h,f,p;(0,i.Z)(1,arguments);var m=(0,l.j)(),g=(0,s.Z)(null!==(n=null!==(r=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:m.firstWeekContainsDate)&&void 0!==r?r:null===(f=m.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,a.Z)(e,t),y=new Date(0);return y.setUTCFullYear(v,0,g),y.setUTCHours(0,0,0,0),(0,o.Z)(y,t)}(n,t).getTime();return Math.round(u/c)+1}},9726:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8527),o=n(4522),a=n(1230),i=n(9297),s=n(4408);function l(e,t){var n,l,c,u,d,h,f,p;(0,o.Z)(1,arguments);var m=(0,r.default)(e),g=m.getUTCFullYear(),v=(0,s.j)(),y=(0,i.Z)(null!==(n=null!==(l=null!==(c=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(d=t.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:v.firstWeekContainsDate)&&void 0!==l?l:null===(f=v.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,y),b.setUTCHours(0,0,0,0);var w=(0,a.Z)(b,t),k=new Date(0);k.setUTCFullYear(g,0,y),k.setUTCHours(0,0,0,0);var x=(0,a.Z)(k,t);return m.getTime()>=w.getTime()?g+1:m.getTime()>=x.getTime()?g:g-1}},8552:(e,t,n)=>{"use strict";n.d(t,{Do:()=>i,Iu:()=>a,qp:()=>s});var r=["D","DD"],o=["YY","YYYY"];function a(e){return-1!==r.indexOf(e)}function i(e){return-1!==o.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},4522:(e,t,n)=>{"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:()=>r})},9853:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8527),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay(),a=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}},1230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(8527),o=n(4522),a=n(9297),i=n(4408);function s(e,t){var n,s,l,c,u,d,h,f;(0,o.Z)(1,arguments);var p=(0,i.j)(),m=(0,a.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:p.weekStartsOn)&&void 0!==s?s:null===(h=p.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),v=g.getUTCDay(),y=(v{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:()=>r})},9040:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(8527),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}},2074:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9297),o=n(4377),a=n(4522),i=36e5;function s(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.Z)(e,n*i)}},4377:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9297),o=n(8527),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e).getTime(),i=(0,r.Z)(t);return new Date(n+i)}},1518:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9297),o=n(4377),a=n(4522),i=6e4;function s(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.Z)(e,n*i)}},1104:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(8527),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),l=new Date(n.getTime());return l.setMonth(n.getMonth()+i+1,0),s>=l.getDate()?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},6689:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(1104),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=3*(0,r.Z)(t);return(0,o.default)(e,n)}},20:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(9040),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=7*(0,r.Z)(t);return(0,o.default)(e,n)}},5105:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(1104),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.default)(e,12*n)}},2729:(e,t,n)=>{"use strict";n.d(t,{qk:()=>a,vh:()=>o,yJ:()=>r});Math.pow(10,8);var r=6e4,o=36e5,a=1e3},9759:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(4697),o=n(8347),a=n(4522),i=864e5;function s(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),s=(0,o.default)(t),l=n.getTime()-(0,r.Z)(n),c=s.getTime()-(0,r.Z)(s);return Math.round((l-c)/i)}},5951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}},7415:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getFullYear()-a.getFullYear()}},786:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},4888:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},4565:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(4408),o=n(8527),a=n(9297),i=n(4522);function s(e,t){var n,s,l,c,u,d,h,f;(0,i.Z)(1,arguments);var p=(0,r.j)(),m=(0,a.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:p.weekStartsOn)&&void 0!==s?s:null===(h=p.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,o.default)(e),v=g.getDay(),y=6+(v{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},1951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M});var r=n(9314),o=n(1633),a=n(8527),i=n(4522);var s=n(9153),l=n(5611),c=n(9934),u=n(9726);function d(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return d("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):d(n+1,2)},d:function(e,t){return d(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return d(e.getUTCHours()%12||12,t.length)},H:function(e,t){return d(e.getUTCHours(),t.length)},m:function(e,t){return d(e.getUTCMinutes(),t.length)},s:function(e,t){return d(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return d(Math.floor(r*Math.pow(10,n-3)),t.length)}};var f="midnight",p="noon",m="morning",g="afternoon",v="evening",y="night";function b(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+d(a,2)}function w(e,t){return e%60===0?(e>0?"-":"+")+d(Math.abs(e)/60,2):k(e,t)}function k(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+d(Math.floor(o/60),2)+n+d(o%60,2)}const x={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){var o=(0,u.Z)(e,r),a=o>0?o:1-o;return"YY"===t?d(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):d(a,t.length)},R:function(e,t){return d((0,l.Z)(e),t.length)},u:function(e,t){return d(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return d(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,c.Z)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):d(o,t.length)},I:function(e,t,n){var r=(0,s.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){var r=function(e){(0,i.Z)(1,arguments);var t=(0,a.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):d(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return d(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return d(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return d(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?p:0===o?f:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?v:o>=12?g:o>=4?m:y,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return w(o);case"XXXX":case"XX":return k(o);default:return k(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return w(o);case"xxxx":case"xx":return k(o);default:return k(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(o,":");default:return"GMT"+k(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(o,":");default:return"GMT"+k(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return d(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return d((r._originalDate||e).getTime(),t.length)}};var S=n(3462),C=n(4697),E=n(8552),_=n(9297),T=n(4408),D=n(6674),A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R=/^'([^]*?)'?$/,N=/''/g,I=/[a-zA-Z]/;function M(e,t,n){var s,l,c,u,d,h,f,p,m,g,v,y,b,w,k,M,O,L;(0,i.Z)(2,arguments);var j=String(t),F=(0,T.j)(),B=null!==(s=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:F.locale)&&void 0!==s?s:D.Z,z=(0,_.Z)(null!==(c=null!==(u=null!==(d=null!==(h=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null===n||void 0===n||null===(f=n.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==d?d:F.firstWeekContainsDate)&&void 0!==u?u:null===(m=F.locale)||void 0===m||null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==c?c:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=(0,_.Z)(null!==(v=null!==(y=null!==(b=null!==(w=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==w?w:null===n||void 0===n||null===(k=n.locale)||void 0===k||null===(M=k.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==b?b:F.weekStartsOn)&&void 0!==y?y:null===(O=F.locale)||void 0===O||null===(L=O.options)||void 0===L?void 0:L.weekStartsOn)&&void 0!==v?v:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var U=(0,a.default)(e);if(!(0,r.default)(U))throw new RangeError("Invalid time value");var W=(0,C.Z)(U),H=(0,o.Z)(U,W),Y={firstWeekContainsDate:z,weekStartsOn:V,locale:B,_originalDate:U};return j.match(P).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,S.Z[t])(e,B.formatLong):e})).join("").match(A).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(R);if(!t)return e;return t[1].replace(N,"'")}(r);var a=x[o];if(a)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,E.Do)(r)||(0,E.qp)(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,E.Iu)(r)||(0,E.qp)(r,t,String(e)),a(H,r,B.localize,Y);if(o.match(I))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}},6114:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getDate()}},467:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getDay()}},1537:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getHours()}},6975:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(8527),o=n(3629),a=n(4522);function i(e){return(0,a.Z)(1,arguments),(0,o.default)(e,{weekStartsOn:1})}function s(e){(0,a.Z)(1,arguments);var t=function(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var s=i(o),l=new Date(0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);var c=i(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),i(n)}var l=6048e5;function c(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=i(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},4424:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getMinutes()}},3747:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getMonth()}},639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return Math.floor(t.getMonth()/3)+1}},2295:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getSeconds()}},4460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getTime()}},2599:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){return(0,o.Z)(1,arguments),(0,r.default)(e).getFullYear()}},9420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()>a.getTime()}},9579:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime(){"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(1002),o=n(4522);function a(e){return(0,o.Z)(1,arguments),e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}},7508:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()===a.getTime()}},4690:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8347),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()===a.getTime()}},5375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}},4845:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(3006),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getTime()===a.getTime()}},1750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e),a=(0,r.default)(t);return n.getFullYear()===a.getFullYear()}},9314:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(6971),o=n(8527),a=n(4522);function i(e){if((0,a.Z)(1,arguments),!(0,r.default)(e)&&"number"!==typeof e)return!1;var t=(0,o.default)(e);return!isNaN(Number(t))}},7262:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.default)(e).getTime(),a=(0,r.default)(t.start).getTime(),i=(0,r.default)(t.end).getTime();if(!(a<=i))throw new RangeError("Invalid interval");return n>=a&&n<=i}},9333:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(1002),o=n(8527),a=n(4522);function i(e){var t,n;if((0,a.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==(0,r.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,o.default)(e);(void 0===n||n{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(1002),o=n(8527),a=n(4522);function i(e){var t,n;if((0,a.Z)(1,arguments),e&&"function"===typeof e.forEach)t=e;else{if("object"!==(0,r.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,o.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},6236:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nt});var r=n(1002);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}var i=n(6674),s=n(1633),l=n(8527);function c(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var u=n(3462),d=n(4697),h=n(8552),f=n(9297),p=n(4522);function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===(0,r.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}(this,n)}}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}function x(e,t){for(var n=0;n0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function ce(e){return e%400===0||e%4===0&&e%100!==0}var ue=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=le(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(D),de=n(9726),he=n(1230),fe=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0}},{key:"set",value:function(e,t,n,r){var o=(0,de.Z)(e,r);if(n.isTwoDigitYear){var a=le(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,he.Z)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,he.Z)(e,r)}}]),n}(D),pe=n(9853),me=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(D),ye=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(D),be=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(D),we=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(D),ke=n(9934);var xe=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,he.Z)(function(e,t,n){(0,p.Z)(2,arguments);var r=(0,l.default)(e),o=(0,f.Z)(t),a=(0,ke.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(D),Se=n(9153);var Ce=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,pe.Z)(function(e,t){(0,p.Z)(2,arguments);var n=(0,l.default)(e),r=(0,f.Z)(t),o=(0,Se.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(D),Ee=[31,28,31,30,31,30,31,31,30,31,30,31],_e=[31,29,31,30,31,30,31,31,30,31,30,31],Te=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&t<=_e[r]:t>=1&&t<=Ee[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(D),De=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(D),Ae=n(4408);function Pe(e,t,n){var r,o,a,i,s,c,u,d;(0,p.Z)(2,arguments);var h=(0,Ae.j)(),m=(0,f.Z)(null!==(r=null!==(o=null!==(a=null!==(i=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==i?i:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==a?a:h.weekStartsOn)&&void 0!==o?o:null===(u=h.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,l.default)(e),v=(0,f.Z)(t),y=((v%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Pe(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(D),Ne=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Pe(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(D),Ie=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Pe(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(D);var Me=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){(0,p.Z)(2,arguments);var n=(0,f.Z)(t);n%7===0&&(n-=7);var r=(0,l.default)(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(D),Oe=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(D),Be=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(D),ze=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(D),Ve=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(D),Ue=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(D),We=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(D),He=function(e){v(n,e);var t=b(n);function n(){var e;w(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=(0,f.Z)(null!==(E=null!==(_=null!==(D=null!==(A=null===o||void 0===o?void 0:o.weekStartsOn)&&void 0!==A?A:null===o||void 0===o||null===(P=o.locale)||void 0===P||null===(R=P.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==D?D:L.weekStartsOn)&&void 0!==_?_:null===(N=L.locale)||void 0===N||null===(I=N.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==E?E:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===O)return""===M?(0,l.default)(n):new Date(NaN);var z,V={firstWeekContainsDate:F,weekStartsOn:B,locale:j},U=[new T],W=O.match($e).map((function(e){var t=e[0];return t in u.Z?(0,u.Z[t])(e,j.formatLong):e})).join("").match(Qe),H=[],Y=a(W);try{var q=function(){var t=z.value;null!==o&&void 0!==o&&o.useAdditionalWeekYearTokens||!(0,h.Do)(t)||(0,h.qp)(t,O,e),null!==o&&void 0!==o&&o.useAdditionalDayOfYearTokens||!(0,h.Iu)(t)||(0,h.qp)(t,O,e);var n=t[0],r=Ge[n];if(r){var a=r.incompatibleTokens;if(Array.isArray(a)){var i=H.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&H.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));H.push({token:n,fullToken:t});var s=r.run(M,t,j.match,V);if(!s)return{v:new Date(NaN)};U.push(s.setter),M=s.rest}else{if(n.match(tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Xe)[1].replace(Je,"'")),0!==M.indexOf(t))return{v:new Date(NaN)};M=M.slice(t.length)}};for(Y.s();!(z=Y.n()).done;){var K=q();if("object"===(0,r.Z)(K))return K.v}}catch(ne){Y.e(ne)}finally{Y.f()}if(M.length>0&&et.test(M))return new Date(NaN);var Z=U.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return U.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),G=(0,l.default)(n);if(isNaN(G.getTime()))return new Date(NaN);var Q,$=(0,s.Z)(G,(0,d.Z)(G)),X={},J=a(Z);try{for(J.s();!(Q=J.n()).done;){var ee=Q.value;if(!ee.validate($,V))return new Date(NaN);var te=ee.set($,X,V);Array.isArray(te)?($=te[0],c(X,te[1])):$=te}}catch(ne){J.e(ne)}finally{J.f()}return $}},9831:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2729),o=n(4522),a=n(9297);function i(e,t){var n;(0,o.Z)(1,arguments);var i=(0,a.Z)(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var m,g=function(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var o=s.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(g.date){var v=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(g.date,i);m=function(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4],o=d(n[1]),a=d(n[2])-1,i=d(n[3]),s=d(n[4]),c=d(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(f[t]||(p(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(p(e)?366:365)}(t,o)?(u.setUTCFullYear(t,a,Math.max(o,i)),u):new Date(NaN)}(v.restDateString,v.year)}if(!m||isNaN(m.getTime()))return new Date(NaN);var y,b=m.getTime(),w=0;if(g.time&&(w=function(e){var t=e.match(c);if(!t)return NaN;var n=h(t[1]),o=h(t[2]),a=h(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,a))return NaN;return n*r.vh+o*r.yJ+1e3*a}(g.time),isNaN(w)))return new Date(NaN);if(!g.timezone){var k=new Date(b+w),x=new Date(0);return x.setFullYear(k.getUTCFullYear(),k.getUTCMonth(),k.getUTCDate()),x.setHours(k.getUTCHours(),k.getUTCMinutes(),k.getUTCSeconds(),k.getUTCMilliseconds()),x}return y=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,a))return NaN;return n*(o*r.vh+a*r.yJ)}(g.timezone),isNaN(y)?new Date(NaN):new Date(b+w+y)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function h(e){return e&&parseFloat(e.replace(",","."))||0}var f=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400===0||e%4===0&&e%100!==0}},7152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(1002),o=n(8527),a=n(2363),i=n(9297),s=n(4522);function l(e,t){if((0,s.Z)(2,arguments),"object"!==(0,r.Z)(t)||null===t)throw new RangeError("values parameter must be an object");var n=(0,o.default)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,a.default)(n,t.month)),null!=t.date&&n.setDate((0,i.Z)(t.date)),null!=t.hours&&n.setHours((0,i.Z)(t.hours)),null!=t.minutes&&n.setMinutes((0,i.Z)(t.minutes)),null!=t.seconds&&n.setSeconds((0,i.Z)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,i.Z)(t.milliseconds)),n)}},2618:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(8527),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);return n.setHours(i),n}},7227:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(8527),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);return n.setMinutes(i),n}},2363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(8527),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t),s=n.getFullYear(),l=n.getDate(),c=new Date(0);c.setFullYear(s,i,15),c.setHours(0,0,0,0);var u=function(e){(0,a.Z)(1,arguments);var t=(0,o.default)(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}(c);return n.setMonth(i,Math.min(l,u)),n}},5765:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9297),o=n(8527),a=n(2363),i=n(4522);function s(e,t){(0,i.Z)(2,arguments);var n=(0,o.default)(e),s=(0,r.Z)(t)-(Math.floor(n.getMonth()/3)+1);return(0,a.default)(n,n.getMonth()+3*s)}},9292:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(8527),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);return n.setSeconds(i),n}},5617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(8527),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,o.default)(e),i=(0,r.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(i),n)}},8347:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},5719:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},3006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth(),a=n-n%3;return t.setMonth(a,1),t.setHours(0,0,0,0),t}},3629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8527),o=n(9297),a=n(4522),i=n(4408);function s(e,t){var n,s,l,c,u,d,h,f;(0,a.Z)(1,arguments);var p=(0,i.j)(),m=(0,o.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==c?c:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:p.weekStartsOn)&&void 0!==s?s:null===(h=p.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),v=g.getDay(),y=(v{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8527),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},6753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9040),o=n(4522),a=n(9297);function i(e,t){(0,o.Z)(2,arguments);var n=(0,a.Z)(t);return(0,r.default)(e,-n)}},1633:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4377),o=n(4522),a=n(9297);function i(e,t){(0,o.Z)(2,arguments);var n=(0,a.Z)(t);return(0,r.Z)(e,-n)}},8030:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(1104),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.default)(e,-n)}},6794:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(6689),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.default)(e,-n)}},7503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(20),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.default)(e,-n)}},7602:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(9297),o=n(5105),a=n(4522);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,o.default)(e,-n)}},8527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(1002),o=n(4522);function a(e){(0,o.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},2110:(e,t,n)=>{"use strict";var r=n(7441),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=f(n);o&&o!==p&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",c="[object Null]",u="[object Object]",d="[object Proxy]",h="[object Undefined]",f=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[a]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[u]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),b=t&&!t.nodeType&&t,w=b&&e&&!e.nodeType&&e,k=w&&w.exports===b,x=k&&g.process,S=function(){try{var e=w&&w.require&&w.require("util").types;return e||x&&x.binding&&x.binding("util")}catch(t){}}(),C=S&&S.isTypedArray;var E,_,T=Array.prototype,D=Function.prototype,A=Object.prototype,P=y["__core-js_shared__"],R=D.toString,N=A.hasOwnProperty,I=function(){var e=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M=A.toString,O=R.call(Object),L=RegExp("^"+R.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=k?y.Buffer:void 0,F=y.Symbol,B=y.Uint8Array,z=j?j.allocUnsafe:void 0,V=(E=Object.getPrototypeOf,_=Object,function(e){return E(_(e))}),U=Object.create,W=A.propertyIsEnumerable,H=T.splice,Y=F?F.toStringTag:void 0,q=function(){try{var e=ye(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),K=j?j.isBuffer:void 0,Z=Math.max,G=Date.now,Q=ye(y,"Map"),$=ye(Object,"create"),X=function(){function e(){}return function(t){if(!Pe(t))return{};if(U)return U(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var n=this.__data__,r=ie(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(Q||ee),string:new J}},te.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ve(this,e).get(e)},te.prototype.has=function(e){return ve(this,e).has(e)},te.prototype.set=function(e,t){var n=ve(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ne.prototype.clear=function(){this.__data__=new ee,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ee){var r=n.__data__;if(!Q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(r)}return n.set(e,t),this.size=n.size,this};var le,ce=function(e,t,n){for(var r=-1,o=Object(e),a=n(e),i=a.length;i--;){var s=a[le?i:++r];if(!1===t(o[s],s,o))break}return e};function ue(e){return null==e?void 0===e?h:c:Y&&Y in Object(e)?function(e){var t=N.call(e,Y),n=e[Y];try{e[Y]=void 0;var r=!0}catch(a){}var o=M.call(e);r&&(t?e[Y]=n:delete e[Y]);return o}(e):function(e){return M.call(e)}(e)}function de(e){return Re(e)&&ue(e)==a}function he(e){return!(!Pe(e)||function(e){return!!I&&I in e}(e))&&(De(e)?L:f).test(function(e){if(null!=e){try{return R.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function fe(e){if(!Pe(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=we(e),n=[];for(var r in e)("constructor"!=r||!t&&N.call(e,r))&&n.push(r);return n}function pe(e,t,n,r,o){e!==t&&ce(t,(function(a,i){if(o||(o=new ne),Pe(a))!function(e,t,n,r,o,a,i){var s=ke(e,n),l=ke(t,n),c=i.get(l);if(c)return void oe(e,n,c);var d=a?a(s,l,n+"",e,t,i):void 0,h=void 0===d;if(h){var f=Ee(l),p=!f&&Te(l),m=!f&&!p&&Ne(l);d=l,f||p||m?Ee(s)?d=s:Re(g=s)&&_e(g)?d=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ge);function Se(e,t){return e===t||e!==e&&t!==t}var Ce=de(function(){return arguments}())?de:function(e){return Re(e)&&N.call(e,"callee")&&!W.call(e,"callee")},Ee=Array.isArray;function _e(e){return null!=e&&Ae(e.length)&&!De(e)}var Te=K||function(){return!1};function De(e){if(!Pe(e))return!1;var t=ue(e);return t==s||t==l||t==i||t==d}function Ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Pe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var Ne=C?function(e){return function(t){return e(t)}}(C):function(e){return Re(e)&&Ae(e.length)&&!!m[ue(e)]};function Ie(e){return _e(e)?re(e,!0):fe(e)}var Me,Oe=(Me=function(e,t,n,r){pe(e,t,n,r)},me((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=Me.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!Pe(n))return!1;var r=typeof t;return!!("number"==r?_e(n)&&be(t,n.length):"string"==r&&t in n)&&Se(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n{"use strict";var r=n(9047);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},2007:(e,t,n)=>{e.exports=n(888)()},9047:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9513:function(e,t,n){!function(e,t,n,r,o,a,i,s,l,c,u,d,h,f,p,m,g,v,y,b,w,k,x,S,C,E,_,T,D,A,P,R,N,I,M,O,L,j,F,B,z,V,U,W,H,Y,q,K,Z,G,Q,$,X,J,ee,te,ne,re,oe,ae,ie,se,le,ce){"use strict";function ue(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var de=ue(t),he=ue(r),fe=ue(o),pe=ue(a),me=ue(i),ge=ue(s),ve=ue(l),ye=ue(c),be=ue(u),we=ue(d),ke=ue(h),xe=ue(f),Se=ue(p),Ce=ue(m),Ee=ue(g),_e=ue(v),Te=ue(y),De=ue(b),Ae=ue(w),Pe=ue(k),Re=ue(x),Ne=ue(S),Ie=ue(C),Me=ue(E),Oe=ue(_),Le=ue(T),je=ue(D),Fe=ue(A),Be=ue(P),ze=ue(R),Ve=ue(N),Ue=ue(I),We=ue(M),He=ue(O),Ye=ue(L),qe=ue(j),Ke=ue(F),Ze=ue(B),Ge=ue(z),Qe=ue(V),$e=ue(U),Xe=ue(W),Je=ue(H),et=ue(Y),tt=ue(q),nt=ue(K),rt=ue(Z),ot=ue(G),at=ue(Q),it=ue($),st=ue(X),lt=ue(J),ct=ue(ee),ut=ue(te),dt=ue(ne),ht=ue(re),ft=ue(oe),pt=ue(ae),mt=ue(ie),gt=ue(se),vt=ue(ce);function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.excludeDateIntervals,i=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return pn(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return Xt(e,t.date?t.date:t)}))||a&&a.some((function(t){var n=t.start,r=t.end;return dt.default(e,{start:n,end:r})}))||i&&!i.some((function(t){return Xt(e,t)}))||s&&!s.some((function(t){var n=t.start,r=t.end;return dt.default(e,{start:n,end:r})}))||l&&!l(Bt(e))||!1}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return dt.default(e,{start:n,end:r})})):n&&n.some((function(t){return Xt(e,t.date?t.date:t)}))||!1}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.includeDates,i=t.filterDate;return pn(e,{minDate:$e.default(n),maxDate:nt.default(r)})||o&&o.some((function(t){return Qt(e,t)}))||a&&!a.some((function(t){return Qt(e,t)}))||i&&!i(Bt(e))||!1}function cn(e,t,n,r){var o=Le.default(e),a=Me.default(e),i=Le.default(t),s=Me.default(t),l=Le.default(r);return o===i&&o===l?a<=n&&n<=s:o=n||lo:void 0}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.includeDates,i=t.filterDate;return pn(e,{minDate:n,maxDate:r})||o&&o.some((function(t){return $t(e,t)}))||a&&!a.some((function(t){return $t(e,t)}))||i&&!i(Bt(e))||!1}function dn(e,t,n){if(!pe.default(t)||!pe.default(n))return!1;var r=Le.default(t),o=Le.default(n);return r<=e&&o>=e}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,a=t.includeDates,i=t.filterDate,s=new Date(e,0,1);return pn(s,{minDate:Je.default(n),maxDate:rt.default(r)})||o&&o.some((function(e){return Gt(s,e)}))||a&&!a.some((function(e){return Gt(s,e)}))||i&&!i(Bt(s))||!1}function fn(e,t,n,r){var o=Le.default(e),a=Oe.default(e),i=Le.default(t),s=Oe.default(t),l=Le.default(r);return o===i&&o===l?a<=n&&n<=s:o=n||lo:void 0}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&qe.default(e,n)<0||r&&qe.default(e,r)>0}function mn(e,t){return t.some((function(t){return Pe.default(t)===Pe.default(e)&&Ae.default(t)===Ae.default(e)}))}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&mn(e,n)||r&&!mn(e,r)||o&&!o(e)||!1}function vn(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o,a=Bt(),i=ze.default(Be.default(a,Ae.default(e)),Pe.default(e)),s=ze.default(Be.default(a,Ae.default(n)),Pe.default(n)),l=ze.default(Be.default(a,Ae.default(r)),Pe.default(r));try{o=!dt.default(i,{start:s,end:l})}catch(e){o=!1}return o}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Ee.default(e,1);return n&&Ke.default(n,o)>0||r&&r.every((function(e){return Ke.default(e,o)>0}))||!1}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=we.default(e,1);return n&&Ke.default(o,n)>0||r&&r.every((function(e){return Ke.default(o,e)>0}))||!1}function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Te.default(e,1);return n&&Ze.default(n,o)>0||r&&r.every((function(e){return Ze.default(e,o)>0}))||!1}function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=xe.default(e,1);return n&&Ze.default(o,n)>0||r&&r.every((function(e){return Ze.default(o,e)>0}))||!1}function xn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return qe.default(e,t)>=0}));return He.default(r)}return n?He.default(n):t}function Sn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return qe.default(e,t)<=0}));return Ye.default(r)}return n?Ye.default(n):t}function Cn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach((function(e){var r=e.date,o=e.holidayName;if(fe.default(r)){var a=Vt(r,"MM.dd.yyyy"),i=n.get(a)||{};if(!("className"in i)||i.className!==t||(s=i.holidayNames,l=[o],s.length!==l.length||!s.every((function(e,t){return e===l[t]})))){var s,l;i.className=t;var c=i.holidayNames;i.holidayNames=c?[].concat(Nt(c),[o]):[o],n.set(a,i)}}})),n}function _n(e,t,n,r,o){for(var a=o.length,i=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:jt,n=Math.ceil(Le.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function An(e){var t=e.getSeconds(),n=e.getMilliseconds();return ht.default(e.getTime()-1e3*t-n)}function Pn(e){if(!fe.default(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function Rn(e,t){if(!fe.default(e)||!fe.default(t))throw new Error("Invalid date received");var n=Pn(e),r=Pn(t);return ut.default(n,r)}function Nn(e,t,n,r){for(var o=[],a=0;a<2*t+1;a++){var i=e+t-a,s=!0;n&&(s=Le.default(n)<=i),r&&s&&(s=Le.default(r)>=i),s&&o.push(i)}return o}var In=function(e){function n(e){var r;xt(this,n),Et(Pt(r=function(e,t,n){return t=Dt(t),Rt(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(t,n||[],Dt(e).constructor):t.apply(e,n))}(this,n,[e])),"renderOptions",(function(){var e=r.props.year,t=r.state.yearsList.map((function(t){return de.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(Pt(r),t),"aria-selected":e===t?"true":void 0},e===t?de.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=r.props.minDate?Le.default(r.props.minDate):null,o=r.props.maxDate?Le.default(r.props.maxDate):null;return o&&r.state.yearsList.find((function(e){return e===o}))||t.unshift(de.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},de.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(e){return e===n}))||t.push(de.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},de.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),Et(Pt(r),"onChange",(function(e){r.props.onChange(e)})),Et(Pt(r),"handleClickOutside",(function(){r.props.onCancel()})),Et(Pt(r),"shiftYears",(function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})})),Et(Pt(r),"incrementYears",(function(){return r.shiftYears(1)})),Et(Pt(r),"decrementYears",(function(){return r.shiftYears(-1)}));var o=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,i=o||(a?10:5);return r.state={yearsList:Nn(r.props.year,i,r.props.minDate,r.props.maxDate)},r.dropdownRef=t.createRef(),r}return Tt(n,e),Ct(n,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=he.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return de.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),n}(de.default.Component),Mn=mt.default(In),On=function(e){function t(){var e;xt(this,t);for(var n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},r=!1;0===e.getTabIndex()&&!n.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(r=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(r=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(r=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(r=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(r=!1)),r&&(null===(t=e.dayEl.current)||void 0===t||t.focus({preventScroll:!0}))})),Et(Pt(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Ne.default(e.props.day),e.props.day):Ne.default(e.props.day)})),Et(Pt(e),"render",(function(){return de.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),""!==e.getTitle()&&de.default.createElement("span",{className:"overlay"},e.getTitle()))})),e}return Tt(t,e),Ct(t,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),t}(de.default.Component),Hn=function(e){function t(){var e;xt(this,t);for(var n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&Xt(e.props.date,e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})})),e}return Tt(t,e),Ct(t,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(e){this.handleFocusWeekNumber(e)}},{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r=void 0===n?"week ":n,o={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick,"react-datepicker__week-number--selected":Xt(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return de.default.createElement("div",{ref:this.weekNumberEl,className:he.default(o),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),t}(de.default.Component),Yn=function(e){function t(){var e;xt(this,t);for(var n=arguments.length,r=new Array(n),o=0;o=6,s=!n&&!e.isWeekInMonth(a);if(i||s){if(!e.props.peekNextMonth)break;o=!0}}return t})),Et(Pt(e),"onMonthClick",(function(t,n){e.handleDayClick(Yt(Ve.default(e.props.day,n)),t)})),Et(Pt(e),"onMonthMouseEnter",(function(t){e.handleDayMouseEnter(Yt(Ve.default(e.props.day,t)))})),Et(Pt(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),Et(Pt(e),"onMonthKeyDown",(function(t,n){var r=e.props,o=r.selected,a=r.preSelection,i=r.disabledKeyboardNavigation,s=r.showTwoColumnMonthYearPicker,l=r.showFourColumnMonthYearPicker,c=r.setPreSelection,u=t.key;if("Tab"!==u&&t.preventDefault(),!i){var d=Qn(l,s),h=Gn[d].verticalNavigationOffset,f=Gn[d].grid;switch(u){case"Enter":e.onMonthClick(t,n),c(o);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,we.default(a,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,Ee.default(a,1));break;case"ArrowUp":e.handleMonthNavigation(f[0].includes(n)?n+12-h:n-h,Ee.default(a,h));break;case"ArrowDown":e.handleMonthNavigation(f[f.length-1].includes(n)?n-12+h:n+h,we.default(a,h))}}})),Et(Pt(e),"onQuarterClick",(function(t,n){e.handleDayClick(Kt(Ue.default(e.props.day,n)),t)})),Et(Pt(e),"onQuarterMouseEnter",(function(t){e.handleDayMouseEnter(Kt(Ue.default(e.props.day,t)))})),Et(Pt(e),"handleQuarterNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())})),Et(Pt(e),"onQuarterKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,ke.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,_e.default(e.props.preSelection,1))}})),Et(Pt(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,a=n.endDate,i=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,u=n.monthClassName,d=n.excludeDates,h=n.includeDates,f=u?u(Ve.default(r,t)):void 0,p=Ve.default(r,t);return he.default("react-datepicker__month-text","react-datepicker__month-".concat(t),f,{"react-datepicker__month-text--disabled":(s||l||d||h)&&ln(p,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(r,t,i),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&Me.default(c)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":cn(o,a,t,r),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),Et(Pt(e),"getTabIndex",(function(t){var n=Me.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),Et(Pt(e),"getQuarterTabIndex",(function(t){var n=Oe.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),Et(Pt(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,o=void 0===r?"Choose":r,a=n.disabledDayAriaLabelPrefix,i=void 0===a?"Not available":a,s=n.day,l=Ve.default(s,t),c=e.isDisabled(l)||e.isExcluded(l)?i:o;return"".concat(c," ").concat(Vt(l,"MMMM yyyy"))})),Et(Pt(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,o=n.startDate,a=n.endDate,i=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,u=n.disabledKeyboardNavigation;return he.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(s||l)&&un(Ue.default(r,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(r,t,i),"react-datepicker__quarter-text--keyboard-selected":!u&&Oe.default(c)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":fn(o,a,t,r),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})})),Et(Pt(e),"getMonthContent",(function(t){var n=e.props,r=n.showFullMonthYearPicker,o=n.renderMonthContent,a=n.locale,i=n.day,s=on(t,a),l=rn(t,a);return o?o(t,s,l,i):r?l:s})),Et(Pt(e),"getQuarterContent",(function(t){var n=e.props,r=n.renderQuarterContent,o=function(e,t){return Vt(Ue.default(Bt(),e),"QQQ",t)}(t,n.locale);return r?r(t,o):o})),Et(Pt(e),"renderMonths",(function(){var t=e.props,n=t.showTwoColumnMonthYearPicker,r=t.showFourColumnMonthYearPicker,o=t.day,a=t.selected;return Gn[Qn(r,n)].grid.map((function(t,n){return de.default.createElement("div",{className:"react-datepicker__month-wrapper",key:n},t.map((function(t,n){return de.default.createElement("div",{ref:e.MONTH_REFS[t],key:n,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(o,t)?"date":void 0,"aria-selected":e.isSelectedMonth(o,t,a)},e.getMonthContent(t))})))}))})),Et(Pt(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return de.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,o){return de.default.createElement("div",{key:o,ref:e.QUARTER_REFS[o],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},e.getQuarterContent(t))})))})),Et(Pt(e),"getClassNames",(function(){var t=e.props,n=t.selectingDate,r=t.selectsStart,o=t.selectsEnd,a=t.showMonthYearPicker,i=t.showQuarterYearPicker,s=t.showWeekPicker;return he.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":i},{"react-datepicker__weekPicker":s})})),e}return Tt(t,e),Ct(t,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,a=void 0===o?"month ":o;return de.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(a," ").concat(Vt(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),t}(de.default.Component),Xn=function(e){function t(){var e;xt(this,t);for(var n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return or.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&n.props.onDropdownFocus()})),Et(Pt(n),"getDateInView",(function(){var e=n.props,t=e.preSelection,r=e.selected,o=e.openToDate,a=xn(n.props),i=Sn(n.props),s=Bt();return o||r||t||(a&&ut.default(s,a)?a:i&&ct.default(s,i)?i:s)})),Et(Pt(n),"increaseMonth",(function(){n.setState((function(e){var t=e.date;return{date:we.default(t,1)}}),(function(){return n.handleMonthChange(n.state.date)}))})),Et(Pt(n),"decreaseMonth",(function(){n.setState((function(e){var t=e.date;return{date:Ee.default(t,1)}}),(function(){return n.handleMonthChange(n.state.date)}))})),Et(Pt(n),"handleDayClick",(function(e,t,r){n.props.onSelect(e,t,r),n.props.setPreSelection&&n.props.setPreSelection(e)})),Et(Pt(n),"handleDayMouseEnter",(function(e){n.setState({selectingDate:e}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(e)})),Et(Pt(n),"handleMonthMouseLeave",(function(){n.setState({selectingDate:null}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()})),Et(Pt(n),"handleYearMouseEnter",(function(e,t){n.setState({selectingDate:We.default(Bt(),t)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(e,t)})),Et(Pt(n),"handleYearMouseLeave",(function(e,t){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(e,t)})),Et(Pt(n),"handleYearChange",(function(e){n.props.onYearChange&&(n.props.onYearChange(e),n.setState({isRenderAriaLiveMessage:!0})),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(e),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(e)})),Et(Pt(n),"handleMonthChange",(function(e){n.handleCustomMonthChange(e),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(e),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(e)})),Et(Pt(n),"handleCustomMonthChange",(function(e){n.props.onMonthChange&&(n.props.onMonthChange(e),n.setState({isRenderAriaLiveMessage:!0}))})),Et(Pt(n),"handleMonthYearChange",(function(e){n.handleYearChange(e),n.handleMonthChange(e)})),Et(Pt(n),"changeYear",(function(e){n.setState((function(t){var n=t.date;return{date:We.default(n,e)}}),(function(){return n.handleYearChange(n.state.date)}))})),Et(Pt(n),"changeMonth",(function(e){n.setState((function(t){var n=t.date;return{date:Ve.default(n,e)}}),(function(){return n.handleMonthChange(n.state.date)}))})),Et(Pt(n),"changeMonthYear",(function(e){n.setState((function(t){var n=t.date;return{date:We.default(Ve.default(n,Me.default(e)),Le.default(e))}}),(function(){return n.handleMonthYearChange(n.state.date)}))})),Et(Pt(n),"header",(function(){var e=Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.date,n.props.locale,n.props.calendarStartDay),t=[];return n.props.showWeekNumbers&&t.push(de.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},n.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var r=ye.default(e,t),o=n.formatWeekday(r,n.props.locale),a=n.props.weekDayClassName?n.props.weekDayClassName(r):void 0;return de.default.createElement("div",{key:t,className:he.default("react-datepicker__day-name",a)},o)})))})),Et(Pt(n),"formatWeekday",(function(e,t){return n.props.formatWeekDay?function(e,t,n){return t(Vt(e,"EEEE",n))}(e,n.props.formatWeekDay,t):n.props.useWeekdaysShort?function(e,t){return Vt(e,"EEE",t)}(e,t):function(e,t){return Vt(e,"EEEEEE",t)}(e,t)})),Et(Pt(n),"decreaseYear",(function(){n.setState((function(e){var t=e.date;return{date:Te.default(t,n.props.showYearPicker?n.props.yearItemNumber:1)}}),(function(){return n.handleYearChange(n.state.date)}))})),Et(Pt(n),"clearSelectingDate",(function(){n.setState({selectingDate:null})})),Et(Pt(n),"renderPreviousButton",(function(){if(!n.props.renderCustomHeader){var e;switch(!0){case n.props.showMonthYearPicker:e=wn(n.state.date,n.props);break;case n.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,o=void 0===r?jt:r,a=Dn(qt(Te.default(e,o)),o).endPeriod,i=n&&Le.default(n);return i&&i>a||!1}(n.state.date,n.props);break;default:e=yn(n.state.date,n.props)}if((n.props.forceShowMonthNavigation||n.props.showDisabledMonthNavigation||!e)&&!n.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],r=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(r=n.decreaseYear),e&&n.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),r=null);var o=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,a=n.props,i=a.previousMonthButtonLabel,s=a.previousYearButtonLabel,l=n.props,c=l.previousMonthAriaLabel,u=void 0===c?"string"==typeof i?i:"Previous Month":c,d=l.previousYearAriaLabel,h=void 0===d?"string"==typeof s?s:"Previous Year":d;return de.default.createElement("button",{type:"button",className:t.join(" "),onClick:r,onKeyDown:n.props.handleOnKeyDown,"aria-label":o?h:u},de.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},o?n.props.previousYearButtonLabel:n.props.previousMonthButtonLabel))}}})),Et(Pt(n),"increaseYear",(function(){n.setState((function(e){var t=e.date;return{date:xe.default(t,n.props.showYearPicker?n.props.yearItemNumber:1)}}),(function(){return n.handleYearChange(n.state.date)}))})),Et(Pt(n),"renderNextButton",(function(){if(!n.props.renderCustomHeader){var e;switch(!0){case n.props.showMonthYearPicker:e=kn(n.state.date,n.props);break;case n.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,o=void 0===r?jt:r,a=Dn(xe.default(e,o),o).startPeriod,i=n&&Le.default(n);return i&&i0&&void 0!==arguments[0]?arguments[0]:n.state.date,t=["react-datepicker__current-month"];return n.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),de.default.createElement("div",{className:t.join(" ")},Vt(e,n.props.dateFormat,n.props.locale))})),Et(Pt(n),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n.props.showYearDropdown&&!e)return de.default.createElement(On,{adjustDateOnChange:n.props.adjustDateOnChange,date:n.state.date,onSelect:n.props.onSelect,setOpen:n.props.setOpen,dropdownMode:n.props.dropdownMode,onChange:n.changeYear,minDate:n.props.minDate,maxDate:n.props.maxDate,year:Le.default(n.state.date),scrollableYearDropdown:n.props.scrollableYearDropdown,yearDropdownItemNumber:n.props.yearDropdownItemNumber})})),Et(Pt(n),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n.props.showMonthDropdown&&!e)return de.default.createElement(Fn,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,onChange:n.changeMonth,month:Me.default(n.state.date),useShortMonthInDropdown:n.props.useShortMonthInDropdown})})),Et(Pt(n),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n.props.showMonthYearDropdown&&!e)return de.default.createElement(Un,{dropdownMode:n.props.dropdownMode,locale:n.props.locale,dateFormat:n.props.dateFormat,onChange:n.changeMonthYear,minDate:n.props.minDate,maxDate:n.props.maxDate,date:n.state.date,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown})})),Et(Pt(n),"handleTodayButtonClick",(function(e){n.props.onSelect(Zt(),e),n.props.setPreSelection&&n.props.setPreSelection(Zt())})),Et(Pt(n),"renderTodayButton",(function(){if(n.props.todayButton&&!n.props.showTimeSelectOnly)return de.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return n.handleTodayButtonClick(e)}},n.props.todayButton)})),Et(Pt(n),"renderDefaultHeader",(function(e){var t=e.monthDate,r=e.i;return de.default.createElement("div",{className:"react-datepicker__header ".concat(n.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},n.renderCurrentMonth(t),de.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(0!==r),n.renderMonthYearDropdown(0!==r),n.renderYearDropdown(0!==r)),de.default.createElement("div",{className:"react-datepicker__day-names"},n.header(t)))})),Et(Pt(n),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,r=e.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var o=yn(n.state.date,n.props),a=bn(n.state.date,n.props),i=wn(n.state.date,n.props),s=kn(n.state.date,n.props),l=!n.props.showMonthYearPicker&&!n.props.showQuarterYearPicker&&!n.props.showYearPicker;return de.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},n.props.renderCustomHeader(bt(bt({},n.state),{},{customHeaderCount:r,monthDate:t,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:a,prevYearButtonDisabled:i,nextYearButtonDisabled:s})),l&&de.default.createElement("div",{className:"react-datepicker__day-names"},n.header(t)))})),Et(Pt(n),"renderYearHeader",(function(){var e=n.state.date,t=n.props,r=t.showYearPicker,o=Dn(e,t.yearItemNumber),a=o.startPeriod,i=o.endPeriod;return de.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},r?"".concat(a," - ").concat(i):Le.default(e))})),Et(Pt(n),"renderHeader",(function(e){switch(!0){case void 0!==n.props.renderCustomHeader:return n.renderCustomHeader(e);case n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker:return n.renderYearHeader(e);default:return n.renderDefaultHeader(e)}})),Et(Pt(n),"renderMonths",(function(){var e;if(!n.props.showTimeSelectOnly&&!n.props.showYearPicker){for(var t=[],r=n.props.showPreviousMonths?n.props.monthsShown-1:0,o=Ee.default(n.state.date,r),a=null!==(e=n.props.monthSelectedIn)&&void 0!==e?e:r,i=0;i0;t.push(de.default.createElement("div",{key:c,ref:function(e){n.monthContainer=e},className:"react-datepicker__month-container"},n.renderHeader({monthDate:l,i:i}),de.default.createElement($n,{chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,ariaLabelPrefix:n.props.monthAriaLabelPrefix,onChange:n.changeMonthYear,day:l,dayClassName:n.props.dayClassName,calendarStartDay:n.props.calendarStartDay,monthClassName:n.props.monthClassName,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,onWeekSelect:n.props.onWeekSelect,orderInDisplay:i,formatWeekNumber:n.props.formatWeekNumber,locale:n.props.locale,minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,highlightDates:n.props.highlightDates,holidays:n.props.holidays,selectingDate:n.state.selectingDate,includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,inline:n.props.inline,shouldFocusDayInline:n.props.shouldFocusDayInline,fixedHeight:n.props.fixedHeight,filterDate:n.props.filterDate,preSelection:n.props.preSelection,setPreSelection:n.props.setPreSelection,selected:n.props.selected,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,showWeekNumbers:n.props.showWeekNumbers,startDate:n.props.startDate,endDate:n.props.endDate,peekNextMonth:n.props.peekNextMonth,setOpen:n.props.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,isInputFocused:n.props.isInputFocused,containerRef:n.containerRef,monthShowsDuplicateDaysEnd:u,monthShowsDuplicateDaysStart:d})))}return t}})),Et(Pt(n),"renderYears",(function(){if(!n.props.showTimeSelectOnly)return n.props.showYearPicker?de.default.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader(),de.default.createElement(Jn,_t({onDayClick:n.handleDayClick,selectingDate:n.state.selectingDate,clearSelectingDate:n.clearSelectingDate,date:n.state.date},n.props,{onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave}))):void 0})),Et(Pt(n),"renderTimeSection",(function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return de.default.createElement(Xn,{selected:n.props.selected,openToDate:n.props.openToDate,onChange:n.props.onTimeChange,timeClassName:n.props.timeClassName,format:n.props.timeFormat,includeTimes:n.props.includeTimes,intervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,todayButton:n.props.todayButton,showMonthDropdown:n.props.showMonthDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,monthRef:n.state.monthContainer,injectTimes:n.props.injectTimes,locale:n.props.locale,handleOnKeyDown:n.props.handleOnKeyDown,showTimeSelectOnly:n.props.showTimeSelectOnly})})),Et(Pt(n),"renderInputTimeSection",(function(){var e=new Date(n.props.selected),t=zt(e)&&Boolean(n.props.selected)?"".concat(Tn(e.getHours()),":").concat(Tn(e.getMinutes())):"";if(n.props.showTimeInput)return de.default.createElement(er,{date:e,timeString:t,timeInputLabel:n.props.timeInputLabel,onChange:n.props.onTimeChange,customTimeInput:n.props.customTimeInput})})),Et(Pt(n),"renderAriaLiveRegion",(function(){var e,t=Dn(n.state.date,n.props.yearItemNumber),r=t.startPeriod,o=t.endPeriod;return e=n.props.showYearPicker?"".concat(r," - ").concat(o):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?Le.default(n.state.date):"".concat(rn(Me.default(n.state.date),n.props.locale)," ").concat(Le.default(n.state.date)),de.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&e)})),Et(Pt(n),"renderChildren",(function(){if(n.props.children)return de.default.createElement("div",{className:"react-datepicker__children-container"},n.props.children)})),n.containerRef=de.default.createRef(),n.state={date:n.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},n}return Tt(t,e),Ct(t,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||Xt(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Xt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!Qt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}}},{key:"render",value:function(){var e=this.props.container||tr;return de.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},de.default.createElement(e,{className:he.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly})},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:jt}}}]),t}(de.default.Component),ir=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,o=e.onClick,a="react-datepicker__calendar-icon";return de.default.isValidElement(t)?de.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(a," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof o&&o(e)}}):"string"==typeof t?de.default.createElement("i",{className:"".concat(a," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:o}):de.default.createElement("svg",{className:"".concat(a," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},de.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},sr=function(e){function t(e){var n;return xt(this,t),(n=function(e,t,n){return t=Dt(t),Rt(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(t,n||[],Dt(e).constructor):t.apply(e,n))}(this,t,[e])).el=document.createElement("div"),n}return Tt(t,e),Ct(t,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return gt.default.createPortal(this.props.children,this.el)}}]),t}(de.default.Component),lr=function(e){return!e.disabled&&-1!==e.tabIndex},cr=function(e){function t(e){var n;return xt(this,t),Et(Pt(n=function(e,t,n){return t=Dt(t),Rt(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(t,n||[],Dt(e).constructor):t.apply(e,n))}(this,t,[e])),"getTabChildren",(function(){return Array.prototype.slice.call(n.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(lr)})),Et(Pt(n),"handleFocusStart",(function(){var e=n.getTabChildren();e&&e.length>1&&e[e.length-1].focus()})),Et(Pt(n),"handleFocusEnd",(function(){var e=n.getTabChildren();e&&e.length>1&&e[0].focus()})),n.tabLoopRef=de.default.createRef(),n}return Tt(t,e),Ct(t,[{key:"render",value:function(){return this.props.enableTabLoop?de.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},de.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,de.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),t}(de.default.Component),ur=function(e){function t(){return xt(this,t),e=this,r=arguments,n=Dt(n=t),Rt(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(n,r||[],Dt(e).constructor):n.apply(e,r));var e,n,r}return Tt(t,e),Ct(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,o=t.hidePopper,a=t.popperComponent,i=t.targetComponent,s=t.enableTabLoop,l=t.popperOnKeyDown,c=t.portalId,u=t.portalHost,d=t.popperProps,h=t.showArrow;if(!o){var f=he.default("react-datepicker-popper",n);e=de.default.createElement(cr,{enableTabLoop:s},de.default.createElement("div",{ref:d.refs.setFloating,style:d.floatingStyles,className:f,"data-placement":d.placement,onKeyDown:l},a,h&&de.default.createElement(le.FloatingArrow,{ref:d.arrowRef,context:d.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(e=de.default.createElement(this.props.popperContainer,{},e)),c&&!o&&(e=de.default.createElement(sr,{portalId:c,portalHost:u},e));var p=he.default("react-datepicker-wrapper",r);return de.default.createElement(de.default.Fragment,null,de.default.createElement("div",{ref:d.refs.setReference,className:p},i),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0}}}]),t}(de.default.Component),dr=(nr=ur,(rr=function(e){var t=de.default.useRef(),n=le.useFloating(bt({open:!e.hidePopper,whileElementsMounted:le.autoUpdate,placement:e.popperPlacement,middleware:[le.flip({padding:15}),le.offset(10),le.arrow({element:t})].concat(Nt(e.popperModifiers))},e.popperProps));return de.default.createElement(nr,_t({},e,{popperProps:bt(bt({},n),{},{arrowRef:t})}))}).defaultProps={popperModifiers:[],popperProps:{},hidePopper:!0},rr),hr="react-datepicker-ignore-onclickoutside",fr=mt.default(ar),pr="Date input not valid.",mr=function(e){function t(e){var n;return xt(this,t),Et(Pt(n=function(e,t,n){return t=Dt(t),Rt(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(t,n||[],Dt(e).constructor):t.apply(e,n))}(this,t,[e])),"getPreSelection",(function(){return n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:Bt()})),Et(Pt(n),"modifyHolidays",(function(){var e;return null===(e=n.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return pe.default(n)?[].concat(Nt(e),[bt(bt({},t),{},{date:n})]):e}),[])})),Et(Pt(n),"calcInitialState",(function(){var e,t=n.getPreSelection(),r=xn(n.props),o=Sn(n.props),a=r&&ut.default(t,Ge.default(r))?r:o&&ct.default(t,et.default(o))?o:t;return{open:n.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=n.props.selectsRange?n.props.startDate:n.props.selected)&&void 0!==e?e:a,highlightDates:Cn(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),Et(Pt(n),"clearPreventFocusTimeout",(function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)})),Et(Pt(n),"setFocus",(function(){n.input&&n.input.focus&&n.input.focus({preventScroll:!0})})),Et(Pt(n),"setBlur",(function(){n.input&&n.input.blur&&n.input.blur(),n.cancelFocusInput()})),Et(Pt(n),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.setState({open:e,preSelection:e&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:vr},(function(){e||n.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&n.setBlur(),n.setState({inputValue:null})}))}))})),Et(Pt(n),"inputOk",(function(){return fe.default(n.state.preSelection)})),Et(Pt(n),"isCalendarOpen",(function(){return void 0===n.props.open?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open})),Et(Pt(n),"handleFocus",(function(e){n.state.preventFocus||(n.props.onFocus(e),n.props.preventOpenOnFocus||n.props.readOnly||n.setOpen(!0)),n.setState({focused:!0})})),Et(Pt(n),"sendFocusBackToInput",(function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},(function(){n.preventFocusTimeout=setTimeout((function(){n.setFocus(),n.setState({preventFocus:!1})}))}))})),Et(Pt(n),"cancelFocusInput",(function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=null})),Et(Pt(n),"deferFocusInput",(function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout((function(){return n.setFocus()}),1)})),Et(Pt(n),"handleDropdownFocus",(function(){n.cancelFocusInput()})),Et(Pt(n),"handleBlur",(function(e){(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&n.props.onBlur(e),n.setState({focused:!1})})),Et(Pt(n),"handleCalendarClickOutside",(function(e){n.props.inline||n.setOpen(!1),n.props.onClickOutside(e),n.props.withPortal&&e.preventDefault()})),Et(Pt(n),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&(u=ft.default(a,i.slice(0,a.length),new Date)),zt(u)||(u=new Date(a))),zt(u)&&h?u:null));n.props.showTimeSelectOnly&&n.props.selected&&f&&!Xt(f,n.props.selected)&&(f=vt.default(n.props.selected,{hours:Pe.default(f),minutes:Ae.default(f),seconds:De.default(f)})),!f&&o.target.value||(n.props.showWeekPicker&&(f=Ht(f,n.props.locale,n.props.calendarStartDay)),n.setSelected(f,o,!0))}})),Et(Pt(n),"handleSelect",(function(e,t,r){if(n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&n.sendFocusBackToInput(),n.props.onChangeRaw&&n.props.onChangeRaw(t),n.props.showWeekPicker&&(e=Ht(e,n.props.locale,n.props.calendarStartDay)),n.setSelected(e,t,!1,r),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect)n.setPreSelection(e);else if(!n.props.inline){n.props.selectsRange||n.setOpen(!1);var o=n.props,a=o.startDate,i=o.endDate;!a||i||Rn(e,a)||n.setOpen(!1)}})),Et(Pt(n),"setSelected",(function(e,t,r,o){var a=e;if(n.props.showYearPicker){if(null!==a&&hn(Le.default(a),n.props))return}else if(n.props.showMonthYearPicker){if(null!==a&&ln(a,n.props))return}else if(null!==a&&an(a,n.props))return;var i=n.props,s=i.onChange,l=i.selectsRange,c=i.startDate,u=i.endDate;if(!Jt(n.props.selected,a)||n.props.allowSameDay||l)if(null!==a&&(!n.props.selected||r&&(n.props.showTimeSelect||n.props.showTimeSelectOnly||n.props.showTimeInput)||(a=Wt(a,{hour:Pe.default(n.props.selected),minute:Ae.default(n.props.selected),second:De.default(n.props.selected)})),n.props.inline||n.setState({preSelection:a}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:o})),l){var d=c&&u;c||u?c&&!u&&(Rn(a,c)?s([a,null],t):s([c,a],t)):s([a,null],t),d&&s([a,null],t)}else s(a,t);r||(n.props.onSelect(a,t),n.setState({inputValue:null}))})),Et(Pt(n),"setPreSelection",(function(e){var t=void 0!==n.props.minDate,r=void 0!==n.props.maxDate,o=!0;if(e){n.props.showWeekPicker&&(e=Ht(e,n.props.locale,n.props.calendarStartDay));var a=Ge.default(e);if(t&&r)o=en(e,n.props.minDate,n.props.maxDate);else if(t){var i=Ge.default(n.props.minDate);o=ct.default(e,i)||Jt(a,i)}else if(r){var s=et.default(n.props.maxDate);o=ut.default(e,s)||Jt(a,s)}}o&&n.setState({preSelection:e})})),Et(Pt(n),"toggleCalendar",(function(){n.setOpen(!n.state.open)})),Et(Pt(n),"handleTimeChange",(function(e){var t=n.props.selected?n.props.selected:n.getPreSelection(),r=n.props.selected?e:Wt(t,{hour:Pe.default(e),minute:Ae.default(e)});n.setState({preSelection:r}),n.props.onChange(r),n.props.shouldCloseOnSelect&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})})),Et(Pt(n),"onInputClick",(function(){n.props.disabled||n.props.readOnly||n.setOpen(!0),n.props.onInputClick()})),Et(Pt(n),"onInputKeyDown",(function(e){n.props.onKeyDown(e);var t=e.key;if(n.state.open||n.props.inline||n.props.preventOpenOnFocus){if(n.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var r=n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',o=n.calendar.componentNode&&n.calendar.componentNode.querySelector(r);return void(o&&o.focus({preventScroll:!0}))}var a=Bt(n.state.preSelection);"Enter"===t?(e.preventDefault(),n.inputOk()&&n.state.lastPreSelectChange===vr?(n.handleSelect(a,e),!n.props.shouldCloseOnSelect&&n.setPreSelection(a)):n.setOpen(!1)):"Escape"===t?(e.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1)):"Tab"===t&&n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:pr})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||n.onInputClick()})),Et(Pt(n),"onPortalKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),n.setState({preventFocus:!0},(function(){n.setOpen(!1),setTimeout((function(){n.setFocus(),n.setState({preventFocus:!1})}))})))})),Et(Pt(n),"onDayKeyDown",(function(e){n.props.onKeyDown(e);var t,r=e.key,o=e.shiftKey,a=Bt(n.state.preSelection);if("Enter"===r)e.preventDefault(),n.handleSelect(a,e),!n.props.shouldCloseOnSelect&&n.setPreSelection(a);else if("Escape"===r)e.preventDefault(),n.setOpen(!1),n.inputOk()||n.props.onInputError({code:1,msg:pr});else if(!n.props.disabledKeyboardNavigation){var i;switch(r){case"ArrowLeft":i=n.props.showWeekPicker?Ce.default(a,1):Se.default(a,1);break;case"ArrowRight":i=n.props.showWeekPicker?be.default(a,1):ye.default(a,1);break;case"ArrowUp":i=Ce.default(a,1);break;case"ArrowDown":i=be.default(a,1);break;case"PageUp":i=o?Te.default(a,1):Ee.default(a,1);break;case"PageDown":i=o?xe.default(a,1):we.default(a,1);break;case"Home":i=Ht(a,n.props.locale,n.props.calendarStartDay);break;case"End":t=a,i=tt.default(t);break;default:i=null}if(!i)return void(n.props.onInputError&&n.props.onInputError({code:1,msg:pr}));if(e.preventDefault(),n.setState({lastPreSelectChange:vr}),n.props.adjustDateOnChange&&n.setSelected(i),n.setPreSelection(i),n.props.inline){var s=Me.default(a),l=Me.default(i),c=Le.default(a),u=Le.default(i);s!==l||c!==u?n.setState({shouldFocusDayInline:!0}):n.setState({shouldFocusDayInline:!1})}}})),Et(Pt(n),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),n.sendFocusBackToInput())})),Et(Pt(n),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),n.sendFocusBackToInput(),n.props.selectsRange?n.props.onChange([null,null],e):n.props.onChange(null,e),n.setState({inputValue:null})})),Et(Pt(n),"clear",(function(){n.onClearClick()})),Et(Pt(n),"onScroll",(function(e){"boolean"==typeof n.props.closeOnScroll&&n.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||n.setOpen(!1):"function"==typeof n.props.closeOnScroll&&n.props.closeOnScroll(e)&&n.setOpen(!1)})),Et(Pt(n),"renderCalendar",(function(){return n.props.inline||n.isCalendarOpen()?de.default.createElement(fr,{ref:function(e){n.calendar=e},locale:n.props.locale,calendarStartDay:n.props.calendarStartDay,chooseDayAriaLabelPrefix:n.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:n.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:n.props.weekAriaLabelPrefix,monthAriaLabelPrefix:n.props.monthAriaLabelPrefix,adjustDateOnChange:n.props.adjustDateOnChange,setOpen:n.setOpen,shouldCloseOnSelect:n.props.shouldCloseOnSelect,dateFormat:n.props.dateFormatCalendar,useWeekdaysShort:n.props.useWeekdaysShort,formatWeekDay:n.props.formatWeekDay,dropdownMode:n.props.dropdownMode,selected:n.props.selected,preSelection:n.state.preSelection,onSelect:n.handleSelect,onWeekSelect:n.props.onWeekSelect,openToDate:n.props.openToDate,minDate:n.props.minDate,maxDate:n.props.maxDate,selectsStart:n.props.selectsStart,selectsEnd:n.props.selectsEnd,selectsRange:n.props.selectsRange,startDate:n.props.startDate,endDate:n.props.endDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,filterDate:n.props.filterDate,onClickOutside:n.handleCalendarClickOutside,formatWeekNumber:n.props.formatWeekNumber,highlightDates:n.state.highlightDates,holidays:En(n.modifyHolidays()),includeDates:n.props.includeDates,includeDateIntervals:n.props.includeDateIntervals,includeTimes:n.props.includeTimes,injectTimes:n.props.injectTimes,inline:n.props.inline,shouldFocusDayInline:n.state.shouldFocusDayInline,peekNextMonth:n.props.peekNextMonth,showMonthDropdown:n.props.showMonthDropdown,showPreviousMonths:n.props.showPreviousMonths,useShortMonthInDropdown:n.props.useShortMonthInDropdown,showMonthYearDropdown:n.props.showMonthYearDropdown,showWeekNumbers:n.props.showWeekNumbers,showYearDropdown:n.props.showYearDropdown,withPortal:n.props.withPortal,forceShowMonthNavigation:n.props.forceShowMonthNavigation,showDisabledMonthNavigation:n.props.showDisabledMonthNavigation,scrollableYearDropdown:n.props.scrollableYearDropdown,scrollableMonthYearDropdown:n.props.scrollableMonthYearDropdown,todayButton:n.props.todayButton,weekLabel:n.props.weekLabel,outsideClickIgnoreClass:hr,fixedHeight:n.props.fixedHeight,monthsShown:n.props.monthsShown,monthSelectedIn:n.state.monthSelectedIn,onDropdownFocus:n.handleDropdownFocus,onMonthChange:n.props.onMonthChange,onYearChange:n.props.onYearChange,dayClassName:n.props.dayClassName,weekDayClassName:n.props.weekDayClassName,monthClassName:n.props.monthClassName,timeClassName:n.props.timeClassName,showDateSelect:n.props.showDateSelect,showTimeSelect:n.props.showTimeSelect,showTimeSelectOnly:n.props.showTimeSelectOnly,onTimeChange:n.handleTimeChange,timeFormat:n.props.timeFormat,timeIntervals:n.props.timeIntervals,minTime:n.props.minTime,maxTime:n.props.maxTime,excludeTimes:n.props.excludeTimes,filterTime:n.props.filterTime,timeCaption:n.props.timeCaption,className:n.props.calendarClassName,container:n.props.calendarContainer,yearItemNumber:n.props.yearItemNumber,yearDropdownItemNumber:n.props.yearDropdownItemNumber,previousMonthAriaLabel:n.props.previousMonthAriaLabel,previousMonthButtonLabel:n.props.previousMonthButtonLabel,nextMonthAriaLabel:n.props.nextMonthAriaLabel,nextMonthButtonLabel:n.props.nextMonthButtonLabel,previousYearAriaLabel:n.props.previousYearAriaLabel,previousYearButtonLabel:n.props.previousYearButtonLabel,nextYearAriaLabel:n.props.nextYearAriaLabel,nextYearButtonLabel:n.props.nextYearButtonLabel,timeInputLabel:n.props.timeInputLabel,disabledKeyboardNavigation:n.props.disabledKeyboardNavigation,renderCustomHeader:n.props.renderCustomHeader,popperProps:n.props.popperProps,renderDayContents:n.props.renderDayContents,renderMonthContent:n.props.renderMonthContent,renderQuarterContent:n.props.renderQuarterContent,renderYearContent:n.props.renderYearContent,onDayMouseEnter:n.props.onDayMouseEnter,onMonthMouseLeave:n.props.onMonthMouseLeave,onYearMouseEnter:n.props.onYearMouseEnter,onYearMouseLeave:n.props.onYearMouseLeave,selectsDisabledDaysInRange:n.props.selectsDisabledDaysInRange,showTimeInput:n.props.showTimeInput,showMonthYearPicker:n.props.showMonthYearPicker,showFullMonthYearPicker:n.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:n.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:n.props.showFourColumnMonthYearPicker,showYearPicker:n.props.showYearPicker,showQuarterYearPicker:n.props.showQuarterYearPicker,showWeekPicker:n.props.showWeekPicker,excludeScrollbar:n.props.excludeScrollbar,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,isInputFocused:n.state.focused,customTimeInput:n.props.customTimeInput,setPreSelection:n.setPreSelection},n.props.children):null})),Et(Pt(n),"renderAriaLiveRegion",(function(){var e,t=n.props,r=t.dateFormat,o=t.locale,a=n.props.showTimeInput||n.props.showTimeSelect?"PPPPp":"PPPP";return e=n.props.selectsRange?"Selected start date: ".concat(Ut(n.props.startDate,{dateFormat:a,locale:o}),". ").concat(n.props.endDate?"End date: "+Ut(n.props.endDate,{dateFormat:a,locale:o}):""):n.props.showTimeSelectOnly?"Selected time: ".concat(Ut(n.props.selected,{dateFormat:r,locale:o})):n.props.showYearPicker?"Selected year: ".concat(Ut(n.props.selected,{dateFormat:"yyyy",locale:o})):n.props.showMonthYearPicker?"Selected month: ".concat(Ut(n.props.selected,{dateFormat:"MMMM yyyy",locale:o})):n.props.showQuarterYearPicker?"Selected quarter: ".concat(Ut(n.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(Ut(n.props.selected,{dateFormat:a,locale:o})),de.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)})),Et(Pt(n),"renderDateInput",(function(){var e,t=he.default(n.props.className,Et({},hr,n.state.open)),r=n.props.customInput||de.default.createElement("input",{type:"text"}),o=n.props.customInputRef||"ref",a="string"==typeof n.props.value?n.props.value:"string"==typeof n.state.inputValue?n.state.inputValue:n.props.selectsRange?function(e,t,n){if(!e)return"";var r=Ut(e,n),o=t?Ut(t,n):"";return"".concat(r," - ").concat(o)}(n.props.startDate,n.props.endDate,n.props):Ut(n.props.selected,n.props);return de.default.cloneElement(r,(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(e={},o,(function(e){n.input=e})),"value",a),"onBlur",n.handleBlur),"onChange",n.handleChange),"onClick",n.onInputClick),"onFocus",n.handleFocus),"onKeyDown",n.onInputKeyDown),"id",n.props.id),"name",n.props.name),"form",n.props.form),Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(e,"autoFocus",n.props.autoFocus),"placeholder",n.props.placeholderText),"disabled",n.props.disabled),"autoComplete",n.props.autoComplete),"className",he.default(r.props.className,t)),"title",n.props.title),"readOnly",n.props.readOnly),"required",n.props.required),"tabIndex",n.props.tabIndex),"aria-describedby",n.props.ariaDescribedBy),Et(Et(Et(e,"aria-invalid",n.props.ariaInvalid),"aria-labelledby",n.props.ariaLabelledBy),"aria-required",n.props.ariaRequired)))})),Et(Pt(n),"renderClearButton",(function(){var e=n.props,t=e.isClearable,r=e.disabled,o=e.selected,a=e.startDate,i=e.endDate,s=e.clearButtonTitle,l=e.clearButtonClassName,c=void 0===l?"":l,u=e.ariaLabelClose,d=void 0===u?"Close":u;return!t||null==o&&null==a&&null==i?null:de.default.createElement("button",{type:"button",className:he.default("react-datepicker__close-icon",c,{"react-datepicker__close-icon--disabled":r}),disabled:r,"aria-label":d,onClick:n.onClearClick,title:s,tabIndex:-1})})),n.state=n.calcInitialState(),n.preventFocusTimeout=null,n}return Tt(t,e),Ct(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Me.default(n)!==Me.default(r)||Le.default(n)!==Le.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Cn(this.props.highlightDates)}),t.focused||Jt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props,t=e.showIcon,n=e.icon,r=e.calendarIconClassname,o=e.toggleCalendarOnIconClick,a=this.state.open;return de.default.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&de.default.createElement(ir,_t({icon:n,className:"".concat(r," ").concat(a&&"react-datepicker-ignore-onclickoutside")},o?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?de.default.createElement(cr,{enableTabLoop:this.props.enableTabLoop},de.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=de.default.createElement(sr,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),de.default.createElement("div",null,this.renderInputContainer(),t)}return de.default.createElement(dr,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop,showArrow:this.props.showPopperArrow})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:jt,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),t}(de.default.Component),gr="input",vr="navigate";e.CalendarContainer=tr,e.default=mr,e.getDefaultLocale=tn,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2791),n(2007),n(1418),n(6971),n(9314),n(1951),n(1518),n(2074),n(9040),n(20),n(1104),n(6689),n(5105),n(6753),n(7503),n(8030),n(6794),n(7602),n(2295),n(4424),n(1537),n(467),n(6114),n(6975),n(3747),n(639),n(2599),n(4460),n(9292),n(7227),n(2618),n(2363),n(5765),n(5617),n(1056),n(9333),n(9759),n(5951),n(7415),n(8347),n(3629),n(5719),n(3006),n(7235),n(786),n(4565),n(4888),n(4675),n(7508),n(4690),n(5375),n(1750),n(4845),n(9420),n(9579),n(7262),n(8527),n(6236),n(9831),n(11),n(4164),n(4101),n(7152))},4463:(e,t,n)=>{"use strict";var r=n(2791),o=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n