From 5c505e62458962ed3e0bf8ee5054fba20c6f090a Mon Sep 17 00:00:00 2001 From: charlieforward9 Date: Fri, 5 Jul 2024 03:25:27 +0000 Subject: [PATCH] deploy: e5e8e89c2c7b7f1e11addd57f490db7fdaf89bdb --- assets/{index-BhRV-e5H.js => index-1WSIiO_D.js} | 4 ++-- index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename assets/{index-BhRV-e5H.js => index-1WSIiO_D.js} (91%) diff --git a/assets/index-BhRV-e5H.js b/assets/index-1WSIiO_D.js similarity index 91% rename from assets/index-BhRV-e5H.js rename to assets/index-1WSIiO_D.js index 63b1dab..44169dc 100644 --- a/assets/index-BhRV-e5H.js +++ b/assets/index-1WSIiO_D.js @@ -1072,8 +1072,8 @@ in float vTime; `,"fs:DECKGL_FILTER_COLOR":`if(fadeTrail) { color.a *= 1.0 - (currentTime - vTime) / trailLength; } -`},e}initializeState(){super.initializeState(),this.getAttributeManager().addInstanced({timestamps:{size:1,accessor:"getTimestamps",shaderAttributes:{instanceTimestamps:{vertexOffset:0},instanceNextTimestamps:{vertexOffset:1}}}})}draw(e){const{fadeTrail:n,trailLength:r,currentTime:i}=this.props;e.uniforms={...e.uniforms,fadeTrail:n,trailLength:r,currentTime:i},super.draw(e)}};Lu.layerName="TripsLayer",Lu.defaultProps=GB;let Pp=Lu;const If=85.05113;function Jv(t,e,n,r){if(n){if(n.userData._googleMap===t)return n;xp(n)}const i={click:null,rightclick:null,dblclick:null,mousemove:null,mouseout:null},s=new vp({...r,useDevicePixels:r.interleaved?!0:r.useDevicePixels,style:r.interleaved?null:{pointerEvents:"none"},parent:e4(e,r.style),views:new nu({repeat:!0}),initialViewState:{longitude:0,latitude:0,zoom:1},controller:!1});for(const o in i)i[o]=t.addListener(o,a=>r4(s,o,a));return s.userData._googleMap=t,s.userData._eventListeners=i,s}function e4(t,e){const n=document.createElement("div");return n.style.position="absolute",Object.assign(n.style,e),"getPanes"in t?t.getPanes()?.overlayLayer.appendChild(n):t.getMap()?.getDiv().appendChild(n),n}function xp(t){const{_eventListeners:e}=t.userData;for(const n in e)e[n]&&e[n].remove();t.finalize()}function t4(t,e){const{width:n,height:r}=ab(t),i=e.getProjection(),s=t.getBounds();if(!s)return{width:n,height:r,left:0,top:0};const o=s.getNorthEast(),a=s.getSouthWest(),l=i.fromLatLngToDivPixel(o),c=i.fromLatLngToDivPixel(a),u=Of(i,n/2,r/2),d=new google.maps.LatLng(0,u[0]),f=i.fromLatLngToContainerPixel(d),h=i.fromLatLngToDivPixel(d);if(!l||!c||!h||!f)return{width:n,height:r,left:0,top:0};const y=Math.round(h.x-f.x);let g=h.y-f.y;const E=Of(i,n/2,0),_=Of(i,n/2,r);let m=u[1];const w=u[0];if(Math.abs(m)>If){m=m>0?If:-If;const N=new google.maps.LatLng(m,w),B=i.fromLatLngToContainerPixel(N);g+=B.y-r/2}g=Math.round(g);let R=180*new uf(E).sub(_).verticalAngle()/Math.PI;R<0&&(R+=360);const M=t.getHeading()||0;let k=t.getZoom()-1,I;if(R===0)I=r?(c.y-l.y)/r:1;else if(R===M){const N=new uf([l.x,l.y]).sub([c.x,c.y]).len(),B=new uf([n,-r]).len();I=B?N/B:1}return k+=Math.log2(I||1),{width:n,height:r,left:y,top:g,zoom:k,bearing:R,pitch:t.getTilt(),latitude:m,longitude:w}}function Gv(t,e){const{width:n,height:r}=ab(t),{center:i,heading:s,tilt:o,zoom:a}=e.getCameraParams(),l=25,c=r?n/r:1,f=new nn().perspective({fovy:l*Math.PI/180,aspect:c,near:.75,far:3e14}),h=.5*f[5];return{width:n,height:r,viewState:{altitude:h,bearing:s,latitude:i.lat(),longitude:i.lng(),pitch:o,projectionMatrix:f,repeat:!0,zoom:a-1}}}function ab(t){const e=t.getDiv().firstChild;return{width:e.offsetWidth,height:e.offsetHeight}}function Of(t,e,n){const r=new google.maps.Point(e,n),i=t.fromContainerPixelToLatLng(r);return[i.lng(),i.lat()]}function n4(t,e){if(t.pixel)return t.pixel;const n=e.getViewports()[0].project([t.latLng.lng(),t.latLng.lat()]);return{x:n[0],y:n[1]}}function r4(t,e,n){if(!t.isInitialized)return;const r={type:e,offsetCenter:n4(n,t),srcEvent:n};switch(e){case"click":case"rightclick":r.type="click",r.tapCount=1,t._onPointerDown(r),t._onEvent(r);break;case"dblclick":r.type="click",r.tapCount=2,t._onEvent(r);break;case"mousemove":r.type="pointermove",t._onPointerMove(r);break;case"mouseout":r.type="pointerleave",t._onPointerMove(r);break;default:return}}const i4=()=>!1,s4={depthMask:!0,depthTest:!0,blend:!0,blendFunc:[770,771,1,771],blendEquation:32774};function e0(){}const o4={interleaved:!0};class a4{constructor(e){this.props={},this._map=null,this._deck=null,this._overlay=null,this.setProps({...o4,...e})}setMap(e){if(e===this._map)return;const{VECTOR:n,UNINITIALIZED:r}=google.maps.RenderingType;this._map&&(!e&&this._map.getRenderingType()===n&&this.props.interleaved&&this._overlay.requestRedraw(),this._overlay?.setMap(null),this._map=null),e&&(this._map=e,e.getRenderingType()!==r?this._createOverlay(e):e.addListener("renderingtype_changed",()=>{this._createOverlay(e)}))}setProps(e){if(Object.assign(this.props,e),this._deck){const n=this._deck.getCanvas();if(e.style&&n?.parentElement){const r=n.parentElement.style;Object.assign(r,e.style),e.style=null}this._deck.setProps(e)}}pickObject(e){return this._deck&&this._deck.pickObject(e)}pickMultipleObjects(e){return this._deck&&this._deck.pickMultipleObjects(e)}pickObjects(e){return this._deck&&this._deck.pickObjects(e)}finalize(){this.setMap(null),this._deck&&(xp(this._deck),this._deck=null)}_createOverlay(e){const{interleaved:n}=this.props,{VECTOR:r,UNINITIALIZED:i}=google.maps.RenderingType,s=e.getRenderingType();if(s===i)return;const a=s===r&&google.maps.WebGLOverlayView?google.maps.WebGLOverlayView:google.maps.OverlayView,l=new a;l instanceof google.maps.WebGLOverlayView?(n?(l.onAdd=e0,l.onContextRestored=this._onContextRestored.bind(this),l.onDraw=this._onDrawVectorInterleaved.bind(this)):(l.onAdd=this._onAdd.bind(this),l.onContextRestored=e0,l.onDraw=this._onDrawVectorOverlay.bind(this)),l.onContextLost=this._onContextLost.bind(this)):(l.onAdd=this._onAdd.bind(this),l.draw=this._onDrawRaster.bind(this)),l.onRemove=this._onRemove.bind(this),this._overlay=l,this._overlay.setMap(e)}_onAdd(){this._deck=Jv(this._map,this._overlay,this._deck,this.props)}_onContextRestored({gl:e}){if(!this._map||!this._overlay)return;const n=()=>{this._overlay&&this._overlay.requestRedraw()},r=Jv(this._map,this._overlay,this._deck,{gl:e,_customRender:n,...this.props});this._deck=r;const i=r.animationLoop;i._renderFrame=()=>{const s=e.getParameter(34964);r.device.withParametersWebGL({},()=>{i.props.onRender(i.animationProps)}),e.bindBuffer(34962,s)}}_onContextLost(){this._deck&&(xp(this._deck),this._deck=null)}_onRemove(){this._deck?.setProps({layerFilter:i4})}_onDrawRaster(){if(!this._deck||!this._map)return;const e=this._deck,{width:n,height:r,left:i,top:s,...o}=t4(this._map,this._overlay),l=e.getCanvas()?.parentElement||e.props.parent;if(l){const u=l.style;u.left=`${i}px`,u.top=`${s}px`}e.setProps({width:n,height:r,viewState:{altitude:1e4,...o}}),e.redraw()}_onDrawVectorInterleaved({gl:e,transformer:n}){if(!this._deck||!this._map)return;const r=this._deck;if(r.setProps({...Gv(this._map,n),width:null,height:null}),r.isInitialized){const i=r.device,s=i.getParametersWebGL(36006);r.setProps({_framebuffer:s}),i.getCanvasContext().resize(),r.needsRedraw({clearRedrawFlags:!0}),i.setParametersWebGL({viewport:[0,0,e.canvas.width,e.canvas.height],scissor:[0,0,e.canvas.width,e.canvas.height],stencilFunc:[519,0,255,519,0,255]}),i.withParametersWebGL(s4,()=>{r._drawLayers("google-vector",{clearCanvas:!1})})}}_onDrawVectorOverlay({transformer:e}){if(!this._deck||!this._map)return;const n=this._deck;n.setProps({...Gv(this._map,e)}),n.redraw()}}const l4=({layers:t})=>{const e=x.useMemo(()=>new a4({interleaved:!0}),[]),n=Ig();return x.useEffect(()=>(e.setMap(n),()=>e.setMap(null)),[e,n]),x.useEffect(()=>{e.setProps({layers:t})},[e,t]),null};function c4(){const t=rd(),{rawData:e,mapConfig:n,layerProps:r,startTime:i,endTime:s,daysPerTick:o,tripLayer:a,cameraProps:l,currentTime:c,animating:u,loading:d}=Zs(),f=x.useRef(),h=x.useRef(c),y=x.useCallback(m=>a?[new Pp({...r,data:a,currentTime:m})]:[],[a]),g=x.useMemo(()=>y(c),[a,c]),E=x.useDeferredValue(g),_=m=>{if(!u)return;f.current=requestAnimationFrame(_);const w=(h.current-i)/(s-i);t({type:"SET_CAMERA_PROPS",progress:w});const b=h.current+o/60*eE%(s-i);b{h.current=c},[c]),x.useEffect(()=>{t({type:"SET_CURRENT_TIME",currentTime:i}),e&&t({type:"SET_TRIP_LAYER",rawData:e})},[e,i,s,o]),x.useEffect(()=>((d||!u)&&cancelAnimationFrame(f.current??0),f.current=requestAnimationFrame(m=>_()),()=>{cancelAnimationFrame(f.current??0)}),[u,o,i,s,d]),x.useEffect(()=>{if(d&&!u){const m=setInterval(()=>{t({type:"SET_MAP_BREATHING",breath:Math.sin(Date.now()/1e3)})},100);return()=>clearInterval(m)}},[u]),U.jsx(oE,{mapId:n.mapId||null,mapTypeId:n.mapTypeId,styles:n.styles,defaultCenter:l.center,defaultZoom:l.zoom,gestureHandling:"greedy",disableDefaultUI:!0,reuseMaps:!0,keyboardShortcuts:!1,clickableIcons:!1,...(u||d)&&l,onTilesLoaded:()=>t({type:"SET_SHOW_MAP",show:!0}),children:U.jsx(l4,{layers:E})})}const u4=()=>{const t=rd();return U.jsx("div",{className:"modal-overlay",onClick:()=>t({type:"SET_CREDITS",show:!1}),children:U.jsxs("div",{className:"modal-content",onClick:e=>e.stopPropagation(),children:[U.jsx("h2",{children:"Credits"}),U.jsx("p",{children:"Standing on shoulders of giants"}),U.jsxs("ul",{children:[U.jsxs("li",{children:[U.jsx("strong",{children:"Dreamt by"}),U.jsx("span",{children:U.jsx("a",{href:"https://www.linkedin.com/in/c--rich/",target:"_blank",rel:"noopener noreferrer",children:"Charbo Rich"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Collected with"}),U.jsxs("span",{children:[U.jsx("a",{href:"https://www.garmin.com",target:"_blank",rel:"noopener noreferrer",children:"Garmin"}),"/",U.jsx("a",{href:"https://www.strava.com",target:"_blank",rel:"noopener noreferrer",children:"Strava"})]})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Persisted with"}),U.jsx("span",{children:U.jsx("a",{href:"https://www.strava.com",target:"_blank",rel:"noopener noreferrer",children:"Strava"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Processed in"}),U.jsx("span",{children:U.jsx("a",{href:"https://www.python.org",target:"_blank",rel:"noopener noreferrer",children:"Python"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Filtered with"}),U.jsx("span",{children:U.jsx("a",{href:"https://h3geo.org",target:"_blank",rel:"noopener noreferrer",children:"H3"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Built in"}),U.jsx("span",{children:U.jsx("a",{href:"https://www.typescriptlang.org",target:"_blank",rel:"noopener noreferrer",children:"TypeScript"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Framed with"}),U.jsx("span",{children:U.jsx("a",{href:"https://reactjs.org",target:"_blank",rel:"noopener noreferrer",children:"React"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Mapped with"}),U.jsx("span",{children:U.jsx("a",{href:"https://developers.google.com/maps",target:"_blank",rel:"noopener noreferrer",children:"Google"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Interleaved with"}),U.jsx("span",{children:U.jsx("a",{href:"https://deck.gl",target:"_blank",rel:"noopener noreferrer",children:"DeckGL"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Optimized with"}),U.jsx("span",{children:U.jsx("a",{href:"https://million.dev",target:"_blank",rel:"noopener noreferrer",children:"Million"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Bundled with"}),U.jsx("span",{children:U.jsx("a",{href:"https://vitejs.dev",target:"_blank",rel:"noopener noreferrer",children:"Vite"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Hosted with"}),U.jsx("span",{children:U.jsx("a",{href:"https://pages.github.com",target:"_blank",rel:"noopener noreferrer",children:"Pages"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Versioned with"}),U.jsx("span",{children:U.jsx("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",children:"Github"})})]})]})]})})},d4=()=>{const t=rd(),{currentTime:e,endTime:n,animating:r,showCredits:i}=Zs();return x.useEffect(()=>{!r&&Math.abs(e-n)<100&&t({type:"SET_CREDITS",show:!0})},[e,r]),U.jsxs("div",{className:"controls",children:[U.jsx("div",{className:"control-button",onClick:()=>{t({type:"SET_ANIMATING",animating:!r})},children:r?"Rest":"Run"}),U.jsx("div",{className:"control-button",onClick:()=>{t({type:"SET_CREDITS",show:!i})},children:"Creds"}),i&&U.jsx(u4,{})]})},f4=O.memo(d4);function h4(){const{loading_progress:t}=Zs();return U.jsx("div",{className:"loading-bar",style:{"--loading-progress":`${t.toFixed(1)}%`},children:U.jsx("span",{className:"loading-text",children:`Warmin' up.. ${t.toFixed(2)}%`})})}const p4=O.memo(h4);function lb(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e=0)&&(n[i]=t[i]);return n}function t0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m4(t,e,n){return t===e?!0:t.correspondingElement?t.correspondingElement.classList.contains(n):t.classList.contains(n)}function y4(t,e,n){if(t===e)return!0;for(;t.parentNode||t.host;){if(t.parentNode&&m4(t,e,n))return!0;t=t.parentNode||t.host}return t}function v4(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY}var w4=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,n=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),e}};function T4(t){return t===void 0&&(t=0),function(){return++t}}var E4=T4(),kp,Ul={},Nf={},S4=["touchstart","touchmove"],b4="ignore-react-onclickoutside";function n0(t,e){var n={},r=S4.indexOf(e)!==-1;return r&&kp&&(n.passive=!t.props.preventDefault),n}function fd(t,e){var n,r,i=t.displayName||t.name||"Component";return r=n=function(s){g4(o,s);function o(l){var c;return c=s.call(this,l)||this,c.__outsideClickHandler=function(u){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(u);return}var d=c.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(u);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(u);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var u=c.getInstance();return typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():Ua.findDOMNode(u)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Nf[c._uid])){typeof kp>"u"&&(kp=w4()),Nf[c._uid]=!0;var u=c.props.eventTypes;u.forEach||(u=[u]),Ul[c._uid]=function(d){if(c.componentNode!==null&&!(c.initTimeStamp>d.timeStamp)&&(c.props.preventDefault&&d.preventDefault(),c.props.stopPropagation&&d.stopPropagation(),!(c.props.excludeScrollbar&&v4(d)))){var f=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;y4(f,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(d)}},u.forEach(function(d){document.addEventListener(d,Ul[c._uid],n0(t0(c),d))})}},c.disableOnClickOutside=function(){delete Nf[c._uid];var u=Ul[c._uid];if(u&&typeof document<"u"){var d=c.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(f){return document.removeEventListener(f,u,n0(t0(c),f))}),delete Ul[c._uid]}},c.getRef=function(u){return c.instanceRef=u},c._uid=E4(),c.initTimeStamp=performance.now(),c}var a=o.prototype;return a.getInstance=function(){if(t.prototype&&!t.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},a.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var c=this.props;c.excludeScrollbar;var u=_4(c,["excludeScrollbar"]);return t.prototype&&t.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,x.createElement(t,u)},o}(x.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:b4,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return t.getClass?t.getClass():t},r}function K(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function ue(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function jr(t,e){const n=K(t);return isNaN(e)?ue(t,NaN):(e&&n.setDate(n.getDate()+e),n)}function n_(t,e){const n=+K(t);return ue(t,n+e)}const cb=6048e5,A4=864e5,hd=6e4,pd=36e5,R4=1e3;function C4(t,e){return n_(t,e*pd)}function Dp(t,e){return n_(t,e*hd)}function rn(t,e){const n=K(t);if(isNaN(e))return ue(t,NaN);if(!e)return n;const r=n.getDate(),i=ue(t,n.getTime());i.setMonth(n.getMonth()+e+1,0);const s=i.getDate();return r>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function r_(t,e){const n=e*3;return rn(t,n)}function P4(t,e){return n_(t,e*1e3)}function su(t,e){const n=e*7;return jr(t,n)}function jn(t,e){return rn(t,e*12)}function Ri(t){const e=K(t);return e.setHours(0,0,0,0),e}function ou(t){const e=K(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function xa(t,e){const n=Ri(t),r=Ri(e),i=+n-ou(n),s=+r-ou(r);return Math.round((i-s)/A4)}function au(t,e){const n=K(t),r=K(e),i=n.getFullYear()-r.getFullYear(),s=n.getMonth()-r.getMonth();return i*12+s}function gi(t){const e=K(t);return Math.trunc(e.getMonth()/3)+1}function lu(t,e){const n=K(t),r=K(e),i=n.getFullYear()-r.getFullYear(),s=gi(n)-gi(r);return i*4+s}function cu(t,e){const n=K(t),r=K(e);return n.getFullYear()-r.getFullYear()}function ub(t){const e=K(t);return e.setHours(23,59,59,999),e}function x4(t){const e=K(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}let M4={};function Fi(){return M4}function k4(t,e){const n=Fi(),r=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=K(t),s=i.getDay(),o=(s{let r;const i=D4[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ff(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const O4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},N4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},F4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},B4={date:Ff({formats:O4,defaultWidth:"full"}),time:Ff({formats:N4,defaultWidth:"full"}),dateTime:Ff({formats:F4,defaultWidth:"full"})},U4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},L4=(t,e,n,r)=>U4[t];function Ro(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;i=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[o]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const V4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},z4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},W4={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"]},H4={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"]},j4={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"}},Y4={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"}},$4=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},X4={ordinalNumber:$4,era:Ro({values:V4,defaultWidth:"wide"}),quarter:Ro({values:z4,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ro({values:W4,defaultWidth:"wide"}),day:Ro({values:H4,defaultWidth:"wide"}),dayPeriod:Ro({values:j4,defaultWidth:"wide",formattingValues:Y4,defaultFormattingWidth:"wide"})};function Co(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const o=s[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?q4(a,d=>d.test(o)):K4(a,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function K4(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function q4(t,e){for(let n=0;n{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(i.length);return{value:o,rest:a}}}const Z4=/^(\d+)(th|st|nd|rd)?/i,J4=/\d+/i,G4={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},eU={any:[/^b/i,/^(a|c)/i]},tU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nU={any:[/1/i,/2/i,/3/i,/4/i]},rU={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},iU={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]},sU={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},oU={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]},aU={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},lU={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}},cU={ordinalNumber:Q4({matchPattern:Z4,parsePattern:J4,valueCallback:t=>parseInt(t,10)}),era:Co({matchPatterns:G4,defaultMatchWidth:"wide",parsePatterns:eU,defaultParseWidth:"any"}),quarter:Co({matchPatterns:tU,defaultMatchWidth:"wide",parsePatterns:nU,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Co({matchPatterns:rU,defaultMatchWidth:"wide",parsePatterns:iU,defaultParseWidth:"any"}),day:Co({matchPatterns:sU,defaultMatchWidth:"wide",parsePatterns:oU,defaultParseWidth:"any"}),dayPeriod:Co({matchPatterns:aU,defaultMatchWidth:"any",parsePatterns:lU,defaultParseWidth:"any"})},fb={code:"en-US",formatDistance:I4,formatLong:B4,formatRelative:L4,localize:X4,match:cU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gd(t){const e=K(t),n=ue(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function uU(t){const e=K(t);return xa(e,gd(e))+1}function Jn(t,e){const n=Fi(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=K(t),s=i.getDay(),o=(s=i.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function dU(t){const e=hb(t),n=ue(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),Ws(n)}function i_(t){const e=K(t),n=+Ws(e)-+dU(e);return Math.round(n/cb)+1}function s_(t,e){const n=K(t),r=n.getFullYear(),i=Fi(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=ue(t,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const a=Jn(o,e),l=ue(t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const c=Jn(l,e);return n.getTime()>=a.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fU(t,e){const n=Fi(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=s_(t,e),s=ue(t,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Jn(s,e)}function pb(t,e){const n=K(t),r=+Jn(n,e)-+fU(n,e);return Math.round(r/cb)+1}function ce(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const lr={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ce(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ce(n+1,2)},d(t,e){return ce(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return ce(t.getHours()%12||12,e.length)},H(t,e){return ce(t.getHours(),e.length)},m(t,e){return ce(t.getMinutes(),e.length)},s(t,e){return ce(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ce(i,e.length)}},$i={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},r0={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return lr.y(t,e)},Y:function(t,e,n,r){const i=s_(t,r),s=i>0?i:1-i;if(e==="YY"){const o=s%100;return ce(o,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):ce(s,e.length)},R:function(t,e){const n=hb(t);return ce(n,e.length)},u:function(t,e){const n=t.getFullYear();return ce(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return lr.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=pb(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):ce(i,e.length)},I:function(t,e,n){const r=i_(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ce(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):lr.d(t,e)},D:function(t,e,n){const r=uU(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ce(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return ce(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return ce(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return ce(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=$i.noon:r===0?i=$i.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=$i.evening:r>=12?i=$i.afternoon:r>=4?i=$i.morning:i=$i.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return lr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):lr.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):lr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):lr.s(t,e)},S:function(t,e){return lr.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return s0(r);case"XXXX":case"XX":return Gr(r);case"XXXXX":case"XXX":default:return Gr(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return s0(r);case"xxxx":case"xx":return Gr(r);case"xxxxx":case"xxx":default:return Gr(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+i0(r,":");case"OOOO":default:return"GMT"+Gr(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+i0(r,":");case"zzzz":default:return"GMT"+Gr(r,":")}},t:function(t,e,n){const r=Math.trunc(t.getTime()/1e3);return ce(r,e.length)},T:function(t,e,n){const r=t.getTime();return ce(r,e.length)}};function i0(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+e+ce(s,2)}function s0(t,e){return t%60===0?(t>0?"-":"+")+ce(Math.abs(t)/60,2):Gr(t,e)}function Gr(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=ce(Math.trunc(r/60),2),s=ce(r%60,2);return n+i+e+s}const o0=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},gb=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},hU=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return o0(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",o0(r,e)).replace("{{time}}",gb(i,e))},uu={p:gb,P:hU},pU=/^D+$/,gU=/^Y+$/,_U=["D","DD","YY","YYYY"];function _b(t){return pU.test(t)}function mb(t){return gU.test(t)}function Ip(t,e,n){const r=mU(t,e,n);if(console.warn(r),_U.includes(t))throw new RangeError(r)}function mU(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Yn(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function du(t){if(!Yn(t)&&typeof t!="number")return!1;const e=K(t);return!isNaN(Number(e))}const yU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wU=/^'([^]*?)'?$/,TU=/''/g,EU=/[a-zA-Z]/;function a0(t,e,n){const r=Fi(),i=n?.locale??r.locale??fb,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=K(t);if(!du(a))throw new RangeError("Invalid time value");let l=e.match(vU).map(u=>{const d=u[0];if(d==="p"||d==="P"){const f=uu[d];return f(u,i.formatLong)}return u}).join("").match(yU).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:SU(u)};if(r0[d])return{isToken:!0,value:u};if(d.match(EU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});i.localize.preprocessor&&(l=i.localize.preprocessor(a,l));const c={firstWeekContainsDate:s,weekStartsOn:o,locale:i};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&mb(d)||!n?.useAdditionalDayOfYearTokens&&_b(d))&&Ip(d,e,String(t));const f=r0[d[0]];return f(a,d,i.localize,c)}).join("")}function SU(t){const e=t.match(wU);return e?e[1].replace(TU,"'"):t}function l0(t){return K(t).getDate()}function bU(t){return K(t).getDay()}function Rn(t){return K(t).getHours()}function Cn(t){return K(t).getMinutes()}function dt(t){return K(t).getMonth()}function $n(t){return K(t).getSeconds()}function Op(t){return K(t).getTime()}function ne(t){return K(t).getFullYear()}function Br(t,e){const n=K(t),r=K(e);return n.getTime()>r.getTime()}function Ci(t,e){const n=K(t),r=K(e);return+n<+r}function AU(t,e){const n=K(t),r=K(e);return+n==+r}function RU(t,e){const n=Ri(t),r=Ri(e);return+n==+r}function CU(t,e){const n=K(t),r=K(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Np(t){const e=K(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function PU(t,e){const n=Np(t),r=Np(e);return+n==+r}function xU(t,e){const n=K(t),r=K(e);return n.getFullYear()===r.getFullYear()}function Ma(t,e){const n=+K(t),[r,i]=[+K(e.start),+K(e.end)].sort((s,o)=>s-o);return n>=r&&n<=i}function c0(t){let e;return t.forEach(function(n){const r=K(n);(e===void 0||e{const r=K(n);(!e||e>r||isNaN(+r))&&(e=r)}),e||new Date(NaN)}function MU(){return Object.assign({},Fi())}function kU(t,e){const n=e instanceof Date?ue(e,0):new e(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}const DU=10;class yb{constructor(){p(this,"subPriority",0)}validate(e,n){return!0}}class IU extends yb{constructor(e,n,r,i,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=i,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class OU extends yb{constructor(){super(...arguments);p(this,"priority",DU);p(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:ue(n,kU(n,Date))}}class le{run(e,n,r,i){const s=this.parse(e,n,r,i);return s?{setter:new IU(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class NU extends le{constructor(){super(...arguments);p(this,"priority",140);p(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const Ne={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},vn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Fe(t,e){return t&&{value:e(t.value),rest:t.rest}}function Ce(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function wn(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*pd+s*hd+o*R4),rest:e.slice(n[0].length)}}function vb(t){return Ce(Ne.anyDigitsSigned,t)}function De(t,e){switch(t){case 1:return Ce(Ne.singleDigit,e);case 2:return Ce(Ne.twoDigits,e);case 3:return Ce(Ne.threeDigits,e);case 4:return Ce(Ne.fourDigits,e);default:return Ce(new RegExp("^\\d{1,"+t+"}"),e)}}function fu(t,e){switch(t){case 1:return Ce(Ne.singleDigitSigned,e);case 2:return Ce(Ne.twoDigitsSigned,e);case 3:return Ce(Ne.threeDigitsSigned,e);case 4:return Ce(Ne.fourDigitsSigned,e);default:return Ce(new RegExp("^-?\\d{1,"+t+"}"),e)}}function o_(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function wb(t,e){const n=e>0,r=n?e:1-e;let i;if(r<=50)i=t||100;else{const s=r+50,o=Math.trunc(s/100)*100,a=t>=s%100;i=t+o-(a?100:0)}return n?i:1-i}function Tb(t){return t%400===0||t%4===0&&t%100!==0}class FU extends le{constructor(){super(...arguments);p(this,"priority",130);p(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,i){const s=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Fe(De(4,n),s);case"yo":return Fe(i.ordinalNumber(n,{unit:"year"}),s);default:return Fe(De(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const s=n.getFullYear();if(i.isTwoDigitYear){const a=wb(i.year,s);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class BU extends le{constructor(){super(...arguments);p(this,"priority",130);p(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,i){const s=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Fe(De(4,n),s);case"Yo":return Fe(i.ordinalNumber(n,{unit:"year"}),s);default:return Fe(De(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,s){const o=s_(n,s);if(i.isTwoDigitYear){const l=wb(i.year,o);return n.setFullYear(l,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),Jn(n,s)}const a=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(a,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),Jn(n,s)}}class UU extends le{constructor(){super(...arguments);p(this,"priority",130);p(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return fu(r==="R"?4:r.length,n)}set(n,r,i){const s=ue(n,0);return s.setFullYear(i,0,4),s.setHours(0,0,0,0),Ws(s)}}class LU extends le{constructor(){super(...arguments);p(this,"priority",130);p(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return fu(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class VU extends le{constructor(){super(...arguments);p(this,"priority",120);p(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"Q":case"QQ":return De(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class zU extends le{constructor(){super(...arguments);p(this,"priority",120);p(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"q":case"qq":return De(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class WU extends le{constructor(){super(...arguments);p(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);p(this,"priority",110)}parse(n,r,i){const s=o=>o-1;switch(r){case"M":return Fe(Ce(Ne.month,n),s);case"MM":return Fe(De(2,n),s);case"Mo":return Fe(i.ordinalNumber(n,{unit:"month"}),s);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class HU extends le{constructor(){super(...arguments);p(this,"priority",110);p(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,i){const s=o=>o-1;switch(r){case"L":return Fe(Ce(Ne.month,n),s);case"LL":return Fe(De(2,n),s);case"Lo":return Fe(i.ordinalNumber(n,{unit:"month"}),s);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function jU(t,e,n){const r=K(t),i=pb(r,n)-e;return r.setDate(r.getDate()-i*7),r}class YU extends le{constructor(){super(...arguments);p(this,"priority",100);p(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,i){switch(r){case"w":return Ce(Ne.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return De(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,s){return Jn(jU(n,i,s),s)}}function $U(t,e){const n=K(t),r=i_(n)-e;return n.setDate(n.getDate()-r*7),n}class XU extends le{constructor(){super(...arguments);p(this,"priority",100);p(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,i){switch(r){case"I":return Ce(Ne.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return De(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return Ws($U(n,i))}}const KU=[31,28,31,30,31,30,31,31,30,31,30,31],qU=[31,29,31,30,31,30,31,31,30,31,30,31];class QU extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"subPriority",1);p(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"d":return Ce(Ne.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return De(r.length,n)}}validate(n,r){const i=n.getFullYear(),s=Tb(i),o=n.getMonth();return s?r>=1&&r<=qU[o]:r>=1&&r<=KU[o]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class ZU extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"subpriority",1);p(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,i){switch(r){case"D":case"DD":return Ce(Ne.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return De(r.length,n)}}validate(n,r){const i=n.getFullYear();return Tb(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function a_(t,e,n){const r=Fi(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=K(t),o=s.getDay(),l=(e%7+7)%7,c=7-i,u=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return jr(s,u)}class JU extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,s){return n=a_(n,i,s),n.setHours(0,0,0,0),n}}class GU extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,i,s){const o=a=>{const l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return Fe(De(r.length,n),o);case"eo":return Fe(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,s){return n=a_(n,i,s),n.setHours(0,0,0,0),n}}class e6 extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,i,s){const o=a=>{const l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return Fe(De(r.length,n),o);case"co":return Fe(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,s){return n=a_(n,i,s),n.setHours(0,0,0,0),n}}function t6(t){let n=K(t).getDay();return n===0&&(n=7),n}function n6(t,e){const n=K(t),r=t6(n),i=e-r;return jr(n,i)}class r6 extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,i){const s=o=>o===0?7:o;switch(r){case"i":case"ii":return De(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return Fe(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return Fe(i.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Fe(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Fe(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=n6(n,i),n.setHours(0,0,0,0),n}}class i6 extends le{constructor(){super(...arguments);p(this,"priority",80);p(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(o_(i),0,0,0),n}}class s6 extends le{constructor(){super(...arguments);p(this,"priority",80);p(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(o_(i),0,0,0),n}}class o6 extends le{constructor(){super(...arguments);p(this,"priority",80);p(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(o_(i),0,0,0),n}}class a6 extends le{constructor(){super(...arguments);p(this,"priority",70);p(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,i){switch(r){case"h":return Ce(Ne.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return De(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const s=n.getHours()>=12;return s&&i<12?n.setHours(i+12,0,0,0):!s&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class l6 extends le{constructor(){super(...arguments);p(this,"priority",70);p(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,i){switch(r){case"H":return Ce(Ne.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return De(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}}class c6 extends le{constructor(){super(...arguments);p(this,"priority",70);p(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,i){switch(r){case"K":return Ce(Ne.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return De(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class u6 extends le{constructor(){super(...arguments);p(this,"priority",70);p(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,i){switch(r){case"k":return Ce(Ne.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return De(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const s=i<=24?i%24:i;return n.setHours(s,0,0,0),n}}class d6 extends le{constructor(){super(...arguments);p(this,"priority",60);p(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"m":return Ce(Ne.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return De(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}}class f6 extends le{constructor(){super(...arguments);p(this,"priority",50);p(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"s":return Ce(Ne.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return De(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}}class h6 extends le{constructor(){super(...arguments);p(this,"priority",30);p(this,"incompatibleTokens",["t","T"])}parse(n,r){const i=s=>Math.trunc(s*Math.pow(10,-r.length+3));return Fe(De(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}}class p6 extends le{constructor(){super(...arguments);p(this,"priority",10);p(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return wn(vn.basicOptionalMinutes,n);case"XX":return wn(vn.basic,n);case"XXXX":return wn(vn.basicOptionalSeconds,n);case"XXXXX":return wn(vn.extendedOptionalSeconds,n);case"XXX":default:return wn(vn.extended,n)}}set(n,r,i){return r.timestampIsSet?n:ue(n,n.getTime()-ou(n)-i)}}class g6 extends le{constructor(){super(...arguments);p(this,"priority",10);p(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return wn(vn.basicOptionalMinutes,n);case"xx":return wn(vn.basic,n);case"xxxx":return wn(vn.basicOptionalSeconds,n);case"xxxxx":return wn(vn.extendedOptionalSeconds,n);case"xxx":default:return wn(vn.extended,n)}}set(n,r,i){return r.timestampIsSet?n:ue(n,n.getTime()-ou(n)-i)}}class _6 extends le{constructor(){super(...arguments);p(this,"priority",40);p(this,"incompatibleTokens","*")}parse(n){return vb(n)}set(n,r,i){return[ue(n,i*1e3),{timestampIsSet:!0}]}}class m6 extends le{constructor(){super(...arguments);p(this,"priority",20);p(this,"incompatibleTokens","*")}parse(n){return vb(n)}set(n,r,i){return[ue(n,i),{timestampIsSet:!0}]}}const y6={G:new NU,y:new FU,Y:new BU,R:new UU,u:new LU,Q:new VU,q:new zU,M:new WU,L:new HU,w:new YU,I:new XU,d:new QU,D:new ZU,E:new JU,e:new GU,c:new e6,i:new r6,a:new i6,b:new s6,B:new o6,h:new a6,H:new l6,K:new c6,k:new u6,m:new d6,s:new f6,S:new h6,X:new p6,x:new g6,t:new _6,T:new m6},v6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,w6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T6=/^'([^]*?)'?$/,E6=/''/g,S6=/\S/,b6=/[a-zA-Z]/;function Bf(t,e,n,r){const i=MU(),s=r?.locale??i.locale??fb,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(e==="")return t===""?K(n):ue(n,NaN);const l={firstWeekContainsDate:o,weekStartsOn:a,locale:s},c=[new OU],u=e.match(w6).map(g=>{const E=g[0];if(E in uu){const _=uu[E];return _(g,s.formatLong)}return g}).join("").match(v6),d=[];for(let g of u){!r?.useAdditionalWeekYearTokens&&mb(g)&&Ip(g,e,t),!r?.useAdditionalDayOfYearTokens&&_b(g)&&Ip(g,e,t);const E=g[0],_=y6[E];if(_){const{incompatibleTokens:m}=_;if(Array.isArray(m)){const b=d.find(R=>m.includes(R.token)||R.token===E);if(b)throw new RangeError(`The format string mustn't contain \`${b.fullToken}\` and \`${g}\` at the same time`)}else if(_.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${g}\` and any other token at the same time`);d.push({token:E,fullToken:g});const w=_.run(t,g,s.match,l);if(!w)return ue(n,NaN);c.push(w.setter),t=w.rest}else{if(E.match(b6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(g==="''"?g="'":E==="'"&&(g=A6(g)),t.indexOf(g)===0)t=t.slice(g.length);else return ue(n,NaN)}}if(t.length>0&&S6.test(t))return ue(n,NaN);const f=c.map(g=>g.priority).sort((g,E)=>E-g).filter((g,E,_)=>_.indexOf(g)===E).map(g=>c.filter(E=>E.priority===g).sort((E,_)=>_.subPriority-E.subPriority)).map(g=>g[0]);let h=K(n);if(isNaN(h.getTime()))return ue(n,NaN);const y={};for(const g of f){if(!g.validate(h,l))return ue(n,NaN);const E=g.set(h,y,l);Array.isArray(E)?(h=E[0],Object.assign(y,E[1])):h=E}return ue(n,h)}function A6(t){return t.match(T6)[1].replace(E6,"'")}function R6(t,e){const r=M6(t);let i;if(r.date){const l=k6(r.date,2);i=D6(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const s=i.getTime();let o=0,a;if(r.time&&(o=I6(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(a=O6(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(s+o),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(s+o+a)}const Ll={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},C6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,P6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,x6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function M6(t){const e={},n=t.split(Ll.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],Ll.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Ll.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const i=Ll.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function k6(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((r[1]||r[2]).length)}}function D6(t,e){if(e===null)return new Date(NaN);const n=t.match(C6);if(!n)return new Date(NaN);const r=!!n[4],i=Po(n[1]),s=Po(n[2])-1,o=Po(n[3]),a=Po(n[4]),l=Po(n[5])-1;if(r)return L6(e,a,l)?N6(e,a,l):new Date(NaN);{const c=new Date(0);return!B6(e,s,o)||!U6(e,i)?new Date(NaN):(c.setUTCFullYear(e,s,Math.max(i,o)),c)}}function Po(t){return t?parseInt(t):1}function I6(t){const e=t.match(P6);if(!e)return NaN;const n=Uf(e[1]),r=Uf(e[2]),i=Uf(e[3]);return V6(n,r,i)?n*pd+r*hd+i*1e3:NaN}function Uf(t){return t&&parseFloat(t.replace(",","."))||0}function O6(t){if(t==="Z")return 0;const e=t.match(x6);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return z6(r,i)?n*(r*pd+i*hd):NaN}function N6(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,s=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const F6=[31,null,31,30,31,30,31,31,30,31,30,31];function Eb(t){return t%400===0||t%4===0&&t%100!==0}function B6(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(F6[e]||(Eb(t)?29:28))}function U6(t,e){return e>=1&&e<=(Eb(t)?366:365)}function L6(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function V6(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function z6(t,e){return e>=0&&e<=59}function W6(t){const e=K(t),n=e.getFullYear(),r=e.getMonth(),i=ue(t,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Rt(t,e){const n=K(t),r=n.getFullYear(),i=n.getDate(),s=ue(t,0);s.setFullYear(r,e,15),s.setHours(0,0,0,0);const o=W6(s);return n.setMonth(e,Math.min(i,o)),n}function H6(t,e){let n=K(t);return isNaN(+n)?ue(t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Rt(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}function ac(t,e){const n=K(t);return n.setHours(e),n}function lc(t,e){const n=K(t);return n.setMinutes(e),n}function Ki(t,e){const n=K(t),r=Math.trunc(n.getMonth()/3)+1,i=e-r;return Rt(n,n.getMonth()+i*3)}function cc(t,e){const n=K(t);return n.setSeconds(e),n}function gn(t,e){const n=K(t);return isNaN(+n)?ue(t,NaN):(n.setFullYear(e),n)}function Sb(t){const e=K(t);return e.setDate(1),e.setHours(0,0,0,0),e}function j6(t,e){return jr(t,-e)}function Hs(t,e){return rn(t,-e)}function bb(t,e){return r_(t,-e)}function d0(t,e){return su(t,-e)}function js(t,e){return jn(t,-e)}function Gs(t){return Ab(t)?(t.nodeName||"").toLowerCase():"#document"}function xt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function er(t){var e;return(e=(Ab(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ab(t){return t instanceof Node||t instanceof xt(t).Node}function vt(t){return t instanceof Element||t instanceof xt(t).Element}function xn(t){return t instanceof HTMLElement||t instanceof xt(t).HTMLElement}function f0(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xt(t).ShadowRoot}function $a(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=jt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function Y6(t){return["table","td","th"].includes(Gs(t))}function $6(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function l_(t){const e=c_(),n=jt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function X6(t){let e=Ur(t);for(;xn(e)&&!Ys(e);){if($6(e))return null;if(l_(e))return e;e=Ur(e)}return null}function c_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ys(t){return["html","body","#document"].includes(Gs(t))}function jt(t){return xt(t).getComputedStyle(t)}function _d(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(Gs(t)==="html")return t;const e=t.assignedSlot||t.parentNode||f0(t)&&t.host||er(t);return f0(e)?e.host:e}function Rb(t){const e=Ur(t);return Ys(e)?t.ownerDocument?t.ownerDocument.body:t.body:xn(e)&&$a(e)?e:Rb(e)}function ka(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Rb(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),o=xt(i);return s?e.concat(o,o.visualViewport||[],$a(i)?i:[],o.frameElement&&n?ka(o.frameElement):[]):e.concat(i,ka(i,[],n))}const $s=Math.min,_i=Math.max,hu=Math.round,Vl=Math.floor,Lr=t=>({x:t,y:t}),K6={left:"right",right:"left",bottom:"top",top:"bottom"},q6={start:"end",end:"start"};function Q6(t,e,n){return _i(t,$s(e,n))}function md(t,e){return typeof t=="function"?t(e):t}function Xs(t){return t.split("-")[0]}function Xa(t){return t.split("-")[1]}function Z6(t){return t==="x"?"y":"x"}function u_(t){return t==="y"?"height":"width"}function Da(t){return["top","bottom"].includes(Xs(t))?"y":"x"}function d_(t){return Z6(Da(t))}function J6(t,e,n){n===void 0&&(n=!1);const r=Xa(t),i=d_(t),s=u_(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=pu(o)),[o,pu(o)]}function G6(t){const e=pu(t);return[Fp(t),e,Fp(e)]}function Fp(t){return t.replace(/start|end/g,e=>q6[e])}function eL(t,e,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?s:o;default:return[]}}function tL(t,e,n,r){const i=Xa(t);let s=eL(Xs(t),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(Fp)))),s}function pu(t){return t.replace(/left|right|bottom|top/g,e=>K6[e])}function nL(t){return{top:0,right:0,bottom:0,left:0,...t}}function Cb(t){return typeof t!="number"?nL(t):{top:t,right:t,bottom:t,left:t}}function gu(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function h0(t,e,n){let{reference:r,floating:i}=t;const s=Da(e),o=d_(e),a=u_(o),l=Xs(e),c=s==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Xa(e)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const rL=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=h0(c,r,l),f=r,h={},y=0;for(let g=0;g({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=md(t,e)||{};if(c==null)return{};const d=Cb(u),f={x:n,y:r},h=d_(i),y=u_(h),g=await o.getDimensions(c),E=h==="y",_=E?"top":"left",m=E?"bottom":"right",w=E?"clientHeight":"clientWidth",b=s.reference[y]+s.reference[h]-f[h]-s.floating[y],R=f[h]-s.reference[h],M=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let k=M?M[w]:0;(!k||!await(o.isElement==null?void 0:o.isElement(M)))&&(k=a.floating[w]||s.floating[y]);const I=b/2-R/2,N=k/2-g[y]/2-1,B=$s(d[_],N),j=$s(d[m],N),Q=B,Z=k-g[y]-j,H=k/2-g[y]/2+I,J=Q6(Q,H,Z),te=!l.arrow&&Xa(i)!=null&&H!==J&&s.reference[y]/2-(HH<=0)){var j,Q;const H=(((j=s.flip)==null?void 0:j.index)||0)+1,J=k[H];if(J)return{data:{index:H,overflows:B},reset:{placement:J}};let te=(Q=B.filter(G=>G.overflows[0]<=0).sort((G,W)=>G.overflows[1]-W.overflows[1])[0])==null?void 0:Q.placement;if(!te)switch(h){case"bestFit":{var Z;const G=(Z=B.filter(W=>{if(M){const $=Da(W.placement);return $===m||$==="y"}return!0}).map(W=>[W.placement,W.overflows.filter($=>$>0).reduce(($,ee)=>$+ee,0)]).sort((W,$)=>W[1]-$[1])[0])==null?void 0:Z[0];G&&(te=G);break}case"initialPlacement":te=a;break}if(i!==te)return{reset:{placement:te}}}return{}}}};async function aL(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xs(n),a=Xa(n),l=Da(n)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,d=md(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const lL=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=e,l=await aL(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}};function Pb(t){const e=jt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=xn(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,a=hu(n)!==s||hu(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function f_(t){return vt(t)?t:t.contextElement}function As(t){const e=f_(t);if(!xn(e))return Lr(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Pb(e);let o=(s?hu(n.width):n.width)/r,a=(s?hu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const cL=Lr(0);function xb(t){const e=xt(t);return!c_()||!e.visualViewport?cL:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uL(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==xt(t)?!1:e}function Pi(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=f_(t);let o=Lr(1);e&&(r?vt(r)&&(o=As(r)):o=As(t));const a=uL(s,n,r)?xb(s):Lr(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){const f=xt(s),h=r&&vt(r)?xt(r):r;let y=f,g=y.frameElement;for(;g&&r&&h!==y;){const E=As(g),_=g.getBoundingClientRect(),m=jt(g),w=_.left+(g.clientLeft+parseFloat(m.paddingLeft))*E.x,b=_.top+(g.clientTop+parseFloat(m.paddingTop))*E.y;l*=E.x,c*=E.y,u*=E.x,d*=E.y,l+=w,c+=b,y=xt(g),g=y.frameElement}}return gu({width:u,height:d,x:l,y:c})}const dL=[":popover-open",":modal"];function h_(t){return dL.some(e=>{try{return t.matches(e)}catch{return!1}})}function fL(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",o=er(r),a=e?h_(e.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Lr(1);const u=Lr(0),d=xn(r);if((d||!d&&!s)&&((Gs(r)!=="body"||$a(o))&&(l=_d(r)),xn(r))){const f=Pi(r);c=As(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function hL(t){return Array.from(t.getClientRects())}function Mb(t){return Pi(er(t)).left+_d(t).scrollLeft}function pL(t){const e=er(t),n=_d(t),r=t.ownerDocument.body,i=_i(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=_i(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Mb(t);const a=-n.scrollTop;return jt(r).direction==="rtl"&&(o+=_i(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function gL(t,e){const n=xt(t),r=er(t),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=c_();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function _L(t,e){const n=Pi(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=xn(t)?As(t):Lr(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function p0(t,e,n){let r;if(e==="viewport")r=gL(t,n);else if(e==="document")r=pL(er(t));else if(vt(e))r=_L(e,n);else{const i=xb(t);r={...e,x:e.x-i.x,y:e.y-i.y}}return gu(r)}function kb(t,e){const n=Ur(t);return n===e||!vt(n)||Ys(n)?!1:jt(n).position==="fixed"||kb(n,e)}function mL(t,e){const n=e.get(t);if(n)return n;let r=ka(t,[],!1).filter(a=>vt(a)&&Gs(a)!=="body"),i=null;const s=jt(t).position==="fixed";let o=s?Ur(t):t;for(;vt(o)&&!Ys(o);){const a=jt(o),l=l_(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||$a(o)&&!l&&kb(t,o))?r=r.filter(u=>u!==o):i=a,o=Ur(o)}return e.set(t,r),r}function yL(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?h_(e)?[]:mL(e,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=p0(e,u,i);return c.top=_i(d.top,c.top),c.right=$s(d.right,c.right),c.bottom=$s(d.bottom,c.bottom),c.left=_i(d.left,c.left),c},p0(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vL(t){const{width:e,height:n}=Pb(t);return{width:e,height:n}}function wL(t,e,n){const r=xn(e),i=er(e),s=n==="fixed",o=Pi(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=Lr(0);if(r||!r&&!s)if((Gs(e)!=="body"||$a(i))&&(a=_d(e)),r){const d=Pi(e,!0,s,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&(l.x=Mb(i));const c=o.left+a.scrollLeft-l.x,u=o.top+a.scrollTop-l.y;return{x:c,y:u,width:o.width,height:o.height}}function Lf(t){return jt(t).position==="static"}function g0(t,e){return!xn(t)||jt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Db(t,e){const n=xt(t);if(h_(t))return n;if(!xn(t)){let i=Ur(t);for(;i&&!Ys(i);){if(vt(i)&&!Lf(i))return i;i=Ur(i)}return n}let r=g0(t,e);for(;r&&Y6(r)&&Lf(r);)r=g0(r,e);return r&&Ys(r)&&Lf(r)&&!l_(r)?n:r||X6(t)||n}const TL=async function(t){const e=this.getOffsetParent||Db,n=this.getDimensions,r=await n(t.floating);return{reference:wL(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function EL(t){return jt(t).direction==="rtl"}const SL={convertOffsetParentRelativeRectToViewportRelativeRect:fL,getDocumentElement:er,getClippingRect:yL,getOffsetParent:Db,getElementRects:TL,getClientRects:hL,getDimensions:vL,getScale:As,isElement:vt,isRTL:EL};function bL(t,e){let n=null,r;const i=er(t);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:d,height:f}=t.getBoundingClientRect();if(a||e(),!d||!f)return;const h=Vl(u),y=Vl(i.clientWidth-(c+d)),g=Vl(i.clientHeight-(u+f)),E=Vl(c),m={rootMargin:-h+"px "+-y+"px "+-g+"px "+-E+"px",threshold:_i(0,$s(1,l))||1};let w=!0;function b(R){const M=R[0].intersectionRatio;if(M!==l){if(!w)return o();M?o(!1,M):r=setTimeout(()=>{o(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,m)}n.observe(t)}return o(!0),s}function AL(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=f_(t),u=i||s?[...c?ka(c):[],...ka(e)]:[];u.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const d=c&&a?bL(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(_=>{let[m]=_;m&&m.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let y,g=l?Pi(t):null;l&&E();function E(){const _=Pi(t);g&&(_.x!==g.x||_.y!==g.y||_.width!==g.width||_.height!==g.height)&&n(),g=_,y=requestAnimationFrame(E)}return n(),()=>{var _;u.forEach(m=>{i&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),d?.(),(_=h)==null||_.disconnect(),h=null,l&&cancelAnimationFrame(y)}}const RL=lL,CL=oL,_0=sL,PL=(t,e,n)=>{const r=new Map,i={platform:SL,...n},s={...i.platform,_c:r};return rL(t,e,{...i,platform:s})};var uc=typeof document<"u"?x.useLayoutEffect:x.useEffect;function _u(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!_u(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&t.$$typeof)&&!_u(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Ib(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function m0(t,e){const n=Ib(t);return Math.round(e*n)/n}function y0(t){const e=x.useRef(t);return uc(()=>{e.current=t}),e}function xL(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[u,d]=x.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=x.useState(r);_u(f,r)||h(r);const[y,g]=x.useState(null),[E,_]=x.useState(null),m=x.useCallback(G=>{G!==M.current&&(M.current=G,g(G))},[]),w=x.useCallback(G=>{G!==k.current&&(k.current=G,_(G))},[]),b=s||y,R=o||E,M=x.useRef(null),k=x.useRef(null),I=x.useRef(u),N=l!=null,B=y0(l),j=y0(i),Q=x.useCallback(()=>{if(!M.current||!k.current)return;const G={placement:e,strategy:n,middleware:f};j.current&&(G.platform=j.current),PL(M.current,k.current,G).then(W=>{const $={...W,isPositioned:!0};Z.current&&!_u(I.current,$)&&(I.current=$,Ua.flushSync(()=>{d($)}))})},[f,e,n,j]);uc(()=>{c===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,d(G=>({...G,isPositioned:!1})))},[c]);const Z=x.useRef(!1);uc(()=>(Z.current=!0,()=>{Z.current=!1}),[]),uc(()=>{if(b&&(M.current=b),R&&(k.current=R),b&&R){if(B.current)return B.current(b,R,Q);Q()}},[b,R,Q,B,N]);const H=x.useMemo(()=>({reference:M,floating:k,setReference:m,setFloating:w}),[m,w]),J=x.useMemo(()=>({reference:b,floating:R}),[b,R]),te=x.useMemo(()=>{const G={position:n,left:0,top:0};if(!J.floating)return G;const W=m0(J.floating,u.x),$=m0(J.floating,u.y);return a?{...G,transform:"translate("+W+"px, "+$+"px)",...Ib(J.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:$}},[n,a,J.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:Q,refs:H,elements:J,floatingStyles:te}),[u,Q,H,J,te])}const ML=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?_0({element:r.current,padding:i}).fn(n):{}:r?_0({element:r,padding:i}).fn(n):{}}}},kL=(t,e)=>({...RL(t),options:[t,e]}),DL=(t,e)=>({...CL(t),options:[t,e]}),IL=(t,e)=>({...ML(t),options:[t,e]}),Ob={...N1},OL=Ob.useInsertionEffect,NL=OL||(t=>t());function FL(t){const e=x.useRef(()=>{});return NL(()=>{e.current=t}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i"floating-ui-"+Math.random().toString(36).slice(2,6)+BL++;function UL(){const[t,e]=x.useState(()=>v0?w0():void 0);return mu(()=>{t==null&&e(w0())},[]),x.useEffect(()=>{v0=!0},[]),t}const LL=Ob.useId,Nb=LL||UL,VL=x.forwardRef(function(e,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:s}},width:o=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:f,style:{transform:h,...y}={},...g}=e,E=Nb(),[_,m]=x.useState(!1);if(mu(()=>{if(!i)return;jt(i).direction==="rtl"&&m(!0)},[i]),!i)return null;const w=c*2,b=w/2,R=o/2*(l/-8+1),M=a/2*l/4,[k,I]=r.split("-"),N=!!f,B=k==="top"||k==="bottom",j=u&&I==="end"?"bottom":"top";let Q=u&&I==="end"?"right":"left";u&&_&&(Q=I==="end"?"left":"right");const Z=s?.x!=null?u||s.x:"",H=s?.y!=null?u||s.y:"",J=f||"M0,0"+(" H"+o)+(" L"+(o-R)+","+(a-M))+(" Q"+o/2+","+a+" "+R+","+(a-M))+" Z",te={top:N?"rotate(180deg)":"",left:N?"rotate(90deg)":"rotate(-90deg)",bottom:N?"":"rotate(180deg)",right:N?"rotate(-90deg)":"rotate(90deg)"}[k];return x.createElement("svg",Bp({},g,{"aria-hidden":!0,ref:n,width:N?o:o+w,height:o,viewBox:"0 0 "+o+" "+(a>o?a:o),style:{position:"absolute",pointerEvents:"none",[Q]:Z,[j]:H,[k]:B||N?"100%":"calc(100% - "+w/2+"px)",transform:""+te+(h??""),...y}}),w>0&&x.createElement("path",{clipPath:"url(#"+E+")",fill:"none",stroke:d,strokeWidth:w+(f?0:1),d:J}),x.createElement("path",{stroke:w&&!f?g.fill:"none",d:J}),x.createElement("clipPath",{id:E},x.createElement("rect",{x:-b,y:b*(N?-1:1),width:o+w,height:o})))});function zL(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(i=>i(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(i=>i!==n))||[])}}}const WL=x.createContext(null),HL=x.createContext(null),jL=()=>{var t;return((t=x.useContext(WL))==null?void 0:t.id)||null},YL=()=>x.useContext(HL);function $L(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=Nb(),s=x.useRef({}),[o]=x.useState(()=>zL()),a=jL()!=null,[l,c]=x.useState(r.reference),u=FL((h,y,g)=>{s.current.openEvent=h?y:void 0,o.emit("openchange",{open:h,event:y,reason:g,nested:a}),n?.(h,y,g)}),d=x.useMemo(()=>({setPositionReference:c}),[]),f=x.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return x.useMemo(()=>({dataRef:s,open:e,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[e,u,f,o,i,d])}function XL(t){t===void 0&&(t={});const{nodeId:e}=t,n=$L({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,i=r.elements,[s,o]=x.useState(null),[a,l]=x.useState(null),u=i?.reference||s,d=x.useRef(null),f=YL();mu(()=>{u&&(d.current=u)},[u]);const h=xL({...t,elements:{...i,...a&&{reference:a}}}),y=x.useCallback(w=>{const b=vt(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(b),h.refs.setReference(b)},[h.refs]),g=x.useCallback(w=>{(vt(w)||w===null)&&(d.current=w,o(w)),(vt(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!vt(w))&&h.refs.setReference(w)},[h.refs]),E=x.useMemo(()=>({...h.refs,setReference:g,setPositionReference:y,domReference:d}),[h.refs,g,y]),_=x.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),m=x.useMemo(()=>({...h,...r,refs:E,elements:_,nodeId:e}),[h,E,_,e,r]);return mu(()=>{r.dataRef.current.floatingContext=m;const w=f?.nodesRef.current.find(b=>b.id===e);w&&(w.context=m)}),x.useMemo(()=>({...h,context:m,refs:E,elements:_}),[h,E,_,m])}/*! +`},e}initializeState(){super.initializeState(),this.getAttributeManager().addInstanced({timestamps:{size:1,accessor:"getTimestamps",shaderAttributes:{instanceTimestamps:{vertexOffset:0},instanceNextTimestamps:{vertexOffset:1}}}})}draw(e){const{fadeTrail:n,trailLength:r,currentTime:i}=this.props;e.uniforms={...e.uniforms,fadeTrail:n,trailLength:r,currentTime:i},super.draw(e)}};Lu.layerName="TripsLayer",Lu.defaultProps=GB;let Pp=Lu;const If=85.05113;function Jv(t,e,n,r){if(n){if(n.userData._googleMap===t)return n;xp(n)}const i={click:null,rightclick:null,dblclick:null,mousemove:null,mouseout:null},s=new vp({...r,useDevicePixels:r.interleaved?!0:r.useDevicePixels,style:r.interleaved?null:{pointerEvents:"none"},parent:e4(e,r.style),views:new nu({repeat:!0}),initialViewState:{longitude:0,latitude:0,zoom:1},controller:!1});for(const o in i)i[o]=t.addListener(o,a=>r4(s,o,a));return s.userData._googleMap=t,s.userData._eventListeners=i,s}function e4(t,e){const n=document.createElement("div");return n.style.position="absolute",Object.assign(n.style,e),"getPanes"in t?t.getPanes()?.overlayLayer.appendChild(n):t.getMap()?.getDiv().appendChild(n),n}function xp(t){const{_eventListeners:e}=t.userData;for(const n in e)e[n]&&e[n].remove();t.finalize()}function t4(t,e){const{width:n,height:r}=ab(t),i=e.getProjection(),s=t.getBounds();if(!s)return{width:n,height:r,left:0,top:0};const o=s.getNorthEast(),a=s.getSouthWest(),l=i.fromLatLngToDivPixel(o),c=i.fromLatLngToDivPixel(a),u=Of(i,n/2,r/2),d=new google.maps.LatLng(0,u[0]),f=i.fromLatLngToContainerPixel(d),h=i.fromLatLngToDivPixel(d);if(!l||!c||!h||!f)return{width:n,height:r,left:0,top:0};const y=Math.round(h.x-f.x);let g=h.y-f.y;const E=Of(i,n/2,0),_=Of(i,n/2,r);let m=u[1];const w=u[0];if(Math.abs(m)>If){m=m>0?If:-If;const N=new google.maps.LatLng(m,w),B=i.fromLatLngToContainerPixel(N);g+=B.y-r/2}g=Math.round(g);let R=180*new uf(E).sub(_).verticalAngle()/Math.PI;R<0&&(R+=360);const M=t.getHeading()||0;let k=t.getZoom()-1,I;if(R===0)I=r?(c.y-l.y)/r:1;else if(R===M){const N=new uf([l.x,l.y]).sub([c.x,c.y]).len(),B=new uf([n,-r]).len();I=B?N/B:1}return k+=Math.log2(I||1),{width:n,height:r,left:y,top:g,zoom:k,bearing:R,pitch:t.getTilt(),latitude:m,longitude:w}}function Gv(t,e){const{width:n,height:r}=ab(t),{center:i,heading:s,tilt:o,zoom:a}=e.getCameraParams(),l=25,c=r?n/r:1,f=new nn().perspective({fovy:l*Math.PI/180,aspect:c,near:.75,far:3e14}),h=.5*f[5];return{width:n,height:r,viewState:{altitude:h,bearing:s,latitude:i.lat(),longitude:i.lng(),pitch:o,projectionMatrix:f,repeat:!0,zoom:a-1}}}function ab(t){const e=t.getDiv().firstChild;return{width:e.offsetWidth,height:e.offsetHeight}}function Of(t,e,n){const r=new google.maps.Point(e,n),i=t.fromContainerPixelToLatLng(r);return[i.lng(),i.lat()]}function n4(t,e){if(t.pixel)return t.pixel;const n=e.getViewports()[0].project([t.latLng.lng(),t.latLng.lat()]);return{x:n[0],y:n[1]}}function r4(t,e,n){if(!t.isInitialized)return;const r={type:e,offsetCenter:n4(n,t),srcEvent:n};switch(e){case"click":case"rightclick":r.type="click",r.tapCount=1,t._onPointerDown(r),t._onEvent(r);break;case"dblclick":r.type="click",r.tapCount=2,t._onEvent(r);break;case"mousemove":r.type="pointermove",t._onPointerMove(r);break;case"mouseout":r.type="pointerleave",t._onPointerMove(r);break;default:return}}const i4=()=>!1,s4={depthMask:!0,depthTest:!0,blend:!0,blendFunc:[770,771,1,771],blendEquation:32774};function e0(){}const o4={interleaved:!0};class a4{constructor(e){this.props={},this._map=null,this._deck=null,this._overlay=null,this.setProps({...o4,...e})}setMap(e){if(e===this._map)return;const{VECTOR:n,UNINITIALIZED:r}=google.maps.RenderingType;this._map&&(!e&&this._map.getRenderingType()===n&&this.props.interleaved&&this._overlay.requestRedraw(),this._overlay?.setMap(null),this._map=null),e&&(this._map=e,e.getRenderingType()!==r?this._createOverlay(e):e.addListener("renderingtype_changed",()=>{this._createOverlay(e)}))}setProps(e){if(Object.assign(this.props,e),this._deck){const n=this._deck.getCanvas();if(e.style&&n?.parentElement){const r=n.parentElement.style;Object.assign(r,e.style),e.style=null}this._deck.setProps(e)}}pickObject(e){return this._deck&&this._deck.pickObject(e)}pickMultipleObjects(e){return this._deck&&this._deck.pickMultipleObjects(e)}pickObjects(e){return this._deck&&this._deck.pickObjects(e)}finalize(){this.setMap(null),this._deck&&(xp(this._deck),this._deck=null)}_createOverlay(e){const{interleaved:n}=this.props,{VECTOR:r,UNINITIALIZED:i}=google.maps.RenderingType,s=e.getRenderingType();if(s===i)return;const a=s===r&&google.maps.WebGLOverlayView?google.maps.WebGLOverlayView:google.maps.OverlayView,l=new a;l instanceof google.maps.WebGLOverlayView?(n?(l.onAdd=e0,l.onContextRestored=this._onContextRestored.bind(this),l.onDraw=this._onDrawVectorInterleaved.bind(this)):(l.onAdd=this._onAdd.bind(this),l.onContextRestored=e0,l.onDraw=this._onDrawVectorOverlay.bind(this)),l.onContextLost=this._onContextLost.bind(this)):(l.onAdd=this._onAdd.bind(this),l.draw=this._onDrawRaster.bind(this)),l.onRemove=this._onRemove.bind(this),this._overlay=l,this._overlay.setMap(e)}_onAdd(){this._deck=Jv(this._map,this._overlay,this._deck,this.props)}_onContextRestored({gl:e}){if(!this._map||!this._overlay)return;const n=()=>{this._overlay&&this._overlay.requestRedraw()},r=Jv(this._map,this._overlay,this._deck,{gl:e,_customRender:n,...this.props});this._deck=r;const i=r.animationLoop;i._renderFrame=()=>{const s=e.getParameter(34964);r.device.withParametersWebGL({},()=>{i.props.onRender(i.animationProps)}),e.bindBuffer(34962,s)}}_onContextLost(){this._deck&&(xp(this._deck),this._deck=null)}_onRemove(){this._deck?.setProps({layerFilter:i4})}_onDrawRaster(){if(!this._deck||!this._map)return;const e=this._deck,{width:n,height:r,left:i,top:s,...o}=t4(this._map,this._overlay),l=e.getCanvas()?.parentElement||e.props.parent;if(l){const u=l.style;u.left=`${i}px`,u.top=`${s}px`}e.setProps({width:n,height:r,viewState:{altitude:1e4,...o}}),e.redraw()}_onDrawVectorInterleaved({gl:e,transformer:n}){if(!this._deck||!this._map)return;const r=this._deck;if(r.setProps({...Gv(this._map,n),width:null,height:null}),r.isInitialized){const i=r.device,s=i.getParametersWebGL(36006);r.setProps({_framebuffer:s}),i.getCanvasContext().resize(),r.needsRedraw({clearRedrawFlags:!0}),i.setParametersWebGL({viewport:[0,0,e.canvas.width,e.canvas.height],scissor:[0,0,e.canvas.width,e.canvas.height],stencilFunc:[519,0,255,519,0,255]}),i.withParametersWebGL(s4,()=>{r._drawLayers("google-vector",{clearCanvas:!1})})}}_onDrawVectorOverlay({transformer:e}){if(!this._deck||!this._map)return;const n=this._deck;n.setProps({...Gv(this._map,e)}),n.redraw()}}const l4=({layers:t})=>{const e=x.useMemo(()=>new a4({interleaved:!0}),[]),n=Ig();return x.useEffect(()=>(e.setMap(n),()=>e.setMap(null)),[e,n]),x.useEffect(()=>{e.setProps({layers:t})},[e,t]),null};function c4(){const t=rd(),{rawData:e,mapConfig:n,layerProps:r,startTime:i,endTime:s,daysPerTick:o,tripLayer:a,cameraProps:l,currentTime:c,animating:u,loading:d}=Zs(),f=x.useRef(),h=x.useRef(c),y=x.useCallback(m=>a?[new Pp({...r,data:a,currentTime:m})]:[],[a]),g=x.useMemo(()=>y(c),[a,c]),E=x.useDeferredValue(g),_=m=>{if(!u)return;f.current=requestAnimationFrame(_);const w=(h.current-i)/(s-i);t({type:"SET_CAMERA_PROPS",progress:w});const b=h.current+o/60*eE%(s-i);b{h.current=c},[c]),x.useEffect(()=>{t({type:"SET_CURRENT_TIME",currentTime:i}),e&&t({type:"SET_TRIP_LAYER",rawData:e})},[e,i,s,o]),x.useEffect(()=>((d||!u)&&cancelAnimationFrame(f.current??0),f.current=requestAnimationFrame(m=>_()),()=>{cancelAnimationFrame(f.current??0)}),[u,o,i,s,d]),x.useEffect(()=>{if(d&&!u){const m=setInterval(()=>{t({type:"SET_MAP_BREATHING",breath:Math.sin(Date.now()/1e3)})},100);return()=>clearInterval(m)}},[u]),U.jsx(oE,{mapId:n.mapId||null,mapTypeId:n.mapTypeId,styles:n.styles,defaultCenter:l.center,defaultZoom:l.zoom,gestureHandling:"greedy",disableDefaultUI:!0,reuseMaps:!0,keyboardShortcuts:!1,clickableIcons:!1,...(u||d)&&l,onTilesLoaded:()=>t({type:"SET_SHOW_MAP",show:!0}),children:U.jsx(l4,{layers:E})})}const u4=()=>{const t=rd();return U.jsx("div",{className:"modal-overlay",onClick:()=>t({type:"SET_CREDITS",show:!1}),children:U.jsxs("div",{className:"modal-content",onClick:e=>e.stopPropagation(),children:[U.jsx("h2",{children:"Credits"}),U.jsx("p",{children:"Standing on shoulders of giants"}),U.jsxs("ul",{children:[U.jsxs("li",{children:[U.jsx("strong",{children:"Dreamt by"}),U.jsx("span",{children:U.jsx("a",{href:"https://www.linkedin.com/in/c--rich/",target:"_blank",rel:"noopener noreferrer",children:"Charbo Rich"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Collected with"}),U.jsxs("span",{children:[U.jsx("a",{href:"https://www.garmin.com",target:"_blank",rel:"noopener noreferrer",children:"Garmin"}),"/",U.jsx("a",{href:"https://www.strava.com/athletes/45046621",target:"_blank",rel:"noopener noreferrer",children:"Strava"})]})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Persisted with"}),U.jsx("span",{children:U.jsx("a",{href:"https://www.strava.com/athletes/45046621",target:"_blank",rel:"noopener noreferrer",children:"Strava"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Processed in"}),U.jsx("span",{children:U.jsx("a",{href:"https://www.python.org",target:"_blank",rel:"noopener noreferrer",children:"Python"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Filtered with"}),U.jsx("span",{children:U.jsx("a",{href:"https://h3geo.org",target:"_blank",rel:"noopener noreferrer",children:"H3"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Built in"}),U.jsx("span",{children:U.jsx("a",{href:"https://www.typescriptlang.org",target:"_blank",rel:"noopener noreferrer",children:"TypeScript"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Framed with"}),U.jsx("span",{children:U.jsx("a",{href:"https://reactjs.org",target:"_blank",rel:"noopener noreferrer",children:"React"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Mapped with"}),U.jsx("span",{children:U.jsx("a",{href:"https://developers.google.com/maps",target:"_blank",rel:"noopener noreferrer",children:"Google"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Interleaved with"}),U.jsx("span",{children:U.jsx("a",{href:"https://deck.gl",target:"_blank",rel:"noopener noreferrer",children:"DeckGL"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Optimized with"}),U.jsx("span",{children:U.jsx("a",{href:"https://million.dev",target:"_blank",rel:"noopener noreferrer",children:"Million"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Bundled with"}),U.jsx("span",{children:U.jsx("a",{href:"https://vitejs.dev",target:"_blank",rel:"noopener noreferrer",children:"Vite"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Hosted with"}),U.jsx("span",{children:U.jsx("a",{href:"https://pages.github.com",target:"_blank",rel:"noopener noreferrer",children:"Pages"})})]}),U.jsxs("li",{children:[U.jsx("strong",{children:"Versioned with"}),U.jsx("span",{children:U.jsx("a",{href:"https://github.com/charlieforward9/NEW_HEAT",target:"_blank",rel:"noopener noreferrer",children:"Github"})})]})]})]})})},d4=()=>{const t=rd(),{currentTime:e,endTime:n,animating:r,showCredits:i}=Zs();return x.useEffect(()=>{!r&&Math.abs(e-n)<100&&t({type:"SET_CREDITS",show:!0})},[e,r]),U.jsxs("div",{className:"controls",children:[U.jsx("div",{className:"control-button",onClick:()=>{t({type:"SET_ANIMATING",animating:!r})},children:r?"Rest":"Run"}),U.jsx("div",{className:"control-button",onClick:()=>{t({type:"SET_CREDITS",show:!i})},children:"Creds"}),i&&U.jsx(u4,{})]})},f4=O.memo(d4);function h4(){const{loading_progress:t}=Zs();return U.jsx("div",{className:"loading-bar",style:{"--loading-progress":`${t.toFixed(1)}%`},children:U.jsx("span",{className:"loading-text",children:`Warmin' up.. ${t.toFixed(2)}%`})})}const p4=O.memo(h4);function lb(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e=0)&&(n[i]=t[i]);return n}function t0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m4(t,e,n){return t===e?!0:t.correspondingElement?t.correspondingElement.classList.contains(n):t.classList.contains(n)}function y4(t,e,n){if(t===e)return!0;for(;t.parentNode||t.host;){if(t.parentNode&&m4(t,e,n))return!0;t=t.parentNode||t.host}return t}function v4(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY}var w4=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,n=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),e}};function T4(t){return t===void 0&&(t=0),function(){return++t}}var E4=T4(),kp,Ul={},Nf={},S4=["touchstart","touchmove"],b4="ignore-react-onclickoutside";function n0(t,e){var n={},r=S4.indexOf(e)!==-1;return r&&kp&&(n.passive=!t.props.preventDefault),n}function fd(t,e){var n,r,i=t.displayName||t.name||"Component";return r=n=function(s){g4(o,s);function o(l){var c;return c=s.call(this,l)||this,c.__outsideClickHandler=function(u){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(u);return}var d=c.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(u);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(u);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var u=c.getInstance();return typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():Ua.findDOMNode(u)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Nf[c._uid])){typeof kp>"u"&&(kp=w4()),Nf[c._uid]=!0;var u=c.props.eventTypes;u.forEach||(u=[u]),Ul[c._uid]=function(d){if(c.componentNode!==null&&!(c.initTimeStamp>d.timeStamp)&&(c.props.preventDefault&&d.preventDefault(),c.props.stopPropagation&&d.stopPropagation(),!(c.props.excludeScrollbar&&v4(d)))){var f=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;y4(f,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(d)}},u.forEach(function(d){document.addEventListener(d,Ul[c._uid],n0(t0(c),d))})}},c.disableOnClickOutside=function(){delete Nf[c._uid];var u=Ul[c._uid];if(u&&typeof document<"u"){var d=c.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(f){return document.removeEventListener(f,u,n0(t0(c),f))}),delete Ul[c._uid]}},c.getRef=function(u){return c.instanceRef=u},c._uid=E4(),c.initTimeStamp=performance.now(),c}var a=o.prototype;return a.getInstance=function(){if(t.prototype&&!t.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},a.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var c=this.props;c.excludeScrollbar;var u=_4(c,["excludeScrollbar"]);return t.prototype&&t.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,x.createElement(t,u)},o}(x.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:b4,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return t.getClass?t.getClass():t},r}function K(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function ue(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function jr(t,e){const n=K(t);return isNaN(e)?ue(t,NaN):(e&&n.setDate(n.getDate()+e),n)}function n_(t,e){const n=+K(t);return ue(t,n+e)}const cb=6048e5,A4=864e5,hd=6e4,pd=36e5,R4=1e3;function C4(t,e){return n_(t,e*pd)}function Dp(t,e){return n_(t,e*hd)}function rn(t,e){const n=K(t);if(isNaN(e))return ue(t,NaN);if(!e)return n;const r=n.getDate(),i=ue(t,n.getTime());i.setMonth(n.getMonth()+e+1,0);const s=i.getDate();return r>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function r_(t,e){const n=e*3;return rn(t,n)}function P4(t,e){return n_(t,e*1e3)}function su(t,e){const n=e*7;return jr(t,n)}function jn(t,e){return rn(t,e*12)}function Ri(t){const e=K(t);return e.setHours(0,0,0,0),e}function ou(t){const e=K(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function xa(t,e){const n=Ri(t),r=Ri(e),i=+n-ou(n),s=+r-ou(r);return Math.round((i-s)/A4)}function au(t,e){const n=K(t),r=K(e),i=n.getFullYear()-r.getFullYear(),s=n.getMonth()-r.getMonth();return i*12+s}function gi(t){const e=K(t);return Math.trunc(e.getMonth()/3)+1}function lu(t,e){const n=K(t),r=K(e),i=n.getFullYear()-r.getFullYear(),s=gi(n)-gi(r);return i*4+s}function cu(t,e){const n=K(t),r=K(e);return n.getFullYear()-r.getFullYear()}function ub(t){const e=K(t);return e.setHours(23,59,59,999),e}function x4(t){const e=K(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}let M4={};function Fi(){return M4}function k4(t,e){const n=Fi(),r=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=K(t),s=i.getDay(),o=(s{let r;const i=D4[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ff(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const O4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},N4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},F4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},B4={date:Ff({formats:O4,defaultWidth:"full"}),time:Ff({formats:N4,defaultWidth:"full"}),dateTime:Ff({formats:F4,defaultWidth:"full"})},U4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},L4=(t,e,n,r)=>U4[t];function Ro(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;i=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[o]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const V4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},z4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},W4={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"]},H4={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"]},j4={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"}},Y4={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"}},$4=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},X4={ordinalNumber:$4,era:Ro({values:V4,defaultWidth:"wide"}),quarter:Ro({values:z4,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ro({values:W4,defaultWidth:"wide"}),day:Ro({values:H4,defaultWidth:"wide"}),dayPeriod:Ro({values:j4,defaultWidth:"wide",formattingValues:Y4,defaultFormattingWidth:"wide"})};function Co(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const o=s[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?q4(a,d=>d.test(o)):K4(a,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function K4(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function q4(t,e){for(let n=0;n{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(i.length);return{value:o,rest:a}}}const Z4=/^(\d+)(th|st|nd|rd)?/i,J4=/\d+/i,G4={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},eU={any:[/^b/i,/^(a|c)/i]},tU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nU={any:[/1/i,/2/i,/3/i,/4/i]},rU={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},iU={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]},sU={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},oU={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]},aU={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},lU={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}},cU={ordinalNumber:Q4({matchPattern:Z4,parsePattern:J4,valueCallback:t=>parseInt(t,10)}),era:Co({matchPatterns:G4,defaultMatchWidth:"wide",parsePatterns:eU,defaultParseWidth:"any"}),quarter:Co({matchPatterns:tU,defaultMatchWidth:"wide",parsePatterns:nU,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Co({matchPatterns:rU,defaultMatchWidth:"wide",parsePatterns:iU,defaultParseWidth:"any"}),day:Co({matchPatterns:sU,defaultMatchWidth:"wide",parsePatterns:oU,defaultParseWidth:"any"}),dayPeriod:Co({matchPatterns:aU,defaultMatchWidth:"any",parsePatterns:lU,defaultParseWidth:"any"})},fb={code:"en-US",formatDistance:I4,formatLong:B4,formatRelative:L4,localize:X4,match:cU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gd(t){const e=K(t),n=ue(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function uU(t){const e=K(t);return xa(e,gd(e))+1}function Jn(t,e){const n=Fi(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=K(t),s=i.getDay(),o=(s=i.getTime()?n+1:e.getTime()>=o.getTime()?n:n-1}function dU(t){const e=hb(t),n=ue(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),Ws(n)}function i_(t){const e=K(t),n=+Ws(e)-+dU(e);return Math.round(n/cb)+1}function s_(t,e){const n=K(t),r=n.getFullYear(),i=Fi(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=ue(t,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const a=Jn(o,e),l=ue(t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const c=Jn(l,e);return n.getTime()>=a.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fU(t,e){const n=Fi(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=s_(t,e),s=ue(t,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Jn(s,e)}function pb(t,e){const n=K(t),r=+Jn(n,e)-+fU(n,e);return Math.round(r/cb)+1}function ce(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const lr={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ce(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ce(n+1,2)},d(t,e){return ce(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return ce(t.getHours()%12||12,e.length)},H(t,e){return ce(t.getHours(),e.length)},m(t,e){return ce(t.getMinutes(),e.length)},s(t,e){return ce(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ce(i,e.length)}},$i={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},r0={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return lr.y(t,e)},Y:function(t,e,n,r){const i=s_(t,r),s=i>0?i:1-i;if(e==="YY"){const o=s%100;return ce(o,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):ce(s,e.length)},R:function(t,e){const n=hb(t);return ce(n,e.length)},u:function(t,e){const n=t.getFullYear();return ce(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return lr.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=pb(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):ce(i,e.length)},I:function(t,e,n){const r=i_(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ce(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):lr.d(t,e)},D:function(t,e,n){const r=uU(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ce(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return ce(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return ce(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return ce(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=$i.noon:r===0?i=$i.midnight:i=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=$i.evening:r>=12?i=$i.afternoon:r>=4?i=$i.morning:i=$i.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return lr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):lr.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ce(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):lr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):lr.s(t,e)},S:function(t,e){return lr.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return s0(r);case"XXXX":case"XX":return Gr(r);case"XXXXX":case"XXX":default:return Gr(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return s0(r);case"xxxx":case"xx":return Gr(r);case"xxxxx":case"xxx":default:return Gr(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+i0(r,":");case"OOOO":default:return"GMT"+Gr(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+i0(r,":");case"zzzz":default:return"GMT"+Gr(r,":")}},t:function(t,e,n){const r=Math.trunc(t.getTime()/1e3);return ce(r,e.length)},T:function(t,e,n){const r=t.getTime();return ce(r,e.length)}};function i0(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+e+ce(s,2)}function s0(t,e){return t%60===0?(t>0?"-":"+")+ce(Math.abs(t)/60,2):Gr(t,e)}function Gr(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=ce(Math.trunc(r/60),2),s=ce(r%60,2);return n+i+e+s}const o0=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},gb=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},hU=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return o0(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",o0(r,e)).replace("{{time}}",gb(i,e))},uu={p:gb,P:hU},pU=/^D+$/,gU=/^Y+$/,_U=["D","DD","YY","YYYY"];function _b(t){return pU.test(t)}function mb(t){return gU.test(t)}function Ip(t,e,n){const r=mU(t,e,n);if(console.warn(r),_U.includes(t))throw new RangeError(r)}function mU(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function Yn(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function du(t){if(!Yn(t)&&typeof t!="number")return!1;const e=K(t);return!isNaN(Number(e))}const yU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wU=/^'([^]*?)'?$/,TU=/''/g,EU=/[a-zA-Z]/;function a0(t,e,n){const r=Fi(),i=n?.locale??r.locale??fb,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=K(t);if(!du(a))throw new RangeError("Invalid time value");let l=e.match(vU).map(u=>{const d=u[0];if(d==="p"||d==="P"){const f=uu[d];return f(u,i.formatLong)}return u}).join("").match(yU).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:SU(u)};if(r0[d])return{isToken:!0,value:u};if(d.match(EU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});i.localize.preprocessor&&(l=i.localize.preprocessor(a,l));const c={firstWeekContainsDate:s,weekStartsOn:o,locale:i};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!n?.useAdditionalWeekYearTokens&&mb(d)||!n?.useAdditionalDayOfYearTokens&&_b(d))&&Ip(d,e,String(t));const f=r0[d[0]];return f(a,d,i.localize,c)}).join("")}function SU(t){const e=t.match(wU);return e?e[1].replace(TU,"'"):t}function l0(t){return K(t).getDate()}function bU(t){return K(t).getDay()}function Rn(t){return K(t).getHours()}function Cn(t){return K(t).getMinutes()}function dt(t){return K(t).getMonth()}function $n(t){return K(t).getSeconds()}function Op(t){return K(t).getTime()}function ne(t){return K(t).getFullYear()}function Br(t,e){const n=K(t),r=K(e);return n.getTime()>r.getTime()}function Ci(t,e){const n=K(t),r=K(e);return+n<+r}function AU(t,e){const n=K(t),r=K(e);return+n==+r}function RU(t,e){const n=Ri(t),r=Ri(e);return+n==+r}function CU(t,e){const n=K(t),r=K(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Np(t){const e=K(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function PU(t,e){const n=Np(t),r=Np(e);return+n==+r}function xU(t,e){const n=K(t),r=K(e);return n.getFullYear()===r.getFullYear()}function Ma(t,e){const n=+K(t),[r,i]=[+K(e.start),+K(e.end)].sort((s,o)=>s-o);return n>=r&&n<=i}function c0(t){let e;return t.forEach(function(n){const r=K(n);(e===void 0||e{const r=K(n);(!e||e>r||isNaN(+r))&&(e=r)}),e||new Date(NaN)}function MU(){return Object.assign({},Fi())}function kU(t,e){const n=e instanceof Date?ue(e,0):new e(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}const DU=10;class yb{constructor(){p(this,"subPriority",0)}validate(e,n){return!0}}class IU extends yb{constructor(e,n,r,i,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=i,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class OU extends yb{constructor(){super(...arguments);p(this,"priority",DU);p(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:ue(n,kU(n,Date))}}class le{run(e,n,r,i){const s=this.parse(e,n,r,i);return s?{setter:new IU(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class NU extends le{constructor(){super(...arguments);p(this,"priority",140);p(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const Ne={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},vn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Fe(t,e){return t&&{value:e(t.value),rest:t.rest}}function Ce(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function wn(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*pd+s*hd+o*R4),rest:e.slice(n[0].length)}}function vb(t){return Ce(Ne.anyDigitsSigned,t)}function De(t,e){switch(t){case 1:return Ce(Ne.singleDigit,e);case 2:return Ce(Ne.twoDigits,e);case 3:return Ce(Ne.threeDigits,e);case 4:return Ce(Ne.fourDigits,e);default:return Ce(new RegExp("^\\d{1,"+t+"}"),e)}}function fu(t,e){switch(t){case 1:return Ce(Ne.singleDigitSigned,e);case 2:return Ce(Ne.twoDigitsSigned,e);case 3:return Ce(Ne.threeDigitsSigned,e);case 4:return Ce(Ne.fourDigitsSigned,e);default:return Ce(new RegExp("^-?\\d{1,"+t+"}"),e)}}function o_(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function wb(t,e){const n=e>0,r=n?e:1-e;let i;if(r<=50)i=t||100;else{const s=r+50,o=Math.trunc(s/100)*100,a=t>=s%100;i=t+o-(a?100:0)}return n?i:1-i}function Tb(t){return t%400===0||t%4===0&&t%100!==0}class FU extends le{constructor(){super(...arguments);p(this,"priority",130);p(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,i){const s=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Fe(De(4,n),s);case"yo":return Fe(i.ordinalNumber(n,{unit:"year"}),s);default:return Fe(De(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const s=n.getFullYear();if(i.isTwoDigitYear){const a=wb(i.year,s);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class BU extends le{constructor(){super(...arguments);p(this,"priority",130);p(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,i){const s=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Fe(De(4,n),s);case"Yo":return Fe(i.ordinalNumber(n,{unit:"year"}),s);default:return Fe(De(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,s){const o=s_(n,s);if(i.isTwoDigitYear){const l=wb(i.year,o);return n.setFullYear(l,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),Jn(n,s)}const a=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(a,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),Jn(n,s)}}class UU extends le{constructor(){super(...arguments);p(this,"priority",130);p(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return fu(r==="R"?4:r.length,n)}set(n,r,i){const s=ue(n,0);return s.setFullYear(i,0,4),s.setHours(0,0,0,0),Ws(s)}}class LU extends le{constructor(){super(...arguments);p(this,"priority",130);p(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return fu(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class VU extends le{constructor(){super(...arguments);p(this,"priority",120);p(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"Q":case"QQ":return De(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class zU extends le{constructor(){super(...arguments);p(this,"priority",120);p(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"q":case"qq":return De(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class WU extends le{constructor(){super(...arguments);p(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);p(this,"priority",110)}parse(n,r,i){const s=o=>o-1;switch(r){case"M":return Fe(Ce(Ne.month,n),s);case"MM":return Fe(De(2,n),s);case"Mo":return Fe(i.ordinalNumber(n,{unit:"month"}),s);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class HU extends le{constructor(){super(...arguments);p(this,"priority",110);p(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,i){const s=o=>o-1;switch(r){case"L":return Fe(Ce(Ne.month,n),s);case"LL":return Fe(De(2,n),s);case"Lo":return Fe(i.ordinalNumber(n,{unit:"month"}),s);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function jU(t,e,n){const r=K(t),i=pb(r,n)-e;return r.setDate(r.getDate()-i*7),r}class YU extends le{constructor(){super(...arguments);p(this,"priority",100);p(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,i){switch(r){case"w":return Ce(Ne.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return De(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,s){return Jn(jU(n,i,s),s)}}function $U(t,e){const n=K(t),r=i_(n)-e;return n.setDate(n.getDate()-r*7),n}class XU extends le{constructor(){super(...arguments);p(this,"priority",100);p(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,i){switch(r){case"I":return Ce(Ne.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return De(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return Ws($U(n,i))}}const KU=[31,28,31,30,31,30,31,31,30,31,30,31],qU=[31,29,31,30,31,30,31,31,30,31,30,31];class QU extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"subPriority",1);p(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"d":return Ce(Ne.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return De(r.length,n)}}validate(n,r){const i=n.getFullYear(),s=Tb(i),o=n.getMonth();return s?r>=1&&r<=qU[o]:r>=1&&r<=KU[o]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class ZU extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"subpriority",1);p(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,i){switch(r){case"D":case"DD":return Ce(Ne.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return De(r.length,n)}}validate(n,r){const i=n.getFullYear();return Tb(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function a_(t,e,n){const r=Fi(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=K(t),o=s.getDay(),l=(e%7+7)%7,c=7-i,u=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return jr(s,u)}class JU extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,s){return n=a_(n,i,s),n.setHours(0,0,0,0),n}}class GU extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,i,s){const o=a=>{const l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return Fe(De(r.length,n),o);case"eo":return Fe(i.ordinalNumber(n,{unit:"day"}),o);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,s){return n=a_(n,i,s),n.setHours(0,0,0,0),n}}class e6 extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,i,s){const o=a=>{const l=Math.floor((a-1)/7)*7;return(a+s.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return Fe(De(r.length,n),o);case"co":return Fe(i.ordinalNumber(n,{unit:"day"}),o);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,s){return n=a_(n,i,s),n.setHours(0,0,0,0),n}}function t6(t){let n=K(t).getDay();return n===0&&(n=7),n}function n6(t,e){const n=K(t),r=t6(n),i=e-r;return jr(n,i)}class r6 extends le{constructor(){super(...arguments);p(this,"priority",90);p(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,i){const s=o=>o===0?7:o;switch(r){case"i":case"ii":return De(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return Fe(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return Fe(i.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Fe(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Fe(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),s)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=n6(n,i),n.setHours(0,0,0,0),n}}class i6 extends le{constructor(){super(...arguments);p(this,"priority",80);p(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(o_(i),0,0,0),n}}class s6 extends le{constructor(){super(...arguments);p(this,"priority",80);p(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(o_(i),0,0,0),n}}class o6 extends le{constructor(){super(...arguments);p(this,"priority",80);p(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(o_(i),0,0,0),n}}class a6 extends le{constructor(){super(...arguments);p(this,"priority",70);p(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,i){switch(r){case"h":return Ce(Ne.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return De(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const s=n.getHours()>=12;return s&&i<12?n.setHours(i+12,0,0,0):!s&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class l6 extends le{constructor(){super(...arguments);p(this,"priority",70);p(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,i){switch(r){case"H":return Ce(Ne.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return De(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}}class c6 extends le{constructor(){super(...arguments);p(this,"priority",70);p(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,i){switch(r){case"K":return Ce(Ne.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return De(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class u6 extends le{constructor(){super(...arguments);p(this,"priority",70);p(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,i){switch(r){case"k":return Ce(Ne.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return De(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const s=i<=24?i%24:i;return n.setHours(s,0,0,0),n}}class d6 extends le{constructor(){super(...arguments);p(this,"priority",60);p(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"m":return Ce(Ne.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return De(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}}class f6 extends le{constructor(){super(...arguments);p(this,"priority",50);p(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"s":return Ce(Ne.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return De(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}}class h6 extends le{constructor(){super(...arguments);p(this,"priority",30);p(this,"incompatibleTokens",["t","T"])}parse(n,r){const i=s=>Math.trunc(s*Math.pow(10,-r.length+3));return Fe(De(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}}class p6 extends le{constructor(){super(...arguments);p(this,"priority",10);p(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return wn(vn.basicOptionalMinutes,n);case"XX":return wn(vn.basic,n);case"XXXX":return wn(vn.basicOptionalSeconds,n);case"XXXXX":return wn(vn.extendedOptionalSeconds,n);case"XXX":default:return wn(vn.extended,n)}}set(n,r,i){return r.timestampIsSet?n:ue(n,n.getTime()-ou(n)-i)}}class g6 extends le{constructor(){super(...arguments);p(this,"priority",10);p(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return wn(vn.basicOptionalMinutes,n);case"xx":return wn(vn.basic,n);case"xxxx":return wn(vn.basicOptionalSeconds,n);case"xxxxx":return wn(vn.extendedOptionalSeconds,n);case"xxx":default:return wn(vn.extended,n)}}set(n,r,i){return r.timestampIsSet?n:ue(n,n.getTime()-ou(n)-i)}}class _6 extends le{constructor(){super(...arguments);p(this,"priority",40);p(this,"incompatibleTokens","*")}parse(n){return vb(n)}set(n,r,i){return[ue(n,i*1e3),{timestampIsSet:!0}]}}class m6 extends le{constructor(){super(...arguments);p(this,"priority",20);p(this,"incompatibleTokens","*")}parse(n){return vb(n)}set(n,r,i){return[ue(n,i),{timestampIsSet:!0}]}}const y6={G:new NU,y:new FU,Y:new BU,R:new UU,u:new LU,Q:new VU,q:new zU,M:new WU,L:new HU,w:new YU,I:new XU,d:new QU,D:new ZU,E:new JU,e:new GU,c:new e6,i:new r6,a:new i6,b:new s6,B:new o6,h:new a6,H:new l6,K:new c6,k:new u6,m:new d6,s:new f6,S:new h6,X:new p6,x:new g6,t:new _6,T:new m6},v6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,w6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T6=/^'([^]*?)'?$/,E6=/''/g,S6=/\S/,b6=/[a-zA-Z]/;function Bf(t,e,n,r){const i=MU(),s=r?.locale??i.locale??fb,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(e==="")return t===""?K(n):ue(n,NaN);const l={firstWeekContainsDate:o,weekStartsOn:a,locale:s},c=[new OU],u=e.match(w6).map(g=>{const E=g[0];if(E in uu){const _=uu[E];return _(g,s.formatLong)}return g}).join("").match(v6),d=[];for(let g of u){!r?.useAdditionalWeekYearTokens&&mb(g)&&Ip(g,e,t),!r?.useAdditionalDayOfYearTokens&&_b(g)&&Ip(g,e,t);const E=g[0],_=y6[E];if(_){const{incompatibleTokens:m}=_;if(Array.isArray(m)){const b=d.find(R=>m.includes(R.token)||R.token===E);if(b)throw new RangeError(`The format string mustn't contain \`${b.fullToken}\` and \`${g}\` at the same time`)}else if(_.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${g}\` and any other token at the same time`);d.push({token:E,fullToken:g});const w=_.run(t,g,s.match,l);if(!w)return ue(n,NaN);c.push(w.setter),t=w.rest}else{if(E.match(b6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(g==="''"?g="'":E==="'"&&(g=A6(g)),t.indexOf(g)===0)t=t.slice(g.length);else return ue(n,NaN)}}if(t.length>0&&S6.test(t))return ue(n,NaN);const f=c.map(g=>g.priority).sort((g,E)=>E-g).filter((g,E,_)=>_.indexOf(g)===E).map(g=>c.filter(E=>E.priority===g).sort((E,_)=>_.subPriority-E.subPriority)).map(g=>g[0]);let h=K(n);if(isNaN(h.getTime()))return ue(n,NaN);const y={};for(const g of f){if(!g.validate(h,l))return ue(n,NaN);const E=g.set(h,y,l);Array.isArray(E)?(h=E[0],Object.assign(y,E[1])):h=E}return ue(n,h)}function A6(t){return t.match(T6)[1].replace(E6,"'")}function R6(t,e){const r=M6(t);let i;if(r.date){const l=k6(r.date,2);i=D6(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const s=i.getTime();let o=0,a;if(r.time&&(o=I6(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(a=O6(r.timezone),isNaN(a))return new Date(NaN)}else{const l=new Date(s+o),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(s+o+a)}const Ll={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},C6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,P6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,x6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function M6(t){const e={},n=t.split(Ll.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],Ll.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Ll.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const i=Ll.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function k6(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((r[1]||r[2]).length)}}function D6(t,e){if(e===null)return new Date(NaN);const n=t.match(C6);if(!n)return new Date(NaN);const r=!!n[4],i=Po(n[1]),s=Po(n[2])-1,o=Po(n[3]),a=Po(n[4]),l=Po(n[5])-1;if(r)return L6(e,a,l)?N6(e,a,l):new Date(NaN);{const c=new Date(0);return!B6(e,s,o)||!U6(e,i)?new Date(NaN):(c.setUTCFullYear(e,s,Math.max(i,o)),c)}}function Po(t){return t?parseInt(t):1}function I6(t){const e=t.match(P6);if(!e)return NaN;const n=Uf(e[1]),r=Uf(e[2]),i=Uf(e[3]);return V6(n,r,i)?n*pd+r*hd+i*1e3:NaN}function Uf(t){return t&&parseFloat(t.replace(",","."))||0}function O6(t){if(t==="Z")return 0;const e=t.match(x6);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return z6(r,i)?n*(r*pd+i*hd):NaN}function N6(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,s=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const F6=[31,null,31,30,31,30,31,31,30,31,30,31];function Eb(t){return t%400===0||t%4===0&&t%100!==0}function B6(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(F6[e]||(Eb(t)?29:28))}function U6(t,e){return e>=1&&e<=(Eb(t)?366:365)}function L6(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function V6(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function z6(t,e){return e>=0&&e<=59}function W6(t){const e=K(t),n=e.getFullYear(),r=e.getMonth(),i=ue(t,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Rt(t,e){const n=K(t),r=n.getFullYear(),i=n.getDate(),s=ue(t,0);s.setFullYear(r,e,15),s.setHours(0,0,0,0);const o=W6(s);return n.setMonth(e,Math.min(i,o)),n}function H6(t,e){let n=K(t);return isNaN(+n)?ue(t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Rt(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}function ac(t,e){const n=K(t);return n.setHours(e),n}function lc(t,e){const n=K(t);return n.setMinutes(e),n}function Ki(t,e){const n=K(t),r=Math.trunc(n.getMonth()/3)+1,i=e-r;return Rt(n,n.getMonth()+i*3)}function cc(t,e){const n=K(t);return n.setSeconds(e),n}function gn(t,e){const n=K(t);return isNaN(+n)?ue(t,NaN):(n.setFullYear(e),n)}function Sb(t){const e=K(t);return e.setDate(1),e.setHours(0,0,0,0),e}function j6(t,e){return jr(t,-e)}function Hs(t,e){return rn(t,-e)}function bb(t,e){return r_(t,-e)}function d0(t,e){return su(t,-e)}function js(t,e){return jn(t,-e)}function Gs(t){return Ab(t)?(t.nodeName||"").toLowerCase():"#document"}function xt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function er(t){var e;return(e=(Ab(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ab(t){return t instanceof Node||t instanceof xt(t).Node}function vt(t){return t instanceof Element||t instanceof xt(t).Element}function xn(t){return t instanceof HTMLElement||t instanceof xt(t).HTMLElement}function f0(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xt(t).ShadowRoot}function $a(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=jt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function Y6(t){return["table","td","th"].includes(Gs(t))}function $6(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function l_(t){const e=c_(),n=jt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function X6(t){let e=Ur(t);for(;xn(e)&&!Ys(e);){if($6(e))return null;if(l_(e))return e;e=Ur(e)}return null}function c_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ys(t){return["html","body","#document"].includes(Gs(t))}function jt(t){return xt(t).getComputedStyle(t)}function _d(t){return vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(Gs(t)==="html")return t;const e=t.assignedSlot||t.parentNode||f0(t)&&t.host||er(t);return f0(e)?e.host:e}function Rb(t){const e=Ur(t);return Ys(e)?t.ownerDocument?t.ownerDocument.body:t.body:xn(e)&&$a(e)?e:Rb(e)}function ka(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Rb(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),o=xt(i);return s?e.concat(o,o.visualViewport||[],$a(i)?i:[],o.frameElement&&n?ka(o.frameElement):[]):e.concat(i,ka(i,[],n))}const $s=Math.min,_i=Math.max,hu=Math.round,Vl=Math.floor,Lr=t=>({x:t,y:t}),K6={left:"right",right:"left",bottom:"top",top:"bottom"},q6={start:"end",end:"start"};function Q6(t,e,n){return _i(t,$s(e,n))}function md(t,e){return typeof t=="function"?t(e):t}function Xs(t){return t.split("-")[0]}function Xa(t){return t.split("-")[1]}function Z6(t){return t==="x"?"y":"x"}function u_(t){return t==="y"?"height":"width"}function Da(t){return["top","bottom"].includes(Xs(t))?"y":"x"}function d_(t){return Z6(Da(t))}function J6(t,e,n){n===void 0&&(n=!1);const r=Xa(t),i=d_(t),s=u_(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=pu(o)),[o,pu(o)]}function G6(t){const e=pu(t);return[Fp(t),e,Fp(e)]}function Fp(t){return t.replace(/start|end/g,e=>q6[e])}function eL(t,e,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?s:o;default:return[]}}function tL(t,e,n,r){const i=Xa(t);let s=eL(Xs(t),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(Fp)))),s}function pu(t){return t.replace(/left|right|bottom|top/g,e=>K6[e])}function nL(t){return{top:0,right:0,bottom:0,left:0,...t}}function Cb(t){return typeof t!="number"?nL(t):{top:t,right:t,bottom:t,left:t}}function gu(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function h0(t,e,n){let{reference:r,floating:i}=t;const s=Da(e),o=d_(e),a=u_(o),l=Xs(e),c=s==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Xa(e)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const rL=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=h0(c,r,l),f=r,h={},y=0;for(let g=0;g({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=md(t,e)||{};if(c==null)return{};const d=Cb(u),f={x:n,y:r},h=d_(i),y=u_(h),g=await o.getDimensions(c),E=h==="y",_=E?"top":"left",m=E?"bottom":"right",w=E?"clientHeight":"clientWidth",b=s.reference[y]+s.reference[h]-f[h]-s.floating[y],R=f[h]-s.reference[h],M=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let k=M?M[w]:0;(!k||!await(o.isElement==null?void 0:o.isElement(M)))&&(k=a.floating[w]||s.floating[y]);const I=b/2-R/2,N=k/2-g[y]/2-1,B=$s(d[_],N),j=$s(d[m],N),Q=B,Z=k-g[y]-j,H=k/2-g[y]/2+I,J=Q6(Q,H,Z),te=!l.arrow&&Xa(i)!=null&&H!==J&&s.reference[y]/2-(HH<=0)){var j,Q;const H=(((j=s.flip)==null?void 0:j.index)||0)+1,J=k[H];if(J)return{data:{index:H,overflows:B},reset:{placement:J}};let te=(Q=B.filter(G=>G.overflows[0]<=0).sort((G,W)=>G.overflows[1]-W.overflows[1])[0])==null?void 0:Q.placement;if(!te)switch(h){case"bestFit":{var Z;const G=(Z=B.filter(W=>{if(M){const $=Da(W.placement);return $===m||$==="y"}return!0}).map(W=>[W.placement,W.overflows.filter($=>$>0).reduce(($,ee)=>$+ee,0)]).sort((W,$)=>W[1]-$[1])[0])==null?void 0:Z[0];G&&(te=G);break}case"initialPlacement":te=a;break}if(i!==te)return{reset:{placement:te}}}return{}}}};async function aL(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xs(n),a=Xa(n),l=Da(n)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,d=md(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const lL=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=e,l=await aL(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}};function Pb(t){const e=jt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=xn(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,a=hu(n)!==s||hu(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function f_(t){return vt(t)?t:t.contextElement}function As(t){const e=f_(t);if(!xn(e))return Lr(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Pb(e);let o=(s?hu(n.width):n.width)/r,a=(s?hu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const cL=Lr(0);function xb(t){const e=xt(t);return!c_()||!e.visualViewport?cL:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uL(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==xt(t)?!1:e}function Pi(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=f_(t);let o=Lr(1);e&&(r?vt(r)&&(o=As(r)):o=As(t));const a=uL(s,n,r)?xb(s):Lr(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){const f=xt(s),h=r&&vt(r)?xt(r):r;let y=f,g=y.frameElement;for(;g&&r&&h!==y;){const E=As(g),_=g.getBoundingClientRect(),m=jt(g),w=_.left+(g.clientLeft+parseFloat(m.paddingLeft))*E.x,b=_.top+(g.clientTop+parseFloat(m.paddingTop))*E.y;l*=E.x,c*=E.y,u*=E.x,d*=E.y,l+=w,c+=b,y=xt(g),g=y.frameElement}}return gu({width:u,height:d,x:l,y:c})}const dL=[":popover-open",":modal"];function h_(t){return dL.some(e=>{try{return t.matches(e)}catch{return!1}})}function fL(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",o=er(r),a=e?h_(e.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Lr(1);const u=Lr(0),d=xn(r);if((d||!d&&!s)&&((Gs(r)!=="body"||$a(o))&&(l=_d(r)),xn(r))){const f=Pi(r);c=As(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function hL(t){return Array.from(t.getClientRects())}function Mb(t){return Pi(er(t)).left+_d(t).scrollLeft}function pL(t){const e=er(t),n=_d(t),r=t.ownerDocument.body,i=_i(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=_i(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Mb(t);const a=-n.scrollTop;return jt(r).direction==="rtl"&&(o+=_i(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}function gL(t,e){const n=xt(t),r=er(t),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=c_();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function _L(t,e){const n=Pi(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=xn(t)?As(t):Lr(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function p0(t,e,n){let r;if(e==="viewport")r=gL(t,n);else if(e==="document")r=pL(er(t));else if(vt(e))r=_L(e,n);else{const i=xb(t);r={...e,x:e.x-i.x,y:e.y-i.y}}return gu(r)}function kb(t,e){const n=Ur(t);return n===e||!vt(n)||Ys(n)?!1:jt(n).position==="fixed"||kb(n,e)}function mL(t,e){const n=e.get(t);if(n)return n;let r=ka(t,[],!1).filter(a=>vt(a)&&Gs(a)!=="body"),i=null;const s=jt(t).position==="fixed";let o=s?Ur(t):t;for(;vt(o)&&!Ys(o);){const a=jt(o),l=l_(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||$a(o)&&!l&&kb(t,o))?r=r.filter(u=>u!==o):i=a,o=Ur(o)}return e.set(t,r),r}function yL(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?h_(e)?[]:mL(e,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=p0(e,u,i);return c.top=_i(d.top,c.top),c.right=$s(d.right,c.right),c.bottom=$s(d.bottom,c.bottom),c.left=_i(d.left,c.left),c},p0(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vL(t){const{width:e,height:n}=Pb(t);return{width:e,height:n}}function wL(t,e,n){const r=xn(e),i=er(e),s=n==="fixed",o=Pi(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=Lr(0);if(r||!r&&!s)if((Gs(e)!=="body"||$a(i))&&(a=_d(e)),r){const d=Pi(e,!0,s,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&(l.x=Mb(i));const c=o.left+a.scrollLeft-l.x,u=o.top+a.scrollTop-l.y;return{x:c,y:u,width:o.width,height:o.height}}function Lf(t){return jt(t).position==="static"}function g0(t,e){return!xn(t)||jt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Db(t,e){const n=xt(t);if(h_(t))return n;if(!xn(t)){let i=Ur(t);for(;i&&!Ys(i);){if(vt(i)&&!Lf(i))return i;i=Ur(i)}return n}let r=g0(t,e);for(;r&&Y6(r)&&Lf(r);)r=g0(r,e);return r&&Ys(r)&&Lf(r)&&!l_(r)?n:r||X6(t)||n}const TL=async function(t){const e=this.getOffsetParent||Db,n=this.getDimensions,r=await n(t.floating);return{reference:wL(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function EL(t){return jt(t).direction==="rtl"}const SL={convertOffsetParentRelativeRectToViewportRelativeRect:fL,getDocumentElement:er,getClippingRect:yL,getOffsetParent:Db,getElementRects:TL,getClientRects:hL,getDimensions:vL,getScale:As,isElement:vt,isRTL:EL};function bL(t,e){let n=null,r;const i=er(t);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:d,height:f}=t.getBoundingClientRect();if(a||e(),!d||!f)return;const h=Vl(u),y=Vl(i.clientWidth-(c+d)),g=Vl(i.clientHeight-(u+f)),E=Vl(c),m={rootMargin:-h+"px "+-y+"px "+-g+"px "+-E+"px",threshold:_i(0,$s(1,l))||1};let w=!0;function b(R){const M=R[0].intersectionRatio;if(M!==l){if(!w)return o();M?o(!1,M):r=setTimeout(()=>{o(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,m)}n.observe(t)}return o(!0),s}function AL(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=f_(t),u=i||s?[...c?ka(c):[],...ka(e)]:[];u.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const d=c&&a?bL(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(_=>{let[m]=_;m&&m.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let y,g=l?Pi(t):null;l&&E();function E(){const _=Pi(t);g&&(_.x!==g.x||_.y!==g.y||_.width!==g.width||_.height!==g.height)&&n(),g=_,y=requestAnimationFrame(E)}return n(),()=>{var _;u.forEach(m=>{i&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),d?.(),(_=h)==null||_.disconnect(),h=null,l&&cancelAnimationFrame(y)}}const RL=lL,CL=oL,_0=sL,PL=(t,e,n)=>{const r=new Map,i={platform:SL,...n},s={...i.platform,_c:r};return rL(t,e,{...i,platform:s})};var uc=typeof document<"u"?x.useLayoutEffect:x.useEffect;function _u(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!_u(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&t.$$typeof)&&!_u(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Ib(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function m0(t,e){const n=Ib(t);return Math.round(e*n)/n}function y0(t){const e=x.useRef(t);return uc(()=>{e.current=t}),e}function xL(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[u,d]=x.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=x.useState(r);_u(f,r)||h(r);const[y,g]=x.useState(null),[E,_]=x.useState(null),m=x.useCallback(G=>{G!==M.current&&(M.current=G,g(G))},[]),w=x.useCallback(G=>{G!==k.current&&(k.current=G,_(G))},[]),b=s||y,R=o||E,M=x.useRef(null),k=x.useRef(null),I=x.useRef(u),N=l!=null,B=y0(l),j=y0(i),Q=x.useCallback(()=>{if(!M.current||!k.current)return;const G={placement:e,strategy:n,middleware:f};j.current&&(G.platform=j.current),PL(M.current,k.current,G).then(W=>{const $={...W,isPositioned:!0};Z.current&&!_u(I.current,$)&&(I.current=$,Ua.flushSync(()=>{d($)}))})},[f,e,n,j]);uc(()=>{c===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,d(G=>({...G,isPositioned:!1})))},[c]);const Z=x.useRef(!1);uc(()=>(Z.current=!0,()=>{Z.current=!1}),[]),uc(()=>{if(b&&(M.current=b),R&&(k.current=R),b&&R){if(B.current)return B.current(b,R,Q);Q()}},[b,R,Q,B,N]);const H=x.useMemo(()=>({reference:M,floating:k,setReference:m,setFloating:w}),[m,w]),J=x.useMemo(()=>({reference:b,floating:R}),[b,R]),te=x.useMemo(()=>{const G={position:n,left:0,top:0};if(!J.floating)return G;const W=m0(J.floating,u.x),$=m0(J.floating,u.y);return a?{...G,transform:"translate("+W+"px, "+$+"px)",...Ib(J.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:$}},[n,a,J.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:Q,refs:H,elements:J,floatingStyles:te}),[u,Q,H,J,te])}const ML=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?_0({element:r.current,padding:i}).fn(n):{}:r?_0({element:r,padding:i}).fn(n):{}}}},kL=(t,e)=>({...RL(t),options:[t,e]}),DL=(t,e)=>({...CL(t),options:[t,e]}),IL=(t,e)=>({...ML(t),options:[t,e]}),Ob={...N1},OL=Ob.useInsertionEffect,NL=OL||(t=>t());function FL(t){const e=x.useRef(()=>{});return NL(()=>{e.current=t}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i"floating-ui-"+Math.random().toString(36).slice(2,6)+BL++;function UL(){const[t,e]=x.useState(()=>v0?w0():void 0);return mu(()=>{t==null&&e(w0())},[]),x.useEffect(()=>{v0=!0},[]),t}const LL=Ob.useId,Nb=LL||UL,VL=x.forwardRef(function(e,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:s}},width:o=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:f,style:{transform:h,...y}={},...g}=e,E=Nb(),[_,m]=x.useState(!1);if(mu(()=>{if(!i)return;jt(i).direction==="rtl"&&m(!0)},[i]),!i)return null;const w=c*2,b=w/2,R=o/2*(l/-8+1),M=a/2*l/4,[k,I]=r.split("-"),N=!!f,B=k==="top"||k==="bottom",j=u&&I==="end"?"bottom":"top";let Q=u&&I==="end"?"right":"left";u&&_&&(Q=I==="end"?"left":"right");const Z=s?.x!=null?u||s.x:"",H=s?.y!=null?u||s.y:"",J=f||"M0,0"+(" H"+o)+(" L"+(o-R)+","+(a-M))+(" Q"+o/2+","+a+" "+R+","+(a-M))+" Z",te={top:N?"rotate(180deg)":"",left:N?"rotate(90deg)":"rotate(-90deg)",bottom:N?"":"rotate(180deg)",right:N?"rotate(-90deg)":"rotate(90deg)"}[k];return x.createElement("svg",Bp({},g,{"aria-hidden":!0,ref:n,width:N?o:o+w,height:o,viewBox:"0 0 "+o+" "+(a>o?a:o),style:{position:"absolute",pointerEvents:"none",[Q]:Z,[j]:H,[k]:B||N?"100%":"calc(100% - "+w/2+"px)",transform:""+te+(h??""),...y}}),w>0&&x.createElement("path",{clipPath:"url(#"+E+")",fill:"none",stroke:d,strokeWidth:w+(f?0:1),d:J}),x.createElement("path",{stroke:w&&!f?g.fill:"none",d:J}),x.createElement("clipPath",{id:E},x.createElement("rect",{x:-b,y:b*(N?-1:1),width:o+w,height:o})))});function zL(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(i=>i(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(i=>i!==n))||[])}}}const WL=x.createContext(null),HL=x.createContext(null),jL=()=>{var t;return((t=x.useContext(WL))==null?void 0:t.id)||null},YL=()=>x.useContext(HL);function $L(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=Nb(),s=x.useRef({}),[o]=x.useState(()=>zL()),a=jL()!=null,[l,c]=x.useState(r.reference),u=FL((h,y,g)=>{s.current.openEvent=h?y:void 0,o.emit("openchange",{open:h,event:y,reason:g,nested:a}),n?.(h,y,g)}),d=x.useMemo(()=>({setPositionReference:c}),[]),f=x.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return x.useMemo(()=>({dataRef:s,open:e,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[e,u,f,o,i,d])}function XL(t){t===void 0&&(t={});const{nodeId:e}=t,n=$L({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,i=r.elements,[s,o]=x.useState(null),[a,l]=x.useState(null),u=i?.reference||s,d=x.useRef(null),f=YL();mu(()=>{u&&(d.current=u)},[u]);const h=xL({...t,elements:{...i,...a&&{reference:a}}}),y=x.useCallback(w=>{const b=vt(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(b),h.refs.setReference(b)},[h.refs]),g=x.useCallback(w=>{(vt(w)||w===null)&&(d.current=w,o(w)),(vt(h.refs.reference.current)||h.refs.reference.current===null||w!==null&&!vt(w))&&h.refs.setReference(w)},[h.refs]),E=x.useMemo(()=>({...h.refs,setReference:g,setPositionReference:y,domReference:d}),[h.refs,g,y]),_=x.useMemo(()=>({...h.elements,domReference:u}),[h.elements,u]),m=x.useMemo(()=>({...h,...r,refs:E,elements:_,nodeId:e}),[h,E,_,e,r]);return mu(()=>{r.dataRef.current.floatingContext=m;const w=f?.nodesRef.current.find(b=>b.id===e);w&&(w.context=m)}),x.useMemo(()=>({...h,context:m,refs:E,elements:_}),[h,E,_,m])}/*! react-datepicker v7.2.0 https://github.com/Hacker0x01/react-datepicker Released under the MIT License. -*/var Up=function(e,n){return Up=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},Up(e,n)};function Ke(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Up(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var oe=function(){return oe=Object.assign||function(n){for(var r,i=1,s=arguments.length;i0&&(o=Bf(t,c.slice(0,t.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),Bn(o)||(o=new Date(t))}return Bn(o)&&l?o:null}function Bn(t,e){return du(t)&&!Ci(t,e??new Date("1/1/1800"))}function Te(t,e,n){if(n==="en")return a0(t,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?mi(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&ta()&&mi(ta())&&(r=mi(ta())),a0(t,e,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Nt(t,e){var n=e.dateFormat,r=e.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return t&&Te(t,i,r)||""}function ZL(t,e,n){if(!t)return"";var r=Nt(t,n),i=e?Nt(e,n):"";return"".concat(r," - ").concat(i)}function JL(t,e){if(!t?.length)return"";var n=t[0]?Nt(t[0],e):"";if(t.length===1)return n;if(t.length===2&&t[1]){var r=Nt(t[1],e);return"".concat(n,", ").concat(r)}var i=t.length-1;return"".concat(n," (+").concat(i,")")}function Vf(t,e){var n=e.hour,r=n===void 0?0:n,i=e.minute,s=i===void 0?0:i,o=e.second,a=o===void 0?0:o;return ac(lc(cc(t,a),s),r)}function GL(t){return i_(t)}function e8(t,e){return Te(t,"ddd",e)}function dc(t){return Ri(t)}function kr(t,e,n){var r=mi(e||ta());return Jn(t,{locale:r,weekStartsOn:n})}function Dr(t){return Sb(t)}function Lo(t){return gd(t)}function T0(t){return Np(t)}function E0(){return Ri(fe())}function S0(t){return ub(t)}function t8(t){return k4(t)}function _n(t,e){return t&&e?xU(t,e):!t&&!e}function ct(t,e){return t&&e?CU(t,e):!t&&!e}function yu(t,e){return t&&e?PU(t,e):!t&&!e}function se(t,e){return t&&e?RU(t,e):!t&&!e}function li(t,e){return t&&e?AU(t,e):!t&&!e}function Vo(t,e,n){var r,i=Ri(e),s=ub(n);try{r=Ma(t,{start:i,end:s})}catch{r=!1}return r}function ta(){var t=Fb();return t.__localeId__}function mi(t){if(typeof t=="string"){var e=Fb();return e.__localeData__?e.__localeData__[t]:void 0}else return t}function n8(t,e,n){return e(Te(t,"EEEE",n))}function r8(t,e){return Te(t,"EEEEEE",e)}function i8(t,e){return Te(t,"EEE",e)}function p_(t,e){return Te(Rt(fe(),t),"LLLL",e)}function Bb(t,e){return Te(Rt(fe(),t),"LLL",e)}function s8(t,e){return Te(Ki(fe(),t),"QQQ",e)}function wr(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.excludeDateIntervals,a=n.includeDates,l=n.includeDateIntervals,c=n.filterDate;return qa(t,{minDate:r,maxDate:i})||s&&s.some(function(u){var d;return u instanceof Date?se(t,u):se(t,(d=u.date)!==null&&d!==void 0?d:new Date)})||o&&o.some(function(u){var d=u.start,f=u.end;return Ma(t,{start:d,end:f})})||a&&!a.some(function(u){return se(t,u)})||l&&!l.some(function(u){var d=u.start,f=u.end;return Ma(t,{start:d,end:f})})||c&&!c(fe(t))||!1}function g_(t,e){var n=e===void 0?{}:e,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(s){var o=s.start,a=s.end;return Ma(t,{start:o,end:a})}):r&&r.some(function(s){var o;return s instanceof Date?se(t,s):se(t,(o=s.date)!==null&&o!==void 0?o:new Date)})||!1}function Ub(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates,a=n.filterDate;return qa(t,{minDate:r?Sb(r):void 0,maxDate:i?x4(i):void 0})||s?.some(function(l){return ct(t,l instanceof Date?l:l.date)})||o&&!o.some(function(l){return ct(t,l)})||a&&!a(fe(t))||!1}function zl(t,e,n,r){var i=ne(t),s=dt(t),o=ne(e),a=dt(e),l=ne(r);return i===o&&i===l?s<=n&&n<=a:i=n||li:!1}function o8(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates;return qa(t,{minDate:r,maxDate:i})||s&&s.some(function(a){return ct(a instanceof Date?a:a.date,t)})||o&&!o.some(function(a){return ct(a,t)})||!1}function zf(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates,a=n.filterDate;return qa(t,{minDate:r,maxDate:i})||s?.some(function(l){return yu(t,l instanceof Date?l:l.date)})||o&&!o.some(function(l){return yu(t,l)})||a&&!a(fe(t))||!1}function Wl(t,e,n){if(!e||!n||!du(e)||!du(n))return!1;var r=ne(e),i=ne(n);return r<=t&&i>=t}function Lb(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates,a=n.filterDate,l=new Date(t,0,1);return qa(l,{minDate:r?gd(r):void 0,maxDate:i?db(i):void 0})||s?.some(function(c){return _n(l,c instanceof Date?c:c.date)})||o&&!o.some(function(c){return _n(l,c)})||a&&!a(fe(l))||!1}function Hl(t,e,n,r){var i=ne(t),s=gi(t),o=ne(e),a=gi(e),l=ne(r);return i===o&&i===l?s<=n&&n<=a:i=n||li:!1}function qa(t,e){var n,r=e===void 0?{}:e,i=r.minDate,s=r.maxDate;return(n=i&&xa(t,i)<0||s&&xa(t,s)>0)!==null&&n!==void 0?n:!1}function b0(t,e){return e.some(function(n){return Rn(n)===Rn(t)&&Cn(n)===Cn(t)&&$n(n)===$n(t)})}function A0(t,e){var n=e===void 0?{}:e,r=n.excludeTimes,i=n.includeTimes,s=n.filterTime;return r&&b0(t,r)||i&&!b0(t,i)||s&&!s(t)||!1}function R0(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=fe();i=ac(i,Rn(t)),i=lc(i,Cn(t)),i=cc(i,$n(t));var s=fe();s=ac(s,Rn(n)),s=lc(s,Cn(n)),s=cc(s,$n(n));var o=fe();o=ac(o,Rn(r)),o=lc(o,Cn(r)),o=cc(o,$n(r));var a;try{a=!Ma(i,{start:s,end:o})}catch{a=!1}return a}function C0(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=Hs(t,1);return r&&au(r,s)>0||i&&i.every(function(o){return au(o,s)>0})||!1}function P0(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=rn(t,1);return r&&au(s,r)>0||i&&i.every(function(o){return au(s,o)>0})||!1}function a8(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=gd(t),o=bb(s,1);return r&&lu(r,o)>0||i&&i.every(function(a){return lu(a,o)>0})||!1}function l8(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=db(t),o=r_(s,1);return r&&lu(o,r)>0||i&&i.every(function(a){return lu(o,a)>0})||!1}function x0(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=js(t,1);return r&&cu(r,s)>0||i&&i.every(function(o){return cu(o,s)>0})||!1}function c8(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.yearItemNumber,s=i===void 0?Ka:i,o=Lo(js(t,s)),a=Tr(o,s).endPeriod,l=r&&ne(r);return l&&l>a||!1}function M0(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=jn(t,1);return r&&cu(s,r)>0||i&&i.every(function(o){return cu(s,o)>0})||!1}function u8(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.yearItemNumber,s=i===void 0?Ka:i,o=jn(t,s),a=Tr(o,s).startPeriod,l=r&&ne(r);return l&&l=0});return u0(r)}else return n?u0(n):e}function zb(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return xa(i,e)<=0});return c0(r)}else return n?c0(n):e}function k0(t,e){var n;t===void 0&&(t=[]),e===void 0&&(e="react-datepicker__day--highlighted");for(var r=new Map,i=0,s=t.length;i=w8,h=!i&&!n.isWeekInMonth(a);if(f||h)if(n.props.peekNextMonth)o=!0;else break}return r},n.onMonthClick=function(r,i){var s=n.isMonthDisabledForLabelDate(i),o=s.isDisabled,a=s.labelDate;o||n.handleDayClick(Dr(a),r)},n.onMonthMouseEnter=function(r){var i=n.isMonthDisabledForLabelDate(r),s=i.isDisabled,o=i.labelDate;s||n.handleDayMouseEnter(Dr(o))},n.handleMonthNavigation=function(r,i){var s,o,a,l;(o=(s=n.props).setPreSelection)===null||o===void 0||o.call(s,i),(l=(a=n.MONTH_REFS[r])===null||a===void 0?void 0:a.current)===null||l===void 0||l.focus()},n.handleKeyboardNavigation=function(r,i,s){var o,a=n.props,l=a.selected,c=a.preSelection,u=a.setPreSelection,d=a.minDate,f=a.maxDate,h=a.showFourColumnMonthYearPicker,y=a.showTwoColumnMonthYearPicker;if(c){var g=F0(h,y),E=n.getVerticalOffset(g),_=(o=Wf[g])===null||o===void 0?void 0:o.grid,m=function(k,I,N){var B,j,Q=I,Z=N;switch(k){case Y.ArrowRight:Q=rn(I,jl),Z=N===11?0:N+jl;break;case Y.ArrowLeft:Q=Hs(I,jl),Z=N===0?11:N-jl;break;case Y.ArrowUp:Q=Hs(I,E),Z=!((B=_?.[0])===null||B===void 0)&&B.includes(N)?N+12-E:N-E;break;case Y.ArrowDown:Q=rn(I,E),Z=!((j=_?.[_.length-1])===null||j===void 0)&&j.includes(N)?N-12+E:N+E;break}return{newCalculatedDate:Q,newCalculatedMonth:Z}},w=function(k,I,N){for(var B=40,j=k,Q=!1,Z=0,H=m(j,I,N),J=H.newCalculatedDate,te=H.newCalculatedMonth;!Q;){if(Z>=B){J=I,te=N;break}if(d&&Jf){j=Y.ArrowLeft;var G=m(j,J,te);J=G.newCalculatedDate,te=G.newCalculatedMonth}if(o8(J,n.props)){var G=m(j,J,te);J=G.newCalculatedDate,te=G.newCalculatedMonth}else Q=!0;Z++}return{newCalculatedDate:J,newCalculatedMonth:te}};if(i===Y.Enter){n.isMonthDisabled(s)||(n.onMonthClick(r,s),u?.(l));return}var b=w(i,c,s),R=b.newCalculatedDate,M=b.newCalculatedMonth;switch(i){case Y.ArrowRight:case Y.ArrowLeft:case Y.ArrowUp:case Y.ArrowDown:n.handleMonthNavigation(M,R);break}}},n.getVerticalOffset=function(r){var i,s;return(s=(i=Wf[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&s!==void 0?s:0},n.onMonthKeyDown=function(r,i){var s=n.props,o=s.disabledKeyboardNavigation,a=s.handleOnMonthKeyDown,l=r.key;l!==Y.Tab&&r.preventDefault(),o||n.handleKeyboardNavigation(r,l,i),a&&a(r)},n.onQuarterClick=function(r,i){var s=Ki(n.props.day,i);zf(s,n.props)||n.handleDayClick(T0(s),r)},n.onQuarterMouseEnter=function(r){var i=Ki(n.props.day,r);zf(i,n.props)||n.handleDayMouseEnter(T0(i))},n.handleQuarterNavigation=function(r,i){var s,o,a,l;n.isDisabled(i)||n.isExcluded(i)||((o=(s=n.props).setPreSelection)===null||o===void 0||o.call(s,i),(l=(a=n.QUARTER_REFS[r-1])===null||a===void 0?void 0:a.current)===null||l===void 0||l.focus())},n.onQuarterKeyDown=function(r,i){var s,o,a=r.key;if(!n.props.disabledKeyboardNavigation)switch(a){case Y.Enter:n.onQuarterClick(r,i),(o=(s=n.props).setPreSelection)===null||o===void 0||o.call(s,n.props.selected);break;case Y.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===4?1:i+1,r_(n.props.preSelection,1));break;case Y.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===1?4:i-1,bb(n.props.preSelection,1));break}},n.isMonthDisabledForLabelDate=function(r){var i,s=n.props,o=s.day,a=s.minDate,l=s.maxDate,c=s.excludeDates,u=s.includeDates,d=Rt(o,r);return{isDisabled:(i=(a||l||c||u)&&Ub(d,n.props))!==null&&i!==void 0?i:!1,labelDate:d}},n.isMonthDisabled=function(r){var i=n.isMonthDisabledForLabelDate(r).isDisabled;return i},n.getMonthClassNames=function(r){var i=n.props,s=i.day,o=i.startDate,a=i.endDate,l=i.selected,c=i.preSelection,u=i.monthClassName,d=u?u(Rt(s,r)):void 0;return $e("react-datepicker__month-text","react-datepicker__month-".concat(r),d,{"react-datepicker__month-text--disabled":n.isMonthDisabled(r),"react-datepicker__month-text--selected":l?n.isSelectedMonth(s,r,l):void 0,"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&c&&n.isSelectedMonth(s,r,c),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":o&&a?zl(o,a,r,s):void 0,"react-datepicker__month-text--range-start":n.isRangeStartMonth(r),"react-datepicker__month-text--range-end":n.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":n.isCurrentMonth(s,r)})},n.getTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=dt(n.props.preSelection),s=!n.props.disabledKeyboardNavigation&&r===i?"0":"-1";return s},n.getQuarterTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=gi(n.props.preSelection),s=!n.props.disabledKeyboardNavigation&&r===i?"0":"-1";return s},n.getAriaLabel=function(r){var i=n.props,s=i.chooseDayAriaLabelPrefix,o=s===void 0?"Choose":s,a=i.disabledDayAriaLabelPrefix,l=a===void 0?"Not available":a,c=i.day,u=i.locale,d=Rt(c,r),f=n.isDisabled(d)||n.isExcluded(d)?l:o;return"".concat(f," ").concat(Te(d,"MMMM yyyy",u))},n.getQuarterClassNames=function(r){var i=n.props,s=i.day,o=i.startDate,a=i.endDate,l=i.selected,c=i.minDate,u=i.maxDate,d=i.preSelection,f=i.disabledKeyboardNavigation;return $e("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":(c||u)&&zf(Ki(s,r),n.props),"react-datepicker__quarter-text--selected":l?n.isSelectedQuarter(s,r,l):void 0,"react-datepicker__quarter-text--keyboard-selected":!f&&d&&n.isSelectedQuarter(s,r,d),"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":o&&a?Hl(o,a,r,s):void 0,"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(r)})},n.getMonthContent=function(r){var i=n.props,s=i.showFullMonthYearPicker,o=i.renderMonthContent,a=i.locale,l=i.day,c=Bb(r,a),u=p_(r,a);return o?o(r,c,u,l):s?u:c},n.getQuarterContent=function(r){var i,s=n.props,o=s.renderQuarterContent,a=s.locale,l=s8(r,a);return(i=o?.(r,l))!==null&&i!==void 0?i:l},n.renderMonths=function(){var r,i=n.props,s=i.showTwoColumnMonthYearPicker,o=i.showFourColumnMonthYearPicker,a=i.day,l=i.selected,c=(r=Wf[F0(o,s)])===null||r===void 0?void 0:r.grid;return c?.map(function(u,d){return O.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(f,h){return O.createElement("div",{ref:n.MONTH_REFS[f],key:h,onClick:function(y){n.onMonthClick(y,f)},onKeyDown:function(y){Wb(y)&&(y.preventDefault(),y.key=Y.Enter),n.onMonthKeyDown(y,f)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(f)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(f)}:void 0,tabIndex:Number(n.getTabIndex(f)),className:n.getMonthClassNames(f),"aria-disabled":n.isMonthDisabled(f),role:"option","aria-label":n.getAriaLabel(f),"aria-current":n.isCurrentMonth(a,f)?"date":void 0,"aria-selected":l?n.isSelectedMonth(a,f,l):void 0},n.getMonthContent(f))}))})},n.renderQuarters=function(){var r=n.props,i=r.day,s=r.selected,o=[1,2,3,4];return O.createElement("div",{className:"react-datepicker__quarter-wrapper"},o.map(function(a,l){return O.createElement("div",{key:l,ref:n.QUARTER_REFS[l],role:"option",onClick:function(c){n.onQuarterClick(c,a)},onKeyDown:function(c){n.onQuarterKeyDown(c,a)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(a)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(a)}:void 0,className:n.getQuarterClassNames(a),"aria-selected":s?n.isSelectedQuarter(i,a,s):void 0,tabIndex:Number(n.getQuarterTabIndex(a)),"aria-current":n.isCurrentQuarter(i,a)?"date":void 0},n.getQuarterContent(a))}))},n.getClassNames=function(){var r=n.props,i=r.selectingDate,s=r.selectsStart,o=r.selectsEnd,a=r.showMonthYearPicker,l=r.showQuarterYearPicker,c=r.showWeekPicker;return $e("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(s||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":c})},n}return e.prototype.render=function(){var n=this.props,r=n.showMonthYearPicker,i=n.showQuarterYearPicker,s=n.day,o=n.ariaLabelPrefix,a=o===void 0?"Month ":o,l=a?a.trim()+" ":"";return O.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(l).concat(Te(s,"MMMM, yyyy",this.props.locale)),role:"listbox"},r?this.renderMonths():i?this.renderQuarters():this.renderWeeks())},e}(x.Component),E8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.isSelectedMonth=function(r){return n.props.month===r},n.renderOptions=function(){return n.props.monthNames.map(function(r,i){return O.createElement("div",{className:n.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:n.onChange.bind(n,i),"aria-selected":n.isSelectedMonth(i)?"true":void 0},n.isSelectedMonth(i)?O.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",r)})},n.onChange=function(r){return n.props.onChange(r)},n.handleClickOutside=function(){return n.props.onCancel()},n}return e.prototype.render=function(){return O.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},e}(x.Component),S8=fd(E8),b8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(r){return r.map(function(i,s){return O.createElement("option",{key:i,value:s},i)})},n.renderSelectMode=function(r){return O.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(i){return n.onChange(parseInt(i.target.value))}},n.renderSelectOptions(r))},n.renderReadView=function(r,i){return O.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},O.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),O.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[n.props.month]))},n.renderDropdown=function(r){return O.createElement(S8,oe({key:"dropdown"},n.props,{monthNames:r,onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(r){var i=n.state.dropdownVisible,s=[n.renderReadView(!i,r)];return i&&s.unshift(n.renderDropdown(r)),s},n.onChange=function(r){n.toggleDropdown(),r!==n.props.month&&n.props.onChange(r)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return e.prototype.render=function(){var n=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(s){return Bb(s,n.props.locale)}:function(s){return p_(s,n.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return O.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},e}(x.Component);function A8(t,e){for(var n=[],r=Dr(t),i=Dr(e);!Br(r,i);)n.push(fe(r)),r=rn(r,1);return n}var R8=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var s=Op(i),o=_n(r.props.date,i)&&ct(r.props.date,i);return O.createElement("div",{className:o?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:r.onChange.bind(r,s),"aria-selected":o?"true":void 0},o?O.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Te(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:A8(r.props.minDate,r.props.maxDate)},r}return e.prototype.render=function(){var n=$e({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return O.createElement("div",{className:n},this.renderOptions())},e}(x.Component),C8=fd(R8),P8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=Dr(n.props.minDate),i=Dr(n.props.maxDate),s=[];!Br(r,i);){var o=Op(r);s.push(O.createElement("option",{key:o,value:o},Te(r,n.props.dateFormat,n.props.locale))),r=rn(r,1)}return s},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return O.createElement("select",{value:Op(Dr(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){var i=Te(n.props.date,n.props.dateFormat,n.props.locale);return O.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},O.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),O.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},n.renderDropdown=function(){return O.createElement(C8,oe({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown();var i=fe(r);_n(n.props.date,i)&&ct(n.props.date,i)||n.props.onChange(i)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return e.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return O.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},e}(x.Component),x8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,s;n.list&&(n.list.scrollTop=(s=n.centerLi&&e.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-((i=(r=n.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):n.list.clientHeight,n.centerLi))!==null&&s!==void 0?s:0)})},n.handleClick=function(r){var i,s;(n.props.minTime||n.props.maxTime)&&R0(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&A0(r,n.props)||(s=(i=n.props).onChange)===null||s===void 0||s.call(i,r)},n.isSelectedTime=function(r){return n.props.selected&&g8(n.props.selected,r)},n.isDisabledTime=function(r){return(n.props.minTime||n.props.maxTime)&&R0(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&A0(r,n.props)},n.liClasses=function(r){var i,s=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(r):void 0];return n.isSelectedTime(r)&&s.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(r)&&s.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(Rn(r)*3600+Cn(r)*60+$n(r))%(((i=n.props.intervals)!==null&&i!==void 0?i:e.defaultProps.intervals)*60)!==0&&s.push("react-datepicker__time-list-item--injected"),s.join(" ")},n.handleOnKeyDown=function(r,i){var s,o;r.key===Y.Space&&(r.preventDefault(),r.key=Y.Enter),(r.key===Y.ArrowUp||r.key===Y.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===Y.ArrowDown||r.key===Y.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===Y.Enter&&n.handleClick(i),(o=(s=n.props).handleOnKeyDown)===null||o===void 0||o.call(s,r)},n.renderTimes=function(){for(var r,i=[],s=n.props.format?n.props.format:"p",o=(r=n.props.intervals)!==null&&r!==void 0?r:e.defaultProps.intervals,a=n.props.selected||n.props.openToDate||fe(),l=dc(a),c=n.props.injectTimes&&n.props.injectTimes.sort(function(E,_){return E.getTime()-_.getTime()}),u=60*p8(a),d=u/o,f=0;f=f?r.updateFocusOnPaginate(Math.abs(f-(i-h))):(c=(l=r.YEAR_REFS[i-h])===null||l===void 0?void 0:l.current)===null||c===void 0||c.focus())}},r.isSameDay=function(i,s){return se(i,s)},r.isCurrentYear=function(i){return i===ne(fe())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&_n(gn(fe(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&_n(gn(fe(),i),r.props.endDate)},r.isInRange=function(i){return Wl(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var s=r.props,o=s.selectsStart,a=s.selectsEnd,l=s.selectsRange,c=s.startDate,u=s.endDate;return!(o||a||l)||!r.selectingDate()?!1:o&&u?Wl(i,r.selectingDate(),u):a&&c||l&&c&&!u?Wl(i,c,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var s;if(!r.isInSelectingRange(i))return!1;var o=r.props,a=o.startDate,l=o.selectsStart,c=gn(fe(),i);return l?_n(c,(s=r.selectingDate())!==null&&s!==void 0?s:null):_n(c,a??null)},r.isSelectingRangeEnd=function(i){var s;if(!r.isInSelectingRange(i))return!1;var o=r.props,a=o.endDate,l=o.selectsEnd,c=o.selectsRange,u=gn(fe(),i);return l||c?_n(u,(s=r.selectingDate())!==null&&s!==void 0?s:null):_n(u,a??null)},r.isKeyboardSelected=function(i){if(!(r.props.date===void 0||r.props.selected==null||r.props.preSelection==null)){var s=Lo(gn(r.props.date,i));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!se(s,Lo(r.props.selected))&&se(s,Lo(r.props.preSelection))}},r.onYearClick=function(i,s){var o=r.props.date;o!==void 0&&r.handleYearClick(Lo(gn(o,s)),i)},r.onYearKeyDown=function(i,s){var o,a,l=i.key,c=r.props,u=c.date,d=c.yearItemNumber,f=c.handleOnKeyDown;if(l!==Y.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(l){case Y.Enter:if(r.props.selected==null)break;r.onYearClick(i,s),(a=(o=r.props).setPreSelection)===null||a===void 0||a.call(o,r.props.selected);break;case Y.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(s+1,jn(r.props.preSelection,1));break;case Y.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(s-1,js(r.props.preSelection,1));break;case Y.ArrowUp:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var h=Tr(u,d).startPeriod,y=B0,g=s-y;if(g=h&&s_){var E=d%y;s<=_&&s>_-E?y=E:y+=E,g=s+y}r.handleYearNavigation(g,jn(r.props.preSelection,y));break}}f&&f(i)},r.getYearClassNames=function(i){var s=r.props,o=s.date,a=s.minDate,l=s.maxDate,c=s.selected,u=s.excludeDates,d=s.includeDates,f=s.filterDate,h=s.yearClassName;return $e("react-datepicker__year-text","react-datepicker__year-".concat(i),o?h?.(gn(o,i)):void 0,{"react-datepicker__year-text--selected":c?i===ne(c):void 0,"react-datepicker__year-text--disabled":(a||l||u||d||f)&&Lb(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var s=ne(r.props.preSelection);return i===s?"0":"-1"},r.getYearContainerClassNames=function(){var i=r.props,s=i.selectingDate,o=i.selectsStart,a=i.selectsEnd,l=i.selectsRange;return $e("react-datepicker__year",{"react-datepicker__year--selecting-range":s&&(o||a||l)})},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return e.prototype.render=function(){var n=this,r=[],i=this.props,s=i.date,o=i.yearItemNumber,a=i.onYearMouseEnter,l=i.onYearMouseLeave;if(s===void 0)return null;for(var c=Tr(s,o),u=c.startPeriod,d=c.endPeriod,f=function(g){r.push(O.createElement("div",{ref:h.YEAR_REFS[g-u],onClick:function(E){n.onYearClick(E,g)},onKeyDown:function(E){Wb(E)&&(E.preventDefault(),E.key=Y.Enter),n.onYearKeyDown(E,g)},tabIndex:Number(h.getYearTabIndex(g)),className:h.getYearClassNames(g),onMouseEnter:h.props.usePointerEvent?void 0:function(E){return a(E,g)},onPointerEnter:h.props.usePointerEvent?function(E){return a(E,g)}:void 0,onMouseLeave:h.props.usePointerEvent?void 0:function(E){return l(E,g)},onPointerLeave:h.props.usePointerEvent?function(E){return l(E,g)}:void 0,key:g,"aria-current":h.isCurrentYear(g)?"date":void 0},h.getYearContent(g)))},h=this,y=u;y<=d;y++)f(y);return O.createElement("div",{className:this.getYearContainerClassNames()},O.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},e}(x.Component);function k8(t,e,n,r){for(var i=[],s=0;s<2*e+1;s++){var o=t+e-s,a=!0;n&&(a=ne(n)<=o),r&&a&&(a=ne(r)>=o),a&&i.push(o)}return i}var D8=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;r.renderOptions=function(){var a=r.props.year,l=r.state.yearsList.map(function(d){return O.createElement("div",{className:a===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:r.onChange.bind(r,d),"aria-selected":a===d?"true":void 0},a===d?O.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),c=r.props.minDate?ne(r.props.minDate):null,u=r.props.maxDate?ne(r.props.maxDate):null;return(!u||!r.state.yearsList.find(function(d){return d===u}))&&l.unshift(O.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},O.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!c||!r.state.yearsList.find(function(d){return d===c}))&&l.push(O.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},O.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},r.onChange=function(a){r.props.onChange(a)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(a){var l=r.state.yearsList.map(function(c){return c+a});r.setState({yearsList:l})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,s=n.scrollableYearDropdown,o=i||(s?10:5);return r.state={yearsList:k8(r.props.year,o,r.props.minDate,r.props.maxDate)},r.dropdownRef=x.createRef(),r}return e.prototype.componentDidMount=function(){var n=this.dropdownRef.current;if(n){var r=n.children?Array.from(n.children):null,i=r?r.find(function(s){return s.ariaSelected}):null;n.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}},e.prototype.render=function(){var n=$e({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return O.createElement("div",{className:n,ref:this.dropdownRef},this.renderOptions())},e}(x.Component),I8=fd(D8),O8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=n.props.minDate?ne(n.props.minDate):1900,i=n.props.maxDate?ne(n.props.maxDate):2100,s=[],o=r;o<=i;o++)s.push(O.createElement("option",{key:o,value:o},o));return s},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return O.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){return O.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(i){return n.toggleDropdown(i)}},O.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),O.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))},n.renderDropdown=function(){return O.createElement(I8,oe({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown(),r!==n.props.year&&n.props.onChange(r)},n.toggleDropdown=function(r){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,r)})},n.handleYearChange=function(r,i){n.onSelect(r,i),n.setOpen()},n.onSelect=function(r,i){n.props.onSelect&&n.props.onSelect(r,i)},n.setOpen=function(){n.props.setOpen&&n.props.setOpen(!0)},n}return e.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return O.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},e}(x.Component),N8=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],F8=function(t){var e=(t.className||"").split(/\s+/);return N8.some(function(n){return e.indexOf(n)>=0})},B8=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var s,o;F8(i.target)&&((o=(s=r.props).onDropdownFocus)===null||o===void 0||o.call(s,i))},r.getDateInView=function(){var i=r.props,s=i.preSelection,o=i.selected,a=i.openToDate,l=Vb(r.props),c=zb(r.props),u=fe(),d=a||o||s;return d||(l&&Ci(u,l)?l:c&&Br(u,c)?c:u)},r.increaseMonth=function(){r.setState(function(i){var s=i.date;return{date:rn(s,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var s=i.date;return{date:Hs(s,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,s,o){r.props.onSelect(i,s,o),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,s){r.setState({selectingDate:gn(fe(),s)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,s)},r.handleYearMouseLeave=function(i,s){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,s)},r.handleYearChange=function(i){r.props.onYearChange&&(r.props.onYearChange(i),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleMonthChange=function(i){r.handleCustomMonthChange(i),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleCustomMonthChange=function(i){r.props.onMonthChange&&(r.props.onMonthChange(i),r.setState({isRenderAriaLiveMessage:!0}))},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(s){var o=s.date;return{date:gn(o,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(s){var o=s.date;return{date:Rt(o,Number(i))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(i){r.setState(function(s){var o=s.date;return{date:gn(Rt(o,dt(i)),ne(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i){i===void 0&&(i=r.state.date);var s=kr(i,r.props.locale,r.props.calendarStartDay),o=[];return r.props.showWeekNumbers&&o.push(O.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),o.concat([0,1,2,3,4,5,6].map(function(a){var l=jr(s,a),c=r.formatWeekday(l,r.props.locale),u=r.props.weekDayClassName?r.props.weekDayClassName(l):void 0;return O.createElement("div",{key:a,"aria-label":Te(l,"EEEE",r.props.locale),className:$e("react-datepicker__day-name",u)},c)}))},r.formatWeekday=function(i,s){return r.props.formatWeekDay?n8(i,r.props.formatWeekDay,s):r.props.useWeekdaysShort?i8(i,s):r8(i,s)},r.decreaseYear=function(){r.setState(function(i){var s,o=i.date;return{date:js(o,r.props.showYearPicker?(s=r.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i;if(!r.props.renderCustomHeader){var s;switch(!0){case r.props.showMonthYearPicker:s=x0(r.state.date,r.props);break;case r.props.showYearPicker:s=c8(r.state.date,r.props);break;case r.props.showQuarterYearPicker:s=a8(r.state.date,r.props);break;default:s=C0(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&s||r.props.showTimeSelectOnly)){var o=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],a=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.decreaseYear),s&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),l=void 0);var c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.previousMonthButtonLabel,f=d===void 0?e.defaultProps.previousMonthButtonLabel:d,h=u.previousYearButtonLabel,y=h===void 0?e.defaultProps.previousYearButtonLabel:h,g=r.props,E=g.previousMonthAriaLabel,_=E===void 0?typeof f=="string"?f:"Previous Month":E,m=g.previousYearAriaLabel,w=m===void 0?typeof y=="string"?y:"Previous Year":m;return O.createElement("button",{type:"button",className:a.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":c?w:_},O.createElement("span",{className:o.join(" ")},c?y:f))}}},r.increaseYear=function(){r.setState(function(i){var s,o=i.date;return{date:jn(o,r.props.showYearPicker?(s=r.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var s;switch(!0){case r.props.showMonthYearPicker:s=M0(r.state.date,r.props);break;case r.props.showYearPicker:s=u8(r.state.date,r.props);break;case r.props.showQuarterYearPicker:s=l8(r.state.date,r.props);break;default:s=P0(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&s||r.props.showTimeSelectOnly)){var o=["react-datepicker__navigation","react-datepicker__navigation--next"],a=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&o.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&o.push("react-datepicker__navigation--next--with-today-button");var l=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.increaseYear),s&&r.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--next--disabled"),l=void 0);var c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.nextMonthButtonLabel,f=d===void 0?e.defaultProps.nextMonthButtonLabel:d,h=u.nextYearButtonLabel,y=h===void 0?e.defaultProps.nextYearButtonLabel:h,g=r.props,E=g.nextMonthAriaLabel,_=E===void 0?typeof f=="string"?f:"Next Month":E,m=g.nextYearAriaLabel,w=m===void 0?typeof y=="string"?y:"Next Year":m;return O.createElement("button",{type:"button",className:o.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":c?w:_},O.createElement("span",{className:a.join(" ")},c?y:f))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var s=["react-datepicker__current-month"];return r.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),O.createElement("h2",{className:s.join(" ")},Te(i,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return O.createElement(O8,oe({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:ne(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return O.createElement(b8,oe({},e.defaultProps,r.props,{month:dt(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return O.createElement(P8,oe({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(E0(),i),r.props.setPreSelection&&r.props.setPreSelection(E0())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return O.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDefaultHeader=function(i){var s=i.monthDate,o=i.i;return O.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(s),O.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(o!==0),r.renderMonthYearDropdown(o!==0),r.renderYearDropdown(o!==0)),O.createElement("div",{className:"react-datepicker__day-names"},r.header(s)))},r.renderCustomHeader=function(i){var s,o,a=i.monthDate,l=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var c=C0(r.state.date,r.props),u=P0(r.state.date,r.props),d=x0(r.state.date,r.props),f=M0(r.state.date,r.props),h=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return O.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(o=(s=r.props).renderCustomHeader)===null||o===void 0?void 0:o.call(s,oe(oe({},r.state),{customHeaderCount:l,monthDate:a,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:c,nextMonthButtonDisabled:u,prevYearButtonDisabled:d,nextYearButtonDisabled:f})),h&&O.createElement("div",{className:"react-datepicker__day-names"},r.header(a)))},r.renderYearHeader=function(i){var s=i.monthDate,o=r.props,a=o.showYearPicker,l=o.yearItemNumber,c=l===void 0?e.defaultProps.yearItemNumber:l,u=Tr(s,c),d=u.startPeriod,f=u.endPeriod;return O.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(d," - ").concat(f):ne(s))},r.renderHeader=function(i){var s=i.monthDate,o=i.i,a=o===void 0?0:o,l={monthDate:s,i:a};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(l);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(l);default:return r.renderDefaultHeader(l)}},r.renderMonths=function(){var i,s;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var o=[],a=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,l=r.props.showPreviousMonths?a-1:0,c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?jn(r.state.date,l):Hs(r.state.date,l),u=(s=r.props.monthSelectedIn)!==null&&s!==void 0?s:l,d=0;d0;o.push(O.createElement("div",{key:y,ref:function(_){r.monthContainer=_??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:h,i:d}),O.createElement(T8,oe({},e.defaultProps,r.props,{ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:h,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:d,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:g,monthShowsDuplicateDaysStart:E}))))}return o}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return O.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),O.createElement(M8,oe({},e.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return O.createElement(x8,oe({},e.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i=r.props.selected?new Date(r.props.selected):void 0,s=i&&Bn(i)&&!!r.props.selected,o=s?"".concat(D0(i.getHours()),":").concat(D0(i.getMinutes())):"";if(r.props.showTimeInput)return O.createElement(_8,oe({},e.defaultProps,r.props,{date:i,timeString:o,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var i,s=Tr(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:e.defaultProps.yearItemNumber),o=s.startPeriod,a=s.endPeriod,l;return r.props.showYearPicker?l="".concat(o," - ").concat(a):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?l=ne(r.state.date):l="".concat(p_(dt(r.state.date),r.props.locale)," ").concat(ne(r.state.date)),O.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&l)},r.renderChildren=function(){if(r.props.children)return O.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=x.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(e,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:Ka}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){n.setState({monthContainer:n.monthContainer})}())},e.prototype.componentDidUpdate=function(n){var r=this;if(this.props.preSelection&&(!se(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var i=!ct(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!se(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},e.prototype.render=function(){var n=this.props.container||KL;return O.createElement("div",{style:{display:"contents"},ref:this.containerRef},O.createElement(n,{className:$e("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},e}(x.Component),U8=function(t){var e=t.icon,n=t.className,r=n===void 0?"":n,i=t.onClick,s="react-datepicker__calendar-icon";return typeof e=="string"?O.createElement("i",{className:"".concat(s," ").concat(e," ").concat(r),"aria-hidden":"true",onClick:i}):O.isValidElement(e)?O.cloneElement(e,{className:"".concat(e.props.className||""," ").concat(s," ").concat(r),onClick:function(o){typeof e.props.onClick=="function"&&e.props.onClick(o),typeof i=="function"&&i(o)}}):O.createElement("svg",{className:"".concat(s," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},O.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"}))},Hb=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return e.prototype.componentDidMount=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)},e.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},e.prototype.render=function(){return $R.createPortal(this.props.children,this.el)},e}(x.Component),L8="[tabindex], a, button, input, select, textarea",V8=function(t){return(t instanceof HTMLAnchorElement||!t.disabled)&&t.tabIndex!==-1},jb=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(L8),1,-1).filter(V8)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=x.createRef(),r}return e.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:e.defaultProps.enableTabLoop)?O.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},O.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,O.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e}(x.Component);function z8(t){var e=function(n){var r,i=typeof n.hidePopper=="boolean"?n.hidePopper:!0,s=x.useRef(null),o=XL(oe({open:!i,whileElementsMounted:AL,placement:n.popperPlacement,middleware:Sn([DL({padding:15}),kL(10),IL({element:s})],(r=n.popperModifiers)!==null&&r!==void 0?r:[],!0)},n.popperProps)),a=oe(oe({},n),{hidePopper:i,popperProps:oe(oe({},o),{arrowRef:s})});return O.createElement(t,oe({},a))};return e}var W8=function(t){Ke(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var n=this.props,r=n.className,i=n.wrapperClassName,s=n.hidePopper,o=s===void 0?e.defaultProps.hidePopper:s,a=n.popperComponent,l=n.targetComponent,c=n.enableTabLoop,u=n.popperOnKeyDown,d=n.portalId,f=n.portalHost,h=n.popperProps,y=n.showArrow,g=void 0;if(!o){var E=$e("react-datepicker-popper",r);g=O.createElement(jb,{enableTabLoop:c},O.createElement("div",{ref:h.refs.setFloating,style:h.floatingStyles,className:E,"data-placement":h.placement,onKeyDown:u},a,y&&O.createElement(VL,{ref:h.arrowRef,context:h.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(g=x.createElement(this.props.popperContainer,{},g)),d&&!o&&(g=O.createElement(Hb,{portalId:d,portalHost:f},g));var _=$e("react-datepicker-wrapper",i);return O.createElement(O.Fragment,null,O.createElement("div",{ref:h.refs.setReference,className:_},l),g)},e}(x.Component),H8=z8(W8),U0="react-datepicker-ignore-onclickoutside",j8=fd(B8);function Y8(t,e){return t&&e?dt(t)!==dt(e)||ne(t)!==ne(e):t!==e}var Hf="Date input not valid.",L0=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:fe()},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(s,o){var a=new Date(o.date);return Bn(a)?Sn(Sn([],s,!0),[oe(oe({},o),{date:a})],!1):s},[])},r.calcInitialState=function(){var i,s=r.getPreSelection(),o=Vb(r.props),a=zb(r.props),l=o&&Ci(s,dc(o))?o:a&&Br(s,S0(a))?a:s;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(i=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&i!==void 0?i:l,highlightDates:k0(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(oe(oe({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(oe(oe({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})},r.setBlur=function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()},r.setOpen=function(i,s){s===void 0&&(s=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:jf},function(){i||r.setState(function(o){return{focused:s?o.focused:!1}},function(){!s&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return Yn(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var s,o,a=r.state.wasHidden,l=a?r.state.open:!0;a&&r.resetHiddenStatus(),!r.state.preventFocus&&l&&((o=(s=r.props).onFocus)===null||o===void 0||o.call(s,i),!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(i){var s,o;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((o=(s=r.props).onBlur)===null||o===void 0||o.call(s,i)),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var s,o;r.props.inline||r.setOpen(!1),(o=(s=r.props).onClickOutside)===null||o===void 0||o.call(s,i),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i=[],s=0;s=J){$=H;break}u&&$d&&(te=Y.ArrowLeft,$=wr(d,r.props)?M(te,$):d),wr($,r.props)?((te===Y.PageUp||te===Y.Home)&&(te=Y.ArrowRight),(te===Y.PageDown||te===Y.End)&&(te=Y.ArrowLeft),$=M(te,$)):G=!0,W++}return $};if(w===Y.Enter){i.preventDefault(),r.handleSelect(R,i),!y&&r.setPreSelection(R);return}else if(w===Y.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(l=(a=r.props).onInputError)===null||l===void 0||l.call(a,{code:1,msg:Hf});return}var I=null;switch(w){case Y.ArrowLeft:case Y.ArrowRight:case Y.ArrowUp:case Y.ArrowDown:case Y.PageUp:case Y.PageDown:case Y.Home:case Y.End:I=k(w,R);break}if(!I){r.props.onInputError&&r.props.onInputError({code:1,msg:Hf});return}if(i.preventDefault(),r.setState({lastPreSelectChange:jf}),_&&r.setSelected(I),r.setPreSelection(I),m){var N=dt(R),B=dt(I),j=ne(R),Q=ne(I);N!==B||j!==Q?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(i){var s=i.key;s===Y.Escape&&(i.preventDefault(),r.sendFocusBackToInput())},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var s=r.props,o=s.selectsRange,a=s.onChange;a(o?[null,null]:null,i),r.props.selectsRange?r.props.onChange([null,null],i):r.props.onChange(null,i),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.renderCalendar=function(){var i,s;return!r.props.inline&&!r.isCalendarOpen()?null:O.createElement(j8,oe({ref:function(o){r.calendar=o}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:e.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:f8(r.modifyHolidays()),outsideClickIgnoreClass:U0,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(s=r.props.dropdownMode)!==null&&s!==void 0?s:e.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var i=r.props,s=i.dateFormat,o=s===void 0?e.defaultProps.dateFormat:s,a=i.locale,l=r.props.showTimeInput||r.props.showTimeSelect,c=l?"PPPPp":"PPPP",u;return r.props.selectsRange?u="Selected start date: ".concat(Nt(r.props.startDate,{dateFormat:c,locale:a}),". ").concat(r.props.endDate?"End date: "+Nt(r.props.endDate,{dateFormat:c,locale:a}):""):r.props.showTimeSelectOnly?u="Selected time: ".concat(Nt(r.props.selected,{dateFormat:o,locale:a})):r.props.showYearPicker?u="Selected year: ".concat(Nt(r.props.selected,{dateFormat:"yyyy",locale:a})):r.props.showMonthYearPicker?u="Selected month: ".concat(Nt(r.props.selected,{dateFormat:"MMMM yyyy",locale:a})):r.props.showQuarterYearPicker?u="Selected quarter: ".concat(Nt(r.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):u="Selected date: ".concat(Nt(r.props.selected,{dateFormat:c,locale:a})),O.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},u)},r.renderDateInput=function(){var i,s,o,a=$e(r.props.className,(i={},i[U0]=r.state.open,i)),l=r.props.customInput||O.createElement("input",{type:"text"}),c=r.props.customInputRef||"ref",u=r.props,d=u.dateFormat,f=d===void 0?e.defaultProps.dateFormat:d,h=u.locale,y=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:r.props.selectsRange?ZL(r.props.startDate,r.props.endDate,{dateFormat:f,locale:h}):r.props.selectsMultiple?JL((o=r.props.selectedDates)!==null&&o!==void 0?o:[],{dateFormat:f,locale:h}):Nt(r.props.selected,{dateFormat:f,locale:h});return x.cloneElement(l,(s={},s[c]=function(g){r.input=g},s.value=y,s.onBlur=r.handleBlur,s.onChange=r.handleChange,s.onClick=r.onInputClick,s.onFocus=r.handleFocus,s.onKeyDown=r.onInputKeyDown,s.id=r.props.id,s.name=r.props.name,s.form=r.props.form,s.autoFocus=r.props.autoFocus,s.placeholder=r.props.placeholderText,s.disabled=r.props.disabled,s.autoComplete=r.props.autoComplete,s.className=$e(l.props.className,a),s.title=r.props.title,s.readOnly=r.props.readOnly,s.required=r.props.required,s.tabIndex=r.props.tabIndex,s["aria-describedby"]=r.props.ariaDescribedBy,s["aria-invalid"]=r.props.ariaInvalid,s["aria-labelledby"]=r.props.ariaLabelledBy,s["aria-required"]=r.props.ariaRequired,s))},r.renderClearButton=function(){var i=r.props,s=i.isClearable,o=i.disabled,a=i.selected,l=i.startDate,c=i.endDate,u=i.clearButtonTitle,d=i.clearButtonClassName,f=d===void 0?"":d,h=i.ariaLabelClose,y=h===void 0?"Close":h,g=i.selectedDates;return s&&(a!=null||l!=null||c!=null||g?.length)?O.createElement("button",{type:"button",className:$e("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":o}),disabled:o,"aria-label":y,onClick:r.onClearClick,title:u,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(e,"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,swapRange:!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:Ka,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.componentDidUpdate=function(n,r){var i,s,o,a;n.inline&&Y8(n.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:k0(this.props.highlightDates)}),!r.focused&&!li(n.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((s=(i=this.props).onCalendarOpen)===null||s===void 0||s.call(i)),r.open===!0&&this.state.open===!1&&((a=(o=this.props).onCalendarClose)===null||a===void 0||a.call(o)))},e.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.renderInputContainer=function(){var n=this.props,r=n.showIcon,i=n.icon,s=n.calendarIconClassname,o=n.calendarIconClassName,a=n.toggleCalendarOnIconClick,l=this.state.open;return s&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),O.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&O.createElement(U8,oe({icon:i,className:$e(o,!o&&s,l&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},e.prototype.render=function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var r=this.state.open?O.createElement(jb,{enableTabLoop:this.props.enableTabLoop},O.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(r=O.createElement(Hb,oe({portalId:this.props.portalId},this.props),r)),O.createElement("div",null,this.renderInputContainer(),r)}return O.createElement(H8,oe({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},e}(x.Component),$8="input",jf="navigate";const Yf=new Intl.DateTimeFormat("default",{month:"long",year:"numeric"});function X8(){const{currentTime:t,startTime:e,endTime:n,startDate:r,endDate:i,animating:s}=Zs(),o=rd(),[a,l]=x.useState(!1),[c,u]=x.useState(!1),[d,f]=x.useState(0),h=x.useRef(null),y=x.useCallback(_=>{const m=Number(_.target.value);o({type:"SET_CURRENT_TIME",currentTime:m});const w=_.target,b=(m-Number(w.min))/(Number(w.max)-Number(w.min))*100;f(b)},[o]);x.useEffect(()=>{if(h.current){const _=(t-Number(e))/(Number(n)-Number(e))*100;f(_)}},[t,e,n]);const g=x.useCallback(_=>{_&&(o({type:"SET_START_DATE",startDate:_}),l(!1))},[o]),E=x.useCallback(_=>{_&&(o({type:"SET_END_DATE",endDate:_}),u(!1))},[o]);return U.jsx("div",{className:"time-panel",children:U.jsxs("div",{className:"slider-container",children:[U.jsxs("div",{className:"date-container",onClick:()=>l(!a),children:[U.jsx("span",{className:"date-text",children:Yf.format(r).slice(-5)}),U.jsx("span",{className:"default-text",children:"Start"}),a&&U.jsx("div",{className:"datepicker-wrapper",children:U.jsx(L0,{inline:!0,selectsStart:!0,showYearPicker:!0,selected:r,startDate:r,endDate:i,minDate:new Date(as.START_2020),maxDate:new Date(i.getTime()-Ym),onChange:g})})]}),U.jsxs("div",{className:"slider-wrapper",children:[U.jsx("input",{ref:h,type:"range",min:e,max:n,value:t,onChange:y,className:"time-slider"}),(s||e!=t)&&U.jsx("div",{className:"slider-value",style:{left:`calc(${d}% )`},children:Yf.format(new Date(t*1e3))})]}),U.jsxs("div",{className:"date-container",onClick:()=>u(!c),children:[U.jsx("span",{className:"date-text",children:Yf.format(i).slice(-5)}),U.jsx("span",{className:"default-text",children:"End"}),c&&U.jsx("div",{className:"datepicker-wrapper",children:U.jsx(L0,{inline:!0,selectsEnd:!0,showYearPicker:!0,selected:i,startDate:r,endDate:i,minDate:new Date(r.getTime()+Ym),maxDate:new Date(as.FEB_2024),onChange:E})})]})]})})}const K8=O.memo(X8),q8=()=>{const{loading:t}=Zs();return U.jsxs("div",{className:`header-panel ${t?"centered":"loaded spaced"}`,children:[U.jsxs("div",{className:"top-bar",children:[U.jsxs("div",{children:[U.jsx("h1",{children:"NEW HEAT"}),U.jsx("p",{children:"Modern Odysseys"})]}),!t&&U.jsx(f4,{})]}),U.jsx("div",{className:"bottom-bar",children:t?U.jsx(p4,{}):U.jsx(K8,{})})]})},Q8=()=>{const{showMap:t}=Zs();return U.jsx("div",{className:`loading-overlay ${t?"hidden":"visible"}`,children:"Dreamt It"})},Z8=()=>U.jsxs(jC,{children:[U.jsx(q8,{}),U.jsx(Q8,{}),U.jsx(c4,{})]});function J8(t){GT(t).render(U.jsx(Z8,{}))}window.global=window;J8(document.querySelector("#app")); +*/var Up=function(e,n){return Up=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},Up(e,n)};function Ke(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Up(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var oe=function(){return oe=Object.assign||function(n){for(var r,i=1,s=arguments.length;i0&&(o=Bf(t,c.slice(0,t.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),Bn(o)||(o=new Date(t))}return Bn(o)&&l?o:null}function Bn(t,e){return du(t)&&!Ci(t,e??new Date("1/1/1800"))}function Te(t,e,n){if(n==="en")return a0(t,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?mi(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&ta()&&mi(ta())&&(r=mi(ta())),a0(t,e,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Nt(t,e){var n=e.dateFormat,r=e.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return t&&Te(t,i,r)||""}function ZL(t,e,n){if(!t)return"";var r=Nt(t,n),i=e?Nt(e,n):"";return"".concat(r," - ").concat(i)}function JL(t,e){if(!t?.length)return"";var n=t[0]?Nt(t[0],e):"";if(t.length===1)return n;if(t.length===2&&t[1]){var r=Nt(t[1],e);return"".concat(n,", ").concat(r)}var i=t.length-1;return"".concat(n," (+").concat(i,")")}function Vf(t,e){var n=e.hour,r=n===void 0?0:n,i=e.minute,s=i===void 0?0:i,o=e.second,a=o===void 0?0:o;return ac(lc(cc(t,a),s),r)}function GL(t){return i_(t)}function e8(t,e){return Te(t,"ddd",e)}function dc(t){return Ri(t)}function kr(t,e,n){var r=mi(e||ta());return Jn(t,{locale:r,weekStartsOn:n})}function Dr(t){return Sb(t)}function Lo(t){return gd(t)}function T0(t){return Np(t)}function E0(){return Ri(fe())}function S0(t){return ub(t)}function t8(t){return k4(t)}function _n(t,e){return t&&e?xU(t,e):!t&&!e}function ct(t,e){return t&&e?CU(t,e):!t&&!e}function yu(t,e){return t&&e?PU(t,e):!t&&!e}function se(t,e){return t&&e?RU(t,e):!t&&!e}function li(t,e){return t&&e?AU(t,e):!t&&!e}function Vo(t,e,n){var r,i=Ri(e),s=ub(n);try{r=Ma(t,{start:i,end:s})}catch{r=!1}return r}function ta(){var t=Fb();return t.__localeId__}function mi(t){if(typeof t=="string"){var e=Fb();return e.__localeData__?e.__localeData__[t]:void 0}else return t}function n8(t,e,n){return e(Te(t,"EEEE",n))}function r8(t,e){return Te(t,"EEEEEE",e)}function i8(t,e){return Te(t,"EEE",e)}function p_(t,e){return Te(Rt(fe(),t),"LLLL",e)}function Bb(t,e){return Te(Rt(fe(),t),"LLL",e)}function s8(t,e){return Te(Ki(fe(),t),"QQQ",e)}function wr(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.excludeDateIntervals,a=n.includeDates,l=n.includeDateIntervals,c=n.filterDate;return qa(t,{minDate:r,maxDate:i})||s&&s.some(function(u){var d;return u instanceof Date?se(t,u):se(t,(d=u.date)!==null&&d!==void 0?d:new Date)})||o&&o.some(function(u){var d=u.start,f=u.end;return Ma(t,{start:d,end:f})})||a&&!a.some(function(u){return se(t,u)})||l&&!l.some(function(u){var d=u.start,f=u.end;return Ma(t,{start:d,end:f})})||c&&!c(fe(t))||!1}function g_(t,e){var n=e===void 0?{}:e,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(s){var o=s.start,a=s.end;return Ma(t,{start:o,end:a})}):r&&r.some(function(s){var o;return s instanceof Date?se(t,s):se(t,(o=s.date)!==null&&o!==void 0?o:new Date)})||!1}function Ub(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates,a=n.filterDate;return qa(t,{minDate:r?Sb(r):void 0,maxDate:i?x4(i):void 0})||s?.some(function(l){return ct(t,l instanceof Date?l:l.date)})||o&&!o.some(function(l){return ct(t,l)})||a&&!a(fe(t))||!1}function zl(t,e,n,r){var i=ne(t),s=dt(t),o=ne(e),a=dt(e),l=ne(r);return i===o&&i===l?s<=n&&n<=a:i=n||li:!1}function o8(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates;return qa(t,{minDate:r,maxDate:i})||s&&s.some(function(a){return ct(a instanceof Date?a:a.date,t)})||o&&!o.some(function(a){return ct(a,t)})||!1}function zf(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates,a=n.filterDate;return qa(t,{minDate:r,maxDate:i})||s?.some(function(l){return yu(t,l instanceof Date?l:l.date)})||o&&!o.some(function(l){return yu(t,l)})||a&&!a(fe(t))||!1}function Wl(t,e,n){if(!e||!n||!du(e)||!du(n))return!1;var r=ne(e),i=ne(n);return r<=t&&i>=t}function Lb(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,o=n.includeDates,a=n.filterDate,l=new Date(t,0,1);return qa(l,{minDate:r?gd(r):void 0,maxDate:i?db(i):void 0})||s?.some(function(c){return _n(l,c instanceof Date?c:c.date)})||o&&!o.some(function(c){return _n(l,c)})||a&&!a(fe(l))||!1}function Hl(t,e,n,r){var i=ne(t),s=gi(t),o=ne(e),a=gi(e),l=ne(r);return i===o&&i===l?s<=n&&n<=a:i=n||li:!1}function qa(t,e){var n,r=e===void 0?{}:e,i=r.minDate,s=r.maxDate;return(n=i&&xa(t,i)<0||s&&xa(t,s)>0)!==null&&n!==void 0?n:!1}function b0(t,e){return e.some(function(n){return Rn(n)===Rn(t)&&Cn(n)===Cn(t)&&$n(n)===$n(t)})}function A0(t,e){var n=e===void 0?{}:e,r=n.excludeTimes,i=n.includeTimes,s=n.filterTime;return r&&b0(t,r)||i&&!b0(t,i)||s&&!s(t)||!1}function R0(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=fe();i=ac(i,Rn(t)),i=lc(i,Cn(t)),i=cc(i,$n(t));var s=fe();s=ac(s,Rn(n)),s=lc(s,Cn(n)),s=cc(s,$n(n));var o=fe();o=ac(o,Rn(r)),o=lc(o,Cn(r)),o=cc(o,$n(r));var a;try{a=!Ma(i,{start:s,end:o})}catch{a=!1}return a}function C0(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=Hs(t,1);return r&&au(r,s)>0||i&&i.every(function(o){return au(o,s)>0})||!1}function P0(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=rn(t,1);return r&&au(s,r)>0||i&&i.every(function(o){return au(s,o)>0})||!1}function a8(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=gd(t),o=bb(s,1);return r&&lu(r,o)>0||i&&i.every(function(a){return lu(a,o)>0})||!1}function l8(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=db(t),o=r_(s,1);return r&&lu(o,r)>0||i&&i.every(function(a){return lu(o,a)>0})||!1}function x0(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=js(t,1);return r&&cu(r,s)>0||i&&i.every(function(o){return cu(o,s)>0})||!1}function c8(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.yearItemNumber,s=i===void 0?Ka:i,o=Lo(js(t,s)),a=Tr(o,s).endPeriod,l=r&&ne(r);return l&&l>a||!1}function M0(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=jn(t,1);return r&&cu(s,r)>0||i&&i.every(function(o){return cu(s,o)>0})||!1}function u8(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.yearItemNumber,s=i===void 0?Ka:i,o=jn(t,s),a=Tr(o,s).startPeriod,l=r&&ne(r);return l&&l=0});return u0(r)}else return n?u0(n):e}function zb(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return xa(i,e)<=0});return c0(r)}else return n?c0(n):e}function k0(t,e){var n;t===void 0&&(t=[]),e===void 0&&(e="react-datepicker__day--highlighted");for(var r=new Map,i=0,s=t.length;i=w8,h=!i&&!n.isWeekInMonth(a);if(f||h)if(n.props.peekNextMonth)o=!0;else break}return r},n.onMonthClick=function(r,i){var s=n.isMonthDisabledForLabelDate(i),o=s.isDisabled,a=s.labelDate;o||n.handleDayClick(Dr(a),r)},n.onMonthMouseEnter=function(r){var i=n.isMonthDisabledForLabelDate(r),s=i.isDisabled,o=i.labelDate;s||n.handleDayMouseEnter(Dr(o))},n.handleMonthNavigation=function(r,i){var s,o,a,l;(o=(s=n.props).setPreSelection)===null||o===void 0||o.call(s,i),(l=(a=n.MONTH_REFS[r])===null||a===void 0?void 0:a.current)===null||l===void 0||l.focus()},n.handleKeyboardNavigation=function(r,i,s){var o,a=n.props,l=a.selected,c=a.preSelection,u=a.setPreSelection,d=a.minDate,f=a.maxDate,h=a.showFourColumnMonthYearPicker,y=a.showTwoColumnMonthYearPicker;if(c){var g=F0(h,y),E=n.getVerticalOffset(g),_=(o=Wf[g])===null||o===void 0?void 0:o.grid,m=function(k,I,N){var B,j,Q=I,Z=N;switch(k){case Y.ArrowRight:Q=rn(I,jl),Z=N===11?0:N+jl;break;case Y.ArrowLeft:Q=Hs(I,jl),Z=N===0?11:N-jl;break;case Y.ArrowUp:Q=Hs(I,E),Z=!((B=_?.[0])===null||B===void 0)&&B.includes(N)?N+12-E:N-E;break;case Y.ArrowDown:Q=rn(I,E),Z=!((j=_?.[_.length-1])===null||j===void 0)&&j.includes(N)?N-12+E:N+E;break}return{newCalculatedDate:Q,newCalculatedMonth:Z}},w=function(k,I,N){for(var B=40,j=k,Q=!1,Z=0,H=m(j,I,N),J=H.newCalculatedDate,te=H.newCalculatedMonth;!Q;){if(Z>=B){J=I,te=N;break}if(d&&Jf){j=Y.ArrowLeft;var G=m(j,J,te);J=G.newCalculatedDate,te=G.newCalculatedMonth}if(o8(J,n.props)){var G=m(j,J,te);J=G.newCalculatedDate,te=G.newCalculatedMonth}else Q=!0;Z++}return{newCalculatedDate:J,newCalculatedMonth:te}};if(i===Y.Enter){n.isMonthDisabled(s)||(n.onMonthClick(r,s),u?.(l));return}var b=w(i,c,s),R=b.newCalculatedDate,M=b.newCalculatedMonth;switch(i){case Y.ArrowRight:case Y.ArrowLeft:case Y.ArrowUp:case Y.ArrowDown:n.handleMonthNavigation(M,R);break}}},n.getVerticalOffset=function(r){var i,s;return(s=(i=Wf[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&s!==void 0?s:0},n.onMonthKeyDown=function(r,i){var s=n.props,o=s.disabledKeyboardNavigation,a=s.handleOnMonthKeyDown,l=r.key;l!==Y.Tab&&r.preventDefault(),o||n.handleKeyboardNavigation(r,l,i),a&&a(r)},n.onQuarterClick=function(r,i){var s=Ki(n.props.day,i);zf(s,n.props)||n.handleDayClick(T0(s),r)},n.onQuarterMouseEnter=function(r){var i=Ki(n.props.day,r);zf(i,n.props)||n.handleDayMouseEnter(T0(i))},n.handleQuarterNavigation=function(r,i){var s,o,a,l;n.isDisabled(i)||n.isExcluded(i)||((o=(s=n.props).setPreSelection)===null||o===void 0||o.call(s,i),(l=(a=n.QUARTER_REFS[r-1])===null||a===void 0?void 0:a.current)===null||l===void 0||l.focus())},n.onQuarterKeyDown=function(r,i){var s,o,a=r.key;if(!n.props.disabledKeyboardNavigation)switch(a){case Y.Enter:n.onQuarterClick(r,i),(o=(s=n.props).setPreSelection)===null||o===void 0||o.call(s,n.props.selected);break;case Y.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===4?1:i+1,r_(n.props.preSelection,1));break;case Y.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===1?4:i-1,bb(n.props.preSelection,1));break}},n.isMonthDisabledForLabelDate=function(r){var i,s=n.props,o=s.day,a=s.minDate,l=s.maxDate,c=s.excludeDates,u=s.includeDates,d=Rt(o,r);return{isDisabled:(i=(a||l||c||u)&&Ub(d,n.props))!==null&&i!==void 0?i:!1,labelDate:d}},n.isMonthDisabled=function(r){var i=n.isMonthDisabledForLabelDate(r).isDisabled;return i},n.getMonthClassNames=function(r){var i=n.props,s=i.day,o=i.startDate,a=i.endDate,l=i.selected,c=i.preSelection,u=i.monthClassName,d=u?u(Rt(s,r)):void 0;return $e("react-datepicker__month-text","react-datepicker__month-".concat(r),d,{"react-datepicker__month-text--disabled":n.isMonthDisabled(r),"react-datepicker__month-text--selected":l?n.isSelectedMonth(s,r,l):void 0,"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&c&&n.isSelectedMonth(s,r,c),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":o&&a?zl(o,a,r,s):void 0,"react-datepicker__month-text--range-start":n.isRangeStartMonth(r),"react-datepicker__month-text--range-end":n.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":n.isCurrentMonth(s,r)})},n.getTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=dt(n.props.preSelection),s=!n.props.disabledKeyboardNavigation&&r===i?"0":"-1";return s},n.getQuarterTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=gi(n.props.preSelection),s=!n.props.disabledKeyboardNavigation&&r===i?"0":"-1";return s},n.getAriaLabel=function(r){var i=n.props,s=i.chooseDayAriaLabelPrefix,o=s===void 0?"Choose":s,a=i.disabledDayAriaLabelPrefix,l=a===void 0?"Not available":a,c=i.day,u=i.locale,d=Rt(c,r),f=n.isDisabled(d)||n.isExcluded(d)?l:o;return"".concat(f," ").concat(Te(d,"MMMM yyyy",u))},n.getQuarterClassNames=function(r){var i=n.props,s=i.day,o=i.startDate,a=i.endDate,l=i.selected,c=i.minDate,u=i.maxDate,d=i.preSelection,f=i.disabledKeyboardNavigation;return $e("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":(c||u)&&zf(Ki(s,r),n.props),"react-datepicker__quarter-text--selected":l?n.isSelectedQuarter(s,r,l):void 0,"react-datepicker__quarter-text--keyboard-selected":!f&&d&&n.isSelectedQuarter(s,r,d),"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":o&&a?Hl(o,a,r,s):void 0,"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(r)})},n.getMonthContent=function(r){var i=n.props,s=i.showFullMonthYearPicker,o=i.renderMonthContent,a=i.locale,l=i.day,c=Bb(r,a),u=p_(r,a);return o?o(r,c,u,l):s?u:c},n.getQuarterContent=function(r){var i,s=n.props,o=s.renderQuarterContent,a=s.locale,l=s8(r,a);return(i=o?.(r,l))!==null&&i!==void 0?i:l},n.renderMonths=function(){var r,i=n.props,s=i.showTwoColumnMonthYearPicker,o=i.showFourColumnMonthYearPicker,a=i.day,l=i.selected,c=(r=Wf[F0(o,s)])===null||r===void 0?void 0:r.grid;return c?.map(function(u,d){return O.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(f,h){return O.createElement("div",{ref:n.MONTH_REFS[f],key:h,onClick:function(y){n.onMonthClick(y,f)},onKeyDown:function(y){Wb(y)&&(y.preventDefault(),y.key=Y.Enter),n.onMonthKeyDown(y,f)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(f)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(f)}:void 0,tabIndex:Number(n.getTabIndex(f)),className:n.getMonthClassNames(f),"aria-disabled":n.isMonthDisabled(f),role:"option","aria-label":n.getAriaLabel(f),"aria-current":n.isCurrentMonth(a,f)?"date":void 0,"aria-selected":l?n.isSelectedMonth(a,f,l):void 0},n.getMonthContent(f))}))})},n.renderQuarters=function(){var r=n.props,i=r.day,s=r.selected,o=[1,2,3,4];return O.createElement("div",{className:"react-datepicker__quarter-wrapper"},o.map(function(a,l){return O.createElement("div",{key:l,ref:n.QUARTER_REFS[l],role:"option",onClick:function(c){n.onQuarterClick(c,a)},onKeyDown:function(c){n.onQuarterKeyDown(c,a)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(a)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(a)}:void 0,className:n.getQuarterClassNames(a),"aria-selected":s?n.isSelectedQuarter(i,a,s):void 0,tabIndex:Number(n.getQuarterTabIndex(a)),"aria-current":n.isCurrentQuarter(i,a)?"date":void 0},n.getQuarterContent(a))}))},n.getClassNames=function(){var r=n.props,i=r.selectingDate,s=r.selectsStart,o=r.selectsEnd,a=r.showMonthYearPicker,l=r.showQuarterYearPicker,c=r.showWeekPicker;return $e("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(s||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":c})},n}return e.prototype.render=function(){var n=this.props,r=n.showMonthYearPicker,i=n.showQuarterYearPicker,s=n.day,o=n.ariaLabelPrefix,a=o===void 0?"Month ":o,l=a?a.trim()+" ":"";return O.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(l).concat(Te(s,"MMMM, yyyy",this.props.locale)),role:"listbox"},r?this.renderMonths():i?this.renderQuarters():this.renderWeeks())},e}(x.Component),E8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.isSelectedMonth=function(r){return n.props.month===r},n.renderOptions=function(){return n.props.monthNames.map(function(r,i){return O.createElement("div",{className:n.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:n.onChange.bind(n,i),"aria-selected":n.isSelectedMonth(i)?"true":void 0},n.isSelectedMonth(i)?O.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",r)})},n.onChange=function(r){return n.props.onChange(r)},n.handleClickOutside=function(){return n.props.onCancel()},n}return e.prototype.render=function(){return O.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},e}(x.Component),S8=fd(E8),b8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(r){return r.map(function(i,s){return O.createElement("option",{key:i,value:s},i)})},n.renderSelectMode=function(r){return O.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(i){return n.onChange(parseInt(i.target.value))}},n.renderSelectOptions(r))},n.renderReadView=function(r,i){return O.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},O.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),O.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[n.props.month]))},n.renderDropdown=function(r){return O.createElement(S8,oe({key:"dropdown"},n.props,{monthNames:r,onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(r){var i=n.state.dropdownVisible,s=[n.renderReadView(!i,r)];return i&&s.unshift(n.renderDropdown(r)),s},n.onChange=function(r){n.toggleDropdown(),r!==n.props.month&&n.props.onChange(r)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return e.prototype.render=function(){var n=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(s){return Bb(s,n.props.locale)}:function(s){return p_(s,n.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return O.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},e}(x.Component);function A8(t,e){for(var n=[],r=Dr(t),i=Dr(e);!Br(r,i);)n.push(fe(r)),r=rn(r,1);return n}var R8=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var s=Op(i),o=_n(r.props.date,i)&&ct(r.props.date,i);return O.createElement("div",{className:o?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:r.onChange.bind(r,s),"aria-selected":o?"true":void 0},o?O.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Te(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:A8(r.props.minDate,r.props.maxDate)},r}return e.prototype.render=function(){var n=$e({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return O.createElement("div",{className:n},this.renderOptions())},e}(x.Component),C8=fd(R8),P8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=Dr(n.props.minDate),i=Dr(n.props.maxDate),s=[];!Br(r,i);){var o=Op(r);s.push(O.createElement("option",{key:o,value:o},Te(r,n.props.dateFormat,n.props.locale))),r=rn(r,1)}return s},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return O.createElement("select",{value:Op(Dr(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){var i=Te(n.props.date,n.props.dateFormat,n.props.locale);return O.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},O.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),O.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},n.renderDropdown=function(){return O.createElement(C8,oe({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown();var i=fe(r);_n(n.props.date,i)&&ct(n.props.date,i)||n.props.onChange(i)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return e.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return O.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},e}(x.Component),x8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,s;n.list&&(n.list.scrollTop=(s=n.centerLi&&e.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-((i=(r=n.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):n.list.clientHeight,n.centerLi))!==null&&s!==void 0?s:0)})},n.handleClick=function(r){var i,s;(n.props.minTime||n.props.maxTime)&&R0(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&A0(r,n.props)||(s=(i=n.props).onChange)===null||s===void 0||s.call(i,r)},n.isSelectedTime=function(r){return n.props.selected&&g8(n.props.selected,r)},n.isDisabledTime=function(r){return(n.props.minTime||n.props.maxTime)&&R0(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&A0(r,n.props)},n.liClasses=function(r){var i,s=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(r):void 0];return n.isSelectedTime(r)&&s.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(r)&&s.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(Rn(r)*3600+Cn(r)*60+$n(r))%(((i=n.props.intervals)!==null&&i!==void 0?i:e.defaultProps.intervals)*60)!==0&&s.push("react-datepicker__time-list-item--injected"),s.join(" ")},n.handleOnKeyDown=function(r,i){var s,o;r.key===Y.Space&&(r.preventDefault(),r.key=Y.Enter),(r.key===Y.ArrowUp||r.key===Y.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===Y.ArrowDown||r.key===Y.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===Y.Enter&&n.handleClick(i),(o=(s=n.props).handleOnKeyDown)===null||o===void 0||o.call(s,r)},n.renderTimes=function(){for(var r,i=[],s=n.props.format?n.props.format:"p",o=(r=n.props.intervals)!==null&&r!==void 0?r:e.defaultProps.intervals,a=n.props.selected||n.props.openToDate||fe(),l=dc(a),c=n.props.injectTimes&&n.props.injectTimes.sort(function(E,_){return E.getTime()-_.getTime()}),u=60*p8(a),d=u/o,f=0;f=f?r.updateFocusOnPaginate(Math.abs(f-(i-h))):(c=(l=r.YEAR_REFS[i-h])===null||l===void 0?void 0:l.current)===null||c===void 0||c.focus())}},r.isSameDay=function(i,s){return se(i,s)},r.isCurrentYear=function(i){return i===ne(fe())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&_n(gn(fe(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&_n(gn(fe(),i),r.props.endDate)},r.isInRange=function(i){return Wl(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var s=r.props,o=s.selectsStart,a=s.selectsEnd,l=s.selectsRange,c=s.startDate,u=s.endDate;return!(o||a||l)||!r.selectingDate()?!1:o&&u?Wl(i,r.selectingDate(),u):a&&c||l&&c&&!u?Wl(i,c,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var s;if(!r.isInSelectingRange(i))return!1;var o=r.props,a=o.startDate,l=o.selectsStart,c=gn(fe(),i);return l?_n(c,(s=r.selectingDate())!==null&&s!==void 0?s:null):_n(c,a??null)},r.isSelectingRangeEnd=function(i){var s;if(!r.isInSelectingRange(i))return!1;var o=r.props,a=o.endDate,l=o.selectsEnd,c=o.selectsRange,u=gn(fe(),i);return l||c?_n(u,(s=r.selectingDate())!==null&&s!==void 0?s:null):_n(u,a??null)},r.isKeyboardSelected=function(i){if(!(r.props.date===void 0||r.props.selected==null||r.props.preSelection==null)){var s=Lo(gn(r.props.date,i));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!se(s,Lo(r.props.selected))&&se(s,Lo(r.props.preSelection))}},r.onYearClick=function(i,s){var o=r.props.date;o!==void 0&&r.handleYearClick(Lo(gn(o,s)),i)},r.onYearKeyDown=function(i,s){var o,a,l=i.key,c=r.props,u=c.date,d=c.yearItemNumber,f=c.handleOnKeyDown;if(l!==Y.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(l){case Y.Enter:if(r.props.selected==null)break;r.onYearClick(i,s),(a=(o=r.props).setPreSelection)===null||a===void 0||a.call(o,r.props.selected);break;case Y.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(s+1,jn(r.props.preSelection,1));break;case Y.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(s-1,js(r.props.preSelection,1));break;case Y.ArrowUp:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var h=Tr(u,d).startPeriod,y=B0,g=s-y;if(g=h&&s_){var E=d%y;s<=_&&s>_-E?y=E:y+=E,g=s+y}r.handleYearNavigation(g,jn(r.props.preSelection,y));break}}f&&f(i)},r.getYearClassNames=function(i){var s=r.props,o=s.date,a=s.minDate,l=s.maxDate,c=s.selected,u=s.excludeDates,d=s.includeDates,f=s.filterDate,h=s.yearClassName;return $e("react-datepicker__year-text","react-datepicker__year-".concat(i),o?h?.(gn(o,i)):void 0,{"react-datepicker__year-text--selected":c?i===ne(c):void 0,"react-datepicker__year-text--disabled":(a||l||u||d||f)&&Lb(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var s=ne(r.props.preSelection);return i===s?"0":"-1"},r.getYearContainerClassNames=function(){var i=r.props,s=i.selectingDate,o=i.selectsStart,a=i.selectsEnd,l=i.selectsRange;return $e("react-datepicker__year",{"react-datepicker__year--selecting-range":s&&(o||a||l)})},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return e.prototype.render=function(){var n=this,r=[],i=this.props,s=i.date,o=i.yearItemNumber,a=i.onYearMouseEnter,l=i.onYearMouseLeave;if(s===void 0)return null;for(var c=Tr(s,o),u=c.startPeriod,d=c.endPeriod,f=function(g){r.push(O.createElement("div",{ref:h.YEAR_REFS[g-u],onClick:function(E){n.onYearClick(E,g)},onKeyDown:function(E){Wb(E)&&(E.preventDefault(),E.key=Y.Enter),n.onYearKeyDown(E,g)},tabIndex:Number(h.getYearTabIndex(g)),className:h.getYearClassNames(g),onMouseEnter:h.props.usePointerEvent?void 0:function(E){return a(E,g)},onPointerEnter:h.props.usePointerEvent?function(E){return a(E,g)}:void 0,onMouseLeave:h.props.usePointerEvent?void 0:function(E){return l(E,g)},onPointerLeave:h.props.usePointerEvent?function(E){return l(E,g)}:void 0,key:g,"aria-current":h.isCurrentYear(g)?"date":void 0},h.getYearContent(g)))},h=this,y=u;y<=d;y++)f(y);return O.createElement("div",{className:this.getYearContainerClassNames()},O.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},e}(x.Component);function k8(t,e,n,r){for(var i=[],s=0;s<2*e+1;s++){var o=t+e-s,a=!0;n&&(a=ne(n)<=o),r&&a&&(a=ne(r)>=o),a&&i.push(o)}return i}var D8=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;r.renderOptions=function(){var a=r.props.year,l=r.state.yearsList.map(function(d){return O.createElement("div",{className:a===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:r.onChange.bind(r,d),"aria-selected":a===d?"true":void 0},a===d?O.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),c=r.props.minDate?ne(r.props.minDate):null,u=r.props.maxDate?ne(r.props.maxDate):null;return(!u||!r.state.yearsList.find(function(d){return d===u}))&&l.unshift(O.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},O.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!c||!r.state.yearsList.find(function(d){return d===c}))&&l.push(O.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},O.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},r.onChange=function(a){r.props.onChange(a)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(a){var l=r.state.yearsList.map(function(c){return c+a});r.setState({yearsList:l})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,s=n.scrollableYearDropdown,o=i||(s?10:5);return r.state={yearsList:k8(r.props.year,o,r.props.minDate,r.props.maxDate)},r.dropdownRef=x.createRef(),r}return e.prototype.componentDidMount=function(){var n=this.dropdownRef.current;if(n){var r=n.children?Array.from(n.children):null,i=r?r.find(function(s){return s.ariaSelected}):null;n.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}},e.prototype.render=function(){var n=$e({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return O.createElement("div",{className:n,ref:this.dropdownRef},this.renderOptions())},e}(x.Component),I8=fd(D8),O8=function(t){Ke(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=n.props.minDate?ne(n.props.minDate):1900,i=n.props.maxDate?ne(n.props.maxDate):2100,s=[],o=r;o<=i;o++)s.push(O.createElement("option",{key:o,value:o},o));return s},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return O.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){return O.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(i){return n.toggleDropdown(i)}},O.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),O.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))},n.renderDropdown=function(){return O.createElement(I8,oe({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown(),r!==n.props.year&&n.props.onChange(r)},n.toggleDropdown=function(r){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,r)})},n.handleYearChange=function(r,i){n.onSelect(r,i),n.setOpen()},n.onSelect=function(r,i){n.props.onSelect&&n.props.onSelect(r,i)},n.setOpen=function(){n.props.setOpen&&n.props.setOpen(!0)},n}return e.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return O.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},e}(x.Component),N8=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],F8=function(t){var e=(t.className||"").split(/\s+/);return N8.some(function(n){return e.indexOf(n)>=0})},B8=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var s,o;F8(i.target)&&((o=(s=r.props).onDropdownFocus)===null||o===void 0||o.call(s,i))},r.getDateInView=function(){var i=r.props,s=i.preSelection,o=i.selected,a=i.openToDate,l=Vb(r.props),c=zb(r.props),u=fe(),d=a||o||s;return d||(l&&Ci(u,l)?l:c&&Br(u,c)?c:u)},r.increaseMonth=function(){r.setState(function(i){var s=i.date;return{date:rn(s,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var s=i.date;return{date:Hs(s,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,s,o){r.props.onSelect(i,s,o),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,s){r.setState({selectingDate:gn(fe(),s)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,s)},r.handleYearMouseLeave=function(i,s){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,s)},r.handleYearChange=function(i){r.props.onYearChange&&(r.props.onYearChange(i),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleMonthChange=function(i){r.handleCustomMonthChange(i),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(i),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleCustomMonthChange=function(i){r.props.onMonthChange&&(r.props.onMonthChange(i),r.setState({isRenderAriaLiveMessage:!0}))},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(s){var o=s.date;return{date:gn(o,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(s){var o=s.date;return{date:Rt(o,Number(i))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(i){r.setState(function(s){var o=s.date;return{date:gn(Rt(o,dt(i)),ne(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i){i===void 0&&(i=r.state.date);var s=kr(i,r.props.locale,r.props.calendarStartDay),o=[];return r.props.showWeekNumbers&&o.push(O.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),o.concat([0,1,2,3,4,5,6].map(function(a){var l=jr(s,a),c=r.formatWeekday(l,r.props.locale),u=r.props.weekDayClassName?r.props.weekDayClassName(l):void 0;return O.createElement("div",{key:a,"aria-label":Te(l,"EEEE",r.props.locale),className:$e("react-datepicker__day-name",u)},c)}))},r.formatWeekday=function(i,s){return r.props.formatWeekDay?n8(i,r.props.formatWeekDay,s):r.props.useWeekdaysShort?i8(i,s):r8(i,s)},r.decreaseYear=function(){r.setState(function(i){var s,o=i.date;return{date:js(o,r.props.showYearPicker?(s=r.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i;if(!r.props.renderCustomHeader){var s;switch(!0){case r.props.showMonthYearPicker:s=x0(r.state.date,r.props);break;case r.props.showYearPicker:s=c8(r.state.date,r.props);break;case r.props.showQuarterYearPicker:s=a8(r.state.date,r.props);break;default:s=C0(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&s||r.props.showTimeSelectOnly)){var o=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],a=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.decreaseYear),s&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),l=void 0);var c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.previousMonthButtonLabel,f=d===void 0?e.defaultProps.previousMonthButtonLabel:d,h=u.previousYearButtonLabel,y=h===void 0?e.defaultProps.previousYearButtonLabel:h,g=r.props,E=g.previousMonthAriaLabel,_=E===void 0?typeof f=="string"?f:"Previous Month":E,m=g.previousYearAriaLabel,w=m===void 0?typeof y=="string"?y:"Previous Year":m;return O.createElement("button",{type:"button",className:a.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":c?w:_},O.createElement("span",{className:o.join(" ")},c?y:f))}}},r.increaseYear=function(){r.setState(function(i){var s,o=i.date;return{date:jn(o,r.props.showYearPicker?(s=r.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var s;switch(!0){case r.props.showMonthYearPicker:s=M0(r.state.date,r.props);break;case r.props.showYearPicker:s=u8(r.state.date,r.props);break;case r.props.showQuarterYearPicker:s=l8(r.state.date,r.props);break;default:s=P0(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&s||r.props.showTimeSelectOnly)){var o=["react-datepicker__navigation","react-datepicker__navigation--next"],a=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&o.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&o.push("react-datepicker__navigation--next--with-today-button");var l=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.increaseYear),s&&r.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--next--disabled"),l=void 0);var c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.nextMonthButtonLabel,f=d===void 0?e.defaultProps.nextMonthButtonLabel:d,h=u.nextYearButtonLabel,y=h===void 0?e.defaultProps.nextYearButtonLabel:h,g=r.props,E=g.nextMonthAriaLabel,_=E===void 0?typeof f=="string"?f:"Next Month":E,m=g.nextYearAriaLabel,w=m===void 0?typeof y=="string"?y:"Next Year":m;return O.createElement("button",{type:"button",className:o.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":c?w:_},O.createElement("span",{className:a.join(" ")},c?y:f))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var s=["react-datepicker__current-month"];return r.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),O.createElement("h2",{className:s.join(" ")},Te(i,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return O.createElement(O8,oe({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:ne(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return O.createElement(b8,oe({},e.defaultProps,r.props,{month:dt(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return O.createElement(P8,oe({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(E0(),i),r.props.setPreSelection&&r.props.setPreSelection(E0())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return O.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDefaultHeader=function(i){var s=i.monthDate,o=i.i;return O.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(s),O.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(o!==0),r.renderMonthYearDropdown(o!==0),r.renderYearDropdown(o!==0)),O.createElement("div",{className:"react-datepicker__day-names"},r.header(s)))},r.renderCustomHeader=function(i){var s,o,a=i.monthDate,l=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var c=C0(r.state.date,r.props),u=P0(r.state.date,r.props),d=x0(r.state.date,r.props),f=M0(r.state.date,r.props),h=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return O.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(o=(s=r.props).renderCustomHeader)===null||o===void 0?void 0:o.call(s,oe(oe({},r.state),{customHeaderCount:l,monthDate:a,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:c,nextMonthButtonDisabled:u,prevYearButtonDisabled:d,nextYearButtonDisabled:f})),h&&O.createElement("div",{className:"react-datepicker__day-names"},r.header(a)))},r.renderYearHeader=function(i){var s=i.monthDate,o=r.props,a=o.showYearPicker,l=o.yearItemNumber,c=l===void 0?e.defaultProps.yearItemNumber:l,u=Tr(s,c),d=u.startPeriod,f=u.endPeriod;return O.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(d," - ").concat(f):ne(s))},r.renderHeader=function(i){var s=i.monthDate,o=i.i,a=o===void 0?0:o,l={monthDate:s,i:a};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(l);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(l);default:return r.renderDefaultHeader(l)}},r.renderMonths=function(){var i,s;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var o=[],a=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,l=r.props.showPreviousMonths?a-1:0,c=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?jn(r.state.date,l):Hs(r.state.date,l),u=(s=r.props.monthSelectedIn)!==null&&s!==void 0?s:l,d=0;d0;o.push(O.createElement("div",{key:y,ref:function(_){r.monthContainer=_??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:h,i:d}),O.createElement(T8,oe({},e.defaultProps,r.props,{ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:h,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:d,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:g,monthShowsDuplicateDaysStart:E}))))}return o}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return O.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),O.createElement(M8,oe({},e.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return O.createElement(x8,oe({},e.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i=r.props.selected?new Date(r.props.selected):void 0,s=i&&Bn(i)&&!!r.props.selected,o=s?"".concat(D0(i.getHours()),":").concat(D0(i.getMinutes())):"";if(r.props.showTimeInput)return O.createElement(_8,oe({},e.defaultProps,r.props,{date:i,timeString:o,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var i,s=Tr(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:e.defaultProps.yearItemNumber),o=s.startPeriod,a=s.endPeriod,l;return r.props.showYearPicker?l="".concat(o," - ").concat(a):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?l=ne(r.state.date):l="".concat(p_(dt(r.state.date),r.props.locale)," ").concat(ne(r.state.date)),O.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&l)},r.renderChildren=function(){if(r.props.children)return O.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=x.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(e,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:Ka}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){n.setState({monthContainer:n.monthContainer})}())},e.prototype.componentDidUpdate=function(n){var r=this;if(this.props.preSelection&&(!se(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var i=!ct(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!se(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},e.prototype.render=function(){var n=this.props.container||KL;return O.createElement("div",{style:{display:"contents"},ref:this.containerRef},O.createElement(n,{className:$e("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},e}(x.Component),U8=function(t){var e=t.icon,n=t.className,r=n===void 0?"":n,i=t.onClick,s="react-datepicker__calendar-icon";return typeof e=="string"?O.createElement("i",{className:"".concat(s," ").concat(e," ").concat(r),"aria-hidden":"true",onClick:i}):O.isValidElement(e)?O.cloneElement(e,{className:"".concat(e.props.className||""," ").concat(s," ").concat(r),onClick:function(o){typeof e.props.onClick=="function"&&e.props.onClick(o),typeof i=="function"&&i(o)}}):O.createElement("svg",{className:"".concat(s," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},O.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"}))},Hb=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return e.prototype.componentDidMount=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)},e.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},e.prototype.render=function(){return $R.createPortal(this.props.children,this.el)},e}(x.Component),L8="[tabindex], a, button, input, select, textarea",V8=function(t){return(t instanceof HTMLAnchorElement||!t.disabled)&&t.tabIndex!==-1},jb=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(L8),1,-1).filter(V8)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=x.createRef(),r}return e.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:e.defaultProps.enableTabLoop)?O.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},O.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,O.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e}(x.Component);function z8(t){var e=function(n){var r,i=typeof n.hidePopper=="boolean"?n.hidePopper:!0,s=x.useRef(null),o=XL(oe({open:!i,whileElementsMounted:AL,placement:n.popperPlacement,middleware:Sn([DL({padding:15}),kL(10),IL({element:s})],(r=n.popperModifiers)!==null&&r!==void 0?r:[],!0)},n.popperProps)),a=oe(oe({},n),{hidePopper:i,popperProps:oe(oe({},o),{arrowRef:s})});return O.createElement(t,oe({},a))};return e}var W8=function(t){Ke(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var n=this.props,r=n.className,i=n.wrapperClassName,s=n.hidePopper,o=s===void 0?e.defaultProps.hidePopper:s,a=n.popperComponent,l=n.targetComponent,c=n.enableTabLoop,u=n.popperOnKeyDown,d=n.portalId,f=n.portalHost,h=n.popperProps,y=n.showArrow,g=void 0;if(!o){var E=$e("react-datepicker-popper",r);g=O.createElement(jb,{enableTabLoop:c},O.createElement("div",{ref:h.refs.setFloating,style:h.floatingStyles,className:E,"data-placement":h.placement,onKeyDown:u},a,y&&O.createElement(VL,{ref:h.arrowRef,context:h.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(g=x.createElement(this.props.popperContainer,{},g)),d&&!o&&(g=O.createElement(Hb,{portalId:d,portalHost:f},g));var _=$e("react-datepicker-wrapper",i);return O.createElement(O.Fragment,null,O.createElement("div",{ref:h.refs.setReference,className:_},l),g)},e}(x.Component),H8=z8(W8),U0="react-datepicker-ignore-onclickoutside",j8=fd(B8);function Y8(t,e){return t&&e?dt(t)!==dt(e)||ne(t)!==ne(e):t!==e}var Hf="Date input not valid.",L0=function(t){Ke(e,t);function e(n){var r=t.call(this,n)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:fe()},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(s,o){var a=new Date(o.date);return Bn(a)?Sn(Sn([],s,!0),[oe(oe({},o),{date:a})],!1):s},[])},r.calcInitialState=function(){var i,s=r.getPreSelection(),o=Vb(r.props),a=zb(r.props),l=o&&Ci(s,dc(o))?o:a&&Br(s,S0(a))?a:s;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(i=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&i!==void 0?i:l,highlightDates:k0(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(oe(oe({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(oe(oe({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})},r.setBlur=function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()},r.setOpen=function(i,s){s===void 0&&(s=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:jf},function(){i||r.setState(function(o){return{focused:s?o.focused:!1}},function(){!s&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return Yn(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var s,o,a=r.state.wasHidden,l=a?r.state.open:!0;a&&r.resetHiddenStatus(),!r.state.preventFocus&&l&&((o=(s=r.props).onFocus)===null||o===void 0||o.call(s,i),!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(i){var s,o;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((o=(s=r.props).onBlur)===null||o===void 0||o.call(s,i)),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var s,o;r.props.inline||r.setOpen(!1),(o=(s=r.props).onClickOutside)===null||o===void 0||o.call(s,i),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i=[],s=0;s=J){$=H;break}u&&$d&&(te=Y.ArrowLeft,$=wr(d,r.props)?M(te,$):d),wr($,r.props)?((te===Y.PageUp||te===Y.Home)&&(te=Y.ArrowRight),(te===Y.PageDown||te===Y.End)&&(te=Y.ArrowLeft),$=M(te,$)):G=!0,W++}return $};if(w===Y.Enter){i.preventDefault(),r.handleSelect(R,i),!y&&r.setPreSelection(R);return}else if(w===Y.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(l=(a=r.props).onInputError)===null||l===void 0||l.call(a,{code:1,msg:Hf});return}var I=null;switch(w){case Y.ArrowLeft:case Y.ArrowRight:case Y.ArrowUp:case Y.ArrowDown:case Y.PageUp:case Y.PageDown:case Y.Home:case Y.End:I=k(w,R);break}if(!I){r.props.onInputError&&r.props.onInputError({code:1,msg:Hf});return}if(i.preventDefault(),r.setState({lastPreSelectChange:jf}),_&&r.setSelected(I),r.setPreSelection(I),m){var N=dt(R),B=dt(I),j=ne(R),Q=ne(I);N!==B||j!==Q?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(i){var s=i.key;s===Y.Escape&&(i.preventDefault(),r.sendFocusBackToInput())},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var s=r.props,o=s.selectsRange,a=s.onChange;a(o?[null,null]:null,i),r.props.selectsRange?r.props.onChange([null,null],i):r.props.onChange(null,i),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.renderCalendar=function(){var i,s;return!r.props.inline&&!r.isCalendarOpen()?null:O.createElement(j8,oe({ref:function(o){r.calendar=o}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:e.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:f8(r.modifyHolidays()),outsideClickIgnoreClass:U0,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(s=r.props.dropdownMode)!==null&&s!==void 0?s:e.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var i=r.props,s=i.dateFormat,o=s===void 0?e.defaultProps.dateFormat:s,a=i.locale,l=r.props.showTimeInput||r.props.showTimeSelect,c=l?"PPPPp":"PPPP",u;return r.props.selectsRange?u="Selected start date: ".concat(Nt(r.props.startDate,{dateFormat:c,locale:a}),". ").concat(r.props.endDate?"End date: "+Nt(r.props.endDate,{dateFormat:c,locale:a}):""):r.props.showTimeSelectOnly?u="Selected time: ".concat(Nt(r.props.selected,{dateFormat:o,locale:a})):r.props.showYearPicker?u="Selected year: ".concat(Nt(r.props.selected,{dateFormat:"yyyy",locale:a})):r.props.showMonthYearPicker?u="Selected month: ".concat(Nt(r.props.selected,{dateFormat:"MMMM yyyy",locale:a})):r.props.showQuarterYearPicker?u="Selected quarter: ".concat(Nt(r.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):u="Selected date: ".concat(Nt(r.props.selected,{dateFormat:c,locale:a})),O.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},u)},r.renderDateInput=function(){var i,s,o,a=$e(r.props.className,(i={},i[U0]=r.state.open,i)),l=r.props.customInput||O.createElement("input",{type:"text"}),c=r.props.customInputRef||"ref",u=r.props,d=u.dateFormat,f=d===void 0?e.defaultProps.dateFormat:d,h=u.locale,y=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:r.props.selectsRange?ZL(r.props.startDate,r.props.endDate,{dateFormat:f,locale:h}):r.props.selectsMultiple?JL((o=r.props.selectedDates)!==null&&o!==void 0?o:[],{dateFormat:f,locale:h}):Nt(r.props.selected,{dateFormat:f,locale:h});return x.cloneElement(l,(s={},s[c]=function(g){r.input=g},s.value=y,s.onBlur=r.handleBlur,s.onChange=r.handleChange,s.onClick=r.onInputClick,s.onFocus=r.handleFocus,s.onKeyDown=r.onInputKeyDown,s.id=r.props.id,s.name=r.props.name,s.form=r.props.form,s.autoFocus=r.props.autoFocus,s.placeholder=r.props.placeholderText,s.disabled=r.props.disabled,s.autoComplete=r.props.autoComplete,s.className=$e(l.props.className,a),s.title=r.props.title,s.readOnly=r.props.readOnly,s.required=r.props.required,s.tabIndex=r.props.tabIndex,s["aria-describedby"]=r.props.ariaDescribedBy,s["aria-invalid"]=r.props.ariaInvalid,s["aria-labelledby"]=r.props.ariaLabelledBy,s["aria-required"]=r.props.ariaRequired,s))},r.renderClearButton=function(){var i=r.props,s=i.isClearable,o=i.disabled,a=i.selected,l=i.startDate,c=i.endDate,u=i.clearButtonTitle,d=i.clearButtonClassName,f=d===void 0?"":d,h=i.ariaLabelClose,y=h===void 0?"Close":h,g=i.selectedDates;return s&&(a!=null||l!=null||c!=null||g?.length)?O.createElement("button",{type:"button",className:$e("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":o}),disabled:o,"aria-label":y,onClick:r.onClearClick,title:u,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(e,"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,swapRange:!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:Ka,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.componentDidUpdate=function(n,r){var i,s,o,a;n.inline&&Y8(n.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:k0(this.props.highlightDates)}),!r.focused&&!li(n.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((s=(i=this.props).onCalendarOpen)===null||s===void 0||s.call(i)),r.open===!0&&this.state.open===!1&&((a=(o=this.props).onCalendarClose)===null||a===void 0||a.call(o)))},e.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.renderInputContainer=function(){var n=this.props,r=n.showIcon,i=n.icon,s=n.calendarIconClassname,o=n.calendarIconClassName,a=n.toggleCalendarOnIconClick,l=this.state.open;return s&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),O.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&O.createElement(U8,oe({icon:i,className:$e(o,!o&&s,l&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},e.prototype.render=function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var r=this.state.open?O.createElement(jb,{enableTabLoop:this.props.enableTabLoop},O.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(r=O.createElement(Hb,oe({portalId:this.props.portalId},this.props),r)),O.createElement("div",null,this.renderInputContainer(),r)}return O.createElement(H8,oe({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},e}(x.Component),$8="input",jf="navigate";const Yf=new Intl.DateTimeFormat("default",{month:"long",year:"numeric"});function X8(){const{currentTime:t,startTime:e,endTime:n,startDate:r,endDate:i,animating:s}=Zs(),o=rd(),[a,l]=x.useState(!1),[c,u]=x.useState(!1),[d,f]=x.useState(0),h=x.useRef(null),y=x.useCallback(_=>{const m=Number(_.target.value);o({type:"SET_CURRENT_TIME",currentTime:m});const w=_.target,b=(m-Number(w.min))/(Number(w.max)-Number(w.min))*100;f(b)},[o]);x.useEffect(()=>{if(h.current){const _=(t-Number(e))/(Number(n)-Number(e))*100;f(_)}},[t,e,n]);const g=x.useCallback(_=>{_&&(o({type:"SET_START_DATE",startDate:_}),l(!1))},[o]),E=x.useCallback(_=>{_&&(o({type:"SET_END_DATE",endDate:_}),u(!1))},[o]);return U.jsx("div",{className:"time-panel",children:U.jsxs("div",{className:"slider-container",children:[U.jsxs("div",{className:"date-container",onClick:()=>l(!a),children:[U.jsx("span",{className:"date-text",children:Yf.format(r).slice(-5)}),U.jsx("span",{className:"default-text",children:"Start"}),a&&U.jsx("div",{className:"datepicker-wrapper",children:U.jsx(L0,{inline:!0,selectsStart:!0,showYearPicker:!0,selected:r,startDate:r,endDate:i,minDate:new Date(as.START_2020),maxDate:new Date(i.getTime()-Ym),onChange:g})})]}),U.jsxs("div",{className:"slider-wrapper",children:[U.jsx("input",{ref:h,type:"range",min:e,max:n,value:t,onChange:y,className:"time-slider"}),(s||e!=t)&&U.jsx("div",{className:"slider-value",style:{left:`calc(${d}% )`},children:Yf.format(new Date(t*1e3))})]}),U.jsxs("div",{className:"date-container",onClick:()=>u(!c),children:[U.jsx("span",{className:"date-text",children:Yf.format(i).slice(-5)}),U.jsx("span",{className:"default-text",children:"End"}),c&&U.jsx("div",{className:"datepicker-wrapper",children:U.jsx(L0,{inline:!0,selectsEnd:!0,showYearPicker:!0,selected:i,startDate:r,endDate:i,minDate:new Date(r.getTime()+Ym),maxDate:new Date(as.FEB_2024),onChange:E})})]})]})})}const K8=O.memo(X8),q8=()=>{const{loading:t}=Zs();return U.jsxs("div",{className:`header-panel ${t?"centered":"loaded spaced"}`,children:[U.jsxs("div",{className:"top-bar",children:[U.jsxs("div",{children:[U.jsx("h1",{children:"NEW HEAT"}),U.jsx("p",{children:"Modern Odysseys"})]}),!t&&U.jsx(f4,{})]}),U.jsx("div",{className:"bottom-bar",children:t?U.jsx(p4,{}):U.jsx(K8,{})})]})},Q8=()=>{const{showMap:t}=Zs();return U.jsx("div",{className:`loading-overlay ${t?"hidden":"visible"}`,children:"I Dreamt This"})},Z8=()=>U.jsxs(jC,{children:[U.jsx(q8,{}),U.jsx(Q8,{}),U.jsx(c4,{})]});function J8(t){GT(t).render(U.jsx(Z8,{}))}window.global=window;J8(document.querySelector("#app")); diff --git a/index.html b/index.html index 4e5da65..ebae4e6 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ href="https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap" rel="stylesheet" /> - +