mino-daisy-react 1.1.5 → 1.1.6

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/dist/index.js CHANGED
@@ -1188,9 +1188,9 @@ function Button({ className, ref, ...props }) {
1188
1188
  ...props
1189
1189
  }, undefined, false, undefined, this);
1190
1190
  }
1191
- // node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/constants/index.js
1191
+ // node_modules/@date-fns/tz/constants/index.js
1192
1192
  var constructFromSymbol = Symbol.for("constructDateFrom");
1193
- // node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/tzName/index.js
1193
+ // node_modules/@date-fns/tz/tzName/index.js
1194
1194
  function tzName(timeZone, date, format = "long") {
1195
1195
  return new Intl.DateTimeFormat("en-US", {
1196
1196
  hour: "numeric",
@@ -1199,7 +1199,7 @@ function tzName(timeZone, date, format = "long") {
1199
1199
  }).format(date).split(/\s/g).slice(2).join(" ");
1200
1200
  }
1201
1201
 
1202
- // node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.js
1202
+ // node_modules/@date-fns/tz/tzOffset/index.js
1203
1203
  var offsetFormatCache = {};
1204
1204
  var offsetCache = {};
1205
1205
  function tzOffset(timeZone, date) {
@@ -1229,7 +1229,7 @@ function calcOffset(cacheStr, values) {
1229
1229
  return offsetCache[cacheStr] = hours * 60 + minutes > 0 ? hours * 60 + minutes + seconds : hours * 60 - minutes - seconds;
1230
1230
  }
1231
1231
 
1232
- // node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/date/mini.js
1232
+ // node_modules/@date-fns/tz/date/mini.js
1233
1233
  class TZDateMini extends Date {
1234
1234
  constructor(...args) {
1235
1235
  super();
@@ -1347,7 +1347,7 @@ function adjustToSystemTZ(date) {
1347
1347
  }
1348
1348
  }
1349
1349
 
1350
- // node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/date/index.js
1350
+ // node_modules/@date-fns/tz/date/index.js
1351
1351
  class TZDate extends TZDateMini {
1352
1352
  static tz(tz, ...args) {
1353
1353
  return args.length ? new TZDate(...args, tz) : new TZDate(Date.now(), tz);
@@ -1401,7 +1401,7 @@ class TZDate extends TZDateMini {
1401
1401
  return new TZDate(+new Date(date), this.timeZone);
1402
1402
  }
1403
1403
  }
1404
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js
1404
+ // node_modules/date-fns/constants.js
1405
1405
  var daysInYear = 365.2425;
1406
1406
  var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
1407
1407
  var minTime = -maxTime;
@@ -1415,7 +1415,7 @@ var secondsInMonth = secondsInYear / 12;
1415
1415
  var secondsInQuarter = secondsInMonth * 3;
1416
1416
  var constructFromSymbol2 = Symbol.for("constructDateFrom");
1417
1417
 
1418
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js
1418
+ // node_modules/date-fns/constructFrom.js
1419
1419
  function constructFrom(date2, value) {
1420
1420
  if (typeof date2 === "function")
1421
1421
  return date2(value);
@@ -1426,12 +1426,12 @@ function constructFrom(date2, value) {
1426
1426
  return new Date(value);
1427
1427
  }
1428
1428
 
1429
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js
1429
+ // node_modules/date-fns/toDate.js
1430
1430
  function toDate(argument, context) {
1431
1431
  return constructFrom(context || argument, argument);
1432
1432
  }
1433
1433
 
1434
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js
1434
+ // node_modules/date-fns/addDays.js
1435
1435
  function addDays(date2, amount, options) {
1436
1436
  const _date = toDate(date2, options?.in);
1437
1437
  if (isNaN(amount))
@@ -1442,7 +1442,7 @@ function addDays(date2, amount, options) {
1442
1442
  return _date;
1443
1443
  }
1444
1444
 
1445
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js
1445
+ // node_modules/date-fns/addMonths.js
1446
1446
  function addMonths(date2, amount, options) {
1447
1447
  const _date = toDate(date2, options?.in);
1448
1448
  if (isNaN(amount))
@@ -1462,13 +1462,13 @@ function addMonths(date2, amount, options) {
1462
1462
  }
1463
1463
  }
1464
1464
 
1465
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js
1465
+ // node_modules/date-fns/_lib/defaultOptions.js
1466
1466
  var defaultOptions = {};
1467
1467
  function getDefaultOptions() {
1468
1468
  return defaultOptions;
1469
1469
  }
1470
1470
 
1471
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js
1471
+ // node_modules/date-fns/startOfWeek.js
1472
1472
  function startOfWeek(date2, options) {
1473
1473
  const defaultOptions2 = getDefaultOptions();
1474
1474
  const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
@@ -1480,12 +1480,12 @@ function startOfWeek(date2, options) {
1480
1480
  return _date;
1481
1481
  }
1482
1482
 
1483
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeek.js
1483
+ // node_modules/date-fns/startOfISOWeek.js
1484
1484
  function startOfISOWeek(date2, options) {
1485
1485
  return startOfWeek(date2, { ...options, weekStartsOn: 1 });
1486
1486
  }
1487
1487
 
1488
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeekYear.js
1488
+ // node_modules/date-fns/getISOWeekYear.js
1489
1489
  function getISOWeekYear(date2, options) {
1490
1490
  const _date = toDate(date2, options?.in);
1491
1491
  const year = _date.getFullYear();
@@ -1506,7 +1506,7 @@ function getISOWeekYear(date2, options) {
1506
1506
  }
1507
1507
  }
1508
1508
 
1509
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
1509
+ // node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
1510
1510
  function getTimezoneOffsetInMilliseconds(date2) {
1511
1511
  const _date = toDate(date2);
1512
1512
  const utcDate = new Date(Date.UTC(_date.getFullYear(), _date.getMonth(), _date.getDate(), _date.getHours(), _date.getMinutes(), _date.getSeconds(), _date.getMilliseconds()));
@@ -1514,20 +1514,20 @@ function getTimezoneOffsetInMilliseconds(date2) {
1514
1514
  return +date2 - +utcDate;
1515
1515
  }
1516
1516
 
1517
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js
1517
+ // node_modules/date-fns/_lib/normalizeDates.js
1518
1518
  function normalizeDates(context, ...dates) {
1519
1519
  const normalize = constructFrom.bind(null, context || dates.find((date2) => typeof date2 === "object"));
1520
1520
  return dates.map(normalize);
1521
1521
  }
1522
1522
 
1523
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js
1523
+ // node_modules/date-fns/startOfDay.js
1524
1524
  function startOfDay(date2, options) {
1525
1525
  const _date = toDate(date2, options?.in);
1526
1526
  _date.setHours(0, 0, 0, 0);
1527
1527
  return _date;
1528
1528
  }
1529
1529
 
1530
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js
1530
+ // node_modules/date-fns/differenceInCalendarDays.js
1531
1531
  function differenceInCalendarDays(laterDate, earlierDate, options) {
1532
1532
  const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
1533
1533
  const laterStartOfDay = startOfDay(laterDate_);
@@ -1537,7 +1537,7 @@ function differenceInCalendarDays(laterDate, earlierDate, options) {
1537
1537
  return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
1538
1538
  }
1539
1539
 
1540
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeekYear.js
1540
+ // node_modules/date-fns/startOfISOWeekYear.js
1541
1541
  function startOfISOWeekYear(date2, options) {
1542
1542
  const year = getISOWeekYear(date2, options);
1543
1543
  const fourthOfJanuary = constructFrom(options?.in || date2, 0);
@@ -1546,17 +1546,17 @@ function startOfISOWeekYear(date2, options) {
1546
1546
  return startOfISOWeek(fourthOfJanuary);
1547
1547
  }
1548
1548
 
1549
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addWeeks.js
1549
+ // node_modules/date-fns/addWeeks.js
1550
1550
  function addWeeks(date2, amount, options) {
1551
1551
  return addDays(date2, amount * 7, options);
1552
1552
  }
1553
1553
 
1554
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js
1554
+ // node_modules/date-fns/addYears.js
1555
1555
  function addYears(date2, amount, options) {
1556
1556
  return addMonths(date2, amount * 12, options);
1557
1557
  }
1558
1558
 
1559
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/max.js
1559
+ // node_modules/date-fns/max.js
1560
1560
  function max(dates, options) {
1561
1561
  let result;
1562
1562
  let context = options?.in;
@@ -1570,7 +1570,7 @@ function max(dates, options) {
1570
1570
  return constructFrom(context, result || NaN);
1571
1571
  }
1572
1572
 
1573
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/min.js
1573
+ // node_modules/date-fns/min.js
1574
1574
  function min(dates, options) {
1575
1575
  let result;
1576
1576
  let context = options?.in;
@@ -1584,23 +1584,23 @@ function min(dates, options) {
1584
1584
  return constructFrom(context, result || NaN);
1585
1585
  }
1586
1586
 
1587
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameDay.js
1587
+ // node_modules/date-fns/isSameDay.js
1588
1588
  function isSameDay(laterDate, earlierDate, options) {
1589
1589
  const [dateLeft_, dateRight_] = normalizeDates(options?.in, laterDate, earlierDate);
1590
1590
  return +startOfDay(dateLeft_) === +startOfDay(dateRight_);
1591
1591
  }
1592
1592
 
1593
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js
1593
+ // node_modules/date-fns/isDate.js
1594
1594
  function isDate(value) {
1595
1595
  return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
1596
1596
  }
1597
1597
 
1598
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isValid.js
1598
+ // node_modules/date-fns/isValid.js
1599
1599
  function isValid(date2) {
1600
1600
  return !(!isDate(date2) && typeof date2 !== "number" || isNaN(+toDate(date2)));
1601
1601
  }
1602
1602
 
1603
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarMonths.js
1603
+ // node_modules/date-fns/differenceInCalendarMonths.js
1604
1604
  function differenceInCalendarMonths(laterDate, earlierDate, options) {
1605
1605
  const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
1606
1606
  const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();
@@ -1608,7 +1608,7 @@ function differenceInCalendarMonths(laterDate, earlierDate, options) {
1608
1608
  return yearsDiff * 12 + monthsDiff;
1609
1609
  }
1610
1610
 
1611
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMonth.js
1611
+ // node_modules/date-fns/endOfMonth.js
1612
1612
  function endOfMonth(date2, options) {
1613
1613
  const _date = toDate(date2, options?.in);
1614
1614
  const month = _date.getMonth();
@@ -1617,13 +1617,13 @@ function endOfMonth(date2, options) {
1617
1617
  return _date;
1618
1618
  }
1619
1619
 
1620
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeInterval.js
1620
+ // node_modules/date-fns/_lib/normalizeInterval.js
1621
1621
  function normalizeInterval(context, interval) {
1622
1622
  const [start, end] = normalizeDates(context, interval.start, interval.end);
1623
1623
  return { start, end };
1624
1624
  }
1625
1625
 
1626
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachMonthOfInterval.js
1626
+ // node_modules/date-fns/eachMonthOfInterval.js
1627
1627
  function eachMonthOfInterval(interval, options) {
1628
1628
  const { start, end } = normalizeInterval(options?.in, interval);
1629
1629
  let reversed = +start > +end;
@@ -1646,7 +1646,7 @@ function eachMonthOfInterval(interval, options) {
1646
1646
  return reversed ? dates.reverse() : dates;
1647
1647
  }
1648
1648
 
1649
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js
1649
+ // node_modules/date-fns/startOfMonth.js
1650
1650
  function startOfMonth(date2, options) {
1651
1651
  const _date = toDate(date2, options?.in);
1652
1652
  _date.setDate(1);
@@ -1654,7 +1654,7 @@ function startOfMonth(date2, options) {
1654
1654
  return _date;
1655
1655
  }
1656
1656
 
1657
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYear.js
1657
+ // node_modules/date-fns/endOfYear.js
1658
1658
  function endOfYear(date2, options) {
1659
1659
  const _date = toDate(date2, options?.in);
1660
1660
  const year = _date.getFullYear();
@@ -1663,7 +1663,7 @@ function endOfYear(date2, options) {
1663
1663
  return _date;
1664
1664
  }
1665
1665
 
1666
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js
1666
+ // node_modules/date-fns/startOfYear.js
1667
1667
  function startOfYear(date2, options) {
1668
1668
  const date_ = toDate(date2, options?.in);
1669
1669
  date_.setFullYear(date_.getFullYear(), 0, 1);
@@ -1671,7 +1671,7 @@ function startOfYear(date2, options) {
1671
1671
  return date_;
1672
1672
  }
1673
1673
 
1674
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachYearOfInterval.js
1674
+ // node_modules/date-fns/eachYearOfInterval.js
1675
1675
  function eachYearOfInterval(interval, options) {
1676
1676
  const { start, end } = normalizeInterval(options?.in, interval);
1677
1677
  let reversed = +start > +end;
@@ -1694,7 +1694,7 @@ function eachYearOfInterval(interval, options) {
1694
1694
  return reversed ? dates.reverse() : dates;
1695
1695
  }
1696
1696
 
1697
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js
1697
+ // node_modules/date-fns/endOfWeek.js
1698
1698
  function endOfWeek(date2, options) {
1699
1699
  const defaultOptions2 = getDefaultOptions();
1700
1700
  const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
@@ -1706,12 +1706,12 @@ function endOfWeek(date2, options) {
1706
1706
  return _date;
1707
1707
  }
1708
1708
 
1709
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfISOWeek.js
1709
+ // node_modules/date-fns/endOfISOWeek.js
1710
1710
  function endOfISOWeek(date2, options) {
1711
1711
  return endOfWeek(date2, { ...options, weekStartsOn: 1 });
1712
1712
  }
1713
1713
 
1714
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
1714
+ // node_modules/date-fns/locale/en-US/_lib/formatDistance.js
1715
1715
  var formatDistanceLocale = {
1716
1716
  lessThanXSeconds: {
1717
1717
  one: "less than a second",
@@ -1795,7 +1795,7 @@ var formatDistance = (token, count, options) => {
1795
1795
  return result;
1796
1796
  };
1797
1797
 
1798
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
1798
+ // node_modules/date-fns/locale/_lib/buildFormatLongFn.js
1799
1799
  function buildFormatLongFn(args) {
1800
1800
  return (options = {}) => {
1801
1801
  const width = options.width ? String(options.width) : args.defaultWidth;
@@ -1804,7 +1804,7 @@ function buildFormatLongFn(args) {
1804
1804
  };
1805
1805
  }
1806
1806
 
1807
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js
1807
+ // node_modules/date-fns/locale/en-US/_lib/formatLong.js
1808
1808
  var dateFormats = {
1809
1809
  full: "EEEE, MMMM do, y",
1810
1810
  long: "MMMM do, y",
@@ -1838,7 +1838,7 @@ var formatLong = {
1838
1838
  })
1839
1839
  };
1840
1840
 
1841
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js
1841
+ // node_modules/date-fns/locale/en-US/_lib/formatRelative.js
1842
1842
  var formatRelativeLocale = {
1843
1843
  lastWeek: "'last' eeee 'at' p",
1844
1844
  yesterday: "'yesterday at' p",
@@ -1849,7 +1849,7 @@ var formatRelativeLocale = {
1849
1849
  };
1850
1850
  var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
1851
1851
 
1852
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
1852
+ // node_modules/date-fns/locale/_lib/buildLocalizeFn.js
1853
1853
  function buildLocalizeFn(args) {
1854
1854
  return (value, options) => {
1855
1855
  const context = options?.context ? String(options.context) : "standalone";
@@ -1868,7 +1868,7 @@ function buildLocalizeFn(args) {
1868
1868
  };
1869
1869
  }
1870
1870
 
1871
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js
1871
+ // node_modules/date-fns/locale/en-US/_lib/localize.js
1872
1872
  var eraValues = {
1873
1873
  narrow: ["B", "A"],
1874
1874
  abbreviated: ["BC", "AD"],
@@ -2030,7 +2030,7 @@ var localize = {
2030
2030
  })
2031
2031
  };
2032
2032
 
2033
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
2033
+ // node_modules/date-fns/locale/_lib/buildMatchFn.js
2034
2034
  function buildMatchFn(args) {
2035
2035
  return (string, options = {}) => {
2036
2036
  const width = options.width;
@@ -2066,7 +2066,7 @@ function findIndex(array, predicate) {
2066
2066
  return;
2067
2067
  }
2068
2068
 
2069
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
2069
+ // node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
2070
2070
  function buildMatchPatternFn(args) {
2071
2071
  return (string, options = {}) => {
2072
2072
  const matchResult = string.match(args.matchPattern);
@@ -2083,7 +2083,7 @@ function buildMatchPatternFn(args) {
2083
2083
  };
2084
2084
  }
2085
2085
 
2086
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js
2086
+ // node_modules/date-fns/locale/en-US/_lib/match.js
2087
2087
  var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
2088
2088
  var parseOrdinalNumberPattern = /\d+/i;
2089
2089
  var matchEraPatterns = {
@@ -2202,7 +2202,7 @@ var match = {
2202
2202
  })
2203
2203
  };
2204
2204
 
2205
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js
2205
+ // node_modules/date-fns/locale/en-US.js
2206
2206
  var enUS = {
2207
2207
  code: "en-US",
2208
2208
  formatDistance,
@@ -2215,7 +2215,7 @@ var enUS = {
2215
2215
  firstWeekContainsDate: 1
2216
2216
  }
2217
2217
  };
2218
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDayOfYear.js
2218
+ // node_modules/date-fns/getDayOfYear.js
2219
2219
  function getDayOfYear(date2, options) {
2220
2220
  const _date = toDate(date2, options?.in);
2221
2221
  const diff = differenceInCalendarDays(_date, startOfYear(_date));
@@ -2223,14 +2223,14 @@ function getDayOfYear(date2, options) {
2223
2223
  return dayOfYear;
2224
2224
  }
2225
2225
 
2226
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeek.js
2226
+ // node_modules/date-fns/getISOWeek.js
2227
2227
  function getISOWeek(date2, options) {
2228
2228
  const _date = toDate(date2, options?.in);
2229
2229
  const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
2230
2230
  return Math.round(diff / millisecondsInWeek) + 1;
2231
2231
  }
2232
2232
 
2233
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekYear.js
2233
+ // node_modules/date-fns/getWeekYear.js
2234
2234
  function getWeekYear(date2, options) {
2235
2235
  const _date = toDate(date2, options?.in);
2236
2236
  const year = _date.getFullYear();
@@ -2253,7 +2253,7 @@ function getWeekYear(date2, options) {
2253
2253
  }
2254
2254
  }
2255
2255
 
2256
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeekYear.js
2256
+ // node_modules/date-fns/startOfWeekYear.js
2257
2257
  function startOfWeekYear(date2, options) {
2258
2258
  const defaultOptions2 = getDefaultOptions();
2259
2259
  const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
@@ -2265,21 +2265,21 @@ function startOfWeekYear(date2, options) {
2265
2265
  return _date;
2266
2266
  }
2267
2267
 
2268
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeek.js
2268
+ // node_modules/date-fns/getWeek.js
2269
2269
  function getWeek(date2, options) {
2270
2270
  const _date = toDate(date2, options?.in);
2271
2271
  const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
2272
2272
  return Math.round(diff / millisecondsInWeek) + 1;
2273
2273
  }
2274
2274
 
2275
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/addLeadingZeros.js
2275
+ // node_modules/date-fns/_lib/addLeadingZeros.js
2276
2276
  function addLeadingZeros(number, targetLength) {
2277
2277
  const sign = number < 0 ? "-" : "";
2278
2278
  const output = Math.abs(number).toString().padStart(targetLength, "0");
2279
2279
  return sign + output;
2280
2280
  }
2281
2281
 
2282
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/lightFormatters.js
2282
+ // node_modules/date-fns/_lib/format/lightFormatters.js
2283
2283
  var lightFormatters = {
2284
2284
  y(date2, token) {
2285
2285
  const signedYear = date2.getFullYear();
@@ -2328,7 +2328,7 @@ var lightFormatters = {
2328
2328
  }
2329
2329
  };
2330
2330
 
2331
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/formatters.js
2331
+ // node_modules/date-fns/_lib/format/formatters.js
2332
2332
  var dayPeriodEnum = {
2333
2333
  am: "am",
2334
2334
  pm: "pm",
@@ -2867,7 +2867,7 @@ function formatTimezone(offset, delimiter = "") {
2867
2867
  return sign + hours + delimiter + minutes;
2868
2868
  }
2869
2869
 
2870
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/longFormatters.js
2870
+ // node_modules/date-fns/_lib/format/longFormatters.js
2871
2871
  var dateLongFormatter = (pattern, formatLong2) => {
2872
2872
  switch (pattern) {
2873
2873
  case "P":
@@ -2924,7 +2924,7 @@ var longFormatters = {
2924
2924
  P: dateTimeLongFormatter
2925
2925
  };
2926
2926
 
2927
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/protectedTokens.js
2927
+ // node_modules/date-fns/_lib/protectedTokens.js
2928
2928
  var dayOfYearTokenRE = /^D+$/;
2929
2929
  var weekYearTokenRE = /^Y+$/;
2930
2930
  var throwTokens = ["D", "DD", "YY", "YYYY"];
@@ -2945,7 +2945,7 @@ function message(token, format, input) {
2945
2945
  return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2946
2946
  }
2947
2947
 
2948
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/format.js
2948
+ // node_modules/date-fns/format.js
2949
2949
  var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
2950
2950
  var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
2951
2951
  var escapedStringRegExp = /^'([^]*?)'?$/;
@@ -3010,7 +3010,7 @@ function cleanEscapedString(input) {
3010
3010
  return matched[1].replace(doubleQuoteRegExp, "'");
3011
3011
  }
3012
3012
 
3013
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js
3013
+ // node_modules/date-fns/getDaysInMonth.js
3014
3014
  function getDaysInMonth(date2, options) {
3015
3015
  const _date = toDate(date2, options?.in);
3016
3016
  const year = _date.getFullYear();
@@ -3021,39 +3021,39 @@ function getDaysInMonth(date2, options) {
3021
3021
  return lastDayOfMonth.getDate();
3022
3022
  }
3023
3023
 
3024
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMonth.js
3024
+ // node_modules/date-fns/getMonth.js
3025
3025
  function getMonth(date2, options) {
3026
3026
  return toDate(date2, options?.in).getMonth();
3027
3027
  }
3028
3028
 
3029
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getYear.js
3029
+ // node_modules/date-fns/getYear.js
3030
3030
  function getYear(date2, options) {
3031
3031
  return toDate(date2, options?.in).getFullYear();
3032
3032
  }
3033
3033
 
3034
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js
3034
+ // node_modules/date-fns/isAfter.js
3035
3035
  function isAfter(date2, dateToCompare) {
3036
3036
  return +toDate(date2) > +toDate(dateToCompare);
3037
3037
  }
3038
3038
 
3039
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isBefore.js
3039
+ // node_modules/date-fns/isBefore.js
3040
3040
  function isBefore(date2, dateToCompare) {
3041
3041
  return +toDate(date2) < +toDate(dateToCompare);
3042
3042
  }
3043
3043
 
3044
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameMonth.js
3044
+ // node_modules/date-fns/isSameMonth.js
3045
3045
  function isSameMonth(laterDate, earlierDate, options) {
3046
3046
  const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
3047
3047
  return laterDate_.getFullYear() === earlierDate_.getFullYear() && laterDate_.getMonth() === earlierDate_.getMonth();
3048
3048
  }
3049
3049
 
3050
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameYear.js
3050
+ // node_modules/date-fns/isSameYear.js
3051
3051
  function isSameYear(laterDate, earlierDate, options) {
3052
3052
  const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
3053
3053
  return laterDate_.getFullYear() === earlierDate_.getFullYear();
3054
3054
  }
3055
3055
 
3056
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js
3056
+ // node_modules/date-fns/setMonth.js
3057
3057
  function setMonth(date2, month, options) {
3058
3058
  const _date = toDate(date2, options?.in);
3059
3059
  const year = _date.getFullYear();
@@ -3066,7 +3066,7 @@ function setMonth(date2, month, options) {
3066
3066
  return _date;
3067
3067
  }
3068
3068
 
3069
- // node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setYear.js
3069
+ // node_modules/date-fns/setYear.js
3070
3070
  function setYear(date2, year, options) {
3071
3071
  const date_ = toDate(date2, options?.in);
3072
3072
  if (isNaN(+date_))
@@ -3075,7 +3075,7 @@ function setYear(date2, year, options) {
3075
3075
  return date_;
3076
3076
  }
3077
3077
 
3078
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js
3078
+ // node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js
3079
3079
  var FIVE_WEEKS = 5;
3080
3080
  var FOUR_WEEKS = 4;
3081
3081
  function getBroadcastWeeksInMonth(month, dateLib) {
@@ -3087,7 +3087,7 @@ function getBroadcastWeeksInMonth(month, dateLib) {
3087
3087
  return numberOfWeeks;
3088
3088
  }
3089
3089
 
3090
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js
3090
+ // node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js
3091
3091
  function startOfBroadcastWeek(date2, dateLib) {
3092
3092
  const firstOfMonth = dateLib.startOfMonth(date2);
3093
3093
  const dayOfWeek = firstOfMonth.getDay();
@@ -3100,7 +3100,7 @@ function startOfBroadcastWeek(date2, dateLib) {
3100
3100
  }
3101
3101
  }
3102
3102
 
3103
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js
3103
+ // node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js
3104
3104
  function endOfBroadcastWeek(date2, dateLib) {
3105
3105
  const startDate = startOfBroadcastWeek(date2, dateLib);
3106
3106
  const numberOfWeeks = getBroadcastWeeksInMonth(date2, dateLib);
@@ -3108,7 +3108,7 @@ function endOfBroadcastWeek(date2, dateLib) {
3108
3108
  return endDate;
3109
3109
  }
3110
3110
 
3111
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/DateLib.js
3111
+ // node_modules/react-day-picker/dist/esm/classes/DateLib.js
3112
3112
  class DateLib {
3113
3113
  constructor(options, overrides) {
3114
3114
  this.Date = Date;
@@ -3313,23 +3313,20 @@ DateLib.yearFirstLocales = new Set([
3313
3313
  ]);
3314
3314
  var defaultDateLib = new DateLib;
3315
3315
 
3316
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js
3316
+ // node_modules/react-day-picker/dist/esm/classes/CalendarDay.js
3317
3317
  class CalendarDay {
3318
3318
  constructor(date2, displayMonth, dateLib = defaultDateLib) {
3319
3319
  this.date = date2;
3320
3320
  this.displayMonth = displayMonth;
3321
3321
  this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date2, displayMonth));
3322
3322
  this.dateLib = dateLib;
3323
- this.isoDate = dateLib.format(date2, "yyyy-MM-dd");
3324
- this.displayMonthId = dateLib.format(displayMonth, "yyyy-MM");
3325
- this.dateMonthId = dateLib.format(date2, "yyyy-MM");
3326
3323
  }
3327
3324
  isEqualTo(day) {
3328
3325
  return this.dateLib.isSameDay(day.date, this.date) && this.dateLib.isSameMonth(day.displayMonth, this.displayMonth);
3329
3326
  }
3330
3327
  }
3331
3328
 
3332
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js
3329
+ // node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js
3333
3330
  class CalendarMonth {
3334
3331
  constructor(month, weeks) {
3335
3332
  this.date = month;
@@ -3337,7 +3334,7 @@ class CalendarMonth {
3337
3334
  }
3338
3335
  }
3339
3336
 
3340
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js
3337
+ // node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js
3341
3338
  class CalendarWeek {
3342
3339
  constructor(weekNumber, days) {
3343
3340
  this.days = days;
@@ -3345,7 +3342,7 @@ class CalendarWeek {
3345
3342
  }
3346
3343
  }
3347
3344
 
3348
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/custom-components.js
3345
+ // node_modules/react-day-picker/dist/esm/components/custom-components.js
3349
3346
  var exports_custom_components = {};
3350
3347
  __export(exports_custom_components, {
3351
3348
  YearsDropdown: () => YearsDropdown,
@@ -3376,29 +3373,29 @@ __export(exports_custom_components, {
3376
3373
  Button: () => Button2
3377
3374
  });
3378
3375
 
3379
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Button.js
3376
+ // node_modules/react-day-picker/dist/esm/components/Button.js
3380
3377
  import React from "react";
3381
3378
  function Button2(props) {
3382
3379
  return React.createElement("button", { ...props });
3383
3380
  }
3384
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js
3381
+ // node_modules/react-day-picker/dist/esm/components/CaptionLabel.js
3385
3382
  import React2 from "react";
3386
3383
  function CaptionLabel(props) {
3387
3384
  return React2.createElement("span", { ...props });
3388
3385
  }
3389
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Chevron.js
3386
+ // node_modules/react-day-picker/dist/esm/components/Chevron.js
3390
3387
  import React3 from "react";
3391
3388
  function Chevron(props) {
3392
3389
  const { size = 24, orientation = "left", className } = props;
3393
3390
  return React3.createElement("svg", { className, width: size, height: size, viewBox: "0 0 24 24" }, orientation === "up" && React3.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }), orientation === "down" && React3.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }), orientation === "left" && React3.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }), orientation === "right" && React3.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" }));
3394
3391
  }
3395
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Day.js
3392
+ // node_modules/react-day-picker/dist/esm/components/Day.js
3396
3393
  import React4 from "react";
3397
3394
  function Day(props) {
3398
3395
  const { day, modifiers, ...tdProps } = props;
3399
3396
  return React4.createElement("td", { ...tdProps });
3400
3397
  }
3401
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DayButton.js
3398
+ // node_modules/react-day-picker/dist/esm/components/DayButton.js
3402
3399
  import React5 from "react";
3403
3400
  function DayButton(props) {
3404
3401
  const { day, modifiers, ...buttonProps } = props;
@@ -3409,10 +3406,10 @@ function DayButton(props) {
3409
3406
  }, [modifiers.focused]);
3410
3407
  return React5.createElement("button", { ref, ...buttonProps });
3411
3408
  }
3412
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Dropdown.js
3409
+ // node_modules/react-day-picker/dist/esm/components/Dropdown.js
3413
3410
  import React6 from "react";
3414
3411
 
3415
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/UI.js
3412
+ // node_modules/react-day-picker/dist/esm/UI.js
3416
3413
  var UI;
3417
3414
  (function(UI2) {
3418
3415
  UI2["Root"] = "root";
@@ -3467,49 +3464,49 @@ var Animation;
3467
3464
  Animation2["caption_before_exit"] = "caption_before_exit";
3468
3465
  })(Animation || (Animation = {}));
3469
3466
 
3470
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Dropdown.js
3467
+ // node_modules/react-day-picker/dist/esm/components/Dropdown.js
3471
3468
  function Dropdown(props) {
3472
3469
  const { options, className, components, classNames, ...selectProps } = props;
3473
3470
  const cssClassSelect = [classNames[UI.Dropdown], className].join(" ");
3474
3471
  const selectedOption = options?.find(({ value }) => value === selectProps.value);
3475
3472
  return React6.createElement("span", { "data-disabled": selectProps.disabled, className: classNames[UI.DropdownRoot] }, React6.createElement(components.Select, { className: cssClassSelect, ...selectProps }, options?.map(({ value, label, disabled }) => React6.createElement(components.Option, { key: value, value, disabled }, label))), React6.createElement("span", { className: classNames[UI.CaptionLabel], "aria-hidden": true }, selectedOption?.label, React6.createElement(components.Chevron, { orientation: "down", size: 18, className: classNames[UI.Chevron] })));
3476
3473
  }
3477
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.js
3474
+ // node_modules/react-day-picker/dist/esm/components/DropdownNav.js
3478
3475
  import React7 from "react";
3479
3476
  function DropdownNav(props) {
3480
3477
  return React7.createElement("div", { ...props });
3481
3478
  }
3482
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Footer.js
3479
+ // node_modules/react-day-picker/dist/esm/components/Footer.js
3483
3480
  import React8 from "react";
3484
3481
  function Footer(props) {
3485
3482
  return React8.createElement("div", { ...props });
3486
3483
  }
3487
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Month.js
3484
+ // node_modules/react-day-picker/dist/esm/components/Month.js
3488
3485
  import React9 from "react";
3489
3486
  function Month(props) {
3490
3487
  const { calendarMonth, displayIndex, ...divProps } = props;
3491
3488
  return React9.createElement("div", { ...divProps }, props.children);
3492
3489
  }
3493
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.js
3490
+ // node_modules/react-day-picker/dist/esm/components/MonthCaption.js
3494
3491
  import React10 from "react";
3495
3492
  function MonthCaption(props) {
3496
3493
  const { calendarMonth, displayIndex, ...divProps } = props;
3497
3494
  return React10.createElement("div", { ...divProps });
3498
3495
  }
3499
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.js
3496
+ // node_modules/react-day-picker/dist/esm/components/MonthGrid.js
3500
3497
  import React11 from "react";
3501
3498
  function MonthGrid(props) {
3502
3499
  return React11.createElement("table", { ...props });
3503
3500
  }
3504
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Months.js
3501
+ // node_modules/react-day-picker/dist/esm/components/Months.js
3505
3502
  import React12 from "react";
3506
3503
  function Months(props) {
3507
3504
  return React12.createElement("div", { ...props });
3508
3505
  }
3509
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
3506
+ // node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
3510
3507
  import React13 from "react";
3511
3508
 
3512
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/useDayPicker.js
3509
+ // node_modules/react-day-picker/dist/esm/useDayPicker.js
3513
3510
  import { createContext, useContext } from "react";
3514
3511
  var dayPickerContext = createContext(undefined);
3515
3512
  function useDayPicker() {
@@ -3520,12 +3517,12 @@ function useDayPicker() {
3520
3517
  return context;
3521
3518
  }
3522
3519
 
3523
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
3520
+ // node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
3524
3521
  function MonthsDropdown(props) {
3525
3522
  const { components } = useDayPicker();
3526
3523
  return React13.createElement(components.Dropdown, { ...props });
3527
3524
  }
3528
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Nav.js
3525
+ // node_modules/react-day-picker/dist/esm/components/Nav.js
3529
3526
  import React14, { useCallback } from "react";
3530
3527
  function Nav(props) {
3531
3528
  const { onPreviousClick, onNextClick, previousMonth, nextMonth, ...navProps } = props;
@@ -3542,76 +3539,76 @@ function Nav(props) {
3542
3539
  }, [previousMonth, onPreviousClick]);
3543
3540
  return React14.createElement("nav", { ...navProps }, React14.createElement(components.PreviousMonthButton, { type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? undefined : -1, "aria-disabled": previousMonth ? undefined : true, "aria-label": labelPrevious(previousMonth), onClick: handlePreviousClick }, React14.createElement(components.Chevron, { disabled: previousMonth ? undefined : true, className: classNames[UI.Chevron], orientation: "left" })), React14.createElement(components.NextMonthButton, { type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? undefined : -1, "aria-disabled": nextMonth ? undefined : true, "aria-label": labelNext(nextMonth), onClick: handleNextClick }, React14.createElement(components.Chevron, { disabled: nextMonth ? undefined : true, orientation: "right", className: classNames[UI.Chevron] })));
3544
3541
  }
3545
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js
3542
+ // node_modules/react-day-picker/dist/esm/components/NextMonthButton.js
3546
3543
  import React15 from "react";
3547
3544
  function NextMonthButton(props) {
3548
3545
  const { components } = useDayPicker();
3549
3546
  return React15.createElement(components.Button, { ...props });
3550
3547
  }
3551
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Option.js
3548
+ // node_modules/react-day-picker/dist/esm/components/Option.js
3552
3549
  import React16 from "react";
3553
3550
  function Option(props) {
3554
3551
  return React16.createElement("option", { ...props });
3555
3552
  }
3556
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js
3553
+ // node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js
3557
3554
  import React17 from "react";
3558
3555
  function PreviousMonthButton(props) {
3559
3556
  const { components } = useDayPicker();
3560
3557
  return React17.createElement(components.Button, { ...props });
3561
3558
  }
3562
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Root.js
3559
+ // node_modules/react-day-picker/dist/esm/components/Root.js
3563
3560
  import React18 from "react";
3564
3561
  function Root(props) {
3565
3562
  const { rootRef, ...rest } = props;
3566
3563
  return React18.createElement("div", { ...rest, ref: rootRef });
3567
3564
  }
3568
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Select.js
3565
+ // node_modules/react-day-picker/dist/esm/components/Select.js
3569
3566
  import React19 from "react";
3570
3567
  function Select(props) {
3571
3568
  return React19.createElement("select", { ...props });
3572
3569
  }
3573
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Week.js
3570
+ // node_modules/react-day-picker/dist/esm/components/Week.js
3574
3571
  import React20 from "react";
3575
3572
  function Week(props) {
3576
3573
  const { week, ...trProps } = props;
3577
3574
  return React20.createElement("tr", { ...trProps });
3578
3575
  }
3579
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekday.js
3576
+ // node_modules/react-day-picker/dist/esm/components/Weekday.js
3580
3577
  import React21 from "react";
3581
3578
  function Weekday(props) {
3582
3579
  return React21.createElement("th", { ...props });
3583
3580
  }
3584
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekdays.js
3581
+ // node_modules/react-day-picker/dist/esm/components/Weekdays.js
3585
3582
  import React22 from "react";
3586
3583
  function Weekdays(props) {
3587
3584
  return React22.createElement("thead", { "aria-hidden": true }, React22.createElement("tr", { ...props }));
3588
3585
  }
3589
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.js
3586
+ // node_modules/react-day-picker/dist/esm/components/WeekNumber.js
3590
3587
  import React23 from "react";
3591
3588
  function WeekNumber(props) {
3592
3589
  const { week, ...thProps } = props;
3593
3590
  return React23.createElement("th", { ...thProps });
3594
3591
  }
3595
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js
3592
+ // node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js
3596
3593
  import React24 from "react";
3597
3594
  function WeekNumberHeader(props) {
3598
3595
  return React24.createElement("th", { ...props });
3599
3596
  }
3600
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weeks.js
3597
+ // node_modules/react-day-picker/dist/esm/components/Weeks.js
3601
3598
  import React25 from "react";
3602
3599
  function Weeks(props) {
3603
3600
  return React25.createElement("tbody", { ...props });
3604
3601
  }
3605
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js
3602
+ // node_modules/react-day-picker/dist/esm/components/YearsDropdown.js
3606
3603
  import React26 from "react";
3607
3604
  function YearsDropdown(props) {
3608
3605
  const { components } = useDayPicker();
3609
3606
  return React26.createElement(components.Dropdown, { ...props });
3610
3607
  }
3611
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/DayPicker.js
3612
- import React27, { useCallback as useCallback2, useMemo as useMemo2, useRef as useRef2 } from "react";
3608
+ // node_modules/react-day-picker/dist/esm/DayPicker.js
3609
+ import React27, { useCallback as useCallback2, useMemo, useRef as useRef2 } from "react";
3613
3610
 
3614
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
3611
+ // node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
3615
3612
  function rangeIncludesDate(range, date2, excludeEnds = false, dateLib = defaultDateLib) {
3616
3613
  let { from, to } = range;
3617
3614
  const { differenceInCalendarDays: differenceInCalendarDays2, isSameDay: isSameDay2 } = dateLib;
@@ -3632,7 +3629,7 @@ function rangeIncludesDate(range, date2, excludeEnds = false, dateLib = defaultD
3632
3629
  return false;
3633
3630
  }
3634
3631
 
3635
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/typeguards.js
3632
+ // node_modules/react-day-picker/dist/esm/utils/typeguards.js
3636
3633
  function isDateInterval(matcher) {
3637
3634
  return Boolean(matcher && typeof matcher === "object" && "before" in matcher && "after" in matcher);
3638
3635
  }
@@ -3652,7 +3649,7 @@ function isDatesArray(value, dateLib) {
3652
3649
  return Array.isArray(value) && value.every(dateLib.isDate);
3653
3650
  }
3654
3651
 
3655
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js
3652
+ // node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js
3656
3653
  function dateMatchModifiers(date2, matchers, dateLib = defaultDateLib) {
3657
3654
  const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;
3658
3655
  const { isSameDay: isSameDay2, differenceInCalendarDays: differenceInCalendarDays2, isAfter: isAfter2 } = dateLib;
@@ -3700,9 +3697,9 @@ function dateMatchModifiers(date2, matchers, dateLib = defaultDateLib) {
3700
3697
  });
3701
3698
  }
3702
3699
 
3703
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js
3700
+ // node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js
3704
3701
  function createGetModifiers(days, props, navStart, navEnd, dateLib) {
3705
- const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today() } = props;
3702
+ const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today } = props;
3706
3703
  const { isSameDay: isSameDay2, isSameMonth: isSameMonth2, startOfMonth: startOfMonth2, isBefore: isBefore2, endOfMonth: endOfMonth2, isAfter: isAfter2 } = dateLib;
3707
3704
  const computedNavStart = navStart && startOfMonth2(navStart);
3708
3705
  const computedNavEnd = navEnd && endOfMonth2(navEnd);
@@ -3721,7 +3718,7 @@ function createGetModifiers(days, props, navStart, navEnd, dateLib) {
3721
3718
  const isAfterNavEnd = Boolean(computedNavEnd && isAfter2(date2, computedNavEnd));
3722
3719
  const isDisabled = Boolean(disabled && dateMatchModifiers(date2, disabled, dateLib));
3723
3720
  const isHidden = Boolean(hidden && dateMatchModifiers(date2, hidden, dateLib)) || isBeforeNavStart || isAfterNavEnd || !broadcastCalendar && !showOutsideDays && isOutside || broadcastCalendar && showOutsideDays === false && isOutside;
3724
- const isToday = isSameDay2(date2, today);
3721
+ const isToday = isSameDay2(date2, today ?? dateLib.today());
3725
3722
  if (isOutside)
3726
3723
  internalModifiersMap.outside.push(day);
3727
3724
  if (isDisabled)
@@ -3767,7 +3764,7 @@ function createGetModifiers(days, props, navStart, navEnd, dateLib) {
3767
3764
  };
3768
3765
  }
3769
3766
 
3770
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js
3767
+ // node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js
3771
3768
  function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {
3772
3769
  const modifierClassNames = Object.entries(modifiers).filter(([, active]) => active === true).reduce((previousValue, [key]) => {
3773
3770
  if (modifiersClassNames[key]) {
@@ -3782,7 +3779,7 @@ function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames =
3782
3779
  return modifierClassNames;
3783
3780
  }
3784
3781
 
3785
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.js
3782
+ // node_modules/react-day-picker/dist/esm/helpers/getComponents.js
3786
3783
  function getComponents(customComponents) {
3787
3784
  return {
3788
3785
  ...exports_custom_components,
@@ -3790,7 +3787,7 @@ function getComponents(customComponents) {
3790
3787
  };
3791
3788
  }
3792
3789
 
3793
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js
3790
+ // node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js
3794
3791
  function getDataAttributes(props) {
3795
3792
  const dataAttributes = {
3796
3793
  "data-mode": props.mode ?? undefined,
@@ -3808,7 +3805,7 @@ function getDataAttributes(props) {
3808
3805
  return dataAttributes;
3809
3806
  }
3810
3807
 
3811
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js
3808
+ // node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js
3812
3809
  function getDefaultClassNames() {
3813
3810
  const classNames = {};
3814
3811
  for (const key in UI) {
@@ -3826,7 +3823,7 @@ function getDefaultClassNames() {
3826
3823
  return classNames;
3827
3824
  }
3828
3825
 
3829
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/index.js
3826
+ // node_modules/react-day-picker/dist/esm/formatters/index.js
3830
3827
  var exports_formatters = {};
3831
3828
  __export(exports_formatters, {
3832
3829
  formatYearDropdown: () => formatYearDropdown,
@@ -3840,41 +3837,41 @@ __export(exports_formatters, {
3840
3837
  formatCaption: () => formatCaption
3841
3838
  });
3842
3839
 
3843
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js
3840
+ // node_modules/react-day-picker/dist/esm/formatters/formatCaption.js
3844
3841
  function formatCaption(month, options, dateLib) {
3845
3842
  const lib = dateLib ?? new DateLib(options);
3846
3843
  return lib.formatMonthYear(month);
3847
3844
  }
3848
3845
  var formatMonthCaption = formatCaption;
3849
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.js
3846
+ // node_modules/react-day-picker/dist/esm/formatters/formatDay.js
3850
3847
  function formatDay(date2, options, dateLib) {
3851
3848
  return (dateLib ?? new DateLib(options)).format(date2, "d");
3852
3849
  }
3853
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js
3850
+ // node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js
3854
3851
  function formatMonthDropdown(month, dateLib = defaultDateLib) {
3855
3852
  return dateLib.format(month, "LLLL");
3856
3853
  }
3857
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js
3854
+ // node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js
3858
3855
  function formatWeekdayName(weekday, options, dateLib) {
3859
3856
  return (dateLib ?? new DateLib(options)).format(weekday, "cccccc");
3860
3857
  }
3861
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js
3858
+ // node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js
3862
3859
  function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
3863
3860
  if (weekNumber < 10) {
3864
3861
  return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);
3865
3862
  }
3866
3863
  return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);
3867
3864
  }
3868
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js
3865
+ // node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js
3869
3866
  function formatWeekNumberHeader() {
3870
3867
  return ``;
3871
3868
  }
3872
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js
3869
+ // node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js
3873
3870
  function formatYearDropdown(year, dateLib = defaultDateLib) {
3874
3871
  return dateLib.format(year, "yyyy");
3875
3872
  }
3876
3873
  var formatYearCaption = formatYearDropdown;
3877
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js
3874
+ // node_modules/react-day-picker/dist/esm/helpers/getFormatters.js
3878
3875
  function getFormatters(customFormatters) {
3879
3876
  if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {
3880
3877
  customFormatters.formatCaption = customFormatters.formatMonthCaption;
@@ -3888,7 +3885,7 @@ function getFormatters(customFormatters) {
3888
3885
  };
3889
3886
  }
3890
3887
 
3891
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js
3888
+ // node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js
3892
3889
  function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
3893
3890
  const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
3894
3891
  const months = eachMonthOfInterval2({
@@ -3904,7 +3901,7 @@ function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
3904
3901
  return options;
3905
3902
  }
3906
3903
 
3907
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js
3904
+ // node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js
3908
3905
  function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
3909
3906
  let style = { ...styles?.[UI.Day] };
3910
3907
  Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
@@ -3916,10 +3913,10 @@ function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
3916
3913
  return style;
3917
3914
  }
3918
3915
 
3919
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js
3920
- function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
3921
- const referenceToday = today ?? dateLib.today();
3922
- const start = broadcastCalendar ? dateLib.startOfBroadcastWeek(referenceToday, dateLib) : ISOWeek ? dateLib.startOfISOWeek(referenceToday) : dateLib.startOfWeek(referenceToday);
3916
+ // node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js
3917
+ function getWeekdays(dateLib, ISOWeek, broadcastCalendar) {
3918
+ const today = dateLib.today();
3919
+ const start = broadcastCalendar ? dateLib.startOfBroadcastWeek(today, dateLib) : ISOWeek ? dateLib.startOfISOWeek(today) : dateLib.startOfWeek(today);
3923
3920
  const days = [];
3924
3921
  for (let i = 0;i < 7; i++) {
3925
3922
  const day = dateLib.addDays(start, i);
@@ -3928,7 +3925,7 @@ function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
3928
3925
  return days;
3929
3926
  }
3930
3927
 
3931
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js
3928
+ // node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js
3932
3929
  function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false) {
3933
3930
  if (!navStart)
3934
3931
  return;
@@ -3950,7 +3947,7 @@ function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false)
3950
3947
  });
3951
3948
  }
3952
3949
 
3953
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/index.js
3950
+ // node_modules/react-day-picker/dist/esm/labels/index.js
3954
3951
  var exports_labels = {};
3955
3952
  __export(exports_labels, {
3956
3953
  labelYearDropdown: () => labelYearDropdown,
@@ -3968,7 +3965,7 @@ __export(exports_labels, {
3968
3965
  labelCaption: () => labelCaption
3969
3966
  });
3970
3967
 
3971
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js
3968
+ // node_modules/react-day-picker/dist/esm/labels/labelDayButton.js
3972
3969
  function labelDayButton(date2, modifiers, options, dateLib) {
3973
3970
  let label = (dateLib ?? new DateLib(options)).format(date2, "PPPP");
3974
3971
  if (modifiers.today)
@@ -3978,13 +3975,13 @@ function labelDayButton(date2, modifiers, options, dateLib) {
3978
3975
  return label;
3979
3976
  }
3980
3977
  var labelDay = labelDayButton;
3981
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.js
3978
+ // node_modules/react-day-picker/dist/esm/labels/labelGrid.js
3982
3979
  function labelGrid(date2, options, dateLib) {
3983
3980
  const lib = dateLib ?? new DateLib(options);
3984
3981
  return lib.formatMonthYear(date2);
3985
3982
  }
3986
3983
  var labelCaption = labelGrid;
3987
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js
3984
+ // node_modules/react-day-picker/dist/esm/labels/labelGridcell.js
3988
3985
  function labelGridcell(date2, modifiers, options, dateLib) {
3989
3986
  let label = (dateLib ?? new DateLib(options)).format(date2, "PPPP");
3990
3987
  if (modifiers?.today) {
@@ -3992,39 +3989,39 @@ function labelGridcell(date2, modifiers, options, dateLib) {
3992
3989
  }
3993
3990
  return label;
3994
3991
  }
3995
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js
3992
+ // node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js
3996
3993
  function labelMonthDropdown(_options) {
3997
3994
  return "Choose the Month";
3998
3995
  }
3999
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNav.js
3996
+ // node_modules/react-day-picker/dist/esm/labels/labelNav.js
4000
3997
  function labelNav() {
4001
3998
  return "";
4002
3999
  }
4003
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNext.js
4000
+ // node_modules/react-day-picker/dist/esm/labels/labelNext.js
4004
4001
  function labelNext(_month) {
4005
4002
  return "Go to the Next Month";
4006
4003
  }
4007
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js
4004
+ // node_modules/react-day-picker/dist/esm/labels/labelPrevious.js
4008
4005
  function labelPrevious(_month) {
4009
4006
  return "Go to the Previous Month";
4010
4007
  }
4011
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js
4008
+ // node_modules/react-day-picker/dist/esm/labels/labelWeekday.js
4012
4009
  function labelWeekday(date2, options, dateLib) {
4013
4010
  return (dateLib ?? new DateLib(options)).format(date2, "cccc");
4014
4011
  }
4015
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js
4012
+ // node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js
4016
4013
  function labelWeekNumber(weekNumber, _options) {
4017
4014
  return `Week ${weekNumber}`;
4018
4015
  }
4019
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js
4016
+ // node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js
4020
4017
  function labelWeekNumberHeader(_options) {
4021
4018
  return "Week Number";
4022
4019
  }
4023
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js
4020
+ // node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js
4024
4021
  function labelYearDropdown(_options) {
4025
4022
  return "Choose the Year";
4026
4023
  }
4027
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/useAnimation.js
4024
+ // node_modules/react-day-picker/dist/esm/useAnimation.js
4028
4025
  import { useLayoutEffect, useRef } from "react";
4029
4026
  var asHtmlElement = (element) => {
4030
4027
  if (element instanceof HTMLElement)
@@ -4149,10 +4146,10 @@ function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib
4149
4146
  });
4150
4147
  }
4151
4148
 
4152
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/useCalendar.js
4153
- import { useEffect, useMemo } from "react";
4149
+ // node_modules/react-day-picker/dist/esm/useCalendar.js
4150
+ import { useEffect } from "react";
4154
4151
 
4155
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDates.js
4152
+ // node_modules/react-day-picker/dist/esm/helpers/getDates.js
4156
4153
  function getDates(displayMonths, maxDate, props, dateLib) {
4157
4154
  const firstMonth = displayMonths[0];
4158
4155
  const lastMonth = displayMonths[displayMonths.length - 1];
@@ -4182,7 +4179,7 @@ function getDates(displayMonths, maxDate, props, dateLib) {
4182
4179
  return dates;
4183
4180
  }
4184
4181
 
4185
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDays.js
4182
+ // node_modules/react-day-picker/dist/esm/helpers/getDays.js
4186
4183
  function getDays(calendarMonths) {
4187
4184
  const initialDays = [];
4188
4185
  return calendarMonths.reduce((days, month) => {
@@ -4193,7 +4190,7 @@ function getDays(calendarMonths) {
4193
4190
  }, initialDays.slice());
4194
4191
  }
4195
4192
 
4196
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js
4193
+ // node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js
4197
4194
  function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {
4198
4195
  const { numberOfMonths = 1 } = props;
4199
4196
  const months = [];
@@ -4207,7 +4204,7 @@ function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib)
4207
4204
  return months;
4208
4205
  }
4209
4206
 
4210
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js
4207
+ // node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js
4211
4208
  function getInitialMonth(props, navStart, navEnd, dateLib) {
4212
4209
  const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1 } = props;
4213
4210
  let initialMonth = month || defaultMonth || today;
@@ -4222,7 +4219,7 @@ function getInitialMonth(props, navStart, navEnd, dateLib) {
4222
4219
  return startOfMonth2(initialMonth);
4223
4220
  }
4224
4221
 
4225
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.js
4222
+ // node_modules/react-day-picker/dist/esm/helpers/getMonths.js
4226
4223
  function getMonths(displayMonths, dates, props, dateLib) {
4227
4224
  const { addDays: addDays2, endOfBroadcastWeek: endOfBroadcastWeek2, endOfISOWeek: endOfISOWeek2, endOfMonth: endOfMonth2, endOfWeek: endOfWeek2, getISOWeek: getISOWeek2, getWeek: getWeek2, startOfBroadcastWeek: startOfBroadcastWeek2, startOfISOWeek: startOfISOWeek2, startOfWeek: startOfWeek2 } = dateLib;
4228
4225
  const dayPickerMonths = displayMonths.reduce((months, month) => {
@@ -4261,7 +4258,7 @@ function getMonths(displayMonths, dates, props, dateLib) {
4261
4258
  }
4262
4259
  }
4263
4260
 
4264
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js
4261
+ // node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js
4265
4262
  function getNavMonths(props, dateLib) {
4266
4263
  let { startMonth, endMonth } = props;
4267
4264
  const { startOfYear: startOfYear2, startOfDay: startOfDay2, startOfMonth: startOfMonth2, endOfMonth: endOfMonth2, addYears: addYears2, endOfYear: endOfYear2, newDate, today } = dateLib;
@@ -4299,7 +4296,7 @@ function getNavMonths(props, dateLib) {
4299
4296
  ];
4300
4297
  }
4301
4298
 
4302
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js
4299
+ // node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js
4303
4300
  function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
4304
4301
  if (options.disableNavigation) {
4305
4302
  return;
@@ -4318,7 +4315,7 @@ function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
4318
4315
  return addMonths2(month, offset);
4319
4316
  }
4320
4317
 
4321
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js
4318
+ // node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js
4322
4319
  function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {
4323
4320
  if (options.disableNavigation) {
4324
4321
  return;
@@ -4337,7 +4334,7 @@ function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, date
4337
4334
  return addMonths2(month, -offset);
4338
4335
  }
4339
4336
 
4340
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js
4337
+ // node_modules/react-day-picker/dist/esm/helpers/getWeeks.js
4341
4338
  function getWeeks(months) {
4342
4339
  const initialWeeks = [];
4343
4340
  return months.reduce((weeks, month) => {
@@ -4345,7 +4342,7 @@ function getWeeks(months) {
4345
4342
  }, initialWeeks.slice());
4346
4343
  }
4347
4344
 
4348
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js
4345
+ // node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js
4349
4346
  import { useState } from "react";
4350
4347
  function useControlledValue(defaultValue, controlledValue) {
4351
4348
  const [uncontrolledValue, setValue] = useState(defaultValue);
@@ -4353,7 +4350,7 @@ function useControlledValue(defaultValue, controlledValue) {
4353
4350
  return [value, setValue];
4354
4351
  }
4355
4352
 
4356
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/useCalendar.js
4353
+ // node_modules/react-day-picker/dist/esm/useCalendar.js
4357
4354
  function useCalendar(props, dateLib) {
4358
4355
  const [navStart, navEnd] = getNavMonths(props, dateLib);
4359
4356
  const { startOfMonth: startOfMonth2, endOfMonth: endOfMonth2 } = dateLib;
@@ -4363,44 +4360,13 @@ function useCalendar(props, dateLib) {
4363
4360
  const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
4364
4361
  setFirstMonth(newInitialMonth);
4365
4362
  }, [props.timeZone]);
4366
- const { months, weeks, days, previousMonth, nextMonth } = useMemo(() => {
4367
- const displayMonths = getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);
4368
- const dates = getDates(displayMonths, props.endMonth ? endOfMonth2(props.endMonth) : undefined, {
4369
- ISOWeek: props.ISOWeek,
4370
- fixedWeeks: props.fixedWeeks,
4371
- broadcastCalendar: props.broadcastCalendar
4372
- }, dateLib);
4373
- const months2 = getMonths(displayMonths, dates, {
4374
- broadcastCalendar: props.broadcastCalendar,
4375
- fixedWeeks: props.fixedWeeks,
4376
- ISOWeek: props.ISOWeek,
4377
- reverseMonths: props.reverseMonths
4378
- }, dateLib);
4379
- const weeks2 = getWeeks(months2);
4380
- const days2 = getDays(months2);
4381
- const previousMonth2 = getPreviousMonth(firstMonth, navStart, props, dateLib);
4382
- const nextMonth2 = getNextMonth(firstMonth, navEnd, props, dateLib);
4383
- return {
4384
- months: months2,
4385
- weeks: weeks2,
4386
- days: days2,
4387
- previousMonth: previousMonth2,
4388
- nextMonth: nextMonth2
4389
- };
4390
- }, [
4391
- dateLib,
4392
- firstMonth.getTime(),
4393
- navEnd?.getTime(),
4394
- navStart?.getTime(),
4395
- props.disableNavigation,
4396
- props.broadcastCalendar,
4397
- props.endMonth?.getTime(),
4398
- props.fixedWeeks,
4399
- props.ISOWeek,
4400
- props.numberOfMonths,
4401
- props.pagedNavigation,
4402
- props.reverseMonths
4403
- ]);
4363
+ const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);
4364
+ const dates = getDates(displayMonths, props.endMonth ? endOfMonth2(props.endMonth) : undefined, props, dateLib);
4365
+ const months = getMonths(displayMonths, dates, props, dateLib);
4366
+ const weeks = getWeeks(months);
4367
+ const days = getDays(months);
4368
+ const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);
4369
+ const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);
4404
4370
  const { disableNavigation, onMonthChange } = props;
4405
4371
  const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));
4406
4372
  const goToMonth = (date2) => {
@@ -4437,10 +4403,10 @@ function useCalendar(props, dateLib) {
4437
4403
  return calendar;
4438
4404
  }
4439
4405
 
4440
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/useFocus.js
4406
+ // node_modules/react-day-picker/dist/esm/useFocus.js
4441
4407
  import { useState as useState2 } from "react";
4442
4408
 
4443
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js
4409
+ // node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js
4444
4410
  var FocusTargetPriority;
4445
4411
  (function(FocusTargetPriority2) {
4446
4412
  FocusTargetPriority2[FocusTargetPriority2["Today"] = 0] = "Today";
@@ -4478,7 +4444,7 @@ function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
4478
4444
  return focusTarget;
4479
4445
  }
4480
4446
 
4481
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js
4447
+ // node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js
4482
4448
  function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {
4483
4449
  const { ISOWeek, broadcastCalendar } = props;
4484
4450
  const { addDays: addDays2, addMonths: addMonths2, addWeeks: addWeeks2, addYears: addYears2, endOfBroadcastWeek: endOfBroadcastWeek2, endOfISOWeek: endOfISOWeek2, endOfWeek: endOfWeek2, max: max2, min: min2, startOfBroadcastWeek: startOfBroadcastWeek2, startOfISOWeek: startOfISOWeek2, startOfWeek: startOfWeek2 } = dateLib;
@@ -4499,7 +4465,7 @@ function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dat
4499
4465
  return focusableDate;
4500
4466
  }
4501
4467
 
4502
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js
4468
+ // node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js
4503
4469
  function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {
4504
4470
  if (attempt > 365) {
4505
4471
  return;
@@ -4515,7 +4481,7 @@ function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMo
4515
4481
  return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);
4516
4482
  }
4517
4483
 
4518
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/useFocus.js
4484
+ // node_modules/react-day-picker/dist/esm/useFocus.js
4519
4485
  function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
4520
4486
  const { autoFocus } = props;
4521
4487
  const [lastFocused, setLastFocused] = useState2();
@@ -4553,7 +4519,7 @@ function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
4553
4519
  return useFocus2;
4554
4520
  }
4555
4521
 
4556
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useMulti.js
4522
+ // node_modules/react-day-picker/dist/esm/selection/useMulti.js
4557
4523
  function useMulti(props, dateLib) {
4558
4524
  const { selected: initiallySelected, required, onSelect } = props;
4559
4525
  const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);
@@ -4593,7 +4559,7 @@ function useMulti(props, dateLib) {
4593
4559
  };
4594
4560
  }
4595
4561
 
4596
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/addToRange.js
4562
+ // node_modules/react-day-picker/dist/esm/utils/addToRange.js
4597
4563
  function addToRange(date2, initialRange, min2 = 0, max2 = 0, required = false, dateLib = defaultDateLib) {
4598
4564
  const { from, to } = initialRange || {};
4599
4565
  const { isSameDay: isSameDay2, isAfter: isAfter2, isBefore: isBefore2 } = dateLib;
@@ -4646,7 +4612,7 @@ function addToRange(date2, initialRange, min2 = 0, max2 = 0, required = false, d
4646
4612
  return range;
4647
4613
  }
4648
4614
 
4649
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js
4615
+ // node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js
4650
4616
  function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
4651
4617
  const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;
4652
4618
  let date2 = range.from;
@@ -4661,12 +4627,12 @@ function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
4661
4627
  return false;
4662
4628
  }
4663
4629
 
4664
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js
4630
+ // node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js
4665
4631
  function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {
4666
4632
  return rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) || rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) || rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) || rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib);
4667
4633
  }
4668
4634
 
4669
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js
4635
+ // node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js
4670
4636
  function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
4671
4637
  const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];
4672
4638
  const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== "function");
@@ -4720,7 +4686,7 @@ function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
4720
4686
  return false;
4721
4687
  }
4722
4688
 
4723
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useRange.js
4689
+ // node_modules/react-day-picker/dist/esm/selection/useRange.js
4724
4690
  function useRange(props, dateLib) {
4725
4691
  const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect } = props;
4726
4692
  const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);
@@ -4748,7 +4714,7 @@ function useRange(props, dateLib) {
4748
4714
  };
4749
4715
  }
4750
4716
 
4751
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useSingle.js
4717
+ // node_modules/react-day-picker/dist/esm/selection/useSingle.js
4752
4718
  function useSingle(props, dateLib) {
4753
4719
  const { selected: initiallySelected, required, onSelect } = props;
4754
4720
  const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);
@@ -4779,7 +4745,7 @@ function useSingle(props, dateLib) {
4779
4745
  };
4780
4746
  }
4781
4747
 
4782
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/useSelection.js
4748
+ // node_modules/react-day-picker/dist/esm/useSelection.js
4783
4749
  function useSelection(props, dateLib) {
4784
4750
  const single = useSingle(props, dateLib);
4785
4751
  const multi = useMulti(props, dateLib);
@@ -4796,109 +4762,40 @@ function useSelection(props, dateLib) {
4796
4762
  }
4797
4763
  }
4798
4764
 
4799
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js
4800
- function toTimeZone(date2, timeZone) {
4801
- if (date2 instanceof TZDate && date2.timeZone === timeZone) {
4802
- return date2;
4803
- }
4804
- return new TZDate(date2, timeZone);
4805
- }
4806
-
4807
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js
4808
- function convertMatcher(matcher, timeZone) {
4809
- if (typeof matcher === "boolean" || typeof matcher === "function") {
4810
- return matcher;
4811
- }
4812
- if (matcher instanceof Date) {
4813
- return toTimeZone(matcher, timeZone);
4814
- }
4815
- if (Array.isArray(matcher)) {
4816
- return matcher.map((value) => value instanceof Date ? toTimeZone(value, timeZone) : value);
4817
- }
4818
- if (isDateRange(matcher)) {
4819
- return {
4820
- ...matcher,
4821
- from: matcher.from ? toTimeZone(matcher.from, timeZone) : matcher.from,
4822
- to: matcher.to ? toTimeZone(matcher.to, timeZone) : matcher.to
4823
- };
4824
- }
4825
- if (isDateInterval(matcher)) {
4826
- return {
4827
- before: toTimeZone(matcher.before, timeZone),
4828
- after: toTimeZone(matcher.after, timeZone)
4829
- };
4830
- }
4831
- if (isDateAfterType(matcher)) {
4832
- return {
4833
- after: toTimeZone(matcher.after, timeZone)
4834
- };
4835
- }
4836
- if (isDateBeforeType(matcher)) {
4837
- return {
4838
- before: toTimeZone(matcher.before, timeZone)
4839
- };
4840
- }
4841
- return matcher;
4842
- }
4843
- function convertMatchersToTimeZone(matchers, timeZone) {
4844
- if (!matchers) {
4845
- return matchers;
4846
- }
4847
- if (Array.isArray(matchers)) {
4848
- return matchers.map((matcher) => convertMatcher(matcher, timeZone));
4849
- }
4850
- return convertMatcher(matchers, timeZone);
4851
- }
4852
-
4853
- // node_modules/.pnpm/react-day-picker@9.11.2_react@19.2.0/node_modules/react-day-picker/dist/esm/DayPicker.js
4765
+ // node_modules/react-day-picker/dist/esm/DayPicker.js
4854
4766
  function DayPicker(initialProps) {
4855
4767
  let props = initialProps;
4856
- const timeZone = props.timeZone;
4857
- if (timeZone) {
4768
+ if (props.timeZone) {
4858
4769
  props = {
4859
- ...initialProps,
4860
- timeZone
4770
+ ...initialProps
4861
4771
  };
4862
4772
  if (props.today) {
4863
- props.today = toTimeZone(props.today, timeZone);
4773
+ props.today = new TZDate(props.today, props.timeZone);
4864
4774
  }
4865
4775
  if (props.month) {
4866
- props.month = toTimeZone(props.month, timeZone);
4776
+ props.month = new TZDate(props.month, props.timeZone);
4867
4777
  }
4868
4778
  if (props.defaultMonth) {
4869
- props.defaultMonth = toTimeZone(props.defaultMonth, timeZone);
4779
+ props.defaultMonth = new TZDate(props.defaultMonth, props.timeZone);
4870
4780
  }
4871
4781
  if (props.startMonth) {
4872
- props.startMonth = toTimeZone(props.startMonth, timeZone);
4782
+ props.startMonth = new TZDate(props.startMonth, props.timeZone);
4873
4783
  }
4874
4784
  if (props.endMonth) {
4875
- props.endMonth = toTimeZone(props.endMonth, timeZone);
4785
+ props.endMonth = new TZDate(props.endMonth, props.timeZone);
4876
4786
  }
4877
4787
  if (props.mode === "single" && props.selected) {
4878
- props.selected = toTimeZone(props.selected, timeZone);
4788
+ props.selected = new TZDate(props.selected, props.timeZone);
4879
4789
  } else if (props.mode === "multiple" && props.selected) {
4880
- props.selected = props.selected?.map((date2) => toTimeZone(date2, timeZone));
4790
+ props.selected = props.selected?.map((date2) => new TZDate(date2, props.timeZone));
4881
4791
  } else if (props.mode === "range" && props.selected) {
4882
4792
  props.selected = {
4883
- from: props.selected.from ? toTimeZone(props.selected.from, timeZone) : props.selected.from,
4884
- to: props.selected.to ? toTimeZone(props.selected.to, timeZone) : props.selected.to
4793
+ from: props.selected.from ? new TZDate(props.selected.from, props.timeZone) : undefined,
4794
+ to: props.selected.to ? new TZDate(props.selected.to, props.timeZone) : undefined
4885
4795
  };
4886
4796
  }
4887
- if (props.disabled !== undefined) {
4888
- props.disabled = convertMatchersToTimeZone(props.disabled, timeZone);
4889
- }
4890
- if (props.hidden !== undefined) {
4891
- props.hidden = convertMatchersToTimeZone(props.hidden, timeZone);
4892
- }
4893
- if (props.modifiers) {
4894
- const nextModifiers = {};
4895
- Object.keys(props.modifiers).forEach((key) => {
4896
- nextModifiers[key] = convertMatchersToTimeZone(props.modifiers?.[key], timeZone);
4897
- });
4898
- props.modifiers = nextModifiers;
4899
- }
4900
4797
  }
4901
- const { components, formatters: formatters2, labels, dateLib, locale, classNames } = useMemo2(() => {
4798
+ const { components, formatters: formatters2, labels, dateLib, locale, classNames } = useMemo(() => {
4902
4799
  const locale2 = { ...enUS, ...props.locale };
4903
4800
  const dateLib2 = new DateLib({
4904
4801
  locale: locale2,
@@ -4932,9 +4829,6 @@ function DayPicker(initialProps) {
4932
4829
  props.labels,
4933
4830
  props.classNames
4934
4831
  ]);
4935
- if (!props.today) {
4936
- props = { ...props, today: dateLib.today() };
4937
- }
4938
4832
  const { captionLayout, mode, navLayout, numberOfMonths = 1, onDayBlur, onDayClick, onDayFocus, onDayKeyDown, onDayMouseEnter, onDayMouseLeave, onNextClick, onPrevClick, showWeekNumber, styles } = props;
4939
4833
  const { formatCaption: formatCaption3, formatDay: formatDay3, formatMonthDropdown: formatMonthDropdown3, formatWeekNumber: formatWeekNumber3, formatWeekNumberHeader: formatWeekNumberHeader3, formatWeekdayName: formatWeekdayName3, formatYearDropdown: formatYearDropdown3 } = formatters2;
4940
4834
  const calendar = useCalendar(props, dateLib);
@@ -4943,7 +4837,7 @@ function DayPicker(initialProps) {
4943
4837
  const { isSelected, select, selected: selectedValue } = useSelection(props, dateLib) ?? {};
4944
4838
  const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus(props, calendar, getModifiers, isSelected ?? (() => false), dateLib);
4945
4839
  const { labelDayButton: labelDayButton3, labelGridcell: labelGridcell3, labelGrid: labelGrid4, labelMonthDropdown: labelMonthDropdown3, labelNav: labelNav3, labelPrevious: labelPrevious3, labelNext: labelNext3, labelWeekday: labelWeekday3, labelWeekNumber: labelWeekNumber3, labelWeekNumberHeader: labelWeekNumberHeader3, labelYearDropdown: labelYearDropdown3 } = labels;
4946
- const weekdays = useMemo2(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);
4840
+ const weekdays = useMemo(() => getWeekdays(dateLib, props.ISOWeek), [dateLib, props.ISOWeek]);
4947
4841
  const isInteractive = mode !== undefined || onDayClick !== undefined;
4948
4842
  const handlePreviousClick = useCallback2(() => {
4949
4843
  if (!previousMonth)
@@ -5013,7 +4907,7 @@ function DayPicker(initialProps) {
5013
4907
  const month = dateLib.setYear(dateLib.startOfMonth(date2), selectedYear);
5014
4908
  goToMonth(month);
5015
4909
  }, [dateLib, goToMonth]);
5016
- const { className, style } = useMemo2(() => ({
4910
+ const { className, style } = useMemo(() => ({
5017
4911
  className: [classNames[UI.Root], props.className].filter(Boolean).join(" "),
5018
4912
  style: { ...styles?.[UI.Root], ...props.style }
5019
4913
  }), [classNames, props.className, props.style, styles]);
@@ -5082,7 +4976,7 @@ function DayPicker(initialProps) {
5082
4976
  const style2 = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
5083
4977
  const className2 = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);
5084
4978
  const ariaLabel = !isInteractive && !modifiers.hidden ? labelGridcell3(date2, modifiers, dateLib.options, dateLib) : undefined;
5085
- return React27.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day, modifiers, className: className2.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || undefined, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : undefined, "data-selected": modifiers.selected || undefined, "data-disabled": modifiers.disabled || undefined, "data-hidden": modifiers.hidden || undefined, "data-outside": day.outside || undefined, "data-focused": modifiers.focused || undefined, "data-today": modifiers.today || undefined }, !modifiers.hidden && isInteractive ? React27.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day, modifiers, disabled: !modifiers.focused && modifiers.disabled || undefined, "aria-disabled": modifiers.focused && modifiers.disabled || undefined, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton3(date2, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay3(date2, dateLib.options, dateLib)) : !modifiers.hidden && formatDay3(day.date, dateLib.options, dateLib));
4979
+ return React27.createElement(components.Day, { key: `${dateLib.format(date2, "yyyy-MM-dd")}_${dateLib.format(day.displayMonth, "yyyy-MM")}`, day, modifiers, className: className2.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || undefined, "aria-label": ariaLabel, "data-day": dateLib.format(date2, "yyyy-MM-dd"), "data-month": day.outside ? dateLib.format(date2, "yyyy-MM") : undefined, "data-selected": modifiers.selected || undefined, "data-disabled": modifiers.disabled || undefined, "data-hidden": modifiers.hidden || undefined, "data-outside": day.outside || undefined, "data-focused": modifiers.focused || undefined, "data-today": modifiers.today || undefined }, !modifiers.hidden && isInteractive ? React27.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day, modifiers, disabled: modifiers.disabled || undefined, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton3(date2, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay3(date2, dateLib.options, dateLib)) : !modifiers.hidden && formatDay3(day.date, dateLib.options, dateLib));
5086
4980
  }));
5087
4981
  }))));
5088
4982
  })), props.footer && React27.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)));
@@ -19741,7 +19635,7 @@ function useLexicalComposerContext() {
19741
19635
  }
19742
19636
 
19743
19637
  // node_modules/.pnpm/@lexical+react@0.38.2_react-dom@19.2.0_react@19.2.0__react@19.2.0_yjs@13.6.27/node_modules/@lexical/react/LexicalComposer.dev.mjs
19744
- import { useLayoutEffect as useLayoutEffect2, useEffect as useEffect2, useMemo as useMemo3 } from "react";
19638
+ import { useLayoutEffect as useLayoutEffect2, useEffect as useEffect2, useMemo as useMemo2 } from "react";
19745
19639
  import { jsx } from "react/jsx-runtime";
19746
19640
  var CAN_USE_DOM3 = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
19747
19641
  var useLayoutEffectImpl = CAN_USE_DOM3 ? useLayoutEffect2 : useEffect2;
@@ -19752,7 +19646,7 @@ function LexicalComposer({
19752
19646
  initialConfig,
19753
19647
  children
19754
19648
  }) {
19755
- const composerContext = useMemo3(() => {
19649
+ const composerContext = useMemo2(() => {
19756
19650
  const {
19757
19651
  theme,
19758
19652
  namespace,
@@ -19823,7 +19717,7 @@ function initializeEditor(editor, initialEditorState) {
19823
19717
  }
19824
19718
 
19825
19719
  // node_modules/.pnpm/@lexical+react@0.38.2_react-dom@19.2.0_react@19.2.0__react@19.2.0_yjs@13.6.27/node_modules/@lexical/react/LexicalContentEditable.dev.mjs
19826
- import { useLayoutEffect as useLayoutEffect3, useEffect as useEffect3, forwardRef, useState as useState3, useCallback as useCallback3, useMemo as useMemo4 } from "react";
19720
+ import { useLayoutEffect as useLayoutEffect3, useEffect as useEffect3, forwardRef, useState as useState3, useCallback as useCallback3, useMemo as useMemo3 } from "react";
19827
19721
  import { jsx as jsx2, jsxs, Fragment } from "react/jsx-runtime";
19828
19722
 
19829
19723
  // node_modules/.pnpm/@lexical+text@0.38.2/node_modules/@lexical/text/LexicalText.dev.mjs
@@ -19925,7 +19819,7 @@ function ContentEditableElementImpl({
19925
19819
  editor.setRootElement(null);
19926
19820
  }
19927
19821
  }, [editor]);
19928
- const mergedRefs = useMemo4(() => mergeRefs(ref, handleRef), [handleRef, ref]);
19822
+ const mergedRefs = useMemo3(() => mergeRefs(ref, handleRef), [handleRef, ref]);
19929
19823
  useLayoutEffectImpl2(() => {
19930
19824
  setEditable(editor.isEditable());
19931
19825
  return editor.registerEditableListener((currentIsEditable) => {
@@ -20033,7 +19927,7 @@ function Placeholder({
20033
19927
  }
20034
19928
 
20035
19929
  // node_modules/.pnpm/react-error-boundary@6.0.0_react@19.2.0/node_modules/react-error-boundary/dist/react-error-boundary.development.js
20036
- import { createContext as createContext3, Component, createElement, useContext as useContext3, useState as useState4, useMemo as useMemo5, forwardRef as forwardRef2 } from "react";
19930
+ import { createContext as createContext3, Component, createElement, useContext as useContext3, useState as useState4, useMemo as useMemo4, forwardRef as forwardRef2 } from "react";
20037
19931
  "use client";
20038
19932
  var ErrorBoundaryContext = createContext3(null);
20039
19933
  var initialState = {
@@ -20453,9 +20347,9 @@ var SharedHistoryExtension = defineExtension({
20453
20347
  });
20454
20348
 
20455
20349
  // node_modules/.pnpm/@lexical+react@0.38.2_react-dom@19.2.0_react@19.2.0__react@19.2.0_yjs@13.6.27/node_modules/@lexical/react/LexicalHistoryPlugin.dev.mjs
20456
- import { useMemo as useMemo6, useEffect as useEffect4 } from "react";
20350
+ import { useMemo as useMemo5, useEffect as useEffect4 } from "react";
20457
20351
  function useHistory(editor, externalHistoryState, delay = 1000) {
20458
- const historyState = useMemo6(() => externalHistoryState || createEmptyHistoryState(), [externalHistoryState]);
20352
+ const historyState = useMemo5(() => externalHistoryState || createEmptyHistoryState(), [externalHistoryState]);
20459
20353
  useEffect4(() => {
20460
20354
  return registerHistory(editor, historyState, delay);
20461
20355
  }, [delay, editor, historyState]);
@@ -20517,12 +20411,12 @@ function ListPlugin({
20517
20411
  }
20518
20412
 
20519
20413
  // node_modules/.pnpm/@lexical+react@0.38.2_react-dom@19.2.0_react@19.2.0__react@19.2.0_yjs@13.6.27/node_modules/@lexical/react/useLexicalEditable.dev.mjs
20520
- import { useLayoutEffect as useLayoutEffect4, useEffect as useEffect7, useMemo as useMemo7, useState as useState5, useRef as useRef3 } from "react";
20414
+ import { useLayoutEffect as useLayoutEffect4, useEffect as useEffect7, useMemo as useMemo6, useState as useState5, useRef as useRef3 } from "react";
20521
20415
  var CAN_USE_DOM5 = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
20522
20416
  var useLayoutEffectImpl3 = CAN_USE_DOM5 ? useLayoutEffect4 : useEffect7;
20523
20417
  function useLexicalSubscription(subscription) {
20524
20418
  const [editor] = useLexicalComposerContext();
20525
- const initializedSubscription = useMemo7(() => subscription(editor), [editor, subscription]);
20419
+ const initializedSubscription = useMemo6(() => subscription(editor), [editor, subscription]);
20526
20420
  const [value, setValue] = useState5(() => initializedSubscription.initialValueFn());
20527
20421
  const valueRef = useRef3(value);
20528
20422
  useLayoutEffectImpl3(() => {
@@ -20560,7 +20454,7 @@ var ReactProviderExtension = defineExtension({
20560
20454
  });
20561
20455
 
20562
20456
  // node_modules/.pnpm/@lexical+react@0.38.2_react-dom@19.2.0_react@19.2.0__react@19.2.0_yjs@13.6.27/node_modules/@lexical/react/LexicalRichTextPlugin.dev.mjs
20563
- import { useLayoutEffect as useLayoutEffect5, useEffect as useEffect8, useState as useState6, useMemo as useMemo8, Suspense } from "react";
20457
+ import { useLayoutEffect as useLayoutEffect5, useEffect as useEffect8, useState as useState6, useMemo as useMemo7, Suspense } from "react";
20564
20458
  import { flushSync, createPortal } from "react-dom";
20565
20459
  import { jsx as jsx4, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
20566
20460
 
@@ -21903,7 +21797,7 @@ function useDecorators(editor, ErrorBoundary2) {
21903
21797
  useEffect8(() => {
21904
21798
  setDecorators(editor.getDecorators());
21905
21799
  }, [editor]);
21906
- return useMemo8(() => {
21800
+ return useMemo7(() => {
21907
21801
  const decoratedPortals = [];
21908
21802
  const decoratorKeys = Object.keys(decorators);
21909
21803
  for (let i2 = 0;i2 < decoratorKeys.length; i2++) {
@@ -22007,6 +21901,103 @@ function Placeholder2({
22007
21901
  }
22008
21902
  }
22009
21903
 
21904
+ // src/rich-text-editor/image-node.tsx
21905
+ import { jsxDEV as jsxDEV49 } from "react/jsx-dev-runtime";
21906
+ function convertImageElement(domNode) {
21907
+ if (domNode instanceof HTMLImageElement) {
21908
+ const { src, alt, width, height } = domNode;
21909
+ const node = $createImageNode({ src, alt, width, height });
21910
+ return { node };
21911
+ }
21912
+ return null;
21913
+ }
21914
+
21915
+ class ImageNode extends DecoratorNode {
21916
+ __src;
21917
+ __alt;
21918
+ __width;
21919
+ __height;
21920
+ static getType() {
21921
+ return "image";
21922
+ }
21923
+ static clone(node) {
21924
+ return new ImageNode(node.__src, node.__alt, node.__width, node.__height, node.__key);
21925
+ }
21926
+ static importJSON(serializedNode) {
21927
+ const { src, alt, width, height } = serializedNode;
21928
+ return $createImageNode({ src, alt, width, height });
21929
+ }
21930
+ exportJSON() {
21931
+ return {
21932
+ src: this.__src,
21933
+ alt: this.__alt,
21934
+ width: this.__width,
21935
+ height: this.__height,
21936
+ type: "image",
21937
+ version: 1
21938
+ };
21939
+ }
21940
+ static importDOM() {
21941
+ return {
21942
+ img: () => ({
21943
+ conversion: convertImageElement,
21944
+ priority: 0
21945
+ })
21946
+ };
21947
+ }
21948
+ constructor(src, alt, width, height, key) {
21949
+ super(key);
21950
+ this.__src = src;
21951
+ this.__alt = alt;
21952
+ this.__width = width;
21953
+ this.__height = height;
21954
+ }
21955
+ exportDOM() {
21956
+ const element = document.createElement("img");
21957
+ element.setAttribute("src", this.__src);
21958
+ if (this.__alt) {
21959
+ element.setAttribute("alt", this.__alt);
21960
+ }
21961
+ if (this.__width) {
21962
+ element.setAttribute("width", String(this.__width));
21963
+ }
21964
+ if (this.__height) {
21965
+ element.setAttribute("height", String(this.__height));
21966
+ }
21967
+ return { element };
21968
+ }
21969
+ createDOM(config) {
21970
+ const span = document.createElement("span");
21971
+ const theme = config.theme;
21972
+ const className = theme.image;
21973
+ if (className) {
21974
+ span.className = className;
21975
+ }
21976
+ return span;
21977
+ }
21978
+ updateDOM() {
21979
+ return false;
21980
+ }
21981
+ getSrc() {
21982
+ return this.__src;
21983
+ }
21984
+ getAlt() {
21985
+ return this.__alt;
21986
+ }
21987
+ decorate() {
21988
+ return /* @__PURE__ */ jsxDEV49("img", {
21989
+ src: this.__src,
21990
+ alt: this.__alt || "",
21991
+ width: this.__width,
21992
+ height: this.__height,
21993
+ style: { maxWidth: "100%", height: "auto" }
21994
+ }, undefined, false, undefined, this);
21995
+ }
21996
+ }
21997
+ function $createImageNode({ src, alt, width, height, key }) {
21998
+ return $applyNodeReplacement(new ImageNode(src, alt, width, height, key));
21999
+ }
22000
+
22010
22001
  // node_modules/.pnpm/@lexical+code@0.38.2/node_modules/@lexical/code/LexicalCode.dev.mjs
22011
22002
  var import_prismjs = __toESM(require_prism(), 1);
22012
22003
 
@@ -25159,7 +25150,8 @@ var MARKDOWN_TRANSFORMERS = [
25159
25150
  ];
25160
25151
 
25161
25152
  // src/rich-text-editor/plugins.tsx
25162
- import { jsxDEV as jsxDEV49 } from "react/jsx-dev-runtime";
25153
+ import { jsxDEV as jsxDEV50 } from "react/jsx-dev-runtime";
25154
+ var INSERT_IMAGE_COMMAND = createCommand("INSERT_IMAGE_COMMAND");
25163
25155
  function OnChangePlugin({ onChange, contentFormat = "html" }) {
25164
25156
  const [editor] = useLexicalComposerContext();
25165
25157
  useEffect12(() => {
@@ -25218,18 +25210,32 @@ function InitialContentPlugin({
25218
25210
  function MarkdownShortcutsPlugin({ enabled = false }) {
25219
25211
  if (!enabled)
25220
25212
  return null;
25221
- return /* @__PURE__ */ jsxDEV49(MarkdownShortcutPlugin, {
25213
+ return /* @__PURE__ */ jsxDEV50(MarkdownShortcutPlugin, {
25222
25214
  transformers: MARKDOWN_TRANSFORMERS
25223
25215
  }, undefined, false, undefined, this);
25224
25216
  }
25217
+ function ImagePlugin() {
25218
+ const [editor] = useLexicalComposerContext();
25219
+ useEffect12(() => {
25220
+ return editor.registerCommand(INSERT_IMAGE_COMMAND, (payload) => {
25221
+ const imageNode = $createImageNode(payload);
25222
+ const selection = $getSelection();
25223
+ if ($isRangeSelection(selection)) {
25224
+ selection.insertNodes([imageNode]);
25225
+ }
25226
+ return true;
25227
+ }, COMMAND_PRIORITY_EDITOR);
25228
+ }, [editor]);
25229
+ return null;
25230
+ }
25225
25231
 
25226
25232
  // src/rich-text-editor/toolbar.tsx
25227
25233
  import { useCallback as useCallback5, useEffect as useEffect13, useRef as useRef5, useState as useState8 } from "react";
25228
25234
 
25229
25235
  // src/select/select.tsx
25230
- import { jsxDEV as jsxDEV50 } from "react/jsx-dev-runtime";
25236
+ import { jsxDEV as jsxDEV51 } from "react/jsx-dev-runtime";
25231
25237
  function Select3({ className, ref, ...props }) {
25232
- return /* @__PURE__ */ jsxDEV50("select", {
25238
+ return /* @__PURE__ */ jsxDEV51("select", {
25233
25239
  ref,
25234
25240
  className: clsx("select", className),
25235
25241
  ...props
@@ -25237,9 +25243,9 @@ function Select3({ className, ref, ...props }) {
25237
25243
  }
25238
25244
  Select3.displayName = "Select";
25239
25245
  // src/rich-text-editor/icons.tsx
25240
- import { jsxDEV as jsxDEV51 } from "react/jsx-dev-runtime";
25246
+ import { jsxDEV as jsxDEV52 } from "react/jsx-dev-runtime";
25241
25247
  function BoldIcon() {
25242
- return /* @__PURE__ */ jsxDEV51("svg", {
25248
+ return /* @__PURE__ */ jsxDEV52("svg", {
25243
25249
  className: "w-4 h-4",
25244
25250
  viewBox: "0 0 24 24",
25245
25251
  fill: "none",
@@ -25248,17 +25254,17 @@ function BoldIcon() {
25248
25254
  strokeLinecap: "round",
25249
25255
  strokeLinejoin: "round",
25250
25256
  children: [
25251
- /* @__PURE__ */ jsxDEV51("path", {
25257
+ /* @__PURE__ */ jsxDEV52("path", {
25252
25258
  d: "M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"
25253
25259
  }, undefined, false, undefined, this),
25254
- /* @__PURE__ */ jsxDEV51("path", {
25260
+ /* @__PURE__ */ jsxDEV52("path", {
25255
25261
  d: "M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"
25256
25262
  }, undefined, false, undefined, this)
25257
25263
  ]
25258
25264
  }, undefined, true, undefined, this);
25259
25265
  }
25260
25266
  function ItalicIcon() {
25261
- return /* @__PURE__ */ jsxDEV51("svg", {
25267
+ return /* @__PURE__ */ jsxDEV52("svg", {
25262
25268
  className: "w-4 h-4",
25263
25269
  viewBox: "0 0 24 24",
25264
25270
  fill: "none",
@@ -25267,19 +25273,19 @@ function ItalicIcon() {
25267
25273
  strokeLinecap: "round",
25268
25274
  strokeLinejoin: "round",
25269
25275
  children: [
25270
- /* @__PURE__ */ jsxDEV51("line", {
25276
+ /* @__PURE__ */ jsxDEV52("line", {
25271
25277
  x1: "19",
25272
25278
  y1: "4",
25273
25279
  x2: "10",
25274
25280
  y2: "4"
25275
25281
  }, undefined, false, undefined, this),
25276
- /* @__PURE__ */ jsxDEV51("line", {
25282
+ /* @__PURE__ */ jsxDEV52("line", {
25277
25283
  x1: "14",
25278
25284
  y1: "20",
25279
25285
  x2: "5",
25280
25286
  y2: "20"
25281
25287
  }, undefined, false, undefined, this),
25282
- /* @__PURE__ */ jsxDEV51("line", {
25288
+ /* @__PURE__ */ jsxDEV52("line", {
25283
25289
  x1: "15",
25284
25290
  y1: "4",
25285
25291
  x2: "9",
@@ -25289,7 +25295,7 @@ function ItalicIcon() {
25289
25295
  }, undefined, true, undefined, this);
25290
25296
  }
25291
25297
  function UnderlineIcon() {
25292
- return /* @__PURE__ */ jsxDEV51("svg", {
25298
+ return /* @__PURE__ */ jsxDEV52("svg", {
25293
25299
  className: "w-4 h-4",
25294
25300
  viewBox: "0 0 24 24",
25295
25301
  fill: "none",
@@ -25298,10 +25304,10 @@ function UnderlineIcon() {
25298
25304
  strokeLinecap: "round",
25299
25305
  strokeLinejoin: "round",
25300
25306
  children: [
25301
- /* @__PURE__ */ jsxDEV51("path", {
25307
+ /* @__PURE__ */ jsxDEV52("path", {
25302
25308
  d: "M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"
25303
25309
  }, undefined, false, undefined, this),
25304
- /* @__PURE__ */ jsxDEV51("line", {
25310
+ /* @__PURE__ */ jsxDEV52("line", {
25305
25311
  x1: "4",
25306
25312
  y1: "21",
25307
25313
  x2: "20",
@@ -25311,7 +25317,7 @@ function UnderlineIcon() {
25311
25317
  }, undefined, true, undefined, this);
25312
25318
  }
25313
25319
  function BulletListIcon() {
25314
- return /* @__PURE__ */ jsxDEV51("svg", {
25320
+ return /* @__PURE__ */ jsxDEV52("svg", {
25315
25321
  className: "w-4 h-4",
25316
25322
  viewBox: "0 0 24 24",
25317
25323
  fill: "none",
@@ -25320,37 +25326,37 @@ function BulletListIcon() {
25320
25326
  strokeLinecap: "round",
25321
25327
  strokeLinejoin: "round",
25322
25328
  children: [
25323
- /* @__PURE__ */ jsxDEV51("line", {
25329
+ /* @__PURE__ */ jsxDEV52("line", {
25324
25330
  x1: "8",
25325
25331
  y1: "6",
25326
25332
  x2: "21",
25327
25333
  y2: "6"
25328
25334
  }, undefined, false, undefined, this),
25329
- /* @__PURE__ */ jsxDEV51("line", {
25335
+ /* @__PURE__ */ jsxDEV52("line", {
25330
25336
  x1: "8",
25331
25337
  y1: "12",
25332
25338
  x2: "21",
25333
25339
  y2: "12"
25334
25340
  }, undefined, false, undefined, this),
25335
- /* @__PURE__ */ jsxDEV51("line", {
25341
+ /* @__PURE__ */ jsxDEV52("line", {
25336
25342
  x1: "8",
25337
25343
  y1: "18",
25338
25344
  x2: "21",
25339
25345
  y2: "18"
25340
25346
  }, undefined, false, undefined, this),
25341
- /* @__PURE__ */ jsxDEV51("line", {
25347
+ /* @__PURE__ */ jsxDEV52("line", {
25342
25348
  x1: "3",
25343
25349
  y1: "6",
25344
25350
  x2: "3.01",
25345
25351
  y2: "6"
25346
25352
  }, undefined, false, undefined, this),
25347
- /* @__PURE__ */ jsxDEV51("line", {
25353
+ /* @__PURE__ */ jsxDEV52("line", {
25348
25354
  x1: "3",
25349
25355
  y1: "12",
25350
25356
  x2: "3.01",
25351
25357
  y2: "12"
25352
25358
  }, undefined, false, undefined, this),
25353
- /* @__PURE__ */ jsxDEV51("line", {
25359
+ /* @__PURE__ */ jsxDEV52("line", {
25354
25360
  x1: "3",
25355
25361
  y1: "18",
25356
25362
  x2: "3.01",
@@ -25360,7 +25366,7 @@ function BulletListIcon() {
25360
25366
  }, undefined, true, undefined, this);
25361
25367
  }
25362
25368
  function NumberedListIcon() {
25363
- return /* @__PURE__ */ jsxDEV51("svg", {
25369
+ return /* @__PURE__ */ jsxDEV52("svg", {
25364
25370
  className: "w-4 h-4",
25365
25371
  viewBox: "0 0 24 24",
25366
25372
  fill: "none",
@@ -25369,38 +25375,38 @@ function NumberedListIcon() {
25369
25375
  strokeLinecap: "round",
25370
25376
  strokeLinejoin: "round",
25371
25377
  children: [
25372
- /* @__PURE__ */ jsxDEV51("line", {
25378
+ /* @__PURE__ */ jsxDEV52("line", {
25373
25379
  x1: "10",
25374
25380
  y1: "6",
25375
25381
  x2: "21",
25376
25382
  y2: "6"
25377
25383
  }, undefined, false, undefined, this),
25378
- /* @__PURE__ */ jsxDEV51("line", {
25384
+ /* @__PURE__ */ jsxDEV52("line", {
25379
25385
  x1: "10",
25380
25386
  y1: "12",
25381
25387
  x2: "21",
25382
25388
  y2: "12"
25383
25389
  }, undefined, false, undefined, this),
25384
- /* @__PURE__ */ jsxDEV51("line", {
25390
+ /* @__PURE__ */ jsxDEV52("line", {
25385
25391
  x1: "10",
25386
25392
  y1: "18",
25387
25393
  x2: "21",
25388
25394
  y2: "18"
25389
25395
  }, undefined, false, undefined, this),
25390
- /* @__PURE__ */ jsxDEV51("path", {
25396
+ /* @__PURE__ */ jsxDEV52("path", {
25391
25397
  d: "M4 6h1v4"
25392
25398
  }, undefined, false, undefined, this),
25393
- /* @__PURE__ */ jsxDEV51("path", {
25399
+ /* @__PURE__ */ jsxDEV52("path", {
25394
25400
  d: "M4 10h2"
25395
25401
  }, undefined, false, undefined, this),
25396
- /* @__PURE__ */ jsxDEV51("path", {
25402
+ /* @__PURE__ */ jsxDEV52("path", {
25397
25403
  d: "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"
25398
25404
  }, undefined, false, undefined, this)
25399
25405
  ]
25400
25406
  }, undefined, true, undefined, this);
25401
25407
  }
25402
25408
  function LinkIcon() {
25403
- return /* @__PURE__ */ jsxDEV51("svg", {
25409
+ return /* @__PURE__ */ jsxDEV52("svg", {
25404
25410
  className: "w-4 h-4",
25405
25411
  viewBox: "0 0 24 24",
25406
25412
  fill: "none",
@@ -25409,17 +25415,17 @@ function LinkIcon() {
25409
25415
  strokeLinecap: "round",
25410
25416
  strokeLinejoin: "round",
25411
25417
  children: [
25412
- /* @__PURE__ */ jsxDEV51("path", {
25418
+ /* @__PURE__ */ jsxDEV52("path", {
25413
25419
  d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"
25414
25420
  }, undefined, false, undefined, this),
25415
- /* @__PURE__ */ jsxDEV51("path", {
25421
+ /* @__PURE__ */ jsxDEV52("path", {
25416
25422
  d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"
25417
25423
  }, undefined, false, undefined, this)
25418
25424
  ]
25419
25425
  }, undefined, true, undefined, this);
25420
25426
  }
25421
25427
  function ImageIcon() {
25422
- return /* @__PURE__ */ jsxDEV51("svg", {
25428
+ return /* @__PURE__ */ jsxDEV52("svg", {
25423
25429
  className: "w-4 h-4",
25424
25430
  viewBox: "0 0 24 24",
25425
25431
  fill: "none",
@@ -25428,7 +25434,7 @@ function ImageIcon() {
25428
25434
  strokeLinecap: "round",
25429
25435
  strokeLinejoin: "round",
25430
25436
  children: [
25431
- /* @__PURE__ */ jsxDEV51("rect", {
25437
+ /* @__PURE__ */ jsxDEV52("rect", {
25432
25438
  x: "3",
25433
25439
  y: "3",
25434
25440
  width: "18",
@@ -25436,12 +25442,12 @@ function ImageIcon() {
25436
25442
  rx: "2",
25437
25443
  ry: "2"
25438
25444
  }, undefined, false, undefined, this),
25439
- /* @__PURE__ */ jsxDEV51("circle", {
25445
+ /* @__PURE__ */ jsxDEV52("circle", {
25440
25446
  cx: "8.5",
25441
25447
  cy: "8.5",
25442
25448
  r: "1.5"
25443
25449
  }, undefined, false, undefined, this),
25444
- /* @__PURE__ */ jsxDEV51("polyline", {
25450
+ /* @__PURE__ */ jsxDEV52("polyline", {
25445
25451
  points: "21 15 16 10 5 21"
25446
25452
  }, undefined, false, undefined, this)
25447
25453
  ]
@@ -25449,7 +25455,7 @@ function ImageIcon() {
25449
25455
  }
25450
25456
 
25451
25457
  // src/rich-text-editor/toolbar.tsx
25452
- import { jsxDEV as jsxDEV52, Fragment as Fragment3 } from "react/jsx-dev-runtime";
25458
+ import { jsxDEV as jsxDEV53, Fragment as Fragment3 } from "react/jsx-dev-runtime";
25453
25459
  function Toolbar({ className }) {
25454
25460
  const [editor] = useLexicalComposerContext();
25455
25461
  const [isBold2, setIsBold] = useState8(false);
@@ -25524,165 +25530,200 @@ function Toolbar({ className }) {
25524
25530
  const insertImageFromUrl = useCallback5(() => {
25525
25531
  const url = prompt("Enter image URL:");
25526
25532
  if (url) {
25527
- editor.update(() => {
25528
- const selection = $getSelection();
25529
- if ($isRangeSelection(selection)) {
25530
- const img = `<img src="${url}" alt="Image" />`;
25531
- selection.insertRawText(img);
25532
- }
25533
+ editor.dispatchCommand(INSERT_IMAGE_COMMAND, {
25534
+ src: url,
25535
+ alt: "Image"
25533
25536
  });
25534
25537
  }
25535
25538
  }, [editor]);
25536
25539
  const insertImageFromFile = useCallback5(() => {
25537
25540
  fileInputRef.current?.click();
25538
25541
  }, []);
25539
- const handleFileUpload = useCallback5((e2) => {
25542
+ const resizeImage = useCallback5((file, maxWidth) => {
25543
+ return new Promise((resolve, reject) => {
25544
+ const reader = new FileReader;
25545
+ reader.onload = (e2) => {
25546
+ const img = new Image;
25547
+ img.onload = () => {
25548
+ let width = img.width;
25549
+ let height = img.height;
25550
+ if (width > maxWidth) {
25551
+ height = height * maxWidth / width;
25552
+ width = maxWidth;
25553
+ }
25554
+ const canvas = document.createElement("canvas");
25555
+ canvas.width = width;
25556
+ canvas.height = height;
25557
+ const ctx = canvas.getContext("2d");
25558
+ if (!ctx) {
25559
+ reject(new Error("Could not get canvas context"));
25560
+ return;
25561
+ }
25562
+ ctx.drawImage(img, 0, 0, width, height);
25563
+ const resizedDataUrl = canvas.toDataURL("image/jpeg", 0.9);
25564
+ resolve(resizedDataUrl);
25565
+ };
25566
+ img.onerror = () => reject(new Error("Failed to load image"));
25567
+ img.src = e2.target?.result;
25568
+ };
25569
+ reader.onerror = () => reject(new Error("Failed to read file"));
25570
+ reader.readAsDataURL(file);
25571
+ });
25572
+ }, []);
25573
+ const handleFileUpload = useCallback5(async (e2) => {
25540
25574
  const file = e2.target.files?.[0];
25541
25575
  if (!file)
25542
25576
  return;
25543
- const reader = new FileReader;
25544
- reader.onload = (event) => {
25545
- const dataUrl = event.target?.result;
25546
- if (dataUrl) {
25547
- editor.update(() => {
25548
- const selection = $getSelection();
25549
- if ($isRangeSelection(selection)) {
25550
- const img = `<img src="${dataUrl}" alt="${file.name}" />`;
25551
- selection.insertRawText(img);
25552
- }
25553
- });
25554
- }
25555
- };
25556
- reader.readAsDataURL(file);
25557
- e2.target.value = "";
25558
- }, [editor]);
25559
- return /* @__PURE__ */ jsxDEV52(Fragment3, {
25577
+ try {
25578
+ const resizedDataUrl = await resizeImage(file, 800);
25579
+ editor.dispatchCommand(INSERT_IMAGE_COMMAND, {
25580
+ src: resizedDataUrl,
25581
+ alt: file.name
25582
+ });
25583
+ } catch (error) {
25584
+ console.error("Error resizing image:", error);
25585
+ const reader = new FileReader;
25586
+ reader.onload = (event) => {
25587
+ const dataUrl = event.target?.result;
25588
+ if (dataUrl) {
25589
+ editor.dispatchCommand(INSERT_IMAGE_COMMAND, {
25590
+ src: dataUrl,
25591
+ alt: file.name
25592
+ });
25593
+ }
25594
+ };
25595
+ reader.readAsDataURL(file);
25596
+ } finally {
25597
+ e2.target.value = "";
25598
+ }
25599
+ }, [editor, resizeImage]);
25600
+ return /* @__PURE__ */ jsxDEV53(Fragment3, {
25560
25601
  children: [
25561
- /* @__PURE__ */ jsxDEV52("div", {
25602
+ /* @__PURE__ */ jsxDEV53("div", {
25562
25603
  className: clsx("flex gap-2 p-2 border-b border-base-300 flex-wrap", className),
25563
25604
  children: [
25564
- /* @__PURE__ */ jsxDEV52("div", {
25605
+ /* @__PURE__ */ jsxDEV53("div", {
25565
25606
  className: "join",
25566
25607
  children: [
25567
- /* @__PURE__ */ jsxDEV52(Button, {
25608
+ /* @__PURE__ */ jsxDEV53(Button, {
25568
25609
  type: "button",
25569
25610
  className: clsx("join-item btn-sm btn-ghost", { "btn-active": isBold2 }),
25570
25611
  onClick: () => formatText("bold"),
25571
25612
  title: "Bold (Ctrl+B)",
25572
- children: /* @__PURE__ */ jsxDEV52(BoldIcon, {}, undefined, false, undefined, this)
25613
+ children: /* @__PURE__ */ jsxDEV53(BoldIcon, {}, undefined, false, undefined, this)
25573
25614
  }, undefined, false, undefined, this),
25574
- /* @__PURE__ */ jsxDEV52(Button, {
25615
+ /* @__PURE__ */ jsxDEV53(Button, {
25575
25616
  type: "button",
25576
25617
  className: clsx("join-item btn-sm btn-ghost", { "btn-active": isItalic2 }),
25577
25618
  onClick: () => formatText("italic"),
25578
25619
  title: "Italic (Ctrl+I)",
25579
- children: /* @__PURE__ */ jsxDEV52(ItalicIcon, {}, undefined, false, undefined, this)
25620
+ children: /* @__PURE__ */ jsxDEV53(ItalicIcon, {}, undefined, false, undefined, this)
25580
25621
  }, undefined, false, undefined, this),
25581
- /* @__PURE__ */ jsxDEV52(Button, {
25622
+ /* @__PURE__ */ jsxDEV53(Button, {
25582
25623
  type: "button",
25583
25624
  className: clsx("join-item btn-sm btn-ghost", { "btn-active": isUnderline2 }),
25584
25625
  onClick: () => formatText("underline"),
25585
25626
  title: "Underline (Ctrl+U)",
25586
- children: /* @__PURE__ */ jsxDEV52(UnderlineIcon, {}, undefined, false, undefined, this)
25627
+ children: /* @__PURE__ */ jsxDEV53(UnderlineIcon, {}, undefined, false, undefined, this)
25587
25628
  }, undefined, false, undefined, this)
25588
25629
  ]
25589
25630
  }, undefined, true, undefined, this),
25590
- /* @__PURE__ */ jsxDEV52(Divider, {
25631
+ /* @__PURE__ */ jsxDEV53(Divider, {
25591
25632
  className: "divider-horizontal mx-0"
25592
25633
  }, undefined, false, undefined, this),
25593
- /* @__PURE__ */ jsxDEV52(Select3, {
25594
- className: "join-item select-sm select-bordered",
25634
+ /* @__PURE__ */ jsxDEV53(Select3, {
25635
+ className: "join-item select-sm select-bordered w-32",
25595
25636
  value: blockType,
25596
25637
  onChange: formatHeading,
25597
25638
  children: [
25598
- /* @__PURE__ */ jsxDEV52("option", {
25639
+ /* @__PURE__ */ jsxDEV53("option", {
25599
25640
  value: "paragraph",
25600
25641
  children: "Normal"
25601
25642
  }, undefined, false, undefined, this),
25602
- /* @__PURE__ */ jsxDEV52("option", {
25643
+ /* @__PURE__ */ jsxDEV53("option", {
25603
25644
  value: "h1",
25604
25645
  children: "Heading 1"
25605
25646
  }, undefined, false, undefined, this),
25606
- /* @__PURE__ */ jsxDEV52("option", {
25647
+ /* @__PURE__ */ jsxDEV53("option", {
25607
25648
  value: "h2",
25608
25649
  children: "Heading 2"
25609
25650
  }, undefined, false, undefined, this),
25610
- /* @__PURE__ */ jsxDEV52("option", {
25651
+ /* @__PURE__ */ jsxDEV53("option", {
25611
25652
  value: "h3",
25612
25653
  children: "Heading 3"
25613
25654
  }, undefined, false, undefined, this),
25614
- /* @__PURE__ */ jsxDEV52("option", {
25655
+ /* @__PURE__ */ jsxDEV53("option", {
25615
25656
  value: "h4",
25616
25657
  children: "Heading 4"
25617
25658
  }, undefined, false, undefined, this),
25618
- /* @__PURE__ */ jsxDEV52("option", {
25659
+ /* @__PURE__ */ jsxDEV53("option", {
25619
25660
  value: "h5",
25620
25661
  children: "Heading 5"
25621
25662
  }, undefined, false, undefined, this),
25622
- /* @__PURE__ */ jsxDEV52("option", {
25663
+ /* @__PURE__ */ jsxDEV53("option", {
25623
25664
  value: "h6",
25624
25665
  children: "Heading 6"
25625
25666
  }, undefined, false, undefined, this)
25626
25667
  ]
25627
25668
  }, undefined, true, undefined, this),
25628
- /* @__PURE__ */ jsxDEV52(Divider, {
25669
+ /* @__PURE__ */ jsxDEV53(Divider, {
25629
25670
  className: "divider-horizontal mx-0"
25630
25671
  }, undefined, false, undefined, this),
25631
- /* @__PURE__ */ jsxDEV52("div", {
25672
+ /* @__PURE__ */ jsxDEV53("div", {
25632
25673
  className: "join",
25633
25674
  children: [
25634
- /* @__PURE__ */ jsxDEV52(Button, {
25675
+ /* @__PURE__ */ jsxDEV53(Button, {
25635
25676
  type: "button",
25636
25677
  className: clsx("join-item btn-sm btn-ghost", {
25637
25678
  "btn-active": blockType === "bullet"
25638
25679
  }),
25639
25680
  onClick: () => editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined),
25640
25681
  title: "Bullet List",
25641
- children: /* @__PURE__ */ jsxDEV52(BulletListIcon, {}, undefined, false, undefined, this)
25682
+ children: /* @__PURE__ */ jsxDEV53(BulletListIcon, {}, undefined, false, undefined, this)
25642
25683
  }, undefined, false, undefined, this),
25643
- /* @__PURE__ */ jsxDEV52(Button, {
25684
+ /* @__PURE__ */ jsxDEV53(Button, {
25644
25685
  type: "button",
25645
25686
  className: clsx("join-item btn-sm btn-ghost", {
25646
25687
  "btn-active": blockType === "number"
25647
25688
  }),
25648
25689
  onClick: () => editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, undefined),
25649
25690
  title: "Numbered List",
25650
- children: /* @__PURE__ */ jsxDEV52(NumberedListIcon, {}, undefined, false, undefined, this)
25691
+ children: /* @__PURE__ */ jsxDEV53(NumberedListIcon, {}, undefined, false, undefined, this)
25651
25692
  }, undefined, false, undefined, this)
25652
25693
  ]
25653
25694
  }, undefined, true, undefined, this),
25654
- /* @__PURE__ */ jsxDEV52(Divider, {
25695
+ /* @__PURE__ */ jsxDEV53(Divider, {
25655
25696
  className: "divider-horizontal mx-0"
25656
25697
  }, undefined, false, undefined, this),
25657
- /* @__PURE__ */ jsxDEV52("div", {
25698
+ /* @__PURE__ */ jsxDEV53("div", {
25658
25699
  className: "join",
25659
25700
  children: [
25660
- /* @__PURE__ */ jsxDEV52(Button, {
25701
+ /* @__PURE__ */ jsxDEV53(Button, {
25661
25702
  type: "button",
25662
25703
  className: clsx("join-item btn-sm btn-ghost", { "btn-active": isLink }),
25663
25704
  onClick: insertLink,
25664
25705
  title: "Insert Link",
25665
- children: /* @__PURE__ */ jsxDEV52(LinkIcon, {}, undefined, false, undefined, this)
25706
+ children: /* @__PURE__ */ jsxDEV53(LinkIcon, {}, undefined, false, undefined, this)
25666
25707
  }, undefined, false, undefined, this),
25667
- /* @__PURE__ */ jsxDEV52(Dropdown3, {
25708
+ /* @__PURE__ */ jsxDEV53(Dropdown3, {
25668
25709
  className: "join-item [&>summary]:list-none [&>summary::-webkit-details-marker]:hidden",
25669
- trigger: /* @__PURE__ */ jsxDEV52("div", {
25710
+ trigger: /* @__PURE__ */ jsxDEV53("div", {
25670
25711
  className: "btn btn-sm btn-ghost",
25671
25712
  title: "Insert Image",
25672
- children: /* @__PURE__ */ jsxDEV52(ImageIcon, {}, undefined, false, undefined, this)
25713
+ children: /* @__PURE__ */ jsxDEV53(ImageIcon, {}, undefined, false, undefined, this)
25673
25714
  }, undefined, false, undefined, this),
25674
- content: /* @__PURE__ */ jsxDEV52("ul", {
25715
+ content: /* @__PURE__ */ jsxDEV53("ul", {
25675
25716
  className: "menu bg-base-200 rounded-box z-10 w-48 p-2 shadow",
25676
25717
  children: [
25677
- /* @__PURE__ */ jsxDEV52("li", {
25678
- children: /* @__PURE__ */ jsxDEV52("button", {
25718
+ /* @__PURE__ */ jsxDEV53("li", {
25719
+ children: /* @__PURE__ */ jsxDEV53("button", {
25679
25720
  type: "button",
25680
25721
  onClick: insertImageFromUrl,
25681
25722
  children: "Insert from URL"
25682
25723
  }, undefined, false, undefined, this)
25683
25724
  }, undefined, false, undefined, this),
25684
- /* @__PURE__ */ jsxDEV52("li", {
25685
- children: /* @__PURE__ */ jsxDEV52("button", {
25725
+ /* @__PURE__ */ jsxDEV53("li", {
25726
+ children: /* @__PURE__ */ jsxDEV53("button", {
25686
25727
  type: "button",
25687
25728
  onClick: insertImageFromFile,
25688
25729
  children: "Upload File"
@@ -25695,7 +25736,7 @@ function Toolbar({ className }) {
25695
25736
  }, undefined, true, undefined, this)
25696
25737
  ]
25697
25738
  }, undefined, true, undefined, this),
25698
- /* @__PURE__ */ jsxDEV52("input", {
25739
+ /* @__PURE__ */ jsxDEV53("input", {
25699
25740
  type: "file",
25700
25741
  ref: fileInputRef,
25701
25742
  accept: "image/*",
@@ -25707,7 +25748,7 @@ function Toolbar({ className }) {
25707
25748
  }
25708
25749
 
25709
25750
  // src/rich-text-editor/rich-text-editor.tsx
25710
- import { jsxDEV as jsxDEV53 } from "react/jsx-dev-runtime";
25751
+ import { jsxDEV as jsxDEV54 } from "react/jsx-dev-runtime";
25711
25752
  var editorTheme = {
25712
25753
  heading: {
25713
25754
  h1: "text-4xl font-bold my-4",
@@ -25733,7 +25774,8 @@ var editorTheme = {
25733
25774
  strikethrough: "line-through",
25734
25775
  code: "font-mono bg-base-200 px-1 rounded"
25735
25776
  },
25736
- paragraph: "my-2"
25777
+ paragraph: "my-2",
25778
+ image: "my-4"
25737
25779
  };
25738
25780
  function RichTextEditor({
25739
25781
  initialContent,
@@ -25750,50 +25792,51 @@ function RichTextEditor({
25750
25792
  }) {
25751
25793
  const initialConfig = {
25752
25794
  namespace: "RichTextEditor",
25753
- nodes: [HeadingNode, QuoteNode, ListNode, ListItemNode, LinkNode],
25795
+ nodes: [HeadingNode, QuoteNode, ListNode, ListItemNode, LinkNode, ImageNode],
25754
25796
  onError: (error) => {
25755
25797
  console.error("Lexical error:", error);
25756
25798
  },
25757
25799
  theme: editorTheme,
25758
25800
  editable: !disabled
25759
25801
  };
25760
- return /* @__PURE__ */ jsxDEV53("div", {
25802
+ return /* @__PURE__ */ jsxDEV54("div", {
25761
25803
  className: clsx("rich-text-editor", className),
25762
25804
  ...props,
25763
- children: /* @__PURE__ */ jsxDEV53(LexicalComposer, {
25805
+ children: /* @__PURE__ */ jsxDEV54(LexicalComposer, {
25764
25806
  initialConfig,
25765
25807
  children: [
25766
- !disabled && /* @__PURE__ */ jsxDEV53(Toolbar, {
25808
+ !disabled && /* @__PURE__ */ jsxDEV54(Toolbar, {
25767
25809
  className: toolbarClassName
25768
25810
  }, undefined, false, undefined, this),
25769
- /* @__PURE__ */ jsxDEV53("div", {
25811
+ /* @__PURE__ */ jsxDEV54("div", {
25770
25812
  className: "relative",
25771
- children: /* @__PURE__ */ jsxDEV53(RichTextPlugin, {
25772
- contentEditable: /* @__PURE__ */ jsxDEV53(ContentEditable, {
25813
+ children: /* @__PURE__ */ jsxDEV54(RichTextPlugin, {
25814
+ contentEditable: /* @__PURE__ */ jsxDEV54(ContentEditable, {
25773
25815
  className: clsx("prose max-w-none p-4 min-h-[200px] focus:outline-none", editorClassName)
25774
25816
  }, undefined, false, undefined, this),
25775
- placeholder: /* @__PURE__ */ jsxDEV53("div", {
25817
+ placeholder: /* @__PURE__ */ jsxDEV54("div", {
25776
25818
  className: "absolute top-4 left-4 text-base-content/50 pointer-events-none select-none",
25777
25819
  children: placeholder
25778
25820
  }, undefined, false, undefined, this),
25779
25821
  ErrorBoundary: LexicalErrorBoundary
25780
25822
  }, undefined, false, undefined, this)
25781
25823
  }, undefined, false, undefined, this),
25782
- /* @__PURE__ */ jsxDEV53(HistoryPlugin, {}, undefined, false, undefined, this),
25783
- /* @__PURE__ */ jsxDEV53(ListPlugin, {}, undefined, false, undefined, this),
25784
- /* @__PURE__ */ jsxDEV53(LinkPlugin, {}, undefined, false, undefined, this),
25785
- /* @__PURE__ */ jsxDEV53(OnChangePlugin, {
25824
+ /* @__PURE__ */ jsxDEV54(HistoryPlugin, {}, undefined, false, undefined, this),
25825
+ /* @__PURE__ */ jsxDEV54(ListPlugin, {}, undefined, false, undefined, this),
25826
+ /* @__PURE__ */ jsxDEV54(LinkPlugin, {}, undefined, false, undefined, this),
25827
+ /* @__PURE__ */ jsxDEV54(ImagePlugin, {}, undefined, false, undefined, this),
25828
+ /* @__PURE__ */ jsxDEV54(OnChangePlugin, {
25786
25829
  onChange,
25787
25830
  contentFormat
25788
25831
  }, undefined, false, undefined, this),
25789
- /* @__PURE__ */ jsxDEV53(RefPlugin, {
25832
+ /* @__PURE__ */ jsxDEV54(RefPlugin, {
25790
25833
  editorRef: ref
25791
25834
  }, undefined, false, undefined, this),
25792
- initialContent && /* @__PURE__ */ jsxDEV53(InitialContentPlugin, {
25835
+ initialContent && /* @__PURE__ */ jsxDEV54(InitialContentPlugin, {
25793
25836
  content: initialContent,
25794
25837
  contentFormat
25795
25838
  }, undefined, false, undefined, this),
25796
- /* @__PURE__ */ jsxDEV53(MarkdownShortcutsPlugin, {
25839
+ /* @__PURE__ */ jsxDEV54(MarkdownShortcutsPlugin, {
25797
25840
  enabled: enableMarkdownShortcuts
25798
25841
  }, undefined, false, undefined, this)
25799
25842
  ]
@@ -25802,16 +25845,16 @@ function RichTextEditor({
25802
25845
  }
25803
25846
  RichTextEditor.displayName = "RichTextEditor";
25804
25847
  // src/skeleton/skeleton.tsx
25805
- import { jsxDEV as jsxDEV54 } from "react/jsx-dev-runtime";
25848
+ import { jsxDEV as jsxDEV55 } from "react/jsx-dev-runtime";
25806
25849
  function Skeleton({ className, ...props }) {
25807
25850
  const classes = clsx("skeleton", className);
25808
- return /* @__PURE__ */ jsxDEV54("div", {
25851
+ return /* @__PURE__ */ jsxDEV55("div", {
25809
25852
  className: classes,
25810
25853
  ...props
25811
25854
  }, undefined, false, undefined, this);
25812
25855
  }
25813
25856
  // src/stack/stack.tsx
25814
- import { jsxDEV as jsxDEV55 } from "react/jsx-dev-runtime";
25857
+ import { jsxDEV as jsxDEV56 } from "react/jsx-dev-runtime";
25815
25858
  function Stack({ children, className, top, bottom, start, end, ...props }) {
25816
25859
  const classes = clsx("stack", {
25817
25860
  "stack-top": top,
@@ -25819,16 +25862,16 @@ function Stack({ children, className, top, bottom, start, end, ...props }) {
25819
25862
  "stack-start": start,
25820
25863
  "stack-end": end
25821
25864
  }, className);
25822
- return /* @__PURE__ */ jsxDEV55("div", {
25865
+ return /* @__PURE__ */ jsxDEV56("div", {
25823
25866
  className: classes,
25824
25867
  ...props,
25825
25868
  children
25826
25869
  }, undefined, false, undefined, this);
25827
25870
  }
25828
25871
  // src/stat/stat.tsx
25829
- import { jsxDEV as jsxDEV56 } from "react/jsx-dev-runtime";
25872
+ import { jsxDEV as jsxDEV57 } from "react/jsx-dev-runtime";
25830
25873
  function Stats({ children, className, ...props }) {
25831
- return /* @__PURE__ */ jsxDEV56("div", {
25874
+ return /* @__PURE__ */ jsxDEV57("div", {
25832
25875
  className: clsx_default("stats", className),
25833
25876
  ...props,
25834
25877
  children
@@ -25837,7 +25880,7 @@ function Stats({ children, className, ...props }) {
25837
25880
  Stats.displayName = "Stats";
25838
25881
  function Stat({ children, className, ...props }) {
25839
25882
  const classes = clsx_default("stat", className);
25840
- return /* @__PURE__ */ jsxDEV56("div", {
25883
+ return /* @__PURE__ */ jsxDEV57("div", {
25841
25884
  className: classes,
25842
25885
  ...props,
25843
25886
  children
@@ -25846,7 +25889,7 @@ function Stat({ children, className, ...props }) {
25846
25889
  Stat.displayName = "Stat";
25847
25890
  function StatTitle({ children, className, ...props }) {
25848
25891
  const classes = clsx_default("stat-title", className);
25849
- return /* @__PURE__ */ jsxDEV56("div", {
25892
+ return /* @__PURE__ */ jsxDEV57("div", {
25850
25893
  className: classes,
25851
25894
  ...props,
25852
25895
  children
@@ -25855,7 +25898,7 @@ function StatTitle({ children, className, ...props }) {
25855
25898
  StatTitle.displayName = "StatTitle";
25856
25899
  function StatValue({ children, className, ...props }) {
25857
25900
  const classes = clsx_default("stat-value", className);
25858
- return /* @__PURE__ */ jsxDEV56("div", {
25901
+ return /* @__PURE__ */ jsxDEV57("div", {
25859
25902
  className: classes,
25860
25903
  ...props,
25861
25904
  children
@@ -25864,7 +25907,7 @@ function StatValue({ children, className, ...props }) {
25864
25907
  StatValue.displayName = "StatValue";
25865
25908
  function StatDesc({ children, className, ...props }) {
25866
25909
  const classes = clsx_default("stat-desc", className);
25867
- return /* @__PURE__ */ jsxDEV56("div", {
25910
+ return /* @__PURE__ */ jsxDEV57("div", {
25868
25911
  className: classes,
25869
25912
  ...props,
25870
25913
  children
@@ -25873,7 +25916,7 @@ function StatDesc({ children, className, ...props }) {
25873
25916
  StatDesc.displayName = "StatDesc";
25874
25917
  function StatFigure({ children, className, ...props }) {
25875
25918
  const classes = clsx_default("stat-figure", className);
25876
- return /* @__PURE__ */ jsxDEV56("div", {
25919
+ return /* @__PURE__ */ jsxDEV57("div", {
25877
25920
  className: classes,
25878
25921
  ...props,
25879
25922
  children
@@ -25881,7 +25924,7 @@ function StatFigure({ children, className, ...props }) {
25881
25924
  }
25882
25925
  StatFigure.displayName = "StatFigure";
25883
25926
  // src/status/status.tsx
25884
- import { jsxDEV as jsxDEV57 } from "react/jsx-dev-runtime";
25927
+ import { jsxDEV as jsxDEV58 } from "react/jsx-dev-runtime";
25885
25928
  function Status({ className, variant, size, ...props }) {
25886
25929
  const classes = clsx("status", {
25887
25930
  "status-neutral": variant === "neutral",
@@ -25898,15 +25941,15 @@ function Status({ className, variant, size, ...props }) {
25898
25941
  "status-lg": size === "lg",
25899
25942
  "status-xl": size === "xl"
25900
25943
  }, className);
25901
- return /* @__PURE__ */ jsxDEV57("span", {
25944
+ return /* @__PURE__ */ jsxDEV58("span", {
25902
25945
  className: classes,
25903
25946
  ...props
25904
25947
  }, undefined, false, undefined, this);
25905
25948
  }
25906
25949
  // src/steps/steps.tsx
25907
- import { jsxDEV as jsxDEV58 } from "react/jsx-dev-runtime";
25950
+ import { jsxDEV as jsxDEV59 } from "react/jsx-dev-runtime";
25908
25951
  function Steps({ children, className, ...props }) {
25909
- return /* @__PURE__ */ jsxDEV58("ul", {
25952
+ return /* @__PURE__ */ jsxDEV59("ul", {
25910
25953
  className: clsx_default("steps", className),
25911
25954
  ...props,
25912
25955
  children
@@ -25914,7 +25957,7 @@ function Steps({ children, className, ...props }) {
25914
25957
  }
25915
25958
  Steps.displayName = "Steps";
25916
25959
  function Step({ children, className, dataContent, ...props }) {
25917
- return /* @__PURE__ */ jsxDEV58("li", {
25960
+ return /* @__PURE__ */ jsxDEV59("li", {
25918
25961
  className: clsx_default("step", className),
25919
25962
  "data-content": dataContent,
25920
25963
  ...props,
@@ -25923,39 +25966,39 @@ function Step({ children, className, dataContent, ...props }) {
25923
25966
  }
25924
25967
  Step.displayName = "Step";
25925
25968
  // src/swap/swap.tsx
25926
- import { jsxDEV as jsxDEV59 } from "react/jsx-dev-runtime";
25969
+ import { jsxDEV as jsxDEV60 } from "react/jsx-dev-runtime";
25927
25970
  function Swap({ children, className, ...props }) {
25928
- return /* @__PURE__ */ jsxDEV59("label", {
25971
+ return /* @__PURE__ */ jsxDEV60("label", {
25929
25972
  className: clsx("swap", className),
25930
25973
  ...props,
25931
25974
  children
25932
25975
  }, undefined, false, undefined, this);
25933
25976
  }
25934
25977
  function SwapOn({ children, className, ...props }) {
25935
- return /* @__PURE__ */ jsxDEV59("div", {
25978
+ return /* @__PURE__ */ jsxDEV60("div", {
25936
25979
  className: clsx("swap-on", className),
25937
25980
  ...props,
25938
25981
  children
25939
25982
  }, undefined, false, undefined, this);
25940
25983
  }
25941
25984
  function SwapOff({ children, className, ...props }) {
25942
- return /* @__PURE__ */ jsxDEV59("div", {
25985
+ return /* @__PURE__ */ jsxDEV60("div", {
25943
25986
  className: clsx("swap-off", className),
25944
25987
  ...props,
25945
25988
  children
25946
25989
  }, undefined, false, undefined, this);
25947
25990
  }
25948
25991
  function SwapIndeterminate({ children, className, ...props }) {
25949
- return /* @__PURE__ */ jsxDEV59("div", {
25992
+ return /* @__PURE__ */ jsxDEV60("div", {
25950
25993
  className: clsx("swap-indeterminate", className),
25951
25994
  ...props,
25952
25995
  children
25953
25996
  }, undefined, false, undefined, this);
25954
25997
  }
25955
25998
  // src/tab/tab.tsx
25956
- import { jsxDEV as jsxDEV60 } from "react/jsx-dev-runtime";
25999
+ import { jsxDEV as jsxDEV61 } from "react/jsx-dev-runtime";
25957
26000
  function Tabs({ children, className, ...props }) {
25958
- return /* @__PURE__ */ jsxDEV60("div", {
26001
+ return /* @__PURE__ */ jsxDEV61("div", {
25959
26002
  role: "tablist",
25960
26003
  className: clsx("tabs", className),
25961
26004
  ...props,
@@ -25966,7 +26009,7 @@ function Tab({ children, className, disabled, ...props }) {
25966
26009
  const classes = clsx("tab", {
25967
26010
  "tab-disabled": disabled
25968
26011
  }, className);
25969
- return /* @__PURE__ */ jsxDEV60("button", {
26012
+ return /* @__PURE__ */ jsxDEV61("button", {
25970
26013
  role: "tab",
25971
26014
  className: classes,
25972
26015
  disabled,
@@ -25975,14 +26018,14 @@ function Tab({ children, className, disabled, ...props }) {
25975
26018
  }, undefined, false, undefined, this);
25976
26019
  }
25977
26020
  function TabContent({ children, className, ...props }) {
25978
- return /* @__PURE__ */ jsxDEV60("div", {
26021
+ return /* @__PURE__ */ jsxDEV61("div", {
25979
26022
  className: clsx("tab-content", className),
25980
26023
  ...props,
25981
26024
  children
25982
26025
  }, undefined, false, undefined, this);
25983
26026
  }
25984
26027
  // src/table/table.tsx
25985
- import { jsxDEV as jsxDEV61 } from "react/jsx-dev-runtime";
26028
+ import { jsxDEV as jsxDEV62 } from "react/jsx-dev-runtime";
25986
26029
  function Table({
25987
26030
  children,
25988
26031
  className,
@@ -25998,7 +26041,7 @@ function Table({
25998
26041
  "table-pin-rows": pinRows,
25999
26042
  "table-pin-cols": pinCols
26000
26043
  }, className);
26001
- return /* @__PURE__ */ jsxDEV61("table", {
26044
+ return /* @__PURE__ */ jsxDEV62("table", {
26002
26045
  className: classes,
26003
26046
  ...props,
26004
26047
  children
@@ -26006,9 +26049,9 @@ function Table({
26006
26049
  }
26007
26050
  Table.displayName = "Table";
26008
26051
  // src/textarea/textarea.tsx
26009
- import { jsxDEV as jsxDEV62 } from "react/jsx-dev-runtime";
26052
+ import { jsxDEV as jsxDEV63 } from "react/jsx-dev-runtime";
26010
26053
  function Textarea({ className, ref, ...props }) {
26011
- return /* @__PURE__ */ jsxDEV62("textarea", {
26054
+ return /* @__PURE__ */ jsxDEV63("textarea", {
26012
26055
  ref,
26013
26056
  className: clsx("textarea", className),
26014
26057
  ...props
@@ -26016,7 +26059,7 @@ function Textarea({ className, ref, ...props }) {
26016
26059
  }
26017
26060
  Textarea.displayName = "Textarea";
26018
26061
  // src/theme-controller/theme-controller.tsx
26019
- import { jsxDEV as jsxDEV63 } from "react/jsx-dev-runtime";
26062
+ import { jsxDEV as jsxDEV64 } from "react/jsx-dev-runtime";
26020
26063
  function ThemeController({
26021
26064
  className,
26022
26065
  theme,
@@ -26029,7 +26072,7 @@ function ThemeController({
26029
26072
  toggle: variant === "toggle",
26030
26073
  swap: variant === "swap"
26031
26074
  }, className);
26032
- return /* @__PURE__ */ jsxDEV63("input", {
26075
+ return /* @__PURE__ */ jsxDEV64("input", {
26033
26076
  ref,
26034
26077
  type: "checkbox",
26035
26078
  className: classes,
@@ -26039,9 +26082,9 @@ function ThemeController({
26039
26082
  }
26040
26083
  ThemeController.displayName = "ThemeController";
26041
26084
  // src/timeline/timeline.tsx
26042
- import { jsxDEV as jsxDEV64 } from "react/jsx-dev-runtime";
26085
+ import { jsxDEV as jsxDEV65 } from "react/jsx-dev-runtime";
26043
26086
  function Timeline({ children, className, ...props }) {
26044
- return /* @__PURE__ */ jsxDEV64("ul", {
26087
+ return /* @__PURE__ */ jsxDEV65("ul", {
26045
26088
  className: clsx_default("timeline", className),
26046
26089
  ...props,
26047
26090
  children
@@ -26049,7 +26092,7 @@ function Timeline({ children, className, ...props }) {
26049
26092
  }
26050
26093
  Timeline.displayName = "Timeline";
26051
26094
  function TimelineItem({ children, className, ...props }) {
26052
- return /* @__PURE__ */ jsxDEV64("li", {
26095
+ return /* @__PURE__ */ jsxDEV65("li", {
26053
26096
  className,
26054
26097
  ...props,
26055
26098
  children
@@ -26058,7 +26101,7 @@ function TimelineItem({ children, className, ...props }) {
26058
26101
  TimelineItem.displayName = "TimelineItem";
26059
26102
  function TimelineStart({ children, className, ...props }) {
26060
26103
  const classes = clsx_default("timeline-start", className);
26061
- return /* @__PURE__ */ jsxDEV64("div", {
26104
+ return /* @__PURE__ */ jsxDEV65("div", {
26062
26105
  className: classes,
26063
26106
  ...props,
26064
26107
  children
@@ -26067,7 +26110,7 @@ function TimelineStart({ children, className, ...props }) {
26067
26110
  TimelineStart.displayName = "TimelineStart";
26068
26111
  function TimelineMiddle({ children, className, ...props }) {
26069
26112
  const classes = clsx_default("timeline-middle", className);
26070
- return /* @__PURE__ */ jsxDEV64("div", {
26113
+ return /* @__PURE__ */ jsxDEV65("div", {
26071
26114
  className: classes,
26072
26115
  ...props,
26073
26116
  children
@@ -26076,7 +26119,7 @@ function TimelineMiddle({ children, className, ...props }) {
26076
26119
  TimelineMiddle.displayName = "TimelineMiddle";
26077
26120
  function TimelineEnd({ children, className, ...props }) {
26078
26121
  const classes = clsx_default("timeline-end", className);
26079
- return /* @__PURE__ */ jsxDEV64("div", {
26122
+ return /* @__PURE__ */ jsxDEV65("div", {
26080
26123
  className: classes,
26081
26124
  ...props,
26082
26125
  children
@@ -26085,7 +26128,7 @@ function TimelineEnd({ children, className, ...props }) {
26085
26128
  TimelineEnd.displayName = "TimelineEnd";
26086
26129
  function TimelineBox({ children, className, ...props }) {
26087
26130
  const classes = clsx_default("timeline-box", className);
26088
- return /* @__PURE__ */ jsxDEV64("div", {
26131
+ return /* @__PURE__ */ jsxDEV65("div", {
26089
26132
  className: classes,
26090
26133
  ...props,
26091
26134
  children
@@ -26093,18 +26136,18 @@ function TimelineBox({ children, className, ...props }) {
26093
26136
  }
26094
26137
  TimelineBox.displayName = "TimelineBox";
26095
26138
  // src/toast/toast.tsx
26096
- import { jsxDEV as jsxDEV65 } from "react/jsx-dev-runtime";
26139
+ import { jsxDEV as jsxDEV66 } from "react/jsx-dev-runtime";
26097
26140
  function Toast({ children, className, ...props }) {
26098
- return /* @__PURE__ */ jsxDEV65("div", {
26141
+ return /* @__PURE__ */ jsxDEV66("div", {
26099
26142
  className: clsx("toast", className),
26100
26143
  ...props,
26101
26144
  children
26102
26145
  }, undefined, false, undefined, this);
26103
26146
  }
26104
26147
  // src/toggle/toggle.tsx
26105
- import { jsxDEV as jsxDEV66 } from "react/jsx-dev-runtime";
26148
+ import { jsxDEV as jsxDEV67 } from "react/jsx-dev-runtime";
26106
26149
  function Toggle({ className, ref, ...props }) {
26107
- return /* @__PURE__ */ jsxDEV66("input", {
26150
+ return /* @__PURE__ */ jsxDEV67("input", {
26108
26151
  ref,
26109
26152
  type: "checkbox",
26110
26153
  className: clsx("toggle", className),
@@ -26113,9 +26156,9 @@ function Toggle({ className, ref, ...props }) {
26113
26156
  }
26114
26157
  Toggle.displayName = "Toggle";
26115
26158
  // src/tooltip/tooltip.tsx
26116
- import { jsxDEV as jsxDEV67 } from "react/jsx-dev-runtime";
26159
+ import { jsxDEV as jsxDEV68 } from "react/jsx-dev-runtime";
26117
26160
  function Tooltip({ children, className, tip, ...props }) {
26118
- return /* @__PURE__ */ jsxDEV67("div", {
26161
+ return /* @__PURE__ */ jsxDEV68("div", {
26119
26162
  className: clsx("tooltip", className),
26120
26163
  "data-tip": tip,
26121
26164
  ...props,
@@ -26123,14 +26166,14 @@ function Tooltip({ children, className, tip, ...props }) {
26123
26166
  }, undefined, false, undefined, this);
26124
26167
  }
26125
26168
  function TooltipContent({ children, className, ...props }) {
26126
- return /* @__PURE__ */ jsxDEV67("div", {
26169
+ return /* @__PURE__ */ jsxDEV68("div", {
26127
26170
  className: clsx("tooltip-content", className),
26128
26171
  ...props,
26129
26172
  children
26130
26173
  }, undefined, false, undefined, this);
26131
26174
  }
26132
26175
  // src/validator/validator.tsx
26133
- import { jsxDEV as jsxDEV68, Fragment as Fragment4 } from "react/jsx-dev-runtime";
26176
+ import { jsxDEV as jsxDEV69, Fragment as Fragment4 } from "react/jsx-dev-runtime";
26134
26177
  function Validator({
26135
26178
  className,
26136
26179
  variant,
@@ -26145,14 +26188,14 @@ function Validator({
26145
26188
  [`input-${size}`]: size,
26146
26189
  "input-ghost": ghost
26147
26190
  }, className);
26148
- return /* @__PURE__ */ jsxDEV68(Fragment4, {
26191
+ return /* @__PURE__ */ jsxDEV69(Fragment4, {
26149
26192
  children: [
26150
- /* @__PURE__ */ jsxDEV68("input", {
26193
+ /* @__PURE__ */ jsxDEV69("input", {
26151
26194
  ref,
26152
26195
  className: classes,
26153
26196
  ...props
26154
26197
  }, undefined, false, undefined, this),
26155
- hint && /* @__PURE__ */ jsxDEV68("p", {
26198
+ hint && /* @__PURE__ */ jsxDEV69("p", {
26156
26199
  className: "validator-hint",
26157
26200
  children: hint
26158
26201
  }, undefined, false, undefined, this)
@@ -26162,7 +26205,7 @@ function Validator({
26162
26205
  Validator.displayName = "Validator";
26163
26206
  function ValidatorHint({ children, className, ...props }) {
26164
26207
  const classes = clsx("validator-hint", className);
26165
- return /* @__PURE__ */ jsxDEV68("p", {
26208
+ return /* @__PURE__ */ jsxDEV69("p", {
26166
26209
  className: classes,
26167
26210
  ...props,
26168
26211
  children