@dereekb/date 13.6.11 → 13.6.13

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/index.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { MS_IN_HOUR, MS_IN_MINUTE, MINUTES_IN_DAY, isISO8601DateString, filterMaybeArrayValues, asArray, dayOfWeek, sortNumbersAscendingFunction, MS_IN_SECOND, SORT_VALUE_LESS_THAN, SORT_VALUE_GREATER_THAN, SORT_VALUE_EQUAL, copyArray, compareFnOrder, MS_IN_DAY, daysOfWeekArray, groupValues, DATE_NOW_VALUE, mapIdentityFunction, UTC_TIMEZONE_STRING, cachedGetter, isConsideredUtcTimezoneString, isSameNonNullValue, parseISO8601DayStringToUTCDate, repeatString, isEqualDate, startOfDayForUTCDateInUTC, minutesToFractionalHours, range, pushArrayItemsIntoArray, sumOfIntegersBetween, makeValuesGroupMap, lastValue, sortAscendingIndexNumberRefFunction, indexRangeCheckFunction, asGetter, mergeFilterFunctions, isDate as isDate$2, HOURS_IN_DAY, safeCompareEquality, getNextDay, iterablesAreSetEquivalent, daysOfWeekFromEnabledDays, forEachInIterable, enabledDaysFromDaysOfWeek, addToSet, invertFilter, firstValueFromIterable, replaceStringsFunction, HashSet, roundNumberUpToStep, protectedFactory, TimeAM, isLogicalDateStringCode as isLogicalDateStringCode$1, dateFromLogicalDate as dateFromLogicalDate$1, flattenArray, splitJoinRemainder } from '@dereekb/util';
1
+ import { MS_IN_HOUR, MS_IN_MINUTE, MINUTES_IN_DAY, isISO8601DateString, filterMaybeArrayValues, asArray, dayOfWeek, sortNumbersAscendingFunction, MS_IN_SECOND, SORT_VALUE_LESS_THAN, SORT_VALUE_GREATER_THAN, SORT_VALUE_EQUAL, copyArray, compareFnOrder, MS_IN_DAY, daysOfWeekArray, groupValues, DATE_NOW_VALUE, mapIdentityFunction, UTC_TIMEZONE_STRING, cachedGetter, isConsideredUtcTimezoneString, isSameNonNullValue, parseISO8601DayStringToUTCDate, repeatString, isEqualDate, startOfDayForUTCDateInUTC, minutesToFractionalHours, range, pushArrayItemsIntoArray, sumOfIntegersBetween, makeValuesGroupMap, lastValue, sortAscendingIndexNumberRefFunction, indexRangeCheckFunction, asGetter, mergeFilterFunctions, isDate as isDate$2, HOURS_IN_DAY, safeCompareEquality, getNextDay, iterablesAreSetEquivalent, daysOfWeekFromEnabledDays, forEachInIterable, enabledDaysFromDaysOfWeek, addToSet, invertFilter, firstValueFromIterable, MS_IN_WEEK, replaceStringsFunction, HashSet, roundNumberUpToStep, protectedFactory, TimeAM, isLogicalDateStringCode as isLogicalDateStringCode$1, dateFromLogicalDate as dateFromLogicalDate$1, flattenArray, splitJoinRemainder } from '@dereekb/util';
2
2
  export { dateFromDateOrTimeMillisecondsNumber, unixDateTimeSecondsNumberForNow, unixDateTimeSecondsNumberFromDate, unixDateTimeSecondsNumberFromDateOrTimeNumber, unixDateTimeSecondsNumberToDate } from '@dereekb/util';
3
3
  import { isEqual, isSameDay, isDate as isDate$1, startOfMinute, isValid, parseISO, min, max, isAfter as isAfter$1, isBefore as isBefore$1, set, addMilliseconds, startOfMonth, endOfWeek, startOfWeek, endOfMonth, addDays, addHours, addMinutes, differenceInDays, startOfDay, addMonths, addWeeks, endOfDay, startOfHour, endOfHour, endOfMinute, differenceInHours, millisecondsToHours, millisecondsToMinutes, formatDistanceStrict, formatDistance, formatDistanceToNow, format as format$1, differenceInMinutes, parse, differenceInMilliseconds, getMinutes, getSeconds, getMilliseconds, setWeek, getWeek, getYear, getDay, isPast, addSeconds } from 'date-fns';
4
4
  import { toZonedTime, format, formatInTimeZone } from 'date-fns-tz';
5
5
  import { type } from 'arktype';
6
6
  import { timeZonesNames } from '@vvo/tzdb';
7
- import { ARKTYPE_DATE_DTO_TYPE } from '@dereekb/model';
7
+ import { ARKTYPE_DATE_DTO_TYPE, clearable } from '@dereekb/model';
8
8
  import { interval, startWith, map, distinctUntilChanged } from 'rxjs';
9
9
  import { RRule } from 'rrule';
10
10
 
@@ -16,7 +16,7 @@ function _array_like_to_array$7(arr, len) {
16
16
  function _array_without_holes$4(arr) {
17
17
  if (Array.isArray(arr)) return _array_like_to_array$7(arr);
18
18
  }
19
- function _define_property$h(obj, key, value) {
19
+ function _define_property$i(obj, key, value) {
20
20
  if (key in obj) {
21
21
  Object.defineProperty(obj, key, {
22
22
  value: value,
@@ -35,7 +35,7 @@ function _iterable_to_array$4(iter) {
35
35
  function _non_iterable_spread$4() {
36
36
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
37
37
  }
38
- function _object_spread$e(target) {
38
+ function _object_spread$f(target) {
39
39
  for(var i = 1; i < arguments.length; i++){
40
40
  var source = arguments[i] != null ? arguments[i] : {};
41
41
  var ownKeys = Object.keys(source);
@@ -45,7 +45,7 @@ function _object_spread$e(target) {
45
45
  }));
46
46
  }
47
47
  ownKeys.forEach(function(key) {
48
- _define_property$h(target, key, source[key]);
48
+ _define_property$i(target, key, source[key]);
49
49
  });
50
50
  }
51
51
  return target;
@@ -387,7 +387,7 @@ function isSameDateDay(a, b) {
387
387
  * ```
388
388
  */ function copyHoursAndMinutesToDate(param, target) {
389
389
  var hours = param.hours, minutes = param.minutes, removeSeconds = param.removeSeconds, _param_roundDownToMinute = param.roundDownToMinute, roundDownToMinute = _param_roundDownToMinute === void 0 ? true : _param_roundDownToMinute;
390
- return set(target !== null && target !== void 0 ? target : new Date(), _object_spread$e({
390
+ return set(target !== null && target !== void 0 ? target : new Date(), _object_spread$f({
391
391
  hours: hours
392
392
  }, minutes != null ? {
393
393
  minutes: minutes
@@ -744,7 +744,7 @@ function _construct(Parent, args, Class) {
744
744
  }
745
745
  return _construct.apply(null, arguments);
746
746
  }
747
- function _define_property$g(obj, key, value) {
747
+ function _define_property$h(obj, key, value) {
748
748
  if (key in obj) {
749
749
  Object.defineProperty(obj, key, {
750
750
  value: value,
@@ -786,7 +786,7 @@ function _instanceof$2(left, right) {
786
786
  function _is_native_function(fn) {
787
787
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
788
788
  }
789
- function _object_spread$d(target) {
789
+ function _object_spread$e(target) {
790
790
  for(var i = 1; i < arguments.length; i++){
791
791
  var source = arguments[i] != null ? arguments[i] : {};
792
792
  var ownKeys = Object.keys(source);
@@ -796,12 +796,12 @@ function _object_spread$d(target) {
796
796
  }));
797
797
  }
798
798
  ownKeys.forEach(function(key) {
799
- _define_property$g(target, key, source[key]);
799
+ _define_property$h(target, key, source[key]);
800
800
  });
801
801
  }
802
802
  return target;
803
803
  }
804
- function ownKeys$a(object, enumerableOnly) {
804
+ function ownKeys$b(object, enumerableOnly) {
805
805
  var keys = Object.keys(object);
806
806
  if (Object.getOwnPropertySymbols) {
807
807
  var symbols = Object.getOwnPropertySymbols(object);
@@ -809,12 +809,12 @@ function ownKeys$a(object, enumerableOnly) {
809
809
  }
810
810
  return keys;
811
811
  }
812
- function _object_spread_props$a(target, source) {
812
+ function _object_spread_props$b(target, source) {
813
813
  source = source != null ? source : {};
814
814
  if (Object.getOwnPropertyDescriptors) {
815
815
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
816
816
  } else {
817
- ownKeys$a(Object(source)).forEach(function(key) {
817
+ ownKeys$b(Object(source)).forEach(function(key) {
818
818
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
819
819
  });
820
820
  }
@@ -1613,7 +1613,7 @@ var DEFAULT_EXPAND_DAYS_FOR_DATE_RANGE_MAX_EXPANSION_SIZE = 1500;
1613
1613
  newDistance = MS_IN_DAY;
1614
1614
  }
1615
1615
  var end = addMilliseconds(dateRange.start, newDistance);
1616
- return _object_spread_props$a(_object_spread$d({}, dateRange), {
1616
+ return _object_spread_props$b(_object_spread$e({}, dateRange), {
1617
1617
  start: dateRange.start,
1618
1618
  end: end
1619
1619
  });
@@ -1885,7 +1885,7 @@ function _create_class$7(Constructor, protoProps, staticProps) {
1885
1885
  if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
1886
1886
  return Constructor;
1887
1887
  }
1888
- function _define_property$f(obj, key, value) {
1888
+ function _define_property$g(obj, key, value) {
1889
1889
  if (key in obj) {
1890
1890
  Object.defineProperty(obj, key, {
1891
1891
  value: value,
@@ -2144,10 +2144,10 @@ function _type_of$6(obj) {
2144
2144
  var systemOffset = getCurrentSystemOffsetInMs(date);
2145
2145
  return -normalOffset + systemOffset;
2146
2146
  };
2147
- _define_property$f(this, "config", void 0);
2148
- _define_property$f(this, "hasConversion", void 0);
2149
- _define_property$f(this, "_getOffset", void 0);
2150
- _define_property$f(this, "_setOnDate", cachedGetter(function() {
2147
+ _define_property$g(this, "config", void 0);
2148
+ _define_property$g(this, "hasConversion", void 0);
2149
+ _define_property$g(this, "_getOffset", void 0);
2150
+ _define_property$g(this, "_setOnDate", cachedGetter(function() {
2151
2151
  return setOnDateWithTimezoneNormalFunction(_this);
2152
2152
  }));
2153
2153
  var getOffsetInMsFn;
@@ -2904,7 +2904,7 @@ function _type_of$6(obj) {
2904
2904
  });
2905
2905
  }
2906
2906
 
2907
- function _define_property$e(obj, key, value) {
2907
+ function _define_property$f(obj, key, value) {
2908
2908
  if (key in obj) {
2909
2909
  Object.defineProperty(obj, key, {
2910
2910
  value: value,
@@ -2917,7 +2917,7 @@ function _define_property$e(obj, key, value) {
2917
2917
  }
2918
2918
  return obj;
2919
2919
  }
2920
- function _object_spread$c(target) {
2920
+ function _object_spread$d(target) {
2921
2921
  for(var i = 1; i < arguments.length; i++){
2922
2922
  var source = arguments[i] != null ? arguments[i] : {};
2923
2923
  var ownKeys = Object.keys(source);
@@ -2927,7 +2927,7 @@ function _object_spread$c(target) {
2927
2927
  }));
2928
2928
  }
2929
2929
  ownKeys.forEach(function(key) {
2930
- _define_property$e(target, key, source[key]);
2930
+ _define_property$f(target, key, source[key]);
2931
2931
  });
2932
2932
  }
2933
2933
  return target;
@@ -2950,7 +2950,7 @@ function _object_spread$c(target) {
2950
2950
  */ function fitDateRangeToDayPeriodFunction(timezone) {
2951
2951
  var transformFn = transformDateRangeInTimezoneNormalFunction(timezone, 'baseDateToTargetDate');
2952
2952
  var fn = function fn(input) {
2953
- return _object_spread$c({}, input, transformFn(input, fitUTCDateRangeToDayPeriod));
2953
+ return _object_spread$d({}, input, transformFn(input, fitUTCDateRangeToDayPeriod));
2954
2954
  };
2955
2955
  fn._timezoneInstance = transformFn._timezoneInstance;
2956
2956
  return fn;
@@ -3500,7 +3500,7 @@ var dateShortDateAndTimeStringFormat = DATE_SHORT_DATE_AND_TIME_STRING_FORMAT;
3500
3500
  return startOfDay(result);
3501
3501
  }
3502
3502
 
3503
- function _define_property$d(obj, key, value) {
3503
+ function _define_property$e(obj, key, value) {
3504
3504
  if (key in obj) {
3505
3505
  Object.defineProperty(obj, key, {
3506
3506
  value: value,
@@ -3513,7 +3513,7 @@ function _define_property$d(obj, key, value) {
3513
3513
  }
3514
3514
  return obj;
3515
3515
  }
3516
- function _object_spread$b(target) {
3516
+ function _object_spread$c(target) {
3517
3517
  for(var i = 1; i < arguments.length; i++){
3518
3518
  var source = arguments[i] != null ? arguments[i] : {};
3519
3519
  var ownKeys = Object.keys(source);
@@ -3523,12 +3523,12 @@ function _object_spread$b(target) {
3523
3523
  }));
3524
3524
  }
3525
3525
  ownKeys.forEach(function(key) {
3526
- _define_property$d(target, key, source[key]);
3526
+ _define_property$e(target, key, source[key]);
3527
3527
  });
3528
3528
  }
3529
3529
  return target;
3530
3530
  }
3531
- function ownKeys$9(object, enumerableOnly) {
3531
+ function ownKeys$a(object, enumerableOnly) {
3532
3532
  var keys = Object.keys(object);
3533
3533
  if (Object.getOwnPropertySymbols) {
3534
3534
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3536,12 +3536,12 @@ function ownKeys$9(object, enumerableOnly) {
3536
3536
  }
3537
3537
  return keys;
3538
3538
  }
3539
- function _object_spread_props$9(target, source) {
3539
+ function _object_spread_props$a(target, source) {
3540
3540
  source = source != null ? source : {};
3541
3541
  if (Object.getOwnPropertyDescriptors) {
3542
3542
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3543
3543
  } else {
3544
- ownKeys$9(Object(source)).forEach(function(key) {
3544
+ ownKeys$a(Object(source)).forEach(function(key) {
3545
3545
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3546
3546
  });
3547
3547
  }
@@ -3917,7 +3917,7 @@ function _type_of$5(obj) {
3917
3917
  */ function updateDateCellTimingToTimezoneFunction(timezone) {
3918
3918
  var fn = function fn(timing) {
3919
3919
  var startsAt = timing.startsAt;
3920
- var newTiming = _object_spread_props$9(_object_spread$b({}, timing), {
3920
+ var newTiming = _object_spread_props$a(_object_spread$c({}, timing), {
3921
3921
  start: dateCellTimingStart({
3922
3922
  startsAt: startsAt,
3923
3923
  timezone: timezone
@@ -3973,7 +3973,7 @@ function _type_of$5(obj) {
3973
3973
  var endNormal = inputTimingNormalInstance.baseDateToTargetDate(timing.end);
3974
3974
  var startsAt = normalInstance.targetDateToBaseDate(startsAtNormal);
3975
3975
  var end = normalInstance.targetDateToBaseDate(endNormal);
3976
- var newTiming = _object_spread_props$9(_object_spread$b({}, timing), {
3976
+ var newTiming = _object_spread_props$a(_object_spread$c({}, timing), {
3977
3977
  start: dateCellTimingStart({
3978
3978
  startsAt: startsAt,
3979
3979
  timezone: timezone
@@ -4195,7 +4195,7 @@ function _array_like_to_array$6(arr, len) {
4195
4195
  function _array_without_holes$3(arr) {
4196
4196
  if (Array.isArray(arr)) return _array_like_to_array$6(arr);
4197
4197
  }
4198
- function _define_property$c(obj, key, value) {
4198
+ function _define_property$d(obj, key, value) {
4199
4199
  if (key in obj) {
4200
4200
  Object.defineProperty(obj, key, {
4201
4201
  value: value,
@@ -4214,7 +4214,7 @@ function _iterable_to_array$3(iter) {
4214
4214
  function _non_iterable_spread$3() {
4215
4215
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4216
4216
  }
4217
- function _object_spread$a(target) {
4217
+ function _object_spread$b(target) {
4218
4218
  for(var i = 1; i < arguments.length; i++){
4219
4219
  var source = arguments[i] != null ? arguments[i] : {};
4220
4220
  var ownKeys = Object.keys(source);
@@ -4224,12 +4224,12 @@ function _object_spread$a(target) {
4224
4224
  }));
4225
4225
  }
4226
4226
  ownKeys.forEach(function(key) {
4227
- _define_property$c(target, key, source[key]);
4227
+ _define_property$d(target, key, source[key]);
4228
4228
  });
4229
4229
  }
4230
4230
  return target;
4231
4231
  }
4232
- function ownKeys$8(object, enumerableOnly) {
4232
+ function ownKeys$9(object, enumerableOnly) {
4233
4233
  var keys = Object.keys(object);
4234
4234
  if (Object.getOwnPropertySymbols) {
4235
4235
  var symbols = Object.getOwnPropertySymbols(object);
@@ -4237,12 +4237,12 @@ function ownKeys$8(object, enumerableOnly) {
4237
4237
  }
4238
4238
  return keys;
4239
4239
  }
4240
- function _object_spread_props$8(target, source) {
4240
+ function _object_spread_props$9(target, source) {
4241
4241
  source = source != null ? source : {};
4242
4242
  if (Object.getOwnPropertyDescriptors) {
4243
4243
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4244
4244
  } else {
4245
- ownKeys$8(Object(source)).forEach(function(key) {
4245
+ ownKeys$9(Object(source)).forEach(function(key) {
4246
4246
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4247
4247
  });
4248
4248
  }
@@ -4774,7 +4774,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
4774
4774
  * ```
4775
4775
  */ function expandDateCellRange(block) {
4776
4776
  return range(block.i, dateCellEndIndex(block) + 1).map(function(i) {
4777
- return _object_spread_props$8(_object_spread$a({}, block), {
4777
+ return _object_spread_props$9(_object_spread$b({}, block), {
4778
4778
  i: i,
4779
4779
  to: i
4780
4780
  }); // copy block, set to as i
@@ -4861,7 +4861,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
4861
4861
  var to = Math.min(inputTo, maxAllowedIndex) || 0;
4862
4862
  var block = null;
4863
4863
  if (inputBlock != null) {
4864
- block = _object_spread_props$8(_object_spread$a({}, inputBlock), {
4864
+ block = _object_spread_props$9(_object_spread$b({}, inputBlock), {
4865
4865
  i: i,
4866
4866
  to: to
4867
4867
  });
@@ -4995,7 +4995,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
4995
4995
  // add current
4996
4996
  addBlockWithRange(current.block, currentNextIndex, currentEndIndex);
4997
4997
  // change next to start at the next range
4998
- continueToNext(_object_spread_props$8(_object_spread$a({}, next.block), {
4998
+ continueToNext(_object_spread_props$9(_object_spread$b({}, next.block), {
4999
4999
  i: currentEndIndex + 1,
5000
5000
  to: nextEndIndex
5001
5001
  }), next.priority);
@@ -5015,7 +5015,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
5015
5015
  // add the next item first since it overwrites the current
5016
5016
  addBlockWithRange(next.block, nextStartIndex, nextEndIndex);
5017
5017
  // continue with the current item as next.
5018
- continueToNext(_object_spread_props$8(_object_spread$a({}, current.block), {
5018
+ continueToNext(_object_spread_props$9(_object_spread$b({}, current.block), {
5019
5019
  i: nextEndIndex + 1,
5020
5020
  to: currentEndIndex
5021
5021
  }), current.priority);
@@ -5030,7 +5030,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
5030
5030
  addBlockWithRange(current.block, currentNextIndex, currentEndIndex);
5031
5031
  if (nextEndIndex > currentEndIndex) {
5032
5032
  // change next to start at the next range
5033
- continueToNext(_object_spread_props$8(_object_spread$a({}, next.block), {
5033
+ continueToNext(_object_spread_props$9(_object_spread$b({}, next.block), {
5034
5034
  i: currentEndIndex + 1,
5035
5035
  to: nextEndIndex
5036
5036
  }), next.priority);
@@ -5046,7 +5046,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
5046
5046
  // add the next
5047
5047
  addBlockWithRange(next.block, nextStartIndex, nextEndIndex);
5048
5048
  // continue with the current
5049
- continueToNext(_object_spread_props$8(_object_spread$a({}, current.block), {
5049
+ continueToNext(_object_spread_props$9(_object_spread$b({}, current.block), {
5050
5050
  i: nextEndIndex + 1,
5051
5051
  to: currentEndIndex
5052
5052
  }), next.priority);
@@ -5086,7 +5086,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
5086
5086
  };
5087
5087
  }
5088
5088
 
5089
- function _define_property$b(obj, key, value) {
5089
+ function _define_property$c(obj, key, value) {
5090
5090
  if (key in obj) {
5091
5091
  Object.defineProperty(obj, key, {
5092
5092
  value: value,
@@ -5099,7 +5099,7 @@ function _define_property$b(obj, key, value) {
5099
5099
  }
5100
5100
  return obj;
5101
5101
  }
5102
- function _object_spread$9(target) {
5102
+ function _object_spread$a(target) {
5103
5103
  for(var i = 1; i < arguments.length; i++){
5104
5104
  var source = arguments[i] != null ? arguments[i] : {};
5105
5105
  var ownKeys = Object.keys(source);
@@ -5109,12 +5109,12 @@ function _object_spread$9(target) {
5109
5109
  }));
5110
5110
  }
5111
5111
  ownKeys.forEach(function(key) {
5112
- _define_property$b(target, key, source[key]);
5112
+ _define_property$c(target, key, source[key]);
5113
5113
  });
5114
5114
  }
5115
5115
  return target;
5116
5116
  }
5117
- function ownKeys$7(object, enumerableOnly) {
5117
+ function ownKeys$8(object, enumerableOnly) {
5118
5118
  var keys = Object.keys(object);
5119
5119
  if (Object.getOwnPropertySymbols) {
5120
5120
  var symbols = Object.getOwnPropertySymbols(object);
@@ -5122,12 +5122,12 @@ function ownKeys$7(object, enumerableOnly) {
5122
5122
  }
5123
5123
  return keys;
5124
5124
  }
5125
- function _object_spread_props$7(target, source) {
5125
+ function _object_spread_props$8(target, source) {
5126
5126
  source = source != null ? source : {};
5127
5127
  if (Object.getOwnPropertyDescriptors) {
5128
5128
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
5129
5129
  } else {
5130
- ownKeys$7(Object(source)).forEach(function(key) {
5130
+ ownKeys$8(Object(source)).forEach(function(key) {
5131
5131
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5132
5132
  });
5133
5133
  }
@@ -5392,7 +5392,7 @@ function _type_of$3(obj) {
5392
5392
  blocksEvaluated += 1;
5393
5393
  if (filter(block, blockIndex)) {
5394
5394
  var startsAt = startsAtFactory(block.i);
5395
- var durationSpan = _object_spread_props$7(_object_spread$9({}, block), {
5395
+ var durationSpan = _object_spread_props$8(_object_spread$a({}, block), {
5396
5396
  startsAt: startsAt,
5397
5397
  duration: duration
5398
5398
  });
@@ -5413,7 +5413,7 @@ function _type_of$3(obj) {
5413
5413
  if (dateCellRangeHasRange(block)) {
5414
5414
  // Expands the block's range as if it is at a single index
5415
5415
  range(block.i, block.to + 1).findIndex(function(i) {
5416
- var blockAtIndex = _object_spread_props$7(_object_spread$9({}, block), {
5416
+ var blockAtIndex = _object_spread_props$8(_object_spread$a({}, block), {
5417
5417
  i: i,
5418
5418
  to: i
5419
5419
  }); // copy block, set to as i
@@ -5993,7 +5993,7 @@ function isSameDurationSpan(a, b) {
5993
5993
  });
5994
5994
  }
5995
5995
 
5996
- function _define_property$a(obj, key, value) {
5996
+ function _define_property$b(obj, key, value) {
5997
5997
  if (key in obj) {
5998
5998
  Object.defineProperty(obj, key, {
5999
5999
  value: value,
@@ -6006,7 +6006,7 @@ function _define_property$a(obj, key, value) {
6006
6006
  }
6007
6007
  return obj;
6008
6008
  }
6009
- function _object_spread$8(target) {
6009
+ function _object_spread$9(target) {
6010
6010
  for(var i = 1; i < arguments.length; i++){
6011
6011
  var source = arguments[i] != null ? arguments[i] : {};
6012
6012
  var ownKeys = Object.keys(source);
@@ -6016,12 +6016,12 @@ function _object_spread$8(target) {
6016
6016
  }));
6017
6017
  }
6018
6018
  ownKeys.forEach(function(key) {
6019
- _define_property$a(target, key, source[key]);
6019
+ _define_property$b(target, key, source[key]);
6020
6020
  });
6021
6021
  }
6022
6022
  return target;
6023
6023
  }
6024
- function ownKeys$6(object, enumerableOnly) {
6024
+ function ownKeys$7(object, enumerableOnly) {
6025
6025
  var keys = Object.keys(object);
6026
6026
  if (Object.getOwnPropertySymbols) {
6027
6027
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6029,12 +6029,12 @@ function ownKeys$6(object, enumerableOnly) {
6029
6029
  }
6030
6030
  return keys;
6031
6031
  }
6032
- function _object_spread_props$6(target, source) {
6032
+ function _object_spread_props$7(target, source) {
6033
6033
  source = source != null ? source : {};
6034
6034
  if (Object.getOwnPropertyDescriptors) {
6035
6035
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6036
6036
  } else {
6037
- ownKeys$6(Object(source)).forEach(function(key) {
6037
+ ownKeys$7(Object(source)).forEach(function(key) {
6038
6038
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6039
6039
  });
6040
6040
  }
@@ -6151,7 +6151,7 @@ function _object_spread_props$6(target, source) {
6151
6151
  var asRange = dateCellRangeWithRange(x);
6152
6152
  var rangesOverlap = overlapsRange(asRange);
6153
6153
  if (rangesOverlap) {
6154
- result = _object_spread_props$6(_object_spread$8({}, x), {
6154
+ result = _object_spread_props$7(_object_spread$9({}, x), {
6155
6155
  i: Math.max(i, asRange.i),
6156
6156
  to: Math.min(to, asRange.to) // should be no larger than to
6157
6157
  });
@@ -6608,7 +6608,7 @@ function _array_like_to_array$4(arr, len) {
6608
6608
  function _array_without_holes$2(arr) {
6609
6609
  if (Array.isArray(arr)) return _array_like_to_array$4(arr);
6610
6610
  }
6611
- function _define_property$9(obj, key, value) {
6611
+ function _define_property$a(obj, key, value) {
6612
6612
  if (key in obj) {
6613
6613
  Object.defineProperty(obj, key, {
6614
6614
  value: value,
@@ -6627,7 +6627,7 @@ function _iterable_to_array$2(iter) {
6627
6627
  function _non_iterable_spread$2() {
6628
6628
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6629
6629
  }
6630
- function _object_spread$7(target) {
6630
+ function _object_spread$8(target) {
6631
6631
  for(var i = 1; i < arguments.length; i++){
6632
6632
  var source = arguments[i] != null ? arguments[i] : {};
6633
6633
  var ownKeys = Object.keys(source);
@@ -6637,12 +6637,12 @@ function _object_spread$7(target) {
6637
6637
  }));
6638
6638
  }
6639
6639
  ownKeys.forEach(function(key) {
6640
- _define_property$9(target, key, source[key]);
6640
+ _define_property$a(target, key, source[key]);
6641
6641
  });
6642
6642
  }
6643
6643
  return target;
6644
6644
  }
6645
- function ownKeys$5(object, enumerableOnly) {
6645
+ function ownKeys$6(object, enumerableOnly) {
6646
6646
  var keys = Object.keys(object);
6647
6647
  if (Object.getOwnPropertySymbols) {
6648
6648
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6650,12 +6650,12 @@ function ownKeys$5(object, enumerableOnly) {
6650
6650
  }
6651
6651
  return keys;
6652
6652
  }
6653
- function _object_spread_props$5(target, source) {
6653
+ function _object_spread_props$6(target, source) {
6654
6654
  source = source != null ? source : {};
6655
6655
  if (Object.getOwnPropertyDescriptors) {
6656
6656
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6657
6657
  } else {
6658
- ownKeys$5(Object(source)).forEach(function(key) {
6658
+ ownKeys$6(Object(source)).forEach(function(key) {
6659
6659
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6660
6660
  });
6661
6661
  }
@@ -7450,7 +7450,7 @@ var DATE_CELL_SCHEDULE_ENCODED_WEEK_REGEX = /^[0-9]{0,9}$/;
7450
7450
  startsAtTime: startsAtTime,
7451
7451
  updateWithDefaults: true
7452
7452
  });
7453
- return expandDateCellSchedule(_object_spread_props$5(_object_spread$7({}, input), {
7453
+ return expandDateCellSchedule(_object_spread_props$6(_object_spread$8({}, input), {
7454
7454
  schedule: fullDateRange,
7455
7455
  timing: fullDateRange
7456
7456
  }));
@@ -7486,7 +7486,7 @@ var DATE_CELL_SCHEDULE_ENCODED_WEEK_REGEX = /^[0-9]{0,9}$/;
7486
7486
  });
7487
7487
  }
7488
7488
 
7489
- function _define_property$8(obj, key, value) {
7489
+ function _define_property$9(obj, key, value) {
7490
7490
  if (key in obj) {
7491
7491
  Object.defineProperty(obj, key, {
7492
7492
  value: value,
@@ -7499,7 +7499,7 @@ function _define_property$8(obj, key, value) {
7499
7499
  }
7500
7500
  return obj;
7501
7501
  }
7502
- function _object_spread$6(target) {
7502
+ function _object_spread$7(target) {
7503
7503
  for(var i = 1; i < arguments.length; i++){
7504
7504
  var source = arguments[i] != null ? arguments[i] : {};
7505
7505
  var ownKeys = Object.keys(source);
@@ -7509,7 +7509,7 @@ function _object_spread$6(target) {
7509
7509
  }));
7510
7510
  }
7511
7511
  ownKeys.forEach(function(key) {
7512
- _define_property$8(target, key, source[key]);
7512
+ _define_property$9(target, key, source[key]);
7513
7513
  });
7514
7514
  }
7515
7515
  return target;
@@ -7591,11 +7591,439 @@ function _object_spread$6(target) {
7591
7591
  * // event.type === CalendarDateType.TIME
7592
7592
  * ```
7593
7593
  */ function calendarDateForDateDurationSpan(dateDurationSpan) {
7594
- return _object_spread$6({
7594
+ return _object_spread$7({
7595
7595
  type: CalendarDateType.TIME
7596
7596
  }, dateDurationSpan);
7597
7597
  }
7598
7598
 
7599
+ function _define_property$8(obj, key, value) {
7600
+ if (key in obj) {
7601
+ Object.defineProperty(obj, key, {
7602
+ value: value,
7603
+ enumerable: true,
7604
+ configurable: true,
7605
+ writable: true
7606
+ });
7607
+ } else {
7608
+ obj[key] = value;
7609
+ }
7610
+ return obj;
7611
+ }
7612
+ function _object_spread$6(target) {
7613
+ for(var i = 1; i < arguments.length; i++){
7614
+ var source = arguments[i] != null ? arguments[i] : {};
7615
+ var ownKeys = Object.keys(source);
7616
+ if (typeof Object.getOwnPropertySymbols === "function") {
7617
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
7618
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
7619
+ }));
7620
+ }
7621
+ ownKeys.forEach(function(key) {
7622
+ _define_property$8(target, key, source[key]);
7623
+ });
7624
+ }
7625
+ return target;
7626
+ }
7627
+ function ownKeys$5(object, enumerableOnly) {
7628
+ var keys = Object.keys(object);
7629
+ if (Object.getOwnPropertySymbols) {
7630
+ var symbols = Object.getOwnPropertySymbols(object);
7631
+ keys.push.apply(keys, symbols);
7632
+ }
7633
+ return keys;
7634
+ }
7635
+ function _object_spread_props$5(target, source) {
7636
+ source = source != null ? source : {};
7637
+ if (Object.getOwnPropertyDescriptors) {
7638
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7639
+ } else {
7640
+ ownKeys$5(Object(source)).forEach(function(key) {
7641
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7642
+ });
7643
+ }
7644
+ return target;
7645
+ }
7646
+ /**
7647
+ * Returns true if the input TimeDurationData has no meaningful values (all zero or undefined).
7648
+ *
7649
+ * @param data - The duration data to check
7650
+ * @returns True if empty
7651
+ *
7652
+ * @example
7653
+ * ```typescript
7654
+ * timeDurationDataIsEmpty({}); // true
7655
+ * timeDurationDataIsEmpty({ hours: 0, minutes: 0 }); // true
7656
+ * timeDurationDataIsEmpty({ hours: 1 }); // false
7657
+ * ```
7658
+ */ function timeDurationDataIsEmpty(data) {
7659
+ return !data.weeks && !data.days && !data.hours && !data.minutes && !data.seconds && !data.milliseconds;
7660
+ }
7661
+ // MARK: Conversion
7662
+ /**
7663
+ * Converts a TimeDurationData to total milliseconds by summing all fields.
7664
+ *
7665
+ * @param data - The duration data to convert
7666
+ * @returns Total milliseconds
7667
+ *
7668
+ * @example
7669
+ * ```typescript
7670
+ * durationDataToMilliseconds({ hours: 1, minutes: 30 }); // 5400000
7671
+ * durationDataToMilliseconds({ days: 1, hours: 2 }); // 93600000
7672
+ * ```
7673
+ */ function durationDataToMilliseconds(data) {
7674
+ var ms = 0;
7675
+ if (data.weeks) ms += data.weeks * MS_IN_WEEK;
7676
+ if (data.days) ms += data.days * MS_IN_DAY;
7677
+ if (data.hours) ms += data.hours * MS_IN_HOUR;
7678
+ if (data.minutes) ms += data.minutes * MS_IN_MINUTE;
7679
+ if (data.seconds) ms += data.seconds * MS_IN_SECOND;
7680
+ if (data.milliseconds) ms += data.milliseconds;
7681
+ return ms;
7682
+ }
7683
+ /**
7684
+ * Maps a TimeUnit to the corresponding field name in TimeDurationData.
7685
+ */ var TIME_UNIT_TO_FIELD_MAP = {
7686
+ w: 'weeks',
7687
+ d: 'days',
7688
+ h: 'hours',
7689
+ min: 'minutes',
7690
+ s: 'seconds',
7691
+ ms: 'milliseconds'
7692
+ };
7693
+ /**
7694
+ * The default units used for decomposition (largest to smallest, excluding ms and weeks).
7695
+ */ var DEFAULT_DECOMPOSE_UNITS = [
7696
+ 'd',
7697
+ 'h',
7698
+ 'min',
7699
+ 's'
7700
+ ];
7701
+ /**
7702
+ * The millisecond values for decomposition, ordered largest to smallest.
7703
+ */ var UNIT_MS_VALUES = [
7704
+ {
7705
+ unit: 'w',
7706
+ ms: MS_IN_WEEK
7707
+ },
7708
+ {
7709
+ unit: 'd',
7710
+ ms: MS_IN_DAY
7711
+ },
7712
+ {
7713
+ unit: 'h',
7714
+ ms: MS_IN_HOUR
7715
+ },
7716
+ {
7717
+ unit: 'min',
7718
+ ms: MS_IN_MINUTE
7719
+ },
7720
+ {
7721
+ unit: 's',
7722
+ ms: MS_IN_SECOND
7723
+ },
7724
+ {
7725
+ unit: 'ms',
7726
+ ms: 1
7727
+ }
7728
+ ];
7729
+ /**
7730
+ * Decomposes milliseconds into a TimeDurationData object using the specified units.
7731
+ *
7732
+ * Breaks down from largest to smallest unit, only using units in the provided list.
7733
+ *
7734
+ * @param ms - The total milliseconds to decompose
7735
+ * @param units - Which units to decompose into (defaults to days, hours, minutes, seconds)
7736
+ * @returns A TimeDurationData with the decomposed values
7737
+ *
7738
+ * @example
7739
+ * ```typescript
7740
+ * millisecondsToDurationData(5400000); // { days: 0, hours: 1, minutes: 30, seconds: 0 }
7741
+ * millisecondsToDurationData(90000, ['min', 's']); // { minutes: 1, seconds: 30 }
7742
+ * ```
7743
+ */ function millisecondsToDurationData(ms, units) {
7744
+ var allowedUnits = new Set(units !== null && units !== void 0 ? units : DEFAULT_DECOMPOSE_UNITS);
7745
+ var result = {};
7746
+ var remaining = Math.abs(ms);
7747
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
7748
+ try {
7749
+ for(var _iterator = UNIT_MS_VALUES[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
7750
+ var _step_value = _step.value, unit = _step_value.unit, unitMs = _step_value.ms;
7751
+ if (allowedUnits.has(unit)) {
7752
+ var fieldName = TIME_UNIT_TO_FIELD_MAP[unit];
7753
+ var value = Math.floor(remaining / unitMs);
7754
+ result[fieldName] = value;
7755
+ remaining -= value * unitMs;
7756
+ }
7757
+ }
7758
+ } catch (err) {
7759
+ _didIteratorError = true;
7760
+ _iteratorError = err;
7761
+ } finally{
7762
+ try {
7763
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
7764
+ _iterator.return();
7765
+ }
7766
+ } finally{
7767
+ if (_didIteratorError) {
7768
+ throw _iteratorError;
7769
+ }
7770
+ }
7771
+ }
7772
+ return result;
7773
+ }
7774
+ /**
7775
+ * Reads a specific time unit value from a TimeDurationData object.
7776
+ *
7777
+ * @param data - The duration data
7778
+ * @param unit - The time unit to read
7779
+ * @returns The value for that unit, or 0 if not set
7780
+ */ function getDurationDataValue(data, unit) {
7781
+ var _data_TIME_UNIT_TO_FIELD_MAP_unit;
7782
+ return (_data_TIME_UNIT_TO_FIELD_MAP_unit = data[TIME_UNIT_TO_FIELD_MAP[unit]]) !== null && _data_TIME_UNIT_TO_FIELD_MAP_unit !== void 0 ? _data_TIME_UNIT_TO_FIELD_MAP_unit : 0;
7783
+ }
7784
+ /**
7785
+ * Returns a new TimeDurationData with the specified unit set to the given value.
7786
+ *
7787
+ * @param data - The original duration data
7788
+ * @param unit - The time unit to set
7789
+ * @param value - The new value
7790
+ * @returns A new TimeDurationData with the updated value
7791
+ */ function setDurationDataValue(data, unit, value) {
7792
+ return _object_spread_props$5(_object_spread$6({}, data), _define_property$8({}, TIME_UNIT_TO_FIELD_MAP[unit], value));
7793
+ }
7794
+ // MARK: Parsing
7795
+ /**
7796
+ * Regex for matching duration components in a string.
7797
+ *
7798
+ * Matches patterns like "3d", "10 hours", "5min", "8 sec", "500ms", "2w", etc.
7799
+ */ var DURATION_COMPONENT_REGEX = /(\d+(?:\.\d+)?)\s*(w|wk|weeks?|d|days?|h|hr|hours?|m(?!s)|min|minutes?|s|sec|seconds?|ms|milliseconds?)/gi;
7800
+ /**
7801
+ * Maps parsed unit strings to their canonical TimeUnit value.
7802
+ */ function normalizeUnitString(unitStr) {
7803
+ var lower = unitStr.toLowerCase();
7804
+ if (lower === 'ms' || lower === 'milliseconds' || lower === 'millisecond') {
7805
+ return 'ms';
7806
+ }
7807
+ if (lower === 's' || lower === 'sec' || lower === 'second' || lower === 'seconds') {
7808
+ return 's';
7809
+ }
7810
+ if (lower === 'm' || lower === 'min' || lower === 'minute' || lower === 'minutes') {
7811
+ return 'min';
7812
+ }
7813
+ if (lower === 'h' || lower === 'hr' || lower === 'hour' || lower === 'hours') {
7814
+ return 'h';
7815
+ }
7816
+ if (lower === 'd' || lower === 'day' || lower === 'days') {
7817
+ return 'd';
7818
+ }
7819
+ if (lower === 'w' || lower === 'wk' || lower === 'week' || lower === 'weeks') {
7820
+ return 'w';
7821
+ }
7822
+ return 'ms';
7823
+ }
7824
+ /**
7825
+ * Parses a human-readable duration string into a TimeDurationData object.
7826
+ *
7827
+ * Supports compact formats ("3d10h5m8s"), spaced formats ("3d 10h 5m 8s"),
7828
+ * and long formats ("3 days 10 hours 5 minutes 8 seconds"). Mixed formats
7829
+ * are also supported. If the same unit appears multiple times, values are summed.
7830
+ *
7831
+ * If the string contains only a number with no unit, it is treated as the
7832
+ * smallest unit that would make sense (milliseconds by default).
7833
+ *
7834
+ * @param input - The duration string to parse
7835
+ * @returns A TimeDurationData object with the parsed values
7836
+ *
7837
+ * @example
7838
+ * ```typescript
7839
+ * parseDurationString('3d10h5m8s'); // { days: 3, hours: 10, minutes: 5, seconds: 8 }
7840
+ * parseDurationString('2 hours 30 minutes'); // { hours: 2, minutes: 30 }
7841
+ * parseDurationString('1w 2d'); // { weeks: 1, days: 2 }
7842
+ * parseDurationString('500ms'); // { milliseconds: 500 }
7843
+ * ```
7844
+ */ function parseDurationString(input) {
7845
+ var result = {};
7846
+ var match;
7847
+ var hasMatches = false;
7848
+ // Reset regex lastIndex for global regex
7849
+ DURATION_COMPONENT_REGEX.lastIndex = 0;
7850
+ while((match = DURATION_COMPONENT_REGEX.exec(input)) !== null){
7851
+ var _result_fieldName;
7852
+ hasMatches = true;
7853
+ var amount = parseFloat(match[1]);
7854
+ var unit = normalizeUnitString(match[2]);
7855
+ var fieldName = TIME_UNIT_TO_FIELD_MAP[unit];
7856
+ // Sum if the same unit appears multiple times
7857
+ result[fieldName] = ((_result_fieldName = result[fieldName]) !== null && _result_fieldName !== void 0 ? _result_fieldName : 0) + amount;
7858
+ }
7859
+ // If no matches but the input is a plain number, treat as milliseconds
7860
+ if (!hasMatches) {
7861
+ var trimmed = input.trim();
7862
+ var asNumber = parseFloat(trimmed);
7863
+ if (!isNaN(asNumber)) {
7864
+ result['milliseconds'] = asNumber;
7865
+ }
7866
+ }
7867
+ return result;
7868
+ }
7869
+ /**
7870
+ * Parses a duration string directly to milliseconds.
7871
+ *
7872
+ * @param input - The duration string to parse
7873
+ * @returns Total milliseconds
7874
+ *
7875
+ * @example
7876
+ * ```typescript
7877
+ * parseDurationStringToMilliseconds('1h30m'); // 5400000
7878
+ * ```
7879
+ */ function parseDurationStringToMilliseconds(input) {
7880
+ return durationDataToMilliseconds(parseDurationString(input));
7881
+ }
7882
+ // MARK: Formatting
7883
+ /**
7884
+ * Compact format labels for each unit used in formatted strings.
7885
+ */ var COMPACT_UNIT_LABELS = [
7886
+ {
7887
+ field: 'weeks',
7888
+ label: 'w'
7889
+ },
7890
+ {
7891
+ field: 'days',
7892
+ label: 'd'
7893
+ },
7894
+ {
7895
+ field: 'hours',
7896
+ label: 'h'
7897
+ },
7898
+ {
7899
+ field: 'minutes',
7900
+ label: 'm'
7901
+ },
7902
+ {
7903
+ field: 'seconds',
7904
+ label: 's'
7905
+ },
7906
+ {
7907
+ field: 'milliseconds',
7908
+ label: 'ms'
7909
+ }
7910
+ ];
7911
+ /**
7912
+ * Formats a TimeDurationData to a compact string like "3d10h5m8s".
7913
+ *
7914
+ * Omits zero-value units. Returns "0s" if all fields are zero or empty.
7915
+ *
7916
+ * @param data - The duration data to format
7917
+ * @returns A compact duration string
7918
+ *
7919
+ * @example
7920
+ * ```typescript
7921
+ * formatDurationString({ days: 3, hours: 10, minutes: 5, seconds: 8 }); // "3d10h5m8s"
7922
+ * formatDurationString({ hours: 2, minutes: 30 }); // "2h30m"
7923
+ * formatDurationString({}); // "0s"
7924
+ * ```
7925
+ */ function formatDurationString(data) {
7926
+ var parts = [];
7927
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
7928
+ try {
7929
+ for(var _iterator = COMPACT_UNIT_LABELS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
7930
+ var _step_value = _step.value, field = _step_value.field, label = _step_value.label;
7931
+ var value = data[field];
7932
+ if (value) {
7933
+ parts.push("".concat(value).concat(label));
7934
+ }
7935
+ }
7936
+ } catch (err) {
7937
+ _didIteratorError = true;
7938
+ _iteratorError = err;
7939
+ } finally{
7940
+ try {
7941
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
7942
+ _iterator.return();
7943
+ }
7944
+ } finally{
7945
+ if (_didIteratorError) {
7946
+ throw _iteratorError;
7947
+ }
7948
+ }
7949
+ }
7950
+ return parts.length > 0 ? parts.join('') : '0s';
7951
+ }
7952
+ /**
7953
+ * Long format labels for each unit.
7954
+ */ var LONG_UNIT_LABELS = [
7955
+ {
7956
+ field: 'weeks',
7957
+ singular: 'week',
7958
+ plural: 'weeks'
7959
+ },
7960
+ {
7961
+ field: 'days',
7962
+ singular: 'day',
7963
+ plural: 'days'
7964
+ },
7965
+ {
7966
+ field: 'hours',
7967
+ singular: 'hour',
7968
+ plural: 'hours'
7969
+ },
7970
+ {
7971
+ field: 'minutes',
7972
+ singular: 'minute',
7973
+ plural: 'minutes'
7974
+ },
7975
+ {
7976
+ field: 'seconds',
7977
+ singular: 'second',
7978
+ plural: 'seconds'
7979
+ },
7980
+ {
7981
+ field: 'milliseconds',
7982
+ singular: 'millisecond',
7983
+ plural: 'milliseconds'
7984
+ }
7985
+ ];
7986
+ /**
7987
+ * Formats a TimeDurationData to a long human-readable string.
7988
+ *
7989
+ * Omits zero-value units. Returns "0 seconds" if all fields are zero or empty.
7990
+ *
7991
+ * @param data - The duration data to format
7992
+ * @returns A human-readable duration string
7993
+ *
7994
+ * @example
7995
+ * ```typescript
7996
+ * formatDurationStringLong({ days: 3, hours: 10 }); // "3 days 10 hours"
7997
+ * formatDurationStringLong({ hours: 1, minutes: 1 }); // "1 hour 1 minute"
7998
+ * ```
7999
+ */ function formatDurationStringLong(data) {
8000
+ var parts = [];
8001
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
8002
+ try {
8003
+ for(var _iterator = LONG_UNIT_LABELS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
8004
+ var _step_value = _step.value, field = _step_value.field, singular = _step_value.singular, plural = _step_value.plural;
8005
+ var value = data[field];
8006
+ if (value) {
8007
+ parts.push("".concat(value, " ").concat(value === 1 ? singular : plural));
8008
+ }
8009
+ }
8010
+ } catch (err) {
8011
+ _didIteratorError = true;
8012
+ _iteratorError = err;
8013
+ } finally{
8014
+ try {
8015
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
8016
+ _iterator.return();
8017
+ }
8018
+ } finally{
8019
+ if (_didIteratorError) {
8020
+ throw _iteratorError;
8021
+ }
8022
+ }
8023
+ }
8024
+ return parts.length > 0 ? parts.join(' ') : '0 seconds';
8025
+ }
8026
+
7599
8027
  function _array_like_to_array$3(arr, len) {
7600
8028
  if (len == null || len > arr.length) len = arr.length;
7601
8029
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -7862,7 +8290,7 @@ var _type, _type1;
7862
8290
  */ var dateRangeParamsType = type({
7863
8291
  type: (_type = type).enumerated.apply(_type, _to_consumable_array(Object.values(DateRangeType))),
7864
8292
  date: ARKTYPE_DATE_DTO_TYPE,
7865
- 'distance?': 'number'
8293
+ 'distance?': clearable('number')
7866
8294
  });
7867
8295
  // MARK: DateCell
7868
8296
  /**
@@ -7882,7 +8310,7 @@ var _type, _type1;
7882
8310
  * Use this schema when validating and converting serialized data (e.g., API responses, JSON payloads)
7883
8311
  * into the corresponding runtime types.
7884
8312
  */ var dateCellRangeType = dateCellType.merge({
7885
- 'to?': 'number.integer >= 0'
8313
+ 'to?': clearable('number.integer >= 0')
7886
8314
  });
7887
8315
  // MARK: DateCellTiming
7888
8316
  /**
@@ -7918,8 +8346,8 @@ var _type, _type1;
7918
8346
  '&',
7919
8347
  'string'
7920
8348
  ],
7921
- 'd?': 'number.integer >= 0 []',
7922
- 'ex?': 'number.integer >= 0 []'
8349
+ 'd?': clearable('number.integer >= 0 []'),
8350
+ 'ex?': clearable('number.integer >= 0 []')
7923
8351
  });
7924
8352
  // MARK: ModelRecurrenceInfo
7925
8353
  /**
@@ -7929,11 +8357,11 @@ var _type, _type1;
7929
8357
  * Use this schema when validating and converting serialized data (e.g., API responses, JSON payloads)
7930
8358
  * or runtime Date objects into the corresponding runtime types.
7931
8359
  */ var modelRecurrenceInfoType = type({
7932
- 'timezone?': 'string',
8360
+ 'timezone?': clearable('string'),
7933
8361
  rrule: 'string',
7934
8362
  start: ARKTYPE_DATE_DTO_TYPE,
7935
8363
  end: ARKTYPE_DATE_DTO_TYPE,
7936
- 'forever?': 'boolean'
8364
+ 'forever?': clearable('boolean')
7937
8365
  });
7938
8366
  // MARK: Validators
7939
8367
  /**
@@ -11137,4 +11565,4 @@ function _create_class(Constructor, protoProps, staticProps) {
11137
11565
  }
11138
11566
  ();
11139
11567
 
11140
- export { AnyIterResult, CalendarDateType, DATE_CELL_SCHEDULE_ENCODED_WEEK_REGEX, DATE_MONTH_DAY_STRING_FORMAT, DATE_SHORT_DATE_AND_TIME_STRING_FORMAT, DATE_TIME_STRING_FORMAT, DATE_TODAY_END_VALUE, DATE_TODAY_START_VALUE, DATE_WEEK_END_VALUE, DATE_WEEK_START_VALUE, DEFAULT_EXPAND_DAYS_FOR_DATE_RANGE_MAX_EXPANSION_SIZE, DEFAULT_FULL_DATE_SCHEDULE_RANGE_DURATION, DEFAULT_ITERATE_DAYS_IN_DATE_RANGE_MAX_ITERATIONS, DEFAULT_LAST_ITER_RESULT_MAX_ITERATIONS_ALLOWED, DateCellScheduleDayCode, DateRRule, DateRRuleInstance, DateRRuleParseUtility, DateRRuleUtility, DateRangeType, DateSet, DateTimeMinuteInstance, DateTimeUtilityInstance, DateTimezoneUtcNormalInstance, IterateDaysInDateRangeFunctionBailError, LastIterResult, LimitDateTimeInstance, MAX_FUTURE_DATE, MONTH_DAY_SLASH_DATE_STRING_FORMAT, ModelRecurrenceInfoUtility, NextIterResult, RRULE_STRING_SPLITTER, RRuleStringSplitter, SYSTEM_DATE_TIMEZONE_UTC_NORMAL_INSTANCE, UNKNOWN_YEAR_WEEK_CODE, UTC_DATE_TIMEZONE_UTC_NORMAL_INSTANCE, allIndexesInDateCellRange, allIndexesInDateCellRanges, allIndexesInDateCellRangesToArray, allKnownTimezoneStrings, allTimezoneInfos, allTimezoneStrings, baseDateToTargetDate, calculateAllConversions, calculateExpectedDateCellTimingDuration, calculateExpectedDateCellTimingDurationPair, calculateTimezoneOffset, calendarDate, calendarDateFactory, calendarDateForDateDurationSpan, calendarDateType, changeDateCellScheduleDateRangeToTimezone, changeDateCellScheduleDateRangeToTimezoneFunction, clampDateFunction, clampDateRangeFunction, clampDateRangeToDateRange, clampDateToDateRange, copyDateCellScheduleDateFilterConfig, copyHoursAndMinutesFromDateWithTimezoneNormal, copyHoursAndMinutesFromNowWithTimezoneNormal, copyHoursAndMinutesFromUTCDate, copyHoursAndMinutesToDate, copyHoursAndMinutesToToday, dateCell, dateCellDayOfWeekFactory, dateCellDayTimingInfoFactory, dateCellDurationSpanHasEndedFilterFunction, dateCellDurationSpanHasNotEndedFilterFunction, dateCellDurationSpanHasNotStartedFilterFunction, dateCellDurationSpanHasStartedFilterFunction, dateCellEndIndex, dateCellIndexRange, dateCellIndexRangeToDateCellRange, dateCellIndexYearWeekCodeFactory, dateCellIndexYearWeekCodeGroupFactory, dateCellIndexsForDateCellScheduleDayCodes, dateCellRange, dateCellRangeBlocksCount, dateCellRangeBlocksCountInfo, dateCellRangeHasRange, dateCellRangeIncludedByRangeFunction, dateCellRangeOfTiming, dateCellRangeOfTimingFactory, dateCellRangeOverlapsRange, dateCellRangeOverlapsRangeFunction, dateCellRangeToDateCellIndexRange, dateCellRangeType, dateCellRangeWithRange, dateCellRangeWithRangeFromIndex, dateCellRangesFullyCoverDateCellRangeFunction, dateCellScheduleDateCellTimingFilter, dateCellScheduleDateFilter, dateCellScheduleDateRange, dateCellScheduleDayCodeFactory, dateCellScheduleDayCodesAreSetsEquivalent, dateCellScheduleDayCodesFromEnabledDays, dateCellScheduleDayCodesSetFromDaysOfWeek, dateCellScheduleEncodedWeek, dateCellScheduleType, dateCellTiming, dateCellTimingCompletedTimeRange, dateCellTimingDateFactory, dateCellTimingDateRange, dateCellTimingEndDateFactory, dateCellTimingEndIndex, dateCellTimingEventRange, dateCellTimingExpansionFactory, dateCellTimingFinalStartsAtEvent, dateCellTimingFromDateCellTimingStartsAtEndRange, dateCellTimingLatestCompletedIndex, dateCellTimingRelativeIndexArrayFactory, dateCellTimingRelativeIndexFactory, dateCellTimingStart, dateCellTimingStartDateFactory, dateCellTimingStartPair, dateCellTimingStartsAtDateFactory, dateCellTimingStartsAtForStartOfDay, dateCellTimingTimezoneNormalInstance, dateCellTimingType, dateCellType, dateDurationSpanEndDate, dateDurationSpanType, dateFromLogicalDate, dateInterval, dateMonthDayStringFormat, dateOrDateRangeToDateRange, dateOrDayStringRangeToDateRange, dateOrDayStringRangeToISO8601DayStringRange, dateRange, dateRangeDaysCount, dateRangeFromStartAndEndOfDay, dateRangeOverlapsDateRange, dateRangeOverlapsDateRangeFunction, dateRangeParamsType, dateRangeRelativeState, dateRangeType, dateRelativeStateForDateCellRangeComparedToIndex, dateShortDateAndTimeStringFormat, dateTimeInstance, dateTimeInstanceUtc, dateTimeMinuteDecisionFunction, dateTimeMinuteWholeDayDecisionFunction, dateTimeStringFormat, dateTimezoneUtcNormal, daysToMinutes, durationSpanDateRelativeState, durationSpanFromDateRange, durationSpanToDateRange, earliestDate, enabledDaysFromDateCellScheduleDayCodes, endItreateDaysInDateRangeEarly, expandDateCellCollection, expandDateCellRange, expandDateCellSchedule, expandDateCellScheduleDayCodes, expandDateCellScheduleDayCodesToDayCodesSet, expandDateCellScheduleDayCodesToDayOfWeekSet, expandDateCellScheduleFactory, expandDateCellScheduleRange, expandDateCellScheduleRangeToDateCellRanges, expandDateCellTiming, expandDaysForDateRange, expandDaysForDateRangeFunction, expandUniqueDateCellsFunction, filterDateCellsInDateCellRange, findMaxDate, findMinDate, findNextDateInDateCellScheduleFilter, fitDateRangeToDayPeriod, fitDateRangeToDayPeriodFunction, fitUTCDateRangeToDayPeriod, forEachDayInDateRange, formatDateDistance, formatDateRange, formatDateRangeDistance, formatDateRangeDistanceFunction, formatDateRangeFunction, formatStartedEndedDistanceString, formatToDateString, formatToDayRangeString, formatToDayTimeRangeString, formatToISO8601DateString, formatToISO8601DayStringForSystem, formatToISO8601DayStringForUTC, formatToMonthDaySlashDate, formatToMonthDayString, formatToShortDateAndTimeString, formatToShortDateString, formatToTimeAndDurationString, formatToTimeRangeString, formatToTimeString, fractionalHoursInDurationSpan, fullDateCellScheduleRange, fullDateCellTiming, fullDateCellTimingTimezonePair, fullWeekDateCellScheduleDayCodes, getCurrentSystemOffsetInHours, getCurrentSystemOffsetInMinutes, getCurrentSystemOffsetInMs, getDateCellTimingFirstEventDateRange, getDateCellTimingHoursInEvent, getDaysOfWeekInDateRange, getGreatestDateCellIndexInDateCellRanges, getLeastAndGreatestDateCellIndexInDateCellRanges, getLeastDateCellIndexInDateCellRanges, getNextDateCellTimingIndex, getRelativeDateForDateCellTiming, getRelativeIndexForDateCellTiming, getTimeAM, getTimezoneAbbreviation, getTimezoneLongName, groupDateRangesByDateRelativeState, groupToDateCellRanges, groupUniqueDateCells, guessCurrentTimezone, hoursToMs, inverseDateTimezoneUtcNormalInstanceTransformType, isAfter, isBefore, isDate, isDateCellRange, isDateCellSchedule, isDateCellScheduleDateRange, isDateCellScheduleEncodedWeek, isDateCellScheduleStartOfDayDateRange, isDateCellTiming, isDateCellTimingRelativeIndexFactory, isDateCellWithinDateCellRange, isDateCellWithinDateCellRangeFunction, isDateInDateRange, isDateInDateRangeFunction, isDateRange, isDateRangeInDateRange, isDateRangeInDateRangeFunction, isDateRangeStart, isDateWithinDateCellRangeFunction, isEmptyDateCellScheduleEncodedWeek, isEndOfDayInUTC, isFullDateCellScheduleDateRange, isFullDateCellTiming, isFullDateRange, isInfiniteDateRange, isKnownTimezone, isLogicalDateStringCode, isMaxFutureDate, isPartialDateRange, isSameDate, isSameDateCellSchedule, isSameDateCellScheduleDateRange, isSameDateCellScheduleEventRange, isSameDateCellTiming, isSameDateCellTimingEventStartsAtEndRange, isSameDateDay, isSameDateDayRange, isSameDateHoursAndMinutes, isSameDateRange, isSameDateTimezoneConversionConfig, isSameDurationSpan, isSameFullDateCellScheduleDateRange, isSameFullDateCellTiming, isStartOfDayForSystem, isStartOfDayInUTC, isValidDateCellIndex, isValidDateCellRange, isValidDateCellRangeSeries, isValidDateCellTiming, isValidDateCellTimingInfo, isValidDateCellTimingStartDate, isValidDateFromTimestringResult, isValidDateTimezoneConversionConfig, isValidFullDateCellTiming, isValidFullDateCellTimingInfo, iterateDaysInDateRange, iterateDaysInDateRangeFunction, knownTimezoneType, latestDate, latestMinute, limitDateTime, limitDateTimeInstance, logicalDateStringCodeDateFactory, makeDateQueryForDateItemRangeFilter, makeDateQueryForDateStartsEndsFilter, makeDateQueryForOccuringFilter, makeDaysAndTimeFiltersFunction, makeMongoDBLikeDateQueryBuilder, maxFutureDate, mergeMongoDBLikeRangeFilters, minutesToMs, modelRecurrenceInfoType, modifyDateCellToFitRange, modifyDateCellsToFitRange, modifyDateCellsToFitRangeFunction, monthDaySlashDateStringFormat, msToMinutes, msToSeconds, nowInterval, parseISO8601DayStringToDate, parseJsDateString, parseReadableTimeString, rawDateCellScheduleDayCodes, readDaysOfWeek, readDaysOfWeekNames, readableTimeStringToDate, reduceDatesFunction, requireCurrentTimezone, roundDateDownTo, roundDateTimeDown, roundDateTimeDownToSteps, roundDateTo, roundDateToDate, roundDateToUnixDateTimeNumber, roundDownToHour, roundDownToMinute, roundToMinuteSteps, safeFormatToISO8601DateString, safeToJsDate, searchTimezoneInfos, setOnDateWithTimezoneNormalFunction, shiftDateCellTimingToSystemTimezone, shiftDateCellTimingToTimezone, shiftDateCellTimingToTimezoneFunction, shiftDateCellTimingToUTCTimezone, simplifyDateCellScheduleDayCodes, sortByDateFunction, sortByISO8601DateStringFunction, sortByISO8601DateStrings, sortDateCellRangeAndSizeFunction, sortDateCellRanges, sortDateRangeStartAscendingCompareFunction, startOfDayInTimezoneDayStringFactory, startOfDayInTimezoneFromISO8601DayString, startOfWeekForYearWeekCode, systemBaseDateToNormalDate, systemBaseDateToNormalDateOffset, systemDateTimezoneUtcNormal, systemExperiencesDaylightSavings, systemNormalDateToBaseDate, systemNormalDateToBaseDateOffset, targetDateToBaseDate, timezoneInfoForSystem, timezoneStringToSearchableString, timezoneStringToTimezoneInfo, toISO8601DayStringForSystem, toISO8601DayStringForUTC, toISODateString, toJsDate, toJsDayDate, toLocalReadableTimeString, toReadableTimeString, transformDateInTimezoneNormalFunction, transformDateRangeDatesFunction, transformDateRangeInTimezoneNormalFunction, transformDateRangeToTimezoneFunction, transformDateRangeWithStartOfDay, updateDateCellTimingToSystemTimezone, updateDateCellTimingToTimezone, updateDateCellTimingToTimezoneFunction, updateDateCellTimingToUTCTimezone, updateDateCellTimingWithDateCellTimingEvent, utcDayForDate, validDateCellRangeSeriesType, validDateCellRangeType, validDateCellTimingType, weekdayDateCellScheduleDayCodes, weekendDateCellScheduleDayCodes, yearWeekCode, yearWeekCodeDateFactory, yearWeekCodeDateTimezoneInstance, yearWeekCodeFactory, yearWeekCodeForCalendarMonth, yearWeekCodeForCalendarMonthFactory, yearWeekCodeForDateRange, yearWeekCodeForDateRangeFactory, yearWeekCodeForDateRangeInTimezone, yearWeekCodeFromDate, yearWeekCodeFromPair, yearWeekCodeGroupFactory, yearWeekCodeIndex, yearWeekCodePair, yearWeekCodePairFromDate };
11568
+ export { AnyIterResult, CalendarDateType, DATE_CELL_SCHEDULE_ENCODED_WEEK_REGEX, DATE_MONTH_DAY_STRING_FORMAT, DATE_SHORT_DATE_AND_TIME_STRING_FORMAT, DATE_TIME_STRING_FORMAT, DATE_TODAY_END_VALUE, DATE_TODAY_START_VALUE, DATE_WEEK_END_VALUE, DATE_WEEK_START_VALUE, DEFAULT_EXPAND_DAYS_FOR_DATE_RANGE_MAX_EXPANSION_SIZE, DEFAULT_FULL_DATE_SCHEDULE_RANGE_DURATION, DEFAULT_ITERATE_DAYS_IN_DATE_RANGE_MAX_ITERATIONS, DEFAULT_LAST_ITER_RESULT_MAX_ITERATIONS_ALLOWED, DateCellScheduleDayCode, DateRRule, DateRRuleInstance, DateRRuleParseUtility, DateRRuleUtility, DateRangeType, DateSet, DateTimeMinuteInstance, DateTimeUtilityInstance, DateTimezoneUtcNormalInstance, IterateDaysInDateRangeFunctionBailError, LastIterResult, LimitDateTimeInstance, MAX_FUTURE_DATE, MONTH_DAY_SLASH_DATE_STRING_FORMAT, ModelRecurrenceInfoUtility, NextIterResult, RRULE_STRING_SPLITTER, RRuleStringSplitter, SYSTEM_DATE_TIMEZONE_UTC_NORMAL_INSTANCE, UNKNOWN_YEAR_WEEK_CODE, UTC_DATE_TIMEZONE_UTC_NORMAL_INSTANCE, allIndexesInDateCellRange, allIndexesInDateCellRanges, allIndexesInDateCellRangesToArray, allKnownTimezoneStrings, allTimezoneInfos, allTimezoneStrings, baseDateToTargetDate, calculateAllConversions, calculateExpectedDateCellTimingDuration, calculateExpectedDateCellTimingDurationPair, calculateTimezoneOffset, calendarDate, calendarDateFactory, calendarDateForDateDurationSpan, calendarDateType, changeDateCellScheduleDateRangeToTimezone, changeDateCellScheduleDateRangeToTimezoneFunction, clampDateFunction, clampDateRangeFunction, clampDateRangeToDateRange, clampDateToDateRange, copyDateCellScheduleDateFilterConfig, copyHoursAndMinutesFromDateWithTimezoneNormal, copyHoursAndMinutesFromNowWithTimezoneNormal, copyHoursAndMinutesFromUTCDate, copyHoursAndMinutesToDate, copyHoursAndMinutesToToday, dateCell, dateCellDayOfWeekFactory, dateCellDayTimingInfoFactory, dateCellDurationSpanHasEndedFilterFunction, dateCellDurationSpanHasNotEndedFilterFunction, dateCellDurationSpanHasNotStartedFilterFunction, dateCellDurationSpanHasStartedFilterFunction, dateCellEndIndex, dateCellIndexRange, dateCellIndexRangeToDateCellRange, dateCellIndexYearWeekCodeFactory, dateCellIndexYearWeekCodeGroupFactory, dateCellIndexsForDateCellScheduleDayCodes, dateCellRange, dateCellRangeBlocksCount, dateCellRangeBlocksCountInfo, dateCellRangeHasRange, dateCellRangeIncludedByRangeFunction, dateCellRangeOfTiming, dateCellRangeOfTimingFactory, dateCellRangeOverlapsRange, dateCellRangeOverlapsRangeFunction, dateCellRangeToDateCellIndexRange, dateCellRangeType, dateCellRangeWithRange, dateCellRangeWithRangeFromIndex, dateCellRangesFullyCoverDateCellRangeFunction, dateCellScheduleDateCellTimingFilter, dateCellScheduleDateFilter, dateCellScheduleDateRange, dateCellScheduleDayCodeFactory, dateCellScheduleDayCodesAreSetsEquivalent, dateCellScheduleDayCodesFromEnabledDays, dateCellScheduleDayCodesSetFromDaysOfWeek, dateCellScheduleEncodedWeek, dateCellScheduleType, dateCellTiming, dateCellTimingCompletedTimeRange, dateCellTimingDateFactory, dateCellTimingDateRange, dateCellTimingEndDateFactory, dateCellTimingEndIndex, dateCellTimingEventRange, dateCellTimingExpansionFactory, dateCellTimingFinalStartsAtEvent, dateCellTimingFromDateCellTimingStartsAtEndRange, dateCellTimingLatestCompletedIndex, dateCellTimingRelativeIndexArrayFactory, dateCellTimingRelativeIndexFactory, dateCellTimingStart, dateCellTimingStartDateFactory, dateCellTimingStartPair, dateCellTimingStartsAtDateFactory, dateCellTimingStartsAtForStartOfDay, dateCellTimingTimezoneNormalInstance, dateCellTimingType, dateCellType, dateDurationSpanEndDate, dateDurationSpanType, dateFromLogicalDate, dateInterval, dateMonthDayStringFormat, dateOrDateRangeToDateRange, dateOrDayStringRangeToDateRange, dateOrDayStringRangeToISO8601DayStringRange, dateRange, dateRangeDaysCount, dateRangeFromStartAndEndOfDay, dateRangeOverlapsDateRange, dateRangeOverlapsDateRangeFunction, dateRangeParamsType, dateRangeRelativeState, dateRangeType, dateRelativeStateForDateCellRangeComparedToIndex, dateShortDateAndTimeStringFormat, dateTimeInstance, dateTimeInstanceUtc, dateTimeMinuteDecisionFunction, dateTimeMinuteWholeDayDecisionFunction, dateTimeStringFormat, dateTimezoneUtcNormal, daysToMinutes, durationDataToMilliseconds, durationSpanDateRelativeState, durationSpanFromDateRange, durationSpanToDateRange, earliestDate, enabledDaysFromDateCellScheduleDayCodes, endItreateDaysInDateRangeEarly, expandDateCellCollection, expandDateCellRange, expandDateCellSchedule, expandDateCellScheduleDayCodes, expandDateCellScheduleDayCodesToDayCodesSet, expandDateCellScheduleDayCodesToDayOfWeekSet, expandDateCellScheduleFactory, expandDateCellScheduleRange, expandDateCellScheduleRangeToDateCellRanges, expandDateCellTiming, expandDaysForDateRange, expandDaysForDateRangeFunction, expandUniqueDateCellsFunction, filterDateCellsInDateCellRange, findMaxDate, findMinDate, findNextDateInDateCellScheduleFilter, fitDateRangeToDayPeriod, fitDateRangeToDayPeriodFunction, fitUTCDateRangeToDayPeriod, forEachDayInDateRange, formatDateDistance, formatDateRange, formatDateRangeDistance, formatDateRangeDistanceFunction, formatDateRangeFunction, formatDurationString, formatDurationStringLong, formatStartedEndedDistanceString, formatToDateString, formatToDayRangeString, formatToDayTimeRangeString, formatToISO8601DateString, formatToISO8601DayStringForSystem, formatToISO8601DayStringForUTC, formatToMonthDaySlashDate, formatToMonthDayString, formatToShortDateAndTimeString, formatToShortDateString, formatToTimeAndDurationString, formatToTimeRangeString, formatToTimeString, fractionalHoursInDurationSpan, fullDateCellScheduleRange, fullDateCellTiming, fullDateCellTimingTimezonePair, fullWeekDateCellScheduleDayCodes, getCurrentSystemOffsetInHours, getCurrentSystemOffsetInMinutes, getCurrentSystemOffsetInMs, getDateCellTimingFirstEventDateRange, getDateCellTimingHoursInEvent, getDaysOfWeekInDateRange, getDurationDataValue, getGreatestDateCellIndexInDateCellRanges, getLeastAndGreatestDateCellIndexInDateCellRanges, getLeastDateCellIndexInDateCellRanges, getNextDateCellTimingIndex, getRelativeDateForDateCellTiming, getRelativeIndexForDateCellTiming, getTimeAM, getTimezoneAbbreviation, getTimezoneLongName, groupDateRangesByDateRelativeState, groupToDateCellRanges, groupUniqueDateCells, guessCurrentTimezone, hoursToMs, inverseDateTimezoneUtcNormalInstanceTransformType, isAfter, isBefore, isDate, isDateCellRange, isDateCellSchedule, isDateCellScheduleDateRange, isDateCellScheduleEncodedWeek, isDateCellScheduleStartOfDayDateRange, isDateCellTiming, isDateCellTimingRelativeIndexFactory, isDateCellWithinDateCellRange, isDateCellWithinDateCellRangeFunction, isDateInDateRange, isDateInDateRangeFunction, isDateRange, isDateRangeInDateRange, isDateRangeInDateRangeFunction, isDateRangeStart, isDateWithinDateCellRangeFunction, isEmptyDateCellScheduleEncodedWeek, isEndOfDayInUTC, isFullDateCellScheduleDateRange, isFullDateCellTiming, isFullDateRange, isInfiniteDateRange, isKnownTimezone, isLogicalDateStringCode, isMaxFutureDate, isPartialDateRange, isSameDate, isSameDateCellSchedule, isSameDateCellScheduleDateRange, isSameDateCellScheduleEventRange, isSameDateCellTiming, isSameDateCellTimingEventStartsAtEndRange, isSameDateDay, isSameDateDayRange, isSameDateHoursAndMinutes, isSameDateRange, isSameDateTimezoneConversionConfig, isSameDurationSpan, isSameFullDateCellScheduleDateRange, isSameFullDateCellTiming, isStartOfDayForSystem, isStartOfDayInUTC, isValidDateCellIndex, isValidDateCellRange, isValidDateCellRangeSeries, isValidDateCellTiming, isValidDateCellTimingInfo, isValidDateCellTimingStartDate, isValidDateFromTimestringResult, isValidDateTimezoneConversionConfig, isValidFullDateCellTiming, isValidFullDateCellTimingInfo, iterateDaysInDateRange, iterateDaysInDateRangeFunction, knownTimezoneType, latestDate, latestMinute, limitDateTime, limitDateTimeInstance, logicalDateStringCodeDateFactory, makeDateQueryForDateItemRangeFilter, makeDateQueryForDateStartsEndsFilter, makeDateQueryForOccuringFilter, makeDaysAndTimeFiltersFunction, makeMongoDBLikeDateQueryBuilder, maxFutureDate, mergeMongoDBLikeRangeFilters, millisecondsToDurationData, minutesToMs, modelRecurrenceInfoType, modifyDateCellToFitRange, modifyDateCellsToFitRange, modifyDateCellsToFitRangeFunction, monthDaySlashDateStringFormat, msToMinutes, msToSeconds, nowInterval, parseDurationString, parseDurationStringToMilliseconds, parseISO8601DayStringToDate, parseJsDateString, parseReadableTimeString, rawDateCellScheduleDayCodes, readDaysOfWeek, readDaysOfWeekNames, readableTimeStringToDate, reduceDatesFunction, requireCurrentTimezone, roundDateDownTo, roundDateTimeDown, roundDateTimeDownToSteps, roundDateTo, roundDateToDate, roundDateToUnixDateTimeNumber, roundDownToHour, roundDownToMinute, roundToMinuteSteps, safeFormatToISO8601DateString, safeToJsDate, searchTimezoneInfos, setDurationDataValue, setOnDateWithTimezoneNormalFunction, shiftDateCellTimingToSystemTimezone, shiftDateCellTimingToTimezone, shiftDateCellTimingToTimezoneFunction, shiftDateCellTimingToUTCTimezone, simplifyDateCellScheduleDayCodes, sortByDateFunction, sortByISO8601DateStringFunction, sortByISO8601DateStrings, sortDateCellRangeAndSizeFunction, sortDateCellRanges, sortDateRangeStartAscendingCompareFunction, startOfDayInTimezoneDayStringFactory, startOfDayInTimezoneFromISO8601DayString, startOfWeekForYearWeekCode, systemBaseDateToNormalDate, systemBaseDateToNormalDateOffset, systemDateTimezoneUtcNormal, systemExperiencesDaylightSavings, systemNormalDateToBaseDate, systemNormalDateToBaseDateOffset, targetDateToBaseDate, timeDurationDataIsEmpty, timezoneInfoForSystem, timezoneStringToSearchableString, timezoneStringToTimezoneInfo, toISO8601DayStringForSystem, toISO8601DayStringForUTC, toISODateString, toJsDate, toJsDayDate, toLocalReadableTimeString, toReadableTimeString, transformDateInTimezoneNormalFunction, transformDateRangeDatesFunction, transformDateRangeInTimezoneNormalFunction, transformDateRangeToTimezoneFunction, transformDateRangeWithStartOfDay, updateDateCellTimingToSystemTimezone, updateDateCellTimingToTimezone, updateDateCellTimingToTimezoneFunction, updateDateCellTimingToUTCTimezone, updateDateCellTimingWithDateCellTimingEvent, utcDayForDate, validDateCellRangeSeriesType, validDateCellRangeType, validDateCellTimingType, weekdayDateCellScheduleDayCodes, weekendDateCellScheduleDayCodes, yearWeekCode, yearWeekCodeDateFactory, yearWeekCodeDateTimezoneInstance, yearWeekCodeFactory, yearWeekCodeForCalendarMonth, yearWeekCodeForCalendarMonthFactory, yearWeekCodeForDateRange, yearWeekCodeForDateRangeFactory, yearWeekCodeForDateRangeInTimezone, yearWeekCodeFromDate, yearWeekCodeFromPair, yearWeekCodeGroupFactory, yearWeekCodeIndex, yearWeekCodePair, yearWeekCodePairFromDate };