chronos-date 1.0.2 → 1.1.1

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.
Files changed (117) hide show
  1. package/dist/basic-DqKyujoj.mjs +382 -0
  2. package/dist/basic-DsQqC5nZ.cjs +466 -0
  3. package/dist/constants.cjs +43 -1
  4. package/dist/constants.d.cts +17 -1
  5. package/dist/constants.d.mts +17 -1
  6. package/dist/constants.mjs +21 -1
  7. package/dist/convert-DbgntRVW.cjs +49 -0
  8. package/dist/convert-mMaI4YP0.mjs +38 -0
  9. package/dist/greet-D07t2_e6.mjs +51 -0
  10. package/dist/greet-hjVsd2dt.cjs +56 -0
  11. package/dist/guards.cjs +140 -1
  12. package/dist/guards.d.cts +18 -2
  13. package/dist/guards.d.mts +18 -2
  14. package/dist/guards.mjs +131 -1
  15. package/dist/helpers-CQzi908i.cjs +278 -0
  16. package/dist/helpers-DEf4sevD.mjs +201 -0
  17. package/dist/index.cjs +1477 -1
  18. package/dist/index.d.cts +18 -2
  19. package/dist/index.d.mts +18 -2
  20. package/dist/index.mjs +1474 -1
  21. package/dist/non-primitives-D9zxCwX8.cjs +68 -0
  22. package/dist/non-primitives-DBtomDty.mjs +38 -0
  23. package/dist/plugins/banglaPlugin.cjs +137 -1
  24. package/dist/plugins/banglaPlugin.d.cts +19 -3
  25. package/dist/plugins/banglaPlugin.d.mts +19 -3
  26. package/dist/plugins/banglaPlugin.mjs +136 -1
  27. package/dist/plugins/businessPlugin.cjs +134 -1
  28. package/dist/plugins/businessPlugin.d.cts +17 -1
  29. package/dist/plugins/businessPlugin.d.mts +17 -1
  30. package/dist/plugins/businessPlugin.mjs +133 -1
  31. package/dist/plugins/dateRangePlugin.cjs +62 -1
  32. package/dist/plugins/dateRangePlugin.d.cts +19 -3
  33. package/dist/plugins/dateRangePlugin.d.mts +19 -3
  34. package/dist/plugins/dateRangePlugin.mjs +61 -1
  35. package/dist/plugins/dayPartPlugin.cjs +42 -1
  36. package/dist/plugins/dayPartPlugin.d.cts +17 -1
  37. package/dist/plugins/dayPartPlugin.d.mts +17 -1
  38. package/dist/plugins/dayPartPlugin.mjs +41 -1
  39. package/dist/plugins/durationPlugin.cjs +107 -1
  40. package/dist/plugins/durationPlugin.d.cts +17 -1
  41. package/dist/plugins/durationPlugin.d.mts +17 -1
  42. package/dist/plugins/durationPlugin.mjs +106 -1
  43. package/dist/plugins/fromNowPlugin.cjs +96 -1
  44. package/dist/plugins/fromNowPlugin.d.cts +17 -1
  45. package/dist/plugins/fromNowPlugin.d.mts +17 -1
  46. package/dist/plugins/fromNowPlugin.mjs +95 -1
  47. package/dist/plugins/greetingPlugin.cjs +35 -1
  48. package/dist/plugins/greetingPlugin.d.cts +17 -1
  49. package/dist/plugins/greetingPlugin.d.mts +17 -1
  50. package/dist/plugins/greetingPlugin.mjs +34 -1
  51. package/dist/plugins/palindromePlugin.cjs +38 -1
  52. package/dist/plugins/palindromePlugin.d.cts +17 -1
  53. package/dist/plugins/palindromePlugin.d.mts +17 -1
  54. package/dist/plugins/palindromePlugin.mjs +37 -1
  55. package/dist/plugins/relativeTimePlugin.cjs +90 -1
  56. package/dist/plugins/relativeTimePlugin.d.cts +17 -1
  57. package/dist/plugins/relativeTimePlugin.d.mts +17 -1
  58. package/dist/plugins/relativeTimePlugin.mjs +89 -1
  59. package/dist/plugins/roundPlugin.cjs +85 -1
  60. package/dist/plugins/roundPlugin.d.cts +17 -1
  61. package/dist/plugins/roundPlugin.d.mts +17 -1
  62. package/dist/plugins/roundPlugin.mjs +84 -1
  63. package/dist/plugins/seasonPlugin.cjs +47 -1
  64. package/dist/plugins/seasonPlugin.d.cts +17 -1
  65. package/dist/plugins/seasonPlugin.d.mts +17 -1
  66. package/dist/plugins/seasonPlugin.mjs +46 -1
  67. package/dist/plugins/timeZonePlugin.cjs +155 -1
  68. package/dist/plugins/timeZonePlugin.d.cts +17 -1
  69. package/dist/plugins/timeZonePlugin.d.mts +17 -1
  70. package/dist/plugins/timeZonePlugin.mjs +154 -1
  71. package/dist/plugins/zodiacPlugin.cjs +67 -1
  72. package/dist/plugins/zodiacPlugin.d.cts +17 -1
  73. package/dist/plugins/zodiacPlugin.d.mts +17 -1
  74. package/dist/plugins/zodiacPlugin.mjs +66 -1
  75. package/dist/primitives-CtuSNmV7.cjs +65 -0
  76. package/dist/primitives-dXzXlzJw.mjs +35 -0
  77. package/dist/seasons-B7kK88zq.cjs +434 -0
  78. package/dist/{seasons-CioTH5Dm.d.mts → seasons-B_kjFWIX.d.mts} +16 -0
  79. package/dist/{seasons-CsVeJ27s.d.cts → seasons-CpUn45n6.d.cts} +16 -0
  80. package/dist/seasons-Cq3ah3pV.mjs +368 -0
  81. package/dist/timezone-BNnHFgki.cjs +5625 -0
  82. package/dist/timezone-Db2CeL32.mjs +5589 -0
  83. package/dist/{types-B2fgrJ86.d.mts → types-Cb4gxrgJ.d.mts} +29 -15
  84. package/dist/{types-DPTQ_yLx.d.cts → types-CdmsXbU_.d.cts} +29 -15
  85. package/dist/types.cjs +16 -0
  86. package/dist/types.d.cts +18 -2
  87. package/dist/types.d.mts +18 -2
  88. package/dist/types.mjs +17 -1
  89. package/dist/utilities-BGX8dviZ.mjs +257 -0
  90. package/dist/utilities-BKtVo78T.mjs +59 -0
  91. package/dist/utilities-CpF3uys3.cjs +88 -0
  92. package/dist/utilities-D47SN9EZ.cjs +334 -0
  93. package/dist/utils.cjs +92 -1
  94. package/dist/utils.d.cts +20 -4
  95. package/dist/utils.d.mts +20 -4
  96. package/dist/utils.mjs +60 -1
  97. package/package.json +10 -4
  98. package/dist/basic-CKxaRSHQ.cjs +0 -1
  99. package/dist/basic-e46DaNAi.mjs +0 -1
  100. package/dist/convert-Bmp63ats.mjs +0 -1
  101. package/dist/convert-DrLrcgqz.cjs +0 -1
  102. package/dist/greet-BBsrvmkn.mjs +0 -1
  103. package/dist/greet-C-6mruI9.cjs +0 -1
  104. package/dist/helpers-DGzYnP81.cjs +0 -1
  105. package/dist/helpers-N1X_Rj_V.mjs +0 -1
  106. package/dist/non-primitives-B2EE6D6s.mjs +0 -1
  107. package/dist/non-primitives-Bu3a4WL4.cjs +0 -1
  108. package/dist/primitives-Cxss_JVF.mjs +0 -1
  109. package/dist/primitives-Db2FUp4e.cjs +0 -1
  110. package/dist/seasons-ChAIVphi.mjs +0 -1
  111. package/dist/seasons-oABOhHcX.cjs +0 -1
  112. package/dist/timezone-B10UItNO.mjs +0 -1
  113. package/dist/timezone-CWxbK_7I.cjs +0 -1
  114. package/dist/utilities-B8dOAQVD.cjs +0 -1
  115. package/dist/utilities-BJE06bms.mjs +0 -1
  116. package/dist/utilities-D2-p26DX.cjs +0 -1
  117. package/dist/utilities-DV_ohS37.mjs +0 -1
@@ -1 +1,155 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../basic-CKxaRSHQ.cjs`),t=require(`../timezone-CWxbK_7I.cjs`),n=require(`../guards.cjs`),r=require(`../helpers-DGzYnP81.cjs`),i=require(`../utilities-B8dOAQVD.cjs`),a=a=>{let{internalDate:o,withOrigin:s,offset:c}=a[e.s],l=e=>e===`UTC+00:00`||e===`UTC-00:00`,u=e=>e?e in t.o:!1,d=e=>e in t.r,f=e=>{if(u(e))return t.o[e]},p=(e,t)=>{let n=[`long`,`longOffset`],i={tzId:e};for(let a of n){let n=a===`long`?`tzName`:`offset`;try{let o=r.p(e,a,t);i[n]=a===`longOffset`?r.s(o):o}catch{i[n]=void 0}}return i},m=new Map(t.n.reduce((e,t)=>{let{offset:n}=p(t);if(n){let r=e.get(n)??[];r.push(t),e.set(n,r)}return e},new Map)),h=new Map(Object.entries(t.r).map(([e,{offset:t,tzName:n}])=>[t,{tzAbbr:e,tzName:n}])),g=e=>{let t=m.get(e);if(!(!t||t?.length===0))return t?.length===1?t[0]:t},_=(e,r)=>{if(l(e))return`Greenwich Mean Time`;if(n.isValidUTCOffset(e)){let t=f(e);return!t&&h.has(e)?h.get(e)?.tzName:t}else if(d(e))return t.r[e].tzName;else{let{offset:t,tzName:n}=p(e,r);return n||f(t)}};a.prototype.timeZone=function(e){let r,c;n.isValidUTCOffset(e)?(r=e,c=g(r)||r):d(e)?(r=t.r[e].offset,c=g(r)||r):(r=p(e,o(this)).offset||t.r.UTC.offset,c=e);let l=e||r,u=_(l,o(this))??r,f=i.r(r)-this.getTimeZoneOffsetMinutes();return s(new a(new Date(o(this).getTime()+f*60*1e3)),`timeZone`,r,u,c,l)},a.prototype.getTimeZoneName=function(e){let t=e||c(this);return _(e||this?.$tzTracker||c(this),o(this))??t};let v=new Map,y=e=>e.split(/\s+/).map(e=>e[0]).join(``).replace(/\W/g,``);a.prototype.getTimeZoneNameShort=function(e){let t=this?.$tzTracker,r=e||c(this),i=e||t||c(this);if(l(i))return`GMT`;if(!e&&t&&d(t))return t;if(n.isValidUTCOffset(i)){if(v.has(i))return v.get(i);if(h.has(i))return h.get(i)?.tzAbbr;let e=f(i);if(e){let t=y(e);return v.set(i,t),t}}let a=_(i,o(this))??r;if(v.has(`name-${a}`))return v.get(a);let s=n.isValidUTCOffset(a)?a:y(a);return v.set(`name-${a}`,s),s},a.prototype.getTimeZoneNameAbbr=function(e){return this.getTimeZoneNameShort(e)}};exports.timeZonePlugin=a;
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
+ const require_basic = require('../basic-DsQqC5nZ.cjs');
19
+ const require_timezone = require('../timezone-BNnHFgki.cjs');
20
+ const require_guards = require('../guards.cjs');
21
+ const require_helpers = require('../helpers-CQzi908i.cjs');
22
+ const require_utilities = require('../utilities-D47SN9EZ.cjs');
23
+
24
+ //#region src/plugins/timeZonePlugin.ts
25
+ /** * Plugin to inject `timeZone` related methods */
26
+ const timeZonePlugin = ($Chronos) => {
27
+ const { internalDate: $Date, withOrigin, offset } = $Chronos[require_basic.INTERNALS];
28
+ /** Check if a time zone factor represents GMT */
29
+ const _isGMT = (factor) => {
30
+ return factor === "UTC+00:00" || factor === "UTC-00:00";
31
+ };
32
+ /** Check if a string is the key of `TIME_ZONE_LABELS` constant */
33
+ const _isLabelKey = (offset) => {
34
+ return offset ? offset in require_timezone.TIME_ZONE_LABELS : false;
35
+ };
36
+ /** Check if a string is time zone abbreviation */
37
+ const _isValidTzAbbr = (tz) => {
38
+ return tz in require_timezone.TIME_ZONES;
39
+ };
40
+ /** Resolve time zone name from `TIME_ZONE_LABELS` constant using UTC offset or get undefined */
41
+ const _resolveTzName = (offset) => {
42
+ if (_isLabelKey(offset)) return require_timezone.TIME_ZONE_LABELS[offset];
43
+ };
44
+ /**
45
+ * * Retrieves comprehensive time zone details using the {@link Intl.supportedValuesOf} API.
46
+ * @param tzId Time zone identifier. Defaults to the system timezone.
47
+ * @param date Date for which to resolve the information.
48
+ * @returns Object containing time zone identifier, name, and offset.
49
+ */
50
+ const _getTimeZoneDetails = (tzId, date) => {
51
+ const TZ_NAME_TYPES = ["long", "longOffset"];
52
+ const obj = { tzId };
53
+ for (const type of TZ_NAME_TYPES) {
54
+ const key = type === "long" ? "tzName" : "offset";
55
+ try {
56
+ const partValue = require_helpers._resolveNativeTzName(tzId, type, date);
57
+ obj[key] = type === "longOffset" ? require_helpers._gmtToUtcOffset(partValue) : partValue;
58
+ } catch {
59
+ obj[key] = void 0;
60
+ }
61
+ }
62
+ return obj;
63
+ };
64
+ /** Cache to store time zone id (from {@link Intl.supportedValuesOf}) against UTC offset */
65
+ const TZ_ID_MAP = new Map(require_timezone.NATIVE_TZ_IDS.reduce((tzIds, id) => {
66
+ const { offset } = _getTimeZoneDetails(id);
67
+ if (offset) {
68
+ const arr = tzIds.get(offset) ?? [];
69
+ arr.push(id);
70
+ tzIds.set(offset, arr);
71
+ }
72
+ return tzIds;
73
+ }, /* @__PURE__ */ new Map()));
74
+ /** Cache to store time zone name and abbreviation against UTC offset from {@link TIME_ZONES} */
75
+ const TZ_NAME_ABBR_MAP = new Map(Object.entries(require_timezone.TIME_ZONES).map(([tzAbbr, { offset, tzName }]) => [offset, {
76
+ tzAbbr,
77
+ tzName
78
+ }]));
79
+ /** Get time zone identifier from {@link TZ_ID_MAP} using UTC offset */
80
+ const _getTimeZoneId = (utc) => {
81
+ const tzIds = TZ_ID_MAP.get(utc);
82
+ if (!tzIds || tzIds?.length === 0) return void 0;
83
+ if (tzIds?.length === 1) return tzIds[0];
84
+ return tzIds;
85
+ };
86
+ /** Get time zone name from `Intl.supportedValuesOf('timeZone')`, `TIME_ZONE_LABELS` or `TIME_ZONES` constants using UTC offset, time zone identifier or time zone abbreviation */
87
+ const _getTimeZoneName = (zone, date) => {
88
+ if (_isGMT(zone)) return "Greenwich Mean Time";
89
+ if (require_guards.isValidUTCOffset(zone)) {
90
+ const tzName = _resolveTzName(zone);
91
+ if (!tzName && TZ_NAME_ABBR_MAP.has(zone)) return TZ_NAME_ABBR_MAP.get(zone)?.tzName;
92
+ return tzName;
93
+ } else if (_isValidTzAbbr(zone)) return require_timezone.TIME_ZONES[zone].tzName;
94
+ else {
95
+ const { offset, tzName } = _getTimeZoneDetails(zone, date);
96
+ return tzName || _resolveTzName(offset);
97
+ }
98
+ };
99
+ $Chronos.prototype.timeZone = function(zone) {
100
+ let offset;
101
+ let tzId;
102
+ if (require_guards.isValidUTCOffset(zone)) {
103
+ offset = zone;
104
+ tzId = _getTimeZoneId(offset) || offset;
105
+ } else if (_isValidTzAbbr(zone)) {
106
+ offset = require_timezone.TIME_ZONES[zone].offset;
107
+ tzId = _getTimeZoneId(offset) || offset;
108
+ } else {
109
+ offset = _getTimeZoneDetails(zone, $Date(this)).offset || require_timezone.TIME_ZONES["UTC"].offset;
110
+ tzId = zone;
111
+ }
112
+ const $zone = zone || offset;
113
+ const tzName = _getTimeZoneName($zone, $Date(this)) ?? offset;
114
+ const relativeOffset = require_utilities.extractMinutesFromUTC(offset) - this.getTimeZoneOffsetMinutes();
115
+ return withOrigin(new $Chronos(new Date($Date(this).getTime() + relativeOffset * 60 * 1e3)), `timeZone`, offset, tzName, tzId, $zone);
116
+ };
117
+ $Chronos.prototype.getTimeZoneName = function(utc) {
118
+ const UTC = utc || offset(this);
119
+ return _getTimeZoneName(utc || this?.$tzTracker || offset(this), $Date(this)) ?? UTC;
120
+ };
121
+ /** Cache to store abbreviated time zone names */
122
+ const TZ_ABBR_CACHE = /* @__PURE__ */ new Map();
123
+ /** Abbreviate full time zone name */
124
+ const _abbreviate = (name) => {
125
+ return name.split(/\s+/).map((w) => w[0]).join("").replace(/\W/g, "");
126
+ };
127
+ $Chronos.prototype.getTimeZoneNameShort = function(utc) {
128
+ const tracker = this?.$tzTracker;
129
+ const UTC = utc || offset(this);
130
+ const tzMapKey = utc || tracker || offset(this);
131
+ if (_isGMT(tzMapKey)) return "GMT";
132
+ if (!utc && tracker && _isValidTzAbbr(tracker)) return tracker;
133
+ if (require_guards.isValidUTCOffset(tzMapKey)) {
134
+ if (TZ_ABBR_CACHE.has(tzMapKey)) return TZ_ABBR_CACHE.get(tzMapKey);
135
+ if (TZ_NAME_ABBR_MAP.has(tzMapKey)) return TZ_NAME_ABBR_MAP.get(tzMapKey)?.tzAbbr;
136
+ const tzName = _resolveTzName(tzMapKey);
137
+ if (tzName) {
138
+ const tzAbbr = _abbreviate(tzName);
139
+ TZ_ABBR_CACHE.set(tzMapKey, tzAbbr);
140
+ return tzAbbr;
141
+ }
142
+ }
143
+ const zone = _getTimeZoneName(tzMapKey, $Date(this)) ?? UTC;
144
+ if (TZ_ABBR_CACHE.has(`name-${zone}`)) return TZ_ABBR_CACHE.get(zone);
145
+ const customAbbr = require_guards.isValidUTCOffset(zone) ? zone : _abbreviate(zone);
146
+ TZ_ABBR_CACHE.set(`name-${zone}`, customAbbr);
147
+ return customAbbr;
148
+ };
149
+ $Chronos.prototype.getTimeZoneNameAbbr = function(utc) {
150
+ return this.getTimeZoneNameShort(utc);
151
+ };
152
+ };
153
+
154
+ //#endregion
155
+ exports.timeZonePlugin = timeZonePlugin;
@@ -1,4 +1,20 @@
1
- import { C as $Chronos, En as LooseLiteral, Nt as TimeZoneIdentifier, Pt as TimeZoneName, Rt as UTCOffset, kt as TimeZone } from "../types-DPTQ_yLx.cjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { C as $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-CdmsXbU_.cjs";
2
18
 
3
19
  //#region src/plugins/timeZonePlugin.d.ts
4
20
  declare module 'chronos-date' {
@@ -1,4 +1,20 @@
1
- import { C as $Chronos, En as LooseLiteral, Nt as TimeZoneIdentifier, Pt as TimeZoneName, Rt as UTCOffset, kt as TimeZone } from "../types-B2fgrJ86.mjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { C as $Chronos, Lt as UTCOffset, Mt as TimeZoneIdentifier, Nt as TimeZoneName, Ot as TimeZone, Tn as LooseLiteral } from "../types-Cb4gxrgJ.mjs";
2
18
 
3
19
  //#region src/plugins/timeZonePlugin.d.ts
4
20
  declare module 'chronos-date' {
@@ -1 +1,154 @@
1
- import{s as e}from"../basic-e46DaNAi.mjs";import{n as t,o as n,r}from"../timezone-B10UItNO.mjs";import{isValidUTCOffset as i}from"../guards.mjs";import{p as a,s as o}from"../helpers-N1X_Rj_V.mjs";import{r as s}from"../utilities-DV_ohS37.mjs";const c=c=>{let{internalDate:l,withOrigin:u,offset:d}=c[e],f=e=>e===`UTC+00:00`||e===`UTC-00:00`,p=e=>e?e in n:!1,m=e=>e in r,h=e=>{if(p(e))return n[e]},g=(e,t)=>{let n=[`long`,`longOffset`],r={tzId:e};for(let i of n){let n=i===`long`?`tzName`:`offset`;try{let s=a(e,i,t);r[n]=i===`longOffset`?o(s):s}catch{r[n]=void 0}}return r},_=new Map(t.reduce((e,t)=>{let{offset:n}=g(t);if(n){let r=e.get(n)??[];r.push(t),e.set(n,r)}return e},new Map)),v=new Map(Object.entries(r).map(([e,{offset:t,tzName:n}])=>[t,{tzAbbr:e,tzName:n}])),y=e=>{let t=_.get(e);if(!(!t||t?.length===0))return t?.length===1?t[0]:t},b=(e,t)=>{if(f(e))return`Greenwich Mean Time`;if(i(e)){let t=h(e);return!t&&v.has(e)?v.get(e)?.tzName:t}else if(m(e))return r[e].tzName;else{let{offset:n,tzName:r}=g(e,t);return r||h(n)}};c.prototype.timeZone=function(e){let t,n;i(e)?(t=e,n=y(t)||t):m(e)?(t=r[e].offset,n=y(t)||t):(t=g(e,l(this)).offset||r.UTC.offset,n=e);let a=e||t,o=b(a,l(this))??t,d=s(t)-this.getTimeZoneOffsetMinutes();return u(new c(new Date(l(this).getTime()+d*60*1e3)),`timeZone`,t,o,n,a)},c.prototype.getTimeZoneName=function(e){let t=e||d(this);return b(e||this?.$tzTracker||d(this),l(this))??t};let x=new Map,S=e=>e.split(/\s+/).map(e=>e[0]).join(``).replace(/\W/g,``);c.prototype.getTimeZoneNameShort=function(e){let t=this?.$tzTracker,n=e||d(this),r=e||t||d(this);if(f(r))return`GMT`;if(!e&&t&&m(t))return t;if(i(r)){if(x.has(r))return x.get(r);if(v.has(r))return v.get(r)?.tzAbbr;let e=h(r);if(e){let t=S(e);return x.set(r,t),t}}let a=b(r,l(this))??n;if(x.has(`name-${a}`))return x.get(a);let o=i(a)?a:S(a);return x.set(`name-${a}`,o),o},c.prototype.getTimeZoneNameAbbr=function(e){return this.getTimeZoneNameShort(e)}};export{c as timeZonePlugin};
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { s as INTERNALS } from "../basic-DqKyujoj.mjs";
18
+ import { n as NATIVE_TZ_IDS, o as TIME_ZONE_LABELS, r as TIME_ZONES } from "../timezone-Db2CeL32.mjs";
19
+ import { isValidUTCOffset } from "../guards.mjs";
20
+ import { p as _resolveNativeTzName, s as _gmtToUtcOffset } from "../helpers-DEf4sevD.mjs";
21
+ import { r as extractMinutesFromUTC } from "../utilities-BGX8dviZ.mjs";
22
+
23
+ //#region src/plugins/timeZonePlugin.ts
24
+ /** * Plugin to inject `timeZone` related methods */
25
+ const timeZonePlugin = ($Chronos) => {
26
+ const { internalDate: $Date, withOrigin, offset } = $Chronos[INTERNALS];
27
+ /** Check if a time zone factor represents GMT */
28
+ const _isGMT = (factor) => {
29
+ return factor === "UTC+00:00" || factor === "UTC-00:00";
30
+ };
31
+ /** Check if a string is the key of `TIME_ZONE_LABELS` constant */
32
+ const _isLabelKey = (offset) => {
33
+ return offset ? offset in TIME_ZONE_LABELS : false;
34
+ };
35
+ /** Check if a string is time zone abbreviation */
36
+ const _isValidTzAbbr = (tz) => {
37
+ return tz in TIME_ZONES;
38
+ };
39
+ /** Resolve time zone name from `TIME_ZONE_LABELS` constant using UTC offset or get undefined */
40
+ const _resolveTzName = (offset) => {
41
+ if (_isLabelKey(offset)) return TIME_ZONE_LABELS[offset];
42
+ };
43
+ /**
44
+ * * Retrieves comprehensive time zone details using the {@link Intl.supportedValuesOf} API.
45
+ * @param tzId Time zone identifier. Defaults to the system timezone.
46
+ * @param date Date for which to resolve the information.
47
+ * @returns Object containing time zone identifier, name, and offset.
48
+ */
49
+ const _getTimeZoneDetails = (tzId, date) => {
50
+ const TZ_NAME_TYPES = ["long", "longOffset"];
51
+ const obj = { tzId };
52
+ for (const type of TZ_NAME_TYPES) {
53
+ const key = type === "long" ? "tzName" : "offset";
54
+ try {
55
+ const partValue = _resolveNativeTzName(tzId, type, date);
56
+ obj[key] = type === "longOffset" ? _gmtToUtcOffset(partValue) : partValue;
57
+ } catch {
58
+ obj[key] = void 0;
59
+ }
60
+ }
61
+ return obj;
62
+ };
63
+ /** Cache to store time zone id (from {@link Intl.supportedValuesOf}) against UTC offset */
64
+ const TZ_ID_MAP = new Map(NATIVE_TZ_IDS.reduce((tzIds, id) => {
65
+ const { offset } = _getTimeZoneDetails(id);
66
+ if (offset) {
67
+ const arr = tzIds.get(offset) ?? [];
68
+ arr.push(id);
69
+ tzIds.set(offset, arr);
70
+ }
71
+ return tzIds;
72
+ }, /* @__PURE__ */ new Map()));
73
+ /** Cache to store time zone name and abbreviation against UTC offset from {@link TIME_ZONES} */
74
+ const TZ_NAME_ABBR_MAP = new Map(Object.entries(TIME_ZONES).map(([tzAbbr, { offset, tzName }]) => [offset, {
75
+ tzAbbr,
76
+ tzName
77
+ }]));
78
+ /** Get time zone identifier from {@link TZ_ID_MAP} using UTC offset */
79
+ const _getTimeZoneId = (utc) => {
80
+ const tzIds = TZ_ID_MAP.get(utc);
81
+ if (!tzIds || tzIds?.length === 0) return void 0;
82
+ if (tzIds?.length === 1) return tzIds[0];
83
+ return tzIds;
84
+ };
85
+ /** Get time zone name from `Intl.supportedValuesOf('timeZone')`, `TIME_ZONE_LABELS` or `TIME_ZONES` constants using UTC offset, time zone identifier or time zone abbreviation */
86
+ const _getTimeZoneName = (zone, date) => {
87
+ if (_isGMT(zone)) return "Greenwich Mean Time";
88
+ if (isValidUTCOffset(zone)) {
89
+ const tzName = _resolveTzName(zone);
90
+ if (!tzName && TZ_NAME_ABBR_MAP.has(zone)) return TZ_NAME_ABBR_MAP.get(zone)?.tzName;
91
+ return tzName;
92
+ } else if (_isValidTzAbbr(zone)) return TIME_ZONES[zone].tzName;
93
+ else {
94
+ const { offset, tzName } = _getTimeZoneDetails(zone, date);
95
+ return tzName || _resolveTzName(offset);
96
+ }
97
+ };
98
+ $Chronos.prototype.timeZone = function(zone) {
99
+ let offset;
100
+ let tzId;
101
+ if (isValidUTCOffset(zone)) {
102
+ offset = zone;
103
+ tzId = _getTimeZoneId(offset) || offset;
104
+ } else if (_isValidTzAbbr(zone)) {
105
+ offset = TIME_ZONES[zone].offset;
106
+ tzId = _getTimeZoneId(offset) || offset;
107
+ } else {
108
+ offset = _getTimeZoneDetails(zone, $Date(this)).offset || TIME_ZONES["UTC"].offset;
109
+ tzId = zone;
110
+ }
111
+ const $zone = zone || offset;
112
+ const tzName = _getTimeZoneName($zone, $Date(this)) ?? offset;
113
+ const relativeOffset = extractMinutesFromUTC(offset) - this.getTimeZoneOffsetMinutes();
114
+ return withOrigin(new $Chronos(new Date($Date(this).getTime() + relativeOffset * 60 * 1e3)), `timeZone`, offset, tzName, tzId, $zone);
115
+ };
116
+ $Chronos.prototype.getTimeZoneName = function(utc) {
117
+ const UTC = utc || offset(this);
118
+ return _getTimeZoneName(utc || this?.$tzTracker || offset(this), $Date(this)) ?? UTC;
119
+ };
120
+ /** Cache to store abbreviated time zone names */
121
+ const TZ_ABBR_CACHE = /* @__PURE__ */ new Map();
122
+ /** Abbreviate full time zone name */
123
+ const _abbreviate = (name) => {
124
+ return name.split(/\s+/).map((w) => w[0]).join("").replace(/\W/g, "");
125
+ };
126
+ $Chronos.prototype.getTimeZoneNameShort = function(utc) {
127
+ const tracker = this?.$tzTracker;
128
+ const UTC = utc || offset(this);
129
+ const tzMapKey = utc || tracker || offset(this);
130
+ if (_isGMT(tzMapKey)) return "GMT";
131
+ if (!utc && tracker && _isValidTzAbbr(tracker)) return tracker;
132
+ if (isValidUTCOffset(tzMapKey)) {
133
+ if (TZ_ABBR_CACHE.has(tzMapKey)) return TZ_ABBR_CACHE.get(tzMapKey);
134
+ if (TZ_NAME_ABBR_MAP.has(tzMapKey)) return TZ_NAME_ABBR_MAP.get(tzMapKey)?.tzAbbr;
135
+ const tzName = _resolveTzName(tzMapKey);
136
+ if (tzName) {
137
+ const tzAbbr = _abbreviate(tzName);
138
+ TZ_ABBR_CACHE.set(tzMapKey, tzAbbr);
139
+ return tzAbbr;
140
+ }
141
+ }
142
+ const zone = _getTimeZoneName(tzMapKey, $Date(this)) ?? UTC;
143
+ if (TZ_ABBR_CACHE.has(`name-${zone}`)) return TZ_ABBR_CACHE.get(zone);
144
+ const customAbbr = isValidUTCOffset(zone) ? zone : _abbreviate(zone);
145
+ TZ_ABBR_CACHE.set(`name-${zone}`, customAbbr);
146
+ return customAbbr;
147
+ };
148
+ $Chronos.prototype.getTimeZoneNameAbbr = function(utc) {
149
+ return this.getTimeZoneNameShort(utc);
150
+ };
151
+ };
152
+
153
+ //#endregion
154
+ export { timeZonePlugin };
@@ -1 +1,67 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../basic-CKxaRSHQ.cjs`),t=require(`../helpers-DGzYnP81.cjs`),n=n=>{function r(e){return e[0]*100+e[1]}function i(t){let{preset:n=`western`,custom:i}=t??{};return[...i??e.m[n]].sort((e,t)=>r(e[1])-r(t[1]))}n.prototype.getZodiacSign=function(e){let{birthDate:t}=e??{},n,r;t&&t?.includes(`-`)?[n,r]=t.split(`-`).map(Number):(n=this.isoMonth,r=this.date);let a=i(e);for(let e=a.length-1;e>=0;e--){let[t,[i,o]]=a[e];if(n>i||n===i&&r>=o)return t;if(e===0)return a.at(-1)[0]}return a[0][0]},n.prototype.zodiac=function(e){return this.getZodiacSign(e)},n.prototype.getZodiacMeta=function(e,n){let r=i(n),a=r.findIndex(([t])=>t===e);if(a===-1)throw RangeError(`Invalid zodiac sign: "${e}"`);let[o,s]=r[a][1],[c,l]=(r[a+1]??r[0])[1];return{index:a,sign:e,start:`${t.f(o)}-${t.f(s)}`,end:`${t.f(c)}-${t.f(l-1)}`}}};exports.zodiacPlugin=n;
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
+ const require_basic = require('../basic-DsQqC5nZ.cjs');
19
+ const require_helpers = require('../helpers-CQzi908i.cjs');
20
+
21
+ //#region src/plugins/zodiacPlugin.ts
22
+ /** * Plugin to inject `zodiac` related methods */
23
+ const zodiacPlugin = ($Chronos) => {
24
+ function _toHundreds(range) {
25
+ return range[0] * 100 + range[1];
26
+ }
27
+ function _resolveSigns(options) {
28
+ const { preset = "western", custom } = options ?? {};
29
+ return [...custom ?? require_basic.ZODIAC_PRESETS[preset]].sort((a, b) => _toHundreds(a[1]) - _toHundreds(b[1]));
30
+ }
31
+ $Chronos.prototype.getZodiacSign = function(options) {
32
+ const { birthDate } = options ?? {};
33
+ let month;
34
+ let date;
35
+ if (birthDate && birthDate?.includes("-")) [month, date] = birthDate.split("-").map(Number);
36
+ else {
37
+ month = this.isoMonth;
38
+ date = this.date;
39
+ }
40
+ const sortedSigns = _resolveSigns(options);
41
+ for (let i = sortedSigns.length - 1; i >= 0; i--) {
42
+ const [sign, [m, d]] = sortedSigns[i];
43
+ if (month > m || month === m && date >= d) return sign;
44
+ if (i === 0) return sortedSigns.at(-1)[0];
45
+ }
46
+ return sortedSigns[0][0];
47
+ };
48
+ $Chronos.prototype.zodiac = function(options) {
49
+ return this.getZodiacSign(options);
50
+ };
51
+ $Chronos.prototype.getZodiacMeta = function(sign, options) {
52
+ const sortedSigns = _resolveSigns(options);
53
+ const index = sortedSigns.findIndex(([s]) => s === sign);
54
+ if (index === -1) throw new RangeError(`Invalid zodiac sign: "${sign}"`);
55
+ const [startMonth, startDate] = sortedSigns[index][1];
56
+ const [endMonth, endDate] = (sortedSigns[index + 1] ?? sortedSigns[0])[1];
57
+ return {
58
+ index,
59
+ sign,
60
+ start: `${require_helpers._padZero(startMonth)}-${require_helpers._padZero(startDate)}`,
61
+ end: `${require_helpers._padZero(endMonth)}-${require_helpers._padZero(endDate - 1)}`
62
+ };
63
+ };
64
+ };
65
+
66
+ //#endregion
67
+ exports.zodiacPlugin = zodiacPlugin;
@@ -1,4 +1,20 @@
1
- import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-DPTQ_yLx.cjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-CdmsXbU_.cjs";
2
18
 
3
19
  //#region src/plugins/zodiacPlugin.d.ts
4
20
  declare module 'chronos-date' {
@@ -1,4 +1,20 @@
1
- import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-B2fgrJ86.mjs";
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { C as $Chronos, S as ZodiacSign, b as ZodiacOptions, v as ZodiacMeta, y as ZodiacMetaOptions } from "../types-Cb4gxrgJ.mjs";
2
18
 
3
19
  //#region src/plugins/zodiacPlugin.d.ts
4
20
  declare module 'chronos-date' {
@@ -1 +1,66 @@
1
- import{m as e}from"../basic-e46DaNAi.mjs";import{f as t}from"../helpers-N1X_Rj_V.mjs";const n=n=>{function r(e){return e[0]*100+e[1]}function i(t){let{preset:n=`western`,custom:i}=t??{};return[...i??e[n]].sort((e,t)=>r(e[1])-r(t[1]))}n.prototype.getZodiacSign=function(e){let{birthDate:t}=e??{},n,r;t&&t?.includes(`-`)?[n,r]=t.split(`-`).map(Number):(n=this.isoMonth,r=this.date);let a=i(e);for(let e=a.length-1;e>=0;e--){let[t,[i,o]]=a[e];if(n>i||n===i&&r>=o)return t;if(e===0)return a.at(-1)[0]}return a[0][0]},n.prototype.zodiac=function(e){return this.getZodiacSign(e)},n.prototype.getZodiacMeta=function(e,n){let r=i(n),a=r.findIndex(([t])=>t===e);if(a===-1)throw RangeError(`Invalid zodiac sign: "${e}"`);let[o,s]=r[a][1],[c,l]=(r[a+1]??r[0])[1];return{index:a,sign:e,start:`${t(o)}-${t(s)}`,end:`${t(c)}-${t(l-1)}`}}};export{n as zodiacPlugin};
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { m as ZODIAC_PRESETS } from "../basic-DqKyujoj.mjs";
18
+ import { f as _padZero } from "../helpers-DEf4sevD.mjs";
19
+
20
+ //#region src/plugins/zodiacPlugin.ts
21
+ /** * Plugin to inject `zodiac` related methods */
22
+ const zodiacPlugin = ($Chronos) => {
23
+ function _toHundreds(range) {
24
+ return range[0] * 100 + range[1];
25
+ }
26
+ function _resolveSigns(options) {
27
+ const { preset = "western", custom } = options ?? {};
28
+ return [...custom ?? ZODIAC_PRESETS[preset]].sort((a, b) => _toHundreds(a[1]) - _toHundreds(b[1]));
29
+ }
30
+ $Chronos.prototype.getZodiacSign = function(options) {
31
+ const { birthDate } = options ?? {};
32
+ let month;
33
+ let date;
34
+ if (birthDate && birthDate?.includes("-")) [month, date] = birthDate.split("-").map(Number);
35
+ else {
36
+ month = this.isoMonth;
37
+ date = this.date;
38
+ }
39
+ const sortedSigns = _resolveSigns(options);
40
+ for (let i = sortedSigns.length - 1; i >= 0; i--) {
41
+ const [sign, [m, d]] = sortedSigns[i];
42
+ if (month > m || month === m && date >= d) return sign;
43
+ if (i === 0) return sortedSigns.at(-1)[0];
44
+ }
45
+ return sortedSigns[0][0];
46
+ };
47
+ $Chronos.prototype.zodiac = function(options) {
48
+ return this.getZodiacSign(options);
49
+ };
50
+ $Chronos.prototype.getZodiacMeta = function(sign, options) {
51
+ const sortedSigns = _resolveSigns(options);
52
+ const index = sortedSigns.findIndex(([s]) => s === sign);
53
+ if (index === -1) throw new RangeError(`Invalid zodiac sign: "${sign}"`);
54
+ const [startMonth, startDate] = sortedSigns[index][1];
55
+ const [endMonth, endDate] = (sortedSigns[index + 1] ?? sortedSigns[0])[1];
56
+ return {
57
+ index,
58
+ sign,
59
+ start: `${_padZero(startMonth)}-${_padZero(startDate)}`,
60
+ end: `${_padZero(endMonth)}-${_padZero(endDate - 1)}`
61
+ };
62
+ };
63
+ };
64
+
65
+ //#endregion
66
+ export { zodiacPlugin };
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+
18
+ //#region node_modules/.pnpm/nhb-toolbox@4.30.1/node_modules/nhb-toolbox/dist/esm/guards/primitives.js
19
+ function isNumber(value) {
20
+ return typeof value === "number" && Number.isFinite(value);
21
+ }
22
+ function isString(value) {
23
+ return typeof value === "string";
24
+ }
25
+ function isBoolean(value) {
26
+ return typeof value === "boolean";
27
+ }
28
+ function isUndefined(value) {
29
+ return value === void 0;
30
+ }
31
+ function isNonEmptyString(value) {
32
+ return isString(value) && value?.length > 0;
33
+ }
34
+
35
+ //#endregion
36
+ Object.defineProperty(exports, 'isBoolean', {
37
+ enumerable: true,
38
+ get: function () {
39
+ return isBoolean;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, 'isNonEmptyString', {
43
+ enumerable: true,
44
+ get: function () {
45
+ return isNonEmptyString;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, 'isNumber', {
49
+ enumerable: true,
50
+ get: function () {
51
+ return isNumber;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, 'isString', {
55
+ enumerable: true,
56
+ get: function () {
57
+ return isString;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, 'isUndefined', {
61
+ enumerable: true,
62
+ get: function () {
63
+ return isUndefined;
64
+ }
65
+ });
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright 2026 - present Nazmul Hassan
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ //#region node_modules/.pnpm/nhb-toolbox@4.30.1/node_modules/nhb-toolbox/dist/esm/guards/primitives.js
18
+ function isNumber(value) {
19
+ return typeof value === "number" && Number.isFinite(value);
20
+ }
21
+ function isString(value) {
22
+ return typeof value === "string";
23
+ }
24
+ function isBoolean(value) {
25
+ return typeof value === "boolean";
26
+ }
27
+ function isUndefined(value) {
28
+ return value === void 0;
29
+ }
30
+ function isNonEmptyString(value) {
31
+ return isString(value) && value?.length > 0;
32
+ }
33
+
34
+ //#endregion
35
+ export { isUndefined as a, isString as i, isNonEmptyString as n, isNumber as r, isBoolean as t };