calendar-simple 1.0.6 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 jaganath-m-s
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,50 +1,156 @@
1
- # Calendar App
1
+ # Calendar Simple
2
2
 
3
- A user-friendly calendar app for viewing, selecting, and managing dates with data management capabilities.
3
+ ![npm](https://img.shields.io/npm/v/calendar-simple)
4
+ ![npm bundle size](https://img.shields.io/bundlephobia/minzip/calendar-simple)
5
+ ![npm downloads](https://img.shields.io/npm/dm/calendar-simple)
6
+ ![license](https://img.shields.io/npm/l/calendar-simple)
4
7
 
5
- ## Features
6
-
7
- - View and navigate through a monthly calendar
8
- - Select dates and manage selected dates
9
- - Customizable styling with Styled Components
10
- - Support for data management and event handling
11
- - Easy integration into React projects
12
- - Lightweight and minimal dependencies
8
+ A lightweight, customizable, and responsive calendar component for React applications. Built with TypeScript and Day.js, `calendar-simple` provides a flexible solution for date selection and event management in your React projects.
13
9
 
14
- ## Tech Stack
15
- - React JS
16
- - TypeScrpit
17
- - Styled Component
18
- - Moment.js
10
+ **[Live Demo](http://calendarsimple.netlify.app)**
19
11
 
20
- ## Key Features
12
+ ## Features
21
13
 
22
- - **Monthly Calendar View:** Navigate through a monthly calendar with ease.
23
- - **Date Selection:** Select single or multiple dates from the calendar.
24
- - **Data Management:** Add, update, or remove data associated with selected dates.
25
- - **Custom Styling:** Easily customize the calendar appearance using Styled Components.
26
- - **Event Handling:** Handle user interactions and events seamlessly within the calendar component.
14
+ - **📅 Month View**: Intuitive navigation through monthly views.
15
+ - **✨ Event Handling**: Built-in support for displaying and managing events with custom colors.
16
+ - **📱 Responsive**: Automatically adjusts layout based on container dimensions.
17
+ - **🎨 Theming**: Fully customizable colors for selected dates, current day, and general theme.
18
+ - **👆 Interactive**: granular control with click handlers for dates, specific events, and "more" indicators.
19
+ - **🛡️ TypeScript**: Written in TypeScript for robust type safety and developer experience.
27
20
 
28
21
  ## Installation
29
- npm install --save calendar-simple
22
+
23
+ Install using your preferred package manager:
24
+
25
+ ```bash
26
+ npm install calendar-simple
27
+ # or
28
+ yarn add calendar-simple
29
+ # or
30
+ pnpm add calendar-simple
31
+ ```
30
32
 
31
33
  ## Usage
32
- import React from 'react';
33
- import { Calendar } from 'calendar-simple';
34
34
 
35
- const App: React.FC = () => {
36
- return (
37
- <div>
38
- <h1>Calendar App</h1>
39
- <Calendar />
40
- </div>
41
- );
42
- };
35
+ ### Basic Example
36
+
37
+ Import the component and its styles to get started:
38
+
39
+ ```tsx
40
+ import React, { useState } from "react";
41
+ import Calendar, { CalendarType } from "calendar-simple";
42
+ import "calendar-simple/dist/styles.css";
43
+
44
+ const App = () => {
45
+ const [selectedDate, setSelectedDate] = useState(new Date());
46
+
47
+ return (
48
+ <div style={{ height: "600px", padding: "20px" }}>
49
+ <Calendar
50
+ selectedDate={selectedDate}
51
+ onDateClick={setSelectedDate}
52
+ isSelectDate
53
+ />
54
+ </div>
55
+ );
56
+ };
57
+ ```
58
+
59
+ ### Advanced Usage with Events & Theme
60
+
61
+ ```tsx
62
+ import React, { useState } from "react";
63
+ import Calendar, { DataType } from "calendar-simple";
64
+ import "calendar-simple/dist/styles.css";
65
+
66
+ const MyCalendar = () => {
67
+ const [selectedDate, setSelectedDate] = useState(new Date());
43
68
 
44
- export default App;
69
+ const events: DataType[] = [
70
+ {
71
+ startDate: "2024-02-14",
72
+ value: "Valentine's Day",
73
+ color: "#ffcccc",
74
+ },
75
+ {
76
+ startDate: "2024-02-20",
77
+ endDate: "2024-02-22",
78
+ value: "Tech Conference",
79
+ color: "#e6f7ff",
80
+ },
81
+ ];
45
82
 
46
- ## Library
47
- For a more information, you can visit [Lib Link](https://www.npmjs.com/package/calendar-simple).
83
+ return (
84
+ <Calendar
85
+ selectedDate={selectedDate}
86
+ onDateClick={setSelectedDate}
87
+ isSelectDate
88
+ data={events}
89
+ width={800}
90
+ height={600}
91
+ theme={{
92
+ selected: { color: "#fff", bgColor: "#007bff" },
93
+ today: { color: "#007bff", bgColor: "#e6f2ff" },
94
+ }}
95
+ onEventClick={(event) => alert(`Clicked: ${event.value}`)}
96
+ />
97
+ );
98
+ };
99
+ ```
100
+
101
+ ## API Reference
102
+
103
+ ### Props
104
+
105
+ | Prop | Type | Description | Default |
106
+ | ------------------ | --------------------------- | ---------------------------------------------------------- | --------------- |
107
+ | `data` | `DataType[]` | Array of event data objects to display. | `[]` |
108
+ | `selectedDate` | `Date` | The currently selected date object. | `undefined` |
109
+ | `onDateClick` | `(date: Date) => void` | Callback function fired when a date is clicked. | `undefined` |
110
+ | `onEventClick` | `(event: DataType) => void` | Callback function fired when an event is clicked. | `undefined` |
111
+ | `onMoreClick` | `(date: Date) => void` | Callback fired when the "+X more" indicator is clicked. | `undefined` |
112
+ | `onMonthChange` | `(date: Date) => void` | Callback fired when the visible month is changed. | `undefined` |
113
+ | `width` | `number` | Width of the calendar container in pixels. | `400` |
114
+ | `height` | `number` | Height of the calendar container in pixels. | `400` |
115
+ | `theme` | `CalendarTheme` | Configuration object for custom colors. | `Default Theme` |
116
+ | `dayType` | `EDayType` | Format for day names: `"FULL"` (Monday) or `"HALF"` (Mon). | `HALF` |
117
+ | `isSelectDate` | `boolean` | Enables visual selection state. | `false` |
118
+ | `pastYearLength` | `number` | Number of past years to show in the year dropdown. | `5` |
119
+ | `futureYearLength` | `number` | Number of future years to show in the year dropdown. | `5` |
120
+ | `maxEvents` | `number` | Maximum events to show per day cell before collapsing. | Auto-calc |
121
+
122
+ ### Types
123
+
124
+ #### `DataType`
125
+
126
+ ```typescript
127
+ interface DataType {
128
+ startDate: string; // Format: YYYY-MM-DD
129
+ endDate?: string; // Format: YYYY-MM-DD
130
+ value: string; // Event title or description
131
+ color?: string; // CSS color string for event background
132
+ }
133
+ ```
134
+
135
+ #### `CalendarTheme`
136
+
137
+ ```typescript
138
+ interface CalendarTheme {
139
+ selected?: {
140
+ color?: string; // Text color for selected date
141
+ bgColor?: string; // Background color for selected date
142
+ };
143
+ today?: {
144
+ color?: string; // Text color for today's date
145
+ bgColor?: string; // Background color for today's date
146
+ };
147
+ }
148
+ ```
149
+
150
+ ## Contributing
151
+
152
+ Contributions are welcome! Please feel free to submit a Pull Request.
48
153
 
49
154
  ## License
50
- This project is licensed under the MIT License - see the LICENSE file for details.
155
+
156
+ This project is licensed under the [MIT License](LICENSE).
@@ -0,0 +1,2 @@
1
+ ._calendarContainer_q5rnf_1{justify-content:center;align-items:center;width:100%;height:100%;display:flex}._calendar_q5rnf_1{--calendar-width:0px;--calendar-height:0px;--primary-color:#3b82f6;--primary-hover:#2563eb;--text-primary:#1f2937;--text-secondary:#6b7280;--bg-color:#fff;--bg-hover:#f3f4f6;--border-color:#e5e7eb;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;--radius-md:.375rem;--radius-lg:.5rem;width:100%;height:100%;color:var(--text-primary);background-color:var(--bg-color);border:1px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);box-sizing:border-box;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Arial,sans-serif;overflow:hidden auto}._calendar_q5rnf_1 *{box-sizing:border-box;margin:0;padding:0}._table_q5rnf_56{border-collapse:separate;border-spacing:0}._tableHeader_q5rnf_61,._tableCell_q5rnf_62{border-right:1px solid var(--border-color);border-bottom:1px solid var(--border-color)}._tableHeader_q5rnf_61:last-child,._tableCell_q5rnf_62:last-child{border-right:none}._table_q5rnf_56 tr:last-child ._tableCell_q5rnf_62{border-bottom:none}._tableHeader_q5rnf_61{height:40px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;text-align:center;vertical-align:middle;background-color:#f9fafb;font-size:.875rem;font-weight:600}._tableBody_q5rnf_88{height:var(--calendar-height)}._dateData_5xvpr_1{cursor:pointer;vertical-align:top;height:calc(var(--calendar-height) / 6);min-width:calc(var(--calendar-width) / 7);max-width:calc(var(--calendar-width) / 7);padding:.25rem;transition:background-color .15s;position:relative}._dateData_5xvpr_1:hover{background-color:#fafafa}._currentMonth_5xvpr_16{color:#9ca3af;background-color:#f9fafb}._cellContent_5xvpr_21{flex-direction:column;justify-content:flex-start;gap:.25rem;width:100%;height:100%;display:flex}._dateLabel_5xvpr_30{width:1.75rem;height:1.75rem;color:var(--text-primary);border-radius:50%;justify-content:center;align-items:center;margin-bottom:.25rem;padding:.25rem;font-size:.875rem;font-weight:500;display:flex}._selected_5xvpr_44 ._dateLabel_5xvpr_30,._today_5xvpr_49 ._dateLabel_5xvpr_30{background-color:var(--primary-color);color:#fff}._dataContainer_5xvpr_54{flex-direction:column;flex:1;gap:2px;display:flex;overflow:visible}._spacer_5xvpr_62{height:1.5rem;margin-bottom:2px}._eventItem_5xvpr_67{background-color:var(--primary-color);z-index:2;white-space:nowrap;text-overflow:ellipsis;color:#fff;box-sizing:border-box;cursor:pointer;border-radius:4px;height:1.5rem;padding:.15rem .5rem;font-size:.75rem;font-weight:500;line-height:1.2rem;transition:transform .1s,box-shadow .1s;position:relative;overflow:hidden;box-shadow:0 1px 2px #0000001a}._eventItem_5xvpr_67:hover{filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 2px 4px #00000026}._moreEventsContainer_5xvpr_95{margin-top:2px;position:relative}._moreEvents_5xvpr_95{color:var(--text-secondary);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:4px;width:100%;padding:.15rem .5rem;font-size:.75rem;font-weight:600;transition:background-color .2s}._moreEvents_5xvpr_95:hover{background-color:var(--bg-hover);color:var(--text-primary)}._popover_1l8k5_1{z-index:100;border:1px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);opacity:0;background-color:#fff;flex-direction:column;gap:2px;min-width:180px;max-width:240px;max-height:240px;padding:.5rem;animation:.2s forwards _fadeIn_1l8k5_1;display:flex;position:absolute;top:calc(100% + 4px);left:0;overflow-y:auto}@keyframes _fadeIn_1l8k5_1{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}._popoverHeader_1l8k5_33{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border-color);margin-bottom:.5rem;padding-bottom:.25rem;font-size:.75rem;font-weight:600}._popoverItem_1l8k5_44{background-color:var(--primary-color);color:#fff;border-radius:var(--radius-md);white-space:nowrap;text-overflow:ellipsis;cursor:pointer;margin-bottom:2px;padding:.25rem .5rem;font-size:.75rem;transition:opacity .2s;overflow:hidden}._popoverItem_1l8k5_44:hover{opacity:.9}._popoverItem_1l8k5_44._startBefore_1l8k5_62{clip-path:polygon(10px 0,100% 0,100% 100%,10px 100%,0 50%);border-top-left-radius:0;border-bottom-left-radius:0;padding-left:14px}._popoverItem_1l8k5_44._endAfter_1l8k5_69{clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%);border-top-right-radius:0;border-bottom-right-radius:0;padding-right:14px}._popoverItem_1l8k5_44._startBefore_1l8k5_62._endAfter_1l8k5_69{clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,10px 100%,0 50%);border-radius:0;padding-left:14px;padding-right:14px}._header_7f1ps_1{box-sizing:border-box;background-color:#0000;justify-content:space-between;align-items:center;width:100%;padding:1rem;display:flex}._navigation_7f1ps_11{align-items:center;gap:1rem;display:flex}._todayButton_7f1ps_17{border:1px solid var(--border-color);border-radius:var(--radius-md);color:var(--text-primary);cursor:pointer;background-color:#0000;padding:.5rem 1rem;font-family:inherit;font-size:.875rem;font-weight:500;transition:all .2s}._todayButton_7f1ps_17:hover{background-color:var(--bg-hover);border-color:var(--text-secondary)}._arrows_7f1ps_35{align-items:center;gap:.5rem;display:flex}._iconButton_7f1ps_41{border-radius:var(--radius-md);color:var(--text-secondary);cursor:pointer;background:0 0;border:1px solid #0000;outline:none;justify-content:center;align-items:center;width:2rem;height:2rem;transition:all .2s;display:flex}._iconButton_7f1ps_41:hover{background-color:var(--bg-hover);color:var(--text-primary)}._dateTitle_7f1ps_61{color:var(--text-primary);white-space:nowrap;margin:0;font-family:inherit;font-size:1.25rem;font-weight:600}._controls_7f1ps_70{align-items:center;gap:.75rem;display:flex}._select_7f1ps_76{-webkit-appearance:none;appearance:none;background-color:var(--bg-color);border:1px solid var(--border-color);border-radius:var(--radius-md);color:var(--text-primary);cursor:pointer;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;outline:none;padding:.5rem 2.5rem .5rem 1rem;font-family:inherit;font-size:.875rem;transition:border-color .2s}._select_7f1ps_76:hover{border-color:var(--text-secondary)}._select_7f1ps_76:focus{border-color:var(--primary-color);box-shadow:0 0 0 2px #3b82f633}
2
+ /*$vite$:1*/
package/dist/index.cjs.js CHANGED
@@ -1,135 +1,3 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var mn=Object.create,zt=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,yn=Object.getOwnPropertyNames,vn=Object.getPrototypeOf,Sn=Object.prototype.hasOwnProperty,Wt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bn=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=yn(t),a=0,s=o.length,i;a<s;a++)i=o[a],!Sn.call(e,i)&&i!==n&&zt(e,i,{get:(u=>t[u]).bind(null,i),enumerable:!(r=gn(t,i))||r.enumerable});return e},gt=(e,t,n)=>(n=e!=null?mn(vn(e)):{},bn(t||!e||!e.__esModule?zt(n,"default",{value:e,enumerable:!0}):n,e));let p=require("react");p=gt(p);let Bt=(function(e){return e.fullName="FULL",e.halfName="HALF",e})({});const de={dayType:Bt.halfName,data:[],width:400,height:400,isSelectDate:!1,pastYearLength:5,futureYearLength:5};let Re=(function(e){return e.add="add",e.sub="sub",e})({}),Fe=(function(e){return e.month="month",e.year="year",e})({});var Q={SUNDAY:{FULL:"Sunday",HALF:"Sun"},MONDAY:{FULL:"Monday",HALF:"Mon"},TUESDAY:{FULL:"Tuesday",HALF:"Tue"},WEDNESDAY:{FULL:"Wednesday",HALF:"Wed"},THURSDAY:{FULL:"Thursday",HALF:"Thu"},FRIDAY:{FULL:"Friday",HALF:"Fri"},SATURDAY:{FULL:"Saturday",HALF:"Sat"}};const wn={FULL:[Q.SUNDAY.FULL,Q.MONDAY.FULL,Q.TUESDAY.FULL,Q.WEDNESDAY.FULL,Q.THURSDAY.FULL,Q.FRIDAY.FULL,Q.SATURDAY.FULL],HALF:[Q.SUNDAY.HALF,Q.MONDAY.HALF,Q.TUESDAY.HALF,Q.WEDNESDAY.HALF,Q.THURSDAY.HALF,Q.FRIDAY.HALF,Q.SATURDAY.HALF]};var An={JAN:{label:"January",value:0},FEB:{label:"February",value:1},MAR:{label:"March",value:2},APR:{label:"April",value:3},MAY:{label:"May",value:4},JUN:{label:"June",value:5},JUL:{label:"July",value:6},AUG:{label:"August",value:7},SEP:{label:"September",value:8},OCT:{label:"October",value:9},NOV:{label:"November",value:10},DEC:{label:"December",value:11}};const Dn=Object.values(An),je={MONTH:"monthDropdown",YEAR:"yearDropdown"},En={FULL_NAME:"FULL",HALF_NAME:"HALF"};var kn=Wt(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",i="minute",u="hour",E="day",C="week",D="month",L="quarter",k="year",T="date",R="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(b){var h=["th","st","nd","rd"],l=b%100;return"["+b+(h[(l-20)%10]||h[l]||h[0])+"]"}},f=function(b,h,l){var g=String(b);return!g||g.length>=h?b:""+Array(h+1-g.length).join(l)+b},x={s:f,z:function(b){var h=-b.utcOffset(),l=Math.abs(h),g=Math.floor(l/60),d=l%60;return(h<=0?"+":"-")+f(g,2,"0")+":"+f(d,2,"0")},m:function b(h,l){if(h.date()<l.date())return-b(l,h);var g=12*(l.year()-h.year())+(l.month()-h.month()),d=h.clone().add(g,D),S=l-d<0,A=h.clone().add(g+(S?-1:1),D);return+(-(g+(l-d)/(S?d-A:A-d))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:D,y:k,w:C,d:E,D:T,h:u,m:i,s,ms:a,Q:L}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},N="en",m={};m[N]=F;var c="$isDayjsObject",w=function(b){return b instanceof G||!(!b||!b[c])},O=function b(h,l,g){var d;if(!h)return N;if(typeof h=="string"){var S=h.toLowerCase();m[S]&&(d=S),l&&(m[S]=l,d=S);var A=h.split("-");if(!d&&A.length>1)return b(A[0])}else{var P=h.name;m[P]=h,d=P}return!g&&d&&(N=d),d||!g&&N},v=function(b,h){if(w(b))return b.clone();var l=typeof h=="object"?h:{};return l.date=b,l.args=arguments,new G(l)},y=x;y.l=O,y.i=w,y.w=function(b,h){return v(b,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var G=(function(){function b(l){this.$L=O(l.locale,null,!0),this.parse(l),this.$x=this.$x||l.x||{},this[c]=!0}var h=b.prototype;return h.parse=function(l){this.$d=(function(g){var d=g.date,S=g.utc;if(d===null)return new Date(NaN);if(y.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var A=d.match(B);if(A){var P=A[2]-1||0,M=(A[7]||"0").substring(0,3);return S?new Date(Date.UTC(A[1],P,A[3]||1,A[4]||0,A[5]||0,A[6]||0,M)):new Date(A[1],P,A[3]||1,A[4]||0,A[5]||0,A[6]||0,M)}}return new Date(d)})(l),this.init()},h.init=function(){var l=this.$d;this.$y=l.getFullYear(),this.$M=l.getMonth(),this.$D=l.getDate(),this.$W=l.getDay(),this.$H=l.getHours(),this.$m=l.getMinutes(),this.$s=l.getSeconds(),this.$ms=l.getMilliseconds()},h.$utils=function(){return y},h.isValid=function(){return this.$d.toString()!==R},h.isSame=function(l,g){var d=v(l);return this.startOf(g)<=d&&d<=this.endOf(g)},h.isAfter=function(l,g){return v(l)<this.startOf(g)},h.isBefore=function(l,g){return this.endOf(g)<v(l)},h.$g=function(l,g,d){return y.u(l)?this[g]:this.set(d,l)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(l,g){var d=this,S=!!y.u(g)||g,A=y.p(l),P=function(K,z){var J=y.w(d.$u?Date.UTC(d.$y,z,K):new Date(d.$y,z,K),d);return S?J:J.endOf(E)},M=function(K,z){return y.w(d.toDate()[K].apply(d.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(z)),d)},H=this.$W,U=this.$M,q=this.$D,re="set"+(this.$u?"UTC":"");switch(A){case k:return S?P(1,0):P(31,11);case D:return S?P(1,U):P(0,U+1);case C:var oe=this.$locale().weekStart||0,ae=(H<oe?H+7:H)-oe;return P(S?q-ae:q+(6-ae),U);case E:case T:return M(re+"Hours",0);case u:return M(re+"Minutes",1);case i:return M(re+"Seconds",2);case s:return M(re+"Milliseconds",3);default:return this.clone()}},h.endOf=function(l){return this.startOf(l,!1)},h.$set=function(l,g){var d,S=y.p(l),A="set"+(this.$u?"UTC":""),P=(d={},d[E]=A+"Date",d[T]=A+"Date",d[D]=A+"Month",d[k]=A+"FullYear",d[u]=A+"Hours",d[i]=A+"Minutes",d[s]=A+"Seconds",d[a]=A+"Milliseconds",d)[S],M=S===E?this.$D+(g-this.$W):g;if(S===D||S===k){var H=this.clone().set(T,1);H.$d[P](M),H.init(),this.$d=H.set(T,Math.min(this.$D,H.daysInMonth())).$d}else P&&this.$d[P](M);return this.init(),this},h.set=function(l,g){return this.clone().$set(l,g)},h.get=function(l){return this[y.p(l)]()},h.add=function(l,g){var d,S=this;l=Number(l);var A=y.p(g),P=function(U){var q=v(S);return y.w(q.date(q.date()+Math.round(U*l)),S)};if(A===D)return this.set(D,this.$M+l);if(A===k)return this.set(k,this.$y+l);if(A===E)return P(1);if(A===C)return P(7);var M=(d={},d[i]=r,d[u]=o,d[s]=n,d)[A]||1,H=this.$d.getTime()+l*M;return y.w(H,this)},h.subtract=function(l,g){return this.add(-1*l,g)},h.format=function(l){var g=this,d=this.$locale();if(!this.isValid())return d.invalidDate||R;var S=l||"YYYY-MM-DDTHH:mm:ssZ",A=y.z(this),P=this.$H,M=this.$m,H=this.$M,U=d.weekdays,q=d.months,re=d.meridiem,oe=function(z,J,X,le){return z&&(z[J]||z(g,S))||X[J].slice(0,le)},ae=function(z){return y.s(P%12||12,z,"0")},K=re||function(z,J,X){var le=z<12?"AM":"PM";return X?le.toLowerCase():le};return S.replace(Y,(function(z,J){return J||(function(X){switch(X){case"YY":return String(g.$y).slice(-2);case"YYYY":return y.s(g.$y,4,"0");case"M":return H+1;case"MM":return y.s(H+1,2,"0");case"MMM":return oe(d.monthsShort,H,q,3);case"MMMM":return oe(q,H);case"D":return g.$D;case"DD":return y.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return oe(d.weekdaysMin,g.$W,U,2);case"ddd":return oe(d.weekdaysShort,g.$W,U,3);case"dddd":return U[g.$W];case"H":return String(P);case"HH":return y.s(P,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return K(P,M,!0);case"A":return K(P,M,!1);case"m":return String(M);case"mm":return y.s(M,2,"0");case"s":return String(g.$s);case"ss":return y.s(g.$s,2,"0");case"SSS":return y.s(g.$ms,3,"0");case"Z":return A}return null})(z)||A.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(l,g,d){var S,A=this,P=y.p(g),M=v(l),H=(M.utcOffset()-this.utcOffset())*r,U=this-M,q=function(){return y.m(A,M)};switch(P){case k:S=q()/12;break;case D:S=q();break;case L:S=q()/3;break;case C:S=(U-H)/6048e5;break;case E:S=(U-H)/864e5;break;case u:S=U/o;break;case i:S=U/r;break;case s:S=U/n;break;default:S=U}return d?S:y.a(S)},h.daysInMonth=function(){return this.endOf(D).$D},h.$locale=function(){return m[this.$L]},h.locale=function(l,g){if(!l)return this.$L;var d=this.clone(),S=O(l,g,!0);return S&&(d.$L=S),d},h.clone=function(){return y.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},b})(),ie=G.prototype;return v.prototype=ie,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",E],["$M",D],["$y",k],["$D",T]].forEach((function(b){ie[b[1]]=function(h){return this.$g(h,b[0],b[1])}})),v.extend=function(b,h){return b.$i||(b(h,G,v),b.$i=!0),v},v.locale=O,v.isDayjs=w,v.unix=function(b){return v(1e3*b)},v.en=m[N],v.Ls=m,v.p={},v}))})),$=gt(kn());const Ye=e=>(0,$.default)(e).toDate(),Cn=e=>(0,$.default)(e),xn=(e,t,n)=>{const r=e+t,o=(0,$.default)().year()-e,a=Array.from({length:r},(s,i)=>i+o);if(!a.includes(n))if((0,$.default)().year()<=n)a.push(n);else return[n,...a];return a},_n=(e,t)=>{const n=(0,$.default)(e).date(t);return(0,$.default)().isSame(n,"day")};var Z=function(){return Z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Z.apply(this,arguments)};function Ae(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Nn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var On=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Tn=Nn(function(e){return On.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),j="-ms-",Te="-moz-",I="-webkit-",Gt="comm",yt="rule",vt="decl",Ln="@import",Mn="@namespace",qt="@keyframes",Pn="@layer",Jt=Math.abs,St=String.fromCharCode,st=Object.assign;function In(e,t){return W(e,0)^45?(((t<<2^W(e,0))<<2^W(e,1))<<2^W(e,2))<<2^W(e,3):0}function Xt(e){return e.trim()}function ce(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,n){return e.replace(t,n)}function Ve(e,t,n){return e.indexOf(t,n)}function W(e,t){return e.charCodeAt(t)|0}function ve(e,t,n){return e.slice(t,n)}function te(e){return e.length}function Zt(e){return e.length}function Ne(e,t){return t.push(e),e}function Rn(e,t){return e.map(t).join("")}function Et(e,t){return e.filter(function(n){return!ce(n,t)})}var Qe=1,De=1,Kt=0,ee=0,V=0,_e="";function $e(e,t,n,r,o,a,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Qe,column:De,length:s,return:"",siblings:i}}function fe(e,t){return st($e("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function be(e){for(;e.root;)e=fe(e.root,{children:[e]});Ne(e,e.siblings)}function Fn(){return V}function jn(){return V=ee>0?W(_e,--ee):0,De--,V===10&&(De=1,Qe--),V}function ne(){return V=ee<Kt?W(_e,ee++):0,De++,V===10&&(De=1,Qe++),V}function he(){return W(_e,ee)}function ze(){return ee}function et(e,t){return ve(_e,e,t)}function Le(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yn(e){return Qe=De=1,Kt=te(_e=e),ee=0,[]}function Hn(e){return _e="",e}function nt(e){return Xt(et(ee-1,it(e===91?e+2:e===40?e+1:e)))}function Un(e){for(;(V=he())&&V<33;)ne();return Le(e)>2||Le(V)>3?"":" "}function Vn(e,t){for(;--t&&ne()&&!(V<48||V>102||V>57&&V<65||V>70&&V<97););return et(e,ze()+(t<6&&he()==32&&ne()==32))}function it(e){for(;ne();)switch(V){case e:return ee;case 34:case 39:e!==34&&e!==39&&it(V);break;case 40:e===41&&it(e);break;case 92:ne();break}return ee}function zn(e,t){for(;ne()&&e+V!==57;)if(e+V===84&&he()===47)break;return"/*"+et(t,ee-1)+"*"+St(e===47?e:ne())}function Wn(e){for(;!Le(he());)ne();return et(e,ee)}function Bn(e){return Hn(We("",null,null,null,[""],e=Yn(e),0,[0],e))}function We(e,t,n,r,o,a,s,i,u){for(var E=0,C=0,D=s,L=0,k=0,T=0,R=1,B=1,Y=1,F=0,f="",x=o,N=a,m=r,c=f;B;)switch(T=F,F=ne()){case 40:if(T!=108&&W(c,D-1)==58){Ve(c+=_(nt(F),"&","&\f"),"&\f",Jt(E?i[E-1]:0))!=-1&&(Y=-1);break}case 34:case 39:case 91:c+=nt(F);break;case 9:case 10:case 13:case 32:c+=Un(T);break;case 92:c+=Vn(ze()-1,7);continue;case 47:switch(he()){case 42:case 47:Ne(Gn(zn(ne(),ze()),t,n,u),u),(Le(T||1)==5||Le(he()||1)==5)&&te(c)&&ve(c,-1,void 0)!==" "&&(c+=" ");break;default:c+="/"}break;case 123*R:i[E++]=te(c)*Y;case 125*R:case 59:case 0:switch(F){case 0:case 125:B=0;case 59+C:Y==-1&&(c=_(c,/\f/g,"")),k>0&&(te(c)-D||R===0&&T===47)&&Ne(k>32?Ct(c+";",r,n,D-1,u):Ct(_(c," ","")+";",r,n,D-2,u),u);break;case 59:c+=";";default:if(Ne(m=kt(c,t,n,E,C,o,i,f,x=[],N=[],D,a),a),F===123)if(C===0)We(c,t,m,m,x,a,D,i,N);else{switch(L){case 99:if(W(c,3)===110)break;case 108:if(W(c,2)===97)break;default:C=0;case 100:case 109:case 115:}C?We(e,m,m,r&&Ne(kt(e,m,m,0,0,o,i,f,o,x=[],D,N),N),o,N,D,i,r?x:N):We(c,m,m,m,[""],N,0,i,N)}}E=C=k=0,R=Y=1,f=c="",D=s;break;case 58:D=1+te(c),k=T;default:if(R<1){if(F==123)--R;else if(F==125&&R++==0&&jn()==125)continue}switch(c+=St(F),F*R){case 38:Y=C>0?1:(c+="\f",-1);break;case 44:i[E++]=(te(c)-1)*Y,Y=1;break;case 64:he()===45&&(c+=nt(ne())),L=he(),C=D=te(f=c+=Wn(ze())),F++;break;case 45:T===45&&te(c)==2&&(R=0)}}return a}function kt(e,t,n,r,o,a,s,i,u,E,C,D){for(var L=o-1,k=o===0?a:[""],T=Zt(k),R=0,B=0,Y=0;R<r;++R)for(var F=0,f=ve(e,L+1,L=Jt(B=s[R])),x=e;F<T;++F)(x=Xt(B>0?k[F]+" "+f:_(f,/&\f/g,k[F])))&&(u[Y++]=x);return $e(e,t,n,o===0?yt:i,u,E,C,D)}function Gn(e,t,n,r){return $e(e,t,n,Gt,St(Fn()),ve(e,2,-2),0,r)}function Ct(e,t,n,r,o){return $e(e,t,n,vt,ve(e,0,r),ve(e,r+1,-1),r,o)}function Qt(e,t,n){switch(In(e,t)){case 5103:return I+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return I+e+e;case 4855:return I+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+Te+e+j+e+e;case 5936:switch(W(e,t+11)){case 114:return I+e+j+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+j+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+j+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return I+e+j+e+e;case 6165:return I+e+j+"flex-"+e+e;case 5187:return I+e+_(e,/(\w+).+(:[^]+)/,I+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return I+e+j+"flex-item-"+_(e,/flex-|-self/g,"")+(ce(e,/flex-|baseline/)?"":j+"grid-row-"+_(e,/flex-|-self/g,""))+e;case 4675:return I+e+j+"flex-line-pack"+_(e,/align-content|flex-|-self/g,"")+e;case 5548:return I+e+j+_(e,"shrink","negative")+e;case 5292:return I+e+j+_(e,"basis","preferred-size")+e;case 6060:return I+"box-"+_(e,"-grow","")+I+e+j+_(e,"grow","positive")+e;case 4554:return I+_(e,/([^-])(transform)/g,"$1"+I+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+j+"flex-pack:$3"),/space-between/,"justify")+I+e+e;case 4200:if(!ce(e,/flex-|baseline/))return j+"grid-column-align"+ve(e,t)+e;break;case 2592:case 3360:return j+_(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ce(r.props,/grid-\w+-end/)})?~Ve(e+(n=n[t].value),"span",0)?e:j+_(e,"-start","")+e+j+"grid-row-span:"+(~Ve(n,"span",0)?ce(n,/\d+/):+ce(n,/\d+/)-+ce(e,/\d+/))+";":j+_(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ce(r.props,/grid-\w+-start/)})?e:j+_(_(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,I+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(te(e)-1-t>6)switch(W(e,t+1)){case 109:if(W(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+Te+(W(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ve(e,"stretch",0)?Qt(_(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return _(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,a,s,i,u,E){return j+o+":"+a+E+(s?j+o+"-span:"+(i?u:+u-+a)+E:"")+e});case 4949:if(W(e,t+6)===121)return _(e,":",":"+I)+e;break;case 6444:switch(W(e,W(e,14)===45?18:11)){case 120:return _(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+I+(W(e,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+j+"$2box$3")+e;case 100:return _(e,":",":"+j)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _(e,"scroll-","scroll-snap-")+e}return e}function qe(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function qn(e,t,n,r){switch(e.type){case Pn:if(e.children.length)break;case Ln:case Mn:case vt:return e.return=e.return||e.value;case Gt:return"";case qt:return e.return=e.value+"{"+qe(e.children,r)+"}";case yt:if(!te(e.value=e.props.join(",")))return""}return te(n=qe(e.children,r))?e.return=e.value+"{"+n+"}":""}function Jn(e){var t=Zt(e);return function(n,r,o,a){for(var s="",i=0;i<t;i++)s+=e[i](n,r,o,a)||"";return s}}function Xn(e){return function(t){t.root||(t=t.return)&&e(t)}}function Zn(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vt:e.return=Qt(e.value,e.length,n);return;case qt:return qe([fe(e,{value:_(e.value,"@","@"+I)})],r);case yt:if(e.length)return Rn(n=e.props,function(o){switch(ce(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":be(fe(e,{props:[_(o,/:(read-\w+)/,":"+Te+"$1")]})),be(fe(e,{props:[o]})),st(e,{props:Et(n,r)});break;case"::placeholder":be(fe(e,{props:[_(o,/:(plac\w+)/,":"+I+"input-$1")]})),be(fe(e,{props:[_(o,/:(plac\w+)/,":"+Te+"$1")]})),be(fe(e,{props:[_(o,/:(plac\w+)/,j+"input-$1")]})),be(fe(e,{props:[o]})),st(e,{props:Et(n,r)});break}return""})}}var Kn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ue=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$t="active",Je="data-styled-version",Ee="6.3.8",bt=`/*!sc*/
2
- `,Xe=typeof window<"u"&&typeof document<"u",me=p.default.createContext===void 0,Qn=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production");var xt=/invalid hook call/i,He=new Set,$n=function(e,t){if(process.env.NODE_ENV!=="production"){if(me)return;var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
3
- `)+`You may see this warning because you've called styled inside another component.
4
- To resolve this only create new StyledComponents outside of any render method and function component.
5
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
6
- `,o=console.error;try{var a=!0;console.error=function(s){for(var i=[],u=1;u<arguments.length;u++)i[u-1]=arguments[u];xt.test(s)?(a=!1,He.delete(r)):o.apply(void 0,Ae([s],i,!1))},typeof p.default.useState=="function"&&p.default.useState(null),a&&!He.has(r)&&(console.warn(r),He.add(r))}catch(s){xt.test(s.message)&&He.delete(r)}finally{console.error=o}}},tt=Object.freeze([]),ke=Object.freeze({});function er(e,t,n){return n===void 0&&(n=ke),e.theme!==n.theme&&e.theme||t||n.theme}var ct=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),tr=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,nr=/(^-|-$)/g;function _t(e){return e.replace(tr,"-").replace(nr,"")}var rr=/(a)(d)/gi,Nt=function(e){return String.fromCharCode(e+(e>25?39:97))};function ut(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Nt(t%52)+n;return(Nt(t%52)+n).replace(rr,"$1-$2")}var rt,ge=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},en=function(e){return ge(5381,e)};function or(e){return ut(en(e)>>>0)}function tn(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function ot(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var nn=typeof Symbol=="function"&&Symbol.for,rn=nn?Symbol.for("react.memo"):60115,ar=nn?Symbol.for("react.forward_ref"):60112,sr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ir={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},on={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cr=((rt={})[ar]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rt[rn]=on,rt);function Ot(e){return("type"in(t=e)&&t.type.$$typeof)===rn?on:"$$typeof"in e?cr[e.$$typeof]:sr;var t}var ur=Object.defineProperty,lr=Object.getOwnPropertyNames,Tt=Object.getOwnPropertySymbols,dr=Object.getOwnPropertyDescriptor,fr=Object.getPrototypeOf,Lt=Object.prototype;function an(e,t,n){if(typeof t!="string"){if(Lt){var r=fr(t);r&&r!==Lt&&an(e,r,n)}var o=lr(t);Tt&&(o=o.concat(Tt(t)));for(var a=Ot(e),s=Ot(t),i=0;i<o.length;++i){var u=o[i];if(!(u in ir||n&&n[u]||s&&u in s||a&&u in a)){var E=dr(t,u);try{ur(e,u,E)}catch{}}}}return e}function Ce(e){return typeof e=="function"}function wt(e){return typeof e=="object"&&"styledComponentId"in e}function ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ze(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function xe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function lt(e,t,n){if(n===void 0&&(n=!1),!n&&!xe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=lt(e[r],t[r]);else if(xe(t))for(var r in t)e[r]=lt(e[r],t[r]);return e}function At(e,t){Object.defineProperty(e,"toString",{value:t})}var hr=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
7
-
8
- `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
9
-
10
- - Are you trying to reuse it across renders?
11
- - Are you accidentally calling collectStyles twice?
12
-
13
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
14
-
15
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
16
-
17
- - Does this error occur on the client and is your target falsy?
18
- - Does this error occur on the server and is the sheet falsy?
19
-
20
- `,5:`The clone method cannot be used on the client!
21
-
22
- - Are you running in a client-like environment on the server?
23
- - Are you trying to run SSR on the client?
24
-
25
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
26
-
27
- - Are you using a custom target that isn't mounted?
28
- - Does your document not have a valid head element?
29
- - Have you accidentally removed a style tag manually?
30
-
31
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
32
-
33
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
34
-
35
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
36
-
37
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
38
-
39
- `,14:`ThemeProvider: "theme" prop is required.
40
-
41
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
42
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
43
- as for instance in your render method then you may be running into this limitation.
44
-
45
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
46
- Has styled-components' style tag been unmounted or altered by another script?
47
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,a=e.length;o<a;o+=1)r.push(e[o]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function se(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(pr.apply(void 0,Ae([hr[e]],t,!1)).trim())}var mr=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,a=o;t>=a;)if((a<<=1)<0)throw se(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(t+1),u=(s=0,n.length);s<u;s++)this.tag.insertRule(i,n[s])&&(this.groupSizes[t]++,i++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var a=r;a<o;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r,s=o;s<a;s++)n+="".concat(this.tag.getRule(s)).concat(bt);return n},e})(),gr=1<<30,Be=new Map,Ke=new Map,Ge=1,Oe=function(e){if(Be.has(e))return Be.get(e);for(;Ke.has(Ge);)Ge++;var t=Ge++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>gr))throw se(16,"".concat(t));return Be.set(e,t),Ke.set(t,e),t},yr=function(e,t){Ge=t+1,Be.set(e,t),Ke.set(t,e)},vr="style[".concat(ue,"][").concat(Je,'="').concat(Ee,'"]'),Sr=new RegExp("^".concat(ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),br=function(e,t,n){for(var r,o=n.split(","),a=0,s=o.length;a<s;a++)(r=o[a])&&e.registerName(t,r)},wr=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(bt),o=[],a=0,s=r.length;a<s;a++){var i=r[a].trim();if(i){var u=i.match(Sr);if(u){var E=0|parseInt(u[1],10),C=u[2];E!==0&&(yr(C,E),br(e,C,u[3]),e.getTag().insertRules(E,o)),o.length=0}else o.push(i)}}},Mt=function(e){for(var t=document.querySelectorAll(vr),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ue)!==$t&&(wr(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function dt(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var sn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(i){var u=Array.from(i.querySelectorAll("style[".concat(ue,"]")));return u[u.length-1]})(n),a=o!==void 0?o.nextSibling:null;r.setAttribute(ue,$t),r.setAttribute(Je,Ee);var s=dt();return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Ar=(function(){function e(t){this.element=sn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,a=r.length;o<a;o++){var s=r[o];if(s.ownerNode===n)return s}throw se(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Dr=(function(){function e(t){this.element=sn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Er=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Pt=Xe,kr={isServer:!Xe,useCSSOMInjection:!Qn},Me=(function(){function e(t,n,r){t===void 0&&(t=ke),n===void 0&&(n={});var o=this;this.options=Z(Z({},kr),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Xe&&Pt&&(Pt=!1,Mt(this)),At(this,function(){return(function(a){for(var s=a.getTag(),i=s.length,u="",E=function(D){var L=(function(Y){return Ke.get(Y)})(D);if(L===void 0)return"continue";var k=a.names.get(L),T=s.getGroup(D);if(k===void 0||!k.size||T.length===0)return"continue";var R="".concat(ue,".g").concat(D,'[id="').concat(L,'"]'),B="";k!==void 0&&k.forEach(function(Y){Y.length>0&&(B+="".concat(Y,","))}),u+="".concat(T).concat(R,'{content:"').concat(B,'"}').concat(bt)},C=0;C<i;C++)E(C);return u})(o)})}return e.registerId=function(t){return Oe(t)},e.prototype.rehydrate=function(){!this.server&&Xe&&Mt(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Z(Z({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Er(o):r?new Ar(o):new Dr(o)})(this.options),new mr(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Oe(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Oe(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Oe(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Cr=/&/g,we=47;function It(e){if(e.indexOf("}")===-1)return!1;for(var t=e.length,n=0,r=0,o=!1,a=0;a<t;a++){var s=e.charCodeAt(a);if(r!==0||o||s!==we||e.charCodeAt(a+1)!==42)if(o)s===42&&e.charCodeAt(a+1)===we&&(o=!1,a++);else if(s!==34&&s!==39||a!==0&&e.charCodeAt(a-1)===92){if(r===0){if(s===123)n++;else if(s===125&&--n<0)return!0}}else r===0?r=s:r===s&&(r=0);else o=!0,a++}return n!==0||r!==0}function cn(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=cn(n.children,t)),n})}function un(e){var t,n,r,o=e===void 0?ke:e,a=o.options,s=a===void 0?ke:a,i=o.plugins,u=i===void 0?tt:i,E=function(L,k,T){return T.startsWith(n)&&T.endsWith(n)&&T.replaceAll(n,"").length>0?".".concat(t):L},C=u.slice();C.push(function(L){L.type==="rule"&&L.value.includes("&")&&(L.props[0]=L.props[0].replace(Cr,n).replace(r,E))}),s.prefix&&C.push(Zn),C.push(qn);var D=function(L,k,T,R){k===void 0&&(k=""),T===void 0&&(T=""),R===void 0&&(R="&"),t=R,n=k,r=new RegExp("\\".concat(n,"\\b"),"g");var B=(function(f){if(!It(f))return f;for(var x=f.length,N="",m=0,c=0,w=0,O=!1,v=0;v<x;v++){var y=f.charCodeAt(v);if(w!==0||O||y!==we||f.charCodeAt(v+1)!==42)if(O)y===42&&f.charCodeAt(v+1)===we&&(O=!1,v++);else if(y!==34&&y!==39||v!==0&&f.charCodeAt(v-1)===92){if(w===0)if(y===123)c++;else if(y===125){if(--c<0){for(var G=v+1;G<x;){var ie=f.charCodeAt(G);if(ie===59||ie===10)break;G++}G<x&&f.charCodeAt(G)===59&&G++,c=0,v=G-1,m=G;continue}c===0&&(N+=f.substring(m,v+1),m=v+1)}else y===59&&c===0&&(N+=f.substring(m,v+1),m=v+1)}else w===0?w=y:w===y&&(w=0);else O=!0,v++}if(m<x){var b=f.substring(m);It(b)||(N+=b)}return N})((function(f){if(f.indexOf("//")===-1)return f;for(var x=f.length,N=[],m=0,c=0,w=0,O=0;c<x;){var v=f.charCodeAt(c);if(v!==34&&v!==39||c!==0&&f.charCodeAt(c-1)===92)if(w===0)if(v===40&&c>=3&&(32|f.charCodeAt(c-1))==108&&(32|f.charCodeAt(c-2))==114&&(32|f.charCodeAt(c-3))==117)O=1,c++;else if(O>0)v===41?O--:v===40&&O++,c++;else if(v===we&&c+1<x&&f.charCodeAt(c+1)===we){for(c>m&&N.push(f.substring(m,c));c<x&&f.charCodeAt(c)!==10;)c++;m=c}else c++;else c++;else w===0?w=v:w===v&&(w=0),c++}return m===0?f:(m<x&&N.push(f.substring(m)),N.join(""))})(L)),Y=Bn(T||k?"".concat(T," ").concat(k," { ").concat(B," }"):B);s.namespace&&(Y=cn(Y,s.namespace));var F=[];return qe(Y,Jn(C.concat(Xn(function(f){return F.push(f)})))),F};return D.hash=u.length?u.reduce(function(L,k){return k.name||se(15),ge(L,k.name)},5381).toString():"",D}var xr=new Me,ft=un(),ht={shouldForwardProp:void 0,styleSheet:xr,stylis:ft},Dt=me?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(ht)}}:p.default.createContext(ht),Kr=Dt.Consumer,_r=me?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:p.default.createContext(void 0);function pt(){return me?ht:p.default.useContext(Dt)}function Nr(e){if(me||!p.default.useMemo)return e.children;var t=pt().styleSheet,n=p.default.useMemo(function(){var a=t;return e.sheet?a=e.sheet:e.target&&(a=a.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(a=a.reconstructWithOptions({useCSSOMInjection:!1})),a},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=p.default.useMemo(function(){return un({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=p.default.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return p.default.createElement(Dt.Provider,{value:o},p.default.createElement(_r.Provider,{value:r},e.children))}var Rt=(function(){function e(t,n){var r=this;this.inject=function(o,a){a===void 0&&(a=ft);var s=r.name+a.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,a(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,At(this,function(){throw se(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ft),this.name+t.hash},e})();function Or(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in Kn||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Tr=function(e){return e>="A"&&e<="Z"};function Ft(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Tr(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ln=function(e){return e==null||e===!1||e===""},dn=function(e){var t=[];for(var n in e){var r=e[n];e.hasOwnProperty(n)&&!ln(r)&&(Array.isArray(r)&&r.isCss||Ce(r)?t.push("".concat(Ft(n),":"),r,";"):xe(r)?t.push.apply(t,Ae(Ae(["".concat(n," {")],dn(r),!1),["}"],!1)):t.push("".concat(Ft(n),": ").concat(Or(n,r),";")))}return t};function pe(e,t,n,r){if(ln(e))return[];if(wt(e))return[".".concat(e.styledComponentId)];if(Ce(e)){if(!Ce(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Rt||xe(o)||o===null||console.error("".concat(tn(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),pe(o,t,n,r)}var a;return e instanceof Rt?n?(e.inject(n,r),[e.getName(r)]):[e]:xe(e)?dn(e):Array.isArray(e)?Array.prototype.concat.apply(tt,e.map(function(s){return pe(s,t,n,r)})):[e.toString()]}function fn(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ce(n)&&!wt(n))return!1}return!0}var Lr=en(Ee),Mr=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&fn(t),this.componentId=n,this.baseHash=ge(Lr,n),this.baseStyle=r,Me.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ye(o,this.staticRulesId);else{var a=Ze(pe(this.rules,t,n,r)),s=ut(ge(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,s)){var i=r(a,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,i)}o=ye(o,s),this.staticRulesId=s}else{for(var u=ge(this.baseHash,r.hash),E="",C=0;C<this.rules.length;C++){var D=this.rules[C];if(typeof D=="string")E+=D,process.env.NODE_ENV!=="production"&&(u=ge(u,D));else if(D){var L=Ze(pe(D,t,n,r));u=ge(u,L+C),E+=L}}if(E){var k=ut(u>>>0);if(!n.hasNameForId(this.componentId,k)){var T=r(E,".".concat(k),void 0,this.componentId);n.insertRules(this.componentId,k,T)}o=ye(o,k)}}return{className:o,css:typeof window>"u"?n.getTag().getGroup(Oe(this.componentId)):""}},e})(),hn=me?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:p.default.createContext(void 0),Qr=hn.Consumer,at={},jt=new Set;function Pr(e,t,n){var r=wt(e),o=e,a=!ot(e),s=t.attrs,i=s===void 0?tt:s,u=t.componentId,E=u===void 0?(function(x,N){var m=typeof x!="string"?"sc":_t(x);at[m]=(at[m]||0)+1;var c="".concat(m,"-").concat(or(Ee+m+at[m]));return N?"".concat(N,"-").concat(c):c})(t.displayName,t.parentComponentId):u,C=t.displayName,D=C===void 0?(function(x){return ot(x)?"styled.".concat(x):"Styled(".concat(tn(x),")")})(e):C,L=t.displayName&&t.componentId?"".concat(_t(t.displayName),"-").concat(t.componentId):t.componentId||E,k=r&&o.attrs?o.attrs.concat(i).filter(Boolean):i,T=t.shouldForwardProp;if(r&&o.shouldForwardProp){var R=o.shouldForwardProp;if(t.shouldForwardProp){var B=t.shouldForwardProp;T=function(x,N){return R(x,N)&&B(x,N)}}else T=R}var Y=new Mr(n,L,r?o.componentStyle:void 0);function F(x,N){return(function(m,c,w){var O=m.attrs,v=m.componentStyle,y=m.defaultProps,G=m.foldedComponentIds,ie=m.styledComponentId,b=m.target,h=me?void 0:p.default.useContext(hn),l=pt(),g=m.shouldForwardProp||l.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.default.useDebugValue&&p.default.useDebugValue(ie);var d=er(c,h,y)||ke,S=(function(ae,K,z){for(var J,X=Z(Z({},K),{className:void 0,theme:z}),le=0;le<ae.length;le+=1){var Ie=Ce(J=ae[le])?J(X):J;for(var Se in Ie)Se==="className"?X.className=ye(X.className,Ie[Se]):Se==="style"?X.style=Z(Z({},X.style),Ie[Se]):X[Se]=Ie[Se]}return"className"in K&&typeof K.className=="string"&&(X.className=ye(X.className,K.className)),X})(O,c,d),A=S.as||b,P={};for(var M in S)S[M]===void 0||M[0]==="$"||M==="as"||M==="theme"&&S.theme===d||(M==="forwardedAs"?P.as=S.forwardedAs:g&&!g(M,A)||(P[M]=S[M],g||process.env.NODE_ENV!=="development"||Tn(M)||jt.has(M)||!ct.has(A)||(jt.add(M),console.warn('styled-components: it looks like an unknown prop "'.concat(M,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var H=(function(ae,K){var z=pt(),J=ae.generateAndInjectStyles(K,z.styleSheet,z.stylis);return process.env.NODE_ENV!=="production"&&p.default.useDebugValue&&p.default.useDebugValue(J.className),J})(v,S),U=H.className,q=H.css;process.env.NODE_ENV!=="production"&&m.warnTooManyClasses&&m.warnTooManyClasses(U);var re=ye(G,ie);U&&(re+=" "+U),S.className&&(re+=" "+S.className),P[ot(A)&&!ct.has(A)?"class":"className"]=re,w&&(P.ref=w);var oe=(0,p.createElement)(A,P);return me&&q?p.default.createElement(p.default.Fragment,null,p.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(ie,"-").concat(U),children:q}),oe):oe})(f,x,N)}F.displayName=D;var f=p.default.forwardRef(F);return f.attrs=k,f.componentStyle=Y,f.displayName=D,f.shouldForwardProp=T,f.foldedComponentIds=r?ye(o.foldedComponentIds,o.styledComponentId):"",f.styledComponentId=L,f.target=r?o.target:e,Object.defineProperty(f,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=r?(function(N){for(var m=[],c=1;c<arguments.length;c++)m[c-1]=arguments[c];for(var w=0,O=m;w<O.length;w++)lt(N,O[w],!0);return N})({},o.defaultProps,x):x}}),process.env.NODE_ENV!=="production"&&($n(D,L),f.warnTooManyClasses=(function(x,N){var m={},c=!1;return function(w){if(!c&&(m[w]=!0,Object.keys(m).length>=200)){var O=N?' with the id of "'.concat(N,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(x).concat(O,`.
48
- `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
- Example:
50
- const Component = styled.div.attrs(props => ({
51
- style: {
52
- background: props.background,
53
- },
54
- }))\`width: 100%;\`
55
-
56
- <Component />`),c=!0,m={}}}})(D,L)),At(f,function(){return".".concat(f.styledComponentId)}),a&&an(f,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),f}function Yt(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Ht=function(e){return Object.assign(e,{isCss:!0})};function Ir(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ce(e)||xe(e))return Ht(pe(Yt(tt,Ae([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?pe(r):Ht(pe(Yt(r,t)))}function mt(e,t,n){if(n===void 0&&(n=ke),!t)throw se(1,t);var r=function(o){for(var a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];return e(t,n,Ir.apply(void 0,Ae([o],a,!1)))};return r.attrs=function(o){return mt(e,t,Z(Z({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return mt(e,t,Z(Z({},n),o))},r}var pn=function(e){return mt(Pr,e)},Pe=pn;ct.forEach(function(e){Pe[e]=pn(e)});var $r=(function(){function e(t,n){this.rules=t,this.componentId=n,this.isStatic=fn(t),Me.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,n,r,o){var a=o(Ze(pe(this.rules,n,r,o)),""),s=this.componentId+t;r.insertRules(s,s,a)},e.prototype.removeStyles=function(t,n){n.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,n,r,o){t>2&&Me.registerId(this.componentId+t);var a=this.componentId+t;this.isStatic?r.hasNameForId(a,a)||this.createStyles(t,n,r,o):(this.removeStyles(t,r),this.createStyles(t,n,r,o))},e})(),eo=(function(){function e(){var t=this;this._emitSheetCSS=function(){var n=t.instance.toString();if(!n)return"";var r=dt(),o=Ze([r&&'nonce="'.concat(r,'"'),"".concat(ue,'="true"'),"".concat(Je,'="').concat(Ee,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(n,"</style>")},this.getStyleTags=function(){if(t.sealed)throw se(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw se(2);var r=t.instance.toString();if(!r)return[];var o=((n={})[ue]="",n[Je]=Ee,n.dangerouslySetInnerHTML={__html:r},n),a=dt();return a&&(o.nonce=a),[p.default.createElement("style",Z({},o,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new Me({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(t){if(this.sealed)throw se(2);return p.default.createElement(Nr,{sheet:this.instance},t)},e.prototype.interleaveWithNodeStream=function(t){throw se(3)},e})();process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
57
- Perhaps you're looking to import 'styled-components/native'?
58
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ue="__sc-".concat(ue,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ue]||(window[Ue]=0),window[Ue]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
59
-
60
- See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Ue]+=1);var Rr=Pe.section`
61
- * {
62
- padding: 0;
63
- margin: 0;
64
- outline: none;
65
- }
66
- width: max-content;
67
- height: max-content;
68
- & > div {
69
- display: flex;
70
- justify-content: space-between;
71
- align-items: center;
72
- padding: 0 10px;
73
- margin-bottom: 10px;
74
- & > div {
75
- display: flex;
76
- gap: 20px;
77
- }
78
- }
79
- & > table {
80
- border-collapse: collapse;
81
- & th,
82
- & td {
83
- border: 1px solid black;
84
- text-align: center;
85
- min-width: calc(${e=>e.$width} / 7);
86
- max-width: calc(${e=>e.$width} / 7);
87
- }
88
- & th {
89
- height: calc(${e=>e.$height} / 10);
90
- }
91
- & td {
92
- height: calc(${e=>e.$height} / 7);
93
- }
94
- }
95
- `;const Ut=Pe.button`
96
- outline: none;
97
- border: none;
98
- background: none;
99
- color: rgb(211, 211, 211);
100
- border-radius: 5px;
101
- &:hover {
102
- background-color: rgba(211, 211, 211, 0.5);
103
- transition: 0.2s ease-in-out;
104
- }
105
- `,Vt=Pe.select`
106
- border-radius: 3px;
107
- padding: 2px;
108
- cursor: pointer;
109
- `;var Fr=Rr,jr=Wt(((e,t)=>{(function(){"use strict";var n={}.hasOwnProperty;function r(){for(var s="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(s=a(s,o(u)))}return s}function o(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var i="";for(var u in s)n.call(s,u)&&s[u]&&(i=a(i,u));return i}function a(s,i){return i?s?s+" "+i:s+i:s}typeof t<"u"&&t.exports?(r.default=r,t.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()})),Yr=gt(jr());function Hr(e){const{date:t,data:n,className:r,dataClassName:o,isSelected:a,isToday:s,onClick:i,selectedClassName:u,todayClassName:E}=e;return p.default.createElement(Ur,{$isSelected:a,$isToday:s,onClick:()=>i?.(t),className:(0,Yr.default)(r,a&&u,s&&E)},p.default.createElement("div",null,p.default.createElement("p",null,t),n&&p.default.createElement("div",{className:o},n)))}var Ur=Pe.td`
110
- cursor: pointer;
111
- & > div {
112
- height: 100%;
113
- width: 100%;
114
- display: flex;
115
- flex-direction: column;
116
- justify-content: space-around;
117
- & > div > * {
118
- overflow: hidden;
119
- text-overflow: ellipsis;
120
- white-space: nowrap;
121
- }
122
- }
123
- ${e=>e.$isSelected?`
124
- background-color: #EEEEEE;
125
- color: #737373;
126
- font-weight: bold;
127
- `:""}
128
- ${e=>e.$isToday?`
129
- color: #2E75B6;
130
- font-size: 18px;
131
- font-weight: bold;
132
- `:""}
133
- `,Vr=Hr;function zr(){return p.default.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 24.00 24.00",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#707070",transform:"rotate(180)"},p.default.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),p.default.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),p.default.createElement("g",{id:"SVGRepo_iconCarrier"},p.default.createElement("path",{d:"M10 7L15 12L10 17",stroke:"#707070",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})))}var Wr=zr;function Br(){return p.default.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 24.00 24.00",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#707070"},p.default.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),p.default.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),p.default.createElement("g",{id:"SVGRepo_iconCarrier"},p.default.createElement("path",{d:"M10 7L15 12L10 17",stroke:"#707070",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})))}var Gr=Br;function qr(e,t){for(var n=0,r=0,o,a=[],s=new Date(e||new Date),i=s.getFullYear(),u=s.getMonth(),E=new Date(i,u,1-(t|0)).getDay(),C=new Date(i,u+1,0).getDate();n<C;){for(r=0,o=Array(7);r<7;){for(;r<E;)o[r++]=0;o[r++]=++n>C?0:n,E=0}a.push(o)}return a}var Jr=(e=de)=>{const{dayType:t=de.dayType,data:n=de.data,width:r=de.width,height:o=de.height,selectedDate:a,onDateClick:s,onMonthChange:i,isSelectDate:u=de.isSelectDate,className:E,headerClassName:C,tableClassName:D,tableDateClassName:L,dataClassName:k,selectedClassName:T,todayClassName:R,pastYearLength:B=de.pastYearLength,futureYearLength:Y=de.futureYearLength}=e,F=(0,p.useMemo)(()=>a?Cn(a):(0,$.default)(),[a]),[f,x]=(0,p.useState)(F);(0,p.useLayoutEffect)(()=>{x(F)},[F]);const N=(0,p.useCallback)(()=>{const w=O=>{if(O!==(0,$.default)(f).date()){const v=(0,$.default)(f).date(O);x((0,$.default)(v)),s?.(Ye(v))}};return qr(Ye(f)).map((O,v)=>p.default.createElement("tr",{key:v+1},O.map((y,G)=>y===0?p.default.createElement("td",{key:`empty_idx_${G}`}):p.default.createElement(Vr,{key:`date_${y}`,isSelected:u&&y===f.date(),isToday:_n(f,y),onClick:u?w:void 0,date:y,data:n[y-1],className:L,dataClassName:k,selectedClassName:T,todayClassName:R}))))},[n,f,k,T,R,L,s,u]),m=w=>{let O=f;w===Re.add?O=(0,$.default)(O).month(O.month()+1):w===Re.sub&&(O=(0,$.default)(O).month(O.month()-1)),x(O),i?.(Ye(O))},c=(w,O)=>{const v=Number(w.target.value);let y=f;O===Fe.month?y=(0,$.default)(y).month(v):O===Fe.year&&(y=(0,$.default)(y).year(v)),x(y),i?.(Ye(y))};return p.default.createElement(Fr,{$width:`${r}px`,$height:`${o}px`,className:E},p.default.createElement("div",{className:C},p.default.createElement(Ut,{onClick:()=>m(Re.sub)},p.default.createElement(Wr,null)),p.default.createElement("div",null,p.default.createElement(Vt,{id:je.MONTH,name:je.MONTH,value:f.month(),onChange:w=>c(w,Fe.month)},Dn.map(w=>p.default.createElement("option",{key:w.label,value:w.value},w.label))),p.default.createElement(Vt,{id:je.YEAR,name:je.YEAR,value:f.year(),onChange:w=>c(w,Fe.year)},xn(B,Y,f.year()).map(w=>p.default.createElement("option",{key:w,value:w},w)))),p.default.createElement(Ut,{onClick:()=>m(Re.add)},p.default.createElement(Gr,null))),p.default.createElement("table",{className:D},p.default.createElement("thead",null,p.default.createElement("tr",null,wn[t].map(w=>p.default.createElement("th",{key:w},w)))),p.default.createElement("tbody",null,N())))},Xr=(0,p.memo)(Jr),Zr=Xr;exports.DAY_TYPE=En;exports.EDayType=Bt;exports.default=Zr;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Ee=Object.create,me=Object.defineProperty,be=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyNames,Se=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty,_e=(e,u)=>()=>(u||e((u={exports:{}}).exports,u),u.exports),Le=(e,u,o,i)=>{if(u&&typeof u=="object"||typeof u=="function")for(var y=ge(u),l=0,n=y.length,f;l<n;l++)f=y[l],!Me.call(e,f)&&f!==o&&me(e,f,{get:(D=>u[D]).bind(null,f),enumerable:!(i=be(u,f))||i.enumerable});return e},ee=(e,u,o)=>(o=e!=null?Ee(Se(e)):{},Le(u||!e||!e.__esModule?me(o,"default",{value:e,enumerable:!0}):o,e));let r=require("react");r=ee(r);var de=_e(((e,u)=>{(function(){"use strict";var o={}.hasOwnProperty;function i(){for(var n="",f=0;f<arguments.length;f++){var D=arguments[f];D&&(n=l(n,y(D)))}return n}function y(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return i.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var f="";for(var D in n)o.call(n,D)&&n[D]&&(f=l(f,D));return f}function l(n,f){return f?n?n+" "+f:n+f:n}typeof u<"u"&&u.exports?(i.default=i,u.exports=i):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return i}):window.classNames=i})()})),Ae=ee(de());let pe=(function(e){return e.fullName="FULL",e.halfName="HALF",e})({}),oe=(function(e){return e.add="add",e.sub="sub",e})({}),le=(function(e){return e.month="month",e.year="year",e})({});var W={SUNDAY:{FULL:"Sunday",HALF:"Sun"},MONDAY:{FULL:"Monday",HALF:"Mon"},TUESDAY:{FULL:"Tuesday",HALF:"Tue"},WEDNESDAY:{FULL:"Wednesday",HALF:"Wed"},THURSDAY:{FULL:"Thursday",HALF:"Thu"},FRIDAY:{FULL:"Friday",HALF:"Fri"},SATURDAY:{FULL:"Saturday",HALF:"Sat"}};const we={FULL:[W.SUNDAY.FULL,W.MONDAY.FULL,W.TUESDAY.FULL,W.WEDNESDAY.FULL,W.THURSDAY.FULL,W.FRIDAY.FULL,W.SATURDAY.FULL],HALF:[W.SUNDAY.HALF,W.MONDAY.HALF,W.TUESDAY.HALF,W.WEDNESDAY.HALF,W.THURSDAY.HALF,W.FRIDAY.HALF,W.SATURDAY.HALF]};var Ce={JAN:{label:"January",value:0},FEB:{label:"February",value:1},MAR:{label:"March",value:2},APR:{label:"April",value:3},MAY:{label:"May",value:4},JUN:{label:"June",value:5},JUL:{label:"July",value:6},AUG:{label:"August",value:7},SEP:{label:"September",value:8},OCT:{label:"October",value:9},NOV:{label:"November",value:10},DEC:{label:"December",value:11}};const Oe=Object.values(Ce),ue={MONTH:"monthDropdown",YEAR:"yearDropdown"},$e={FULL_NAME:"FULL",HALF_NAME:"HALF"},ie={default:{color:"#000",bgColor:"#fff"},selected:{color:"#fff",bgColor:"#007bff"},today:{color:"#007bff",bgColor:"#e6f2ff"}},ve={dayType:pe.halfName,data:[],isSelectDate:!1,pastYearLength:5,futureYearLength:5,theme:ie};var Ne=_e(((e,u)=>{(function(o,i){typeof e=="object"&&typeof u<"u"?u.exports=i():typeof define=="function"&&define.amd?define(i):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=i()})(e,(function(){"use strict";var o=1e3,i=6e4,y=36e5,l="millisecond",n="second",f="minute",D="hour",d="day",L="week",h="month",b="quarter",m="year",O="date",T="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var s=["th","st","nd","rd"],t=v%100;return"["+v+(s[(t-20)%10]||s[t]||s[0])+"]"}},w=function(v,s,t){var c=String(v);return!c||c.length>=s?v:""+Array(s+1-c.length).join(t)+v},C={s:w,z:function(v){var s=-v.utcOffset(),t=Math.abs(s),c=Math.floor(t/60),a=t%60;return(s<=0?"+":"-")+w(c,2,"0")+":"+w(a,2,"0")},m:function v(s,t){if(s.date()<t.date())return-v(t,s);var c=12*(t.year()-s.year())+(t.month()-s.month()),a=s.clone().add(c,h),_=t-a<0,p=s.clone().add(c+(_?-1:1),h);return+(-(c+(t-a)/(_?a-p:p-a))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:h,y:m,w:L,d,D:O,h:D,m:f,s:n,ms:l,Q:b}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},F="en",U={};U[F]=$;var V="$isDayjsObject",N=function(v){return v instanceof Z||!(!v||!v[V])},G=function v(s,t,c){var a;if(!s)return F;if(typeof s=="string"){var _=s.toLowerCase();U[_]&&(a=_),t&&(U[_]=t,a=_);var p=s.split("-");if(!a&&p.length>1)return v(p[0])}else{var A=s.name;U[A]=s,a=A}return!c&&a&&(F=a),a||!c&&F},k=function(v,s){if(N(v))return v.clone();var t=typeof s=="object"?s:{};return t.date=v,t.args=arguments,new Z(t)},g=C;g.l=G,g.i=N,g.w=function(v,s){return k(v,{locale:s.$L,utc:s.$u,x:s.$x,$offset:s.$offset})};var Z=(function(){function v(t){this.$L=G(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[V]=!0}var s=v.prototype;return s.parse=function(t){this.$d=(function(c){var a=c.date,_=c.utc;if(a===null)return new Date(NaN);if(g.u(a))return new Date;if(a instanceof Date)return new Date(a);if(typeof a=="string"&&!/Z$/i.test(a)){var p=a.match(S);if(p){var A=p[2]-1||0,Y=(p[7]||"0").substring(0,3);return _?new Date(Date.UTC(p[1],A,p[3]||1,p[4]||0,p[5]||0,p[6]||0,Y)):new Date(p[1],A,p[3]||1,p[4]||0,p[5]||0,p[6]||0,Y)}}return new Date(a)})(t),this.init()},s.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},s.$utils=function(){return g},s.isValid=function(){return this.$d.toString()!==T},s.isSame=function(t,c){var a=k(t);return this.startOf(c)<=a&&a<=this.endOf(c)},s.isAfter=function(t,c){return k(t)<this.startOf(c)},s.isBefore=function(t,c){return this.endOf(c)<k(t)},s.$g=function(t,c,a){return g.u(t)?this[c]:this.set(a,t)},s.unix=function(){return Math.floor(this.valueOf()/1e3)},s.valueOf=function(){return this.$d.getTime()},s.startOf=function(t,c){var a=this,_=!!g.u(c)||c,p=g.p(t),A=function(q,R){var B=g.w(a.$u?Date.UTC(a.$y,R,q):new Date(a.$y,R,q),a);return _?B:B.endOf(d)},Y=function(q,R){return g.w(a.toDate()[q].apply(a.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(R)),a)},H=this.$W,x=this.$M,I=this.$D,X="set"+(this.$u?"UTC":"");switch(p){case m:return _?A(1,0):A(31,11);case h:return _?A(1,x):A(0,x+1);case L:var J=this.$locale().weekStart||0,te=(H<J?H+7:H)-J;return A(_?I-te:I+(6-te),x);case d:case O:return Y(X+"Hours",0);case D:return Y(X+"Minutes",1);case f:return Y(X+"Seconds",2);case n:return Y(X+"Milliseconds",3);default:return this.clone()}},s.endOf=function(t){return this.startOf(t,!1)},s.$set=function(t,c){var a,_=g.p(t),p="set"+(this.$u?"UTC":""),A=(a={},a[d]=p+"Date",a[O]=p+"Date",a[h]=p+"Month",a[m]=p+"FullYear",a[D]=p+"Hours",a[f]=p+"Minutes",a[n]=p+"Seconds",a[l]=p+"Milliseconds",a)[_],Y=_===d?this.$D+(c-this.$W):c;if(_===h||_===m){var H=this.clone().set(O,1);H.$d[A](Y),H.init(),this.$d=H.set(O,Math.min(this.$D,H.daysInMonth())).$d}else A&&this.$d[A](Y);return this.init(),this},s.set=function(t,c){return this.clone().$set(t,c)},s.get=function(t){return this[g.p(t)]()},s.add=function(t,c){var a,_=this;t=Number(t);var p=g.p(c),A=function(x){var I=k(_);return g.w(I.date(I.date()+Math.round(x*t)),_)};if(p===h)return this.set(h,this.$M+t);if(p===m)return this.set(m,this.$y+t);if(p===d)return A(1);if(p===L)return A(7);var Y=(a={},a[f]=i,a[D]=y,a[n]=o,a)[p]||1,H=this.$d.getTime()+t*Y;return g.w(H,this)},s.subtract=function(t,c){return this.add(-1*t,c)},s.format=function(t){var c=this,a=this.$locale();if(!this.isValid())return a.invalidDate||T;var _=t||"YYYY-MM-DDTHH:mm:ssZ",p=g.z(this),A=this.$H,Y=this.$m,H=this.$M,x=a.weekdays,I=a.months,X=a.meridiem,J=function(R,B,ae,se){return R&&(R[B]||R(c,_))||ae[B].slice(0,se)},te=function(R){return g.s(A%12||12,R,"0")},q=X||function(R,B,ae){var se=R<12?"AM":"PM";return ae?se.toLowerCase():se};return _.replace(M,(function(R,B){return B||(function(ae){switch(ae){case"YY":return String(c.$y).slice(-2);case"YYYY":return g.s(c.$y,4,"0");case"M":return H+1;case"MM":return g.s(H+1,2,"0");case"MMM":return J(a.monthsShort,H,I,3);case"MMMM":return J(I,H);case"D":return c.$D;case"DD":return g.s(c.$D,2,"0");case"d":return String(c.$W);case"dd":return J(a.weekdaysMin,c.$W,x,2);case"ddd":return J(a.weekdaysShort,c.$W,x,3);case"dddd":return x[c.$W];case"H":return String(A);case"HH":return g.s(A,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return q(A,Y,!0);case"A":return q(A,Y,!1);case"m":return String(Y);case"mm":return g.s(Y,2,"0");case"s":return String(c.$s);case"ss":return g.s(c.$s,2,"0");case"SSS":return g.s(c.$ms,3,"0");case"Z":return p}return null})(R)||p.replace(":","")}))},s.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},s.diff=function(t,c,a){var _,p=this,A=g.p(c),Y=k(t),H=(Y.utcOffset()-this.utcOffset())*i,x=this-Y,I=function(){return g.m(p,Y)};switch(A){case m:_=I()/12;break;case h:_=I();break;case b:_=I()/3;break;case L:_=(x-H)/6048e5;break;case d:_=(x-H)/864e5;break;case D:_=x/y;break;case f:_=x/i;break;case n:_=x/o;break;default:_=x}return a?_:g.a(_)},s.daysInMonth=function(){return this.endOf(h).$D},s.$locale=function(){return U[this.$L]},s.locale=function(t,c){if(!t)return this.$L;var a=this.clone(),_=G(t,c,!0);return _&&(a.$L=_),a},s.clone=function(){return g.w(this.$d,this)},s.toDate=function(){return new Date(this.valueOf())},s.toJSON=function(){return this.isValid()?this.toISOString():null},s.toISOString=function(){return this.$d.toISOString()},s.toString=function(){return this.$d.toUTCString()},v})(),ne=Z.prototype;return k.prototype=ne,[["$ms",l],["$s",n],["$m",f],["$H",D],["$W",d],["$M",h],["$y",m],["$D",O]].forEach((function(v){ne[v[1]]=function(s){return this.$g(s,v[0],v[1])}})),k.extend=function(v,s){return v.$i||(v(s,Z,k),v.$i=!0),k},k.locale=G,k.isDayjs=N,k.unix=function(v){return k(1e3*v)},k.en=U[F],k.Ls=U,k.p={},k}))})),z=ee(Ne());const E=z.default,K=e=>(0,z.default)(e).toDate(),Te=e=>(0,z.default)(e),ke=(e,u,o)=>{const i=e+u,y=(0,z.default)().year()-e,l=Array.from({length:i},(n,f)=>f+y);if(!l.includes(o))if((0,z.default)().year()<=o)l.push(o);else return[o,...l];return l},Ye=(e,u)=>{const o=(0,z.default)(e).date(u);return(0,z.default)().isSame(o,"day")};function He(e,u){for(var o=0,i=0,y,l=[],n=new Date(e||new Date),f=n.getFullYear(),D=n.getMonth(),d=new Date(f,D,1-(u|0)).getDay(),L=new Date(f,D+1,0).getDate();o<L;){for(i=0,y=Array(7);i<7;){for(;i<d;)y[i++]=0;y[i++]=++o>L?0:o,d=0}l.push(y)}return l}const Fe=(e,u)=>{const o=[...u].sort((i,y)=>E(i.startDate).startOf("day").diff(E(y.startDate).startOf("day"),"days"));return He(e.toDate()).map((i,y)=>{const l=i.map((h,b)=>{let m=E(e),O=!0,T=h;if(h===0)if(O=!1,y===0){const S=E(e).startOf("month"),M=S.day();m=S.subtract(M-b,"day"),T=m.date()}else{const S=E(e).startOf("month"),M=S.day(),$=y*7+b-M;m=S.add($,"day"),T=m.date()}else m=E(e).date(h);return{currentDate:m,isCurrentMonth:O,displayDay:T}}),n=l[0].currentDate.startOf("day"),f=l[6].currentDate.startOf("day"),D=o.filter(h=>{const b=E(h.startDate).startOf("day"),m=h.endDate?E(h.endDate).startOf("day"):b;return b.isBefore(f.add(1,"day"),"day")&&m.isAfter(n.subtract(1,"day"),"day")});D.sort((h,b)=>{const m=E(h.startDate).startOf("day"),O=E(b.startDate).startOf("day");if(!m.isSame(O,"day"))return m.diff(O);const T=h.endDate?E(h.endDate).startOf("day"):m,S=b.endDate?E(b.endDate).startOf("day"):O,M=T.diff(m,"day");return S.diff(O,"day")-M});const d=Array(7).fill(null).map(()=>[]),L=new Map;return D.forEach((h,b)=>{const m=E(h.startDate).startOf("day"),O=h.endDate?E(h.endDate).startOf("day"):m;let T=m.diff(n,"day"),S=O.diff(n,"day");T<0&&(T=0),S>6&&(S=6);let M=0;for(;;){let w=!0;for(let C=T;C<=S;C++)if(d[C][M]){w=!1;break}if(w)break;M++}const $=h.startDate+h.value+b;L.set($,M);for(let w=T;w<=S;w++)d[w][M]=$;h._tempId=$}),l.map((h,b)=>{const{currentDate:m,isCurrentMonth:O,displayDay:T}=h,S=D.filter(w=>{const C=E(w.startDate).startOf("day"),F=w.endDate?E(w.endDate).startOf("day"):C;return!m.isBefore(C,"day")&&!m.isAfter(F,"day")}),M=[];let $=-1;S.forEach(w=>{const C=L.get(w._tempId);C!==void 0&&C>$&&($=C)});for(let w=0;w<=$;w++){const C=S.find(F=>L.get(F._tempId)===w);if(C)if(E(C.startDate).startOf("day").isSame(m,"day")||b===0){const F=C.endDate?E(C.endDate).startOf("day"):E(C.startDate).startOf("day"),U=E(m).add(6-b,"day");let V=F;F.isAfter(U,"date")&&(V=U),M.push({...C,startDateWeek:m.format("YYYY-MM-DD"),endDateWeek:V.format("YYYY-MM-DD")})}else M.push({...C,isSpacer:!0});else M.push(null)}return{currentDate:m,isCurrentMonth:O,displayDay:T,events:M,totalEvents:S.length,isToday:Ye(e,T)&&O}})})},xe=e=>{const l=e/6-28-8,n=Math.round(l/26)-1;return Math.max(0,n)},Ue=e=>{const[u,o]=(0,r.useState)({width:0,height:0});return(0,r.useEffect)(()=>{const i=e.current;if(!i)return;const y=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const{width:n,height:f}=l[0].contentRect;o({width:n,height:f})});return y.observe(i),()=>{y.disconnect()}},[e]),u},Re="_calendarContainer_q5rnf_1",We="_calendar_q5rnf_1",Ie="_table_q5rnf_56",Pe="_tableHeader_q5rnf_61",je="_tableCell_q5rnf_62",Be="_tableBody_q5rnf_88";var Q={calendarContainer:Re,calendar:We,table:Ie,tableHeader:Pe,tableCell:je,tableBody:Be};const Ve="_dateData_5xvpr_1",Ge="_currentMonth_5xvpr_16",Je="_cellContent_5xvpr_21",qe="_dateLabel_5xvpr_30",ze="_selected_5xvpr_44",Ze="_today_5xvpr_49",Xe="_dataContainer_5xvpr_54",Qe="_spacer_5xvpr_62",Ke="_eventItem_5xvpr_67",et="_moreEventsContainer_5xvpr_95",tt="_moreEvents_5xvpr_95";var P={dateData:Ve,currentMonth:Ge,cellContent:Je,dateLabel:qe,selected:ze,today:Ze,dataContainer:Xe,spacer:Qe,eventItem:Ke,moreEventsContainer:et,moreEvents:tt};const at="_popover_1l8k5_1",rt="_fadeIn_1l8k5_1",nt="_popoverHeader_1l8k5_33",st="_popoverItem_1l8k5_44",ot="_startBefore_1l8k5_62",lt="_endAfter_1l8k5_69";var re={popover:at,fadeIn:rt,popoverHeader:nt,popoverItem:st,startBefore:ot,endAfter:lt};function ut({dateObj:e,events:u,onEventClick:o,onClose:i}){const y=(0,r.useRef)(null);return(0,r.useEffect)(()=>{function l(n){y.current&&!y.current.contains(n.target)&&i()}return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[i]),r.default.createElement("div",{className:re.popover,ref:y,onClick:l=>l.stopPropagation()},r.default.createElement("div",{className:re.popoverHeader},E(e).format("ddd, D MMM")),u.map((l,n)=>{const f=E(e).startOf("day"),D=E(l.startDate).startOf("day"),d=l.endDate?E(l.endDate).startOf("day"):D,L=D.isBefore(f,"day"),h=d.isAfter(f,"day");return r.default.createElement("div",{key:`pop-${n}`,className:(0,Ae.default)(re.popoverItem,{[re.startBefore]:L,[re.endAfter]:h}),style:{backgroundColor:l.color},onClick:b=>{b.stopPropagation(),o?.(l),i()},title:l.value},l.value)}))}var ct=ut,ce=ee(de());function it({date:e,dateObj:u,data:o,cellWidth:i,className:y,dataClassName:l,isSelected:n,isToday:f,onClick:D,selectedClassName:d,todayClassName:L,isCurrentMonth:h,theme:b,maxEvents:m=3,onMoreClick:O,onEventClick:T,totalEvents:S=0}){const[M,$]=r.default.useState(!1),w=n?{...ie.selected,...b?.selected}:f?{...ie.today,...b?.today}:{...ie.default,...b?.default},C={color:w?.color,backgroundColor:w?.bgColor};let F=o,U=0;(m||m===0)&&o&&(S>=m||o.length>m)&&(F=o.slice(0,m),U=S-F.filter(N=>N!==null).length);const V=o?.filter(N=>N!==null)||[];return r.default.createElement("td",{style:C,onClick:()=>D?.(u),className:(0,ce.default)(P.dateData,y,{[P.currentMonth]:!h,[(0,ce.default)(P.selected,d)]:n,[(0,ce.default)(P.today,L)]:f})},r.default.createElement("div",{className:P.cellContent},r.default.createElement("p",{className:P.dateLabel},e),o&&r.default.createElement("div",{className:(0,ce.default)(P.dataContainer,l)},F.map((N,G)=>{if(!N||N.isSpacer)return r.default.createElement("div",{key:`spacer-${G}`,className:P.spacer});let k=1,g=E(N.startDate).format("YYYY-MM-DD");N.endDateWeek&&(k=E(N.endDateWeek).diff(N.startDateWeek,"days")+1,g+=` to ${E(N.endDate).format("YYYY-MM-DD")}`),g+=` - ${N.value}`;const Z=`${i*k-16}px`;return r.default.createElement("div",{key:`${N.startDate}-${G}`,className:P.eventItem,style:{width:Z,backgroundColor:N.color},title:g,onClick:ne=>{ne.stopPropagation(),T?.(N)}},N.value)}),U>0&&r.default.createElement("div",{className:P.moreEventsContainer},r.default.createElement("button",{className:P.moreEvents,onClick:N=>{N.stopPropagation(),!M&&$(!0),O?.(u)}},"+ ",U," more"),M&&r.default.createElement(ct,{dateObj:u,events:V,onEventClick:T,onClose:()=>$(!1)})))))}var dt=it;const ft="_header_7f1ps_1",ht="_navigation_7f1ps_11",vt="_todayButton_7f1ps_17",mt="_arrows_7f1ps_35",_t="_iconButton_7f1ps_41",pt="_dateTitle_7f1ps_61",yt="_controls_7f1ps_70",Dt="_select_7f1ps_76";var j={header:ft,navigation:ht,todayButton:vt,arrows:mt,iconButton:_t,dateTitle:pt,controls:yt,select:Dt};function Et(){return r.default.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 24.00 24.00",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",transform:"rotate(180)"},r.default.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),r.default.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),r.default.createElement("g",{id:"SVGRepo_iconCarrier"},r.default.createElement("path",{d:"M10 7L15 12L10 17",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})))}var bt=Et;function gt(){return r.default.createElement("svg",{width:"40px",height:"40px",viewBox:"0 0 24.00 24.00",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},r.default.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),r.default.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),r.default.createElement("g",{id:"SVGRepo_iconCarrier"},r.default.createElement("path",{d:"M10 7L15 12L10 17",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})))}var St=gt,fe={currentDate:E(),selectedDate:E(),view:"month",events:[]},ye=(0,r.createContext)(void 0);function Mt(e,u){switch(u.type){case"SET_DATE":return{...e,currentDate:u.payload,selectedDate:u.payload};case"SET_VIEW":return{...e,view:u.payload};case"SET_EVENTS":return{...e,events:u.payload};case"NEXT":{let o=e.currentDate;return e.view==="month"?o=o.add(1,"month"):e.view==="week"?o=o.add(1,"week"):e.view==="day"&&(o=o.add(1,"day")),{...e,currentDate:o}}case"PREV":{let o=e.currentDate;return e.view==="month"?o=o.subtract(1,"month"):e.view==="week"?o=o.subtract(1,"week"):e.view==="day"&&(o=o.subtract(1,"day")),{...e,currentDate:o}}case"TODAY":return{...e,currentDate:E(),selectedDate:E()};default:return e}}function Lt({children:e,initialEvents:u=[],initialDate:o}){const[i,y]=(0,r.useReducer)(Mt,{...fe,events:u,currentDate:o||fe.currentDate,selectedDate:o||fe.selectedDate}),l=(0,r.useMemo)(()=>({state:i,dispatch:y}),[i]);return r.default.createElement(ye.Provider,{value:l},e)}const De=()=>{const e=(0,r.useContext)(ye);if(e===void 0)throw new Error("useCalendar must be used within a CalendarProvider");return e};var At=ee(de());function wt({headerClassName:e,pastYearLength:u=5,futureYearLength:o=5,onMonthChange:i}){const{state:y,dispatch:l}=De(),{currentDate:n}=y,f=d=>{if(d===oe.add){l({type:"NEXT"});const L=n.add(1,"month");i?.(K(L))}else if(d===oe.sub){l({type:"PREV"});const L=n.subtract(1,"month");i?.(K(L))}},D=(d,L)=>{const h=Number(d.target.value);let b=n;L===le.month?b=E(n).month(h):L===le.year&&(b=E(n).year(h)),l({type:"SET_DATE",payload:b}),i?.(K(b))};return r.default.createElement("div",{className:(0,At.default)(j.header,e)},r.default.createElement("div",{className:j.navigation},r.default.createElement("button",{className:j.todayButton,onClick:()=>{l({type:"TODAY"}),i?.(K(E()))}},"Today"),r.default.createElement("div",{className:j.arrows},r.default.createElement("button",{className:j.iconButton,onClick:()=>f(oe.sub)},r.default.createElement(bt,null)),r.default.createElement("button",{className:j.iconButton,onClick:()=>f(oe.add)},r.default.createElement(St,null))),r.default.createElement("h2",{className:j.dateTitle},n.format("MMMM YYYY"))),r.default.createElement("div",{className:j.controls},r.default.createElement("select",{className:j.select,id:ue.MONTH,name:ue.MONTH,value:n.month(),onChange:d=>D(d,le.month)},Oe.map(d=>r.default.createElement("option",{key:d.label,value:d.value},d.label))),r.default.createElement("select",{className:j.select,id:ue.YEAR,name:ue.YEAR,value:n.year(),onChange:d=>D(d,le.year)},ke(u,o,n.year()).map(d=>r.default.createElement("option",{key:d,value:d},d)))))}var Ct=wt,he=ee(de());function Ot({dayType:e,width:u,height:o,onDateClick:i,onEventClick:y,onMoreClick:l,onMonthChange:n,isSelectDate:f,data:D,...d}){const{state:L,dispatch:h}=De(),{currentDate:b,events:m}=L;(0,r.useEffect)(()=>{D&&h({type:"SET_EVENTS",payload:D})},[D,h]);const O=(0,r.useMemo)(()=>Fe(b,m),[b,m]),T=(0,r.useCallback)(S=>{const M=E(S);M.isSame(b,"day")||(h({type:"SET_DATE",payload:M}),i?.(K(M)))},[b,h,i]);return r.default.createElement("section",{style:{"--calendar-width":`${u}px`,"--calendar-height":`${o}px`},className:(0,he.default)(Q.calendar,d.className)},r.default.createElement(Ct,{headerClassName:d.headerClassName,onMonthChange:n,pastYearLength:d.pastYearLength,futureYearLength:d.futureYearLength}),r.default.createElement("table",{className:(0,he.default)(Q.table,d.tableClassName)},r.default.createElement("thead",null,r.default.createElement("tr",null,we[e].map(S=>r.default.createElement("th",{key:S,className:Q.tableHeader},S)))),r.default.createElement("tbody",{className:Q.tableBody},O.map((S,M)=>r.default.createElement("tr",{key:M},S.map(($,w)=>r.default.createElement(dt,{key:`date_${M}_${w}`,isSelected:f&&$.isCurrentMonth&&$.displayDay===b.date(),isToday:$.isToday,isCurrentMonth:$.isCurrentMonth,onClick:f?T:void 0,date:$.displayDay,dateObj:$.currentDate,data:$.events,cellWidth:u/7,className:(0,he.default)(Q.tableCell,d.tableDateClassName),dataClassName:d.dataClassName,selectedClassName:d.selectedClassName,todayClassName:d.todayClassName,theme:d.theme,maxEvents:d.maxEvents,totalEvents:$.totalEvents,onEventClick:y,onMoreClick:C=>l?.(K(C))})))))))}function $t(e=ve){const u=r.default.useRef(null),{width:o,height:i}=Ue(u),y={...ve,...e},{data:l,selectedDate:n}=y,f=e.width??o??0,D=(e.height??i??0)-120,d=(0,r.useMemo)(()=>n?Te(n):void 0,[n]),L=y.maxEvents??xe(D);return r.default.createElement(Lt,{initialEvents:l,initialDate:d},r.default.createElement("div",{ref:u,className:Q.calendarContainer},r.default.createElement(Ot,{...y,width:f,height:D,maxEvents:L})))}var Nt=(0,r.memo)($t),Tt=Nt;exports.DAY_TYPE=$e;exports.EDayType=pe;exports.default=Tt;
134
2
 
135
3
  //# sourceMappingURL=index.cjs.js.map