aravint-ui-form-controls 1.0.61 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99,7 +99,7 @@
99
99
  margin: 0;
100
100
  }
101
101
  `:""}
102
- `}),o&&x.jsxs("label",{htmlFor:v,style:{fontSize:"14px",fontWeight:500,color:"#344054"},children:[o,i&&x.jsx("span",{style:{color:"#F04438",marginLeft:"2px"},children:"*"})]}),x.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[s&&x.jsx("div",{style:{position:"absolute",left:"10px",color:"#6F778E",display:"flex",alignItems:"center"},children:s}),x.jsx("input",{id:v,type:n,ref:C,"aria-invalid":!!e,"aria-describedby":e?`${v}-error`:a?`${v}-hint`:void 0,placeholder:"Enter text..",style:E,className:Zo(r,n==="number"&&"number-input-with-custom-controls"),onChange:P,...h}),n==="number"&&x.jsxs("div",{style:{position:"absolute",right:"8px",top:"50%",transform:"translateY(-50%)",display:"flex",flexDirection:"column",height:"24px",justifyContent:"center"},children:[x.jsx("button",{type:"button","aria-label":"Increase value",disabled:h.disabled||h.readOnly||h.step==="any",onMouseDown:D=>D.preventDefault(),onClick:()=>_("up"),style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",padding:0,border:0,background:"transparent",color:"#6F778E",cursor:h.disabled||h.readOnly||h.step==="any"?"not-allowed":"pointer"},children:x.jsx(Jd,{})}),x.jsx("button",{type:"button","aria-label":"Decrease value",disabled:h.disabled||h.readOnly||h.step==="any",onMouseDown:D=>D.preventDefault(),onClick:()=>_("down"),style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",padding:0,border:0,background:"transparent",color:"#6F778E",cursor:h.disabled||h.readOnly||h.step==="any"?"not-allowed":"pointer"},children:x.jsx(ef,{})})]})]}),e&&x.jsx("p",{id:`${v}-error`,style:{fontSize:"12px",color:"#F04438",margin:0},children:e}),!e&&a&&x.jsx("p",{id:`${v}-hint`,style:{fontSize:"12px",color:"#667085",margin:0},children:a})]})});Cs.displayName="Input";const Ss=6048e5,rf=864e5,fn=6e4,pn=36e5,nf=1e3,co=Symbol.for("constructDateFrom");function ee(r,n){return typeof r=="function"?r(n):r&&typeof r=="object"&&co in r?r[co](n):r instanceof Date?new r.constructor(n):new Date(n)}function H(r,n){return ee(n||r,r)}function Ie(r,n,t){const e=H(r,t==null?void 0:t.in);return isNaN(n)?ee((t==null?void 0:t.in)||r,NaN):(n&&e.setDate(e.getDate()+n),e)}function Ae(r,n,t){const e=H(r,t==null?void 0:t.in);if(isNaN(n))return ee(r,NaN);if(!n)return e;const a=e.getDate(),o=ee(r,e.getTime());o.setMonth(e.getMonth()+n+1,0);const i=o.getDate();return a>=i?o:(e.setFullYear(o.getFullYear(),o.getMonth(),a),e)}function _s(r,n,t){return ee(r,+H(r)+n)}function af(r,n,t){return _s(r,n*pn)}let of={};function Pt(){return of}function at(r,n){var s,c,l,u;const t=Pt(),e=(n==null?void 0:n.weekStartsOn)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((u=(l=t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,a=H(r,n==null?void 0:n.in),o=a.getDay(),i=(o<e?7:0)+o-e;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function Bt(r,n){return at(r,{...n,weekStartsOn:1})}function Es(r,n){const t=H(r,n==null?void 0:n.in),e=t.getFullYear(),a=ee(t,0);a.setFullYear(e+1,0,4),a.setHours(0,0,0,0);const o=Bt(a),i=ee(t,0);i.setFullYear(e,0,4),i.setHours(0,0,0,0);const s=Bt(i);return t.getTime()>=o.getTime()?e+1:t.getTime()>=s.getTime()?e:e-1}function qr(r){const n=H(r),t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+r-+t}function ct(r,...n){const t=ee.bind(null,n.find(e=>typeof e=="object"));return n.map(t)}function Mt(r,n){const t=H(r,n==null?void 0:n.in);return t.setHours(0,0,0,0),t}function $t(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n),o=Mt(e),i=Mt(a),s=+o-qr(o),c=+i-qr(i);return Math.round((s-c)/rf)}function sf(r,n){const t=Es(r,n),e=ee(r,0);return e.setFullYear(t,0,4),e.setHours(0,0,0,0),Bt(e)}function lr(r,n,t){const e=H(r,t==null?void 0:t.in);return e.setTime(e.getTime()+n*fn),e}function ya(r,n,t){return Ae(r,n*3,t)}function cf(r,n,t){return _s(r,n*1e3)}function Gr(r,n,t){return Ie(r,n*7,t)}function Ze(r,n,t){return Ae(r,n*12,t)}function lo(r,n){let t,e=n==null?void 0:n.in;return r.forEach(a=>{!e&&typeof a=="object"&&(e=ee.bind(null,a));const o=H(a,e);(!t||t<o||isNaN(+o))&&(t=o)}),ee(e,t||NaN)}function uo(r,n){let t,e=n==null?void 0:n.in;return r.forEach(a=>{!e&&typeof a=="object"&&(e=ee.bind(null,a));const o=H(a,e);(!t||t>o||isNaN(+o))&&(t=o)}),ee(e,t||NaN)}function lf(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return+Mt(e)==+Mt(a)}function Je(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function Xr(r){return!(!Je(r)&&typeof r!="number"||isNaN(+H(r)))}function Zr(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n),o=e.getFullYear()-a.getFullYear(),i=e.getMonth()-a.getMonth();return o*12+i}function ft(r,n){const t=H(r,n==null?void 0:n.in);return Math.trunc(t.getMonth()/3)+1}function Jr(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n),o=e.getFullYear()-a.getFullYear(),i=ft(e)-ft(a);return o*4+i}function en(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return e.getFullYear()-a.getFullYear()}function uf(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n),o=fo(e,a),i=Math.abs($t(e,a));e.setDate(e.getDate()-o*i);const s=+(fo(e,a)===-o),c=o*(i-s);return c===0?0:c}function fo(r,n){const t=r.getFullYear()-n.getFullYear()||r.getMonth()-n.getMonth()||r.getDate()-n.getDate()||r.getHours()-n.getHours()||r.getMinutes()-n.getMinutes()||r.getSeconds()-n.getSeconds()||r.getMilliseconds()-n.getMilliseconds();return t<0?-1:t>0?1:t}function Ms(r,n){const t=H(r,n==null?void 0:n.in);return t.setHours(23,59,59,999),t}function Ps(r,n){const t=H(r,n==null?void 0:n.in),e=t.getMonth();return t.setFullYear(t.getFullYear(),e+1,0),t.setHours(23,59,59,999),t}function Gn(r,n){const t=H(r,n==null?void 0:n.in),e=t.getMonth(),a=e-e%3;return t.setMonth(a,1),t.setHours(0,0,0,0),t}function Os(r,n){const t=H(r,n==null?void 0:n.in);return t.setDate(1),t.setHours(0,0,0,0),t}function Rs(r,n){const t=H(r,n==null?void 0:n.in),e=t.getFullYear();return t.setFullYear(e+1,0,0),t.setHours(23,59,59,999),t}function hn(r,n){const t=H(r,n==null?void 0:n.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function df(r,n){var s,c;const t=Pt(),e=t.weekStartsOn??((c=(s=t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??0,a=H(r,n==null?void 0:n.in),o=a.getDay(),i=(o<e?-7:0)+6-(o-e);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}const ff={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pf=(r,n,t)=>{let e;const a=ff[r];return typeof a=="string"?e=a:n===1?e=a.one:e=a.other.replace("{{count}}",n.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+e:e+" ago":e};function Mn(r){return(n={})=>{const t=n.width?String(n.width):r.defaultWidth;return r.formats[t]||r.formats[r.defaultWidth]}}const hf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},mf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gf={date:Mn({formats:hf,defaultWidth:"full"}),time:Mn({formats:mf,defaultWidth:"full"}),dateTime:Mn({formats:vf,defaultWidth:"full"})},bf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yf=(r,n,t,e)=>bf[r];function tr(r){return(n,t)=>{const e=t!=null&&t.context?String(t.context):"standalone";let a;if(e==="formatting"&&r.formattingValues){const i=r.defaultFormattingWidth||r.defaultWidth,s=t!=null&&t.width?String(t.width):i;a=r.formattingValues[s]||r.formattingValues[i]}else{const i=r.defaultWidth,s=t!=null&&t.width?String(t.width):r.defaultWidth;a=r.values[s]||r.values[i]}const o=r.argumentCallback?r.argumentCallback(n):n;return a[o]}}const wf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Df={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"]},kf={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"]},Cf={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"}},Sf={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"}},_f=(r,n)=>{const t=Number(r),e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Ef={ordinalNumber:_f,era:tr({values:wf,defaultWidth:"wide"}),quarter:tr({values:xf,defaultWidth:"wide",argumentCallback:r=>r-1}),month:tr({values:Df,defaultWidth:"wide"}),day:tr({values:kf,defaultWidth:"wide"}),dayPeriod:tr({values:Cf,defaultWidth:"wide",formattingValues:Sf,defaultFormattingWidth:"wide"})};function rr(r){return(n,t={})=>{const e=t.width,a=e&&r.matchPatterns[e]||r.matchPatterns[r.defaultMatchWidth],o=n.match(a);if(!o)return null;const i=o[0],s=e&&r.parsePatterns[e]||r.parsePatterns[r.defaultParseWidth],c=Array.isArray(s)?Pf(s,d=>d.test(i)):Mf(s,d=>d.test(i));let l;l=r.valueCallback?r.valueCallback(c):c,l=t.valueCallback?t.valueCallback(l):l;const u=n.slice(i.length);return{value:l,rest:u}}}function Mf(r,n){for(const t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&n(r[t]))return t}function Pf(r,n){for(let t=0;t<r.length;t++)if(n(r[t]))return t}function Of(r){return(n,t={})=>{const e=n.match(r.matchPattern);if(!e)return null;const a=e[0],o=n.match(r.parsePattern);if(!o)return null;let i=r.valueCallback?r.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;const s=n.slice(a.length);return{value:i,rest:s}}}const Rf=/^(\d+)(th|st|nd|rd)?/i,Nf=/\d+/i,Tf={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},If={any:[/^b/i,/^(a|c)/i]},Af={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ff={any:[/1/i,/2/i,/3/i,/4/i]},Lf={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},Yf={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]},jf={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},Wf={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]},Hf={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},Bf={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}},$f={ordinalNumber:Of({matchPattern:Rf,parsePattern:Nf,valueCallback:r=>parseInt(r,10)}),era:rr({matchPatterns:Tf,defaultMatchWidth:"wide",parsePatterns:If,defaultParseWidth:"any"}),quarter:rr({matchPatterns:Af,defaultMatchWidth:"wide",parsePatterns:Ff,defaultParseWidth:"any",valueCallback:r=>r+1}),month:rr({matchPatterns:Lf,defaultMatchWidth:"wide",parsePatterns:Yf,defaultParseWidth:"any"}),day:rr({matchPatterns:jf,defaultMatchWidth:"wide",parsePatterns:Wf,defaultParseWidth:"any"}),dayPeriod:rr({matchPatterns:Hf,defaultMatchWidth:"any",parsePatterns:Bf,defaultParseWidth:"any"})},Ns={code:"en-US",formatDistance:pf,formatLong:gf,formatRelative:yf,localize:Ef,match:$f,options:{weekStartsOn:0,firstWeekContainsDate:1}};function zf(r,n){const t=H(r,n==null?void 0:n.in);return $t(t,hn(t))+1}function wa(r,n){const t=H(r,n==null?void 0:n.in),e=+Bt(t)-+sf(t);return Math.round(e/Ss)+1}function xa(r,n){var u,d,f,p;const t=H(r,n==null?void 0:n.in),e=t.getFullYear(),a=Pt(),o=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((p=(f=a.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,i=ee((n==null?void 0:n.in)||r,0);i.setFullYear(e+1,0,o),i.setHours(0,0,0,0);const s=at(i,n),c=ee((n==null?void 0:n.in)||r,0);c.setFullYear(e,0,o),c.setHours(0,0,0,0);const l=at(c,n);return+t>=+s?e+1:+t>=+l?e:e-1}function Vf(r,n){var s,c,l,u;const t=Pt(),e=(n==null?void 0:n.firstWeekContainsDate)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??t.firstWeekContainsDate??((u=(l=t.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,a=xa(r,n),o=ee((n==null?void 0:n.in)||r,0);return o.setFullYear(a,0,e),o.setHours(0,0,0,0),at(o,n)}function Ts(r,n){const t=H(r,n==null?void 0:n.in),e=+at(t,n)-+Vf(t,n);return Math.round(e/Ss)+1}function J(r,n){const t=r<0?"-":"",e=Math.abs(r).toString().padStart(n,"0");return t+e}const dt={y(r,n){const t=r.getFullYear(),e=t>0?t:1-t;return J(n==="yy"?e%100:e,n.length)},M(r,n){const t=r.getMonth();return n==="M"?String(t+1):J(t+1,2)},d(r,n){return J(r.getDate(),n.length)},a(r,n){const t=r.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(r,n){return J(r.getHours()%12||12,n.length)},H(r,n){return J(r.getHours(),n.length)},m(r,n){return J(r.getMinutes(),n.length)},s(r,n){return J(r.getSeconds(),n.length)},S(r,n){const t=n.length,e=r.getMilliseconds(),a=Math.trunc(e*Math.pow(10,t-3));return J(a,n.length)}},It={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},po={G:function(r,n,t){const e=r.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"});case"GGGGG":return t.era(e,{width:"narrow"});case"GGGG":default:return t.era(e,{width:"wide"})}},y:function(r,n,t){if(n==="yo"){const e=r.getFullYear(),a=e>0?e:1-e;return t.ordinalNumber(a,{unit:"year"})}return dt.y(r,n)},Y:function(r,n,t,e){const a=xa(r,e),o=a>0?a:1-a;if(n==="YY"){const i=o%100;return J(i,2)}return n==="Yo"?t.ordinalNumber(o,{unit:"year"}):J(o,n.length)},R:function(r,n){const t=Es(r);return J(t,n.length)},u:function(r,n){const t=r.getFullYear();return J(t,n.length)},Q:function(r,n,t){const e=Math.ceil((r.getMonth()+1)/3);switch(n){case"Q":return String(e);case"QQ":return J(e,2);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(e,{width:"wide",context:"formatting"})}},q:function(r,n,t){const e=Math.ceil((r.getMonth()+1)/3);switch(n){case"q":return String(e);case"qq":return J(e,2);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(e,{width:"wide",context:"standalone"})}},M:function(r,n,t){const e=r.getMonth();switch(n){case"M":case"MM":return dt.M(r,n);case"Mo":return t.ordinalNumber(e+1,{unit:"month"});case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(e,{width:"wide",context:"formatting"})}},L:function(r,n,t){const e=r.getMonth();switch(n){case"L":return String(e+1);case"LL":return J(e+1,2);case"Lo":return t.ordinalNumber(e+1,{unit:"month"});case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(e,{width:"wide",context:"standalone"})}},w:function(r,n,t,e){const a=Ts(r,e);return n==="wo"?t.ordinalNumber(a,{unit:"week"}):J(a,n.length)},I:function(r,n,t){const e=wa(r);return n==="Io"?t.ordinalNumber(e,{unit:"week"}):J(e,n.length)},d:function(r,n,t){return n==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):dt.d(r,n)},D:function(r,n,t){const e=zf(r);return n==="Do"?t.ordinalNumber(e,{unit:"dayOfYear"}):J(e,n.length)},E:function(r,n,t){const e=r.getDay();switch(n){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"});case"EEEE":default:return t.day(e,{width:"wide",context:"formatting"})}},e:function(r,n,t,e){const a=r.getDay(),o=(a-e.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return J(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(r,n,t,e){const a=r.getDay(),o=(a-e.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return J(o,n.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(r,n,t){const e=r.getDay(),a=e===0?7:e;switch(n){case"i":return String(a);case"ii":return J(a,n.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(e,{width:"short",context:"formatting"});case"iiii":default:return t.day(e,{width:"wide",context:"formatting"})}},a:function(r,n,t){const a=r.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,n,t){const e=r.getHours();let a;switch(e===12?a=It.noon:e===0?a=It.midnight:a=e/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,n,t){const e=r.getHours();let a;switch(e>=17?a=It.evening:e>=12?a=It.afternoon:e>=4?a=It.morning:a=It.night,n){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,n,t){if(n==="ho"){let e=r.getHours()%12;return e===0&&(e=12),t.ordinalNumber(e,{unit:"hour"})}return dt.h(r,n)},H:function(r,n,t){return n==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):dt.H(r,n)},K:function(r,n,t){const e=r.getHours()%12;return n==="Ko"?t.ordinalNumber(e,{unit:"hour"}):J(e,n.length)},k:function(r,n,t){let e=r.getHours();return e===0&&(e=24),n==="ko"?t.ordinalNumber(e,{unit:"hour"}):J(e,n.length)},m:function(r,n,t){return n==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):dt.m(r,n)},s:function(r,n,t){return n==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):dt.s(r,n)},S:function(r,n){return dt.S(r,n)},X:function(r,n,t){const e=r.getTimezoneOffset();if(e===0)return"Z";switch(n){case"X":return mo(e);case"XXXX":case"XX":return Dt(e);case"XXXXX":case"XXX":default:return Dt(e,":")}},x:function(r,n,t){const e=r.getTimezoneOffset();switch(n){case"x":return mo(e);case"xxxx":case"xx":return Dt(e);case"xxxxx":case"xxx":default:return Dt(e,":")}},O:function(r,n,t){const e=r.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ho(e,":");case"OOOO":default:return"GMT"+Dt(e,":")}},z:function(r,n,t){const e=r.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ho(e,":");case"zzzz":default:return"GMT"+Dt(e,":")}},t:function(r,n,t){const e=Math.trunc(+r/1e3);return J(e,n.length)},T:function(r,n,t){return J(+r,n.length)}};function ho(r,n=""){const t=r>0?"-":"+",e=Math.abs(r),a=Math.trunc(e/60),o=e%60;return o===0?t+String(a):t+String(a)+n+J(o,2)}function mo(r,n){return r%60===0?(r>0?"-":"+")+J(Math.abs(r)/60,2):Dt(r,n)}function Dt(r,n=""){const t=r>0?"-":"+",e=Math.abs(r),a=J(Math.trunc(e/60),2),o=J(e%60,2);return t+a+n+o}const vo=(r,n)=>{switch(r){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Is=(r,n)=>{switch(r){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Qf=(r,n)=>{const t=r.match(/(P+)(p+)?/)||[],e=t[1],a=t[2];if(!a)return vo(r,n);let o;switch(e){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",vo(e,n)).replace("{{time}}",Is(a,n))},Xn={p:Is,P:Qf},Uf=/^D+$/,Kf=/^Y+$/,qf=["D","DD","YY","YYYY"];function Gf(r){return Uf.test(r)}function Xf(r){return Kf.test(r)}function Zf(r,n,t){const e=Jf(r,n,t);if(console.warn(e),qf.includes(r))throw new RangeError(e)}function Jf(r,n,t){const e=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${n}\`) for formatting ${e} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ep=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rp=/^'([^]*?)'?$/,np=/''/g,ap=/[a-zA-Z]/;function go(r,n,t){var u,d,f,p,h,m,v,y;const e=Pt(),a=(t==null?void 0:t.locale)??e.locale??Ns,o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??e.firstWeekContainsDate??((p=(f=e.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,i=(t==null?void 0:t.weekStartsOn)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??e.weekStartsOn??((y=(v=e.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,s=H(r,t==null?void 0:t.in);if(!Xr(s))throw new RangeError("Invalid time value");let c=n.match(tp).map(k=>{const w=k[0];if(w==="p"||w==="P"){const C=Xn[w];return C(k,a.formatLong)}return k}).join("").match(ep).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const w=k[0];if(w==="'")return{isToken:!1,value:op(k)};if(po[w])return{isToken:!0,value:k};if(w.match(ap))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:k}});a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return c.map(k=>{if(!k.isToken)return k.value;const w=k.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&Xf(w)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Gf(w))&&Zf(w,n,String(r));const C=po[w[0]];return C(s,w,a.localize,l)}).join("")}function op(r){const n=r.match(rp);return n?n[1].replace(np,"'"):r}function bo(r,n){return H(r,n==null?void 0:n.in).getDate()}function ip(r,n){return H(r,n==null?void 0:n.in).getDay()}function sp(r,n){const t=H(r,n==null?void 0:n.in),e=t.getFullYear(),a=t.getMonth(),o=ee(t,0);return o.setFullYear(e,a+1,0),o.setHours(0,0,0,0),o.getDate()}function cp(){return Object.assign({},Pt())}function Re(r,n){return H(r,n==null?void 0:n.in).getHours()}function lp(r,n){const t=H(r,n==null?void 0:n.in).getDay();return t===0?7:t}function Ne(r,n){return H(r,n==null?void 0:n.in).getMinutes()}function we(r,n){return H(r,n==null?void 0:n.in).getMonth()}function mt(r){return H(r).getSeconds()}function Zn(r){return+H(r)}function K(r,n){return H(r,n==null?void 0:n.in).getFullYear()}function yt(r,n){return+H(r)>+H(n)}function ze(r,n){return+H(r)<+H(n)}function up(r,n){return+H(r)==+H(n)}function dp(r,n){const t=fp(n)?new n(0):ee(n,0);return t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),t.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),t}function fp(r){var n;return typeof r=="function"&&((n=r.prototype)==null?void 0:n.constructor)===r}const pp=10;class As{constructor(){F(this,"subPriority",0)}validate(n,t){return!0}}class hp extends As{constructor(n,t,e,a,o){super(),this.value=n,this.validateValue=t,this.setValue=e,this.priority=a,o&&(this.subPriority=o)}validate(n,t){return this.validateValue(n,this.value,t)}set(n,t,e){return this.setValue(n,t,this.value,e)}}class mp extends As{constructor(t,e){super();F(this,"priority",pp);F(this,"subPriority",-1);this.context=t||(a=>ee(e,a))}set(t,e){return e.timestampIsSet?t:ee(t,dp(t,this.context))}}class X{run(n,t,e,a){const o=this.parse(n,t,e,a);return o?{setter:new hp(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,t,e){return!0}}class vp extends X{constructor(){super(...arguments);F(this,"priority",140);F(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,a){switch(e){case"G":case"GG":case"GGG":return a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"});case"GGGGG":return a.era(t,{width:"narrow"});case"GGGG":default:return a.era(t,{width:"wide"})||a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"})}}set(t,e,a){return e.era=a,t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}}const ce={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}/},He={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 le(r,n){return r&&{value:n(r.value),rest:r.rest}}function ne(r,n){const t=n.match(r);return t?{value:parseInt(t[0],10),rest:n.slice(t[0].length)}:null}function Be(r,n){const t=n.match(r);if(!t)return null;if(t[0]==="Z")return{value:0,rest:n.slice(1)};const e=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,i=t[5]?parseInt(t[5],10):0;return{value:e*(a*pn+o*fn+i*nf),rest:n.slice(t[0].length)}}function Fs(r){return ne(ce.anyDigitsSigned,r)}function ie(r,n){switch(r){case 1:return ne(ce.singleDigit,n);case 2:return ne(ce.twoDigits,n);case 3:return ne(ce.threeDigits,n);case 4:return ne(ce.fourDigits,n);default:return ne(new RegExp("^\\d{1,"+r+"}"),n)}}function tn(r,n){switch(r){case 1:return ne(ce.singleDigitSigned,n);case 2:return ne(ce.twoDigitsSigned,n);case 3:return ne(ce.threeDigitsSigned,n);case 4:return ne(ce.fourDigitsSigned,n);default:return ne(new RegExp("^-?\\d{1,"+r+"}"),n)}}function Da(r){switch(r){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 Ls(r,n){const t=n>0,e=t?n:1-n;let a;if(e<=50)a=r||100;else{const o=e+50,i=Math.trunc(o/100)*100,s=r>=o%100;a=r+i-(s?100:0)}return t?a:1-a}function Ys(r){return r%400===0||r%4===0&&r%100!==0}class gp extends X{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,a){const o=i=>({year:i,isTwoDigitYear:e==="yy"});switch(e){case"y":return le(ie(4,t),o);case"yo":return le(a.ordinalNumber(t,{unit:"year"}),o);default:return le(ie(e.length,t),o)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,a){const o=t.getFullYear();if(a.isTwoDigitYear){const s=Ls(a.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in e)||e.era===1?a.year:1-a.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class bp extends X{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,a){const o=i=>({year:i,isTwoDigitYear:e==="YY"});switch(e){case"Y":return le(ie(4,t),o);case"Yo":return le(a.ordinalNumber(t,{unit:"year"}),o);default:return le(ie(e.length,t),o)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,a,o){const i=xa(t,o);if(a.isTwoDigitYear){const c=Ls(a.year,i);return t.setFullYear(c,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),at(t,o)}const s=!("era"in e)||e.era===1?a.year:1-a.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),at(t,o)}}class yp extends X{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return tn(e==="R"?4:e.length,t)}set(t,e,a){const o=ee(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),Bt(o)}}class wp extends X{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return tn(e==="u"?4:e.length,t)}set(t,e,a){return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}}class xp extends X{constructor(){super(...arguments);F(this,"priority",120);F(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,a){switch(e){case"Q":case"QQ":return ie(e.length,t);case"Qo":return a.ordinalNumber(t,{unit:"quarter"});case"QQQ":return a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(t,{width:"wide",context:"formatting"})||a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}}class Dp extends X{constructor(){super(...arguments);F(this,"priority",120);F(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,a){switch(e){case"q":case"qq":return ie(e.length,t);case"qo":return a.ordinalNumber(t,{unit:"quarter"});case"qqq":return a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(t,{width:"wide",context:"standalone"})||a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}}class kp extends X{constructor(){super(...arguments);F(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);F(this,"priority",110)}parse(t,e,a){const o=i=>i-1;switch(e){case"M":return le(ne(ce.month,t),o);case"MM":return le(ie(2,t),o);case"Mo":return le(a.ordinalNumber(t,{unit:"month"}),o);case"MMM":return a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(t,{width:"wide",context:"formatting"})||a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}class Cp extends X{constructor(){super(...arguments);F(this,"priority",110);F(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,a){const o=i=>i-1;switch(e){case"L":return le(ne(ce.month,t),o);case"LL":return le(ie(2,t),o);case"Lo":return le(a.ordinalNumber(t,{unit:"month"}),o);case"LLL":return a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(t,{width:"wide",context:"standalone"})||a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}function Sp(r,n,t){const e=H(r,t==null?void 0:t.in),a=Ts(e,t)-n;return e.setDate(e.getDate()-a*7),H(e,t==null?void 0:t.in)}class _p extends X{constructor(){super(...arguments);F(this,"priority",100);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,a){switch(e){case"w":return ne(ce.week,t);case"wo":return a.ordinalNumber(t,{unit:"week"});default:return ie(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,a,o){return at(Sp(t,a,o),o)}}function Ep(r,n,t){const e=H(r,t==null?void 0:t.in),a=wa(e,t)-n;return e.setDate(e.getDate()-a*7),e}class Mp extends X{constructor(){super(...arguments);F(this,"priority",100);F(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,a){switch(e){case"I":return ne(ce.week,t);case"Io":return a.ordinalNumber(t,{unit:"week"});default:return ie(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,a){return Bt(Ep(t,a))}}const Pp=[31,28,31,30,31,30,31,31,30,31,30,31],Op=[31,29,31,30,31,30,31,31,30,31,30,31];class Rp extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"subPriority",1);F(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,a){switch(e){case"d":return ne(ce.date,t);case"do":return a.ordinalNumber(t,{unit:"date"});default:return ie(e.length,t)}}validate(t,e){const a=t.getFullYear(),o=Ys(a),i=t.getMonth();return o?e>=1&&e<=Op[i]:e>=1&&e<=Pp[i]}set(t,e,a){return t.setDate(a),t.setHours(0,0,0,0),t}}class Np extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"subpriority",1);F(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,a){switch(e){case"D":case"DD":return ne(ce.dayOfYear,t);case"Do":return a.ordinalNumber(t,{unit:"date"});default:return ie(e.length,t)}}validate(t,e){const a=t.getFullYear();return Ys(a)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,a){return t.setMonth(0,a),t.setHours(0,0,0,0),t}}function ka(r,n,t){var d,f,p,h;const e=Pt(),a=(t==null?void 0:t.weekStartsOn)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??e.weekStartsOn??((h=(p=e.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??0,o=H(r,t==null?void 0:t.in),i=o.getDay(),c=(n%7+7)%7,l=7-a,u=n<0||n>6?n-(i+l)%7:(c+l)%7-(i+l)%7;return Ie(o,u,t)}class Tp extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,a){switch(e){case"E":case"EE":case"EEE":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,a,o){return t=ka(t,a,o),t.setHours(0,0,0,0),t}}class Ip extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,a,o){const i=s=>{const c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(e){case"e":case"ee":return le(ie(e.length,t),i);case"eo":return le(a.ordinalNumber(t,{unit:"day"}),i);case"eee":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeeee":return a.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,a,o){return t=ka(t,a,o),t.setHours(0,0,0,0),t}}class Ap extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,a,o){const i=s=>{const c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(e){case"c":case"cc":return le(ie(e.length,t),i);case"co":return le(a.ordinalNumber(t,{unit:"day"}),i);case"ccc":return a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"ccccc":return a.day(t,{width:"narrow",context:"standalone"});case"cccccc":return a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(t,{width:"wide",context:"standalone"})||a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,a,o){return t=ka(t,a,o),t.setHours(0,0,0,0),t}}function Fp(r,n,t){const e=H(r,t==null?void 0:t.in),a=lp(e,t),o=n-a;return Ie(e,o,t)}class Lp extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,a){const o=i=>i===0?7:i;switch(e){case"i":case"ii":return ie(e.length,t);case"io":return a.ordinalNumber(t,{unit:"day"});case"iii":return le(a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return le(a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return le(a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return le(a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,e){return e>=1&&e<=7}set(t,e,a){return t=Fp(t,a),t.setHours(0,0,0,0),t}}class Yp extends X{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,a){switch(e){case"a":case"aa":case"aaa":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,a){return t.setHours(Da(a),0,0,0),t}}class jp extends X{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,a){switch(e){case"b":case"bb":case"bbb":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,a){return t.setHours(Da(a),0,0,0),t}}class Wp extends X{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,a){switch(e){case"B":case"BB":case"BBB":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,a){return t.setHours(Da(a),0,0,0),t}}class Hp extends X{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,a){switch(e){case"h":return ne(ce.hour12h,t);case"ho":return a.ordinalNumber(t,{unit:"hour"});default:return ie(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,a){const o=t.getHours()>=12;return o&&a<12?t.setHours(a+12,0,0,0):!o&&a===12?t.setHours(0,0,0,0):t.setHours(a,0,0,0),t}}class Bp extends X{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,a){switch(e){case"H":return ne(ce.hour23h,t);case"Ho":return a.ordinalNumber(t,{unit:"hour"});default:return ie(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,a){return t.setHours(a,0,0,0),t}}class $p extends X{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,a){switch(e){case"K":return ne(ce.hour11h,t);case"Ko":return a.ordinalNumber(t,{unit:"hour"});default:return ie(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,a){return t.getHours()>=12&&a<12?t.setHours(a+12,0,0,0):t.setHours(a,0,0,0),t}}class zp extends X{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,a){switch(e){case"k":return ne(ce.hour24h,t);case"ko":return a.ordinalNumber(t,{unit:"hour"});default:return ie(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,a){const o=a<=24?a%24:a;return t.setHours(o,0,0,0),t}}class Vp extends X{constructor(){super(...arguments);F(this,"priority",60);F(this,"incompatibleTokens",["t","T"])}parse(t,e,a){switch(e){case"m":return ne(ce.minute,t);case"mo":return a.ordinalNumber(t,{unit:"minute"});default:return ie(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,a){return t.setMinutes(a,0,0),t}}class Qp extends X{constructor(){super(...arguments);F(this,"priority",50);F(this,"incompatibleTokens",["t","T"])}parse(t,e,a){switch(e){case"s":return ne(ce.second,t);case"so":return a.ordinalNumber(t,{unit:"second"});default:return ie(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,a){return t.setSeconds(a,0),t}}class Up extends X{constructor(){super(...arguments);F(this,"priority",30);F(this,"incompatibleTokens",["t","T"])}parse(t,e){const a=o=>Math.trunc(o*Math.pow(10,-e.length+3));return le(ie(e.length,t),a)}set(t,e,a){return t.setMilliseconds(a),t}}class Kp extends X{constructor(){super(...arguments);F(this,"priority",10);F(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Be(He.basicOptionalMinutes,t);case"XX":return Be(He.basic,t);case"XXXX":return Be(He.basicOptionalSeconds,t);case"XXXXX":return Be(He.extendedOptionalSeconds,t);case"XXX":default:return Be(He.extended,t)}}set(t,e,a){return e.timestampIsSet?t:ee(t,t.getTime()-qr(t)-a)}}class qp extends X{constructor(){super(...arguments);F(this,"priority",10);F(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Be(He.basicOptionalMinutes,t);case"xx":return Be(He.basic,t);case"xxxx":return Be(He.basicOptionalSeconds,t);case"xxxxx":return Be(He.extendedOptionalSeconds,t);case"xxx":default:return Be(He.extended,t)}}set(t,e,a){return e.timestampIsSet?t:ee(t,t.getTime()-qr(t)-a)}}class Gp extends X{constructor(){super(...arguments);F(this,"priority",40);F(this,"incompatibleTokens","*")}parse(t){return Fs(t)}set(t,e,a){return[ee(t,a*1e3),{timestampIsSet:!0}]}}class Xp extends X{constructor(){super(...arguments);F(this,"priority",20);F(this,"incompatibleTokens","*")}parse(t){return Fs(t)}set(t,e,a){return[ee(t,a),{timestampIsSet:!0}]}}const Zp={G:new vp,y:new gp,Y:new bp,R:new yp,u:new wp,Q:new xp,q:new Dp,M:new kp,L:new Cp,w:new _p,I:new Mp,d:new Rp,D:new Np,E:new Tp,e:new Ip,c:new Ap,i:new Lp,a:new Yp,b:new jp,B:new Wp,h:new Hp,H:new Bp,K:new $p,k:new zp,m:new Vp,s:new Qp,S:new Up,X:new Kp,x:new qp,t:new Gp,T:new Xp},Jp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,th=/^'([^]*?)'?$/,rh=/''/g,nh=/\S/,ah=/[a-zA-Z]/;function oh(r,n,t,e){var v,y,k,w,C,_,P,E;const a=()=>ee((e==null?void 0:e.in)||t,NaN),o=cp(),i=(e==null?void 0:e.locale)??o.locale??Ns,s=(e==null?void 0:e.firstWeekContainsDate)??((y=(v=e==null?void 0:e.locale)==null?void 0:v.options)==null?void 0:y.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(k=o.locale)==null?void 0:k.options)==null?void 0:w.firstWeekContainsDate)??1,c=(e==null?void 0:e.weekStartsOn)??((_=(C=e==null?void 0:e.locale)==null?void 0:C.options)==null?void 0:_.weekStartsOn)??o.weekStartsOn??((E=(P=o.locale)==null?void 0:P.options)==null?void 0:E.weekStartsOn)??0;if(!n)return r?a():H(t,e==null?void 0:e.in);const l={firstWeekContainsDate:s,weekStartsOn:c,locale:i},u=[new mp(e==null?void 0:e.in,t)],d=n.match(eh).map(D=>{const S=D[0];if(S in Xn){const N=Xn[S];return N(D,i.formatLong)}return D}).join("").match(Jp),f=[];for(let D of d){const S=D[0],N=Zp[S];if(N){const{incompatibleTokens:A}=N;if(Array.isArray(A)){const L=f.find(W=>A.includes(W.token)||W.token===S);if(L)throw new RangeError(`The format string mustn't contain \`${L.fullToken}\` and \`${D}\` at the same time`)}else if(N.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);f.push({token:S,fullToken:D});const M=N.run(r,D,i.match,l);if(!M)return a();u.push(M.setter),r=M.rest}else{if(S.match(ah))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if(D==="''"?D="'":S==="'"&&(D=ih(D)),r.indexOf(D)===0)r=r.slice(D.length);else return a()}}if(r.length>0&&nh.test(r))return a();const p=u.map(D=>D.priority).sort((D,S)=>S-D).filter((D,S,N)=>N.indexOf(D)===S).map(D=>u.filter(S=>S.priority===D).sort((S,N)=>N.subPriority-S.subPriority)).map(D=>D[0]);let h=H(t,e==null?void 0:e.in);if(isNaN(+h))return a();const m={};for(const D of p){if(!D.validate(h,l))return a();const S=D.set(h,m,l);Array.isArray(S)?(h=S[0],Object.assign(m,S[1])):h=S}return h}function ih(r){return r.match(th)[1].replace(rh,"'")}function sh(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()}function ch(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return+Gn(e)==+Gn(a)}function lh(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return e.getFullYear()===a.getFullYear()}function ur(r,n,t){const e=+H(r,t==null?void 0:t.in),[a,o]=[+H(n.start,t==null?void 0:t.in),+H(n.end,t==null?void 0:t.in)].sort((i,s)=>i-s);return e>=a&&e<=o}function uh(r,n,t){return Ie(r,-1,t)}function dh(r,n){const t=()=>ee(n==null?void 0:n.in,NaN),a=mh(r);let o;if(a.date){const l=vh(a.date,2);o=gh(l.restDateString,l.year)}if(!o||isNaN(+o))return t();const i=+o;let s=0,c;if(a.time&&(s=bh(a.time),isNaN(s)))return t();if(a.timezone){if(c=yh(a.timezone),isNaN(c))return t()}else{const l=new Date(i+s),u=H(0,n==null?void 0:n.in);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return H(i+s+c,n==null?void 0:n.in)}const Sr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},fh=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ph=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,hh=/^([+-])(\d{2})(?::?(\d{2}))?$/;function mh(r){const n={},t=r.split(Sr.dateTimeDelimiter);let e;if(t.length>2)return n;if(/:/.test(t[0])?e=t[0]:(n.date=t[0],e=t[1],Sr.timeZoneDelimiter.test(n.date)&&(n.date=r.split(Sr.timeZoneDelimiter)[0],e=r.substr(n.date.length,r.length))),e){const a=Sr.timezone.exec(e);a?(n.time=e.replace(a[1],""),n.timezone=a[1]):n.time=e}return n}function vh(r,n){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),e=r.match(t);if(!e)return{year:NaN,restDateString:""};const a=e[1]?parseInt(e[1]):null,o=e[2]?parseInt(e[2]):null;return{year:o===null?a:o*100,restDateString:r.slice((e[1]||e[2]).length)}}function gh(r,n){if(n===null)return new Date(NaN);const t=r.match(fh);if(!t)return new Date(NaN);const e=!!t[4],a=nr(t[1]),o=nr(t[2])-1,i=nr(t[3]),s=nr(t[4]),c=nr(t[5])-1;if(e)return Ch(n,s,c)?wh(n,s,c):new Date(NaN);{const l=new Date(0);return!Dh(n,o,i)||!kh(n,a)?new Date(NaN):(l.setUTCFullYear(n,o,Math.max(a,i)),l)}}function nr(r){return r?parseInt(r):1}function bh(r){const n=r.match(ph);if(!n)return NaN;const t=Pn(n[1]),e=Pn(n[2]),a=Pn(n[3]);return Sh(t,e,a)?t*pn+e*fn+a*1e3:NaN}function Pn(r){return r&&parseFloat(r.replace(",","."))||0}function yh(r){if(r==="Z")return 0;const n=r.match(hh);if(!n)return 0;const t=n[1]==="+"?-1:1,e=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return _h(e,a)?t*(e*pn+a*fn):NaN}function wh(r,n,t){const e=new Date(0);e.setUTCFullYear(r,0,4);const a=e.getUTCDay()||7,o=(n-1)*7+t+1-a;return e.setUTCDate(e.getUTCDate()+o),e}const xh=[31,null,31,30,31,30,31,31,30,31,30,31];function js(r){return r%400===0||r%4===0&&r%100!==0}function Dh(r,n,t){return n>=0&&n<=11&&t>=1&&t<=(xh[n]||(js(r)?29:28))}function kh(r,n){return n>=1&&n<=(js(r)?366:365)}function Ch(r,n,t){return n>=1&&n<=53&&t>=0&&t<=6}function Sh(r,n,t){return r===24?n===0&&t===0:t>=0&&t<60&&n>=0&&n<60&&r>=0&&r<25}function _h(r,n){return n>=0&&n<=59}function ke(r,n,t){const e=H(r,t==null?void 0:t.in),a=e.getFullYear(),o=e.getDate(),i=ee(r,0);i.setFullYear(a,n,15),i.setHours(0,0,0,0);const s=sp(i);return e.setMonth(n,Math.min(o,s)),e}function Yr(r,n,t){const e=H(r,t==null?void 0:t.in);return e.setHours(n),e}function jr(r,n,t){const e=H(r,t==null?void 0:t.in);return e.setMinutes(n),e}function Lt(r,n,t){const e=H(r,t==null?void 0:t.in),a=Math.trunc(e.getMonth()/3)+1,o=n-a;return ke(e,e.getMonth()+o*3)}function Wr(r,n,t){const e=H(r,t==null?void 0:t.in);return e.setSeconds(n),e}function Ye(r,n,t){const e=H(r,t==null?void 0:t.in);return isNaN(+e)?ee(r,NaN):(e.setFullYear(n),e)}function St(r,n,t){return Ae(r,-n,t)}function Ws(r,n,t){return ya(r,-1,t)}function yo(r,n,t){return Gr(r,-1,t)}function zt(r,n,t){return Ze(r,-n,t)}var Eh=typeof document<"u",Mh=function(){},rn=Eh?b.useLayoutEffect:Mh;const Ph={...g},Oh=Ph.useInsertionEffect,Rh=Oh||(r=>r());function Nh(r){const n=g.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Rh(()=>{n.current=r}),g.useCallback(function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return n.current==null?void 0:n.current(...e)},[])}const Th={...g};let wo=!1,Ih=0;const xo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ih++;function Ah(){const[r,n]=g.useState(()=>wo?xo():void 0);return rn(()=>{r==null&&n(xo())},[]),g.useEffect(()=>{wo=!0},[]),r}const Fh=Th.useId,Hs=Fh||Ah;let dr;process.env.NODE_ENV!=="production"&&(dr=new Set);function Lh(){for(var r,n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];const a="Floating UI: "+t.join(" ");if(!((r=dr)!=null&&r.has(a))){var o;(o=dr)==null||o.add(a),console.warn(a)}}function Yh(){for(var r,n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];const a="Floating UI: "+t.join(" ");if(!((r=dr)!=null&&r.has(a))){var o;(o=dr)==null||o.add(a),console.error(a)}}const jh=g.forwardRef(function(n,t){const{context:{placement:e,elements:{floating:a},middlewareData:{arrow:o,shift:i}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:p,style:{transform:h,...m}={},...v}=n;process.env.NODE_ENV!=="production"&&(t||Lh("The `ref` prop is required for `FloatingArrow`."));const y=Hs(),[k,w]=g.useState(!1);if(rn(()=>{if(!a)return;Oe(a).direction==="rtl"&&w(!0)},[a]),!a)return null;const[C,_]=e.split("-"),P=C==="top"||C==="bottom";let E=d;(P&&i!=null&&i.x||!P&&i!=null&&i.y)&&(E=null);const D=u*2,S=D/2,N=s/2*(l/-8+1),A=c/2*l/4,M=!!p,L=E&&_==="end"?"bottom":"top";let W=E&&_==="end"?"right":"left";E&&k&&(W=_==="end"?"left":"right");const $=(o==null?void 0:o.x)!=null?E||o.x:"",R=(o==null?void 0:o.y)!=null?E||o.y:"",I=p||"M0,0"+(" H"+s)+(" L"+(s-N)+","+(c-A))+(" Q"+s/2+","+c+" "+N+","+(c-A))+" Z",O={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[C];return x.jsxs("svg",{...v,"aria-hidden":!0,ref:t,width:M?s:s+D,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[W]:$,[L]:R,[C]:P||M?"100%":"calc(100% - "+D/2+"px)",transform:[O,h].filter(B=>!!B).join(" "),...m},children:[D>0&&x.jsx("path",{clipPath:"url(#"+y+")",fill:"none",stroke:f,strokeWidth:D+(p?0:1),d:I}),x.jsx("path",{stroke:D&&!p?v.fill:"none",d:I}),x.jsx("clipPath",{id:y,children:x.jsx("rect",{x:-S,y:S*(M?-1:1),width:s+D,height:s})})]})});function Wh(){const r=new Map;return{emit(n,t){var e;(e=r.get(n))==null||e.forEach(a=>a(t))},on(n,t){r.has(n)||r.set(n,new Set),r.get(n).add(t)},off(n,t){var e;(e=r.get(n))==null||e.delete(t)}}}const Hh=g.createContext(null),Bh=g.createContext(null),$h=()=>{var r;return((r=g.useContext(Hh))==null?void 0:r.id)||null},zh=()=>g.useContext(Bh);function Vh(r){const{open:n=!1,onOpenChange:t,elements:e}=r,a=Hs(),o=g.useRef({}),[i]=g.useState(()=>Wh()),s=$h()!=null;if(process.env.NODE_ENV!=="production"){const p=e.reference;p&&!be(p)&&Yh("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=g.useState(e.reference),u=Nh((p,h,m)=>{o.current.openEvent=p?h:void 0,i.emit("openchange",{open:p,event:h,reason:m,nested:s}),t==null||t(p,h,m)}),d=g.useMemo(()=>({setPositionReference:l}),[]),f=g.useMemo(()=>({reference:c||e.reference||null,floating:e.floating||null,domReference:e.reference}),[c,e.reference,e.floating]);return g.useMemo(()=>({dataRef:o,open:n,onOpenChange:u,elements:f,events:i,floatingId:a,refs:d}),[n,u,f,i,a,d])}function Qh(r){r===void 0&&(r={});const{nodeId:n}=r,t=Vh({...r,elements:{reference:null,floating:null,...r.elements}}),e=r.rootContext||t,a=e.elements,[o,i]=g.useState(null),[s,c]=g.useState(null),u=(a==null?void 0:a.domReference)||o,d=g.useRef(null),f=zh();rn(()=>{u&&(d.current=u)},[u]);const p=Yi({...r,elements:{...a,...s&&{reference:s}}}),h=g.useCallback(w=>{const C=be(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),getClientRects:()=>w.getClientRects(),contextElement:w}:w;c(C),p.refs.setReference(C)},[p.refs]),m=g.useCallback(w=>{(be(w)||w===null)&&(d.current=w,i(w)),(be(p.refs.reference.current)||p.refs.reference.current===null||w!==null&&!be(w))&&p.refs.setReference(w)},[p.refs]),v=g.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d}),[p.refs,m,h]),y=g.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),k=g.useMemo(()=>({...p,...e,refs:v,elements:y,nodeId:n}),[p,v,y,n,e]);return rn(()=>{e.dataRef.current.floatingContext=k;const w=f==null?void 0:f.nodesRef.current.find(C=>C.id===n);w&&(w.context=k)}),g.useMemo(()=>({...p,context:k,refs:v,elements:y}),[p,v,y,k])}/*!
102
+ `}),o&&x.jsxs("label",{htmlFor:v,style:{fontSize:"14px",fontWeight:500,color:"#344054"},children:[o,i&&x.jsx("span",{style:{color:"#F04438",marginLeft:"2px"},children:"*"})]}),x.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[s&&x.jsx("div",{style:{position:"absolute",left:"10px",color:"#6F778E",display:"flex",alignItems:"center"},children:s}),x.jsx("input",{id:v,type:n,ref:C,"aria-invalid":!!e,"aria-describedby":e?`${v}-error`:a?`${v}-hint`:void 0,placeholder:"Enter text..",style:E,className:Zo(r,n==="number"&&"number-input-with-custom-controls"),onChange:P,...h}),n==="number"&&x.jsxs("div",{style:{position:"absolute",right:"8px",top:"50%",transform:"translateY(-50%)",display:"flex",gap:"2px",flexDirection:"column",height:"24px",justifyContent:"center"},children:[x.jsx("button",{type:"button","aria-label":"Increase value",disabled:h.disabled||h.readOnly||h.step==="any",onMouseDown:D=>D.preventDefault(),onClick:()=>_("up"),style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",padding:0,border:0,background:"transparent",color:"#6F778E",cursor:h.disabled||h.readOnly||h.step==="any"?"not-allowed":"pointer"},children:x.jsx(Jd,{})}),x.jsx("button",{type:"button","aria-label":"Decrease value",disabled:h.disabled||h.readOnly||h.step==="any",onMouseDown:D=>D.preventDefault(),onClick:()=>_("down"),style:{display:"flex",alignItems:"center",justifyContent:"center",width:"16px",padding:0,border:0,background:"transparent",color:"#6F778E",cursor:h.disabled||h.readOnly||h.step==="any"?"not-allowed":"pointer"},children:x.jsx(ef,{})})]})]}),e&&x.jsx("p",{id:`${v}-error`,style:{fontSize:"12px",color:"#F04438",margin:0},children:e}),!e&&a&&x.jsx("p",{id:`${v}-hint`,style:{fontSize:"12px",color:"#667085",margin:0},children:a})]})});Cs.displayName="Input";const Ss=6048e5,rf=864e5,fn=6e4,pn=36e5,nf=1e3,co=Symbol.for("constructDateFrom");function ee(r,n){return typeof r=="function"?r(n):r&&typeof r=="object"&&co in r?r[co](n):r instanceof Date?new r.constructor(n):new Date(n)}function H(r,n){return ee(n||r,r)}function Ie(r,n,t){const e=H(r,t==null?void 0:t.in);return isNaN(n)?ee((t==null?void 0:t.in)||r,NaN):(n&&e.setDate(e.getDate()+n),e)}function Ae(r,n,t){const e=H(r,t==null?void 0:t.in);if(isNaN(n))return ee(r,NaN);if(!n)return e;const a=e.getDate(),o=ee(r,e.getTime());o.setMonth(e.getMonth()+n+1,0);const i=o.getDate();return a>=i?o:(e.setFullYear(o.getFullYear(),o.getMonth(),a),e)}function _s(r,n,t){return ee(r,+H(r)+n)}function af(r,n,t){return _s(r,n*pn)}let of={};function Pt(){return of}function at(r,n){var s,c,l,u;const t=Pt(),e=(n==null?void 0:n.weekStartsOn)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((u=(l=t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,a=H(r,n==null?void 0:n.in),o=a.getDay(),i=(o<e?7:0)+o-e;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function Bt(r,n){return at(r,{...n,weekStartsOn:1})}function Es(r,n){const t=H(r,n==null?void 0:n.in),e=t.getFullYear(),a=ee(t,0);a.setFullYear(e+1,0,4),a.setHours(0,0,0,0);const o=Bt(a),i=ee(t,0);i.setFullYear(e,0,4),i.setHours(0,0,0,0);const s=Bt(i);return t.getTime()>=o.getTime()?e+1:t.getTime()>=s.getTime()?e:e-1}function qr(r){const n=H(r),t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+r-+t}function ct(r,...n){const t=ee.bind(null,n.find(e=>typeof e=="object"));return n.map(t)}function Mt(r,n){const t=H(r,n==null?void 0:n.in);return t.setHours(0,0,0,0),t}function $t(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n),o=Mt(e),i=Mt(a),s=+o-qr(o),c=+i-qr(i);return Math.round((s-c)/rf)}function sf(r,n){const t=Es(r,n),e=ee(r,0);return e.setFullYear(t,0,4),e.setHours(0,0,0,0),Bt(e)}function lr(r,n,t){const e=H(r,t==null?void 0:t.in);return e.setTime(e.getTime()+n*fn),e}function ya(r,n,t){return Ae(r,n*3,t)}function cf(r,n,t){return _s(r,n*1e3)}function Gr(r,n,t){return Ie(r,n*7,t)}function Ze(r,n,t){return Ae(r,n*12,t)}function lo(r,n){let t,e=n==null?void 0:n.in;return r.forEach(a=>{!e&&typeof a=="object"&&(e=ee.bind(null,a));const o=H(a,e);(!t||t<o||isNaN(+o))&&(t=o)}),ee(e,t||NaN)}function uo(r,n){let t,e=n==null?void 0:n.in;return r.forEach(a=>{!e&&typeof a=="object"&&(e=ee.bind(null,a));const o=H(a,e);(!t||t>o||isNaN(+o))&&(t=o)}),ee(e,t||NaN)}function lf(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return+Mt(e)==+Mt(a)}function Je(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function Xr(r){return!(!Je(r)&&typeof r!="number"||isNaN(+H(r)))}function Zr(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n),o=e.getFullYear()-a.getFullYear(),i=e.getMonth()-a.getMonth();return o*12+i}function ft(r,n){const t=H(r,n==null?void 0:n.in);return Math.trunc(t.getMonth()/3)+1}function Jr(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n),o=e.getFullYear()-a.getFullYear(),i=ft(e)-ft(a);return o*4+i}function en(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return e.getFullYear()-a.getFullYear()}function uf(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n),o=fo(e,a),i=Math.abs($t(e,a));e.setDate(e.getDate()-o*i);const s=+(fo(e,a)===-o),c=o*(i-s);return c===0?0:c}function fo(r,n){const t=r.getFullYear()-n.getFullYear()||r.getMonth()-n.getMonth()||r.getDate()-n.getDate()||r.getHours()-n.getHours()||r.getMinutes()-n.getMinutes()||r.getSeconds()-n.getSeconds()||r.getMilliseconds()-n.getMilliseconds();return t<0?-1:t>0?1:t}function Ms(r,n){const t=H(r,n==null?void 0:n.in);return t.setHours(23,59,59,999),t}function Ps(r,n){const t=H(r,n==null?void 0:n.in),e=t.getMonth();return t.setFullYear(t.getFullYear(),e+1,0),t.setHours(23,59,59,999),t}function Gn(r,n){const t=H(r,n==null?void 0:n.in),e=t.getMonth(),a=e-e%3;return t.setMonth(a,1),t.setHours(0,0,0,0),t}function Os(r,n){const t=H(r,n==null?void 0:n.in);return t.setDate(1),t.setHours(0,0,0,0),t}function Rs(r,n){const t=H(r,n==null?void 0:n.in),e=t.getFullYear();return t.setFullYear(e+1,0,0),t.setHours(23,59,59,999),t}function hn(r,n){const t=H(r,n==null?void 0:n.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function df(r,n){var s,c;const t=Pt(),e=t.weekStartsOn??((c=(s=t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??0,a=H(r,n==null?void 0:n.in),o=a.getDay(),i=(o<e?-7:0)+6-(o-e);return a.setDate(a.getDate()+i),a.setHours(23,59,59,999),a}const ff={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pf=(r,n,t)=>{let e;const a=ff[r];return typeof a=="string"?e=a:n===1?e=a.one:e=a.other.replace("{{count}}",n.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+e:e+" ago":e};function Mn(r){return(n={})=>{const t=n.width?String(n.width):r.defaultWidth;return r.formats[t]||r.formats[r.defaultWidth]}}const hf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},mf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gf={date:Mn({formats:hf,defaultWidth:"full"}),time:Mn({formats:mf,defaultWidth:"full"}),dateTime:Mn({formats:vf,defaultWidth:"full"})},bf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yf=(r,n,t,e)=>bf[r];function tr(r){return(n,t)=>{const e=t!=null&&t.context?String(t.context):"standalone";let a;if(e==="formatting"&&r.formattingValues){const i=r.defaultFormattingWidth||r.defaultWidth,s=t!=null&&t.width?String(t.width):i;a=r.formattingValues[s]||r.formattingValues[i]}else{const i=r.defaultWidth,s=t!=null&&t.width?String(t.width):r.defaultWidth;a=r.values[s]||r.values[i]}const o=r.argumentCallback?r.argumentCallback(n):n;return a[o]}}const wf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Df={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"]},kf={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"]},Cf={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"}},Sf={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"}},_f=(r,n)=>{const t=Number(r),e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Ef={ordinalNumber:_f,era:tr({values:wf,defaultWidth:"wide"}),quarter:tr({values:xf,defaultWidth:"wide",argumentCallback:r=>r-1}),month:tr({values:Df,defaultWidth:"wide"}),day:tr({values:kf,defaultWidth:"wide"}),dayPeriod:tr({values:Cf,defaultWidth:"wide",formattingValues:Sf,defaultFormattingWidth:"wide"})};function rr(r){return(n,t={})=>{const e=t.width,a=e&&r.matchPatterns[e]||r.matchPatterns[r.defaultMatchWidth],o=n.match(a);if(!o)return null;const i=o[0],s=e&&r.parsePatterns[e]||r.parsePatterns[r.defaultParseWidth],c=Array.isArray(s)?Pf(s,d=>d.test(i)):Mf(s,d=>d.test(i));let l;l=r.valueCallback?r.valueCallback(c):c,l=t.valueCallback?t.valueCallback(l):l;const u=n.slice(i.length);return{value:l,rest:u}}}function Mf(r,n){for(const t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&n(r[t]))return t}function Pf(r,n){for(let t=0;t<r.length;t++)if(n(r[t]))return t}function Of(r){return(n,t={})=>{const e=n.match(r.matchPattern);if(!e)return null;const a=e[0],o=n.match(r.parsePattern);if(!o)return null;let i=r.valueCallback?r.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;const s=n.slice(a.length);return{value:i,rest:s}}}const Rf=/^(\d+)(th|st|nd|rd)?/i,Nf=/\d+/i,Tf={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},If={any:[/^b/i,/^(a|c)/i]},Af={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ff={any:[/1/i,/2/i,/3/i,/4/i]},Lf={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},Yf={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]},jf={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},Wf={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]},Hf={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},Bf={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}},$f={ordinalNumber:Of({matchPattern:Rf,parsePattern:Nf,valueCallback:r=>parseInt(r,10)}),era:rr({matchPatterns:Tf,defaultMatchWidth:"wide",parsePatterns:If,defaultParseWidth:"any"}),quarter:rr({matchPatterns:Af,defaultMatchWidth:"wide",parsePatterns:Ff,defaultParseWidth:"any",valueCallback:r=>r+1}),month:rr({matchPatterns:Lf,defaultMatchWidth:"wide",parsePatterns:Yf,defaultParseWidth:"any"}),day:rr({matchPatterns:jf,defaultMatchWidth:"wide",parsePatterns:Wf,defaultParseWidth:"any"}),dayPeriod:rr({matchPatterns:Hf,defaultMatchWidth:"any",parsePatterns:Bf,defaultParseWidth:"any"})},Ns={code:"en-US",formatDistance:pf,formatLong:gf,formatRelative:yf,localize:Ef,match:$f,options:{weekStartsOn:0,firstWeekContainsDate:1}};function zf(r,n){const t=H(r,n==null?void 0:n.in);return $t(t,hn(t))+1}function wa(r,n){const t=H(r,n==null?void 0:n.in),e=+Bt(t)-+sf(t);return Math.round(e/Ss)+1}function xa(r,n){var u,d,f,p;const t=H(r,n==null?void 0:n.in),e=t.getFullYear(),a=Pt(),o=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((p=(f=a.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,i=ee((n==null?void 0:n.in)||r,0);i.setFullYear(e+1,0,o),i.setHours(0,0,0,0);const s=at(i,n),c=ee((n==null?void 0:n.in)||r,0);c.setFullYear(e,0,o),c.setHours(0,0,0,0);const l=at(c,n);return+t>=+s?e+1:+t>=+l?e:e-1}function Vf(r,n){var s,c,l,u;const t=Pt(),e=(n==null?void 0:n.firstWeekContainsDate)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??t.firstWeekContainsDate??((u=(l=t.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??1,a=xa(r,n),o=ee((n==null?void 0:n.in)||r,0);return o.setFullYear(a,0,e),o.setHours(0,0,0,0),at(o,n)}function Ts(r,n){const t=H(r,n==null?void 0:n.in),e=+at(t,n)-+Vf(t,n);return Math.round(e/Ss)+1}function J(r,n){const t=r<0?"-":"",e=Math.abs(r).toString().padStart(n,"0");return t+e}const dt={y(r,n){const t=r.getFullYear(),e=t>0?t:1-t;return J(n==="yy"?e%100:e,n.length)},M(r,n){const t=r.getMonth();return n==="M"?String(t+1):J(t+1,2)},d(r,n){return J(r.getDate(),n.length)},a(r,n){const t=r.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(r,n){return J(r.getHours()%12||12,n.length)},H(r,n){return J(r.getHours(),n.length)},m(r,n){return J(r.getMinutes(),n.length)},s(r,n){return J(r.getSeconds(),n.length)},S(r,n){const t=n.length,e=r.getMilliseconds(),a=Math.trunc(e*Math.pow(10,t-3));return J(a,n.length)}},It={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},po={G:function(r,n,t){const e=r.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"});case"GGGGG":return t.era(e,{width:"narrow"});case"GGGG":default:return t.era(e,{width:"wide"})}},y:function(r,n,t){if(n==="yo"){const e=r.getFullYear(),a=e>0?e:1-e;return t.ordinalNumber(a,{unit:"year"})}return dt.y(r,n)},Y:function(r,n,t,e){const a=xa(r,e),o=a>0?a:1-a;if(n==="YY"){const i=o%100;return J(i,2)}return n==="Yo"?t.ordinalNumber(o,{unit:"year"}):J(o,n.length)},R:function(r,n){const t=Es(r);return J(t,n.length)},u:function(r,n){const t=r.getFullYear();return J(t,n.length)},Q:function(r,n,t){const e=Math.ceil((r.getMonth()+1)/3);switch(n){case"Q":return String(e);case"QQ":return J(e,2);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(e,{width:"wide",context:"formatting"})}},q:function(r,n,t){const e=Math.ceil((r.getMonth()+1)/3);switch(n){case"q":return String(e);case"qq":return J(e,2);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(e,{width:"wide",context:"standalone"})}},M:function(r,n,t){const e=r.getMonth();switch(n){case"M":case"MM":return dt.M(r,n);case"Mo":return t.ordinalNumber(e+1,{unit:"month"});case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(e,{width:"wide",context:"formatting"})}},L:function(r,n,t){const e=r.getMonth();switch(n){case"L":return String(e+1);case"LL":return J(e+1,2);case"Lo":return t.ordinalNumber(e+1,{unit:"month"});case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(e,{width:"wide",context:"standalone"})}},w:function(r,n,t,e){const a=Ts(r,e);return n==="wo"?t.ordinalNumber(a,{unit:"week"}):J(a,n.length)},I:function(r,n,t){const e=wa(r);return n==="Io"?t.ordinalNumber(e,{unit:"week"}):J(e,n.length)},d:function(r,n,t){return n==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):dt.d(r,n)},D:function(r,n,t){const e=zf(r);return n==="Do"?t.ordinalNumber(e,{unit:"dayOfYear"}):J(e,n.length)},E:function(r,n,t){const e=r.getDay();switch(n){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"});case"EEEE":default:return t.day(e,{width:"wide",context:"formatting"})}},e:function(r,n,t,e){const a=r.getDay(),o=(a-e.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return J(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(r,n,t,e){const a=r.getDay(),o=(a-e.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return J(o,n.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(r,n,t){const e=r.getDay(),a=e===0?7:e;switch(n){case"i":return String(a);case"ii":return J(a,n.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(e,{width:"short",context:"formatting"});case"iiii":default:return t.day(e,{width:"wide",context:"formatting"})}},a:function(r,n,t){const a=r.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,n,t){const e=r.getHours();let a;switch(e===12?a=It.noon:e===0?a=It.midnight:a=e/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,n,t){const e=r.getHours();let a;switch(e>=17?a=It.evening:e>=12?a=It.afternoon:e>=4?a=It.morning:a=It.night,n){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,n,t){if(n==="ho"){let e=r.getHours()%12;return e===0&&(e=12),t.ordinalNumber(e,{unit:"hour"})}return dt.h(r,n)},H:function(r,n,t){return n==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):dt.H(r,n)},K:function(r,n,t){const e=r.getHours()%12;return n==="Ko"?t.ordinalNumber(e,{unit:"hour"}):J(e,n.length)},k:function(r,n,t){let e=r.getHours();return e===0&&(e=24),n==="ko"?t.ordinalNumber(e,{unit:"hour"}):J(e,n.length)},m:function(r,n,t){return n==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):dt.m(r,n)},s:function(r,n,t){return n==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):dt.s(r,n)},S:function(r,n){return dt.S(r,n)},X:function(r,n,t){const e=r.getTimezoneOffset();if(e===0)return"Z";switch(n){case"X":return mo(e);case"XXXX":case"XX":return Dt(e);case"XXXXX":case"XXX":default:return Dt(e,":")}},x:function(r,n,t){const e=r.getTimezoneOffset();switch(n){case"x":return mo(e);case"xxxx":case"xx":return Dt(e);case"xxxxx":case"xxx":default:return Dt(e,":")}},O:function(r,n,t){const e=r.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ho(e,":");case"OOOO":default:return"GMT"+Dt(e,":")}},z:function(r,n,t){const e=r.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ho(e,":");case"zzzz":default:return"GMT"+Dt(e,":")}},t:function(r,n,t){const e=Math.trunc(+r/1e3);return J(e,n.length)},T:function(r,n,t){return J(+r,n.length)}};function ho(r,n=""){const t=r>0?"-":"+",e=Math.abs(r),a=Math.trunc(e/60),o=e%60;return o===0?t+String(a):t+String(a)+n+J(o,2)}function mo(r,n){return r%60===0?(r>0?"-":"+")+J(Math.abs(r)/60,2):Dt(r,n)}function Dt(r,n=""){const t=r>0?"-":"+",e=Math.abs(r),a=J(Math.trunc(e/60),2),o=J(e%60,2);return t+a+n+o}const vo=(r,n)=>{switch(r){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Is=(r,n)=>{switch(r){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Qf=(r,n)=>{const t=r.match(/(P+)(p+)?/)||[],e=t[1],a=t[2];if(!a)return vo(r,n);let o;switch(e){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",vo(e,n)).replace("{{time}}",Is(a,n))},Xn={p:Is,P:Qf},Uf=/^D+$/,Kf=/^Y+$/,qf=["D","DD","YY","YYYY"];function Gf(r){return Uf.test(r)}function Xf(r){return Kf.test(r)}function Zf(r,n,t){const e=Jf(r,n,t);if(console.warn(e),qf.includes(r))throw new RangeError(e)}function Jf(r,n,t){const e=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${n}\`) for formatting ${e} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ep=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rp=/^'([^]*?)'?$/,np=/''/g,ap=/[a-zA-Z]/;function go(r,n,t){var u,d,f,p,h,m,v,y;const e=Pt(),a=(t==null?void 0:t.locale)??e.locale??Ns,o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??e.firstWeekContainsDate??((p=(f=e.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,i=(t==null?void 0:t.weekStartsOn)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??e.weekStartsOn??((y=(v=e.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,s=H(r,t==null?void 0:t.in);if(!Xr(s))throw new RangeError("Invalid time value");let c=n.match(tp).map(k=>{const w=k[0];if(w==="p"||w==="P"){const C=Xn[w];return C(k,a.formatLong)}return k}).join("").match(ep).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const w=k[0];if(w==="'")return{isToken:!1,value:op(k)};if(po[w])return{isToken:!0,value:k};if(w.match(ap))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:k}});a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return c.map(k=>{if(!k.isToken)return k.value;const w=k.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&Xf(w)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Gf(w))&&Zf(w,n,String(r));const C=po[w[0]];return C(s,w,a.localize,l)}).join("")}function op(r){const n=r.match(rp);return n?n[1].replace(np,"'"):r}function bo(r,n){return H(r,n==null?void 0:n.in).getDate()}function ip(r,n){return H(r,n==null?void 0:n.in).getDay()}function sp(r,n){const t=H(r,n==null?void 0:n.in),e=t.getFullYear(),a=t.getMonth(),o=ee(t,0);return o.setFullYear(e,a+1,0),o.setHours(0,0,0,0),o.getDate()}function cp(){return Object.assign({},Pt())}function Re(r,n){return H(r,n==null?void 0:n.in).getHours()}function lp(r,n){const t=H(r,n==null?void 0:n.in).getDay();return t===0?7:t}function Ne(r,n){return H(r,n==null?void 0:n.in).getMinutes()}function we(r,n){return H(r,n==null?void 0:n.in).getMonth()}function mt(r){return H(r).getSeconds()}function Zn(r){return+H(r)}function K(r,n){return H(r,n==null?void 0:n.in).getFullYear()}function yt(r,n){return+H(r)>+H(n)}function ze(r,n){return+H(r)<+H(n)}function up(r,n){return+H(r)==+H(n)}function dp(r,n){const t=fp(n)?new n(0):ee(n,0);return t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),t.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),t}function fp(r){var n;return typeof r=="function"&&((n=r.prototype)==null?void 0:n.constructor)===r}const pp=10;class As{constructor(){F(this,"subPriority",0)}validate(n,t){return!0}}class hp extends As{constructor(n,t,e,a,o){super(),this.value=n,this.validateValue=t,this.setValue=e,this.priority=a,o&&(this.subPriority=o)}validate(n,t){return this.validateValue(n,this.value,t)}set(n,t,e){return this.setValue(n,t,this.value,e)}}class mp extends As{constructor(t,e){super();F(this,"priority",pp);F(this,"subPriority",-1);this.context=t||(a=>ee(e,a))}set(t,e){return e.timestampIsSet?t:ee(t,dp(t,this.context))}}class X{run(n,t,e,a){const o=this.parse(n,t,e,a);return o?{setter:new hp(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(n,t,e){return!0}}class vp extends X{constructor(){super(...arguments);F(this,"priority",140);F(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,a){switch(e){case"G":case"GG":case"GGG":return a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"});case"GGGGG":return a.era(t,{width:"narrow"});case"GGGG":default:return a.era(t,{width:"wide"})||a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"})}}set(t,e,a){return e.era=a,t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}}const ce={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}/},He={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 le(r,n){return r&&{value:n(r.value),rest:r.rest}}function ne(r,n){const t=n.match(r);return t?{value:parseInt(t[0],10),rest:n.slice(t[0].length)}:null}function Be(r,n){const t=n.match(r);if(!t)return null;if(t[0]==="Z")return{value:0,rest:n.slice(1)};const e=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,i=t[5]?parseInt(t[5],10):0;return{value:e*(a*pn+o*fn+i*nf),rest:n.slice(t[0].length)}}function Fs(r){return ne(ce.anyDigitsSigned,r)}function ie(r,n){switch(r){case 1:return ne(ce.singleDigit,n);case 2:return ne(ce.twoDigits,n);case 3:return ne(ce.threeDigits,n);case 4:return ne(ce.fourDigits,n);default:return ne(new RegExp("^\\d{1,"+r+"}"),n)}}function tn(r,n){switch(r){case 1:return ne(ce.singleDigitSigned,n);case 2:return ne(ce.twoDigitsSigned,n);case 3:return ne(ce.threeDigitsSigned,n);case 4:return ne(ce.fourDigitsSigned,n);default:return ne(new RegExp("^-?\\d{1,"+r+"}"),n)}}function Da(r){switch(r){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 Ls(r,n){const t=n>0,e=t?n:1-n;let a;if(e<=50)a=r||100;else{const o=e+50,i=Math.trunc(o/100)*100,s=r>=o%100;a=r+i-(s?100:0)}return t?a:1-a}function Ys(r){return r%400===0||r%4===0&&r%100!==0}class gp extends X{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,a){const o=i=>({year:i,isTwoDigitYear:e==="yy"});switch(e){case"y":return le(ie(4,t),o);case"yo":return le(a.ordinalNumber(t,{unit:"year"}),o);default:return le(ie(e.length,t),o)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,a){const o=t.getFullYear();if(a.isTwoDigitYear){const s=Ls(a.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in e)||e.era===1?a.year:1-a.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class bp extends X{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,a){const o=i=>({year:i,isTwoDigitYear:e==="YY"});switch(e){case"Y":return le(ie(4,t),o);case"Yo":return le(a.ordinalNumber(t,{unit:"year"}),o);default:return le(ie(e.length,t),o)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,a,o){const i=xa(t,o);if(a.isTwoDigitYear){const c=Ls(a.year,i);return t.setFullYear(c,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),at(t,o)}const s=!("era"in e)||e.era===1?a.year:1-a.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),at(t,o)}}class yp extends X{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return tn(e==="R"?4:e.length,t)}set(t,e,a){const o=ee(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),Bt(o)}}class wp extends X{constructor(){super(...arguments);F(this,"priority",130);F(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return tn(e==="u"?4:e.length,t)}set(t,e,a){return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}}class xp extends X{constructor(){super(...arguments);F(this,"priority",120);F(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,a){switch(e){case"Q":case"QQ":return ie(e.length,t);case"Qo":return a.ordinalNumber(t,{unit:"quarter"});case"QQQ":return a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(t,{width:"wide",context:"formatting"})||a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}}class Dp extends X{constructor(){super(...arguments);F(this,"priority",120);F(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,a){switch(e){case"q":case"qq":return ie(e.length,t);case"qo":return a.ordinalNumber(t,{unit:"quarter"});case"qqq":return a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(t,{width:"wide",context:"standalone"})||a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}}class kp extends X{constructor(){super(...arguments);F(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);F(this,"priority",110)}parse(t,e,a){const o=i=>i-1;switch(e){case"M":return le(ne(ce.month,t),o);case"MM":return le(ie(2,t),o);case"Mo":return le(a.ordinalNumber(t,{unit:"month"}),o);case"MMM":return a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(t,{width:"wide",context:"formatting"})||a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}class Cp extends X{constructor(){super(...arguments);F(this,"priority",110);F(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,a){const o=i=>i-1;switch(e){case"L":return le(ne(ce.month,t),o);case"LL":return le(ie(2,t),o);case"Lo":return le(a.ordinalNumber(t,{unit:"month"}),o);case"LLL":return a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(t,{width:"wide",context:"standalone"})||a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}function Sp(r,n,t){const e=H(r,t==null?void 0:t.in),a=Ts(e,t)-n;return e.setDate(e.getDate()-a*7),H(e,t==null?void 0:t.in)}class _p extends X{constructor(){super(...arguments);F(this,"priority",100);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,a){switch(e){case"w":return ne(ce.week,t);case"wo":return a.ordinalNumber(t,{unit:"week"});default:return ie(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,a,o){return at(Sp(t,a,o),o)}}function Ep(r,n,t){const e=H(r,t==null?void 0:t.in),a=wa(e,t)-n;return e.setDate(e.getDate()-a*7),e}class Mp extends X{constructor(){super(...arguments);F(this,"priority",100);F(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,a){switch(e){case"I":return ne(ce.week,t);case"Io":return a.ordinalNumber(t,{unit:"week"});default:return ie(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,a){return Bt(Ep(t,a))}}const Pp=[31,28,31,30,31,30,31,31,30,31,30,31],Op=[31,29,31,30,31,30,31,31,30,31,30,31];class Rp extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"subPriority",1);F(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,a){switch(e){case"d":return ne(ce.date,t);case"do":return a.ordinalNumber(t,{unit:"date"});default:return ie(e.length,t)}}validate(t,e){const a=t.getFullYear(),o=Ys(a),i=t.getMonth();return o?e>=1&&e<=Op[i]:e>=1&&e<=Pp[i]}set(t,e,a){return t.setDate(a),t.setHours(0,0,0,0),t}}class Np extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"subpriority",1);F(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,a){switch(e){case"D":case"DD":return ne(ce.dayOfYear,t);case"Do":return a.ordinalNumber(t,{unit:"date"});default:return ie(e.length,t)}}validate(t,e){const a=t.getFullYear();return Ys(a)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,a){return t.setMonth(0,a),t.setHours(0,0,0,0),t}}function ka(r,n,t){var d,f,p,h;const e=Pt(),a=(t==null?void 0:t.weekStartsOn)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??e.weekStartsOn??((h=(p=e.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??0,o=H(r,t==null?void 0:t.in),i=o.getDay(),c=(n%7+7)%7,l=7-a,u=n<0||n>6?n-(i+l)%7:(c+l)%7-(i+l)%7;return Ie(o,u,t)}class Tp extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,a){switch(e){case"E":case"EE":case"EEE":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,a,o){return t=ka(t,a,o),t.setHours(0,0,0,0),t}}class Ip extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,a,o){const i=s=>{const c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(e){case"e":case"ee":return le(ie(e.length,t),i);case"eo":return le(a.ordinalNumber(t,{unit:"day"}),i);case"eee":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeeee":return a.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,a,o){return t=ka(t,a,o),t.setHours(0,0,0,0),t}}class Ap extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,a,o){const i=s=>{const c=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+c};switch(e){case"c":case"cc":return le(ie(e.length,t),i);case"co":return le(a.ordinalNumber(t,{unit:"day"}),i);case"ccc":return a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"ccccc":return a.day(t,{width:"narrow",context:"standalone"});case"cccccc":return a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(t,{width:"wide",context:"standalone"})||a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,a,o){return t=ka(t,a,o),t.setHours(0,0,0,0),t}}function Fp(r,n,t){const e=H(r,t==null?void 0:t.in),a=lp(e,t),o=n-a;return Ie(e,o,t)}class Lp extends X{constructor(){super(...arguments);F(this,"priority",90);F(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,a){const o=i=>i===0?7:i;switch(e){case"i":case"ii":return ie(e.length,t);case"io":return a.ordinalNumber(t,{unit:"day"});case"iii":return le(a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return le(a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return le(a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return le(a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,e){return e>=1&&e<=7}set(t,e,a){return t=Fp(t,a),t.setHours(0,0,0,0),t}}class Yp extends X{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,a){switch(e){case"a":case"aa":case"aaa":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,a){return t.setHours(Da(a),0,0,0),t}}class jp extends X{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,a){switch(e){case"b":case"bb":case"bbb":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,a){return t.setHours(Da(a),0,0,0),t}}class Wp extends X{constructor(){super(...arguments);F(this,"priority",80);F(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,a){switch(e){case"B":case"BB":case"BBB":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,a){return t.setHours(Da(a),0,0,0),t}}class Hp extends X{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,a){switch(e){case"h":return ne(ce.hour12h,t);case"ho":return a.ordinalNumber(t,{unit:"hour"});default:return ie(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,a){const o=t.getHours()>=12;return o&&a<12?t.setHours(a+12,0,0,0):!o&&a===12?t.setHours(0,0,0,0):t.setHours(a,0,0,0),t}}class Bp extends X{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,a){switch(e){case"H":return ne(ce.hour23h,t);case"Ho":return a.ordinalNumber(t,{unit:"hour"});default:return ie(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,a){return t.setHours(a,0,0,0),t}}class $p extends X{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,a){switch(e){case"K":return ne(ce.hour11h,t);case"Ko":return a.ordinalNumber(t,{unit:"hour"});default:return ie(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,a){return t.getHours()>=12&&a<12?t.setHours(a+12,0,0,0):t.setHours(a,0,0,0),t}}class zp extends X{constructor(){super(...arguments);F(this,"priority",70);F(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,a){switch(e){case"k":return ne(ce.hour24h,t);case"ko":return a.ordinalNumber(t,{unit:"hour"});default:return ie(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,a){const o=a<=24?a%24:a;return t.setHours(o,0,0,0),t}}class Vp extends X{constructor(){super(...arguments);F(this,"priority",60);F(this,"incompatibleTokens",["t","T"])}parse(t,e,a){switch(e){case"m":return ne(ce.minute,t);case"mo":return a.ordinalNumber(t,{unit:"minute"});default:return ie(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,a){return t.setMinutes(a,0,0),t}}class Qp extends X{constructor(){super(...arguments);F(this,"priority",50);F(this,"incompatibleTokens",["t","T"])}parse(t,e,a){switch(e){case"s":return ne(ce.second,t);case"so":return a.ordinalNumber(t,{unit:"second"});default:return ie(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,a){return t.setSeconds(a,0),t}}class Up extends X{constructor(){super(...arguments);F(this,"priority",30);F(this,"incompatibleTokens",["t","T"])}parse(t,e){const a=o=>Math.trunc(o*Math.pow(10,-e.length+3));return le(ie(e.length,t),a)}set(t,e,a){return t.setMilliseconds(a),t}}class Kp extends X{constructor(){super(...arguments);F(this,"priority",10);F(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Be(He.basicOptionalMinutes,t);case"XX":return Be(He.basic,t);case"XXXX":return Be(He.basicOptionalSeconds,t);case"XXXXX":return Be(He.extendedOptionalSeconds,t);case"XXX":default:return Be(He.extended,t)}}set(t,e,a){return e.timestampIsSet?t:ee(t,t.getTime()-qr(t)-a)}}class qp extends X{constructor(){super(...arguments);F(this,"priority",10);F(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Be(He.basicOptionalMinutes,t);case"xx":return Be(He.basic,t);case"xxxx":return Be(He.basicOptionalSeconds,t);case"xxxxx":return Be(He.extendedOptionalSeconds,t);case"xxx":default:return Be(He.extended,t)}}set(t,e,a){return e.timestampIsSet?t:ee(t,t.getTime()-qr(t)-a)}}class Gp extends X{constructor(){super(...arguments);F(this,"priority",40);F(this,"incompatibleTokens","*")}parse(t){return Fs(t)}set(t,e,a){return[ee(t,a*1e3),{timestampIsSet:!0}]}}class Xp extends X{constructor(){super(...arguments);F(this,"priority",20);F(this,"incompatibleTokens","*")}parse(t){return Fs(t)}set(t,e,a){return[ee(t,a),{timestampIsSet:!0}]}}const Zp={G:new vp,y:new gp,Y:new bp,R:new yp,u:new wp,Q:new xp,q:new Dp,M:new kp,L:new Cp,w:new _p,I:new Mp,d:new Rp,D:new Np,E:new Tp,e:new Ip,c:new Ap,i:new Lp,a:new Yp,b:new jp,B:new Wp,h:new Hp,H:new Bp,K:new $p,k:new zp,m:new Vp,s:new Qp,S:new Up,X:new Kp,x:new qp,t:new Gp,T:new Xp},Jp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,th=/^'([^]*?)'?$/,rh=/''/g,nh=/\S/,ah=/[a-zA-Z]/;function oh(r,n,t,e){var v,y,k,w,C,_,P,E;const a=()=>ee((e==null?void 0:e.in)||t,NaN),o=cp(),i=(e==null?void 0:e.locale)??o.locale??Ns,s=(e==null?void 0:e.firstWeekContainsDate)??((y=(v=e==null?void 0:e.locale)==null?void 0:v.options)==null?void 0:y.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(k=o.locale)==null?void 0:k.options)==null?void 0:w.firstWeekContainsDate)??1,c=(e==null?void 0:e.weekStartsOn)??((_=(C=e==null?void 0:e.locale)==null?void 0:C.options)==null?void 0:_.weekStartsOn)??o.weekStartsOn??((E=(P=o.locale)==null?void 0:P.options)==null?void 0:E.weekStartsOn)??0;if(!n)return r?a():H(t,e==null?void 0:e.in);const l={firstWeekContainsDate:s,weekStartsOn:c,locale:i},u=[new mp(e==null?void 0:e.in,t)],d=n.match(eh).map(D=>{const S=D[0];if(S in Xn){const N=Xn[S];return N(D,i.formatLong)}return D}).join("").match(Jp),f=[];for(let D of d){const S=D[0],N=Zp[S];if(N){const{incompatibleTokens:A}=N;if(Array.isArray(A)){const L=f.find(W=>A.includes(W.token)||W.token===S);if(L)throw new RangeError(`The format string mustn't contain \`${L.fullToken}\` and \`${D}\` at the same time`)}else if(N.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);f.push({token:S,fullToken:D});const M=N.run(r,D,i.match,l);if(!M)return a();u.push(M.setter),r=M.rest}else{if(S.match(ah))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if(D==="''"?D="'":S==="'"&&(D=ih(D)),r.indexOf(D)===0)r=r.slice(D.length);else return a()}}if(r.length>0&&nh.test(r))return a();const p=u.map(D=>D.priority).sort((D,S)=>S-D).filter((D,S,N)=>N.indexOf(D)===S).map(D=>u.filter(S=>S.priority===D).sort((S,N)=>N.subPriority-S.subPriority)).map(D=>D[0]);let h=H(t,e==null?void 0:e.in);if(isNaN(+h))return a();const m={};for(const D of p){if(!D.validate(h,l))return a();const S=D.set(h,m,l);Array.isArray(S)?(h=S[0],Object.assign(m,S[1])):h=S}return h}function ih(r){return r.match(th)[1].replace(rh,"'")}function sh(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return e.getFullYear()===a.getFullYear()&&e.getMonth()===a.getMonth()}function ch(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return+Gn(e)==+Gn(a)}function lh(r,n,t){const[e,a]=ct(t==null?void 0:t.in,r,n);return e.getFullYear()===a.getFullYear()}function ur(r,n,t){const e=+H(r,t==null?void 0:t.in),[a,o]=[+H(n.start,t==null?void 0:t.in),+H(n.end,t==null?void 0:t.in)].sort((i,s)=>i-s);return e>=a&&e<=o}function uh(r,n,t){return Ie(r,-1,t)}function dh(r,n){const t=()=>ee(n==null?void 0:n.in,NaN),a=mh(r);let o;if(a.date){const l=vh(a.date,2);o=gh(l.restDateString,l.year)}if(!o||isNaN(+o))return t();const i=+o;let s=0,c;if(a.time&&(s=bh(a.time),isNaN(s)))return t();if(a.timezone){if(c=yh(a.timezone),isNaN(c))return t()}else{const l=new Date(i+s),u=H(0,n==null?void 0:n.in);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return H(i+s+c,n==null?void 0:n.in)}const Sr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},fh=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ph=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,hh=/^([+-])(\d{2})(?::?(\d{2}))?$/;function mh(r){const n={},t=r.split(Sr.dateTimeDelimiter);let e;if(t.length>2)return n;if(/:/.test(t[0])?e=t[0]:(n.date=t[0],e=t[1],Sr.timeZoneDelimiter.test(n.date)&&(n.date=r.split(Sr.timeZoneDelimiter)[0],e=r.substr(n.date.length,r.length))),e){const a=Sr.timezone.exec(e);a?(n.time=e.replace(a[1],""),n.timezone=a[1]):n.time=e}return n}function vh(r,n){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),e=r.match(t);if(!e)return{year:NaN,restDateString:""};const a=e[1]?parseInt(e[1]):null,o=e[2]?parseInt(e[2]):null;return{year:o===null?a:o*100,restDateString:r.slice((e[1]||e[2]).length)}}function gh(r,n){if(n===null)return new Date(NaN);const t=r.match(fh);if(!t)return new Date(NaN);const e=!!t[4],a=nr(t[1]),o=nr(t[2])-1,i=nr(t[3]),s=nr(t[4]),c=nr(t[5])-1;if(e)return Ch(n,s,c)?wh(n,s,c):new Date(NaN);{const l=new Date(0);return!Dh(n,o,i)||!kh(n,a)?new Date(NaN):(l.setUTCFullYear(n,o,Math.max(a,i)),l)}}function nr(r){return r?parseInt(r):1}function bh(r){const n=r.match(ph);if(!n)return NaN;const t=Pn(n[1]),e=Pn(n[2]),a=Pn(n[3]);return Sh(t,e,a)?t*pn+e*fn+a*1e3:NaN}function Pn(r){return r&&parseFloat(r.replace(",","."))||0}function yh(r){if(r==="Z")return 0;const n=r.match(hh);if(!n)return 0;const t=n[1]==="+"?-1:1,e=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return _h(e,a)?t*(e*pn+a*fn):NaN}function wh(r,n,t){const e=new Date(0);e.setUTCFullYear(r,0,4);const a=e.getUTCDay()||7,o=(n-1)*7+t+1-a;return e.setUTCDate(e.getUTCDate()+o),e}const xh=[31,null,31,30,31,30,31,31,30,31,30,31];function js(r){return r%400===0||r%4===0&&r%100!==0}function Dh(r,n,t){return n>=0&&n<=11&&t>=1&&t<=(xh[n]||(js(r)?29:28))}function kh(r,n){return n>=1&&n<=(js(r)?366:365)}function Ch(r,n,t){return n>=1&&n<=53&&t>=0&&t<=6}function Sh(r,n,t){return r===24?n===0&&t===0:t>=0&&t<60&&n>=0&&n<60&&r>=0&&r<25}function _h(r,n){return n>=0&&n<=59}function ke(r,n,t){const e=H(r,t==null?void 0:t.in),a=e.getFullYear(),o=e.getDate(),i=ee(r,0);i.setFullYear(a,n,15),i.setHours(0,0,0,0);const s=sp(i);return e.setMonth(n,Math.min(o,s)),e}function Yr(r,n,t){const e=H(r,t==null?void 0:t.in);return e.setHours(n),e}function jr(r,n,t){const e=H(r,t==null?void 0:t.in);return e.setMinutes(n),e}function Lt(r,n,t){const e=H(r,t==null?void 0:t.in),a=Math.trunc(e.getMonth()/3)+1,o=n-a;return ke(e,e.getMonth()+o*3)}function Wr(r,n,t){const e=H(r,t==null?void 0:t.in);return e.setSeconds(n),e}function Ye(r,n,t){const e=H(r,t==null?void 0:t.in);return isNaN(+e)?ee(r,NaN):(e.setFullYear(n),e)}function St(r,n,t){return Ae(r,-n,t)}function Ws(r,n,t){return ya(r,-1,t)}function yo(r,n,t){return Gr(r,-1,t)}function zt(r,n,t){return Ze(r,-n,t)}var Eh=typeof document<"u",Mh=function(){},rn=Eh?b.useLayoutEffect:Mh;const Ph={...g},Oh=Ph.useInsertionEffect,Rh=Oh||(r=>r());function Nh(r){const n=g.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Rh(()=>{n.current=r}),g.useCallback(function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];return n.current==null?void 0:n.current(...e)},[])}const Th={...g};let wo=!1,Ih=0;const xo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ih++;function Ah(){const[r,n]=g.useState(()=>wo?xo():void 0);return rn(()=>{r==null&&n(xo())},[]),g.useEffect(()=>{wo=!0},[]),r}const Fh=Th.useId,Hs=Fh||Ah;let dr;process.env.NODE_ENV!=="production"&&(dr=new Set);function Lh(){for(var r,n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];const a="Floating UI: "+t.join(" ");if(!((r=dr)!=null&&r.has(a))){var o;(o=dr)==null||o.add(a),console.warn(a)}}function Yh(){for(var r,n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];const a="Floating UI: "+t.join(" ");if(!((r=dr)!=null&&r.has(a))){var o;(o=dr)==null||o.add(a),console.error(a)}}const jh=g.forwardRef(function(n,t){const{context:{placement:e,elements:{floating:a},middlewareData:{arrow:o,shift:i}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:p,style:{transform:h,...m}={},...v}=n;process.env.NODE_ENV!=="production"&&(t||Lh("The `ref` prop is required for `FloatingArrow`."));const y=Hs(),[k,w]=g.useState(!1);if(rn(()=>{if(!a)return;Oe(a).direction==="rtl"&&w(!0)},[a]),!a)return null;const[C,_]=e.split("-"),P=C==="top"||C==="bottom";let E=d;(P&&i!=null&&i.x||!P&&i!=null&&i.y)&&(E=null);const D=u*2,S=D/2,N=s/2*(l/-8+1),A=c/2*l/4,M=!!p,L=E&&_==="end"?"bottom":"top";let W=E&&_==="end"?"right":"left";E&&k&&(W=_==="end"?"left":"right");const $=(o==null?void 0:o.x)!=null?E||o.x:"",R=(o==null?void 0:o.y)!=null?E||o.y:"",I=p||"M0,0"+(" H"+s)+(" L"+(s-N)+","+(c-A))+(" Q"+s/2+","+c+" "+N+","+(c-A))+" Z",O={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[C];return x.jsxs("svg",{...v,"aria-hidden":!0,ref:t,width:M?s:s+D,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[W]:$,[L]:R,[C]:P||M?"100%":"calc(100% - "+D/2+"px)",transform:[O,h].filter(B=>!!B).join(" "),...m},children:[D>0&&x.jsx("path",{clipPath:"url(#"+y+")",fill:"none",stroke:f,strokeWidth:D+(p?0:1),d:I}),x.jsx("path",{stroke:D&&!p?v.fill:"none",d:I}),x.jsx("clipPath",{id:y,children:x.jsx("rect",{x:-S,y:S*(M?-1:1),width:s+D,height:s})})]})});function Wh(){const r=new Map;return{emit(n,t){var e;(e=r.get(n))==null||e.forEach(a=>a(t))},on(n,t){r.has(n)||r.set(n,new Set),r.get(n).add(t)},off(n,t){var e;(e=r.get(n))==null||e.delete(t)}}}const Hh=g.createContext(null),Bh=g.createContext(null),$h=()=>{var r;return((r=g.useContext(Hh))==null?void 0:r.id)||null},zh=()=>g.useContext(Bh);function Vh(r){const{open:n=!1,onOpenChange:t,elements:e}=r,a=Hs(),o=g.useRef({}),[i]=g.useState(()=>Wh()),s=$h()!=null;if(process.env.NODE_ENV!=="production"){const p=e.reference;p&&!be(p)&&Yh("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=g.useState(e.reference),u=Nh((p,h,m)=>{o.current.openEvent=p?h:void 0,i.emit("openchange",{open:p,event:h,reason:m,nested:s}),t==null||t(p,h,m)}),d=g.useMemo(()=>({setPositionReference:l}),[]),f=g.useMemo(()=>({reference:c||e.reference||null,floating:e.floating||null,domReference:e.reference}),[c,e.reference,e.floating]);return g.useMemo(()=>({dataRef:o,open:n,onOpenChange:u,elements:f,events:i,floatingId:a,refs:d}),[n,u,f,i,a,d])}function Qh(r){r===void 0&&(r={});const{nodeId:n}=r,t=Vh({...r,elements:{reference:null,floating:null,...r.elements}}),e=r.rootContext||t,a=e.elements,[o,i]=g.useState(null),[s,c]=g.useState(null),u=(a==null?void 0:a.domReference)||o,d=g.useRef(null),f=zh();rn(()=>{u&&(d.current=u)},[u]);const p=Yi({...r,elements:{...a,...s&&{reference:s}}}),h=g.useCallback(w=>{const C=be(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),getClientRects:()=>w.getClientRects(),contextElement:w}:w;c(C),p.refs.setReference(C)},[p.refs]),m=g.useCallback(w=>{(be(w)||w===null)&&(d.current=w,i(w)),(be(p.refs.reference.current)||p.refs.reference.current===null||w!==null&&!be(w))&&p.refs.setReference(w)},[p.refs]),v=g.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d}),[p.refs,m,h]),y=g.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),k=g.useMemo(()=>({...p,...e,refs:v,elements:y,nodeId:n}),[p,v,y,n,e]);return rn(()=>{e.dataRef.current.floatingContext=k;const w=f==null?void 0:f.nodesRef.current.find(C=>C.id===n);w&&(w.context=k)}),g.useMemo(()=>({...p,context:k,refs:v,elements:y}),[p,v,y,k])}/*!
103
103
  react-datepicker v8.10.0
104
104
  https://github.com/Hacker0x01/react-datepicker
105
105
  Released under the MIT License.
@@ -7111,6 +7111,7 @@ const mv = ({
7111
7111
  top: "50%",
7112
7112
  transform: "translateY(-50%)",
7113
7113
  display: "flex",
7114
+ gap: "2px",
7114
7115
  flexDirection: "column",
7115
7116
  height: "24px",
7116
7117
  justifyContent: "center"
@@ -7129,7 +7130,6 @@ const mv = ({
7129
7130
  alignItems: "center",
7130
7131
  justifyContent: "center",
7131
7132
  width: "16px",
7132
- // height: "12px",
7133
7133
  padding: 0,
7134
7134
  border: 0,
7135
7135
  background: "transparent",
@@ -7152,7 +7152,6 @@ const mv = ({
7152
7152
  alignItems: "center",
7153
7153
  justifyContent: "center",
7154
7154
  width: "16px",
7155
- // height: "12px",
7156
7155
  padding: 0,
7157
7156
  border: 0,
7158
7157
  background: "transparent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aravint-ui-form-controls",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "main": "dist/form-controls.cjs.js",
5
5
  "module": "dist/form-controls.es.js",
6
6
  "types": "dist/types/index.d.ts",